Enum ScheduledPaymentStatus
- java.lang.Object
-
- java.lang.Enum<ScheduledPaymentStatus>
-
- org.cyclos.model.banking.transactions.ScheduledPaymentStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ScheduledPaymentStatus>,TransactionStatus,HasMessageKey
public enum ScheduledPaymentStatus extends Enum<ScheduledPaymentStatus> implements TransactionStatus
The possible statuses for a scheduled payment
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCKEDThe scheduled payment is blocked, preventing installments from being automatically processedCANCELEDThe scheduled payment was canceled while open by the payerCLOSEDThe scheduled payment has all installments as processedOPENThe scheduled payment is still open
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static ScheduledPaymentStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ScheduledPaymentStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPEN
public static final ScheduledPaymentStatus OPEN
The scheduled payment is still open
-
CLOSED
public static final ScheduledPaymentStatus CLOSED
The scheduled payment has all installments as processed
-
BLOCKED
public static final ScheduledPaymentStatus BLOCKED
The scheduled payment is blocked, preventing installments from being automatically processed
-
CANCELED
public static final ScheduledPaymentStatus CANCELED
The scheduled payment was canceled while open by the payer
-
-
Method Detail
-
values
public static ScheduledPaymentStatus[] 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 (ScheduledPaymentStatus c : ScheduledPaymentStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScheduledPaymentStatus 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
-
-