Class GraphQLOutOfStockErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLOutOfStockErrorImpl
- All Implemented Interfaces:
GraphQLErrorObject
,GraphQLOutOfStockError
,io.vrap.rmf.base.client.ModelBase
public class GraphQLOutOfStockErrorImpl
extends Object
implements GraphQLOutOfStockError, io.vrap.rmf.base.client.ModelBase
Returned when some of the Line Items are out of stock at the time of placing an Order.
The error is returned as a failed response to:
- Create Order from Cart, Create Order in Store from Cart, and Create Order by Import 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.GraphQLOutOfStockError
OUT_OF_STOCK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Unique identifiers of the Line Items that are out of stock.getSkus()
SKUs of the Line Items that are out of stock.int
hashCode()
void
setLineItems
(String... lineItems) Unique identifiers of the Line Items that are out of stock.void
setLineItems
(List<String> lineItems) Unique identifiers of the Line Items that are out of stock.void
SKUs of the Line Items that are out of stock.void
SKUs of the Line Items that are out of stock.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.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface com.commercetools.api.models.error.GraphQLOutOfStockError
withGraphQLOutOfStockError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLOutOfStockErrorImpl
public GraphQLOutOfStockErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Specified by:
getCode
in interfaceGraphQLOutOfStockError
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getLineItems
Unique identifiers of the Line Items that are out of stock.
- Specified by:
getLineItems
in interfaceGraphQLOutOfStockError
- Returns:
- lineItems
-
getSkus
SKUs of the Line Items that are out of stock.
- Specified by:
getSkus
in interfaceGraphQLOutOfStockError
- Returns:
- skus
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setLineItems
Description copied from interface:GraphQLOutOfStockError
Unique identifiers of the Line Items that are out of stock.
- Specified by:
setLineItems
in interfaceGraphQLOutOfStockError
- Parameters:
lineItems
- values to be set
-
setLineItems
Description copied from interface:GraphQLOutOfStockError
Unique identifiers of the Line Items that are out of stock.
- Specified by:
setLineItems
in interfaceGraphQLOutOfStockError
- Parameters:
lineItems
- values to be set
-
setSkus
Description copied from interface:GraphQLOutOfStockError
SKUs of the Line Items that are out of stock.
- Specified by:
setSkus
in interfaceGraphQLOutOfStockError
- Parameters:
skus
- values to be set
-
setSkus
Description copied from interface:GraphQLOutOfStockError
SKUs of the Line Items that are out of stock.
- Specified by:
setSkus
in interfaceGraphQLOutOfStockError
- Parameters:
skus
- values to be set
-
equals
-
hashCode
-