RAOAction hierarchy instead@Deprecated public class DefaultAddFixedPriceEntryDiscountRAOAction extends AbstractCommerceRAOAction implements AddFixedPriceEntryDiscountRAOAction
| Constructor and Description |
|---|
DefaultAddFixedPriceEntryDiscountRAOAction()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<DiscountRAO> |
addFixedPriceEntriesDiscount(List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
BigDecimal fixedPrice,
int maxQuantity,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
Adds order entry level discounts to the order entries selected by strategies from
entriesSelectionStrategyRPDs which are marked to be target for the action. |
protected List<DiscountRAO> |
addFixedPriceEntryDiscount(List<EntriesSelectionStrategyRPD> selectionStrategies,
BigDecimal fixedPrice)
Deprecated.
|
DiscountRAO |
addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao,
BigDecimal fixedPrice,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
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> orderEntryList,
BigDecimal fixedPrice,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
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. |
adjustStrategyQuantity, adjustUnitPrice, adjustUnitPrice, consumeOrderEntries, consumeOrderEntries, consumeOrderEntry, consumeOrderEntry, createOrderEntryConsumedRAO, getBeanName, getEntriesSelectionStrategies, getNotExecutableActionStrategy, getRaoUtils, getRuleConfigurationRRD, getRuleEngineCalculationService, getRuleGroupExecutionRRD, getSelectedOrderEntryQuantities, getSelectedOrderEntryRaos, hasEnoughQuantity, hasEnoughQuantity, setBeanName, setEntriesSelectionStrategies, setNotExecutableActionStrategy, setRAOMetaData, setRaoUtils, setRuleEngineCalculationService, splitEntriesSelectionStrategies, trackRuleExecution, trackRuleGroupExecution, trackRuleGroupExecutions, updateActionRAOWithConsumed, validateCurrencyIsoCode, validateSelectionStrategycheckAndGetRuleContext, getConfigurationService, getMetaDataFromRule, getMetaDataFromRule, getRuleCode, insertFacts, insertFacts, setConfigurationService, updateFacts, validateRulepublic DefaultAddFixedPriceEntryDiscountRAOAction()
public DiscountRAO addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao, BigDecimal fixedPrice, RuleEngineResultRAO result, Object ruleContext)
AddFixedPriceEntryDiscountRAOActionorderEntryRao such that the final price of the discounted
order entry will be the fixedPrice.addFixedPriceEntryDiscount in interface AddFixedPriceEntryDiscountRAOActionorderEntryRao - 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
DiscountRAOpublic List<DiscountRAO> addFixedPriceEntryDiscounts(Collection<OrderEntryRAO> orderEntryList, BigDecimal fixedPrice, RuleEngineResultRAO result, Object ruleContext)
AddFixedPriceEntryDiscountRAOActionorderEntryRao such that the final price of the
discounted order entry will be the fixedPrice.addFixedPriceEntryDiscounts in interface AddFixedPriceEntryDiscountRAOActionorderEntryList - 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
DiscountRAOprotected List<DiscountRAO> addFixedPriceEntryDiscount(List<EntriesSelectionStrategyRPD> selectionStrategies, BigDecimal fixedPrice)
public List<DiscountRAO> addFixedPriceEntriesDiscount(List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs, BigDecimal fixedPrice, int maxQuantity, RuleEngineResultRAO result, Object ruleContext)
AddFixedPriceEntryDiscountRAOActionentriesSelectionStrategyRPDs 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.addFixedPriceEntriesDiscount in interface AddFixedPriceEntryDiscountRAOActionentriesSelectionStrategyRPDs - 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.