Uses of Class
de.hybris.platform.ruleengineservices.rao.DiscountRAO
-
-
Uses of DiscountRAO in de.hybris.platform.promotionengineservices.action.impl
Methods in de.hybris.platform.promotionengineservices.action.impl with parameters of type DiscountRAO Modifier and Type Method Description protected voidDefaultOrderEntryAdjustActionStrategy. adjustDiscountRaoValue(AbstractOrderEntryModel entry, DiscountRAO discountRao, java.math.BigDecimal discountAmount)protected RuleBasedOrderAdjustTotalActionModelDefaultOrderAdjustTotalActionStrategy. createOrderAdjustTotalAction(PromotionResultModel promoResult, DiscountRAO discountRao) -
Uses of DiscountRAO in de.hybris.platform.promotionengineservices.promotionengine
Methods in de.hybris.platform.promotionengineservices.promotionengine with parameters of type DiscountRAO Modifier and Type Method Description voidPromotionActionService. createDiscountValue(DiscountRAO discountRao, java.lang.String code, AbstractOrderEntryModel orderEntry)Creates aDiscountValuefrom the givendiscountRaoand adds it to the givenorderEntry.voidPromotionActionService. createDiscountValue(DiscountRAO discountRao, java.lang.String code, AbstractOrderModel order)Creates aDiscountValuefrom the givendiscountRaoand adds it to the givenorder. -
Uses of DiscountRAO in de.hybris.platform.promotionengineservices.promotionengine.impl
Methods in de.hybris.platform.promotionengineservices.promotionengine.impl with parameters of type DiscountRAO Modifier and Type Method Description voidDefaultPromotionActionService. createDiscountValue(DiscountRAO discountRao, java.lang.String code, AbstractOrderEntryModel orderEntry)voidDefaultPromotionActionService. createDiscountValue(DiscountRAO discountRao, java.lang.String code, AbstractOrderModel order) -
Uses of DiscountRAO in de.hybris.platform.ruleengineservices.calculation
Methods in de.hybris.platform.ruleengineservices.calculation that return DiscountRAO Modifier and Type Method Description DiscountRAORuleEngineCalculationService. 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 givenfixedPricemultiplied by quantity.DiscountRAORuleEngineCalculationService. 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.DiscountRAORuleEngineCalculationService. 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 DiscountRAOAbstractRuleEngineTest. createDiscount(AbstractActionedRAO discountFor, java.lang.String discountValue, java.lang.String currencyIso)Methods in de.hybris.platform.ruleengineservices.calculation that return types with arguments of type DiscountRAO Modifier and Type Method 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 cartcartRao, with thefixedPricegiven as parameter and for the products from entries inselectedOrderEntryRaosand related quantities given inselectedOrderEntryMap.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 cartcartRao, adds it to the cartRao and updates the cartRao totals. -
Uses of DiscountRAO in de.hybris.platform.ruleengineservices.calculation.impl
Methods in de.hybris.platform.ruleengineservices.calculation.impl that return DiscountRAO Modifier and Type Method Description DiscountRAODefaultRuleEngineCalculationService. addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao, java.math.BigDecimal fixedPrice)DiscountRAODefaultRuleEngineCalculationService. addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao, boolean absolute, java.math.BigDecimal amount)creates a DiscountRAO for the given OrderEntryRAO based on the input.protected DiscountRAODefaultRuleEngineCalculationService. addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao, boolean absolute, java.math.BigDecimal amount, int consumedQty)DiscountRAODefaultRuleEngineCalculationService. addOrderLevelDiscount(CartRAO cartRao, boolean absolute, java.math.BigDecimal amount)creates a DiscountRAO for the given CartRAO based on the input.protected DiscountRAODefaultRuleEngineCalculationService. createAbsoluteDiscountRAO(LineItem lineItem, java.math.BigDecimal amount, int applicableUnits)Deprecated, for removal: This API element is subject to removal in a future version.protected DiscountRAODefaultRuleEngineCalculationService. createAbsoluteDiscountRAO(LineItem lineItem, java.math.BigDecimal amount, int applicableUnits, boolean perUnit)protected DiscountRAODefaultRuleEngineCalculationService. createDiscountRAO(AbstractDiscount discount)Creates a new DiscountRAO based on the given AbstractDiscount.Methods in de.hybris.platform.ruleengineservices.calculation.impl that return types with arguments of type DiscountRAO Modifier and Type Method 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) -
Uses of DiscountRAO in de.hybris.platform.ruleengineservices.converters
Methods in de.hybris.platform.ruleengineservices.converters with parameters of type DiscountRAO Modifier and Type Method Description protected LineItemDiscountAbstractOrderRaoToOrderConverter. convertToLineItemDiscount(DiscountRAO discountRao, AbstractOrderRAO cartRao)protected OrderDiscountAbstractOrderRaoToOrderConverter. convertToOrderDiscount(DiscountRAO discountRao, AbstractOrderRAO cartRao)protected booleanAbstractOrderRaoToOrderConverter. isDiscountNotOrderLevel(AbstractOrderRAO orderRAO, DiscountRAO discount) -
Uses of DiscountRAO in de.hybris.platform.ruleengineservices.rao.util
Methods in de.hybris.platform.ruleengineservices.rao.util that return DiscountRAO Modifier and Type Method Description DiscountRAODefaultRaoService. createDiscount()protected DiscountRAODefaultRaoService. createDiscount(double value)Methods in de.hybris.platform.ruleengineservices.rao.util with parameters of type DiscountRAO Modifier and Type Method Description protected voidDefaultRaoService. addCartDiscount(DiscountRAO discount, CartRAO cart)protected voidDefaultRaoService. addEntryDiscount(DiscountRAO discount, OrderEntryRAO entry) -
Uses of DiscountRAO in de.hybris.platform.ruleengineservices.rule.evaluation
Methods in de.hybris.platform.ruleengineservices.rule.evaluation that return DiscountRAO Modifier and Type Method Description DiscountRAOAddFixedPriceEntryDiscountRAOAction. addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao, java.math.BigDecimal fixedPrice, RuleEngineResultRAO result, java.lang.Object ruleContext)Adds an order entry level discount to the givenorderEntryRaosuch that the final price of the discounted order entry will be thefixedPrice.DiscountRAOAddOrderEntryDiscountRAOAction. addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao, boolean absolute, java.math.BigDecimal amount, RuleEngineResultRAO result, java.lang.Object ruleContext)Adds an order entry level discount to the givenorderEntryRao, recalculates the cart totals and returns the discount.DiscountRAOAddOrderDiscountRAOAction. addOrderLevelDiscount(CartRAO cartRao, boolean absolute, java.math.BigDecimal amount, RuleEngineResultRAO result, java.lang.Object ruleContext)Adds an order level discount to the givencartRao, recalculates the cart totals and returns the discount.DiscountRAOAddOrderDiscountRAOAction. 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 thecartRaoand recalculates cart totals.Methods in de.hybris.platform.ruleengineservices.rule.evaluation that return types with arguments of type DiscountRAO Modifier and Type Method 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 fromentriesSelectionStrategyRPDswhich 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 givenorderEntryRaosuch that the final price of the discounted order entry will be thefixedPrice.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 pricetargetPriceto a group of products, selecting them from order entries according to the givenentriesSelectionStrategyRPDs.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 fromentriesSelectionStrategyRPDswhich 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 inorderEntryList, recalculates the cart totals and returns the discount. -
Uses of DiscountRAO in de.hybris.platform.ruleengineservices.rule.evaluation.actions
Methods in de.hybris.platform.ruleengineservices.rule.evaluation.actions with parameters of type DiscountRAO Modifier and Type Method Description protected booleanAbstractRuleExecutableSupport. mergeDiscounts(RuleActionContext context, DiscountRAO discountRao, OrderEntryRAO entry) -
Uses of DiscountRAO in de.hybris.platform.ruleengineservices.rule.evaluation.actions.impl
Methods in de.hybris.platform.ruleengineservices.rule.evaluation.actions.impl that return types with arguments of type DiscountRAO Modifier and Type Method Description protected java.util.List<DiscountRAO>RuleOrderEntryPercentageDiscountWithStrategyRAOAction. addDiscountAndConsume(RuleActionContext context, java.util.List<EntriesSelectionStrategyRPD> selectionStrategies, boolean absolute, java.math.BigDecimal price)Deprecated, for removal: This API element is subject to removal in a future version.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>RulePartnerOrderEntryPercentageDiscountRAOAction. addDiscountAndConsume(RuleActionContext context, java.util.List<EntriesSelectionStrategyRPD> selectionStrategies, boolean absolute, java.math.BigDecimal price)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, for removal: This API element is subject to removal in a future version.Methods in de.hybris.platform.ruleengineservices.rule.evaluation.actions.impl with parameters of type DiscountRAO Modifier and Type Method Description protected voidRuleOrderEntryFixedPriceRAOAction. addDiscount(RuleActionContext context, OrderEntryRAO orderEntryRao, int quantity, DiscountRAO discount)protected voidRuleOrderEntryFixedPriceRAOAction. addDiscount(RuleActionContext context, OrderEntryRAO orderEntryRao, DiscountRAO discount)protected voidRuleAddFreeProductDiscountRAOAction. consumeAdditionalEntries(EntriesSelectionStrategyRPD selectionStrategy, java.util.Map<java.lang.Integer,java.lang.Integer> selectedOrderEntryMap, int totalToConsume, DiscountRAO discount)Deprecated, for removal: This API element is subject to removal in a future version.protected java.math.BigDecimalRuleOrderEntryFixedPriceRAOAction. getDiscountedPrice(DiscountRAO discount)Method parameters in de.hybris.platform.ruleengineservices.rule.evaluation.actions.impl with type arguments of type DiscountRAO Modifier and Type Method Description protected booleanRuleOrderEntryFixedPriceRAOAction. isDiscountApplicable(java.util.List<DiscountRAO> discounts, OrderEntryRAO orderEntryRao, java.math.BigDecimal cartThreshold, java.math.BigDecimal total, boolean discountedPriceIncluded) -
Uses of DiscountRAO in de.hybris.platform.ruleengineservices.util
Methods in de.hybris.platform.ruleengineservices.util that return types with arguments of type DiscountRAO Modifier and Type Method Description java.util.Set<DiscountRAO>RaoUtils. getDiscounts(AbstractActionedRAO actionedRao)Returns ordered set of Discounts of an ActionedRAO (filters out it actions getting only DiscountRAO).Methods in de.hybris.platform.ruleengineservices.util with parameters of type DiscountRAO Modifier and Type Method Description booleanRaoUtils. isAbsolute(DiscountRAO discount)Finds out if the Discount is absolute or not
-