org.broadleafcommerce.core.pricing.service
Interface TaxService

All Known Implementing Classes:
TaxServiceImpl

public interface TaxService

Generic service to calculate taxes. Those implementing tax calculation logic should, more likely, use the default Broadleaf TaxService implementation, and implement TaxProvider.

Author:
Kelly Tisdell

Method Summary
 Order calculateTaxForOrder(Order order)
          Calculates tax for the order.
 Order commitTaxForOrder(Order order)
          Commits tax for the order.
 

Method Detail

calculateTaxForOrder

Order calculateTaxForOrder(Order order)
                           throws TaxException
Calculates tax for the order.

Parameters:
order -
Returns:
Throws:
TaxException

commitTaxForOrder

Order commitTaxForOrder(Order order)
                        throws TaxException
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.

Parameters:
order -
Returns:
Throws:
TaxException


Copyright © 2013. All Rights Reserved.