public enum TransactionStatusRest extends java.lang.Enum<TransactionStatusRest> implements AbstractTransactionStatus
Enum Constant and Description |
---|
ALL |
EXPIRED |
PAID |
REFUND_REQUEST |
REFUNDED |
REJECTED |
UNPAID |
WAITING |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode() |
AbstractTransactionStatus |
getStatusByCode(java.lang.String code) |
java.lang.String |
getTitle() |
java.lang.String |
toString() |
static TransactionStatusRest |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionStatusRest[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionStatusRest ALL
public static final TransactionStatusRest WAITING
public static final TransactionStatusRest PAID
public static final TransactionStatusRest REJECTED
public static final TransactionStatusRest UNPAID
public static final TransactionStatusRest EXPIRED
public static final TransactionStatusRest REFUND_REQUEST
public static final TransactionStatusRest REFUNDED
public static TransactionStatusRest[] values()
for (TransactionStatusRest c : TransactionStatusRest.values()) System.out.println(c);
public static TransactionStatusRest 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 java.lang.String getCode()
getCode
in interface AbstractTransactionStatus
public java.lang.String getTitle()
getTitle
in interface AbstractTransactionStatus
public java.lang.String toString()
toString
in interface AbstractTransactionStatus
toString
in class java.lang.Enum<TransactionStatusRest>
public AbstractTransactionStatus getStatusByCode(java.lang.String code)
getStatusByCode
in interface AbstractTransactionStatus