Enum LegalEntity.TypeEnum
- java.lang.Object
-
- java.lang.Enum<LegalEntity.TypeEnum>
-
- com.adyen.model.legalentitymanagement.LegalEntity.TypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<LegalEntity.TypeEnum>
- Enclosing class:
- LegalEntity
public static enum LegalEntity.TypeEnum extends Enum<LegalEntity.TypeEnum>
The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INDIVIDUALORGANIZATIONSOLEPROPRIETORSHIPTRUSTUNINCORPORATEDPARTNERSHIP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LegalEntity.TypeEnumfromValue(String value)StringgetValue()StringtoString()static LegalEntity.TypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static LegalEntity.TypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INDIVIDUAL
public static final LegalEntity.TypeEnum INDIVIDUAL
-
ORGANIZATION
public static final LegalEntity.TypeEnum ORGANIZATION
-
SOLEPROPRIETORSHIP
public static final LegalEntity.TypeEnum SOLEPROPRIETORSHIP
-
TRUST
public static final LegalEntity.TypeEnum TRUST
-
UNINCORPORATEDPARTNERSHIP
public static final LegalEntity.TypeEnum UNINCORPORATEDPARTNERSHIP
-
-
Method Detail
-
values
public static LegalEntity.TypeEnum[] 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 (LegalEntity.TypeEnum c : LegalEntity.TypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LegalEntity.TypeEnum 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<LegalEntity.TypeEnum>
-
fromValue
public static LegalEntity.TypeEnum fromValue(String value)
-
-