The FilteredCommerceItem
object represents a CommerceItem
that is currently participating in a rules evaluation in the Qualifier. This object holds a reference to the object it is wrapping. Item
points to the wrapped CommerceItem
. All CommerceItem
methods except quantity
call through to the wrapped item.
atg.commerce.pricing.FilteredCommerceItem
adds four properties that are used to determine if and how the wrapped CommerceItem
should participate in pricing:
quantityAsQualifierDetails
—A map ofDetailedItemPriceInfo
objects toRange
objects, which state the units of the details that have acted as a qualifier for something.detailsRangesValidForTarget
—A map ofDetailedItemPriceInfo
objects to the number of details that are available for discounting based on the exclusion rules defined by various properties in theQualifier
.priceQuote
—The value of the currentItemPriceInfo
.usePriceQuote
—A Boolean set totrue
after the PMDL has been evaluated. When true, calls togetPriceInfo
return thepriceQuote
, ensuring that the evaluation process uses the most current price information.