Package com.adyen.model.payment
Enum AccountInfo.AccountTypeEnum
- java.lang.Object
-
- java.lang.Enum<AccountInfo.AccountTypeEnum>
-
- com.adyen.model.payment.AccountInfo.AccountTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<AccountInfo.AccountTypeEnum>
- Enclosing class:
- AccountInfo
public static enum AccountInfo.AccountTypeEnum extends Enum<AccountInfo.AccountTypeEnum>
Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREDITDEBITNOTAPPLICABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountInfo.AccountTypeEnumfromValue(String value)StringgetValue()StringtoString()static AccountInfo.AccountTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static AccountInfo.AccountTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOTAPPLICABLE
public static final AccountInfo.AccountTypeEnum NOTAPPLICABLE
-
CREDIT
public static final AccountInfo.AccountTypeEnum CREDIT
-
DEBIT
public static final AccountInfo.AccountTypeEnum DEBIT
-
-
Method Detail
-
values
public static AccountInfo.AccountTypeEnum[] 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 (AccountInfo.AccountTypeEnum c : AccountInfo.AccountTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccountInfo.AccountTypeEnum 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
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<AccountInfo.AccountTypeEnum>
-
fromValue
public static AccountInfo.AccountTypeEnum fromValue(String value)
-
-