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

    Interface ProductPresentWithDifferentVariantSelectionError

    Returned when a Product is already assigned to a Product Selection, but the Product Selection has either a different Product Variant Selection or a different Product Variant Exclusion.

    The error is returned as a failed response either to the [Add Product](ctp:api:type:ProductSelectionAddProductAction) or to the [Exclude Product](ctp:api:type:ProductSelectionExcludeProductAction) update action.
    
    interface ProductPresentWithDifferentVariantSelectionError {
        code: "ProductPresentWithDifferentVariantSelection";
        existingVariantSelection: ProductVariantSelection;
        message: string;
        product: ProductReference;
        [key: string]: any;
    }

    Hierarchy (View Summary)

    • IErrorObject
      • ProductPresentWithDifferentVariantSelectionError

    Indexable

    • [key: string]: any
    Index

    Properties

    code: "ProductPresentWithDifferentVariantSelection"

    Error identifier.

    existingVariantSelection: ProductVariantSelection

    Existing Product Variant Selection or Exclusion for the Product in the Product Selection.

    message: string

    "Product is already present with the following different $variantSelections."

    Reference to the Product for which the error was returned.