Interface GraphQLShippingMethodDoesNotMatchCartError

All Superinterfaces:
GraphQLErrorObject

public interface GraphQLShippingMethodDoesNotMatchCartError extends GraphQLErrorObject

Returned when the Cart contains a ShippingMethod that is not allowed for the Cart. In this case, the ShippingMethodState value is DoesNotMatchCart.

When a Cart is frozen, the error can be returned as a failed response to all update actions on Carts and My Carts.

The error is also returned as a failed response to:

  • Create Order from Cart and Create Order in Store from Cart requests on Orders.
  • Create Order from Cart and Create Order in Store from Cart requests on My Orders.
  • Create Order from Cart in BusinessUnit request on Associate Orders.

Example to create an instance using the builder pattern

     GraphQLShippingMethodDoesNotMatchCartError graphQLShippingMethodDoesNotMatchCartError = GraphQLShippingMethodDoesNotMatchCartError.builder()
             .build()