com.softslate.commerce.businessobjects.tax
Class BasicTaxProcessor

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended by com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
          extended by com.softslate.commerce.businessobjects.tax.BaseTaxProcessor
              extended by com.softslate.commerce.businessobjects.tax.BasicTaxProcessor
All Implemented Interfaces:
BusinessObject, BusinessProcessor, TaxProcessor

public class BasicTaxProcessor
extends BaseTaxProcessor
implements 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
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
BasicTaxProcessor()
           
 
Method Summary
 double computeApplicableTaxRate(java.lang.String deliveryCountry, java.lang.String deliveryState, java.lang.String deliveryCity, java.lang.String deliveryPostalCode)
           
 java.util.Collection loadActiveBasicTaxRates()
           
 int processTax()
           
 
Methods inherited from class com.softslate.commerce.businessobjects.tax.BaseTaxProcessor
processTax, updateTaxableSubtotal
 
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getProductIDs, getSettings, getUser, initialize, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, 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.tax.TaxProcessor
processTax
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Field Detail

log

static org.apache.commons.logging.Log log
Constructor Detail

BasicTaxProcessor

public BasicTaxProcessor()
Method Detail

processTax

public int processTax()
               throws java.lang.Exception
Specified by:
processTax in class BaseTaxProcessor
Throws:
java.lang.Exception

computeApplicableTaxRate

public double computeApplicableTaxRate(java.lang.String deliveryCountry,
                                       java.lang.String deliveryState,
                                       java.lang.String deliveryCity,
                                       java.lang.String deliveryPostalCode)
                                throws java.lang.Exception
Throws:
java.lang.Exception

loadActiveBasicTaxRates

public java.util.Collection loadActiveBasicTaxRates()
                                             throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © SoftSlate, LLC 2003–2005