Interface ProductPresentWithDifferentVariantSelectionError

All Superinterfaces:
ErrorObject

public interface ProductPresentWithDifferentVariantSelectionError extends ErrorObject

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

     ProductPresentWithDifferentVariantSelectionError productPresentWithDifferentVariantSelectionError = ProductPresentWithDifferentVariantSelectionError.builder()
             .message("{message}")
             .product(productBuilder -> productBuilder)
             .existingVariantSelection(existingVariantSelectionBuilder -> existingVariantSelectionBuilder)
             .build()