Enum TicketStatus

    • Enum Constant Detail

      • OPEN

        public static final TicketStatus OPEN
        The ticket was created by the receiver but not approved / accepted yet.
      • APPROVED

        public static final TicketStatus APPROVED
        The ticket was approved by the logged user (i.e the payer) and it has a defined success URL.
        In that case the payment won't be generated until it's processed by the receiver.
      • PROCESSED

        public static final TicketStatus PROCESSED
        The ticket was approved by the payer and there is not success URL defined for it or an approved ticket was processed by the receiver.
      • CANCELED

        public static final TicketStatus CANCELED
        The ticket was canceled by the receiver before being approved by the payer.
      • EXPIRED

        public static final TicketStatus EXPIRED
        The ticket has expired without being approved or canceled.
    • Method Detail

      • values

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

        public static TicketStatus 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
      • isFinal

        public boolean isFinal()