Class BulkAddress
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.BulkAddress
-
public class BulkAddress extends Object
BulkAddress
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CITYstatic StringJSON_PROPERTY_COMPANYstatic StringJSON_PROPERTY_COUNTRYstatic StringJSON_PROPERTY_EMAILstatic StringJSON_PROPERTY_HOUSE_NUMBER_OR_NAMEstatic StringJSON_PROPERTY_MOBILEstatic StringJSON_PROPERTY_POSTAL_CODEstatic StringJSON_PROPERTY_STATE_OR_PROVINCEstatic StringJSON_PROPERTY_STREET
-
Constructor Summary
Constructors Constructor Description BulkAddress()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BulkAddresscity(String city)The name of the city.BulkAddresscompany(String company)The name of the company.BulkAddresscountry(String country)The two-character ISO-3166-1 alpha-2 country code.BulkAddressemail(String email)The email address.booleanequals(Object o)Return true if this BulkAddress object is equal to o.static BulkAddressfromJson(String jsonString)Create an instance of BulkAddress given an JSON stringStringgetCity()The name of the city.StringgetCompany()The name of the company.StringgetCountry()The two-character ISO-3166-1 alpha-2 country code.StringgetEmail()The email address.StringgetHouseNumberOrName()The house number or name.StringgetMobile()The full telephone number.StringgetPostalCode()The postal code.StringgetStateOrProvince()The two-letter ISO 3166-2 state or province code.StringgetStreet()The streetname of the house.inthashCode()BulkAddresshouseNumberOrName(String houseNumberOrName)The house number or name.BulkAddressmobile(String mobile)The full telephone number.BulkAddresspostalCode(String postalCode)The postal code.voidsetCity(String city)The name of the city.voidsetCompany(String company)The name of the company.voidsetCountry(String country)The two-character ISO-3166-1 alpha-2 country code.voidsetEmail(String email)The email address.voidsetHouseNumberOrName(String houseNumberOrName)The house number or name.voidsetMobile(String mobile)The full telephone number.voidsetPostalCode(String postalCode)The postal code.voidsetStateOrProvince(String stateOrProvince)The two-letter ISO 3166-2 state or province code.voidsetStreet(String street)The streetname of the house.BulkAddressstateOrProvince(String stateOrProvince)The two-letter ISO 3166-2 state or province code.BulkAddressstreet(String street)The streetname of the house.StringtoJson()Convert an instance of BulkAddress to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CITY
public static final String JSON_PROPERTY_CITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMPANY
public static final String JSON_PROPERTY_COMPANY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COUNTRY
public static final String JSON_PROPERTY_COUNTRY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EMAIL
public static final String JSON_PROPERTY_EMAIL
- 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_MOBILE
public static final String JSON_PROPERTY_MOBILE
- 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 BulkAddress city(String city)
The name of the city.- Parameters:
city-- Returns:
- the current
BulkAddressinstance, allowing for method chaining
-
getCity
public String getCity()
The name of the city.- Returns:
- city
-
setCity
public void setCity(String city)
The name of the city.- Parameters:
city-
-
company
public BulkAddress company(String company)
The name of the company.- Parameters:
company-- Returns:
- the current
BulkAddressinstance, allowing for method chaining
-
getCompany
public String getCompany()
The name of the company.- Returns:
- company
-
setCompany
public void setCompany(String company)
The name of the company.- Parameters:
company-
-
country
public BulkAddress country(String country)
The two-character ISO-3166-1 alpha-2 country code. For example, **US**.- Parameters:
country-- Returns:
- the current
BulkAddressinstance, allowing for method chaining
-
getCountry
public String getCountry()
The two-character ISO-3166-1 alpha-2 country code. For example, **US**.- Returns:
- country
-
setCountry
public void setCountry(String country)
The two-character ISO-3166-1 alpha-2 country code. For example, **US**.- Parameters:
country-
-
email
public BulkAddress email(String email)
The email address.- Parameters:
email-- Returns:
- the current
BulkAddressinstance, allowing for method chaining
-
getEmail
public String getEmail()
The email address.- Returns:
-
setEmail
public void setEmail(String email)
The email address.- Parameters:
email-
-
houseNumberOrName
public BulkAddress houseNumberOrName(String houseNumberOrName)
The house number or name.- Parameters:
houseNumberOrName-- Returns:
- the current
BulkAddressinstance, allowing for method chaining
-
getHouseNumberOrName
public String getHouseNumberOrName()
The house number or name.- Returns:
- houseNumberOrName
-
setHouseNumberOrName
public void setHouseNumberOrName(String houseNumberOrName)
The house number or name.- Parameters:
houseNumberOrName-
-
mobile
public BulkAddress mobile(String mobile)
The full telephone number.- Parameters:
mobile-- Returns:
- the current
BulkAddressinstance, allowing for method chaining
-
getMobile
public String getMobile()
The full telephone number.- Returns:
- mobile
-
setMobile
public void setMobile(String mobile)
The full telephone number.- Parameters:
mobile-
-
postalCode
public BulkAddress postalCode(String postalCode)
The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries.- Parameters:
postalCode-- Returns:
- the current
BulkAddressinstance, allowing for method chaining
-
getPostalCode
public String getPostalCode()
The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries.- Returns:
- postalCode
-
setPostalCode
public void setPostalCode(String postalCode)
The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries.- Parameters:
postalCode-
-
stateOrProvince
public BulkAddress stateOrProvince(String stateOrProvince)
The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US.- Parameters:
stateOrProvince-- Returns:
- the current
BulkAddressinstance, allowing for method chaining
-
getStateOrProvince
public String getStateOrProvince()
The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US.- Returns:
- stateOrProvince
-
setStateOrProvince
public void setStateOrProvince(String stateOrProvince)
The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US.- Parameters:
stateOrProvince-
-
street
public BulkAddress street(String street)
The streetname of the house.- Parameters:
street-- Returns:
- the current
BulkAddressinstance, allowing for method chaining
-
getStreet
public String getStreet()
The streetname of the house.- Returns:
- street
-
setStreet
public void setStreet(String street)
The streetname of the house.- Parameters:
street-
-
equals
public boolean equals(Object o)
Return true if this BulkAddress object is equal to o.
-
fromJson
public static BulkAddress fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of BulkAddress given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BulkAddress
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to BulkAddress
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of BulkAddress to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-