Package com.adyen.model.transfers
Class PartyIdentification
- java.lang.Object
-
- com.adyen.model.transfers.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 or card.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESSstatic StringJSON_PROPERTY_DATE_OF_BIRTHstatic StringJSON_PROPERTY_EMAILstatic StringJSON_PROPERTY_FIRST_NAMEstatic StringJSON_PROPERTY_FULL_NAMEstatic StringJSON_PROPERTY_LAST_NAMEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_URL
-
Constructor Summary
Constructors Constructor Description PartyIdentification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PartyIdentificationaddress(Address address)addressPartyIdentificationdateOfBirth(LocalDate dateOfBirth)The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format.PartyIdentificationemail(String email)The email address of the organization or individual.booleanequals(Object o)Return true if this PartyIdentification object is equal to o.PartyIdentificationfirstName(String firstName)The first name of the individual.static PartyIdentificationfromJson(String jsonString)Create an instance of PartyIdentification given an JSON stringPartyIdentificationfullName(String fullName)The full name of the entity that owns the bank account or card.AddressgetAddress()Get addressLocalDategetDateOfBirth()The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format.StringgetEmail()The email address of the organization or individual.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetFirstName()The first name of the individual.StringgetFullName()The full name of the entity that owns the bank account or card.StringgetLastName()The last name of the individual.StringgetReference()A unique reference to identify the party or counterparty involved in the transfer.PartyIdentification.TypeEnumgetType()The type of entity that owns the bank account or card.StringgetUrl()The URL of the organization or individual.inthashCode()PartyIdentificationincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PartyIdentificationlastName(String lastName)The last name of the individual.PartyIdentificationreference(String reference)A unique reference to identify the party or counterparty involved in the transfer.voidsetAddress(Address address)addressvoidsetDateOfBirth(LocalDate dateOfBirth)The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format.voidsetEmail(String email)The email address of the organization or individual.voidsetFirstName(String firstName)The first name of the individual.voidsetFullName(String fullName)The full name of the entity that owns the bank account or card.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetLastName(String lastName)The last name of the individual.voidsetReference(String reference)A unique reference to identify the party or counterparty involved in the transfer.voidsetType(PartyIdentification.TypeEnum type)The type of entity that owns the bank account or card.voidsetUrl(String url)The URL of the organization or individual.StringtoJson()Convert an instance of PartyIdentification to an JSON stringStringtoString()PartyIdentificationtype(PartyIdentification.TypeEnum type)The type of entity that owns the bank account or card.PartyIdentificationurl(String url)The URL of the organization or individual.
-
-
-
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_EMAIL
public static final String JSON_PROPERTY_EMAIL
- 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
-
JSON_PROPERTY_URL
public static final String JSON_PROPERTY_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public PartyIdentification address(Address address)
address- Parameters:
address-- Returns:
- the current
PartyIdentificationinstance, allowing for method chaining
-
getAddress
public Address getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(Address address)
address- Parameters:
address-
-
dateOfBirth
public PartyIdentification dateOfBirth(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**. Allowed only when `type` is **individual**.- Parameters:
dateOfBirth- 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:
- the current
PartyIdentificationinstance, allowing for method chaining
-
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 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**.
-
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**. Allowed only when `type` is **individual**.- Parameters:
dateOfBirth- 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**.
-
email
public PartyIdentification email(String email)
The email address of the organization or individual. Maximum length: 254 characters.- Parameters:
email- The email address of the organization or individual. Maximum length: 254 characters.- Returns:
- the current
PartyIdentificationinstance, allowing for method chaining
-
getEmail
public String getEmail()
The email address of the organization or individual. Maximum length: 254 characters.- Returns:
- email The email address of the organization or individual. Maximum length: 254 characters.
-
setEmail
public void setEmail(String email)
The email address of the organization or individual. Maximum length: 254 characters.- Parameters:
email- The email address of the organization or individual. Maximum length: 254 characters.
-
firstName
public PartyIdentification firstName(String firstName)
The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.- Parameters:
firstName- The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.- Returns:
- the current
PartyIdentificationinstance, allowing for method chaining
-
getFirstName
public String getFirstName()
The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.- Returns:
- firstName The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
-
setFirstName
public void setFirstName(String firstName)
The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.- Parameters:
firstName- The first name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
-
fullName
public PartyIdentification fullName(String fullName)
The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**.- Parameters:
fullName- The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**.- Returns:
- the current
PartyIdentificationinstance, allowing for method chaining
-
getFullName
public String getFullName()
The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**.- Returns:
- fullName The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**.
-
setFullName
public void setFullName(String fullName)
The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**.- Parameters:
fullName- The full name of the entity that owns the bank account or card. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" ' and space. Required when `category` is **bank**.
-
lastName
public PartyIdentification lastName(String lastName)
The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.- Parameters:
lastName- The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.- Returns:
- the current
PartyIdentificationinstance, allowing for method chaining
-
getLastName
public String getLastName()
The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.- Returns:
- lastName The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
-
setLastName
public void setLastName(String lastName)
The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.- Parameters:
lastName- The last name of the individual. Supported characters: [a-z] [A-Z] - . / — and space. This parameter is: - Allowed only when `type` is **individual**. - Required when `category` is **card**.
-
reference
public PartyIdentification reference(String reference)
A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`.- Parameters:
reference- A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`.- Returns:
- the current
PartyIdentificationinstance, allowing for method chaining
-
getReference
public String getReference()
A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`.- Returns:
- reference A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`.
-
setReference
public void setReference(String reference)
A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`.- Parameters:
reference- A unique reference to identify the party or counterparty involved in the transfer. For example, your client's unique wallet or payee ID. Required when you include `cardIdentification.storedPaymentMethodId`.
-
type
public PartyIdentification type(PartyIdentification.TypeEnum type)
The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.- Parameters:
type- The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.- Returns:
- the current
PartyIdentificationinstance, allowing for method chaining
-
getType
public PartyIdentification.TypeEnum getType()
The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.- Returns:
- type The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
-
setType
public void setType(PartyIdentification.TypeEnum type)
The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.- Parameters:
type- The type of entity that owns the bank account or card. Possible values: **individual**, **organization**, or **unknown**. Required when `category` is **card**. In this case, the value must be **individual**.
-
url
public PartyIdentification url(String url)
The URL of the organization or individual. Maximum length: 255 characters.- Parameters:
url- The URL of the organization or individual. Maximum length: 255 characters.- Returns:
- the current
PartyIdentificationinstance, allowing for method chaining
-
getUrl
public String getUrl()
The URL of the organization or individual. Maximum length: 255 characters.- Returns:
- url The URL of the organization or individual. Maximum length: 255 characters.
-
setUrl
public void setUrl(String url)
The URL of the organization or individual. Maximum length: 255 characters.- Parameters:
url- The URL of the organization or individual. Maximum length: 255 characters.
-
includeNullValues
public PartyIdentification includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this PartyIdentification object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-