Enum VoucherGenerationStatus

    • Enum Constant Detail

      • ACTIVE

        public static final VoucherGenerationStatus ACTIVE
        Vouchers are generated active, backed by a reservation in a system account.
      • BLOCKED

        public static final VoucherGenerationStatus BLOCKED
        Vouchers are generated blocked, non-backed. When unblocked, a reservation in a system account is done.
      • INACTIVE

        public static final VoucherGenerationStatus INACTIVE
        Vouchers are generated inactive, non-backed. When activated with a top-up, a user to system payment is done.
    • Method Detail

      • values

        public static VoucherGenerationStatus[] 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 (VoucherGenerationStatus c : VoucherGenerationStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static VoucherGenerationStatus 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
      • generatedVoucherStatus

        public VoucherStatus generatedVoucherStatus()
        Returns the initial status for generated vouchers