Package com.adyen.model.transfers
Class PartyIdentification2
- java.lang.Object
-
- com.adyen.model.transfers.PartyIdentification2
-
public class PartyIdentification2 extends Object
PartyIdentification2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPartyIdentification2.CustomTypeAdapterFactorystatic classPartyIdentification2.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_FIRST_NAMEstatic StringSERIALIZED_NAME_FULL_NAMEstatic StringSERIALIZED_NAME_LAST_NAMEstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description PartyIdentification2()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PartyIdentification2address(Address2 address)booleanequals(Object o)PartyIdentification2firstName(String firstName)static PartyIdentification2fromJson(String jsonString)Create an instance of PartyIdentification2 given an JSON stringPartyIdentification2fullName(String fullName)Address2getAddress()Get addressStringgetFirstName()First name of the individual.StringgetFullName()The name of the entity.StringgetLastName()Last name of the individual.PartyIdentification2.TypeEnumgetType()The type of entity that owns the bank account.inthashCode()PartyIdentification2lastName(String lastName)voidsetAddress(Address2 address)voidsetFirstName(String firstName)voidsetFullName(String fullName)voidsetLastName(String lastName)voidsetType(PartyIdentification2.TypeEnum type)StringtoJson()Convert an instance of PartyIdentification2 to an JSON stringStringtoString()PartyIdentification2type(PartyIdentification2.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_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_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
address
public PartyIdentification2 address(Address2 address)
-
getAddress
public Address2 getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(Address2 address)
-
firstName
public PartyIdentification2 firstName(String firstName)
-
getFirstName
public String getFirstName()
First name of the individual. Required when `type` is **individual**.- Returns:
- firstName
-
setFirstName
public void setFirstName(String firstName)
-
fullName
public PartyIdentification2 fullName(String fullName)
-
getFullName
public String getFullName()
The name of the entity.- Returns:
- fullName
-
setFullName
public void setFullName(String fullName)
-
lastName
public PartyIdentification2 lastName(String lastName)
-
getLastName
public String getLastName()
Last name of the individual. Required when `type` is **individual**.- Returns:
- lastName
-
setLastName
public void setLastName(String lastName)
-
type
public PartyIdentification2 type(PartyIdentification2.TypeEnum type)
-
getType
public PartyIdentification2.TypeEnum getType()
The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**.- Returns:
- type
-
setType
public void setType(PartyIdentification2.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 PartyIdentification2
-
fromJson
public static PartyIdentification2 fromJson(String jsonString) throws IOException
Create an instance of PartyIdentification2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PartyIdentification2
- Throws:
IOException- if the JSON string is invalid with respect to PartyIdentification2
-
toJson
public String toJson()
Convert an instance of PartyIdentification2 to an JSON string- Returns:
- JSON string
-
-