com.softslate.commerce.businessobjects.tax
Class BasicTaxProcessor

java.lang.Object
  extended bycom.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended bycom.softslate.commerce.businessobjects.core.BaseBusinessProcessor
          extended bycom.softslate.commerce.businessobjects.tax.BaseTaxProcessor
              extended bycom.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 npcBasicTaxRates 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
           
 
Fields inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
 
Constructor Summary
BasicTaxProcessor()
           
 
Method Summary
 java.util.Collection loadActiveBasicTaxRates()
           
 int processTax()
           
 
Methods inherited from class com.softslate.commerce.businessobjects.tax.BaseTaxProcessor
processTax, updateTotalsAndStatuses
 
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatPrice, getBusinessObjectFactory, getDaoFactory, getSettingsBean, getUser, initialize, setBusinessObjectFactory, setDaoFactory, setSettingsBean, setUser
 
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
formatDateTime, parseDateTime, prepareRequestData, sendHTTPPost
 
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

loadActiveBasicTaxRates

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


Copyright © SoftSlate, Inc. 2003–2005