public interface CartTotalsCalculator
CartPricingService in calculating price totals for the various
members of a Cart.| Modifier and Type | Method and Description |
|---|---|
javax.money.MonetaryAmount |
calculateCartSubtotal(com.broadleafcommerce.cart.client.domain.Cart cart)
Calculates
CartPricing.getSubtotal(). |
javax.money.MonetaryAmount |
calculateCartTotalAfterTax(com.broadleafcommerce.cart.client.domain.CartPricing cartPricing)
Calculates the
CartPricing.getTotal() including tax. |
javax.money.MonetaryAmount |
calculateCartTotalBeforeTax(com.broadleafcommerce.cart.client.domain.CartPricing cartPricing)
Calculates the
CartPricing.getTotal() without tax. |
javax.money.MonetaryAmount |
calculateFulfillmentTotal(com.broadleafcommerce.cart.client.domain.Cart cart)
Calculates
CartPricing.getFulfillmentTotal(). |
javax.money.MonetaryAmount calculateCartSubtotal(com.broadleafcommerce.cart.client.domain.Cart cart)
CartPricing.getSubtotal(). This will also calculate and set
CartItem.getAdjustmentsTotal() and CartItem.getTotal().cart - Cart for which to calculate a subtotaljavax.money.MonetaryAmount calculateFulfillmentTotal(com.broadleafcommerce.cart.client.domain.Cart cart)
CartPricing.getFulfillmentTotal(). This will also calculate and set the
totals for FulfillmentGroups and FulfillmentItems.cart - Cart for which to calculate a subtotaljavax.money.MonetaryAmount calculateCartTotalBeforeTax(com.broadleafcommerce.cart.client.domain.CartPricing cartPricing)
CartPricing.getTotal() without tax. This will include the subtotal,
adjustments total, and fulfillment total.cartPricing - The pricing fields of a Cart to total.javax.money.MonetaryAmount calculateCartTotalAfterTax(com.broadleafcommerce.cart.client.domain.CartPricing cartPricing)
CartPricing.getTotal() including tax. This will include the subtotal,
adjustments total, total tax, and fulfillment total.cartPricing - The pricing fields of a Cart to total.Copyright © 2021. All rights reserved.