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)The city where the merchant is located.NameLocationcountry(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.NameLocationcountryOfOrigin(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.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.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetName()The name of the merchant's shop or service.StringgetRawData()The raw data.StringgetState()The state where the merchant is located.inthashCode()NameLocationincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.NameLocationname(String name)The name of the merchant's shop or service.NameLocationrawData(String rawData)The raw data.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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.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)The state where the merchant is located.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)
The city where the merchant is located.- Parameters:
city- The city where the merchant is located.- Returns:
- the current
NameLocationinstance, allowing for method chaining
-
getCity
public String getCity()
The city where the merchant is located.- Returns:
- city The city where the merchant is located.
-
setCity
public void setCity(String city)
The city where the merchant is located.- Parameters:
city- The city where the merchant is located.
-
country
public NameLocation country(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- The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.- Returns:
- the current
NameLocationinstance, allowing for method chaining
-
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 The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.
-
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- The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format.
-
countryOfOrigin
public NameLocation countryOfOrigin(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- 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:
- the current
NameLocationinstance, allowing for method chaining
-
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 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.
-
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- 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.
-
name
public NameLocation name(String name)
The name of the merchant's shop or service.- Parameters:
name- The name of the merchant's shop or service.- Returns:
- the current
NameLocationinstance, allowing for method chaining
-
getName
public String getName()
The name of the merchant's shop or service.- Returns:
- name The name of the merchant's shop or service.
-
setName
public void setName(String name)
The name of the merchant's shop or service.- Parameters:
name- The name of the merchant's shop or service.
-
rawData
public NameLocation rawData(String rawData)
The raw data.- Parameters:
rawData- The raw data.- Returns:
- the current
NameLocationinstance, allowing for method chaining
-
getRawData
public String getRawData()
The raw data.- Returns:
- rawData The raw data.
-
setRawData
public void setRawData(String rawData)
The raw data.- Parameters:
rawData- The raw data.
-
state
public NameLocation state(String state)
The state where the merchant is located.- Parameters:
state- The state where the merchant is located.- Returns:
- the current
NameLocationinstance, allowing for method chaining
-
getState
public String getState()
The state where the merchant is located.- Returns:
- state The state where the merchant is located.
-
setState
public void setState(String state)
The state where the merchant is located.- Parameters:
state- The state where the merchant is located.
-
includeNullValues
public NameLocation 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 NameLocation 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 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
-
-