Interface GraphQLStoreCartDiscountsLimitReachedError

All Superinterfaces:

public interface GraphQLStoreCartDiscountsLimitReachedError extends GraphQLErrorObject

Returned when a Cart Discount cannot be created or assigned to a Store as the limit for active Cart Discounts in a Store has been reached for one or more Stores in the request.

The error is returned as a failed response to:

  • Create CartDiscount and Create CartDiscount in Store requests
  • Add Store and Set Store update actions

Example to create an instance using the builder pattern

     GraphQLStoreCartDiscountsLimitReachedError graphQLStoreCartDiscountsLimitReachedError = GraphQLStoreCartDiscountsLimitReachedError.builder()
             .plusStores(storesBuilder -> storesBuilder)