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

    Interface ValidateReturnResponse

    interface ValidateReturnResponse {
        currencyCode: string;
        customer: { email: string | null; name: string | null };
        existingReturns: ExistingReturn[];
        orderDate: string;
        orderNumber: string;
        returnableItems: ReturnableItem[];
        returnToken: string | null;
        settings: {
            allowClaims: boolean;
            allowPartialReturn: boolean;
            allowReturns: boolean;
            attachments: ReturnAttachmentSettings;
            claimReasonCodes: { code: string; label: string }[];
            claimTerms: ReturnClaimTerms;
            customerMessage: string;
            offerRefund: boolean;
            offerReplacement: boolean;
            offerStoreCredit: boolean;
            reasonCodes: { code: string; label: string }[];
            requireReason: boolean;
            resolutions: ReturnResolution[];
            storeCreditBonus: { type: "fixed" | "percentage"; value: number } | null;
        };
    }
    Index
    currencyCode: string
    customer: { email: string | null; name: string | null }
    existingReturns: ExistingReturn[]

    Ärenden som redan finns på ordern, nyast först. Alltid med — även när det går att anmäla mer — så att kunden ser vad som redan är på väg.

    orderDate: string
    orderNumber: string
    returnableItems: ReturnableItem[]

    Tom när ordern är färdiganmäld. Se existingReturns för varför.

    returnToken: string | null

    Null when returnableItems is empty — allt på ordern är redan anmält. Det finns då inget att skapa, så inget token utfärdas.

    settings: {
        allowClaims: boolean;
        allowPartialReturn: boolean;
        allowReturns: boolean;
        attachments: ReturnAttachmentSettings;
        claimReasonCodes: { code: string; label: string }[];
        claimTerms: ReturnClaimTerms;
        customerMessage: string;
        offerRefund: boolean;
        offerReplacement: boolean;
        offerStoreCredit: boolean;
        reasonCodes: { code: string; label: string }[];
        requireReason: boolean;
        resolutions: ReturnResolution[];
        storeCreditBonus: { type: "fixed" | "percentage"; value: number } | null;
    }

    Type Declaration

    • allowClaims: boolean
    • allowPartialReturn: boolean
    • allowReturns: boolean

      False for stores that only accept claims, never plain returns.

    • attachments: ReturnAttachmentSettings

      Whether the customer may attach photos, and on which case types.

    • claimReasonCodes: { code: string; label: string }[]
    • claimTerms: ReturnClaimTerms

      Terms the customer must accept before filing a claim.

    • customerMessage: string
    • offerRefund: boolean

      False for B2B stores that never refund to the original payment method.

    • offerReplacement: boolean

      Ersättningsvara i stället för pengar tillbaka.

    • offerStoreCredit: boolean
    • reasonCodes: { code: string; label: string }[]
    • requireReason: boolean
    • resolutions: ReturnResolution[]

      Resolutions the store actually offers, in display order. Empty = hide the choice.

    • storeCreditBonus: { type: "fixed" | "percentage"; value: number } | null