Package com.adyen.model.management
Class Address
- java.lang.Object
-
- com.adyen.model.management.Address
-
public class Address extends Object
Address
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddress.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CITYstatic StringSERIALIZED_NAME_COMPANY_NAMEstatic StringSERIALIZED_NAME_COUNTRYstatic StringSERIALIZED_NAME_POSTAL_CODEstatic StringSERIALIZED_NAME_STATE_OR_PROVINCEstatic StringSERIALIZED_NAME_STREET_ADDRESSstatic StringSERIALIZED_NAME_STREET_ADDRESS2
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Addresscity(String city)AddresscompanyName(String companyName)Addresscountry(String country)booleanequals(Object o)static AddressfromJson(String jsonString)Create an instance of Address given an JSON stringStringgetCity()The name of the city.StringgetCompanyName()The name of the company.StringgetCountry()The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.StringgetPostalCode()The postal code.StringgetStateOrProvince()The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html).StringgetStreetAddress()The name of the street, and the house or building number.StringgetStreetAddress2()Additional address details, if any.inthashCode()AddresspostalCode(String postalCode)voidsetCity(String city)voidsetCompanyName(String companyName)voidsetCountry(String country)voidsetPostalCode(String postalCode)voidsetStateOrProvince(String stateOrProvince)voidsetStreetAddress(String streetAddress)voidsetStreetAddress2(String streetAddress2)AddressstateOrProvince(String stateOrProvince)AddressstreetAddress(String streetAddress)AddressstreetAddress2(String streetAddress2)StringtoJson()Convert an instance of Address 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_COMPANY_NAME
public static final String SERIALIZED_NAME_COMPANY_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_POSTAL_CODE
public static final String SERIALIZED_NAME_POSTAL_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATE_OR_PROVINCE
public static final String SERIALIZED_NAME_STATE_OR_PROVINCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STREET_ADDRESS
public static final String SERIALIZED_NAME_STREET_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STREET_ADDRESS2
public static final String SERIALIZED_NAME_STREET_ADDRESS2
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCity
public String getCity()
The name of the city.- Returns:
- city
-
setCity
public void setCity(String city)
-
getCompanyName
public String getCompanyName()
The name of the company.- Returns:
- companyName
-
setCompanyName
public void setCompanyName(String companyName)
-
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
-
setCountry
public void setCountry(String country)
-
getPostalCode
public String getPostalCode()
The postal code.- Returns:
- postalCode
-
setPostalCode
public void setPostalCode(String postalCode)
-
getStateOrProvince
public String getStateOrProvince()
The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States- Returns:
- stateOrProvince
-
setStateOrProvince
public void setStateOrProvince(String stateOrProvince)
-
getStreetAddress
public String getStreetAddress()
The name of the street, and the house or building number.- Returns:
- streetAddress
-
setStreetAddress
public void setStreetAddress(String streetAddress)
-
getStreetAddress2
public String getStreetAddress2()
Additional address details, if any.- Returns:
- streetAddress2
-
setStreetAddress2
public void setStreetAddress2(String streetAddress2)
-
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 Address
-
fromJson
public static Address fromJson(String jsonString) throws IOException
Create an instance of Address given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Address
- Throws:
IOException- if the JSON string is invalid with respect to Address
-
toJson
public String toJson()
Convert an instance of Address to an JSON string- Returns:
- JSON string
-
-