Interface CartDiscountValueFixed

All Superinterfaces:
CartDiscountValue
All Known Implementing Classes:
CartDiscountValueFixedImpl

public interface CartDiscountValueFixed extends CartDiscountValue

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.


Example to create an instance using the builder pattern

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