Interface StoreCartDiscountsLimitReachedError

All Superinterfaces:
ErrorObject

public interface StoreCartDiscountsLimitReachedError extends ErrorObject

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()
 
  • Field Details

    • STORE_CART_DISCOUNTS_LIMIT_REACHED

      static final String STORE_CART_DISCOUNTS_LIMIT_REACHED
      discriminator value for StoreCartDiscountsLimitReachedError
      See Also:
  • Method Details