Enum TicketStatus
- java.lang.Object
-
- java.lang.Enum<TicketStatus>
-
- org.cyclos.model.banking.transactions.TicketStatus
-
- All Implemented Interfaces:
Serializable,Comparable<TicketStatus>,TransactionStatus,HasMessageKey
public enum TicketStatus extends Enum<TicketStatus> implements TransactionStatus
The possible statuses for a ticket.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPROVEDThe 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.CANCELEDThe ticket was canceled by the receiver before being approved by the payer.EXPIREDThe ticket has expired without being approved or canceled.OPENThe ticket was created by the receiver but not approved / accepted yet.PROCESSEDThe ticket was approved by the payer and there is not success URL defined for it or an approved ticket was processed by the receiver.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()booleanisFinal()static TicketStatusvalueOf(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.
-
-
-
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 nameNullPointerException- if the argument is null
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
isFinal
public boolean isFinal()
-
-