Enum DiscountCodeState.DiscountCodeStateEnum
java.lang.Object
java.lang.Enum<DiscountCodeState.DiscountCodeStateEnum>
com.commercetools.api.models.cart.DiscountCodeState.DiscountCodeStateEnum
- All Implemented Interfaces:
DiscountCodeState
,JsonEnum
,Serializable
,Comparable<DiscountCodeState.DiscountCodeStateEnum>
,java.lang.constant.Constable
- Enclosing interface:
- DiscountCodeState
public static enum DiscountCodeState.DiscountCodeStateEnum
extends Enum<DiscountCodeState.DiscountCodeStateEnum>
implements DiscountCodeState
possible values of DiscountCodeState
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.commercetools.api.models.cart.DiscountCodeState
DiscountCodeState.DiscountCodeStateEnum
-
Enum Constant Summary
Enum ConstantDescriptionApplicationStoppedByPreviousDiscountDoesNotMatchCartMatchesCartMaxApplicationReachedNotActiveNotValid -
Field Summary
Fields inherited from interface com.commercetools.api.models.cart.DiscountCodeState
APPLICATION_STOPPED_BY_PREVIOUS_DISCOUNT, DOES_NOT_MATCH_CART, MATCHES_CART, MAX_APPLICATION_REACHED, NOT_ACTIVE, NOT_VALID
-
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from interface com.commercetools.api.models.cart.DiscountCodeState
name
-
Enum Constant Details
-
NOT_ACTIVE
NotActive -
NOT_VALID
NotValid -
DOES_NOT_MATCH_CART
DoesNotMatchCart -
MATCHES_CART
MatchesCart -
MAX_APPLICATION_REACHED
MaxApplicationReached -
APPLICATION_STOPPED_BY_PREVIOUS_DISCOUNT
public static final DiscountCodeState.DiscountCodeStateEnum APPLICATION_STOPPED_BY_PREVIOUS_DISCOUNTApplicationStoppedByPreviousDiscount
-
-
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
-
getJsonName
Description copied from interface:DiscountCodeState
the JSON value- Specified by:
getJsonName
in interfaceDiscountCodeState
- Specified by:
getJsonName
in interfaceJsonEnum
- Returns:
- json value
-
toString
Description copied from interface:DiscountCodeState
convert value to string- Specified by:
toString
in interfaceDiscountCodeState
- Specified by:
toString
in interfaceJsonEnum
- Overrides:
toString
in classEnum<DiscountCodeState.DiscountCodeStateEnum>
- Returns:
- string representation
-