Class CartDiscountValueFixedImpl

java.lang.Object
com.commercetools.api.models.cart_discount.CartDiscountValueFixedImpl
All Implemented Interfaces:
CartDiscountValue, CartDiscountValueFixed, CartDiscountValueFixedMixin, CartDiscountValueMixin, GenericCartDiscountValueMixin<CartDiscountValueFixedDraft>, io.vrap.rmf.base.client.ModelBase

public class CartDiscountValueFixedImpl extends Object implements CartDiscountValueFixed, io.vrap.rmf.base.client.ModelBase

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.