Class ViasName
- java.lang.Object
-
- com.adyen.model.marketpaywebhooks.ViasName
-
public class ViasName extends Object
ViasName
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classViasName.GenderEnumThe gender.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_FIRST_NAMEstatic StringJSON_PROPERTY_GENDERstatic StringJSON_PROPERTY_INFIXstatic StringJSON_PROPERTY_LAST_NAME
-
Constructor Summary
Constructors Constructor Description ViasName()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this ViasName object is equal to o.ViasNamefirstName(String firstName)static ViasNamefromJson(String jsonString)Create an instance of ViasName given an JSON stringViasNamegender(ViasName.GenderEnum gender)StringgetFirstName()The first name.ViasName.GenderEnumgetGender()The gender.StringgetInfix()The name's infix, if applicable.StringgetLastName()The last name.inthashCode()ViasNameinfix(String infix)ViasNamelastName(String lastName)voidsetFirstName(String firstName)voidsetGender(ViasName.GenderEnum gender)voidsetInfix(String infix)voidsetLastName(String lastName)StringtoJson()Convert an instance of ViasName to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_FIRST_NAME
public static final String JSON_PROPERTY_FIRST_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GENDER
public static final String JSON_PROPERTY_GENDER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INFIX
public static final String JSON_PROPERTY_INFIX
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_NAME
public static final String JSON_PROPERTY_LAST_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFirstName
public String getFirstName()
The first name.- Returns:
- firstName
-
setFirstName
public void setFirstName(String firstName)
-
gender
public ViasName gender(ViasName.GenderEnum gender)
-
getGender
public ViasName.GenderEnum getGender()
The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`.- Returns:
- gender
-
setGender
public void setGender(ViasName.GenderEnum gender)
-
getInfix
public String getInfix()
The name's infix, if applicable. >A maximum length of twenty (20) characters is imposed.- Returns:
- infix
-
setInfix
public void setInfix(String infix)
-
getLastName
public String getLastName()
The last name.- Returns:
- lastName
-
setLastName
public void setLastName(String lastName)
-
equals
public boolean equals(Object o)
Return true if this ViasName object is equal to o.
-
fromJson
public static ViasName fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ViasName given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ViasName
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ViasName
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ViasName to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-