@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Interface AssistantReturnCard

    A return or claim that was just created from a confirmed proposal.

    interface AssistantReturnCard {
        label?:
            | {
                carrier: string
                | null;
                status: "pickup" | "manual" | "ready";
                trackingNumber: string | null;
            }
            | null;
        labelToken?: string
        | null;
        lines: { name: string; quantity: number }[];
        returnMethod?: "label" | "pickup" | "none" | null;
        returnNumber: string;
        returnShippingFee?:
            | { amountIncVat: number; currency: string
            | null }
            | null;
        returnType: "return" | "claim";
        type: "return";
    }
    Index
    label?:
        | {
            carrier: string
            | null;
            status: "pickup" | "manual" | "ready";
            trackingNumber: string | null;
        }
        | null

    ready: download with returns.labelUrl(labelToken); pickup: the shop books it; manual: the shop sends the label.

    labelToken?: string | null
    lines: { name: string; quantity: number }[]
    returnMethod?: "label" | "pickup" | "none" | null
    returnNumber: string
    returnShippingFee?: { amountIncVat: number; currency: string | null } | null
    returnType: "return" | "claim"
    type: "return"