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

    Interface AddConfiguredItemsParams

    A product configured with its option profile, added as one group. items are the goods (one per size or variant); selections the choices per position. Charge lines are added by the server.

    interface AddConfiguredItemsParams {
        items: { quantity: number; sku: string }[];
        productId?: string;
        selections?: {
            optionItemCode: string;
            positionCode: string;
            reference?: string;
        }[];
        set?: NewSetParams;
        setId?: string;
        sku?: string;
    }
    Index
    items: { quantity: number; sku: string }[]
    productId?: string

    The configured product: the parent, or any of its variants. One of productId/sku.

    selections?: {
        optionItemCode: string;
        positionCode: string;
        reference?: string;
    }[]

    Start a new set with this group (from a product page: sourceType: "pdp"). Not with setId.

    setId?: string

    Join an existing set ("Komplettera i samma tyg"): the set's choices for the profile are inherited (a different one answers 409 SET_SELECTIONS_MISMATCH), and the goods go into the set's group of the same product and choices when there is one.

    sku?: string