public interface PricingEngine
OrderPricingEngine
extends
PricingEngine and has the job of calculating prices for orders which it is passed.
It's clear from looking at this interface that it's largely a marker interface; there's
only one method in it. This is because it's impossible to tell exactly what information
will be necessary for a given PricingEngine implementation to calculate a price for
its class of object. For example, the ItemPricingEngine implementation needs
one set of input parameters, whereas the OrderPricingEngine needs a different set.
The one thing all PricingEngine implementations have in common is the ability
to process pricing models, which by default are repository items that define a modification
to a price. The method getPricingModels
extracts a Collection
of pricing models from an input profile.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection |
getPricingModels(RepositoryItem pProfile)
Returns a Collection of pricing models (e.g.
|
static final java.lang.String CLASS_VERSION
java.util.Collection getPricingModels(RepositoryItem pProfile)
pProfile
- The user's profile from which the engine will extract promotions