Typescript SDK Type Docs
    Preparing search index...

    Interface ChangeTargetPatternChangeValue

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

    Hierarchy (View Summary)

    Index

    Properties

    maxOccurrence?: number

    Maximum number of times the Discount applies on a Cart.

    If empty, the Discount applies indefinitely.
    
    selectionMode: SelectionMode

    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"