Class Address
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.Address
-
public class Address extends Object
Address
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CITYstatic StringJSON_PROPERTY_COUNTRYstatic StringJSON_PROPERTY_POSTAL_CODEstatic StringJSON_PROPERTY_STATE_OR_PROVINCEstatic StringJSON_PROPERTY_STREETstatic StringJSON_PROPERTY_STREET2
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Addresscity(String city)Addresscountry(String country)booleanequals(Object o)Return true if this Address object is equal to o.static AddressfromJson(String jsonString)Create an instance of Address given an JSON stringStringgetCity()The name of the city.StringgetCountry()The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.StringgetPostalCode()Postal code.StringgetStateOrProvince()The two-letter ISO 3166-2 state or province code.StringgetStreet()The name of the street, and the house or building number.StringgetStreet2()The apartment, unit, or suite number.inthashCode()AddresspostalCode(String postalCode)voidsetCity(String city)The name of the city.voidsetCountry(String country)The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.voidsetPostalCode(String postalCode)Postal code.voidsetStateOrProvince(String stateOrProvince)The two-letter ISO 3166-2 state or province code.voidsetStreet(String street)The name of the street, and the house or building number.voidsetStreet2(String street2)The apartment, unit, or suite number.AddressstateOrProvince(String stateOrProvince)Addressstreet(String street)Addressstreet2(String street2)StringtoJson()Convert an instance of Address 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_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
-
JSON_PROPERTY_STREET
public static final String JSON_PROPERTY_STREET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STREET2
public static final String JSON_PROPERTY_STREET2
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCity
public String getCity()
The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`.- Returns:
- city
-
setCity
public void setCity(String city)
The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`.- Parameters:
city-
-
getCountry
public String getCountry()
The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.- Returns:
- country
-
setCountry
public void setCountry(String country)
The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.- Parameters:
country-
-
getPostalCode
public String getPostalCode()
Postal code. Required if `stateOrProvince` and/or `city` is provided.- Returns:
- postalCode
-
setPostalCode
public void setPostalCode(String postalCode)
Postal code. Required if `stateOrProvince` and/or `city` is provided.- Parameters:
postalCode-
-
getStateOrProvince
public String getStateOrProvince()
The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify the state or province, you must also send `city`, `postalCode`, and `street`.- Returns:
- stateOrProvince
-
setStateOrProvince
public void setStateOrProvince(String stateOrProvince)
The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify the state or province, you must also send `city`, `postalCode`, and `street`.- Parameters:
stateOrProvince-
-
getStreet
public String getStreet()
The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided.- Returns:
- street
-
setStreet
public void setStreet(String street)
The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided.- Parameters:
street-
-
getStreet2
public String getStreet2()
The apartment, unit, or suite number.- Returns:
- street2
-
setStreet2
public void setStreet2(String street2)
The apartment, unit, or suite number.- Parameters:
street2-
-
equals
public boolean equals(Object o)
Return true if this Address object is equal to o.
-
fromJson
public static Address fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Address given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Address
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Address
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Address to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-