Enum CartErrorCode
- All Implemented Interfaces:
Serializable,Comparable<CartErrorCode>,java.lang.constant.Constable
public enum CartErrorCode extends Enum<CartErrorCode>
Types of cart error code.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description CATALOG_ITEM_ID_IS_NOT_VALIDCatalog item id is not validCURRENCY_IS_NOT_SUPPORTEDCurrency is not supported for given marketINVENTORY_NOT_AVAILABLEInventory is not available for selected offerPARTICIPANTS_IS_NOT_SUPPORTED_FOR_PARTNERSetting participants is not supported for PartnerQUOTA_NOT_AVAILABLENot enough quota availableSANDBOX_LIMIT_EXCEEDEDThe sandbox limit has been exceeded.SUBSCRIPTION_IS_NOT_ENABLED_FOR_RISubscription is not enabled for RI purchase.SUBSCRIPTION_IS_NOT_VALIDSubscription is not valid.UNABLE_TO_PROCESS_CART_LINE_ITEMUnable to process cart line item.UNKNOWNDefault value -
Method Summary
Modifier and Type Method Description intintValue()static CartErrorCodevalueOf(int i)Returns the enum constant of this type with the specified name.static CartErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static CartErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Default value -
CURRENCY_IS_NOT_SUPPORTED
Currency is not supported for given market -
CATALOG_ITEM_ID_IS_NOT_VALID
Catalog item id is not valid -
QUOTA_NOT_AVAILABLE
Not enough quota available -
INVENTORY_NOT_AVAILABLE
Inventory is not available for selected offer -
PARTICIPANTS_IS_NOT_SUPPORTED_FOR_PARTNER
Setting participants is not supported for Partner -
UNABLE_TO_PROCESS_CART_LINE_ITEM
Unable to process cart line item. -
SUBSCRIPTION_IS_NOT_VALID
Subscription is not valid. -
SUBSCRIPTION_IS_NOT_ENABLED_FOR_RI
Subscription is not enabled for RI purchase. -
SANDBOX_LIMIT_EXCEEDED
The sandbox limit has been exceeded.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
i- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
intValue
public int intValue()
-