Package com.adyen.model.transfers
Class NameLocation
- java.lang.Object
-
- com.adyen.model.transfers.NameLocation
-
public class NameLocation extends Object
NameLocation
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CITYstatic StringJSON_PROPERTY_COUNTRYstatic StringJSON_PROPERTY_COUNTRY_OF_ORIGINstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_RAW_DATAstatic StringJSON_PROPERTY_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)Return true if this NameLocation object is equal to 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)The city where the merchant is located.voidsetCountry(String country)The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.voidsetCountryOfOrigin(String countryOfOrigin)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.voidsetName(String name)The name of the merchant's shop or service.voidsetRawData(String rawData)The raw data.voidsetState(String state)The state where the merchant is located.NameLocationstate(String state)StringtoJson()Convert an instance of NameLocation to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CITY
public static final String JSON_PROPERTY_CITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNTRY
public static final String JSON_PROPERTY_COUNTRY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNTRY_OF_ORIGIN
public static final String JSON_PROPERTY_COUNTRY_OF_ORIGIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RAW_DATA
public static final String JSON_PROPERTY_RAW_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATE
public static final String JSON_PROPERTY_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)
The city where the merchant is located.- Parameters:
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)
The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.- Parameters:
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)
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.- Parameters:
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)
The name of the merchant's shop or service.- Parameters:
name-
-
rawData
public NameLocation rawData(String rawData)
-
getRawData
public String getRawData()
The raw data.- Returns:
- rawData
-
setRawData
public void setRawData(String rawData)
The raw data.- Parameters:
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)
The state where the merchant is located.- Parameters:
state-
-
equals
public boolean equals(Object o)
Return true if this NameLocation object is equal to o.
-
fromJson
public static NameLocation fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of NameLocation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NameLocation
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to NameLocation
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of NameLocation to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-