com.softslate.commerce.businessobjects.tax
Interface TaxProcessor

All Superinterfaces:
BusinessObject
All Known Implementing Classes:
BaseTaxProcessor, BasicTaxProcessor

public interface TaxProcessor
extends BusinessObject

Interface for objects that are able to process tax charges in the store. Custom tax processors must simply implement TaxProcessor.

To change or add to the list of tax processors currently active in the system, modify the "activeTaxProcessors" setting in the npcSetting table of the database.

During checkout, the Struts layer invokes each of the "activeTaxProcessors" by calling their processTax(Map parameters) method to process tax on the current user's cart.

The default "activeTaxProcessor" is BasicTaxProcessor.

Author:
David Tobey

Method Summary
 java.util.Map processTax(java.util.Map parameters)
          Process the tax charges for the current user's order.
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Method Detail

processTax

public java.util.Map processTax(java.util.Map parameters)
                         throws java.lang.Exception
Process the tax charges for the current user's order. The incoming Map should contain any input parameters from the user related to how the tax should be charged.

Parameters:
parameters - A Map containing any input parameters from the user related to how the tax should be charged.
Returns:
A Map containing a least one key named "resultCode", which contains a String parsable into an integer, representing the results of the processing. 0 for the resultCode indicates success, anything else indicates an error and that processing should stop.
Throws:
java.lang.Exception


Copyright © SoftSlate, Inc. 2003–2005