public enum VoucherStatus extends java.lang.Enum<VoucherStatus>
| Enum Constant and Description |
|---|
CANCELED
The voucher was canceled, and cannot be further used
|
EXPIRED
The voucher has expired without being redeemed
|
OPEN
The voucher has been generated / bought, and is open
|
REDEEMED
The voucher has been redeemed, and the corresponding payment was done
|
| Modifier and Type | Method and Description |
|---|---|
static VoucherStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VoucherStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VoucherStatus OPEN
public static final VoucherStatus EXPIRED
public static final VoucherStatus CANCELED
public static final VoucherStatus REDEEMED
public static VoucherStatus[] values()
for (VoucherStatus c : VoucherStatus.values()) System.out.println(c);
public static VoucherStatus 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