Class DefaultFulfillmentPricingService
- java.lang.Object
-
- com.broadleafcommerce.shipping.service.DefaultFulfillmentPricingService
-
- All Implemented Interfaces:
FulfillmentPricingService
public class DefaultFulfillmentPricingService extends Object implements FulfillmentPricingService
-
-
Constructor Summary
Constructors Constructor Description DefaultFulfillmentPricingService(List<FulfillmentPricingProvider> fulfillmentPricingProviders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse
getFulfillmentOptionPricedResponse(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)
Get a singleFulfillmentOptionPricedResponse
that corresponds to the fulfillment option set on the given pricing request.List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse>
getFulfillmentOptionPricedResponses(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)
Get all shipping options for a givenFulfillmentPricingRequest
protected Optional<FulfillmentPricingProvider>
getFulfillmentPricingProvider(String fulfillmentOptionName)
Get theFulfillmentPricingProvider
responsible for the given fulfillment option nameprotected List<FulfillmentPricingProvider>
getFulfillmentPricingProviders()
-
-
-
Constructor Detail
-
DefaultFulfillmentPricingService
public DefaultFulfillmentPricingService(List<FulfillmentPricingProvider> fulfillmentPricingProviders)
-
-
Method Detail
-
getFulfillmentOptionPricedResponses
public List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> getFulfillmentOptionPricedResponses(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)
Description copied from interface:FulfillmentPricingService
Get all shipping options for a givenFulfillmentPricingRequest
- Specified by:
getFulfillmentOptionPricedResponses
in interfaceFulfillmentPricingService
- Returns:
-
getFulfillmentOptionPricedResponse
public com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse getFulfillmentOptionPricedResponse(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)
Description copied from interface:FulfillmentPricingService
Get a singleFulfillmentOptionPricedResponse
that corresponds to the fulfillment option set on the given pricing request.- Specified by:
getFulfillmentOptionPricedResponse
in interfaceFulfillmentPricingService
- Returns:
-
getFulfillmentPricingProvider
protected Optional<FulfillmentPricingProvider> getFulfillmentPricingProvider(String fulfillmentOptionName)
Get theFulfillmentPricingProvider
responsible for the given fulfillment option name- Parameters:
fulfillmentOptionName
-- Returns:
-
getFulfillmentPricingProviders
protected List<FulfillmentPricingProvider> getFulfillmentPricingProviders()
-
-