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 name of the street.StringgetLine2()The number of the building.StringgetLine3()Additional information about the delivery address.StringgetPostalCode()The postal code.StringgetStateOrProvince()The two-letter ISO 3166-2 state or province code.inthashCode()DeliveryAddressline1(String line1)DeliveryAddressline2(String line2)DeliveryAddressline3(String line3)DeliveryAddresspostalCode(String postalCode)voidsetCity(String city)The name of the city.voidsetCountry(String country)The two-character ISO-3166-1 alpha-2 country code.voidsetLine1(String line1)The name of the street.voidsetLine2(String line2)The number of the building.voidsetLine3(String line3)Additional information about the delivery address.voidsetPostalCode(String postalCode)The postal code.voidsetStateOrProvince(String stateOrProvince)The two-letter ISO 3166-2 state or province code.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)
The name of the city.- Parameters:
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)
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`.- Parameters:
country-
-
line1
public DeliveryAddress line1(String line1)
-
getLine1
public String getLine1()
The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**.- Returns:
- line1
-
setLine1
public void setLine1(String line1)
The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**.- Parameters:
line1-
-
line2
public DeliveryAddress line2(String line2)
-
getLine2
public String getLine2()
The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**.- Returns:
- line2
-
setLine2
public void setLine2(String line2)
The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**.- Parameters:
line2-
-
line3
public DeliveryAddress line3(String line3)
-
getLine3
public String getLine3()
Additional information about the delivery address.- Returns:
- line3
-
setLine3
public void setLine3(String line3)
Additional information about the delivery address.- Parameters:
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)
The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries.- Parameters:
postalCode-
-
stateOrProvince
public DeliveryAddress stateOrProvince(String stateOrProvince)
-
getStateOrProvince
public String getStateOrProvince()
The two-letter ISO 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)
The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.- Parameters:
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
-
-