tangocard.sdk.response
Enum ServiceResponseEnum

java.lang.Object
  extended by java.lang.Enum<ServiceResponseEnum>
      extended by tangocard.sdk.response.ServiceResponseEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ServiceResponseEnum>

public enum ServiceResponseEnum
extends java.lang.Enum<ServiceResponseEnum>

Enumeration of epected response types from Tango Card Service API.


Enum Constant Summary
INS_FUNDS
          Failure - Insufficient Funds
INS_INV
          Failure - Insufficient Inventory
INV_CREDENTIAL
          Failure - Invalid Credentials
INV_INPUT
          Failure - Invalid Input
SUCCESS
          Success.
SYS_ERROR
          Failure - Service System Error
UNDEFINED
          Undefined.
 
Method Summary
static ServiceResponseEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ServiceResponseEnum[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNDEFINED

public static final ServiceResponseEnum UNDEFINED
Undefined.


SUCCESS

public static final ServiceResponseEnum SUCCESS
Success.


INS_FUNDS

public static final ServiceResponseEnum INS_FUNDS
Failure - Insufficient Funds


INV_CREDENTIAL

public static final ServiceResponseEnum INV_CREDENTIAL
Failure - Invalid Credentials


INV_INPUT

public static final ServiceResponseEnum INV_INPUT
Failure - Invalid Input


INS_INV

public static final ServiceResponseEnum INS_INV
Failure - Insufficient Inventory


SYS_ERROR

public static final ServiceResponseEnum SYS_ERROR
Failure - Service System Error

Method Detail

values

public static ServiceResponseEnum[] 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 (ServiceResponseEnum c : ServiceResponseEnum.values())
    System.out.println(c);

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

valueOf

public static ServiceResponseEnum 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