public interface TaxService
Cart
, typically by integrating with one
or more TaxProviders
, depending if there should be estimated and actual taxes
calculated.Modifier and Type | Method and Description |
---|---|
void |
applyTaxes(com.broadleafcommerce.cart.client.domain.Cart cart,
boolean estimated,
boolean actual,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Calculates and applies taxes to a cart.
|
boolean |
canCalculateTaxes(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Whether the cart contains the information required to calculate taxes.
|
void applyTaxes(com.broadleafcommerce.cart.client.domain.Cart cart, boolean estimated, boolean actual, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The cart to apply taxes against.estimated
- Whether to provide an estimateactual
- Whether to provide the actualcontextInfo
- Additional sandbox and tenant infoboolean canCalculateTaxes(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The cart to determine whether taxes can be calculated for.contextInfo
- Additional sandbox and tenant infoCopyright © 2021. All rights reserved.