@gradientedge/commercetools-utils
    Preparing search index...

    Interface ShoppingListLineItemDraft

    The ProductVariant to be included in the ShoppingListLineItem must be specified using the productID and variantID, or by the sku.

    interface ShoppingListLineItemDraft {
        addedAt?: string;
        custom?: CustomFieldsDraft;
        key?: string;
        productId?: string;
        quantity?: number;
        sku?: string;
        variantId?: number;
    }
    Index
    addedAt?: string

    Date and time the ShoppingListLineItem is added to the ShoppingList. If not set, the current date and time (UTC) is used.

    Custom Fields for the ShoppingListLineItem.

    key?: string

    User-defined identifier of the ShoppingListLineItem. Must be unique per ShoppingList.

    productId?: string

    Unique identifier of a Product.

    quantity?: number

    Number of Products in the ShoppingListLineItem.

    sku?: string

    sku of the ProductVariant.

    variantId?: number

    id of the ProductVariant. If not set, the ShoppingListLineItem refers to the Master Variant.

    For a Project with [ProductCatalogModel](ctp:api:type:ProductCatalogModel) (BETA) set to `Modular`, when `variantId` is not set, the ShoppingListLineItem refers to the Product's default [Variant](ctp:api:type:Variant) (BETA) (`defaultVariant`) instead of the Master Variant. If no default Variant is set, the ShoppingListLineItem refers to the Variant with the lowest `variantId`.