Enum VoucherExtensionPointEvent

    • Field Detail

      • ATTR_PREVIOUS_STATUS

        public static final String ATTR_PREVIOUS_STATUS
        Scripting attribute: the previous voucher status
        See Also:
        Constant Field Values
      • ATTR_USER

        public static final String ATTR_USER
        Scripting attribute: either the user performing the redeem or top-up
        See Also:
        Constant Field Values
      • ATTR_REDEEMER

        public static final String ATTR_REDEEMER
        Scripting attribute: the redeemer user, only for redeem
        See Also:
        Constant Field Values
      • ATTR_AMOUNT

        public static final String ATTR_AMOUNT
        Scripting attribute: the amount being redeemed or topped-up, only for those events
        See Also:
        Constant Field Values
    • Method Detail

      • values

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

        public static VoucherExtensionPointEvent 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