Package com.adyen.model.transferwebhooks
Class NameLocation
- java.lang.Object
-
- com.adyen.model.transferwebhooks.NameLocation
-
public class NameLocation extends Object
NameLocation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNameLocation.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CITYstatic StringSERIALIZED_NAME_COUNTRYstatic StringSERIALIZED_NAME_COUNTRY_OF_ORIGINstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_RAW_DATAstatic StringSERIALIZED_NAME_STATE
-
Constructor Summary
Constructors Constructor Description NameLocation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NameLocationcity(String city)NameLocationcountry(String country)NameLocationcountryOfOrigin(String countryOfOrigin)booleanequals(Object o)static NameLocationfromJson(String jsonString)Create an instance of NameLocation given an JSON stringStringgetCity()The city where the merchant is located.StringgetCountry()The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.StringgetCountryOfOrigin()The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies.StringgetName()The name of the merchant's shop or service.StringgetRawData()The raw data.StringgetState()The state where the merchant is located.inthashCode()NameLocationname(String name)NameLocationrawData(String rawData)voidsetCity(String city)voidsetCountry(String country)voidsetCountryOfOrigin(String countryOfOrigin)voidsetName(String name)voidsetRawData(String rawData)voidsetState(String state)NameLocationstate(String state)StringtoJson()Convert an instance of NameLocation to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CITY
public static final String SERIALIZED_NAME_CITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY_OF_ORIGIN
public static final String SERIALIZED_NAME_COUNTRY_OF_ORIGIN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RAW_DATA
public static final String SERIALIZED_NAME_RAW_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATE
public static final String SERIALIZED_NAME_STATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
city
public NameLocation city(String city)
-
getCity
public String getCity()
The city where the merchant is located.- Returns:
- city
-
setCity
public void setCity(String city)
-
country
public NameLocation country(String country)
-
getCountry
public String getCountry()
The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.- Returns:
- country
-
setCountry
public void setCountry(String country)
-
countryOfOrigin
public NameLocation countryOfOrigin(String countryOfOrigin)
-
getCountryOfOrigin
public String getCountryOfOrigin()
The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies.- Returns:
- countryOfOrigin
-
setCountryOfOrigin
public void setCountryOfOrigin(String countryOfOrigin)
-
name
public NameLocation name(String name)
-
getName
public String getName()
The name of the merchant's shop or service.- Returns:
- name
-
setName
public void setName(String name)
-
rawData
public NameLocation rawData(String rawData)
-
getRawData
public String getRawData()
The raw data.- Returns:
- rawData
-
setRawData
public void setRawData(String rawData)
-
state
public NameLocation state(String state)
-
getState
public String getState()
The state where the merchant is located.- Returns:
- state
-
setState
public void setState(String state)
-
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 NameLocation
-
fromJson
public static NameLocation fromJson(String jsonString) throws IOException
Create an instance of NameLocation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NameLocation
- Throws:
IOException- if the JSON string is invalid with respect to NameLocation
-
toJson
public String toJson()
Convert an instance of NameLocation to an JSON string- Returns:
- JSON string
-
-