Class PriceChangedErrorImpl
- All Implemented Interfaces:
ErrorObject
,PriceChangedError
,io.vrap.rmf.base.client.ModelBase
Returned when the Price, Tax Rate, or Shipping Rate of some Line Items changed since they were last added to the Cart.
The error is returned as a failed response to:
- Create Order from Cart and Create Order in Store from Cart requests on Orders.
- Create Order from Cart and Create Order in Store from Cart requests on My Orders.
-
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.PriceChangedError
PRICE_CHANGED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Unique identifiers of the Line Items for which the Price or TaxRate has changed.Plain text description of the reason for the Price change.true
if the ShippingRate has changed.int
hashCode()
void
setLineItems
(String... lineItems) Unique identifiers of the Line Items for which the Price or TaxRate has changed.void
setLineItems
(List<String> lineItems) Unique identifiers of the Line Items for which the Price or TaxRate has changed.void
setMessage
(String message) Plain text description of the reason for the Price change.void
setShipping
(Boolean shipping) true
if the ShippingRate has changed.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.PriceChangedError
withPriceChangedError
-
Constructor Details
-
PriceChangedErrorImpl
public PriceChangedErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfacePriceChangedError
- Returns:
- code
-
getMessage
Plain text description of the reason for the Price change. For example,
"The price or tax of some line items changed at the time of placing the order: $lineItems."
.- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfacePriceChangedError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getLineItems
Unique identifiers of the Line Items for which the Price or TaxRate has changed.
- Specified by:
getLineItems
in interfacePriceChangedError
- Returns:
- lineItems
-
getShipping
true
if the ShippingRate has changed.- Specified by:
getShipping
in interfacePriceChangedError
- Returns:
- shipping
-
setMessage
Description copied from interface:PriceChangedError
Plain text description of the reason for the Price change. For example,
"The price or tax of some line items changed at the time of placing the order: $lineItems."
.- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfacePriceChangedError
- 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
-
setLineItems
Description copied from interface:PriceChangedError
Unique identifiers of the Line Items for which the Price or TaxRate has changed.
- Specified by:
setLineItems
in interfacePriceChangedError
- Parameters:
lineItems
- values to be set
-
setLineItems
Description copied from interface:PriceChangedError
Unique identifiers of the Line Items for which the Price or TaxRate has changed.
- Specified by:
setLineItems
in interfacePriceChangedError
- Parameters:
lineItems
- values to be set
-
setShipping
Description copied from interface:PriceChangedError
true
if the ShippingRate has changed.- Specified by:
setShipping
in interfacePriceChangedError
- Parameters:
shipping
- value to be set
-
equals
-
hashCode
-