Package com.adyen.model.balanceplatform
Class DeliveryAddress
- java.lang.Object
-
- com.adyen.model.balanceplatform.DeliveryAddress
-
public class DeliveryAddress extends Object
DeliveryAddress
-
-
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 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)Return true if this DeliveryAddress object is equal to 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()The street name.StringgetLine2()The house number or name.StringgetLine3()Optional information about 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()
-
-
-
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 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()
The street name. For example, if the address is \"Rokin 49\", provide \"Rokin\".- Returns:
- line1
-
setLine1
public void setLine1(String line1)
-
line2
public DeliveryAddress line2(String line2)
-
getLine2
public String getLine2()
The house number or name. For example, if the address is \"Rokin 49\", provide \"49\".- Returns:
- line2
-
setLine2
public void setLine2(String line2)
-
line3
public DeliveryAddress line3(String line3)
-
getLine3
public String getLine3()
Optional information about 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)
-
equals
public boolean equals(Object o)
Return true if this DeliveryAddress object is equal to o.
-
fromJson
public static DeliveryAddress fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DeliveryAddress given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DeliveryAddress
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DeliveryAddress
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DeliveryAddress to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-