Class GraphQLInvalidItemShippingDetailsErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLInvalidItemShippingDetailsErrorImpl
- All Implemented Interfaces:
GraphQLErrorObject
,GraphQLInvalidItemShippingDetailsError
,io.vrap.rmf.base.client.ModelBase
public class GraphQLInvalidItemShippingDetailsErrorImpl
extends Object
implements GraphQLInvalidItemShippingDetailsError, io.vrap.rmf.base.client.ModelBase
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.error.GraphQLInvalidItemShippingDetailsError
INVALID_ITEM_SHIPPING_DETAILS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Unique identifier of the Line Item or Custom Line Item."LineItem"
or"CustomLineItem"
int
hashCode()
void
Unique identifier of the Line Item or Custom Line Item.void
setSubject
(String subject) "LineItem"
or"CustomLineItem"
void
Error-specific additional fields.toString()
values()
Error-specific additional fields.Methods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface com.commercetools.api.models.error.GraphQLInvalidItemShippingDetailsError
withGraphQLInvalidItemShippingDetailsError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLInvalidItemShippingDetailsErrorImpl
public GraphQLInvalidItemShippingDetailsErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Specified by:
getCode
in interfaceGraphQLInvalidItemShippingDetailsError
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getSubject
"LineItem"
or"CustomLineItem"
- Specified by:
getSubject
in interfaceGraphQLInvalidItemShippingDetailsError
- Returns:
- subject
-
getItemId
Unique identifier of the Line Item or Custom Line Item.
- Specified by:
getItemId
in interfaceGraphQLInvalidItemShippingDetailsError
- Returns:
- itemId
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setSubject
Description copied from interface:GraphQLInvalidItemShippingDetailsError
"LineItem"
or"CustomLineItem"
- Specified by:
setSubject
in interfaceGraphQLInvalidItemShippingDetailsError
- Parameters:
subject
- value to be set
-
setItemId
Description copied from interface:GraphQLInvalidItemShippingDetailsError
Unique identifier of the Line Item or Custom Line Item.
- Specified by:
setItemId
in interfaceGraphQLInvalidItemShippingDetailsError
- Parameters:
itemId
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-