Interface GraphQLPriceChangedError
- All Superinterfaces:
GraphQLErrorObject
Returned when the Price or Tax Rate of some Line Items or Shipping Rate of some Shipping Methods changed since they were last added to the Cart.
When a Cart is frozen, the error can be returned as a failed response to all update actions on Carts and My Carts.
The error is also 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.
- Create Order from Cart in BusinessUnit request on Associate Orders.
Example to create an instance using the builder pattern
GraphQLPriceChangedError graphQLPriceChangedError = GraphQLPriceChangedError.builder()
.plusLineItems(lineItemsBuilder -> lineItemsBuilder)
.shipping(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLPriceChangedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLPriceChangedErrorbuilder(GraphQLPriceChangedError template) create builder for GraphQLPriceChangedError instancecopyDeep()static GraphQLPriceChangedErrordeepCopy(GraphQLPriceChangedError template) factory method to create a deep copy of GraphQLPriceChangedError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.Unique identifiers of the Line Items for which the Price or TaxRate has changed.@NotNull Booleantrueif the ShippingRate has changed.static GraphQLPriceChangedErrorof()factory methodstatic GraphQLPriceChangedErrorof(GraphQLPriceChangedError template) factory method to create a shallow copy GraphQLPriceChangedErrorvoidsetLineItems(String... lineItems) Unique identifiers of the Line Items for which the Price or TaxRate has changed.voidsetLineItems(List<String> lineItems) Unique identifiers of the Line Items for which the Price or TaxRate has changed.voidsetShipping(Boolean shipping) trueif the ShippingRate has changed.static com.fasterxml.jackson.core.type.TypeReference<GraphQLPriceChangedError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
PRICE_CHANGED
discriminator value for GraphQLPriceChangedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein interfaceGraphQLErrorObject- Returns:
- code
-
getLineItems
Unique identifiers of the Line Items for which the Price or TaxRate has changed.
- Returns:
- lineItems
-
getShipping
trueif the ShippingRate has changed.- Returns:
- shipping
-
setLineItems
Unique identifiers of the Line Items for which the Price or TaxRate has changed.
- Parameters:
lineItems- values to be set
-
setLineItems
Unique identifiers of the Line Items for which the Price or TaxRate has changed.
- Parameters:
lineItems- values to be set
-
setShipping
trueif the ShippingRate has changed.- Parameters:
shipping- value to be set
-
of
factory method- Returns:
- instance of GraphQLPriceChangedError
-
of
factory method to create a shallow copy GraphQLPriceChangedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GraphQLPriceChangedError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
deepCopy
factory method to create a deep copy of GraphQLPriceChangedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLPriceChangedError- Returns:
- builder
-
builder
create builder for GraphQLPriceChangedError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLPriceChangedError
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-