Enum VoucherCancelAction
- java.lang.Object
-
- java.lang.Enum<VoucherCancelAction>
-
- org.cyclos.model.banking.vouchers.VoucherCancelAction
-
- All Implemented Interfaces:
Serializable,Comparable<VoucherCancelAction>
public enum VoucherCancelAction extends Enum<VoucherCancelAction>
Indicates what happens if a voucher is cancelled
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCEL_AND_CHARGEBACKA voucher with a single top-up and no redeems, when canceled, the top-up will be charged-backCANCEL_AND_REFUNDA single bought voucher is canceled and the amount is refundedCANCEL_GENERATEDCancels a single generated voucherCANCEL_PENDING_PACKCancels more than one bought vouchers whose buy payment is pending authorizationCANCEL_PENDING_SINGLECancels a single bought vouchers whose buy payment is pending authorization
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VoucherCancelActionvalueOf(String name)Returns the enum constant of this type with the specified name.static VoucherCancelAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CANCEL_GENERATED
public static final VoucherCancelAction CANCEL_GENERATED
Cancels a single generated voucher
-
CANCEL_PENDING_PACK
public static final VoucherCancelAction CANCEL_PENDING_PACK
Cancels more than one bought vouchers whose buy payment is pending authorization
-
CANCEL_PENDING_SINGLE
public static final VoucherCancelAction CANCEL_PENDING_SINGLE
Cancels a single bought vouchers whose buy payment is pending authorization
-
CANCEL_AND_REFUND
public static final VoucherCancelAction CANCEL_AND_REFUND
A single bought voucher is canceled and the amount is refunded
-
CANCEL_AND_CHARGEBACK
public static final VoucherCancelAction CANCEL_AND_CHARGEBACK
A voucher with a single top-up and no redeems, when canceled, the top-up will be charged-back
-
-
Method Detail
-
values
public static VoucherCancelAction[] 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 (VoucherCancelAction c : VoucherCancelAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VoucherCancelAction 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
-
-