Type Alias ButtonParameter

ButtonParameter: {
    action?: XOR<
        {
            sections?: AtLeastOne<ProductSection>;
            thumbnail_product_retailer_id: string;
        },
        { flow_action_data: unknown; flow_token: string },
    >;
    coupon_code?: string;
    payload?: string;
    text?: string;
    type: "text" | "payload" | "action" | "coupon_code";
}

Type declaration

  • Optional Readonlyaction?: XOR<
        {
            sections?: AtLeastOne<ProductSection>;
            thumbnail_product_retailer_id: string;
        },
        { flow_action_data: unknown; flow_token: string },
    >

    The action of the button

  • Optional Readonlycoupon_code?: string

    The coupon's code of the button

  • Optional Readonlypayload?: string

    The payload of the button

  • Optional Readonlytext?: string

    The text of the button

  • Readonlytype: "text" | "payload" | "action" | "coupon_code"

    The type of the button