|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PremiumOrderStatus> com.evernote.edam.type.PremiumOrderStatus
public enum PremiumOrderStatus
This enumeration defines the possible states of a premium account NONE: the user has never attempted to become a premium subscriber PENDING: the user has requested a premium account but their charge has not been confirmed ACTIVE: the user has been charged and their premium account is in good standing FAILED: the system attempted to charge the was denied. Their premium privileges have been revoked. We will periodically attempt to re-validate their order. CANCELLATION_PENDING: the user has requested that no further charges be made but the current account is still active. CANCELED: the premium account was canceled either because of failure to pay or user cancelation. No more attempts will be made to activate the account.
Enum Constant Summary | |
---|---|
ACTIVE
|
|
CANCELED
|
|
CANCELLATION_PENDING
|
|
FAILED
|
|
NONE
|
|
PENDING
|
Method Summary | |
---|---|
static PremiumOrderStatus |
findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL. |
int |
getValue()
Get the integer value of this enum value, as defined in the Thrift IDL. |
static PremiumOrderStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PremiumOrderStatus[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PremiumOrderStatus NONE
public static final PremiumOrderStatus PENDING
public static final PremiumOrderStatus ACTIVE
public static final PremiumOrderStatus FAILED
public static final PremiumOrderStatus CANCELLATION_PENDING
public static final PremiumOrderStatus CANCELED
Method Detail |
---|
public static PremiumOrderStatus[] values()
for (PremiumOrderStatus c : PremiumOrderStatus.values()) System.out.println(c);
public static PremiumOrderStatus 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 name
java.lang.NullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface com.evernote.thrift.TEnum
public static PremiumOrderStatus findByValue(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |