atg.commerce.pricing
Interface TaxPricingCalculator

All Known Implementing Classes:
AddressVerificationTaxProcessorTaxCalculator, BulkTaxDiscountCalculator, NoTaxCalculator, TaxDiscountCalculator, TaxProcessorTaxCalculator

public interface TaxPricingCalculator

A TaxPricingCalculator modifies the price of the tax for an Order. The TaxPricingEngineImpl, the DCS implementation of TaxPricingEngine, uses a series of TaxPricingCalculators to modify a tax price. The calculators have their priceTax method invoked one calculator at a time. It's the TaxPricingEngineImpl's job to sequence the method invocations. priceTax can modify the input pPriceQuote to reflect how the current input environment should affect the price. It's up to the particular calculator implementation to determine if and how to modify the order's tax price.

See Also:
TaxPricingEngineImpl

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Method Summary
 void priceTax(TaxPriceInfo pPriceQuote, Order pOrder, RepositoryItem pPricingModel, java.util.Locale pLocale, RepositoryItem pProfile, java.util.Map pExtraParameters)
          Tax an order within a context
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Method Detail

priceTax

void priceTax(TaxPriceInfo pPriceQuote,
              Order pOrder,
              RepositoryItem pPricingModel,
              java.util.Locale pLocale,
              RepositoryItem pProfile,
              java.util.Map pExtraParameters)
              throws PricingException
Tax an order within a context

Parameters:
pPriceQuote - TaxPriceInfo representing the tax quote for the order
pOrder - The order to tax
pPricingModels - A Collection of RepositoryItems representing PricingModels
pProfile - The user's profile
pExtraParameters - A Map of extra parameters to be used in the pricing, may be null
Throws:
PricingException