interface CartDiscount {
    cartPredicate: string;
    createdAt: string;
    createdBy?: CreatedBy;
    custom?: CustomFields;
    description?: LocalizedString;
    id: string;
    isActive: boolean;
    key?: string;
    lastModifiedAt: string;
    lastModifiedBy?: LastModifiedBy;
    name: LocalizedString;
    references: Reference[];
    requiresDiscountCode: boolean;
    sortOrder: string;
    stackingMode: string;
    target?: CartDiscountTarget;
    validFrom?: string;
    validUntil?: string;
    value: CartDiscountValue;
    version: number;
}

Hierarchy

Properties

cartPredicate: string
createdAt: string

Date and time (UTC) for the CartDiscount was initially created.

createdBy?: CreatedBy

Present on resources created after 1 February 2019 except for events not tracked.

custom?: CustomFields

Custom Fields of the CartDiscount.

description?: LocalizedString

Description of the CartDiscount.

id: string

Unique identifier of the CartDiscount.

isActive: boolean

Indicates if the CartDiscount is active and can be applied to the Cart.

key?: string

User-defined unique identifier of the CartDiscount.

lastModifiedAt: string

Date and time (UTC) for the CartDiscount was last updated.

lastModifiedBy?: LastModifiedBy

Present on resources updated after 1 February 2019 except for events not tracked.

Name of the CartDiscount.

references: Reference[]

References of all resources that are addressed in the predicate. The API generates this array from the predicate.

requiresDiscountCode: boolean

Indicates if the Discount can be used in connection with a DiscountCode.

sortOrder: string

Value between 0 and 1. All matching CartDiscounts are applied to a Cart in the order defined by this field. A Discount with a higher sortOrder is prioritized. The sort order is unambiguous among all CartDiscounts.

stackingMode: string

Indicates whether the application of the CartDiscount causes other discounts to be ignored.

Sets a CartDiscountTarget. Empty if value has type giftLineItem.

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.

version: number

Current version of the CartDiscount.

Generated using TypeDoc