@Deprecated
public interface AddProductDiscountRAOAction
| Modifier and Type | Method and Description |
|---|---|
DiscountRAO |
addProductDiscount(ProductRAO productRao,
boolean absolute,
java.lang.String currencyIsoCode,
java.math.BigDecimal amount,
RuleEngineResultRAO result,
java.lang.Object ruleContext)
Deprecated.
Adds a discount to the given
productRao and returns the discount. |
DiscountRAO addProductDiscount(ProductRAO productRao, boolean absolute, java.lang.String currencyIsoCode, java.math.BigDecimal amount, RuleEngineResultRAO result, java.lang.Object ruleContext)
productRao 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.productRao - the productRao to apply the discount toabsolute - the type of discountamount - the amount of the discountcurrencyIsoCode - the currency (only needed if absolute is set to trueresult - the result raoruleContext - an optional context object that can be used to provide additional information for the returned
DiscountRAOCopyright © 2018 SAP SE. All Rights Reserved.