Package com.adyen.model.balanceplatform
Class BulkAddress
- java.lang.Object
-
- com.adyen.model.balanceplatform.BulkAddress
-
public class BulkAddress extends Object
BulkAddress
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBulkAddress.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CITYstatic StringSERIALIZED_NAME_COMPANYstatic StringSERIALIZED_NAME_COUNTRYstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_HOUSE_NUMBER_OR_NAMEstatic StringSERIALIZED_NAME_MOBILEstatic StringSERIALIZED_NAME_POSTAL_CODEstatic StringSERIALIZED_NAME_STATE_OR_PROVINCEstatic StringSERIALIZED_NAME_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)BulkAddresscompany(String company)BulkAddresscountry(String country)BulkAddressemail(String email)booleanequals(Object 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)BulkAddressmobile(String mobile)BulkAddresspostalCode(String postalCode)voidsetCity(String city)voidsetCompany(String company)voidsetCountry(String country)voidsetEmail(String email)voidsetHouseNumberOrName(String houseNumberOrName)voidsetMobile(String mobile)voidsetPostalCode(String postalCode)voidsetStateOrProvince(String stateOrProvince)voidsetStreet(String street)BulkAddressstateOrProvince(String stateOrProvince)BulkAddressstreet(String street)StringtoJson()Convert an instance of BulkAddress to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CITY
public static final String SERIALIZED_NAME_CITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMPANY
public static final String SERIALIZED_NAME_COMPANY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMAIL
public static final String SERIALIZED_NAME_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HOUSE_NUMBER_OR_NAME
public static final String SERIALIZED_NAME_HOUSE_NUMBER_OR_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MOBILE
public static final String SERIALIZED_NAME_MOBILE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_POSTAL_CODE
public static final String SERIALIZED_NAME_POSTAL_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATE_OR_PROVINCE
public static final String SERIALIZED_NAME_STATE_OR_PROVINCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STREET
public static final String SERIALIZED_NAME_STREET
- See Also:
- Constant Field Values
-
-
Method Detail
-
city
public BulkAddress city(String city)
-
getCity
public String getCity()
The name of the city.- Returns:
- city
-
setCity
public void setCity(String city)
-
company
public BulkAddress company(String company)
-
getCompany
public String getCompany()
The name of the company.- Returns:
- company
-
setCompany
public void setCompany(String company)
-
country
public BulkAddress country(String country)
-
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)
-
email
public BulkAddress email(String email)
-
getEmail
public String getEmail()
The email address.- Returns:
-
setEmail
public void setEmail(String email)
-
houseNumberOrName
public BulkAddress houseNumberOrName(String houseNumberOrName)
-
getHouseNumberOrName
public String getHouseNumberOrName()
The house number or name.- Returns:
- houseNumberOrName
-
setHouseNumberOrName
public void setHouseNumberOrName(String houseNumberOrName)
-
mobile
public BulkAddress mobile(String mobile)
-
getMobile
public String getMobile()
The full telephone number.- Returns:
- mobile
-
setMobile
public void setMobile(String mobile)
-
postalCode
public BulkAddress postalCode(String postalCode)
-
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)
-
stateOrProvince
public BulkAddress stateOrProvince(String stateOrProvince)
-
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)
-
street
public BulkAddress street(String street)
-
getStreet
public String getStreet()
The streetname of the house.- Returns:
- street
-
setStreet
public void setStreet(String street)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to BulkAddress
-
fromJson
public static BulkAddress fromJson(String jsonString) throws IOException
Create an instance of BulkAddress given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BulkAddress
- Throws:
IOException- if the JSON string is invalid with respect to BulkAddress
-
toJson
public String toJson()
Convert an instance of BulkAddress to an JSON string- Returns:
- JSON string
-
-