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;
    stores: StoreKeyReference[];
    target?: CartDiscountTarget;
    validFrom?: string;
    validUntil?: string;
    value: CartDiscountValue;
    version: number;
}

Hierarchy (view full)

Properties

cartPredicate: string
createdAt: string

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

createdBy?: CreatedBy

IDs and references that created the CartDiscount.

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) the CartDiscount was last updated.

lastModifiedBy?: LastModifiedBy

IDs and references that last modified the CartDiscount.

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 is 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.

stores: StoreKeyReference[]
  • If a value exists, the Cart Discount applies on Carts having a Store matching any Store defined for this field.
    • If empty, the Cart Discount applies on all Carts, irrespective of a Store.
target?: CartDiscountTarget

Segment of the Cart that is discounted.

Empty, if the `value` is `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.

value: CartDiscountValue

Effect of the CartDiscount on the target.

version: number

Current version of the CartDiscount.