public interface ItemPriceSourceHandler
ItemPriceSource
objects
from previously priced Orders and to consume ItemPriceSource
objects during a pricing operation.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
ItemPriceSource |
getItemPriceSource(ItemPriceInfo pPriceQuote,
CommerceItem pItem,
RepositoryItem pPricingModel,
java.util.Locale pLocale,
RepositoryItem pProfile,
java.util.Map pExtraParameters)
This interface is called by the calculator at pricing time to return an
ItemPriceSource
that's matches the item being priced. |
boolean |
populateItemPriceSource(ItemPriceSource pItemPriceSource,
Order pOrder,
CommerceItem pCommerceItem,
CommerceItem pParentCommerceItem,
java.util.Map pExtraParameters)
This interface is called when generating source objects from a previously priced Order.
|
boolean |
shouldConsumeSource(ItemPriceSource pItemPriceSource)
This method is called to determine the given code>ItemPriceSource should be used by the calculator
to price the item.
|
static final java.lang.String CLASS_VERSION
boolean populateItemPriceSource(ItemPriceSource pItemPriceSource, Order pOrder, CommerceItem pCommerceItem, CommerceItem pParentCommerceItem, java.util.Map pExtraParameters)
ItemPriceSource
based on the pricing information in the Order.
The source should contain enough information so the calculator can generate the price using the source during
a pricing operation.pItemPriceSource
- the source being generated and populated with pricing data.pOrder
- the OrderpCommerceItem
- the item for which the source is being createdpParentCommerceItem
- the item that contained pCommerceItempExtraParameters
- a Map of extra parameters objects that was passed to the initial call to generate the source objects.ItemPriceSource
properties were updatedItemPriceSource getItemPriceSource(ItemPriceInfo pPriceQuote, CommerceItem pItem, RepositoryItem pPricingModel, java.util.Locale pLocale, RepositoryItem pProfile, java.util.Map pExtraParameters)
ItemPriceSource
that's matches the item being priced.pPriceQuote
- the new ItemPriceInfo for that's being generated in the pricing operationpItem
- the commerce item that's being pricedpPricingModel
- the current pricing modelpLocale
- the localepProfile
- the customer profile referencepExtraParameters
- the extra parameter map passed to the pricing operation.boolean shouldConsumeSource(ItemPriceSource pItemPriceSource)