public enum TicketStatus extends java.lang.Enum<TicketStatus> implements TransactionStatus, HasMessageKey
| Enum Constant and Description |
|---|
CANCELED
The ticket was canceled by the receiver before being processed
|
EXPIRED
The ticket has expired without being confirmed or canceled
|
OPEN
The ticket was created, but not confirmed yet
|
PROCESSED
The ticket was confirmed and processed (the payment was generated)
|
| Modifier and Type | Method and Description |
|---|---|
MessageKey |
getMessageKey() |
static TicketStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TicketStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TicketStatus OPEN
public static final TicketStatus PROCESSED
public static final TicketStatus CANCELED
public static final TicketStatus EXPIRED
public static TicketStatus[] values()
for (TicketStatus c : TicketStatus.values()) System.out.println(c);
public static TicketStatus valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic MessageKey getMessageKey()
getMessageKey in interface HasMessageKey