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

    Interface CartDiscountValueGiftLineItemDraft

    Can only be used in a CartDiscountDraft with no target specified. Hence, this type can not be used in the Change Value update action.

    interface CartDiscountValueGiftLineItemDraft {
        distributionChannel?: ChannelResourceIdentifier;
        product: ProductResourceIdentifier;
        supplyChannel?: ChannelResourceIdentifier;
        type: "giftLineItem";
        variantId: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    distributionChannel?: ChannelResourceIdentifier

    Channel must have the role ProductDistribution.

    ResourceIdentifier of a Product.

    A Gift Line Item is added to a Cart even if the referenced Product is unpublished.
    

    Channel must have the role InventorySupply.

    type: "giftLineItem"
    variantId: number

    ProductVariant of the Product.