Class StoreCartDiscountsLimitReachedErrorImpl
java.lang.Object
com.commercetools.api.models.error.StoreCartDiscountsLimitReachedErrorImpl
- All Implemented Interfaces:
ErrorObject
,StoreCartDiscountsLimitReachedError
,io.vrap.rmf.base.client.ModelBase
public class StoreCartDiscountsLimitReachedErrorImpl
extends Object
implements StoreCartDiscountsLimitReachedError, io.vrap.rmf.base.client.ModelBase
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.error.StoreCartDiscountsLimitReachedError
STORE_CART_DISCOUNTS_LIMIT_REACHED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier."Maximum number of active cart discounts reached for $stores."
Stores for which the limit for active Cart Discounts that can exist has been reached.int
hashCode()
void
setMessage
(String message) "Maximum number of active cart discounts reached for $stores."
void
setStores
(StoreKeyReference... stores) Stores for which the limit for active Cart Discounts that can exist has been reached.void
setStores
(List<StoreKeyReference> stores) Stores for which the limit for active Cart Discounts that can exist has been reached.void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.error.StoreCartDiscountsLimitReachedError
withStoreCartDiscountsLimitReachedError
-
Constructor Details
-
StoreCartDiscountsLimitReachedErrorImpl
public StoreCartDiscountsLimitReachedErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Specified by:
getCode
in interfaceStoreCartDiscountsLimitReachedError
- Returns:
- code
-
getMessage
"Maximum number of active cart discounts reached for $stores."
- Specified by:
getMessage
in interfaceErrorObject
- Specified by:
getMessage
in interfaceStoreCartDiscountsLimitReachedError
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getStores
Stores for which the limit for active Cart Discounts that can exist has been reached.
- Specified by:
getStores
in interfaceStoreCartDiscountsLimitReachedError
- Returns:
- stores
-
setMessage
Description copied from interface:StoreCartDiscountsLimitReachedError
"Maximum number of active cart discounts reached for $stores."
- Specified by:
setMessage
in interfaceErrorObject
- Specified by:
setMessage
in interfaceStoreCartDiscountsLimitReachedError
- Parameters:
message
- value to be set
-
setValue
Description copied from interface:ErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceErrorObject
- Parameters:
key
- property namevalue
- property value
-
setStores
Description copied from interface:StoreCartDiscountsLimitReachedError
Stores for which the limit for active Cart Discounts that can exist has been reached.
- Specified by:
setStores
in interfaceStoreCartDiscountsLimitReachedError
- Parameters:
stores
- values to be set
-
setStores
Description copied from interface:StoreCartDiscountsLimitReachedError
Stores for which the limit for active Cart Discounts that can exist has been reached.
- Specified by:
setStores
in interfaceStoreCartDiscountsLimitReachedError
- Parameters:
stores
- values to be set
-
equals
-
hashCode
public int hashCode()
-