public interface PromotionQualifyingFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
void |
filterItems(int pFilterContext,
PricingContext PricingContext,
java.util.Map pExtraParameters,
java.util.Map pDetailsPendingActingAsQualifier,
java.util.Map pDetailsRangesToReceiveDiscount,
java.util.List pFilteredItems)
Implementations should ensure the pFilteredItems list contains
the appropriate FilteredCommerceItem items.
|
static final java.lang.String CLASS_VERSION
void filterItems(int pFilterContext, PricingContext PricingContext, java.util.Map pExtraParameters, java.util.Map pDetailsPendingActingAsQualifier, java.util.Map pDetailsRangesToReceiveDiscount, java.util.List pFilteredItems) throws PricingException
This list will be empty initially and so usually the first filter will populate the list from the pricing context items (this is the default behaviour of the Qualifier service).
Subsequent filters need only then filter items out of this list.
pFilterContext
- int context of the filtering, e.g. qualifier or target filteringpPricingContext
- PricingContext to filter withpExtraParameters
- Map of extra parameterspDetailsPendingActingAsQualifier
- the Ranges of various DetailedItemPriceInfos
that are pending for qualifying this promotion.pDetailsRangesToReceiveDiscount
- the Ranges of various DetailedItemPriceInfos
that are going to receive the discountpFilteredItems
- output param which represents the CommerceItems still valid for the filter contextPricingException
- for problems filtering.