Package com.adyen.model.management
Class StoreLocation
- java.lang.Object
-
- com.adyen.model.management.StoreLocation
-
public class StoreLocation extends Object
StoreLocation
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CITYstatic StringJSON_PROPERTY_COUNTRYstatic StringJSON_PROPERTY_LINE1static StringJSON_PROPERTY_LINE2static StringJSON_PROPERTY_LINE3static StringJSON_PROPERTY_POSTAL_CODEstatic StringJSON_PROPERTY_STATE_OR_PROVINCE
-
Constructor Summary
Constructors Constructor Description StoreLocation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoreLocationcity(String city)The name of the city.StoreLocationcountry(String country)The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.booleanequals(Object o)Return true if this StoreLocation object is equal to o.static StoreLocationfromJson(String jsonString)Create an instance of StoreLocation given an JSON stringStringgetCity()The name of the city.StringgetCountry()The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetLine1()The street address.StringgetLine2()Second address line.StringgetLine3()Third address line.StringgetPostalCode()The postal code.StringgetStateOrProvince()The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html).inthashCode()StoreLocationincludeNullValues(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.StoreLocationline1(String line1)The street address.StoreLocationline2(String line2)Second address line.StoreLocationline3(String line3)Third address line.StoreLocationpostalCode(String postalCode)The postal code.voidsetCity(String city)The name of the city.voidsetCountry(String country)The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetLine1(String line1)The street address.voidsetLine2(String line2)Second address line.voidsetLine3(String line3)Third address line.voidsetPostalCode(String postalCode)The postal code.voidsetStateOrProvince(String stateOrProvince)The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html).StoreLocationstateOrProvince(String stateOrProvince)The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html).StringtoJson()Convert an instance of StoreLocation 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_LINE1
public static final String JSON_PROPERTY_LINE1
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LINE2
public static final String JSON_PROPERTY_LINE2
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LINE3
public static final String JSON_PROPERTY_LINE3
- See Also:
- Constant Field Values
-
JSON_PROPERTY_POSTAL_CODE
public static final String JSON_PROPERTY_POSTAL_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATE_OR_PROVINCE
public static final String JSON_PROPERTY_STATE_OR_PROVINCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
city
public StoreLocation city(String city)
The name of the city.- Parameters:
city- The name of the city.- Returns:
- the current
StoreLocationinstance, allowing for method chaining
-
getCity
public String getCity()
The name of the city.- Returns:
- city The name of the city.
-
setCity
public void setCity(String city)
The name of the city.- Parameters:
city- The name of the city.
-
country
public StoreLocation country(String country)
The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.- Parameters:
country- The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.- Returns:
- the current
StoreLocationinstance, allowing for method chaining
-
getCountry
public String getCountry()
The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.- Returns:
- country The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
-
setCountry
public void setCountry(String country)
The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.- Parameters:
country- The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
-
line1
public StoreLocation line1(String line1)
The street address.- Parameters:
line1- The street address.- Returns:
- the current
StoreLocationinstance, allowing for method chaining
-
getLine1
public String getLine1()
The street address.- Returns:
- line1 The street address.
-
setLine1
public void setLine1(String line1)
The street address.- Parameters:
line1- The street address.
-
line2
public StoreLocation line2(String line2)
Second address line.- Parameters:
line2- Second address line.- Returns:
- the current
StoreLocationinstance, allowing for method chaining
-
getLine2
public String getLine2()
Second address line.- Returns:
- line2 Second address line.
-
setLine2
public void setLine2(String line2)
Second address line.- Parameters:
line2- Second address line.
-
line3
public StoreLocation line3(String line3)
Third address line.- Parameters:
line3- Third address line.- Returns:
- the current
StoreLocationinstance, allowing for method chaining
-
getLine3
public String getLine3()
Third address line.- Returns:
- line3 Third address line.
-
setLine3
public void setLine3(String line3)
Third address line.- Parameters:
line3- Third address line.
-
postalCode
public StoreLocation postalCode(String postalCode)
The postal code.- Parameters:
postalCode- The postal code.- Returns:
- the current
StoreLocationinstance, allowing for method chaining
-
getPostalCode
public String getPostalCode()
The postal code.- Returns:
- postalCode The postal code.
-
setPostalCode
public void setPostalCode(String postalCode)
The postal code.- Parameters:
postalCode- The postal code.
-
stateOrProvince
public StoreLocation stateOrProvince(String stateOrProvince)
The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States- Parameters:
stateOrProvince- The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States- Returns:
- the current
StoreLocationinstance, allowing for method chaining
-
getStateOrProvince
public String getStateOrProvince()
The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States- Returns:
- stateOrProvince The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States
-
setStateOrProvince
public void setStateOrProvince(String stateOrProvince)
The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States- Parameters:
stateOrProvince- The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States
-
includeNullValues
public StoreLocation 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 StoreLocation 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 StoreLocation fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StoreLocation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoreLocation
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StoreLocation
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StoreLocation to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-