Class DefaultFulfillmentPricingService
java.lang.Object
com.broadleafcommerce.shipping.service.DefaultFulfillmentPricingService
- All Implemented Interfaces:
FulfillmentPricingService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFulfillmentPricingService(List<FulfillmentPricingProvider> fulfillmentPricingProviders) -
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponsegetFulfillmentOptionPricedResponse(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) 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, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Get all shipping options for a givenFulfillmentPricingRequestprotected 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 theFulfillmentPricingProviderresponsible 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, waitMethods 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:FulfillmentPricingServiceGet all shipping options for a givenFulfillmentPricingRequest- Specified by:
getFulfillmentOptionPricedResponsesin interfaceFulfillmentPricingServicecontextInfo- 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:FulfillmentPricingServiceGet a singleFulfillmentOptionPricedResponsethat corresponds to the fulfillment option set on the given pricing request.- Specified by:
getFulfillmentOptionPricedResponsein interfaceFulfillmentPricingServicecontextInfo- 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 theFulfillmentPricingProviderresponsible 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 theFulfillmentPricingProviderresponsible for the given fulfillment option name- Parameters:
fulfillmentOptionName-- Returns:
-
getFulfillmentPricingProviders
-
getFulfillmentPricingProvider(String, ContextInfo)