Class DefaultFulfillmentPricingService
java.lang.Object
com.broadleafcommerce.shipping.service.DefaultFulfillmentPricingService
- All Implemented Interfaces:
FulfillmentPricingService
-
Constructor Summary
ConstructorDescriptionDefaultFulfillmentPricingService
(List<FulfillmentPricingProvider> fulfillmentPricingProviders) -
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse
getFulfillmentOptionPricedResponse
(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) 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, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Get all shipping options for a givenFulfillmentPricingRequest
protected Optional<FulfillmentPricingProvider>
getFulfillmentPricingProvider
(String fulfillmentOptionName) Deprecated, for removal: This API element is subject to removal in a future version.protected Optional<FulfillmentPricingProvider>
getFulfillmentPricingProvider
(String fulfillmentOptionName, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Get theFulfillmentPricingProvider
responsible for the given fulfillment option nameprotected List<FulfillmentPricingProvider>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.shipping.service.FulfillmentPricingService
getFulfillmentOptionPricedResponse, getFulfillmentOptionPricedResponses
-
Constructor Details
-
DefaultFulfillmentPricingService
public DefaultFulfillmentPricingService(List<FulfillmentPricingProvider> fulfillmentPricingProviders)
-
-
Method Details
-
getFulfillmentOptionPricedResponses
public List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> getFulfillmentOptionPricedResponses(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:FulfillmentPricingService
Get all shipping options for a givenFulfillmentPricingRequest
- Specified by:
getFulfillmentOptionPricedResponses
in interfaceFulfillmentPricingService
contextInfo
- context information around sandbox and multitenant state- Returns:
-
getFulfillmentOptionPricedResponse
public com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse getFulfillmentOptionPricedResponse(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) 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
contextInfo
- context information around sandbox and multitenant state- Returns:
-
getFulfillmentPricingProvider
@Deprecated(since="1.1.0", forRemoval=true) protected Optional<FulfillmentPricingProvider> getFulfillmentPricingProvider(String fulfillmentOptionName) Deprecated, for removal: This API element is subject to removal in a future version.since 1.1.0, in favor ofgetFulfillmentPricingProvider(String, ContextInfo)
Get theFulfillmentPricingProvider
responsible for the given fulfillment option name- Parameters:
fulfillmentOptionName
-- Returns:
-
getFulfillmentPricingProvider
protected Optional<FulfillmentPricingProvider> getFulfillmentPricingProvider(String fulfillmentOptionName, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Get theFulfillmentPricingProvider
responsible for the given fulfillment option name- Parameters:
fulfillmentOptionName
-- Returns:
-
getFulfillmentPricingProviders
-
getFulfillmentPricingProvider(String, ContextInfo)