interface CartDiscountDraft {
    cartPredicate: string;
    custom?: CustomFieldsDraft;
    description?: LocalizedString;
    isActive?: boolean;
    key?: string;
    name: LocalizedString;
    requiresDiscountCode?: boolean;
    sortOrder: string;
    stackingMode?: string;
    target?: CartDiscountTarget;
    validFrom?: string;
    validUntil?: string;
    value: CartDiscountValueDraft;
}

Properties

cartPredicate: string

Custom Fields of the CartDiscount.

description?: LocalizedString

Description of the CartDiscount.

isActive?: boolean

Only active Discounts can be applied to the Cart.

key?: string

User-defined unique identifier for the CartDiscount.

Name of the CartDiscount.

requiresDiscountCode?: boolean

States whether the Discount can only be used in a connection with a DiscountCode.

sortOrder: string

Value between 0 and 1. A Discount with a higher sortOrder is prioritized. The sort order must be unambiguous among all CartDiscounts.

stackingMode?: string

Specifies whether the application of this discount causes the following discounts to be ignored.

Must not be set when the value has type giftLineItem, otherwise a CartDiscountTarget must be set.

validFrom?: string

Date and time (UTC) from which the Discount is effective.

validUntil?: string

Date and time (UTC) until which the Discount is effective.

Effect of the CartDiscount. For a target, relative or absolute Discount values or a fixed item Price value can be specified. If no target is specified, a Gift Line Item can be added to the Cart.

Generated using TypeDoc