Class Name
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.Name
-
public class Name extends Object
Name
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_FIRST_NAMEstatic StringJSON_PROPERTY_INFIXstatic StringJSON_PROPERTY_LAST_NAME
-
Constructor Summary
Constructors Constructor Description Name()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this Name object is equal to o.NamefirstName(String firstName)static NamefromJson(String jsonString)Create an instance of Name given an JSON stringStringgetFirstName()The individual's first name.StringgetInfix()The infix in the individual's name, if any.StringgetLastName()The individual's last name.inthashCode()Nameinfix(String infix)NamelastName(String lastName)voidsetFirstName(String firstName)The individual's first name.voidsetInfix(String infix)The infix in the individual's name, if any.voidsetLastName(String lastName)The individual's last name.StringtoJson()Convert an instance of Name 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_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 individual's first name. Must not be blank.- Returns:
- firstName
-
setFirstName
public void setFirstName(String firstName)
The individual's first name. Must not be blank.- Parameters:
firstName-
-
getInfix
public String getInfix()
The infix in the individual's name, if any.- Returns:
- infix
-
setInfix
public void setInfix(String infix)
The infix in the individual's name, if any.- Parameters:
infix-
-
getLastName
public String getLastName()
The individual's last name. Must not be blank.- Returns:
- lastName
-
setLastName
public void setLastName(String lastName)
The individual's last name. Must not be blank.- Parameters:
lastName-
-
equals
public boolean equals(Object o)
Return true if this Name object is equal to o.
-
fromJson
public static Name fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Name given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Name
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Name
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Name to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-