Package com.adyen.model.transfers
Class Address2
- java.lang.Object
-
- com.adyen.model.transfers.Address2
-
public class Address2 extends Object
Address2
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CITYstatic StringJSON_PROPERTY_COUNTRYstatic StringJSON_PROPERTY_LINE1static StringJSON_PROPERTY_LINE2static StringJSON_PROPERTY_POSTAL_CODEstatic StringJSON_PROPERTY_STATE_OR_PROVINCE
-
Constructor Summary
Constructors Constructor Description Address2()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Address2city(String city)Address2country(String country)booleanequals(Object o)Return true if this Address-2 object is equal to o.static Address2fromJson(String jsonString)Create an instance of Address2 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 street address.StringgetLine2()Second line of the street address.StringgetPostalCode()The postal code.StringgetStateOrProvince()The two-letter ISO 3166-2 state or province code.inthashCode()Address2line1(String line1)Address2line2(String line2)Address2postalCode(String postalCode)voidsetCity(String city)voidsetCountry(String country)voidsetLine1(String line1)voidsetLine2(String line2)voidsetPostalCode(String postalCode)voidsetStateOrProvince(String stateOrProvince)Address2stateOrProvince(String stateOrProvince)StringtoJson()Convert an instance of Address2 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_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
-
getCity
public String getCity()
The name of the city.- Returns:
- city
-
setCity
public void setCity(String city)
-
getCountry
public String getCountry()
The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**.- Returns:
- country
-
setCountry
public void setCountry(String country)
-
getLine1
public String getLine1()
First line of the street address.- Returns:
- line1
-
setLine1
public void setLine1(String line1)
-
getLine2
public String getLine2()
Second line of the street address.- Returns:
- line2
-
setLine2
public void setLine2(String line2)
-
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)
-
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)
-
equals
public boolean equals(Object o)
Return true if this Address-2 object is equal to o.
-
fromJson
public static Address2 fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Address2 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Address2
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Address2
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Address2 to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-