Uses of Class
de.hybris.order.calculation.domain.LineItemDiscount
Packages that use LineItemDiscount
Package
Description
-
Uses of LineItemDiscount in de.hybris.order.calculation.domain
Methods in de.hybris.order.calculation.domain that return types with arguments of type LineItemDiscountModifier and TypeMethodDescriptionLineItem.getDiscounts()Returns all discounts assigned to this line item.LineItem.getTotalDiscounts()Calculates the totals of all line item discounts separately.Methods in de.hybris.order.calculation.domain with parameters of type LineItemDiscountModifier and TypeMethodDescriptionvoidLineItem.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 LineItemDiscountModifier and TypeMethodDescriptionvoidLineItem.addDiscounts(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 LineItemDiscountModifier and TypeMethodDescriptionbooleanMinimumAmountValidationStrategy.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 LineItemDiscountModifier and TypeMethodDescriptionprotected LineItemDiscountDefaultRuleEngineCalculationService.createLineItemDiscount(LineItem lineItem, boolean absolute, BigDecimal amount) Creates an LineItemDiscount based on the given values and adds it to the givenlineItem.protected LineItemDiscountDefaultRuleEngineCalculationService.createLineItemDiscount(LineItem lineItem, boolean absolute, 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, 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 LineItemDiscountModifier and TypeMethodDescriptionprotected voidDefaultRuleEngineCalculationServiceCreationMethodsTest.assertCreateLineItemDiscount(LineItemDiscount createLineItemDiscount, BigDecimal valueOf, boolean perUnit) protected voidDefaultRuleEngineCalculationServiceCreationMethodsTest.assertCreateLineItemDiscountAbsolute(LineItem lineItem, LineItemDiscount createLineItemDiscount, boolean perUnit, Currency currency, 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 LineItemDiscountModifier and TypeMethodDescriptionprotected LineItemDiscountAbstractOrderRaoToOrderConverter.convertToLineItemDiscount(DiscountRAO discountRao, AbstractOrderRAO cartRao)