Enum VoucherCancelAction

    • 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 name
        NullPointerException - if the argument is null