Class BasicTaxProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.tax.BaseTaxProcessor
com.softslate.commerce.businessobjects.tax.BasicTaxProcessor
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,TaxProcessor
Processes taxes in the store for a given user's cart. This implementation
looks up the tax rates configured in the
sscBasicTaxRates
table,
which provides for the ability to set up a tax table based on country, state,
city, and postal code.
BasicTaxProcessor
is the default implementation of the
TaxProcessor
interface for the application.
- Author:
- David Tobey
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
computeApplicableTaxRate
(String deliveryCountry, String deliveryState, String deliveryCity, String deliveryPostalCode) int
Methods inherited from class com.softslate.commerce.businessobjects.tax.BaseTaxProcessor
isShippingTaxable, processTax, updateTaxableSubtotal, updateTaxableSubtotal
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getProductIDs, getSettings, getUser, initialize, isProcessorClassActive, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPGet, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, updateOrderTotals, updateOrderTotals, updateOrderTotals, utils
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
Methods inherited from interface com.softslate.commerce.businessobjects.tax.TaxProcessor
isShippingTaxable, processTax
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
BasicTaxProcessor
public BasicTaxProcessor()
-
-
Method Details
-
processTax
- Specified by:
processTax
in classBaseTaxProcessor
- Throws:
Exception
-
computeApplicableTaxRate
public double computeApplicableTaxRate(String deliveryCountry, String deliveryState, String deliveryCity, String deliveryPostalCode) throws Exception - Throws:
Exception
-
loadActiveBasicTaxRates
- Throws:
Exception
-