Package com.adyen.model.transfers
Class UltimatePartyIdentification
- java.lang.Object
-
- com.adyen.model.transfers.UltimatePartyIdentification
-
public class UltimatePartyIdentification extends Object
UltimatePartyIdentification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUltimatePartyIdentification.CustomTypeAdapterFactorystatic classUltimatePartyIdentification.TypeEnumThe type of entity that owns the bank account.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_DATE_OF_BIRTHstatic StringSERIALIZED_NAME_FIRST_NAMEstatic StringSERIALIZED_NAME_FULL_NAMEstatic StringSERIALIZED_NAME_LAST_NAMEstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description UltimatePartyIdentification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UltimatePartyIdentificationaddress(Address2 address)UltimatePartyIdentificationdateOfBirth(LocalDate dateOfBirth)booleanequals(Object o)UltimatePartyIdentificationfirstName(String firstName)static UltimatePartyIdentificationfromJson(String jsonString)Create an instance of UltimatePartyIdentification given an JSON stringUltimatePartyIdentificationfullName(String fullName)Address2getAddress()Get addressLocalDategetDateOfBirth()The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format.StringgetFirstName()First name of the individual.StringgetFullName()The name of the entity.StringgetLastName()Last name of the individual.StringgetReference()Your unique reference of the party.UltimatePartyIdentification.TypeEnumgetType()The type of entity that owns the bank account.inthashCode()UltimatePartyIdentificationlastName(String lastName)UltimatePartyIdentificationreference(String reference)voidsetAddress(Address2 address)voidsetDateOfBirth(LocalDate dateOfBirth)voidsetFirstName(String firstName)voidsetFullName(String fullName)voidsetLastName(String lastName)voidsetReference(String reference)voidsetType(UltimatePartyIdentification.TypeEnum type)StringtoJson()Convert an instance of UltimatePartyIdentification to an JSON stringStringtoString()UltimatePartyIdentificationtype(UltimatePartyIdentification.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ADDRESS
public static final String SERIALIZED_NAME_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATE_OF_BIRTH
public static final String SERIALIZED_NAME_DATE_OF_BIRTH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FIRST_NAME
public static final String SERIALIZED_NAME_FIRST_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FULL_NAME
public static final String SERIALIZED_NAME_FULL_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_NAME
public static final String SERIALIZED_NAME_LAST_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public UltimatePartyIdentification address(Address2 address)
-
getAddress
public Address2 getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(Address2 address)
-
dateOfBirth
public UltimatePartyIdentification dateOfBirth(LocalDate dateOfBirth)
-
getDateOfBirth
public LocalDate getDateOfBirth()
The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**.- Returns:
- dateOfBirth
-
setDateOfBirth
public void setDateOfBirth(LocalDate dateOfBirth)
-
firstName
public UltimatePartyIdentification firstName(String firstName)
-
getFirstName
public String getFirstName()
First name of the individual. Allowed only when `type` is **individual**.- Returns:
- firstName
-
setFirstName
public void setFirstName(String firstName)
-
fullName
public UltimatePartyIdentification fullName(String fullName)
-
getFullName
public String getFullName()
The name of the entity.- Returns:
- fullName
-
setFullName
public void setFullName(String fullName)
-
lastName
public UltimatePartyIdentification lastName(String lastName)
-
getLastName
public String getLastName()
Last name of the individual. Allowed only when `type` is **individual**.- Returns:
- lastName
-
setLastName
public void setLastName(String lastName)
-
reference
public UltimatePartyIdentification reference(String reference)
-
getReference
public String getReference()
Your unique reference of the party. This should be consistent for all transfers initiated to/from the same party/counterparty. e.g Your client's unique wallet or payee ID- Returns:
- reference
-
setReference
public void setReference(String reference)
-
type
public UltimatePartyIdentification type(UltimatePartyIdentification.TypeEnum type)
-
getType
public UltimatePartyIdentification.TypeEnum getType()
The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.- Returns:
- type
-
setType
public void setType(UltimatePartyIdentification.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 UltimatePartyIdentification
-
fromJson
public static UltimatePartyIdentification fromJson(String jsonString) throws IOException
Create an instance of UltimatePartyIdentification given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UltimatePartyIdentification
- Throws:
IOException- if the JSON string is invalid with respect to UltimatePartyIdentification
-
toJson
public String toJson()
Convert an instance of UltimatePartyIdentification to an JSON string- Returns:
- JSON string
-
-