Interface CommerceCartEstimateTaxesStrategy
- All Known Implementing Classes:
DefaultCommerceCartEstimateTaxesStrategy
public interface CommerceCartEstimateTaxesStrategy
Strategy to abstract the estimation of taxes on a cart.
-
Method Summary
Modifier and TypeMethodDescriptionestimateTaxes(CartModel cartModel, String deliveryZipCode, String deliveryCountryIsocode) Estimate taxes for the cartModel and using the deliveryZipCode as the delivery zip code.
-
Method Details
-
estimateTaxes
BigDecimal estimateTaxes(CartModel cartModel, String deliveryZipCode, String deliveryCountryIsocode) Estimate taxes for the cartModel and using the deliveryZipCode as the delivery zip code.- Parameters:
cartModel- cart to estimate taxes fordeliveryZipCode- zip code to use as the delivery addressdeliveryCountryIsocode- country to use for the delivery address- Returns:
- total of the estimated taxes
-