Interface GraphQLMaxCartDiscountsReachedError

All Superinterfaces:
GraphQLErrorObject

public interface GraphQLMaxCartDiscountsReachedError extends GraphQLErrorObject

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()