Enum VoucherPinStatusForRedeem
- java.lang.Object
-
- java.lang.Enum<VoucherPinStatusForRedeem>
-
- org.cyclos.model.banking.vouchers.VoucherPinStatusForRedeem
-
- All Implemented Interfaces:
Serializable,Comparable<VoucherPinStatusForRedeem>,HasMessageKey
public enum VoucherPinStatusForRedeem extends Enum<VoucherPinStatusForRedeem> implements HasMessageKey
Indicates the status of the voucher PIN
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCKEDVoucher PIN is required for redeem, but has been blocked by exceeding attempts.NOT_USEDVoucher PIN is not used.REQUIREDVoucher PIN is required for redeem.SUBSEQUENTVoucher PIN is used only on subsequent redeems, not on the first one.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static VoucherPinStatusForRedeemvalueOf(String name)Returns the enum constant of this type with the specified name.static VoucherPinStatusForRedeem[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_USED
public static final VoucherPinStatusForRedeem NOT_USED
Voucher PIN is not used.
-
SUBSEQUENT
public static final VoucherPinStatusForRedeem SUBSEQUENT
Voucher PIN is used only on subsequent redeems, not on the first one. As the current voucher never had a redeem, is currently not used.
-
REQUIRED
public static final VoucherPinStatusForRedeem REQUIRED
Voucher PIN is required for redeem.
-
BLOCKED
public static final VoucherPinStatusForRedeem BLOCKED
Voucher PIN is required for redeem, but has been blocked by exceeding attempts.
-
-
Method Detail
-
values
public static VoucherPinStatusForRedeem[] 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 (VoucherPinStatusForRedeem c : VoucherPinStatusForRedeem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VoucherPinStatusForRedeem 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
-
-