Package com.adyen.model.transferwebhooks
Class PartyIdentification
- java.lang.Object
-
- com.adyen.model.transferwebhooks.PartyIdentification
-
public class PartyIdentification extends Object
PartyIdentification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPartyIdentification.TypeEnumThe type of entity that owns the bank account.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESSstatic StringJSON_PROPERTY_DATE_OF_BIRTHstatic StringJSON_PROPERTY_FIRST_NAMEstatic StringJSON_PROPERTY_FULL_NAMEstatic StringJSON_PROPERTY_LAST_NAMEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description PartyIdentification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PartyIdentificationaddress(Address address)PartyIdentificationdateOfBirth(LocalDate dateOfBirth)booleanequals(Object o)Return true if this PartyIdentification object is equal to o.PartyIdentificationfirstName(String firstName)static PartyIdentificationfromJson(String jsonString)Create an instance of PartyIdentification given an JSON stringPartyIdentificationfullName(String fullName)AddressgetAddress()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()A unique reference to identify the party or counterparty involved in transfers.PartyIdentification.TypeEnumgetType()The type of entity that owns the bank account.inthashCode()PartyIdentificationlastName(String lastName)PartyIdentificationreference(String reference)voidsetAddress(Address address)addressvoidsetDateOfBirth(LocalDate dateOfBirth)The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format.voidsetFirstName(String firstName)First name of the individual.voidsetFullName(String fullName)The name of the entity.voidsetLastName(String lastName)Last name of the individual.voidsetReference(String reference)A unique reference to identify the party or counterparty involved in transfers.voidsetType(PartyIdentification.TypeEnum type)The type of entity that owns the bank account.StringtoJson()Convert an instance of PartyIdentification to an JSON stringStringtoString()PartyIdentificationtype(PartyIdentification.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_ADDRESS
public static final String JSON_PROPERTY_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DATE_OF_BIRTH
public static final String JSON_PROPERTY_DATE_OF_BIRTH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FIRST_NAME
public static final String JSON_PROPERTY_FIRST_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FULL_NAME
public static final String JSON_PROPERTY_FULL_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_NAME
public static final String JSON_PROPERTY_LAST_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public PartyIdentification address(Address address)
-
getAddress
public Address getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(Address address)
address- Parameters:
address-
-
dateOfBirth
public PartyIdentification 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**. Should not be before January 1, 1900. Allowed only when `type` is **individual**.- Returns:
- dateOfBirth
-
setDateOfBirth
public void setDateOfBirth(LocalDate dateOfBirth)
The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Should not be before January 1, 1900. Allowed only when `type` is **individual**.- Parameters:
dateOfBirth-
-
firstName
public PartyIdentification firstName(String firstName)
-
getFirstName
public String getFirstName()
First name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.- Returns:
- firstName
-
setFirstName
public void setFirstName(String firstName)
First name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.- Parameters:
firstName-
-
fullName
public PartyIdentification fullName(String fullName)
-
getFullName
public String getFullName()
The name of the entity. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and Space.- Returns:
- fullName
-
setFullName
public void setFullName(String fullName)
The name of the entity. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and Space.- Parameters:
fullName-
-
lastName
public PartyIdentification lastName(String lastName)
-
getLastName
public String getLastName()
Last name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.- Returns:
- lastName
-
setLastName
public void setLastName(String lastName)
Last name of the individual. Allowed only when `type` is **individual**. Supported characters: [a-z] [A-Z] - . / — and Space.- Parameters:
lastName-
-
reference
public PartyIdentification reference(String reference)
-
getReference
public String getReference()
A unique reference to identify the party or counterparty involved in transfers. This identifier ensures consistency and uniqueness throughout all transactions initiated to and from the same party. For example, your client's unique wallet or payee ID.- Returns:
- reference
-
setReference
public void setReference(String reference)
A unique reference to identify the party or counterparty involved in transfers. This identifier ensures consistency and uniqueness throughout all transactions initiated to and from the same party. For example, your client's unique wallet or payee ID.- Parameters:
reference-
-
type
public PartyIdentification type(PartyIdentification.TypeEnum type)
-
getType
public PartyIdentification.TypeEnum getType()
The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.- Returns:
- type
-
setType
public void setType(PartyIdentification.TypeEnum type)
The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this PartyIdentification object is equal to o.
-
fromJson
public static PartyIdentification fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PartyIdentification given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PartyIdentification
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PartyIdentification
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PartyIdentification to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-