public interface TaxProvider extends ModuleProvider
| Modifier and Type | Method and Description |
|---|---|
Order |
calculateTaxForOrder(Order order,
ModuleConfiguration config)
Calculates taxes on an entire order.
|
void |
cancelTax(Order order,
ModuleConfiguration config)
Some tax providers store tax details from an order on an external system for reporting and tax reconcilliation.
|
Order |
commitTaxForOrder(Order order,
ModuleConfiguration config)
This method provides the implementation an opportunity to finalize taxes on the order.
|
canRespondOrder calculateTaxForOrder(Order order, ModuleConfiguration config) throws TaxException
order - config - TaxExceptionOrder commitTaxForOrder(Order order, ModuleConfiguration config) throws TaxException
order - config - TaxExceptionvoid cancelTax(Order order, ModuleConfiguration config) throws TaxException
order - config - TaxExceptionCopyright © 2014. All Rights Reserved.