Package com.onfido.model
Class Address
- java.lang.Object
-
- com.onfido.model.Address
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class Address extends Object
Address
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddress.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BUILDING_NAMEstatic StringSERIALIZED_NAME_BUILDING_NUMBERstatic StringSERIALIZED_NAME_COUNTRYstatic StringSERIALIZED_NAME_FLAT_NUMBERstatic StringSERIALIZED_NAME_LINE1static StringSERIALIZED_NAME_LINE2static StringSERIALIZED_NAME_LINE3static StringSERIALIZED_NAME_POSTCODEstatic StringSERIALIZED_NAME_STATEstatic StringSERIALIZED_NAME_STREETstatic StringSERIALIZED_NAME_SUB_STREETstatic StringSERIALIZED_NAME_TOWN
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressbuildingName(String buildingName)AddressbuildingNumber(String buildingNumber)Addresscountry(CountryCodes country)booleanequals(Object o)AddressflatNumber(String flatNumber)static AddressfromJson(String jsonString)Create an instance of Address given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetBuildingName()The building name of this addressStringgetBuildingNumber()The building number of this addressCountryCodesgetCountry()The 3 character ISO country code of this address.StringgetFlatNumber()The flat number of this addressStringgetLine1()Line 1 of the applicant's addressStringgetLine2()Line 2 of the applicant's addressStringgetLine3()Line 3 of the applicant's addressStringgetPostcode()The postcode or ZIP of the applicant's addressStringgetState()The address state.StringgetStreet()The street of the applicant's addressStringgetSubStreet()The sub-street of the applicant's addressStringgetTown()The town of the applicant's addressinthashCode()Addressline1(String line1)Addressline2(String line2)Addressline3(String line3)Addresspostcode(String postcode)AddressputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetBuildingName(String buildingName)voidsetBuildingNumber(String buildingNumber)voidsetCountry(CountryCodes country)voidsetFlatNumber(String flatNumber)voidsetLine1(String line1)voidsetLine2(String line2)voidsetLine3(String line3)voidsetPostcode(String postcode)voidsetState(String state)voidsetStreet(String street)voidsetSubStreet(String subStreet)voidsetTown(String town)Addressstate(String state)Addressstreet(String street)AddresssubStreet(String subStreet)StringtoJson()Convert an instance of Address to an JSON stringStringtoString()Addresstown(String town)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_FLAT_NUMBER
public static final String SERIALIZED_NAME_FLAT_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BUILDING_NUMBER
public static final String SERIALIZED_NAME_BUILDING_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BUILDING_NAME
public static final String SERIALIZED_NAME_BUILDING_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STREET
public static final String SERIALIZED_NAME_STREET
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUB_STREET
public static final String SERIALIZED_NAME_SUB_STREET
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOWN
public static final String SERIALIZED_NAME_TOWN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_POSTCODE
public static final String SERIALIZED_NAME_POSTCODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATE
public static final String SERIALIZED_NAME_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINE1
public static final String SERIALIZED_NAME_LINE1
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINE2
public static final String SERIALIZED_NAME_LINE2
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINE3
public static final String SERIALIZED_NAME_LINE3
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFlatNumber
@Nullable public String getFlatNumber()
The flat number of this address- Returns:
- flatNumber
-
setFlatNumber
public void setFlatNumber(String flatNumber)
-
getBuildingNumber
@Nullable public String getBuildingNumber()
The building number of this address- Returns:
- buildingNumber
-
setBuildingNumber
public void setBuildingNumber(String buildingNumber)
-
getBuildingName
@Nullable public String getBuildingName()
The building name of this address- Returns:
- buildingName
-
setBuildingName
public void setBuildingName(String buildingName)
-
setStreet
public void setStreet(String street)
-
getSubStreet
@Nullable public String getSubStreet()
The sub-street of the applicant's address- Returns:
- subStreet
-
setSubStreet
public void setSubStreet(String subStreet)
-
setTown
public void setTown(String town)
-
getPostcode
@Nonnull public String getPostcode()
The postcode or ZIP of the applicant's address- Returns:
- postcode
-
setPostcode
public void setPostcode(String postcode)
-
country
public Address country(CountryCodes country)
-
getCountry
@Nonnull public CountryCodes getCountry()
The 3 character ISO country code of this address. For example, GBR is the country code for the United Kingdom- Returns:
- country
-
setCountry
public void setCountry(CountryCodes country)
-
getState
@Nullable public String getState()
The address state. US states must use the USPS abbreviation (see also ISO 3166-2:US), for example AK, CA, or TX.- Returns:
- state
-
setState
public void setState(String state)
-
setLine1
public void setLine1(String line1)
-
setLine2
public void setLine2(String line2)
-
setLine3
public void setLine3(String line3)
-
putAdditionalProperty
public Address putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the Address instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Address
-
fromJson
public static Address fromJson(String jsonString) throws IOException
Create an instance of Address given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Address
- Throws:
IOException- if the JSON string is invalid with respect to Address
-
toJson
public String toJson()
Convert an instance of Address to an JSON string- Returns:
- JSON string
-
-