Interface GraphQLProductPresentWithDifferentVariantSelectionError

All Superinterfaces:
GraphQLErrorObject
All Known Implementing Classes:
GraphQLProductPresentWithDifferentVariantSelectionErrorImpl

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 or to the Exclude Product update action.


Example to create an instance using the builder pattern

     GraphQLProductPresentWithDifferentVariantSelectionError graphQLProductPresentWithDifferentVariantSelectionError = GraphQLProductPresentWithDifferentVariantSelectionError.builder()
             .product(productBuilder -> productBuilder)
             .existingVariantSelection(existingVariantSelectionBuilder -> existingVariantSelectionBuilder)
             .build()