Interface GraphQLInvalidItemShippingDetailsError
- All Superinterfaces:
GraphQLErrorObject
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.
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 Cart and Create Cart in Store requests and Add LineItem, Add CustomLineItem, Set LineItem ShippingDetails, Set CustomLineItem ShippingDetails, Add Shopping List, and Remove LineItem update actions on Carts.
- Create Cart and Create Cart in Store requests, and Add LineItem, Set LineItem ShippingDetails, and Remove LineItem update actions on My Carts.
- Create Cart in BusinessUnit request on Associate Carts.
- Create Order from Cart, Create Order in Store from Cart, Create Order from Quote, and Create Order by Import requests on Orders.
- Create Order from Cart, Create Order in Store from Cart, and Create Order from Quote requests on My Orders.
- Add LineItem, Add CustomLineItem, Set LineItem ShippingDetails, Set CustomLineItem ShippingDetails, Add Shopping List, and Remove LineItem update actions on Order Edits.
- Create Order from Cart in BusinessUnit and Create Order from Quote in BusinessUnit requests on Associate Orders.
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()
One of the error codes that is listed on the Errors page.@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
One of the error codes that is listed on the Errors page.
- 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
-