com.evernote.edam.type
Enum PremiumOrderStatus

java.lang.Object
  extended by java.lang.Enum<PremiumOrderStatus>
      extended by com.evernote.edam.type.PremiumOrderStatus
All Implemented Interfaces:
com.evernote.thrift.TEnum, java.io.Serializable, java.lang.Comparable<PremiumOrderStatus>

public enum PremiumOrderStatus
extends java.lang.Enum<PremiumOrderStatus>
implements com.evernote.thrift.TEnum

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

NONE

public static final PremiumOrderStatus NONE

PENDING

public static final PremiumOrderStatus PENDING

ACTIVE

public static final PremiumOrderStatus ACTIVE

FAILED

public static final PremiumOrderStatus FAILED

CANCELLATION_PENDING

public static final PremiumOrderStatus CANCELLATION_PENDING

CANCELED

public static final PremiumOrderStatus CANCELED
Method Detail

values

public static PremiumOrderStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PremiumOrderStatus c : PremiumOrderStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PremiumOrderStatus valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValue

public int getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.

Specified by:
getValue in interface com.evernote.thrift.TEnum

findByValue

public static PremiumOrderStatus findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.

Returns:
null if the value is not found.