Interface FulfillmentPricingService
- All Superinterfaces:
CommonFulfillmentPricingService
- All Known Implementing Classes:
DefaultFulfillmentPricingService
Defines a service that provides fulfillment pricing for a
Cart
, e.g., shipping price.- Author:
- Chad Harchar (charchar)
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
applyFulfillmentPricing
(com.broadleafcommerce.cart.client.domain.Cart cart) Deprecated, for removal: This API element is subject to removal in a future version.default List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse>
getOptions
(com.broadleafcommerce.cart.client.domain.Cart cart, String referenceNumber) Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0, in favor ofgetOptions(Cart, String, ContextInfo)
List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse>
getOptions
(com.broadleafcommerce.cart.client.domain.Cart cart, String referenceNumber, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) A list of all potential fulfillment options for the specified cart and fulfillment group.void
prorateFulfillmentGroupsAdjustments
(com.broadleafcommerce.cart.client.domain.Cart cart) Deprecated, for removal: This API element is subject to removal in a future version.since 1.7.2, adjustment prorations are now done in OfferServicesMethods inherited from interface com.broadleafcommerce.cartoperation.service.pricing.CommonFulfillmentPricingService
applyFulfillmentPricing, canCalculateFulfillmentPricing
-
Method Details
-
applyFulfillmentPricing
@Deprecated(since="1.8.0", forRemoval=true) default void applyFulfillmentPricing(com.broadleafcommerce.cart.client.domain.Cart cart) Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0, in favor ofCommonFulfillmentPricingService.applyFulfillmentPricing(Cart, ContextInfo)
Service for calculating and applying fulfillment pricing to aCart
, typically by integrating with Shipping Services. Options are expected to be unique across all providers, once a provider is found that can handle an option, it will be the one used for calculation.- Parameters:
cart
- The cart to apply fulfillment pricing against.
-
getOptions
@Deprecated(since="1.8.0", forRemoval=true) default List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> getOptions(com.broadleafcommerce.cart.client.domain.Cart cart, String referenceNumber) Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0, in favor ofgetOptions(Cart, String, ContextInfo)
A list of all potential fulfillment options for the specified cart and fulfillment group.- Parameters:
cart
- The cart to determine which fulfillment options can be chosen.referenceNumber
- The id of the fulfillment group we are retrieving options for.- Returns:
- A list of all potential fulfillment options for the specified cart and fulfillment group.
-
getOptions
List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> getOptions(com.broadleafcommerce.cart.client.domain.Cart cart, String referenceNumber, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) A list of all potential fulfillment options for the specified cart and fulfillment group.- Parameters:
cart
- The cart to determine which fulfillment options can be chosen.referenceNumber
- The id of the fulfillment group we are retrieving options for.contextInfo
- Context information around sandbox and multitenant state.- Returns:
- A list of all potential fulfillment options for the specified cart and fulfillment group.
-
prorateFulfillmentGroupsAdjustments
@Deprecated(since="1.7.2", forRemoval=true) void prorateFulfillmentGroupsAdjustments(com.broadleafcommerce.cart.client.domain.Cart cart) Deprecated, for removal: This API element is subject to removal in a future version.since 1.7.2, adjustment prorations are now done in OfferServicesProrates theFulfillmentGroup
level adjustments down to the items for the entire cart. This is useful for downstream services for calculating partial captures and refunds.- Parameters:
cart
- The parent cart
-
CommonFulfillmentPricingService.applyFulfillmentPricing(Cart, ContextInfo)