| Modifier and Type | Method and Description |
|---|---|
DiscountRAO |
DefaultAddFixedPriceEntryDiscountRAOAction.addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao,
BigDecimal fixedPrice,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
|
DiscountRAO |
DefaultAddOrderEntryDiscountRAOAction.addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao,
boolean absolute,
BigDecimal amount,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
|
DiscountRAO |
DefaultAddOrderDiscountRAOAction.addOrderLevelDiscount(CartRAO cartRao,
boolean absolute,
BigDecimal amount,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
|
DiscountRAO |
DefaultAddOrderDiscountRAOAction.addOrderLevelDiscount(CartRAO cartRao,
boolean absolute,
BigDecimal amount,
String[] excludedProducts,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
|
DiscountRAO |
DefaultAddProductDiscountRAOAction.addProductDiscount(ProductRAO productRao,
boolean absolute,
String currencyIsoCode,
BigDecimal amount,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<DiscountRAO> |
DefaultAddFreeProductDiscountAction.addDiscount(EntriesSelectionStrategyRPD entriesSelectionStrategyRPD,
int quantity,
int consumed,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
|
protected List<DiscountRAO> |
DefaultAddOrderEntryDiscountRAOAction.addDiscountAndConsume(List<EntriesSelectionStrategyRPD> selectionStrategies,
boolean absolute,
BigDecimal price,
RuleEngineResultRAO result,
KnowledgeHelper context)
Deprecated.
|
List<DiscountRAO> |
DefaultAddFixedPriceEntryDiscountRAOAction.addFixedPriceEntriesDiscount(List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
BigDecimal fixedPrice,
int maxQuantity,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
|
protected List<DiscountRAO> |
DefaultAddFixedPriceEntryDiscountRAOAction.addFixedPriceEntryDiscount(List<EntriesSelectionStrategyRPD> selectionStrategies,
BigDecimal fixedPrice)
Deprecated.
|
List<DiscountRAO> |
DefaultAddFixedPriceEntryDiscountRAOAction.addFixedPriceEntryDiscounts(Collection<OrderEntryRAO> orderEntryList,
BigDecimal fixedPrice,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
|
protected List<DiscountRAO> |
DefaultAddFreeProductDiscountAction.addFreeOrderEntryLevelDiscount(EntriesSelectionStrategyRPD selectionStrategy,
int consumeableQty,
KnowledgeHelper context)
Deprecated.
|
List<DiscountRAO> |
DefaultAddOrderEntryGroupFixedPriceDiscountRAOAction.addOrderEntryGroupFixedPriceDiscount(AbstractOrderRAO order,
List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
BigDecimal targetPrice,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
|
List<DiscountRAO> |
DefaultAddOrderEntryDiscountRAOAction.addOrderEntryLevelDiscount(List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
boolean absolute,
BigDecimal amount,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
|
List<DiscountRAO> |
DefaultAddOrderEntryDiscountRAOAction.addOrderEntryLevelDiscounts(Collection<OrderEntryRAO> orderEntryList,
boolean absolute,
BigDecimal amount,
RuleEngineResultRAO result,
Object ruleContext)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultAddFreeProductDiscountAction.consumeAdditionalEntries(EntriesSelectionStrategyRPD selectionStrategy,
Map<Integer,Integer> selectedOrderEntryMap,
int totalToConsume,
DiscountRAO discount)
Deprecated.
|
protected boolean |
DefaultAddOrderEntryDiscountRAOAction.mergeDiscounts(DiscountRAO discountRao,
OrderEntryRAO entry,
KnowledgeHelper context)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultOrderEntryAdjustActionStrategy.adjustDiscountRaoValue(AbstractOrderEntryModel entry,
DiscountRAO discountRao,
BigDecimal discountAmount) |
protected RuleBasedOrderAdjustTotalActionModel |
DefaultOrderAdjustTotalActionStrategy.createOrderAdjustTotalAction(PromotionResultModel promoResult,
DiscountRAO discountRao) |
| Modifier and Type | Method and Description |
|---|---|
void |
PromotionActionService.createDiscountValue(DiscountRAO discountRao,
String code,
AbstractOrderEntryModel orderEntry)
Creates a
DiscountValue from the given discountRao and adds it to the given orderEntry. |
void |
PromotionActionService.createDiscountValue(DiscountRAO discountRao,
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,
String code,
AbstractOrderEntryModel orderEntry) |
void |
DefaultPromotionActionService.createDiscountValue(DiscountRAO discountRao,
String code,
AbstractOrderModel order) |
| Modifier and Type | Method and Description |
|---|---|
DiscountRAO |
RuleEngineCalculationService.addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao,
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.addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao,
boolean absolute,
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.addOrderLevelDiscount(CartRAO cartRao,
boolean absolute,
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,
String discountValue,
String currencyIso) |
| Modifier and Type | Method and Description |
|---|---|
List<DiscountRAO> |
RuleEngineCalculationService.addFixedPriceEntriesDiscount(CartRAO cartRao,
Map<Integer,Integer> selectedOrderEntryMap,
Set<OrderEntryRAO> selectedOrderEntryRaos,
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. |
List<DiscountRAO> |
RuleEngineCalculationService.addOrderEntryLevelDiscount(Map<Integer,Integer> selectedOrderEntryMap,
Set<OrderEntryRAO> selectedOrderEntryRaos,
boolean absolute,
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,
BigDecimal fixedPrice) |
DiscountRAO |
DefaultRuleEngineCalculationService.addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao,
boolean absolute,
BigDecimal amount)
creates a DiscountRAO for the given OrderEntryRAO based on the input.
|
DiscountRAO |
DefaultRuleEngineCalculationService.addOrderLevelDiscount(CartRAO cartRao,
boolean absolute,
BigDecimal amount)
creates a DiscountRAO for the given CartRAO based on the input.
|
protected DiscountRAO |
DefaultRuleEngineCalculationService.createDiscountRAO(AbstractDiscount discount)
Creates a new DiscountRAO based on the given AbstractDiscount.
|
| Modifier and Type | Method and Description |
|---|---|
List<DiscountRAO> |
DefaultRuleEngineCalculationService.addFixedPriceEntriesDiscount(CartRAO cartRao,
Map<Integer,Integer> selectedOrderEntryMap,
Set<OrderEntryRAO> selectedOrderEntryRaos,
BigDecimal fixedPrice) |
List<DiscountRAO> |
DefaultRuleEngineCalculationService.addOrderEntryLevelDiscount(Map<Integer,Integer> selectedOrderEntryMap,
Set<OrderEntryRAO> selectedOrderEntryRaos,
boolean absolute,
BigDecimal amount) |
| Modifier and Type | Method and Description |
|---|---|
protected LineItemDiscount |
AbstractOrderRaoToOrderConverter.convertToLineItemDiscount(DiscountRAO discountRao,
AbstractOrderRAO cartRao) |
protected OrderDiscount |
AbstractOrderRaoToOrderConverter.convertToOrderDiscount(DiscountRAO discountRao,
AbstractOrderRAO cartRao) |
| 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,
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. |
DiscountRAO |
AddOrderEntryDiscountRAOAction.addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao,
boolean absolute,
BigDecimal amount,
RuleEngineResultRAO result,
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,
BigDecimal amount,
RuleEngineResultRAO result,
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,
BigDecimal amount,
String[] excludedProducts,
RuleEngineResultRAO result,
Object ruleContext)
Adds an order-level discount to the
cartRao and recalculates cart totals. |
DiscountRAO |
AddProductDiscountRAOAction.addProductDiscount(ProductRAO productRao,
boolean absolute,
String currencyIsoCode,
BigDecimal amount,
RuleEngineResultRAO result,
Object ruleContext)
Adds a discount to the given
productRao and returns the discount. |
| Modifier and Type | Method and Description |
|---|---|
List<DiscountRAO> |
AddFreeProductDiscountAction.addDiscount(EntriesSelectionStrategyRPD entriesSelectionStrategyRPD,
int quantity,
int consumed,
RuleEngineResultRAO result,
Object ruleContext)
Adds order level discounts to order entries contained within selection strategies.
|
List<DiscountRAO> |
AddFixedPriceEntryDiscountRAOAction.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. |
List<DiscountRAO> |
AddFixedPriceEntryDiscountRAOAction.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. |
List<DiscountRAO> |
AddOrderEntryGroupFixedPriceDiscountRAOAction.addOrderEntryGroupFixedPriceDiscount(AbstractOrderRAO order,
List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
BigDecimal targetPrice,
RuleEngineResultRAO result,
Object ruleContext)
Sets the target price
targetPrice to a group of products, selecting them from order entries according to
the given entriesSelectionStrategyRPDs. |
List<DiscountRAO> |
AddOrderEntryDiscountRAOAction.addOrderEntryLevelDiscount(List<EntriesSelectionStrategyRPD> entriesSelectionStrategyRPDs,
boolean absolute,
BigDecimal amount,
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. |
List<DiscountRAO> |
AddOrderEntryDiscountRAOAction.addOrderEntryLevelDiscounts(Collection<OrderEntryRAO> orderEntryList,
boolean absolute,
BigDecimal amount,
RuleEngineResultRAO result,
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 List<DiscountRAO> |
RuleOrderEntryPercentageDiscountWithStrategyRAOAction.addDiscountAndConsume(RuleActionContext context,
List<EntriesSelectionStrategyRPD> selectionStrategies,
boolean absolute,
BigDecimal price) |
protected List<DiscountRAO> |
RulePartnerOrderEntryPercentageDiscountRAOAction.addDiscountAndConsume(RuleActionContext context,
List<EntriesSelectionStrategyRPD> selectionStrategies,
boolean absolute,
BigDecimal price) |
protected List<DiscountRAO> |
RulePartnerOrderEntryFixedDiscountRAOAction.addDiscountAndConsume(RuleActionContext context,
List<EntriesSelectionStrategyRPD> selectionStrategies,
boolean absolute,
BigDecimal price,
RuleEngineResultRAO result) |
protected List<DiscountRAO> |
RulePartnerOrderEntryFixedPriceRAOAction.addFixedPriceEntryDiscount(List<EntriesSelectionStrategyRPD> selectionStrategies,
BigDecimal fixedPrice) |
protected List<DiscountRAO> |
RuleAddFreeProductDiscountRAOAction.addFreeOrderEntryLevelDiscount(Collection<EntriesSelectionStrategyRPD> strategies,
int consumeableQty,
RuleActionContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
RuleAddFreeProductDiscountRAOAction.consumeAdditionalEntries(EntriesSelectionStrategyRPD selectionStrategy,
Map<Integer,Integer> selectedOrderEntryMap,
int totalToConsume,
DiscountRAO discount) |
| Modifier and Type | Method and Description |
|---|---|
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 © 2017 SAP SE. All Rights Reserved.