Interface StoreCartDiscountsLimitReachedError

All Superinterfaces:
ErrorObject
All Known Implementing Classes:
StoreCartDiscountsLimitReachedErrorImpl

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

     StoreCartDiscountsLimitReachedError storeCartDiscountsLimitReachedError = StoreCartDiscountsLimitReachedError.builder()
             .message("{message}")
             .plusStores(storesBuilder -> storesBuilder)
             .build()