Interface GraphQLShippingMethodDoesNotMatchCartError
- All Superinterfaces:
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()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLShippingMethodDoesNotMatchCartError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLShippingMethodDoesNotMatchCartErrorcreate builder for GraphQLShippingMethodDoesNotMatchCartError instancefactory method to create a deep copy of GraphQLShippingMethodDoesNotMatchCartError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.of()
factory methodof
(GraphQLShippingMethodDoesNotMatchCartError template) factory method to create a shallow copy GraphQLShippingMethodDoesNotMatchCartErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLShippingMethodDoesNotMatchCartError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGraphQLShippingMethodDoesNotMatchCartError
(Function<GraphQLShippingMethodDoesNotMatchCartError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
SHIPPING_METHOD_DOES_NOT_MATCH_CART
discriminator value for GraphQLShippingMethodDoesNotMatchCartError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
of
factory method- Returns:
- instance of GraphQLShippingMethodDoesNotMatchCartError
-
of
static GraphQLShippingMethodDoesNotMatchCartError of(GraphQLShippingMethodDoesNotMatchCartError template) factory method to create a shallow copy GraphQLShippingMethodDoesNotMatchCartError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLShippingMethodDoesNotMatchCartError deepCopy(@Nullable GraphQLShippingMethodDoesNotMatchCartError template) factory method to create a deep copy of GraphQLShippingMethodDoesNotMatchCartError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLShippingMethodDoesNotMatchCartError- Returns:
- builder
-
builder
static GraphQLShippingMethodDoesNotMatchCartErrorBuilder builder(GraphQLShippingMethodDoesNotMatchCartError template) create builder for GraphQLShippingMethodDoesNotMatchCartError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLShippingMethodDoesNotMatchCartError
default <T> T withGraphQLShippingMethodDoesNotMatchCartError(Function<GraphQLShippingMethodDoesNotMatchCartError, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLShippingMethodDoesNotMatchCartError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-