interface CartDiscountValueAbsoluteDraft {
    applicationMode?: string;
    money: Money[];
    type: "absolute";
}

Hierarchy (View Summary)

Properties

applicationMode?: string

Determines how the discount applies on CartDiscountLineItemTarget and CartDiscountCustomLineItemTarget.

If not set, the default behavior is `ProportionateDistribution`.
money: Money[]

Money values in different currencies. An absolute Cart Discount will match a price only if the array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$.

If the array is empty or has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
type: "absolute"