interface ChangeTargetPatternChangeValue {
    maxOccurrence?: number;
    selectionMode: string;
    targetPattern: PatternComponent[];
    triggerPattern: PatternComponent[];
    type: "pattern";
}

Hierarchy (View Summary)

Properties

maxOccurrence?: number

Maximum number of times the Discount applies on a Cart.

If empty, the Discount applies indefinitely.
selectionMode: string

Indicates which of the matching units of (Custom) Line Items were discounted.

targetPattern: PatternComponent[]

Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.

triggerPattern: PatternComponent[]

Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.

type: "pattern"