Enum TransferNature
- java.lang.Object
-
- java.lang.Enum<TransferNature>
-
- org.cyclos.model.banking.transfers.TransferNature
-
- All Implemented Interfaces:
Serializable,Comparable<TransferNature>,HasMessageKey
public enum TransferNature extends Enum<TransferNature> implements HasMessageKey
Contains the possible subclasses for transfers
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNT_FEEA transfer generated by an account fee chargeBALANCE_DISPOSALA transfer which transfers funds to a user account that is being disposal with a negative balance, or from an user account which is being disposed with a positive balanceCHARGEBACKA transfer which is a chargeback of another transferIMPORTAn imported transferINITIAL_CREDITA transfer which is the initial credit for a newly created accountINSTALLMENTA transfer generated when processing a installmentPAYMENTA transfer generated by a direct payment or accepting a webshop orderTRANSFER_FEEA transfer generated by a transfer fee charge
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static TransferNaturevalueOf(String name)Returns the enum constant of this type with the specified name.static TransferNature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PAYMENT
public static final TransferNature PAYMENT
A transfer generated by a direct payment or accepting a webshop order
-
INSTALLMENT
public static final TransferNature INSTALLMENT
A transfer generated when processing a installment
-
CHARGEBACK
public static final TransferNature CHARGEBACK
A transfer which is a chargeback of another transfer
-
INITIAL_CREDIT
public static final TransferNature INITIAL_CREDIT
A transfer which is the initial credit for a newly created account
-
BALANCE_DISPOSAL
public static final TransferNature BALANCE_DISPOSAL
A transfer which transfers funds to a user account that is being disposal with a negative balance, or from an user account which is being disposed with a positive balance
-
TRANSFER_FEE
public static final TransferNature TRANSFER_FEE
A transfer generated by a transfer fee charge
-
ACCOUNT_FEE
public static final TransferNature ACCOUNT_FEE
A transfer generated by an account fee charge
-
IMPORT
public static final TransferNature IMPORT
An imported transfer
-
-
Method Detail
-
values
public static TransferNature[] 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 (TransferNature c : TransferNature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransferNature 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
-
-