Package com.adyen.model.payout
Class Name
- java.lang.Object
-
- com.adyen.model.payout.Name
-
public class Name extends Object
Name
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_FIRST_NAMEstatic 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 first name.static NamefromJson(String jsonString)Create an instance of Name given an JSON stringStringgetFirstName()The first name.StringgetLastName()The last name.inthashCode()NamelastName(String lastName)The last name.voidsetFirstName(String firstName)The first name.voidsetLastName(String lastName)The 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_LAST_NAME
public static final String JSON_PROPERTY_LAST_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
firstName
public Name firstName(String firstName)
The first name.- Parameters:
firstName-- Returns:
- the current
Nameinstance, allowing for method chaining
-
getFirstName
public String getFirstName()
The first name.- Returns:
- firstName
-
setFirstName
public void setFirstName(String firstName)
The first name.- Parameters:
firstName-
-
lastName
public Name lastName(String lastName)
The last name.- Parameters:
lastName-- Returns:
- the current
Nameinstance, allowing for method chaining
-
getLastName
public String getLastName()
The last name.- Returns:
- lastName
-
setLastName
public void setLastName(String lastName)
The last name.- 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
-
-