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)The individual's first name.static NamefromJson(String jsonString)Create an instance of Name given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetFirstName()The individual's first name.StringgetInfix()The infix in the individual's name, if any.StringgetLastName()The individual's last name.inthashCode()NameincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.Nameinfix(String infix)The infix in the individual's name, if any.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.NamelastName(String lastName)The individual's last name.voidsetFirstName(String firstName)The individual's first name.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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
-
firstName
public Name firstName(String firstName)
The individual's first name. Must not be blank.- Parameters:
firstName- The individual's first name. Must not be blank.- Returns:
- the current
Nameinstance, allowing for method chaining
-
getFirstName
public String getFirstName()
The individual's first name. Must not be blank.- Returns:
- firstName The individual's first name. Must not be blank.
-
setFirstName
public void setFirstName(String firstName)
The individual's first name. Must not be blank.- Parameters:
firstName- The individual's first name. Must not be blank.
-
infix
public Name infix(String infix)
The infix in the individual's name, if any.- Parameters:
infix- The infix in the individual's name, if any.- Returns:
- the current
Nameinstance, allowing for method chaining
-
getInfix
public String getInfix()
The infix in the individual's name, if any.- Returns:
- infix The infix in the individual's name, if any.
-
setInfix
public void setInfix(String infix)
The infix in the individual's name, if any.- Parameters:
infix- The infix in the individual's name, if any.
-
lastName
public Name lastName(String lastName)
The individual's last name. Must not be blank.- Parameters:
lastName- The individual's last name. Must not be blank.- Returns:
- the current
Nameinstance, allowing for method chaining
-
getLastName
public String getLastName()
The individual's last name. Must not be blank.- Returns:
- lastName The individual's last name. Must not be blank.
-
setLastName
public void setLastName(String lastName)
The individual's last name. Must not be blank.- Parameters:
lastName- The individual's last name. Must not be blank.
-
includeNullValues
public Name 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 Name 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 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
-
-