atg.commerce.pricing
Interface OrderPricingCalculator

All Known Implementing Classes:
BulkOrderDiscountCalculator, OrderDiscountCalculator, OrderSubtotalCalculator

public interface OrderPricingCalculator

An OrderPricingCalculator modifies the price of an Order. The OrderPricingEngineImpl, the DCS implementation of OrderPricingEngine, uses a series of OrderPricingCalculators to modify an Order's price. The calculators have their priceOrder method invoked one at a time. It's the OrderPricingEngineImpl's job to sequence the method invocations. priceOrder 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 price.

See Also:
OrderPricingEngineImpl

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Method Summary
 void priceOrder(OrderPriceInfo pPriceQuote, Order pOrder, RepositoryItem pPricingModel, java.util.Locale pLocale, RepositoryItem pProfile, java.util.Map pExtraParameters)
          Price a single 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

priceOrder

void priceOrder(OrderPriceInfo pPriceQuote,
                Order pOrder,
                RepositoryItem pPricingModel,
                java.util.Locale pLocale,
                RepositoryItem pProfile,
                java.util.Map pExtraParameters)
                throws PricingException
Price a single order within a context

Parameters:
pPriceQuote - OrderPriceInfo representing the current price quote for the order
pOrder - The order to price
pPricingModel - A RepositoryItems representing a PricingModel
pProfile - The user's profile
pExtraParameters - A Map of extra parameters to be used in the pricing, may be null
Throws:
PricingException