Package com.onfido.model
Class RepeatAttemptsList
- java.lang.Object
-
- com.onfido.model.RepeatAttemptsList
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class RepeatAttemptsList extends Object
RepeatAttemptsList
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRepeatAttemptsList.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ATTEMPTS_CLEAR_RATEstatic StringSERIALIZED_NAME_ATTEMPTS_COUNTstatic StringSERIALIZED_NAME_REPEAT_ATTEMPTSstatic StringSERIALIZED_NAME_REPORT_IDstatic StringSERIALIZED_NAME_UNIQUE_MISMATCHES_COUNT
-
Constructor Summary
Constructors Constructor Description RepeatAttemptsList()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RepeatAttemptsListaddRepeatAttemptsItem(RepeatAttemptsListRepeatAttemptsInner repeatAttemptsItem)RepeatAttemptsListattemptsClearRate(Float attemptsClearRate)RepeatAttemptsListattemptsCount(Integer attemptsCount)booleanequals(Object o)static RepeatAttemptsListfromJson(String jsonString)Create an instance of RepeatAttemptsList given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.FloatgetAttemptsClearRate()A number between 0 and 1 which indicates the proportion of attempts that have been cleared, including the current report under assessment.IntegergetAttemptsCount()The total number of attempts using the same document, including the current report under assessment.List<RepeatAttemptsListRepeatAttemptsInner>getRepeatAttempts()An array of repeat attempt objects.UUIDgetReportId()The unique identifier of the completed Document report.IntegergetUniqueMismatchesCount()The number of unique entries in the repeat_attempts field for which at least one of the fields is a mismatch.inthashCode()RepeatAttemptsListputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.RepeatAttemptsListrepeatAttempts(List<RepeatAttemptsListRepeatAttemptsInner> repeatAttempts)RepeatAttemptsListreportId(UUID reportId)voidsetAttemptsClearRate(Float attemptsClearRate)voidsetAttemptsCount(Integer attemptsCount)voidsetRepeatAttempts(List<RepeatAttemptsListRepeatAttemptsInner> repeatAttempts)voidsetReportId(UUID reportId)voidsetUniqueMismatchesCount(Integer uniqueMismatchesCount)StringtoJson()Convert an instance of RepeatAttemptsList to an JSON stringStringtoString()RepeatAttemptsListuniqueMismatchesCount(Integer uniqueMismatchesCount)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_REPORT_ID
public static final String SERIALIZED_NAME_REPORT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REPEAT_ATTEMPTS
public static final String SERIALIZED_NAME_REPEAT_ATTEMPTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ATTEMPTS_COUNT
public static final String SERIALIZED_NAME_ATTEMPTS_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ATTEMPTS_CLEAR_RATE
public static final String SERIALIZED_NAME_ATTEMPTS_CLEAR_RATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UNIQUE_MISMATCHES_COUNT
public static final String SERIALIZED_NAME_UNIQUE_MISMATCHES_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
reportId
public RepeatAttemptsList reportId(UUID reportId)
-
getReportId
@Nullable public UUID getReportId()
The unique identifier of the completed Document report.- Returns:
- reportId
-
setReportId
public void setReportId(UUID reportId)
-
repeatAttempts
public RepeatAttemptsList repeatAttempts(List<RepeatAttemptsListRepeatAttemptsInner> repeatAttempts)
-
addRepeatAttemptsItem
public RepeatAttemptsList addRepeatAttemptsItem(RepeatAttemptsListRepeatAttemptsInner repeatAttemptsItem)
-
getRepeatAttempts
@Nonnull public List<RepeatAttemptsListRepeatAttemptsInner> getRepeatAttempts()
An array of repeat attempt objects. If no repeat attempts were found, the array will be empty. The number of objects returned can increase over time if more matches are received.- Returns:
- repeatAttempts
-
setRepeatAttempts
public void setRepeatAttempts(List<RepeatAttemptsListRepeatAttemptsInner> repeatAttempts)
-
attemptsCount
public RepeatAttemptsList attemptsCount(Integer attemptsCount)
-
getAttemptsCount
@Nullable public Integer getAttemptsCount()
The total number of attempts using the same document, including the current report under assessment.- Returns:
- attemptsCount
-
setAttemptsCount
public void setAttemptsCount(Integer attemptsCount)
-
attemptsClearRate
public RepeatAttemptsList attemptsClearRate(Float attemptsClearRate)
-
getAttemptsClearRate
@Nullable public Float getAttemptsClearRate()
A number between 0 and 1 which indicates the proportion of attempts that have been cleared, including the current report under assessment. minimum: 0 maximum: 1- Returns:
- attemptsClearRate
-
setAttemptsClearRate
public void setAttemptsClearRate(Float attemptsClearRate)
-
uniqueMismatchesCount
public RepeatAttemptsList uniqueMismatchesCount(Integer uniqueMismatchesCount)
-
getUniqueMismatchesCount
@Nullable public Integer getUniqueMismatchesCount()
The number of unique entries in the repeat_attempts field for which at least one of the fields is a mismatch.- Returns:
- uniqueMismatchesCount
-
setUniqueMismatchesCount
public void setUniqueMismatchesCount(Integer uniqueMismatchesCount)
-
putAdditionalProperty
public RepeatAttemptsList 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 RepeatAttemptsList 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 RepeatAttemptsList
-
fromJson
public static RepeatAttemptsList fromJson(String jsonString) throws IOException
Create an instance of RepeatAttemptsList given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RepeatAttemptsList
- Throws:
IOException- if the JSON string is invalid with respect to RepeatAttemptsList
-
toJson
public String toJson()
Convert an instance of RepeatAttemptsList to an JSON string- Returns:
- JSON string
-
-