Interface MaxCartDiscountsReachedError

All Superinterfaces:
ErrorObject

public interface MaxCartDiscountsReachedError extends ErrorObject

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

     MaxCartDiscountsReachedError maxCartDiscountsReachedError = MaxCartDiscountsReachedError.builder()
             .message("{message}")
             .build()