@Service(value="blTaxService") public class TaxServiceImpl extends Object implements TaxService
| Modifier and Type | Field and Description |
|---|---|
protected ModuleConfigurationService |
moduleConfigService |
protected boolean |
mustCalculate |
protected List<TaxProvider> |
providers |
| Constructor and Description |
|---|
TaxServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Order |
calculateTaxForOrder(Order order)
Calculates tax for the order.
|
void |
cancelTax(Order order)
Some tax providers store tax details from an order on an external system for reporting and tax reconcilliation.
|
Order |
commitTaxForOrder(Order order)
Commits tax for the order.
|
void |
setMustCalculate(boolean mustCalculate)
Sets whether or not this service is required to delegate to a tax provider.
|
void |
setTaxProviders(List<TaxProvider> providers)
Sets a list of
TaxProvider implementations. |
protected boolean mustCalculate
protected List<TaxProvider> providers
protected ModuleConfigurationService moduleConfigService
public Order calculateTaxForOrder(Order order) throws TaxException
TaxServicecalculateTaxForOrder in interface TaxServiceTaxExceptionpublic Order commitTaxForOrder(Order order) throws TaxException
TaxServicecommitTaxForOrder in interface TaxServiceTaxExceptionpublic void cancelTax(Order order) throws TaxException
TaxServicecancelTax in interface TaxServiceTaxExceptionpublic void setTaxProviders(List<TaxProvider> providers)
TaxProvider implementations.providers - public void setMustCalculate(boolean mustCalculate)
mustCalculate - Copyright © 2015. All Rights Reserved.