Uses of Class
de.hybris.order.calculation.domain.LineItemDiscount
-
-
Uses of LineItemDiscount in de.hybris.order.calculation.domain
Methods in de.hybris.order.calculation.domain that return types with arguments of type LineItemDiscount Modifier and Type Method Description java.util.List<LineItemDiscount>LineItem. getDiscounts()Returns all discounts assigned to this line item.java.util.Map<LineItemDiscount,Money>LineItem. getTotalDiscounts()Calculates the totals of all line item discounts separately.Methods in de.hybris.order.calculation.domain with parameters of type LineItemDiscount Modifier and Type Method Description voidLineItem. addDiscount(int index, LineItemDiscount discount)Adds a single discount to this line item at a specific position.voidLineItem. addDiscount(LineItemDiscount discount)Adds a single discount to this line item.voidLineItem. addDiscounts(LineItemDiscount... discounts)Adds multiple discounts to this line item.protected MoneyLineItem. calculateDiscount(Money currentValue, LineItemDiscount discount)voidLineItem. removeDiscount(LineItemDiscount discount)Removes a single discount from this line item.Method parameters in de.hybris.order.calculation.domain with type arguments of type LineItemDiscount Modifier and Type Method Description voidLineItem. addDiscounts(java.util.List<LineItemDiscount> discounts)Adds multiple discounts to this line item. -
Uses of LineItemDiscount in de.hybris.platform.ruleengineservices.calculation
Methods in de.hybris.platform.ruleengineservices.calculation with parameters of type LineItemDiscount Modifier and Type Method Description booleanMinimumAmountValidationStrategy. isLineItemLowerLimitValid(LineItem lineItem, LineItemDiscount discount)Checks if the LineItem subtotal and the Order subtotal are valid after application of the Discount to the LineItem. -
Uses of LineItemDiscount in de.hybris.platform.ruleengineservices.calculation.impl
Methods in de.hybris.platform.ruleengineservices.calculation.impl that return LineItemDiscount Modifier and Type Method Description protected LineItemDiscountDefaultRuleEngineCalculationService. createLineItemDiscount(LineItem lineItem, boolean absolute, java.math.BigDecimal amount)Creates an LineItemDiscount based on the given values and adds it to the givenlineItem.protected LineItemDiscountDefaultRuleEngineCalculationService. createLineItemDiscount(LineItem lineItem, boolean absolute, java.math.BigDecimal amount, boolean perUnit)Creates an LineItemDiscount based on the given values and adds it to the givenlineItem.protected LineItemDiscountDefaultRuleEngineCalculationService. createLineItemDiscount(LineItem lineItem, boolean absolute, java.math.BigDecimal amount, boolean perUnit, int applicableUnits)protected LineItemDiscountDefaultRuleEngineCalculationService. validateLineItemDiscount(LineItem lineItem, boolean absolute, Currency currency, LineItemDiscount discount)Methods in de.hybris.platform.ruleengineservices.calculation.impl with parameters of type LineItemDiscount Modifier and Type Method Description protected voidDefaultRuleEngineCalculationServiceCreationMethodsTest. assertCreateLineItemDiscount(LineItemDiscount createLineItemDiscount, java.math.BigDecimal valueOf, boolean perUnit)protected voidDefaultRuleEngineCalculationServiceCreationMethodsTest. assertCreateLineItemDiscountAbsolute(LineItem lineItem, LineItemDiscount createLineItemDiscount, boolean perUnit, Currency currency, java.math.BigDecimal valueOf)booleanDefaultMinimumAmountValidationStrategy. isLineItemLowerLimitValid(LineItem lineItem, LineItemDiscount discount)protected LineItemDiscountDefaultRuleEngineCalculationService. validateLineItemDiscount(LineItem lineItem, boolean absolute, Currency currency, LineItemDiscount discount) -
Uses of LineItemDiscount in de.hybris.platform.ruleengineservices.converters
Methods in de.hybris.platform.ruleengineservices.converters that return LineItemDiscount Modifier and Type Method Description protected LineItemDiscountAbstractOrderRaoToOrderConverter. convertToLineItemDiscount(DiscountRAO discountRao, AbstractOrderRAO cartRao)
-