Enum TransactionAuthorizationStatus
- java.lang.Object
-
- java.lang.Enum<TransactionAuthorizationStatus>
-
- org.cyclos.model.banking.transactions.TransactionAuthorizationStatus
-
- All Implemented Interfaces:
Serializable,Comparable<TransactionAuthorizationStatus>,HasMessageKey
public enum TransactionAuthorizationStatus extends Enum<TransactionAuthorizationStatus> implements HasMessageKey
The generic status a transaction may have regarding to it's authorization.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHORIZATION_CANCELEDThe transaction performer has canceled this payment before it's been completely processedAUTHORIZATION_DENIEDThe authorizer has denied the transactionAUTHORIZATION_EXPIREDThe authorization proccess was not completed before the time defined in the transfer type The authorization proccess is expired because it has exceeded the available time to be completly proccessed defined in the transfer typeAUTHORIZEDThe transaction has been authorizedNAThe transaction wasn't submitted for authorization.PENDING_AUTHORIZATIONThe transaction is subject to authorization
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static TransactionAuthorizationStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static TransactionAuthorizationStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.static EnumSet<TransactionAuthorizationStatus>visible()Returns the visible statuses, that is, excludingNA.
-
-
-
Enum Constant Detail
-
NA
public static final TransactionAuthorizationStatus NA
The transaction wasn't submitted for authorization. NOTE: This status exists only because we need a database index in the corresponding column, and we have problems using is null / is not null. However, this value is never returned from services.
-
PENDING_AUTHORIZATION
public static final TransactionAuthorizationStatus PENDING_AUTHORIZATION
The transaction is subject to authorization
-
AUTHORIZATION_EXPIRED
public static final TransactionAuthorizationStatus AUTHORIZATION_EXPIRED
The authorization proccess was not completed before the time defined in the transfer type The authorization proccess is expired because it has exceeded the available time to be completly proccessed defined in the transfer type
-
AUTHORIZATION_CANCELED
public static final TransactionAuthorizationStatus AUTHORIZATION_CANCELED
The transaction performer has canceled this payment before it's been completely processed
-
AUTHORIZATION_DENIED
public static final TransactionAuthorizationStatus AUTHORIZATION_DENIED
The authorizer has denied the transaction
-
AUTHORIZED
public static final TransactionAuthorizationStatus AUTHORIZED
The transaction has been authorized
-
-
Method Detail
-
values
public static TransactionAuthorizationStatus[] 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 (TransactionAuthorizationStatus c : TransactionAuthorizationStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionAuthorizationStatus 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 nameNullPointerException- if the argument is null
-
visible
public static EnumSet<TransactionAuthorizationStatus> visible()
Returns the visible statuses, that is, excludingNA.
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-