Enum UserAccountFeeStatus
- java.lang.Object
-
- java.lang.Enum<UserAccountFeeStatus>
-
- org.cyclos.model.banking.accountfees.UserAccountFeeStatus
-
- All Implemented Interfaces:
Serializable,Comparable<UserAccountFeeStatus>,HasMessageKey
public enum UserAccountFeeStatus extends Enum<UserAccountFeeStatus> implements HasMessageKey
The status for a particular user account within a charge
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()booleanisFinished()static EnumMessageKeyResolver<UserAccountFeeStatus>resolverForUsersByStatus()Returns anEnumMessageKeyResolverfor messages of affected users by statusstatic UserAccountFeeStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static UserAccountFeeStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PENDING
public static final UserAccountFeeStatus PENDING
The account hasn't been charged yet
-
FAILED
public static final UserAccountFeeStatus FAILED
The account couldn't be charged. For example, there were no funds to pay the fee
-
SKIPPED
public static final UserAccountFeeStatus SKIPPED
The account wasn't charged, for example, because of the freebase
-
CHARGED
public static final UserAccountFeeStatus CHARGED
The account was successfully charged
-
-
Method Detail
-
values
public static UserAccountFeeStatus[] 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 (UserAccountFeeStatus c : UserAccountFeeStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UserAccountFeeStatus 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
-
resolverForUsersByStatus
public static EnumMessageKeyResolver<UserAccountFeeStatus> resolverForUsersByStatus()
Returns anEnumMessageKeyResolverfor messages of affected users by status
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
isFinished
public boolean isFinished()
-
-