Interface GraphQLDiscountCodeNonApplicableError

All Superinterfaces:
GraphQLErrorObject
All Known Implementing Classes:
GraphQLDiscountCodeNonApplicableErrorImpl

Returned when the Cart contains a Discount Code with a DiscountCodeState other than MatchesCart.

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

     GraphQLDiscountCodeNonApplicableError graphQLDiscountCodeNonApplicableError = GraphQLDiscountCodeNonApplicableError.builder()
             .build()