Enum VoucherPaymentDestination
- java.lang.Object
-
- java.lang.Enum<VoucherPaymentDestination>
-
- org.cyclos.model.banking.vouchers.VoucherPaymentDestination
-
- All Implemented Interfaces:
Serializable,Comparable<VoucherPaymentDestination>,HasMessageKey
public enum VoucherPaymentDestination extends Enum<VoucherPaymentDestination> implements HasMessageKey
Determines who receives the payment when a voucher is redeemed
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIXED_USERA fixed user receives the paymentREDEEMERThe user redeeming the voucher receives the payment
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static VoucherPaymentDestinationvalueOf(String name)Returns the enum constant of this type with the specified name.static VoucherPaymentDestination[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REDEEMER
public static final VoucherPaymentDestination REDEEMER
The user redeeming the voucher receives the payment
-
FIXED_USER
public static final VoucherPaymentDestination FIXED_USER
A fixed user receives the payment
-
-
Method Detail
-
values
public static VoucherPaymentDestination[] 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 (VoucherPaymentDestination c : VoucherPaymentDestination.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VoucherPaymentDestination 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-