net.authorize
Enum ResponseCode

java.lang.Object
  extended by java.lang.Enum<ResponseCode>
      extended by net.authorize.ResponseCode
All Implemented Interfaces:
Serializable, Comparable<ResponseCode>

public enum ResponseCode
extends Enum<ResponseCode>

Response code indicates the overall status of the transaction with possible values of approved, declined, error, or held for review.


Enum Constant Summary
APPROVED
           
DECLINED
           
ERROR
           
REVIEW
           
UNKNOWN
           
 
Method Summary
static ResponseCode findByResponseCode(int code)
          Lookup a ResponseCode by it's response code.
static ResponseCode findByResponseCode(String code)
          Lookup a ResponseCode by it's response code.
 int getCode()
           
 String getDescription()
           
static ResponseCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResponseCode[] 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

APPROVED

public static final ResponseCode APPROVED

DECLINED

public static final ResponseCode DECLINED

ERROR

public static final ResponseCode ERROR

REVIEW

public static final ResponseCode REVIEW

UNKNOWN

public static final ResponseCode UNKNOWN
Method Detail

values

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

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

valueOf

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

findByResponseCode

public static ResponseCode findByResponseCode(int code)
Lookup a ResponseCode by it's response code.

Parameters:
code -
Returns:
Returns a ResponseCode if a code match is found.

findByResponseCode

public static ResponseCode findByResponseCode(String code)
Lookup a ResponseCode by it's response code.

Parameters:
code -
Returns:
Returns a ResponseCode if a code match is found.

getCode

public int getCode()
Returns:
the code

getDescription

public String getDescription()
Returns:
the description


Copyright © 2014. All Rights Reserved.