Enum PaymentRequestAction
- java.lang.Object
-
- java.lang.Enum<PaymentRequestAction>
-
- org.cyclos.model.banking.transactions.PaymentRequestAction
-
- All Implemented Interfaces:
Serializable,Comparable<PaymentRequestAction>,HasMessageKey
public enum PaymentRequestAction extends Enum<PaymentRequestAction> implements HasMessageKey
Possible actions for a payment request
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTPayer actionsCANCELPayee actionsCHANGE_EXPIRATION_DATEDENYRESCHEDULE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetDoneKey()MessageKeygetHeadingKey()MessageKeygetMessageKey()Returns the key used for the action.static PaymentRequestActionvalueOf(String name)Returns the enum constant of this type with the specified name.static PaymentRequestAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCEPT
public static final PaymentRequestAction ACCEPT
Payer actions
-
DENY
public static final PaymentRequestAction DENY
-
RESCHEDULE
public static final PaymentRequestAction RESCHEDULE
-
CANCEL
public static final PaymentRequestAction CANCEL
Payee actions
-
CHANGE_EXPIRATION_DATE
public static final PaymentRequestAction CHANGE_EXPIRATION_DATE
-
-
Method Detail
-
values
public static PaymentRequestAction[] 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 (PaymentRequestAction c : PaymentRequestAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaymentRequestAction 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
-
getDoneKey
public MessageKey getDoneKey()
-
getHeadingKey
public MessageKey getHeadingKey()
-
getMessageKey
public MessageKey getMessageKey()
Returns the key used for the action.- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-