addOrderEntryGroupFixedPriceDiscount
java.util.List<DiscountRAO> addOrderEntryGroupFixedPriceDiscount(AbstractOrderRAO order,
java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
java.math.BigDecimal targetPrice,
RuleEngineResultRAO result,
java.lang.Object ruleContext)
Sets the target price targetPrice
to a group of products, selecting them from order entries according to
the given entriesSelectionStrategyRPDs
.
- Parameters:
order
- the order / cart
entriesSelectionStrategyRPDs
- list of EntriesSelectionStrategyRPD
defining which and how many products should take part in the
promotion
targetPrice
- target price for the product group
result
- the result rao
ruleContext
- an optional context object that can be used to provide additional information for the returned
DiscountRAO
- Returns:
- list of discounts that should be applied to gain the target price.