Interface CartDiscountValueFixed

All Superinterfaces:
CartDiscountValue, CartDiscountValueFixedMixin, CartDiscountValueMixin, GenericCartDiscountValueMixin<CartDiscountValueFixedDraft>
All Known Implementing Classes:
CartDiscountValueFixedImpl

Sets the DiscountedLineItemPrice of the CartDiscountLineItemsTarget or CartDiscountCustomLineItemsTarget to the value specified in the money field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the money field, this Discount is not applied. If the quantity of the Line Item eligible for the Discount is greater than 1, the fixed price discount is only applied to the Line Item portion for which the money value is lesser than their current price.


Example to create an instance using the builder pattern

     CartDiscountValueFixed cartDiscountValueFixed = CartDiscountValueFixed.builder()
             .plusMoney(moneyBuilder -> moneyBuilder)
             .build()