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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecomputeApplicableTaxRate(String deliveryCountry, String deliveryState, String deliveryCity, String deliveryPostalCode) intMethods inherited from class com.softslate.commerce.businessobjects.tax.BaseTaxProcessor
isShippingTaxable, processTax, updateTaxableSubtotal, updateTaxableSubtotalMethods 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, utilsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initializeMethods 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:
processTaxin classBaseTaxProcessor- Throws:
Exception
-
computeApplicableTaxRate
public double computeApplicableTaxRate(String deliveryCountry, String deliveryState, String deliveryCity, String deliveryPostalCode) throws Exception - Throws:
Exception
-
loadActiveBasicTaxRates
- Throws:
Exception
-