Enum PerformExternalPaymentConfirmationField
- java.lang.Object
-
- java.lang.Enum<PerformExternalPaymentConfirmationField>
-
- org.cyclos.model.banking.transactions.PerformExternalPaymentConfirmationField
-
- All Implemented Interfaces:
Serializable,Comparable<PerformExternalPaymentConfirmationField>,DeviceConfirmationField
public enum PerformExternalPaymentConfirmationField extends Enum<PerformExternalPaymentConfirmationField> implements DeviceConfirmationField
Device confirmation fields for performing an external payment. We need a separate enum to manage theTOfield as String instead of as anAccountOwner.
-
-
Field Summary
-
Fields inherited from interface org.cyclos.model.access.devices.DeviceConfirmationField
EMPTY_ARRAY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateDeviceConfirmationParamsconfirmation(PerformExternalPaymentDTO dto)Returns a newCreateDeviceConfirmationParamsinstance needed to create a new pending device confirmation and also to confirm the operation after confirmation approval.DeviceConfirmationField[]dependOn()Returns an array with the fields this field depends on to be formatted correctly to form the final QR content.
Default implementation returns an empty array.DeviceConfirmationFieldTypetype()Return the field type, e.gDeviceConfirmationFieldType.PAYMENT_TYPEstatic PerformExternalPaymentConfirmationFieldvalueOf(String name)Returns the enum constant of this type with the specified name.static PerformExternalPaymentConfirmationField[]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 interface org.cyclos.model.access.devices.DeviceConfirmationField
inputFieldName, name
-
-
-
-
Enum Constant Detail
-
FROM
public static final PerformExternalPaymentConfirmationField FROM
-
TO
public static final PerformExternalPaymentConfirmationField TO
-
TYPE
public static final PerformExternalPaymentConfirmationField TYPE
-
AMOUNT
public static final PerformExternalPaymentConfirmationField AMOUNT
-
-
Method Detail
-
values
public static PerformExternalPaymentConfirmationField[] 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 (PerformExternalPaymentConfirmationField c : PerformExternalPaymentConfirmationField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PerformExternalPaymentConfirmationField 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
-
confirmation
public static CreateDeviceConfirmationParams confirmation(PerformExternalPaymentDTO dto)
Returns a newCreateDeviceConfirmationParamsinstance needed to create a new pending device confirmation and also to confirm the operation after confirmation approval.
-
dependOn
public DeviceConfirmationField[] dependOn()
Description copied from interface:DeviceConfirmationFieldReturns an array with the fields this field depends on to be formatted correctly to form the final QR content.
Default implementation returns an empty array. NOTE: The dependency hierarchy is very simple. It's a tree with only two levels: the root containing the dependent field and in the next level the fields the root depends on.- Specified by:
dependOnin interfaceDeviceConfirmationField
-
type
public DeviceConfirmationFieldType type()
Description copied from interface:DeviceConfirmationFieldReturn the field type, e.gDeviceConfirmationFieldType.PAYMENT_TYPE- Specified by:
typein interfaceDeviceConfirmationField
-
-