Interface GraphQLMaxCartDiscountsReachedError

All Superinterfaces:
GraphQLErrorObject
All Known Implementing Classes:
GraphQLMaxCartDiscountsReachedErrorImpl

Returned when a Cart Discount cannot be created or activated as the limit for active Cart Discounts has been reached.

The error is returned as a failed response to:

  • Create CartDiscount and Create CartDiscount in Store requests
  • Change IsActive update action

Example to create an instance using the builder pattern

     GraphQLMaxCartDiscountsReachedError graphQLMaxCartDiscountsReachedError = GraphQLMaxCartDiscountsReachedError.builder()
             .build()