| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
PromotionEngineServicesKeywordLibrary.getProductPriceWithPromotion(ProductModel productModel,
DiscountRAO discount) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultOrderEntryAdjustActionStrategy.adjustDiscountRaoValue(AbstractOrderEntryModel entry,
DiscountRAO discountRao,
java.math.BigDecimal discountAmount) |
protected RuleBasedOrderAdjustTotalActionModel |
DefaultOrderAdjustTotalActionStrategy.createOrderAdjustTotalAction(PromotionResultModel promoResult,
DiscountRAO discountRao) |
| Modifier and Type | Method and Description |
|---|---|
void |
PromotionActionService.createDiscountValue(DiscountRAO discountRao,
java.lang.String code,
AbstractOrderEntryModel orderEntry)
Creates a
DiscountValue from the given discountRao and adds it to the given orderEntry. |
void |
PromotionActionService.createDiscountValue(DiscountRAO discountRao,
java.lang.String code,
AbstractOrderModel order)
Creates a
DiscountValue from the given discountRao and adds it to the given order. |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultPromotionActionService.createDiscountValue(DiscountRAO discountRao,
java.lang.String code,
AbstractOrderEntryModel orderEntry) |
void |
DefaultPromotionActionService.createDiscountValue(DiscountRAO discountRao,
java.lang.String code,
AbstractOrderModel order) |
| Modifier and Type | Method and Description |
|---|---|
DiscountRAO |
RuleEngineCalculationService.addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao,
java.math.BigDecimal fixedPrice)
Creates a new order entry level discount such that the order entry's price will be equal to the given
fixedPrice multiplied by quantity. |
DiscountRAO |
RuleEngineCalculationService.addFixedPriceEntryDiscountStackable(OrderEntryRAO orderEntryRao,
java.math.BigDecimal fixedPrice)
Deprecated.
since 6.7
|
DiscountRAO |
RuleEngineCalculationService.addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao,
boolean absolute,
java.math.BigDecimal amount)
Creates a new order entry level discount based on the given values, adds it to the corresponding orderRao and
updates the orderRao totals.
|
DiscountRAO |
RuleEngineCalculationService.addOrderEntryLevelDiscountStackable(OrderEntryRAO orderEntryRao,
boolean absolute,
java.math.BigDecimal amount)
Deprecated.
since 6.7
|
DiscountRAO |
RuleEngineCalculationService.addOrderLevelDiscount(CartRAO cartRao,
boolean absolute,
java.math.BigDecimal amount)
Creates a new order level discount based on the given values, adds it to the cartRao and updates the cartRao
totals.
|
protected DiscountRAO |
AbstractRuleEngineTest.createDiscount(AbstractActionedRAO discountFor,
java.lang.String discountValue,
java.lang.String currencyIso) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<DiscountRAO> |
RuleEngineCalculationService.addFixedPriceEntriesDiscount(CartRAO cartRao,
java.util.Map<java.lang.Integer,java.lang.Integer> selectedOrderEntryMap,
java.util.Set<OrderEntryRAO> selectedOrderEntryRaos,
java.math.BigDecimal fixedPrice)
Creates order entry level discounts for the cart
cartRao, with the fixedPrice given as parameter
and for the products from entries in selectedOrderEntryRaos and related quantities given in
selectedOrderEntryMap. |
java.util.List<DiscountRAO> |
RuleEngineCalculationService.addOrderEntryLevelDiscount(java.util.Map<java.lang.Integer,java.lang.Integer> selectedOrderEntryMap,
java.util.Set<OrderEntryRAO> selectedOrderEntryRaos,
boolean absolute,
java.math.BigDecimal amount)
Creates order entry level discounts for the cart
cartRao, adds it to the cartRao and updates the cartRao
totals. |
| Modifier and Type | Method and Description |
|---|---|
DiscountRAO |
DefaultRuleEngineCalculationService.addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao,
java.math.BigDecimal fixedPrice) |
DiscountRAO |
DefaultRuleEngineCalculationService.addFixedPriceEntryDiscountStackable(OrderEntryRAO orderEntryRao,
java.math.BigDecimal fixedPrice)
Deprecated.
since 6.7
|
DiscountRAO |
DefaultRuleEngineCalculationService.addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao,
boolean absolute,
java.math.BigDecimal amount)
creates a DiscountRAO for the given OrderEntryRAO based on the input.
|
protected DiscountRAO |
DefaultRuleEngineCalculationService.addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao,
boolean absolute,
java.math.BigDecimal amount,
int consumedQty) |
DiscountRAO |
DefaultRuleEngineCalculationService.addOrderEntryLevelDiscountStackable(OrderEntryRAO orderEntryRao,
boolean absolute,
java.math.BigDecimal amount)
Deprecated.
since 6.7
|
DiscountRAO |
DefaultRuleEngineCalculationService.addOrderLevelDiscount(CartRAO cartRao,
boolean absolute,
java.math.BigDecimal amount)
creates a DiscountRAO for the given CartRAO based on the input.
|
protected DiscountRAO |
DefaultRuleEngineCalculationService.createAbsoluteDiscountRAO(LineItem lineItem,
java.math.BigDecimal amount,
int applicableUnits) |
protected DiscountRAO |
DefaultRuleEngineCalculationService.createAbsoluteDiscountRAO(LineItem lineItem,
java.math.BigDecimal amount,
int applicableUnits,
boolean perUnit) |
protected DiscountRAO |
DefaultRuleEngineCalculationService.createDiscountRAO(AbstractDiscount discount)
Creates a new DiscountRAO based on the given AbstractDiscount.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<DiscountRAO> |
DefaultRuleEngineCalculationService.addFixedPriceEntriesDiscount(CartRAO cartRao,
java.util.Map<java.lang.Integer,java.lang.Integer> selectedOrderEntryMap,
java.util.Set<OrderEntryRAO> selectedOrderEntryRaos,
java.math.BigDecimal fixedPrice) |
java.util.List<DiscountRAO> |
DefaultRuleEngineCalculationService.addOrderEntryLevelDiscount(java.util.Map<java.lang.Integer,java.lang.Integer> selectedOrderEntryMap,
java.util.Set<OrderEntryRAO> selectedOrderEntryRaos,
boolean absolute,
java.math.BigDecimal amount) |
| Modifier and Type | Method and Description |
|---|---|
protected LineItemDiscount |
AbstractOrderRaoToOrderConverter.convertToLineItemDiscount(DiscountRAO discountRao,
AbstractOrderRAO cartRao) |
protected OrderDiscount |
AbstractOrderRaoToOrderConverter.convertToOrderDiscount(DiscountRAO discountRao,
AbstractOrderRAO cartRao) |
protected boolean |
AbstractOrderRaoToOrderConverter.isDiscountNotOrderLevel(AbstractOrderRAO orderRAO,
DiscountRAO discount) |
| Modifier and Type | Method and Description |
|---|---|
DiscountRAO |
DefaultRaoService.createDiscount() |
protected DiscountRAO |
DefaultRaoService.createDiscount(double value) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultRaoService.addCartDiscount(DiscountRAO discount,
CartRAO cart) |
protected void |
DefaultRaoService.addEntryDiscount(DiscountRAO discount,
OrderEntryRAO entry) |
| Modifier and Type | Method and Description |
|---|---|
DiscountRAO |
AddFixedPriceEntryDiscountRAOAction.addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao,
java.math.BigDecimal fixedPrice,
RuleEngineResultRAO result,
java.lang.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. |
DiscountRAO |
AddOrderEntryDiscountRAOAction.addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao,
boolean absolute,
java.math.BigDecimal amount,
RuleEngineResultRAO result,
java.lang.Object ruleContext)
Adds an order entry level discount to the given
orderEntryRao, recalculates the cart totals and returns
the discount. |
DiscountRAO |
AddOrderDiscountRAOAction.addOrderLevelDiscount(CartRAO cartRao,
boolean absolute,
java.math.BigDecimal amount,
RuleEngineResultRAO result,
java.lang.Object ruleContext)
Adds an order level discount to the given
cartRao, recalculates the cart totals and returns the discount. |
DiscountRAO |
AddOrderDiscountRAOAction.addOrderLevelDiscount(CartRAO cartRao,
boolean absolute,
java.math.BigDecimal amount,
java.lang.String[] excludedProducts,
RuleEngineResultRAO result,
java.lang.Object ruleContext)
Adds an order-level discount to the
cartRao and recalculates cart totals. |
DiscountRAO |
AddProductDiscountRAOAction.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. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<DiscountRAO> |
AddFreeProductDiscountAction.addDiscount(EntriesSelectionStrategyRPD entriesSelectionStrategyRPD,
int quantity,
int consumed,
RuleEngineResultRAO result,
java.lang.Object ruleContext)
Adds order level discounts to order entries contained within selection strategies.
|
java.util.List<DiscountRAO> |
AddFixedPriceEntryDiscountRAOAction.addFixedPriceEntriesDiscount(java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
java.math.BigDecimal fixedPrice,
int maxQuantity,
RuleEngineResultRAO result,
java.lang.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. |
java.util.List<DiscountRAO> |
AddFixedPriceEntryDiscountRAOAction.addFixedPriceEntryDiscounts(java.util.Collection<OrderEntryRAO> orderEntryRao,
java.math.BigDecimal fixedPrice,
RuleEngineResultRAO result,
java.lang.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. |
java.util.List<DiscountRAO> |
AddOrderEntryGroupFixedPriceDiscountRAOAction.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. |
java.util.List<DiscountRAO> |
AddOrderEntryDiscountRAOAction.addOrderEntryLevelDiscount(java.util.List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
boolean absolute,
java.math.BigDecimal amount,
RuleEngineResultRAO result,
java.lang.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. |
java.util.List<DiscountRAO> |
AddOrderEntryDiscountRAOAction.addOrderEntryLevelDiscounts(java.util.Collection<OrderEntryRAO> orderEntryList,
boolean absolute,
java.math.BigDecimal amount,
RuleEngineResultRAO result,
java.lang.Object ruleContext)
Adds an order entry level discount for each order entry element in
orderEntryList, recalculates the cart
totals and returns the discount. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
AbstractRuleExecutableSupport.mergeDiscounts(RuleActionContext context,
DiscountRAO discountRao,
OrderEntryRAO entry) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<DiscountRAO> |
RulePartnerOrderEntryPercentageDiscountRAOAction.addDiscountAndConsume(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> selectionStrategies,
boolean absolute,
java.math.BigDecimal price) |
protected java.util.List<DiscountRAO> |
RuleOrderEntryPercentageDiscountWithStrategyRAOAction.addDiscountAndConsume(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> selectionStrategies,
boolean absolute,
java.math.BigDecimal price)
Deprecated.
|
protected java.util.List<DiscountRAO> |
RulePartnerOrderEntryFixedDiscountRAOAction.addDiscountAndConsume(RuleActionContext context,
java.util.List<EntriesSelectionStrategyRPD> selectionStrategies,
boolean absolute,
java.math.BigDecimal price,
RuleEngineResultRAO result) |
protected java.util.List<DiscountRAO> |
RulePartnerOrderEntryFixedPriceRAOAction.addFixedPriceEntryDiscount(java.util.List<EntriesSelectionStrategyRPD> selectionStrategies,
java.math.BigDecimal fixedPrice,
RuleActionContext context) |
protected java.util.List<DiscountRAO> |
RuleAddFreeProductDiscountRAOAction.addFreeOrderEntryLevelDiscount(java.util.Collection<EntriesSelectionStrategyRPD> strategies,
int consumeableQty,
RuleActionContext context)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
RuleOrderEntryFixedPriceRAOAction.addDiscount(RuleActionContext context,
OrderEntryRAO orderEntryRao,
DiscountRAO discount) |
protected void |
RuleOrderEntryFixedPriceRAOAction.addDiscount(RuleActionContext context,
OrderEntryRAO orderEntryRao,
int quantity,
DiscountRAO discount) |
protected void |
RuleAddFreeProductDiscountRAOAction.consumeAdditionalEntries(EntriesSelectionStrategyRPD selectionStrategy,
java.util.Map<java.lang.Integer,java.lang.Integer> selectedOrderEntryMap,
int totalToConsume,
DiscountRAO discount)
Deprecated.
|
protected java.math.BigDecimal |
RuleOrderEntryFixedPriceRAOAction.getDiscountedPrice(DiscountRAO discount) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
RuleOrderEntryFixedPriceRAOAction.isDiscountApplicable(java.util.List<DiscountRAO> discounts,
OrderEntryRAO orderEntryRao,
java.math.BigDecimal cartThreshold,
java.math.BigDecimal total,
boolean discountedPriceIncluded) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<DiscountRAO> |
RaoUtils.getDiscounts(AbstractActionedRAO actionedRao)
Returns ordered set of Discounts of an ActionedRAO (filters out it actions getting only DiscountRAO).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
RaoUtils.isAbsolute(DiscountRAO discount)
Finds out if the Discount is absolute or not
|
Copyright © 2018 SAP SE. All Rights Reserved.