RAOAction hierarchy instead@Deprecated public class DefaultAddProductDiscountRAOAction extends AbstractCommerceRAOAction implements AddProductDiscountRAOAction
| Constructor and Description |
|---|
DefaultAddProductDiscountRAOAction()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
DiscountRAO |
addProductDiscount(ProductRAO productRao,
boolean absolute,
String currencyIsoCode,
BigDecimal amount,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
Adds a discount to the given
productRao and returns the discount. |
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 DefaultAddProductDiscountRAOAction()
public DiscountRAO addProductDiscount(ProductRAO productRao, boolean absolute, String currencyIsoCode, BigDecimal amount, RuleEngineResultRAO result, Object ruleContext)
AddProductDiscountRAOActionproductRao and returns the discount. The absolute flag determines
whether the discount is absolute or percentage based. For absolute values, the given currencyIsoCode is
used. The amount specifies the amount used, e.g. $20 or 10%. The ruleContext can be used to
enhance the returned DiscountRAO.addProductDiscount in interface AddProductDiscountRAOActionproductRao - the productRao to apply the discount toabsolute - the type of discountcurrencyIsoCode - the currency (only needed if absolute is set to trueamount - the amount of the discountresult - the result raoruleContext - an optional context object that can be used to provide additional information for the returned
DiscountRAOCopyright © 2017 SAP SE. All Rights Reserved.