public interface AddFixedPriceEntryDiscountRAOAction
| Modifier and Type | Method and Description |
|---|---|
List<DiscountRAO> |
addFixedPriceEntriesDiscount(List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
BigDecimal fixedPrice,
int maxQuantity,
RuleEngineResultRAO result,
Object ruleContext)
Adds order entry level discounts to the order entries selected by strategies from
entriesSelectionStrategyRPDs which are marked to be target for the action. |
DiscountRAO |
addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao,
BigDecimal fixedPrice,
RuleEngineResultRAO result,
Object ruleContext)
Adds an order entry level discount to the given
orderEntryRao such that the final price of the discounted
order entry will be the fixedPrice. |
List<DiscountRAO> |
addFixedPriceEntryDiscounts(Collection<OrderEntryRAO> orderEntryRao,
BigDecimal fixedPrice,
RuleEngineResultRAO result,
Object ruleContext)
Adds an order entry level discount to each of the the given
orderEntryRao such that the final price of the
discounted order entry will be the fixedPrice. |
DiscountRAO addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao, BigDecimal fixedPrice, RuleEngineResultRAO result, Object ruleContext)
orderEntryRao such that the final price of the discounted
order entry will be the fixedPrice.orderEntryRao - the OrderEntryRAO to apply the discount tofixedPrice - the target unit price for the order entryresult - the result raoruleContext - an optional context object that can be used to provide additional information for the returned
DiscountRAOList<DiscountRAO> addFixedPriceEntryDiscounts(Collection<OrderEntryRAO> orderEntryRao, BigDecimal fixedPrice, RuleEngineResultRAO result, Object ruleContext)
orderEntryRao such that the final price of the
discounted order entry will be the fixedPrice.orderEntryRao - collection of OrderEntryRAO to apply the discount tofixedPrice - the target unit price for the order entryresult - the result raoruleContext - an optional context object that can be used to provide additional information for the returned
DiscountRAOList<DiscountRAO> addFixedPriceEntriesDiscount(List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs, BigDecimal fixedPrice, int maxQuantity, RuleEngineResultRAO result, Object ruleContext)
entriesSelectionStrategyRPDs which are marked to be target for the action. The discount is such that the
final price of the discounted order entry will be fixedPrice.entriesSelectionStrategyRPDs - list of strategies used to select order entries and their applicable quantities. Discounts are created
for the entries from the strategies which have isTargetOfAction = true. Other entries are just
consumed, but not discounted.fixedPrice - the target unit price for the order entryresult - RuleEngineResultRAO that will be updated with discountsruleContext - an optional context object that can be used to provide additional information for the returned
DiscountRAOCopyright © 2017 SAP SE. All Rights Reserved.