Package com.adyen.model.balanceplatform
Class DeliveryAddress
- java.lang.Object
-
- com.adyen.model.balanceplatform.DeliveryAddress
-
public class DeliveryAddress extends Object
DeliveryAddress
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeliveryAddress.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CITYstatic StringSERIALIZED_NAME_COUNTRYstatic StringSERIALIZED_NAME_LINE1static StringSERIALIZED_NAME_LINE2static StringSERIALIZED_NAME_LINE3static StringSERIALIZED_NAME_POSTAL_CODEstatic StringSERIALIZED_NAME_STATE_OR_PROVINCE
-
Constructor Summary
Constructors Constructor Description DeliveryAddress()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeliveryAddresscity(String city)DeliveryAddresscountry(String country)booleanequals(Object o)static DeliveryAddressfromJson(String jsonString)Create an instance of DeliveryAddress given an JSON stringStringgetCity()The name of the city.StringgetCountry()The two-character ISO-3166-1 alpha-2 country code.StringgetLine1()First line of the address.StringgetLine2()Second line of the address.StringgetLine3()Third line of the address.StringgetPostalCode()The postal code.StringgetStateOrProvince()The two-letterISO 3166-2 state or province code.inthashCode()DeliveryAddressline1(String line1)DeliveryAddressline2(String line2)DeliveryAddressline3(String line3)DeliveryAddresspostalCode(String postalCode)voidsetCity(String city)voidsetCountry(String country)voidsetLine1(String line1)voidsetLine2(String line2)voidsetLine3(String line3)voidsetPostalCode(String postalCode)voidsetStateOrProvince(String stateOrProvince)DeliveryAddressstateOrProvince(String stateOrProvince)StringtoJson()Convert an instance of DeliveryAddress 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
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINE1
public static final String SERIALIZED_NAME_LINE1
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINE2
public static final String SERIALIZED_NAME_LINE2
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINE3
public static final String SERIALIZED_NAME_LINE3
- 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
-
-
Method Detail
-
city
public DeliveryAddress city(String city)
-
getCity
public String getCity()
The name of the city.- Returns:
- city
-
setCity
public void setCity(String city)
-
country
public DeliveryAddress country(String country)
-
getCountry
public String getCountry()
The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.- Returns:
- country
-
setCountry
public void setCountry(String country)
-
line1
public DeliveryAddress line1(String line1)
-
getLine1
public String getLine1()
First line of the address.- Returns:
- line1
-
setLine1
public void setLine1(String line1)
-
line2
public DeliveryAddress line2(String line2)
-
getLine2
public String getLine2()
Second line of the address.- Returns:
- line2
-
setLine2
public void setLine2(String line2)
-
line3
public DeliveryAddress line3(String line3)
-
getLine3
public String getLine3()
Third line of the address.- Returns:
- line3
-
setLine3
public void setLine3(String line3)
-
postalCode
public DeliveryAddress postalCode(String postalCode)
-
getPostalCode
public String getPostalCode()
The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries.- Returns:
- postalCode
-
setPostalCode
public void setPostalCode(String postalCode)
-
stateOrProvince
public DeliveryAddress stateOrProvince(String stateOrProvince)
-
getStateOrProvince
public String getStateOrProvince()
The two-letterISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.- Returns:
- stateOrProvince
-
setStateOrProvince
public void setStateOrProvince(String stateOrProvince)
-
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 DeliveryAddress
-
fromJson
public static DeliveryAddress fromJson(String jsonString) throws IOException
Create an instance of DeliveryAddress given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DeliveryAddress
- Throws:
IOException- if the JSON string is invalid with respect to DeliveryAddress
-
toJson
public String toJson()
Convert an instance of DeliveryAddress to an JSON string- Returns:
- JSON string
-
-