atg.commerce.pricing
Interface OrderPricingCalculator
- All Known Implementing Classes:
- 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 |
CLASS_VERSION
static final java.lang.String CLASS_VERSION
- Class version string
- See Also:
- Constant Field Values
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 orderpOrder
- The order to pricepPricingModel
- A RepositoryItems representing a PricingModelpProfile
- The user's profilepExtraParameters
- A Map of extra parameters to be used in the pricing, may be null
- Throws:
PricingException