public interface CartPricingService
Cart
.Modifier and Type | Method and Description |
---|---|
void |
calculateTotals(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Calculate the totals for the cart.
|
default com.broadleafcommerce.cart.client.domain.Cart |
priceCart(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Price the cart.
|
com.broadleafcommerce.cart.client.domain.Cart |
priceCart(com.broadleafcommerce.cart.client.domain.Cart cart,
PriceCartRequest priceCartRequest,
boolean update,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
in favor of
priceCart(Cart, PriceCartRequest, ContextInfo) |
com.broadleafcommerce.cart.client.domain.Cart |
priceCart(com.broadleafcommerce.cart.client.domain.Cart cart,
PriceCartRequest priceCartRequest,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Price the cart with the provided locale and currency.
|
default void |
priceCartItems(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) |
void |
priceCartItems(com.broadleafcommerce.cart.client.domain.Cart cart,
PriceCartRequest priceCartRequest,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) |
com.broadleafcommerce.cart.client.domain.Cart |
priceCartWithCatalogPriceUpdates(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Reprice the cart, including applying the latest catalog-based prices for each of its items
|
default com.broadleafcommerce.cart.client.domain.Cart priceCart(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The cart on which to perform the operation.contextInfo
- the context infopriceCart(Cart, PriceCartRequest, ContextInfo)
com.broadleafcommerce.cart.client.domain.Cart priceCart(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable PriceCartRequest priceCartRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The cart on which to perform the operation.priceCartRequest
- optional info to be used when deciding how to price the cartcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart priceCartWithCatalogPriceUpdates(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The cart on which to perform the operation.contextInfo
- the context info@Deprecated com.broadleafcommerce.cart.client.domain.Cart priceCart(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable PriceCartRequest priceCartRequest, boolean update, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
priceCart(Cart, PriceCartRequest, ContextInfo)
cart
- The cart on which to perform the operation.priceCartRequest
- optional info to be used when deciding how to price the cartupdate
- whether to update (save) the cart after pricingcontextInfo
- the context infodefault void priceCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
void priceCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable PriceCartRequest priceCartRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
void calculateTotals(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The cart to calculate totals for.Copyright © 2021. All rights reserved.