public enum AuthorisationMethod extends java.lang.Enum<AuthorisationMethod>
Enum Constant and Description |
---|
DECLINED
The transaction was declined before authorisation was attempted.
|
NONE
The transaction is not authorised.
|
OFFLINE
The transaction was authorised online, by an authorisation host.
|
ONLINE
The transaction was authorised offline, directly by the payment terminal.
|
PHONE
The transaction was authorised by a phone call.
|
Modifier and Type | Method and Description |
---|---|
char |
getCharacter() |
static AuthorisationMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AuthorisationMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthorisationMethod NONE
public static final AuthorisationMethod OFFLINE
public static final AuthorisationMethod ONLINE
public static final AuthorisationMethod PHONE
public static final AuthorisationMethod DECLINED
public static AuthorisationMethod[] values()
for (AuthorisationMethod c : AuthorisationMethod.values()) System.out.println(c);
public static AuthorisationMethod 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 namejava.lang.NullPointerException
- if the argument is nullpublic char getCharacter()