public interface FulfillmentPricingService
Cart
, e.g., shipping price.Modifier and Type | Method and Description |
---|---|
void |
applyFulfillmentPricing(com.broadleafcommerce.cart.client.domain.Cart cart)
Service for calculating and applying fulfillment pricing to a
Cart , typically by
integrating with one or more FulfillmentPricingProviders . |
boolean |
canCalculateFulfillmentPricing(com.broadleafcommerce.cart.client.domain.Cart cart)
Whether the cart contains the information required to calculate fulfillment pricing.
|
List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> |
getOptions(com.broadleafcommerce.cart.client.domain.Cart cart,
String referenceNumber)
A list of all potential fulfillment options for the specified cart and fulfillment group.
|
void applyFulfillmentPricing(com.broadleafcommerce.cart.client.domain.Cart cart)
Cart
, typically by
integrating with one or more FulfillmentPricingProviders
.
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.cart
- The cart to apply fulfillment pricing against.boolean canCalculateFulfillmentPricing(com.broadleafcommerce.cart.client.domain.Cart cart)
cart
- The cart to determine whether fulfillment pricing can be calculated for.List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> getOptions(com.broadleafcommerce.cart.client.domain.Cart cart, String referenceNumber)
cart
- The cart to determine which fulfillment options can be chosen.referenceNumber
- The id of the fulfillment group we are retrieving options for.Copyright © 2021. All rights reserved.