Enum ExternalPaymentStatus
- java.lang.Object
-
- java.lang.Enum<ExternalPaymentStatus>
-
- org.cyclos.model.banking.transactions.ExternalPaymentStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ExternalPaymentStatus>,TransactionStatus,HasMessageKey
public enum ExternalPaymentStatus extends Enum<ExternalPaymentStatus> implements TransactionStatus
The possible statuses for an external payment
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELEDThe external payment has been canceledEXPIREDThe external payment has expired.FAILEDThe external payment processing has failedPENDINGThe external payment is pending to be processed.PROCESSEDThe external payment has been processed
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static ExternalPaymentStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ExternalPaymentStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PENDING
public static final ExternalPaymentStatus PENDING
The external payment is pending to be processed.
-
EXPIRED
public static final ExternalPaymentStatus EXPIRED
The external payment has expired.
-
PROCESSED
public static final ExternalPaymentStatus PROCESSED
The external payment has been processed
-
FAILED
public static final ExternalPaymentStatus FAILED
The external payment processing has failed
-
CANCELED
public static final ExternalPaymentStatus CANCELED
The external payment has been canceled
-
-
Method Detail
-
values
public static ExternalPaymentStatus[] 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 (ExternalPaymentStatus c : ExternalPaymentStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExternalPaymentStatus 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
-
-