Class InvalidItemShippingDetailsErrorImpl
- All Implemented Interfaces:
ErrorObject
,InvalidItemShippingDetailsError
,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.InvalidItemShippingDetailsError
INVALID_ITEM_SHIPPING_DETAILS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Unique identifier of the Line Item or Custom Line Item."Inconsistent shipping details for $subject with ID $itemId.
"LineItem"
or"CustomLineItem"
int
hashCode()
void
Unique identifier of the Line Item or Custom Line Item.void
setMessage
(String message) "Inconsistent shipping details for $subject with ID $itemId.
void
setSubject
(String subject) "LineItem"
or"CustomLineItem"
void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObject
Methods inherited from interface com.commercetools.api.models.error.InvalidItemShippingDetailsError
withInvalidItemShippingDetailsError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
InvalidItemShippingDetailsErrorImpl
public InvalidItemShippingDetailsErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceInvalidItemShippingDetailsError
- Returns:
- code
-
getMessage
"Inconsistent shipping details for $subject with ID $itemId. $subject quantity is $itemQuantity and shippingTargets quantity sum is $quantitySum."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceInvalidItemShippingDetailsError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getSubject
"LineItem"
or"CustomLineItem"
- Specified by:
getSubject
in interfaceInvalidItemShippingDetailsError
- Returns:
- subject
-
getItemId
Unique identifier of the Line Item or Custom Line Item.
- Specified by:
getItemId
in interfaceInvalidItemShippingDetailsError
- Returns:
- itemId
-
setMessage
Description copied from interface:InvalidItemShippingDetailsError
"Inconsistent shipping details for $subject with ID $itemId. $subject quantity is $itemQuantity and shippingTargets quantity sum is $quantitySum."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceInvalidItemShippingDetailsError
- Parameters:
message
- value to be set
-
setValue
Description copied from interface:ErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceErrorObject
- Parameters:
key
- property namevalue
- property value
-
setSubject
Description copied from interface:InvalidItemShippingDetailsError
"LineItem"
or"CustomLineItem"
- Specified by:
setSubject
in interfaceInvalidItemShippingDetailsError
- Parameters:
subject
- value to be set
-
setItemId
Description copied from interface:InvalidItemShippingDetailsError
Unique identifier of the Line Item or Custom Line Item.
- Specified by:
setItemId
in interfaceInvalidItemShippingDetailsError
- Parameters:
itemId
- value to be set
-
equals
-
hashCode
-