Interface GraphQLInvalidItemShippingDetailsError
- All Superinterfaces:
GraphQLErrorObject
- All Known Implementing Classes:
GraphQLInvalidItemShippingDetailsErrorImpl
Returned when Line Item or Custom Line Item quantities set under ItemShippingDetails do not match the sum of the quantities in their respective shipping details.
The error is returned as a failed response to the Create Order from Cart and Create Order in Store from Cart requests.
Example to create an instance using the builder pattern
GraphQLInvalidItemShippingDetailsError graphQLInvalidItemShippingDetailsError = GraphQLInvalidItemShippingDetailsError.builder()
.subject("{subject}")
.itemId("{itemId}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLInvalidItemShippingDetailsError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLInvalidItemShippingDetailsErrorcreate builder for GraphQLInvalidItemShippingDetailsError instancefactory method to create a deep copy of GraphQLInvalidItemShippingDetailsError@NotNull String
getCode()
Error identifier.@NotNull String
Unique identifier of the Line Item or Custom Line Item.@NotNull String
"LineItem"
or"CustomLineItem"
of()
factory methodof
(GraphQLInvalidItemShippingDetailsError template) factory method to create a shallow copy GraphQLInvalidItemShippingDetailsErrorvoid
Unique identifier of the Line Item or Custom Line Item.void
setSubject
(String subject) "LineItem"
or"CustomLineItem"
static com.fasterxml.jackson.core.type.TypeReference<GraphQLInvalidItemShippingDetailsError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGraphQLInvalidItemShippingDetailsError
(Function<GraphQLInvalidItemShippingDetailsError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
INVALID_ITEM_SHIPPING_DETAILS
discriminator value for GraphQLInvalidItemShippingDetailsError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getSubject
"LineItem"
or"CustomLineItem"
- Returns:
- subject
-
getItemId
Unique identifier of the Line Item or Custom Line Item.
- Returns:
- itemId
-
setSubject
"LineItem"
or"CustomLineItem"
- Parameters:
subject
- value to be set
-
setItemId
Unique identifier of the Line Item or Custom Line Item.
- Parameters:
itemId
- value to be set
-
of
factory method- Returns:
- instance of GraphQLInvalidItemShippingDetailsError
-
of
factory method to create a shallow copy GraphQLInvalidItemShippingDetailsError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLInvalidItemShippingDetailsError deepCopy(@Nullable GraphQLInvalidItemShippingDetailsError template) factory method to create a deep copy of GraphQLInvalidItemShippingDetailsError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLInvalidItemShippingDetailsError- Returns:
- builder
-
builder
static GraphQLInvalidItemShippingDetailsErrorBuilder builder(GraphQLInvalidItemShippingDetailsError template) create builder for GraphQLInvalidItemShippingDetailsError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLInvalidItemShippingDetailsError
default <T> T withGraphQLInvalidItemShippingDetailsError(Function<GraphQLInvalidItemShippingDetailsError, 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<GraphQLInvalidItemShippingDetailsError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-