Interface GraphQLPriceChangedError

All Superinterfaces:
GraphQLErrorObject
All Known Implementing Classes:
GraphQLPriceChangedErrorImpl

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.

Example to create an instance using the builder pattern

     GraphQLPriceChangedError graphQLPriceChangedError = GraphQLPriceChangedError.builder()
             .plusLineItems(lineItemsBuilder -> lineItemsBuilder)
             .shipping(true)
             .build()