Class ShippingMethodDoesNotMatchCartErrorImpl
java.lang.Object
com.commercetools.api.models.error.ShippingMethodDoesNotMatchCartErrorImpl
- All Implemented Interfaces:
ErrorObject
,ShippingMethodDoesNotMatchCartError
,io.vrap.rmf.base.client.ModelBase
public class ShippingMethodDoesNotMatchCartErrorImpl
extends Object
implements ShippingMethodDoesNotMatchCartError, io.vrap.rmf.base.client.ModelBase
Returned when the Cart contains a ShippingMethod that is not allowed for the Cart. In this case, the ShippingMethodState value is DoesNotMatchCart
.
The error is returned as a failed response to the Create Order from Cart or 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.ShippingMethodDoesNotMatchCartError
SHIPPING_METHOD_DOES_NOT_MATCH_CART
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier."The predicate does not match the cart."
int
hashCode()
void
setMessage
(String message) "The predicate does not match the cart."
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 io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.error.ShippingMethodDoesNotMatchCartError
withShippingMethodDoesNotMatchCartError
-
Constructor Details
-
ShippingMethodDoesNotMatchCartErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceShippingMethodDoesNotMatchCartError
- Returns:
- code
-
getMessage
"The predicate does not match the cart."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceShippingMethodDoesNotMatchCartError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
setMessage
Description copied from interface:ShippingMethodDoesNotMatchCartError
"The predicate does not match the cart."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceShippingMethodDoesNotMatchCartError
- 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
-
equals
-
hashCode
-