Page 1 of 1

FulfillmentPricingService#estimateCostForFulfillmentGroup

Posted: Wed Sep 10, 2014 8:11 am
by bibroy
one particular method for FulfillmentPricingService is :

Code: Select all

    public FulfillmentEstimationResponse estimateCostForFulfillmentGroup(FulfillmentGroup fulfillmentGroup, Set<FulfillmentOption> options) throws FulfillmentPriceException;


The interface FulfillmentPricingProvider has a similar API

    Question-1: why for a fulfillment group, a "Set" of fullfillment options is being passed to the method.....I was expecting a single instance and not a collection

Re: FulfillmentPricingService#estimateCostForFulfillmentGroup

Posted: Wed Sep 10, 2014 12:54 pm
by phillipuniverse
So that you can estimate multiple options for a fulfillment group if you are showing those options to a user. A user might be able to select "1-day shipping" or 'ground shipping'. Those are each fulfillment options that could be selected for a FulfillmentGroup. Once the user selects a fulfillment option, that option is now tied to the FulfillmentGroup for calculating the cost of the fulfillment group for its particular option.