Interface GraphQLOutOfStockError

All Superinterfaces:
GraphQLErrorObject
All Known Implementing Classes:
GraphQLOutOfStockErrorImpl

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.

Example to create an instance using the builder pattern

     GraphQLOutOfStockError graphQLOutOfStockError = GraphQLOutOfStockError.builder()
             .plusLineItems(lineItemsBuilder -> lineItemsBuilder)
             .plusSkus(skusBuilder -> skusBuilder)
             .build()