org.broadleafcommerce.core.pricing.service
Class TaxServiceImpl
java.lang.Object
org.broadleafcommerce.core.pricing.service.TaxServiceImpl
- All Implemented Interfaces:
- TaxService
public class TaxServiceImpl
- extends Object
- implements TaxService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mustCalculate
protected boolean mustCalculate
providers
protected List<TaxProvider> providers
moduleConfigService
protected ModuleConfigurationService moduleConfigService
TaxServiceImpl
public TaxServiceImpl()
calculateTaxForOrder
public Order calculateTaxForOrder(Order order)
throws TaxException
- Description copied from interface:
TaxService
- Calculates tax for the order.
- Specified by:
calculateTaxForOrder in interface TaxService
- Returns:
-
- Throws:
TaxException
commitTaxForOrder
public Order commitTaxForOrder(Order order)
throws TaxException
- Description copied from interface:
TaxService
- Commits tax for the order. Some implemenations may do nothing. Others may delegate
to a tax provider that stores taxes in another system for reporting or reconcilliation.
- Specified by:
commitTaxForOrder in interface TaxService
- Returns:
-
- Throws:
TaxException
setTaxProviders
public void setTaxProviders(List<TaxProvider> providers)
- Sets a list of
TaxProvider implementations.
- Parameters:
providers -
setMustCalculate
public void setMustCalculate(boolean mustCalculate)
- Sets whether or not this service is required to delegate to a tax provider.
Setting this value to true will cause an exception if no tax providers are configured,
or if none are eligible.
- Parameters:
mustCalculate -
Copyright © 2013. All Rights Reserved.