Class LegalEntityAssociation
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.LegalEntityAssociation
-
public class LegalEntityAssociation extends Object
LegalEntityAssociation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLegalEntityAssociation.CustomTypeAdapterFactorystatic classLegalEntityAssociation.TypeEnumDefines the relationship of the legal entity to the current legal entity.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ASSOCIATOR_IDstatic StringSERIALIZED_NAME_ENTITY_TYPEstatic StringSERIALIZED_NAME_JOB_TITLEstatic StringSERIALIZED_NAME_LEGAL_ENTITY_IDstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description LegalEntityAssociation()LegalEntityAssociation(String associatorId, String entityType, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static LegalEntityAssociationfromJson(String jsonString)Create an instance of LegalEntityAssociation given an JSON stringStringgetAssociatorId()The unique identifier of another legal entity with which the `legalEntityId` is associated.StringgetEntityType()The legal entity type of associated legal entity.StringgetJobTitle()The individual's job title if the `type` is **uboThroughControl** or **signatory**.StringgetLegalEntityId()The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id).StringgetName()The name of the associated [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id).LegalEntityAssociation.TypeEnumgetType()Defines the relationship of the legal entity to the current legal entity.inthashCode()LegalEntityAssociationjobTitle(String jobTitle)LegalEntityAssociationlegalEntityId(String legalEntityId)voidsetJobTitle(String jobTitle)voidsetLegalEntityId(String legalEntityId)voidsetType(LegalEntityAssociation.TypeEnum type)StringtoJson()Convert an instance of LegalEntityAssociation to an JSON stringStringtoString()LegalEntityAssociationtype(LegalEntityAssociation.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ASSOCIATOR_ID
public static final String SERIALIZED_NAME_ASSOCIATOR_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENTITY_TYPE
public static final String SERIALIZED_NAME_ENTITY_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_JOB_TITLE
public static final String SERIALIZED_NAME_JOB_TITLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LEGAL_ENTITY_ID
public static final String SERIALIZED_NAME_LEGAL_ENTITY_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAssociatorId
public String getAssociatorId()
The unique identifier of another legal entity with which the `legalEntityId` is associated. When the `legalEntityId` is associated to legal entities other than the current one, the response returns all the associations.- Returns:
- associatorId
-
getEntityType
public String getEntityType()
The legal entity type of associated legal entity. For example, **organization**, **soleProprietorship** or **individual**.- Returns:
- entityType
-
jobTitle
public LegalEntityAssociation jobTitle(String jobTitle)
-
getJobTitle
public String getJobTitle()
The individual's job title if the `type` is **uboThroughControl** or **signatory**.- Returns:
- jobTitle
-
setJobTitle
public void setJobTitle(String jobTitle)
-
legalEntityId
public LegalEntityAssociation legalEntityId(String legalEntityId)
-
getLegalEntityId
public String getLegalEntityId()
The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id).- Returns:
- legalEntityId
-
setLegalEntityId
public void setLegalEntityId(String legalEntityId)
-
getName
public String getName()
The name of the associated [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id). - For **individual**, `name.firstName` and `name.lastName`. - For **organization**, `legalName`. - For **soleProprietorship**, `name`.- Returns:
- name
-
type
public LegalEntityAssociation type(LegalEntityAssociation.TypeEnum type)
-
getType
public LegalEntityAssociation.TypeEnum getType()
Defines the relationship of the legal entity to the current legal entity. For example, **uboThroughOwnership**, **uboThroughControl**, **signatory**, or **soleProprietorship**.- Returns:
- type
-
setType
public void setType(LegalEntityAssociation.TypeEnum type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to LegalEntityAssociation
-
fromJson
public static LegalEntityAssociation fromJson(String jsonString) throws IOException
Create an instance of LegalEntityAssociation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LegalEntityAssociation
- Throws:
IOException- if the JSON string is invalid with respect to LegalEntityAssociation
-
toJson
public String toJson()
Convert an instance of LegalEntityAssociation to an JSON string- Returns:
- JSON string
-
-