Package com.onfido.model
Class ApplicantRequest
- java.lang.Object
-
- com.onfido.model.ApplicantRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class ApplicantRequest extends Object
ApplicantRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicantRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_CONSENTSstatic StringSERIALIZED_NAME_LOCATION
-
Constructor Summary
Constructors Constructor Description ApplicantRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicantRequestaddConsentsItem(ApplicantConsentBuilder consentsItem)ApplicantRequestaddress(AddressBuilder address)ApplicantRequestconsents(List<ApplicantConsentBuilder> consents)booleanequals(Object o)static ApplicantRequestfromJson(String jsonString)Create an instance of ApplicantRequest given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.AddressBuildergetAddress()Get addressList<ApplicantConsentBuilder>getConsents()The applicant's consentsLocationBuildergetLocation()Get locationinthashCode()ApplicantRequestlocation(LocationBuilder location)ApplicantRequestputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetAddress(AddressBuilder address)voidsetConsents(List<ApplicantConsentBuilder> consents)voidsetLocation(LocationBuilder location)StringtoJson()Convert an instance of ApplicantRequest to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CONSENTS
public static final String SERIALIZED_NAME_CONSENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADDRESS
public static final String SERIALIZED_NAME_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LOCATION
public static final String SERIALIZED_NAME_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
consents
public ApplicantRequest consents(List<ApplicantConsentBuilder> consents)
-
addConsentsItem
public ApplicantRequest addConsentsItem(ApplicantConsentBuilder consentsItem)
-
getConsents
@Nullable public List<ApplicantConsentBuilder> getConsents()
The applicant's consents- Returns:
- consents
-
setConsents
public void setConsents(List<ApplicantConsentBuilder> consents)
-
address
public ApplicantRequest address(AddressBuilder address)
-
getAddress
@Nullable public AddressBuilder getAddress()
Get address- Returns:
- address
-
setAddress
public void setAddress(AddressBuilder address)
-
location
public ApplicantRequest location(LocationBuilder location)
-
getLocation
@Nullable public LocationBuilder getLocation()
Get location- Returns:
- location
-
setLocation
public void setLocation(LocationBuilder location)
-
putAdditionalProperty
public ApplicantRequest 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 ApplicantRequest 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 ApplicantRequest
-
fromJson
public static ApplicantRequest fromJson(String jsonString) throws IOException
Create an instance of ApplicantRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApplicantRequest
- Throws:
IOException- if the JSON string is invalid with respect to ApplicantRequest
-
toJson
public String toJson()
Convert an instance of ApplicantRequest to an JSON string- Returns:
- JSON string
-
-