Package com.adyen.model.marketpayaccount
Class ViasAddress
- java.lang.Object
-
- com.adyen.model.marketpayaccount.ViasAddress
-
public class ViasAddress extends Object
ViasAddress
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CITYstatic StringJSON_PROPERTY_COUNTRYstatic StringJSON_PROPERTY_HOUSE_NUMBER_OR_NAMEstatic StringJSON_PROPERTY_POSTAL_CODEstatic StringJSON_PROPERTY_STATE_OR_PROVINCEstatic StringJSON_PROPERTY_STREET
-
Constructor Summary
Constructors Constructor Description ViasAddress()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ViasAddresscity(String city)ViasAddresscountry(String country)booleanequals(Object o)Return true if this ViasAddress object is equal to o.static ViasAddressfromJson(String jsonString)Create an instance of ViasAddress given an JSON stringStringgetCity()The name of the city.StringgetCountry()The two-character country code of the address in ISO-3166-1 alpha-2 format.StringgetHouseNumberOrName()The number or name of the house.StringgetPostalCode()The postal code.StringgetStateOrProvince()The abbreviation of the state or province.StringgetStreet()The name of the street.inthashCode()ViasAddresshouseNumberOrName(String houseNumberOrName)ViasAddresspostalCode(String postalCode)voidsetCity(String city)voidsetCountry(String country)voidsetHouseNumberOrName(String houseNumberOrName)voidsetPostalCode(String postalCode)voidsetStateOrProvince(String stateOrProvince)voidsetStreet(String street)ViasAddressstateOrProvince(String stateOrProvince)ViasAddressstreet(String street)StringtoJson()Convert an instance of ViasAddress 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_HOUSE_NUMBER_OR_NAME
public static final String JSON_PROPERTY_HOUSE_NUMBER_OR_NAME
- 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
-
-
Method Detail
-
city
public ViasAddress city(String city)
-
getCity
public String getCity()
The name of the city. Required if the `houseNumberOrName`, `street`, `postalCode`, or `stateOrProvince` are provided.- Returns:
- city
-
setCity
public void setCity(String city)
-
country
public ViasAddress country(String country)
-
getCountry
public String getCountry()
The two-character country code of the address in ISO-3166-1 alpha-2 format. For example, **NL**.- Returns:
- country
-
setCountry
public void setCountry(String country)
-
houseNumberOrName
public ViasAddress houseNumberOrName(String houseNumberOrName)
-
getHouseNumberOrName
public String getHouseNumberOrName()
The number or name of the house.- Returns:
- houseNumberOrName
-
setHouseNumberOrName
public void setHouseNumberOrName(String houseNumberOrName)
-
postalCode
public ViasAddress postalCode(String postalCode)
-
getPostalCode
public String getPostalCode()
The postal code. Required if the `houseNumberOrName`, `street`, `city`, or `stateOrProvince` are provided. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries.- Returns:
- postalCode
-
setPostalCode
public void setPostalCode(String postalCode)
-
stateOrProvince
public ViasAddress stateOrProvince(String stateOrProvince)
-
getStateOrProvince
public String getStateOrProvince()
The abbreviation of the state or province. Required if the `houseNumberOrName`, `street`, `city`, or `postalCode` are provided. Maximum length: * 2 characters for addresses in the US or Canada. * 3 characters for all other countries.- Returns:
- stateOrProvince
-
setStateOrProvince
public void setStateOrProvince(String stateOrProvince)
-
street
public ViasAddress street(String street)
-
getStreet
public String getStreet()
The name of the street. Required if the `houseNumberOrName`, `city`, `postalCode`, or `stateOrProvince` are provided.- Returns:
- street
-
setStreet
public void setStreet(String street)
-
equals
public boolean equals(Object o)
Return true if this ViasAddress object is equal to o.
-
fromJson
public static ViasAddress fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of ViasAddress given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ViasAddress
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to ViasAddress
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of ViasAddress to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-