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.FulfillmentOptionPricedResponsegetFulfillmentOptionPricedResponse(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)Get a singleFulfillmentOptionPricedResponsethat 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 givenFulfillmentPricingRequestprotected Optional<FulfillmentPricingProvider>getFulfillmentPricingProvider(String fulfillmentOptionName)Get theFulfillmentPricingProviderresponsible 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:FulfillmentPricingServiceGet all shipping options for a givenFulfillmentPricingRequest- Specified by:
getFulfillmentOptionPricedResponsesin interfaceFulfillmentPricingService- Returns:
-
getFulfillmentOptionPricedResponse
public com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse getFulfillmentOptionPricedResponse(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)
Description copied from interface:FulfillmentPricingServiceGet a singleFulfillmentOptionPricedResponsethat corresponds to the fulfillment option set on the given pricing request.- Specified by:
getFulfillmentOptionPricedResponsein interfaceFulfillmentPricingService- Returns:
-
getFulfillmentPricingProvider
protected Optional<FulfillmentPricingProvider> getFulfillmentPricingProvider(String fulfillmentOptionName)
Get theFulfillmentPricingProviderresponsible for the given fulfillment option name- Parameters:
fulfillmentOptionName-- Returns:
-
getFulfillmentPricingProviders
protected List<FulfillmentPricingProvider> getFulfillmentPricingProviders()
-
-