public static enum DiscountStatus.Code extends java.lang.Enum<DiscountStatus.Code>
Enum Constant and Description |
---|
CANCELED |
CONDITIONS_NOT_MET |
DELETED |
EXPIRED |
INACTIVE |
INVALID |
RESTRICTED |
SUCCESS |
Modifier and Type | Method and Description |
---|---|
static DiscountStatus.Code |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DiscountStatus.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiscountStatus.Code EXPIRED
public static final DiscountStatus.Code RESTRICTED
public static final DiscountStatus.Code INVALID
public static final DiscountStatus.Code CANCELED
public static final DiscountStatus.Code DELETED
public static final DiscountStatus.Code INACTIVE
public static final DiscountStatus.Code CONDITIONS_NOT_MET
public static final DiscountStatus.Code SUCCESS
public static DiscountStatus.Code[] values()
for (DiscountStatus.Code c : DiscountStatus.Code.values()) System.out.println(c);
public static DiscountStatus.Code valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null