Class Address
- java.lang.Object
-
- com.adyen.model.posterminalmanagement.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_COUNTRY_CODEstatic 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)AddresscountryCode(String countryCode)booleanequals(Object o)static AddressfromJson(String jsonString)Create an instance of Address given an JSON stringStringgetCity()Get cityStringgetCountryCode()Get countryCodeStringgetPostalCode()Get postalCodeStringgetStateOrProvince()Get stateOrProvinceStringgetStreetAddress()Get streetAddressStringgetStreetAddress2()Get streetAddress2inthashCode()AddresspostalCode(String postalCode)voidsetCity(String city)voidsetCountryCode(String countryCode)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_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- 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()
Get city- Returns:
- city
-
setCity
public void setCity(String city)
-
getCountryCode
public String getCountryCode()
Get countryCode- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
-
getPostalCode
public String getPostalCode()
Get postalCode- Returns:
- postalCode
-
setPostalCode
public void setPostalCode(String postalCode)
-
getStateOrProvince
public String getStateOrProvince()
Get stateOrProvince- Returns:
- stateOrProvince
-
setStateOrProvince
public void setStateOrProvince(String stateOrProvince)
-
getStreetAddress
public String getStreetAddress()
Get streetAddress- Returns:
- streetAddress
-
setStreetAddress
public void setStreetAddress(String streetAddress)
-
getStreetAddress2
public String getStreetAddress2()
Get streetAddress2- 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
-
-