Class Individual
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.Individual
-
public class Individual extends Object
Individual
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BIRTH_DATAstatic StringJSON_PROPERTY_EMAILstatic StringJSON_PROPERTY_IDENTIFICATION_DATAstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_NATIONALITYstatic StringJSON_PROPERTY_PHONEstatic StringJSON_PROPERTY_RESIDENTIAL_ADDRESSstatic StringJSON_PROPERTY_TAX_INFORMATIONstatic StringJSON_PROPERTY_WEB_DATA
-
Constructor Summary
Constructors Constructor Description Individual()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IndividualaddTaxInformationItem(TaxInformation taxInformationItem)IndividualbirthData(BirthData birthData)birthDataIndividualemail(String email)The email address of the legal entity.booleanequals(Object o)Return true if this Individual object is equal to o.static IndividualfromJson(String jsonString)Create an instance of Individual given an JSON stringBirthDatagetBirthData()birthDataStringgetEmail()The email address of the legal entity.IdentificationDatagetIdentificationData()identificationDataNamegetName()nameStringgetNationality()The individual's nationality.PhoneNumbergetPhone()phoneAddressgetResidentialAddress()residentialAddressList<TaxInformation>getTaxInformation()The tax information of the individual.WebDatagetWebData()webDatainthashCode()IndividualidentificationData(IdentificationData identificationData)identificationDataIndividualname(Name name)nameIndividualnationality(String nationality)The individual's nationality.Individualphone(PhoneNumber phone)phoneIndividualresidentialAddress(Address residentialAddress)residentialAddressvoidsetBirthData(BirthData birthData)birthDatavoidsetEmail(String email)The email address of the legal entity.voidsetIdentificationData(IdentificationData identificationData)identificationDatavoidsetName(Name name)namevoidsetNationality(String nationality)The individual's nationality.voidsetPhone(PhoneNumber phone)phonevoidsetResidentialAddress(Address residentialAddress)residentialAddressvoidsetTaxInformation(List<TaxInformation> taxInformation)The tax information of the individual.voidsetWebData(WebData webData)webDataIndividualtaxInformation(List<TaxInformation> taxInformation)The tax information of the individual.StringtoJson()Convert an instance of Individual to an JSON stringStringtoString()IndividualwebData(WebData webData)webData
-
-
-
Field Detail
-
JSON_PROPERTY_BIRTH_DATA
public static final String JSON_PROPERTY_BIRTH_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EMAIL
public static final String JSON_PROPERTY_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_IDENTIFICATION_DATA
public static final String JSON_PROPERTY_IDENTIFICATION_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NATIONALITY
public static final String JSON_PROPERTY_NATIONALITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PHONE
public static final String JSON_PROPERTY_PHONE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESIDENTIAL_ADDRESS
public static final String JSON_PROPERTY_RESIDENTIAL_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TAX_INFORMATION
public static final String JSON_PROPERTY_TAX_INFORMATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_WEB_DATA
public static final String JSON_PROPERTY_WEB_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
birthData
public Individual birthData(BirthData birthData)
birthData- Parameters:
birthData-- Returns:
- the current
Individualinstance, allowing for method chaining
-
getBirthData
public BirthData getBirthData()
birthData- Returns:
- birthData
-
setBirthData
public void setBirthData(BirthData birthData)
birthData- Parameters:
birthData-
-
email
public Individual email(String email)
The email address of the legal entity.- Parameters:
email-- Returns:
- the current
Individualinstance, allowing for method chaining
-
getEmail
public String getEmail()
The email address of the legal entity.- Returns:
-
setEmail
public void setEmail(String email)
The email address of the legal entity.- Parameters:
email-
-
identificationData
public Individual identificationData(IdentificationData identificationData)
identificationData- Parameters:
identificationData-- Returns:
- the current
Individualinstance, allowing for method chaining
-
getIdentificationData
public IdentificationData getIdentificationData()
identificationData- Returns:
- identificationData
-
setIdentificationData
public void setIdentificationData(IdentificationData identificationData)
identificationData- Parameters:
identificationData-
-
name
public Individual name(Name name)
name- Parameters:
name-- Returns:
- the current
Individualinstance, allowing for method chaining
-
getName
public Name getName()
name- Returns:
- name
-
setName
public void setName(Name name)
name- Parameters:
name-
-
nationality
public Individual nationality(String nationality)
The individual's nationality.- Parameters:
nationality-- Returns:
- the current
Individualinstance, allowing for method chaining
-
getNationality
public String getNationality()
The individual's nationality.- Returns:
- nationality
-
setNationality
public void setNationality(String nationality)
The individual's nationality.- Parameters:
nationality-
-
phone
public Individual phone(PhoneNumber phone)
phone- Parameters:
phone-- Returns:
- the current
Individualinstance, allowing for method chaining
-
getPhone
public PhoneNumber getPhone()
phone- Returns:
- phone
-
setPhone
public void setPhone(PhoneNumber phone)
phone- Parameters:
phone-
-
residentialAddress
public Individual residentialAddress(Address residentialAddress)
residentialAddress- Parameters:
residentialAddress-- Returns:
- the current
Individualinstance, allowing for method chaining
-
getResidentialAddress
public Address getResidentialAddress()
residentialAddress- Returns:
- residentialAddress
-
setResidentialAddress
public void setResidentialAddress(Address residentialAddress)
residentialAddress- Parameters:
residentialAddress-
-
taxInformation
public Individual taxInformation(List<TaxInformation> taxInformation)
The tax information of the individual.- Parameters:
taxInformation-- Returns:
- the current
Individualinstance, allowing for method chaining
-
addTaxInformationItem
public Individual addTaxInformationItem(TaxInformation taxInformationItem)
-
getTaxInformation
public List<TaxInformation> getTaxInformation()
The tax information of the individual.- Returns:
- taxInformation
-
setTaxInformation
public void setTaxInformation(List<TaxInformation> taxInformation)
The tax information of the individual.- Parameters:
taxInformation-
-
webData
public Individual webData(WebData webData)
webData- Parameters:
webData-- Returns:
- the current
Individualinstance, allowing for method chaining
-
getWebData
public WebData getWebData()
webData- Returns:
- webData
-
setWebData
public void setWebData(WebData webData)
webData- Parameters:
webData-
-
equals
public boolean equals(Object o)
Return true if this Individual object is equal to o.
-
fromJson
public static Individual fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Individual given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Individual
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Individual
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Individual to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-