From ab9c8409ab8ed828fd59cf7081a4751a6fb4aea2 Mon Sep 17 00:00:00 2001
From: dvacca-onfido <134616519+dvacca-onfido@users.noreply.github.com>
Date: Wed, 23 Oct 2024 08:23:57 +0000
Subject: [PATCH 1/2] Upgrade after onfido-openapi-spec change 2998dd3
---
.openapi-generator/VERSION | 2 +-
.release.json | 8 +-
README.md | 10 +-
build.gradle | 9 +-
build.sbt | 7 +-
pom.xml | 20 +-
src/main/java/com/onfido/ApiClient.java | 49 +++-
src/main/java/com/onfido/ApiException.java | 2 +-
src/main/java/com/onfido/Configuration.java | 4 +-
src/main/java/com/onfido/JSON.java | 19 +-
src/main/java/com/onfido/Pair.java | 2 +-
.../java/com/onfido/ServerConfiguration.java | 15 +-
src/main/java/com/onfido/ServerVariable.java | 15 +-
src/main/java/com/onfido/StringUtil.java | 2 +-
src/main/java/com/onfido/auth/ApiKeyAuth.java | 2 +-
.../java/com/onfido/auth/HttpBasicAuth.java | 2 -
.../java/com/onfido/auth/HttpBearerAuth.java | 2 +-
.../onfido/model/AbstractOpenApiSchema.java | 2 +-
src/main/java/com/onfido/model/Address.java | 87 ++++---
.../java/com/onfido/model/AddressBuilder.java | 87 ++++---
.../java/com/onfido/model/AddressShared.java | 87 ++++---
.../java/com/onfido/model/AddressesList.java | 43 ++--
src/main/java/com/onfido/model/Applicant.java | 91 ++++---
.../com/onfido/model/ApplicantBuilder.java | 75 +++---
.../onfido/model/ApplicantConsentBuilder.java | 47 ++--
.../com/onfido/model/ApplicantCreate.java | 47 ++--
.../com/onfido/model/ApplicantRequest.java | 51 ++--
.../com/onfido/model/ApplicantResponse.java | 75 +++---
.../com/onfido/model/ApplicantShared.java | 55 ++--
.../com/onfido/model/ApplicantUpdate.java | 47 ++--
.../com/onfido/model/ApplicantUpdater.java | 75 +++---
.../java/com/onfido/model/ApplicantsList.java | 43 ++--
src/main/java/com/onfido/model/Check.java | 107 ++++----
.../java/com/onfido/model/CheckBuilder.java | 91 ++++---
.../java/com/onfido/model/CheckRequest.java | 71 +++--
.../java/com/onfido/model/CheckResponse.java | 83 +++---
.../java/com/onfido/model/CheckShared.java | 63 +++--
.../java/com/onfido/model/ChecksList.java | 43 ++--
.../com/onfido/model/CompleteTaskBuilder.java | 43 ++--
.../onfido/model/CompleteTaskDataBuilder.java | 11 +-
.../model/DeviceIntelligenceBreakdown.java | 47 ++--
.../DeviceIntelligenceBreakdownBreakdown.java | 43 ++--
...eIntelligenceBreakdownBreakdownDevice.java | 43 ++--
...enceBreakdownBreakdownDeviceBreakdown.java | 51 ++--
...DeviceIntelligenceBreakdownProperties.java | 51 ++--
...IntelligenceBreakdownPropertiesDevice.java | 95 ++++---
...ligenceBreakdownPropertiesGeolocation.java | 51 ++--
...viceIntelligenceBreakdownPropertiesIp.java | 43 ++--
.../model/DeviceIntelligenceReport.java | 79 +++---
src/main/java/com/onfido/model/Document.java | 83 +++---
.../com/onfido/model/DocumentBreakdown.java | 75 +++---
.../model/DocumentBreakdownAgeValidation.java | 47 ++--
...cumentBreakdownAgeValidationBreakdown.java | 43 ++--
.../DocumentBreakdownCompromisedDocument.java | 47 ++--
...BreakdownCompromisedDocumentBreakdown.java | 47 ++--
.../DocumentBreakdownDataComparison.java | 47 ++--
...umentBreakdownDataComparisonBreakdown.java | 71 +++--
...DataComparisonBreakdownIssuingCountry.java | 47 ++--
.../DocumentBreakdownDataConsistency.java | 47 ++--
...mentBreakdownDataConsistencyBreakdown.java | 79 +++---
.../DocumentBreakdownDataValidation.java | 47 ++--
...umentBreakdownDataValidationBreakdown.java | 67 +++--
...ValidationBreakdownDocumentExpiration.java | 47 ++--
...downDataValidationBreakdownExpiryDate.java | 47 ++--
.../DocumentBreakdownImageIntegrity.java | 47 ++--
...umentBreakdownImageIntegrityBreakdown.java | 55 ++--
...nImageIntegrityBreakdownColourPicture.java | 47 ++--
...ityBreakdownConclusiveDocumentQuality.java | 47 ++--
...wnImageIntegrityBreakdownImageQuality.java | 47 ++--
...geIntegrityBreakdownSupportedDocument.java | 47 ++--
.../DocumentBreakdownIssuingAuthority.java | 47 ++--
...entBreakdownIssuingAuthorityBreakdown.java | 47 ++--
...orityBreakdownNfcActiveAuthentication.java | 47 ++--
...rityBreakdownNfcPassiveAuthentication.java | 47 ++--
.../model/DocumentBreakdownPoliceRecord.java | 43 ++--
.../DocumentBreakdownVisualAuthenticity.java | 47 ++--
...tBreakdownVisualAuthenticityBreakdown.java | 71 +++--
...AuthenticityBreakdownDigitalTampering.java | 47 ++--
...ualAuthenticityBreakdownFaceDetection.java | 47 ++--
...kdownVisualAuthenticityBreakdownFonts.java | 47 ++--
...icityBreakdownOriginalDocumentPresent.java | 47 ++--
...kdownVisualAuthenticityBreakdownOther.java | 47 ++--
...enticityBreakdownPictureFaceIntegrity.java | 47 ++--
...AuthenticityBreakdownSecurityFeatures.java | 47 ++--
...wnVisualAuthenticityBreakdownTemplate.java | 47 ++--
.../com/onfido/model/DocumentCDQReasons.java | 71 +++--
.../com/onfido/model/DocumentIQReasons.java | 79 +++---
.../com/onfido/model/DocumentODPReasons.java | 55 ++--
.../com/onfido/model/DocumentProperties.java | 219 ++++++++--------
.../model/DocumentPropertiesAddressLines.java | 63 +++--
.../model/DocumentPropertiesBarcodeInner.java | 111 ++++----
...umentPropertiesDocumentClassification.java | 51 ++--
...ocumentPropertiesDocumentNumbersInner.java | 47 ++--
...ntPropertiesDrivingLicenceInformation.java | 55 ++--
.../DocumentPropertiesExtractedData.java | 123 +++++----
.../onfido/model/DocumentPropertiesNfc.java | 91 ++++---
.../java/com/onfido/model/DocumentReport.java | 83 +++---
.../com/onfido/model/DocumentResponse.java | 63 +++--
.../java/com/onfido/model/DocumentShared.java | 59 +++--
.../com/onfido/model/DocumentVideoReport.java | 83 +++---
...mentVideoWithAddressInformationReport.java | 83 +++---
.../DocumentWithAddressInformationReport.java | 83 +++---
.../DocumentWithDriverVerificationReport.java | 83 +++---
...iverVerificationReportAllOfProperties.java | 243 +++++++++---------
...tAllOfPropertiesAllOfPassengerVehicle.java | 51 ++--
...opertiesAllOfVehicleClassDetailsInner.java | 55 ++--
...ntWithDrivingLicenceInformationReport.java | 83 +++---
.../java/com/onfido/model/DocumentsList.java | 43 ++--
src/main/java/com/onfido/model/Error.java | 43 ++--
src/main/java/com/onfido/model/Error1.java | 47 ++--
.../com/onfido/model/ErrorProperties.java | 51 ++--
.../com/onfido/model/ErrorProperties1.java | 47 ++--
.../java/com/onfido/model/ExtractRequest.java | 43 ++--
.../java/com/onfido/model/Extraction.java | 51 ++--
.../ExtractionDocumentClassification.java | 59 +++--
.../onfido/model/ExtractionExtractedData.java | 147 ++++++-----
.../FacialSimilarityMotionBreakdown.java | 51 ++--
...milarityMotionBreakdownFaceComparison.java | 47 ++--
...milarityMotionBreakdownImageIntegrity.java | 47 ++--
...otionBreakdownImageIntegrityBreakdown.java | 47 ++--
...wnImageIntegrityBreakdownFaceDetected.java | 47 ++--
...mageIntegrityBreakdownSourceIntegrity.java | 47 ++--
...rityMotionBreakdownVisualAuthenticity.java | 47 ++--
...nBreakdownVisualAuthenticityBreakdown.java | 47 ++--
...uthenticityBreakdownSpoofingDetection.java | 47 ++--
.../FacialSimilarityMotionProperties.java | 43 ++--
.../model/FacialSimilarityMotionReport.java | 83 +++---
.../model/FacialSimilarityPhotoBreakdown.java | 51 ++--
...imilarityPhotoBreakdownFaceComparison.java | 47 ++--
...PhotoBreakdownFaceComparisonBreakdown.java | 43 ++--
...kdownFaceComparisonBreakdownFaceMatch.java | 47 ++--
...omparisonBreakdownFaceMatchProperties.java | 47 ++--
...imilarityPhotoBreakdownImageIntegrity.java | 47 ++--
...PhotoBreakdownImageIntegrityBreakdown.java | 47 ++--
...wnImageIntegrityBreakdownFaceDetected.java | 47 ++--
...mageIntegrityBreakdownSourceIntegrity.java | 47 ++--
...arityPhotoBreakdownVisualAuthenticity.java | 47 ++--
...oBreakdownVisualAuthenticityBreakdown.java | 43 ++--
...uthenticityBreakdownSpoofingDetection.java | 47 ++--
...yBreakdownSpoofingDetectionProperties.java | 43 ++--
...cialSimilarityPhotoFullyAutoBreakdown.java | 51 ++--
...PhotoFullyAutoBreakdownImageIntegrity.java | 47 ++--
...yAutoBreakdownImageIntegrityBreakdown.java | 47 ++--
...mageIntegrityBreakdownSourceIntegrity.java | 47 ++--
...ialSimilarityPhotoFullyAutoProperties.java | 43 ++--
.../FacialSimilarityPhotoFullyAutoReport.java | 83 +++---
.../FacialSimilarityPhotoProperties.java | 43 ++--
.../model/FacialSimilarityPhotoReport.java | 83 +++---
.../model/FacialSimilarityVideoBreakdown.java | 51 ++--
...imilarityVideoBreakdownFaceComparison.java | 47 ++--
...imilarityVideoBreakdownImageIntegrity.java | 47 ++--
...VideoBreakdownImageIntegrityBreakdown.java | 47 ++--
...wnImageIntegrityBreakdownFaceDetected.java | 47 ++--
...mageIntegrityBreakdownSourceIntegrity.java | 47 ++--
...arityVideoBreakdownVisualAuthenticity.java | 47 ++--
...oBreakdownVisualAuthenticityBreakdown.java | 47 ++--
...AuthenticityBreakdownLivenessDetected.java | 47 ++--
...uthenticityBreakdownSpoofingDetection.java | 47 ++--
.../FacialSimilarityVideoProperties.java | 43 ++--
.../model/FacialSimilarityVideoReport.java | 83 +++---
src/main/java/com/onfido/model/IdNumber.java | 51 ++--
src/main/java/com/onfido/model/IdPhoto.java | 67 +++--
.../com/onfido/model/IdPhotoResponse.java | 67 +++--
.../java/com/onfido/model/IdPhotosList.java | 43 ++--
.../model/IdentityEnhancedBreakdown.java | 55 ++--
.../IdentityEnhancedBreakdownAddress.java | 47 ++--
...tityEnhancedBreakdownAddressBreakdown.java | 51 ++--
...eakdownAddressBreakdownCreditAgencies.java | 47 ++--
...ressBreakdownCreditAgenciesProperties.java | 43 ++--
...downAddressBreakdownTelephoneDatabase.java | 47 ++--
...eakdownAddressBreakdownVotingRegister.java | 47 ++--
.../IdentityEnhancedBreakdownDateOfBirth.java | 47 ++--
...EnhancedBreakdownDateOfBirthBreakdown.java | 47 ++--
...ownDateOfBirthBreakdownCreditAgencies.java | 47 ++--
...ownDateOfBirthBreakdownVotingRegister.java | 47 ++--
.../IdentityEnhancedBreakdownMortality.java | 43 ++--
.../IdentityEnhancedBreakdownSources.java | 47 ++--
...tityEnhancedBreakdownSourcesBreakdown.java | 43 ++--
...BreakdownSourcesBreakdownTotalSources.java | 47 ++--
...ourcesBreakdownTotalSourcesProperties.java | 43 ++--
.../model/IdentityEnhancedProperties.java | 47 ++--
...hancedPropertiesMatchedAddressesInner.java | 47 ++--
.../onfido/model/IdentityEnhancedReport.java | 83 +++---
.../java/com/onfido/model/IndiaPanReport.java | 83 +++---
.../model/IndiaPanReportAllOfBreakdown.java | 43 ++--
.../IndiaPanReportAllOfBreakdownDevice.java | 43 ++--
...anReportAllOfBreakdownDeviceBreakdown.java | 47 ++--
...AllOfBreakdownDeviceBreakdownPanValid.java | 43 ++--
.../model/IndiaPanReportAllOfProperties.java | 43 ++--
.../IndiaPanReportAllOfPropertiesDevice.java | 47 ++--
.../com/onfido/model/KnownFacesBreakdown.java | 47 ++--
.../KnownFacesBreakdownImageIntegrity.java | 43 ++--
...nownFacesBreakdownPreviouslySeenFaces.java | 43 ++--
.../onfido/model/KnownFacesProperties.java | 43 ++--
.../KnownFacesPropertiesMatchesInner.java | 59 +++--
.../com/onfido/model/KnownFacesReport.java | 83 +++---
src/main/java/com/onfido/model/LivePhoto.java | 67 +++--
.../com/onfido/model/LivePhotoResponse.java | 67 +++--
.../java/com/onfido/model/LivePhotosList.java | 43 ++--
src/main/java/com/onfido/model/LiveVideo.java | 71 +++--
.../java/com/onfido/model/LiveVideosList.java | 43 ++--
src/main/java/com/onfido/model/Location.java | 47 ++--
.../com/onfido/model/LocationBuilder.java | 47 ++--
.../java/com/onfido/model/LocationShared.java | 47 ++--
.../java/com/onfido/model/MotionCapture.java | 67 +++--
.../com/onfido/model/MotionCapturesList.java | 43 ++--
.../com/onfido/model/PhotoAutoReasons.java | 59 +++--
.../java/com/onfido/model/PhotoReasons.java | 59 +++--
.../onfido/model/ProofOfAddressBreakdown.java | 51 ++--
...ProofOfAddressBreakdownDataComparison.java | 47 ++--
...dressBreakdownDataComparisonBreakdown.java | 51 ++--
...ddressBreakdownDocumentClassification.java | 47 ++--
...akdownDocumentClassificationBreakdown.java | 43 ++--
...ProofOfAddressBreakdownImageIntegrity.java | 47 ++--
...dressBreakdownImageIntegrityBreakdown.java | 43 ++--
.../model/ProofOfAddressProperties.java | 71 +++--
.../onfido/model/ProofOfAddressReport.java | 83 +++---
.../com/onfido/model/RepeatAttemptsList.java | 59 +++--
...RepeatAttemptsListRepeatAttemptsInner.java | 67 +++--
src/main/java/com/onfido/model/Report.java | 104 +-------
.../java/com/onfido/model/ReportDocument.java | 43 ++--
.../java/com/onfido/model/ReportShared.java | 75 +++---
.../java/com/onfido/model/ReportsList.java | 43 ++--
.../com/onfido/model/ResultsFeedback.java | 55 ++--
src/main/java/com/onfido/model/SdkToken.java | 43 ++--
.../com/onfido/model/SdkTokenBuilder.java | 55 ++--
.../com/onfido/model/SdkTokenRequest.java | 55 ++--
.../com/onfido/model/SdkTokenResponse.java | 43 ++--
src/main/java/com/onfido/model/Task.java | 71 +++--
src/main/java/com/onfido/model/TaskItem.java | 63 +++--
.../onfido/model/TimelineFileReference.java | 47 ++--
.../model/UsDrivingLicenceBreakdown.java | 51 ++--
.../UsDrivingLicenceBreakdownAddress.java | 47 ++--
...ivingLicenceBreakdownAddressBreakdown.java | 63 +++--
.../UsDrivingLicenceBreakdownDocument.java | 47 ++--
...vingLicenceBreakdownDocumentBreakdown.java | 55 ++--
.../UsDrivingLicenceBreakdownPersonal.java | 47 ++--
...vingLicenceBreakdownPersonalBreakdown.java | 91 ++++---
.../onfido/model/UsDrivingLicenceBuilder.java | 111 ++++----
.../onfido/model/UsDrivingLicenceReport.java | 83 +++---
.../onfido/model/UsDrivingLicenceShared.java | 111 ++++----
.../java/com/onfido/model/VideoReasons.java | 55 ++--
.../onfido/model/WatchlistAmlBreakdown.java | 55 ++--
.../WatchlistAmlBreakdownAdverseMedia.java | 43 ++--
...mlBreakdownLegalAndRegulatoryWarnings.java | 43 ++--
...tAmlBreakdownPoliticallyExposedPerson.java | 43 ++--
.../model/WatchlistAmlBreakdownSanction.java | 43 ++--
.../onfido/model/WatchlistAmlProperties.java | 43 ++--
.../com/onfido/model/WatchlistAmlReport.java | 83 +++---
.../model/WatchlistEnhancedBreakdown.java | 55 ++--
.../model/WatchlistEnhancedProperties.java | 43 ++--
...tchlistEnhancedPropertiesRecordsInner.java | 75 +++---
...cedPropertiesRecordsInnerAddressInner.java | 63 +++--
...ancedPropertiesRecordsInnerAliasInner.java | 47 ++--
...dPropertiesRecordsInnerAssociateInner.java | 51 ++--
...dPropertiesRecordsInnerAttributeInner.java | 47 ++--
...ancedPropertiesRecordsInnerEventInner.java | 59 +++--
...ropertiesRecordsInnerEventInnerSource.java | 55 ++--
...ncedPropertiesRecordsInnerSourceInner.java | 55 ++--
.../onfido/model/WatchlistEnhancedReport.java | 83 +++---
.../com/onfido/model/WatchlistMonitor.java | 67 +++--
.../onfido/model/WatchlistMonitorBuilder.java | 51 ++--
.../onfido/model/WatchlistMonitorMatch.java | 47 ++--
.../model/WatchlistMonitorMatchesList.java | 43 ++--
.../model/WatchlistMonitorMatchesUpdater.java | 47 ++--
.../model/WatchlistMonitorResponse.java | 55 ++--
.../onfido/model/WatchlistMonitorShared.java | 51 ++--
.../onfido/model/WatchlistMonitorsList.java | 43 ++--
.../onfido/model/WatchlistPepsOnlyReport.java | 83 +++---
.../model/WatchlistSanctionsOnlyReport.java | 83 +++---
.../model/WatchlistStandardBreakdown.java | 51 ++--
.../model/WatchlistStandardProperties.java | 43 ++--
.../onfido/model/WatchlistStandardReport.java | 83 +++---
src/main/java/com/onfido/model/Webhook.java | 71 +++--
.../java/com/onfido/model/WebhookBuilder.java | 59 +++--
.../java/com/onfido/model/WebhookCreate.java | 43 ++--
.../java/com/onfido/model/WebhookEvent.java | 43 ++--
.../com/onfido/model/WebhookEventPayload.java | 55 ++--
.../model/WebhookEventPayloadObject.java | 59 +++--
.../model/WebhookEventPayloadResource.java | 99 ++++---
.../java/com/onfido/model/WebhookResend.java | 43 ++--
.../com/onfido/model/WebhookResponse.java | 55 ++--
.../java/com/onfido/model/WebhookShared.java | 55 ++--
.../java/com/onfido/model/WebhookUpdate.java | 43 ++--
.../java/com/onfido/model/WebhookUpdater.java | 59 +++--
.../java/com/onfido/model/WebhooksList.java | 43 ++--
.../com/onfido/model/WebhooksResendItem.java | 47 ++--
.../java/com/onfido/model/WorkflowRun.java | 99 ++++---
.../com/onfido/model/WorkflowRunBuilder.java | 71 +++--
.../com/onfido/model/WorkflowRunError.java | 47 ++--
.../com/onfido/model/WorkflowRunLink.java | 59 +++--
.../com/onfido/model/WorkflowRunRequest.java | 43 ++--
.../com/onfido/model/WorkflowRunResponse.java | 71 +++--
.../com/onfido/model/WorkflowRunShared.java | 67 +++--
294 files changed, 7898 insertions(+), 8231 deletions(-)
diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION
index 93c8ddab..4bc5d618 100644
--- a/.openapi-generator/VERSION
+++ b/.openapi-generator/VERSION
@@ -1 +1 @@
-7.6.0
+7.9.0
diff --git a/.release.json b/.release.json
index 569377c1..80f65273 100644
--- a/.release.json
+++ b/.release.json
@@ -1,9 +1,9 @@
{
"source": {
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
- "short_sha": "10f8380",
- "long_sha": "10f83806efa080edbf022ac48d5eeac90fbceb0c",
- "version": ""
+ "short_sha": "2998dd3",
+ "long_sha": "2998dd3ad2db49a33e0ecf9b41c7cf873909ef0b",
+ "version": "v4.0.0"
},
- "release": "v4.3.0"
+ "release": "v5.0.0"
}
diff --git a/README.md b/README.md
index b03976a7..d78d093f 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@ Add this dependency to your project's POM:
com.onfido
onfido-api-java
- 4.3.0
+ 5.0.0
compile
```
@@ -59,7 +59,7 @@ Add this dependency to your project's build file:
}
dependencies {
- implementation "com.onfido:onfido-api-java:4.3.0"
+ implementation "com.onfido:onfido-api-java:5.0.0"
}
```
@@ -73,10 +73,10 @@ mvn clean package
Then manually install the following JARs:
-- `target/onfido-api-java-4.3.0.jar`
+- `target/onfido-api-java-5.0.0.jar`
- `target/lib/*.jar`
-The latest version can be found at: https://search.maven.org/artifact/com.onfido/4.3.0
+The latest version can be found at: https://search.maven.org/artifact/com.onfido/5.0.0
## Getting Started
@@ -164,7 +164,7 @@ Retain from using `getAdditionalProperty()` or `getAdditionalProperties()` metho
## Contributing
-This library is automatically generated using [OpenAPI Generator](https://openapi-generator.tech) (version: 7.6.0); therefore all the contributions, except tests files, should target [Onfido OpenAPI specification repository](https://github.com/onfido/onfido-openapi-spec/tree/master) instead of this repository.
+This library is automatically generated using [OpenAPI Generator](https://openapi-generator.tech) (version: 7.9.0); therefore all the contributions, except tests files, should target [Onfido OpenAPI specification repository](https://github.com/onfido/onfido-openapi-spec/tree/master) instead of this repository.
For contributions to the tests instead, please follow the steps below:
diff --git a/build.gradle b/build.gradle
index 223e05eb..d32fbb8a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'
group = 'com.onfido'
-version = '4.3.0'
+version = '5.0.0'
buildscript {
repositories {
@@ -112,14 +112,13 @@ dependencies {
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
implementation 'com.google.code.gson:gson:2.9.1'
implementation 'io.gsonfire:gson-fire:1.9.0'
- implementation 'javax.ws.rs:jsr311-api:1.1.1'
- implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1'
+ implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6'
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
- testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
+ testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
testImplementation 'org.mockito:mockito-core:3.12.4'
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.2'
+ testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3'
}
javadoc {
diff --git a/build.sbt b/build.sbt
index db922ded..3e07b43c 100644
--- a/build.sbt
+++ b/build.sbt
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.onfido",
name := "onfido-api-java",
- version := "4.3.0",
+ version := "5.0.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
@@ -14,14 +14,13 @@ lazy val root = (project in file(".")).
"com.squareup.okhttp3" % "logging-interceptor" % "4.12.0",
"com.google.code.gson" % "gson" % "2.9.1",
"org.apache.commons" % "commons-lang3" % "3.12.0",
- "javax.ws.rs" % "jsr311-api" % "1.1.1",
- "javax.ws.rs" % "javax.ws.rs-api" % "2.1.1",
+ "jakarta.ws.rs" % "jakarta.ws.rs-api" % "2.1.6",
"org.openapitools" % "jackson-databind-nullable" % "0.2.6",
"io.gsonfire" % "gson-fire" % "1.9.0" % "compile",
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
"com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile",
"jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile",
- "org.junit.jupiter" % "junit-jupiter-api" % "5.10.2" % "test",
+ "org.junit.jupiter" % "junit-jupiter-api" % "5.10.3" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test",
"org.mockito" % "mockito-core" % "3.12.4" % "test"
)
diff --git a/pom.xml b/pom.xml
index 9362bc57..86036d9a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
onfido-api-java
jar
onfido-api-java
- 4.3.0
+ 5.0.0
https://documentation.onfido.com
Official Java API client library for the Onfido API
@@ -313,14 +313,9 @@
${jackson-databind-nullable-version}
- javax.ws.rs
- jsr311-api
- ${jsr311-api-version}
-
-
- javax.ws.rs
- javax.ws.rs-api
- ${javax.ws.rs-api-version}
+ jakarta.ws.rs
+ jakarta.ws.rs-api
+ ${jakarta.ws.rs-api-version}
@@ -341,14 +336,15 @@
${java.version}
${java.version}
1.9.0
- 4.11.0
+ 4.12.0
2.10.1
3.14.0
0.2.6
1.3.5
- 5.10.0
+ 2.0.2
+ 5.10.3
1.10.0
- 2.1.1
+ 2.1.6
1.1.1
UTF-8
2.43.0
diff --git a/src/main/java/com/onfido/ApiClient.java b/src/main/java/com/onfido/ApiClient.java
index 68864505..73c6ff6f 100644
--- a/src/main/java/com/onfido/ApiClient.java
+++ b/src/main/java/com/onfido/ApiClient.java
@@ -160,7 +160,7 @@ private void init() {
json = new JSON();
// Set default User-Agent.
- setUserAgent("onfido-java/4.3.0");
+ setUserAgent("onfido-java/5.0.0");
authentications = new HashMap();
}
@@ -446,6 +446,19 @@ public void setAWS4Configuration(String accessKey, String secretKey, String regi
throw new RuntimeException("No AWS4 authentication configured!");
}
+ /**
+ * Helper method to set credentials for AWSV4 Signature
+ *
+ * @param accessKey Access Key
+ * @param secretKey Secret Key
+ * @param sessionToken Session Token
+ * @param region Region
+ * @param service Service to access to
+ */
+ public void setAWS4Configuration(String accessKey, String secretKey, String sessionToken, String region, String service) {
+ throw new RuntimeException("No AWS4 authentication configured!");
+ }
+
/**
* Set the User-Agent header's value (by adding to the default header map).
*
@@ -701,6 +714,30 @@ public List parameterToPairs(String collectionFormat, String name, Collect
return params;
}
+ /**
+ * Formats the specified free-form query parameters to a list of {@code Pair} objects.
+ *
+ * @param value The free-form query parameters.
+ * @return A list of {@code Pair} objects.
+ */
+ public List freeFormParameterToPairs(Object value) {
+ List params = new ArrayList<>();
+
+ // preconditions
+ if (value == null || !(value instanceof Map )) {
+ return params;
+ }
+
+ final Map valuesMap = (Map) value;
+
+ for (Map.Entry entry : valuesMap.entrySet()) {
+ params.add(new Pair(entry.getKey(), parameterToString(entry.getValue())));
+ }
+
+ return params;
+ }
+
+
/**
* Formats the specified collection path parameter to a string value.
*
@@ -1137,10 +1174,6 @@ public Call buildCall(String baseUrl, String path, String method, List que
* @throws com.onfido.ApiException If fail to serialize the request body object
*/
public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException {
- // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams
- List allQueryParams = new ArrayList(queryParams);
- allQueryParams.addAll(collectionQueryParams);
-
final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams);
// prepare HTTP request body
@@ -1168,10 +1201,12 @@ public Request buildRequest(String baseUrl, String path, String method, List updatedQueryParams = new ArrayList<>(queryParams);
+
// update parameters with authentication settings
- updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url));
+ updateParamsForAuth(authNames, updatedQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url));
- final Request.Builder reqBuilder = new Request.Builder().url(url);
+ final Request.Builder reqBuilder = new Request.Builder().url(buildUrl(baseUrl, path, updatedQueryParams, collectionQueryParams));
processHeaderParams(headerParams, reqBuilder);
processCookieParams(cookieParams, reqBuilder);
diff --git a/src/main/java/com/onfido/ApiException.java b/src/main/java/com/onfido/ApiException.java
index afd726b0..f5b53540 100644
--- a/src/main/java/com/onfido/ApiException.java
+++ b/src/main/java/com/onfido/ApiException.java
@@ -21,7 +21,7 @@
* ApiException class.
*/
@SuppressWarnings("serial")
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApiException extends Exception {
private static final long serialVersionUID = 1L;
diff --git a/src/main/java/com/onfido/Configuration.java b/src/main/java/com/onfido/Configuration.java
index d5be14db..277e6260 100644
--- a/src/main/java/com/onfido/Configuration.java
+++ b/src/main/java/com/onfido/Configuration.java
@@ -13,9 +13,9 @@
package com.onfido;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class Configuration {
- public static final String VERSION = "4.3.0";
+ public static final String VERSION = "5.0.0";
private static ApiClient defaultApiClient = new ApiClient();
diff --git a/src/main/java/com/onfido/JSON.java b/src/main/java/com/onfido/JSON.java
index f1fb4b6a..feb14b9f 100644
--- a/src/main/java/com/onfido/JSON.java
+++ b/src/main/java/com/onfido/JSON.java
@@ -13,11 +13,11 @@
package com.onfido;
-import com.fasterxml.jackson.databind.util.StdDateFormat;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonParseException;
import com.google.gson.TypeAdapter;
+import com.google.gson.internal.bind.util.ISO8601Utils;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.google.gson.JsonElement;
@@ -31,16 +31,14 @@
import java.lang.reflect.Type;
import java.text.DateFormat;
import java.text.ParseException;
+import java.text.ParsePosition;
import java.time.LocalDate;
import java.time.OffsetDateTime;
-import java.time.ZoneId;
-import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.Locale;
import java.util.Map;
import java.util.HashMap;
-import java.util.TimeZone;
/*
* A JSON utility class
@@ -57,11 +55,6 @@ public class JSON {
private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter();
private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter();
- private static final StdDateFormat sdf = new StdDateFormat()
- .withTimeZone(TimeZone.getTimeZone(ZoneId.systemDefault()))
- .withColonInTimeZone(true);
- private static final DateTimeFormatter dtf = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
-
@SuppressWarnings("unchecked")
public static GsonBuilder createGson() {
GsonFireBuilder fireBuilder = new GsonFireBuilder()
@@ -659,7 +652,7 @@ public java.sql.Date read(JsonReader in) throws IOException {
if (dateFormat != null) {
return new java.sql.Date(dateFormat.parse(date).getTime());
}
- return new java.sql.Date(sdf.parse(date).getTime());
+ return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime());
} catch (ParseException e) {
throw new JsonParseException(e);
}
@@ -669,7 +662,7 @@ public java.sql.Date read(JsonReader in) throws IOException {
/**
* Gson TypeAdapter for java.util.Date type
- * If the dateFormat is null, DateTimeFormatter will be used.
+ * If the dateFormat is null, ISO8601Utils will be used.
*/
public static class DateTypeAdapter extends TypeAdapter {
@@ -694,7 +687,7 @@ public void write(JsonWriter out, Date date) throws IOException {
if (dateFormat != null) {
value = dateFormat.format(date);
} else {
- value = date.toInstant().atOffset(ZoneOffset.UTC).format(dtf);
+ value = ISO8601Utils.format(date, true);
}
out.value(value);
}
@@ -713,7 +706,7 @@ public Date read(JsonReader in) throws IOException {
if (dateFormat != null) {
return dateFormat.parse(date);
}
- return sdf.parse(date);
+ return ISO8601Utils.parse(date, new ParsePosition(0));
} catch (ParseException e) {
throw new JsonParseException(e);
}
diff --git a/src/main/java/com/onfido/Pair.java b/src/main/java/com/onfido/Pair.java
index 134dc325..73320176 100644
--- a/src/main/java/com/onfido/Pair.java
+++ b/src/main/java/com/onfido/Pair.java
@@ -13,7 +13,7 @@
package com.onfido;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class Pair {
private String name = "";
private String value = "";
diff --git a/src/main/java/com/onfido/ServerConfiguration.java b/src/main/java/com/onfido/ServerConfiguration.java
index 4a59a59f..cd0367a3 100644
--- a/src/main/java/com/onfido/ServerConfiguration.java
+++ b/src/main/java/com/onfido/ServerConfiguration.java
@@ -1,3 +1,16 @@
+/*
+ * Onfido API v3.6
+ * The Onfido API (v3.6)
+ *
+ * The version of the OpenAPI document: v3.6
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
package com.onfido;
import java.util.Map;
@@ -5,7 +18,7 @@
/**
* Representing a Server configuration.
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ServerConfiguration {
public String URL;
public String description;
diff --git a/src/main/java/com/onfido/ServerVariable.java b/src/main/java/com/onfido/ServerVariable.java
index 7c81c3db..13e1cd2c 100644
--- a/src/main/java/com/onfido/ServerVariable.java
+++ b/src/main/java/com/onfido/ServerVariable.java
@@ -1,3 +1,16 @@
+/*
+ * Onfido API v3.6
+ * The Onfido API (v3.6)
+ *
+ * The version of the OpenAPI document: v3.6
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
package com.onfido;
import java.util.HashSet;
@@ -5,7 +18,7 @@
/**
* Representing a Server Variable for server URL template substitution.
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ServerVariable {
public String description;
public String defaultValue;
diff --git a/src/main/java/com/onfido/StringUtil.java b/src/main/java/com/onfido/StringUtil.java
index 0be8b4dc..49111e86 100644
--- a/src/main/java/com/onfido/StringUtil.java
+++ b/src/main/java/com/onfido/StringUtil.java
@@ -16,7 +16,7 @@
import java.util.Collection;
import java.util.Iterator;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
diff --git a/src/main/java/com/onfido/auth/ApiKeyAuth.java b/src/main/java/com/onfido/auth/ApiKeyAuth.java
index 51e1e8c8..51228de5 100644
--- a/src/main/java/com/onfido/auth/ApiKeyAuth.java
+++ b/src/main/java/com/onfido/auth/ApiKeyAuth.java
@@ -20,7 +20,7 @@
import java.util.Map;
import java.util.List;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApiKeyAuth implements Authentication {
private final String location;
private final String paramName;
diff --git a/src/main/java/com/onfido/auth/HttpBasicAuth.java b/src/main/java/com/onfido/auth/HttpBasicAuth.java
index d5d1fd49..71ecc19b 100644
--- a/src/main/java/com/onfido/auth/HttpBasicAuth.java
+++ b/src/main/java/com/onfido/auth/HttpBasicAuth.java
@@ -22,8 +22,6 @@
import java.util.Map;
import java.util.List;
-import java.io.UnsupportedEncodingException;
-
public class HttpBasicAuth implements Authentication {
private String username;
private String password;
diff --git a/src/main/java/com/onfido/auth/HttpBearerAuth.java b/src/main/java/com/onfido/auth/HttpBearerAuth.java
index bdafe812..73a8370d 100644
--- a/src/main/java/com/onfido/auth/HttpBearerAuth.java
+++ b/src/main/java/com/onfido/auth/HttpBearerAuth.java
@@ -22,7 +22,7 @@
import java.util.Optional;
import java.util.function.Supplier;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class HttpBearerAuth implements Authentication {
private final String scheme;
private Supplier tokenSupplier;
diff --git a/src/main/java/com/onfido/model/AbstractOpenApiSchema.java b/src/main/java/com/onfido/model/AbstractOpenApiSchema.java
index 02190f0d..2b8a7006 100644
--- a/src/main/java/com/onfido/model/AbstractOpenApiSchema.java
+++ b/src/main/java/com/onfido/model/AbstractOpenApiSchema.java
@@ -21,7 +21,7 @@
/**
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public abstract class AbstractOpenApiSchema {
// store the actual instance of the schema/object
diff --git a/src/main/java/com/onfido/model/Address.java b/src/main/java/com/onfido/model/Address.java
index f4b611c9..2d0da10e 100644
--- a/src/main/java/com/onfido/model/Address.java
+++ b/src/main/java/com/onfido/model/Address.java
@@ -39,7 +39,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -51,7 +50,7 @@
/**
* Address
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class Address {
public static final String SERIALIZED_NAME_FLAT_NUMBER = "flat_number";
@SerializedName(SERIALIZED_NAME_FLAT_NUMBER)
@@ -109,10 +108,10 @@ public Address flatNumber(String flatNumber) {
return this;
}
- /**
+ /**
* The flat number of this address
* @return flatNumber
- **/
+ */
@javax.annotation.Nullable
public String getFlatNumber() {
return flatNumber;
@@ -128,10 +127,10 @@ public Address buildingNumber(String buildingNumber) {
return this;
}
- /**
+ /**
* The building number of this address
* @return buildingNumber
- **/
+ */
@javax.annotation.Nullable
public String getBuildingNumber() {
return buildingNumber;
@@ -147,10 +146,10 @@ public Address buildingName(String buildingName) {
return this;
}
- /**
+ /**
* The building name of this address
* @return buildingName
- **/
+ */
@javax.annotation.Nullable
public String getBuildingName() {
return buildingName;
@@ -166,10 +165,10 @@ public Address street(String street) {
return this;
}
- /**
+ /**
* The street of the applicant's address
* @return street
- **/
+ */
@javax.annotation.Nullable
public String getStreet() {
return street;
@@ -185,10 +184,10 @@ public Address subStreet(String subStreet) {
return this;
}
- /**
+ /**
* The sub-street of the applicant's address
* @return subStreet
- **/
+ */
@javax.annotation.Nullable
public String getSubStreet() {
return subStreet;
@@ -204,10 +203,10 @@ public Address town(String town) {
return this;
}
- /**
+ /**
* The town of the applicant's address
* @return town
- **/
+ */
@javax.annotation.Nullable
public String getTown() {
return town;
@@ -223,10 +222,10 @@ public Address postcode(String postcode) {
return this;
}
- /**
+ /**
* The postcode or ZIP of the applicant's address
* @return postcode
- **/
+ */
@javax.annotation.Nonnull
public String getPostcode() {
return postcode;
@@ -242,10 +241,10 @@ public Address country(CountryCodes country) {
return this;
}
- /**
+ /**
* The 3 character ISO country code of this address. For example, GBR is the country code for the United Kingdom
* @return country
- **/
+ */
@javax.annotation.Nonnull
public CountryCodes getCountry() {
return country;
@@ -261,10 +260,10 @@ public Address state(String state) {
return this;
}
- /**
+ /**
* The address state. US states must use the USPS abbreviation (see also ISO 3166-2:US), for example AK, CA, or TX.
* @return state
- **/
+ */
@javax.annotation.Nullable
public String getState() {
return state;
@@ -280,10 +279,10 @@ public Address line1(String line1) {
return this;
}
- /**
+ /**
* Line 1 of the applicant's address
* @return line1
- **/
+ */
@javax.annotation.Nullable
public String getLine1() {
return line1;
@@ -299,10 +298,10 @@ public Address line2(String line2) {
return this;
}
- /**
+ /**
* Line 2 of the applicant's address
* @return line2
- **/
+ */
@javax.annotation.Nullable
public String getLine2() {
return line2;
@@ -318,10 +317,10 @@ public Address line3(String line3) {
return this;
}
- /**
+ /**
* Line 3 of the applicant's address
* @return line3
- **/
+ */
@javax.annotation.Nullable
public String getLine3() {
return line3;
@@ -475,12 +474,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("country");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to Address
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to Address
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Address.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -604,22 +603,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of Address given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of Address
- * @throws IOException if the JSON string is invalid with respect to Address
- */
+ /**
+ * Create an instance of Address given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of Address
+ * @throws IOException if the JSON string is invalid with respect to Address
+ */
public static Address fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Address.class);
}
- /**
- * Convert an instance of Address to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of Address to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/AddressBuilder.java b/src/main/java/com/onfido/model/AddressBuilder.java
index 91d395b0..b889c6f1 100644
--- a/src/main/java/com/onfido/model/AddressBuilder.java
+++ b/src/main/java/com/onfido/model/AddressBuilder.java
@@ -39,7 +39,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -51,7 +50,7 @@
/**
* AddressBuilder
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class AddressBuilder {
public static final String SERIALIZED_NAME_FLAT_NUMBER = "flat_number";
@SerializedName(SERIALIZED_NAME_FLAT_NUMBER)
@@ -109,10 +108,10 @@ public AddressBuilder flatNumber(String flatNumber) {
return this;
}
- /**
+ /**
* The flat number of this address
* @return flatNumber
- **/
+ */
@javax.annotation.Nullable
public String getFlatNumber() {
return flatNumber;
@@ -128,10 +127,10 @@ public AddressBuilder buildingNumber(String buildingNumber) {
return this;
}
- /**
+ /**
* The building number of this address
* @return buildingNumber
- **/
+ */
@javax.annotation.Nullable
public String getBuildingNumber() {
return buildingNumber;
@@ -147,10 +146,10 @@ public AddressBuilder buildingName(String buildingName) {
return this;
}
- /**
+ /**
* The building name of this address
* @return buildingName
- **/
+ */
@javax.annotation.Nullable
public String getBuildingName() {
return buildingName;
@@ -166,10 +165,10 @@ public AddressBuilder street(String street) {
return this;
}
- /**
+ /**
* The street of the applicant's address
* @return street
- **/
+ */
@javax.annotation.Nullable
public String getStreet() {
return street;
@@ -185,10 +184,10 @@ public AddressBuilder subStreet(String subStreet) {
return this;
}
- /**
+ /**
* The sub-street of the applicant's address
* @return subStreet
- **/
+ */
@javax.annotation.Nullable
public String getSubStreet() {
return subStreet;
@@ -204,10 +203,10 @@ public AddressBuilder town(String town) {
return this;
}
- /**
+ /**
* The town of the applicant's address
* @return town
- **/
+ */
@javax.annotation.Nullable
public String getTown() {
return town;
@@ -223,10 +222,10 @@ public AddressBuilder postcode(String postcode) {
return this;
}
- /**
+ /**
* The postcode or ZIP of the applicant's address
* @return postcode
- **/
+ */
@javax.annotation.Nonnull
public String getPostcode() {
return postcode;
@@ -242,10 +241,10 @@ public AddressBuilder country(CountryCodes country) {
return this;
}
- /**
+ /**
* The 3 character ISO country code of this address. For example, GBR is the country code for the United Kingdom
* @return country
- **/
+ */
@javax.annotation.Nonnull
public CountryCodes getCountry() {
return country;
@@ -261,10 +260,10 @@ public AddressBuilder state(String state) {
return this;
}
- /**
+ /**
* The address state. US states must use the USPS abbreviation (see also ISO 3166-2:US), for example AK, CA, or TX.
* @return state
- **/
+ */
@javax.annotation.Nullable
public String getState() {
return state;
@@ -280,10 +279,10 @@ public AddressBuilder line1(String line1) {
return this;
}
- /**
+ /**
* Line 1 of the applicant's address
* @return line1
- **/
+ */
@javax.annotation.Nullable
public String getLine1() {
return line1;
@@ -299,10 +298,10 @@ public AddressBuilder line2(String line2) {
return this;
}
- /**
+ /**
* Line 2 of the applicant's address
* @return line2
- **/
+ */
@javax.annotation.Nullable
public String getLine2() {
return line2;
@@ -318,10 +317,10 @@ public AddressBuilder line3(String line3) {
return this;
}
- /**
+ /**
* Line 3 of the applicant's address
* @return line3
- **/
+ */
@javax.annotation.Nullable
public String getLine3() {
return line3;
@@ -475,12 +474,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("country");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to AddressBuilder
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AddressBuilder
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AddressBuilder.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -604,22 +603,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of AddressBuilder given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of AddressBuilder
- * @throws IOException if the JSON string is invalid with respect to AddressBuilder
- */
+ /**
+ * Create an instance of AddressBuilder given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AddressBuilder
+ * @throws IOException if the JSON string is invalid with respect to AddressBuilder
+ */
public static AddressBuilder fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AddressBuilder.class);
}
- /**
- * Convert an instance of AddressBuilder to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of AddressBuilder to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/AddressShared.java b/src/main/java/com/onfido/model/AddressShared.java
index a4c02673..4ab6adce 100644
--- a/src/main/java/com/onfido/model/AddressShared.java
+++ b/src/main/java/com/onfido/model/AddressShared.java
@@ -39,7 +39,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -51,7 +50,7 @@
/**
* AddressShared
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class AddressShared {
public static final String SERIALIZED_NAME_FLAT_NUMBER = "flat_number";
@SerializedName(SERIALIZED_NAME_FLAT_NUMBER)
@@ -109,10 +108,10 @@ public AddressShared flatNumber(String flatNumber) {
return this;
}
- /**
+ /**
* The flat number of this address
* @return flatNumber
- **/
+ */
@javax.annotation.Nullable
public String getFlatNumber() {
return flatNumber;
@@ -128,10 +127,10 @@ public AddressShared buildingNumber(String buildingNumber) {
return this;
}
- /**
+ /**
* The building number of this address
* @return buildingNumber
- **/
+ */
@javax.annotation.Nullable
public String getBuildingNumber() {
return buildingNumber;
@@ -147,10 +146,10 @@ public AddressShared buildingName(String buildingName) {
return this;
}
- /**
+ /**
* The building name of this address
* @return buildingName
- **/
+ */
@javax.annotation.Nullable
public String getBuildingName() {
return buildingName;
@@ -166,10 +165,10 @@ public AddressShared street(String street) {
return this;
}
- /**
+ /**
* The street of the applicant's address
* @return street
- **/
+ */
@javax.annotation.Nullable
public String getStreet() {
return street;
@@ -185,10 +184,10 @@ public AddressShared subStreet(String subStreet) {
return this;
}
- /**
+ /**
* The sub-street of the applicant's address
* @return subStreet
- **/
+ */
@javax.annotation.Nullable
public String getSubStreet() {
return subStreet;
@@ -204,10 +203,10 @@ public AddressShared town(String town) {
return this;
}
- /**
+ /**
* The town of the applicant's address
* @return town
- **/
+ */
@javax.annotation.Nullable
public String getTown() {
return town;
@@ -223,10 +222,10 @@ public AddressShared postcode(String postcode) {
return this;
}
- /**
+ /**
* The postcode or ZIP of the applicant's address
* @return postcode
- **/
+ */
@javax.annotation.Nonnull
public String getPostcode() {
return postcode;
@@ -242,10 +241,10 @@ public AddressShared country(CountryCodes country) {
return this;
}
- /**
+ /**
* The 3 character ISO country code of this address. For example, GBR is the country code for the United Kingdom
* @return country
- **/
+ */
@javax.annotation.Nonnull
public CountryCodes getCountry() {
return country;
@@ -261,10 +260,10 @@ public AddressShared state(String state) {
return this;
}
- /**
+ /**
* The address state. US states must use the USPS abbreviation (see also ISO 3166-2:US), for example AK, CA, or TX.
* @return state
- **/
+ */
@javax.annotation.Nullable
public String getState() {
return state;
@@ -280,10 +279,10 @@ public AddressShared line1(String line1) {
return this;
}
- /**
+ /**
* Line 1 of the applicant's address
* @return line1
- **/
+ */
@javax.annotation.Nullable
public String getLine1() {
return line1;
@@ -299,10 +298,10 @@ public AddressShared line2(String line2) {
return this;
}
- /**
+ /**
* Line 2 of the applicant's address
* @return line2
- **/
+ */
@javax.annotation.Nullable
public String getLine2() {
return line2;
@@ -318,10 +317,10 @@ public AddressShared line3(String line3) {
return this;
}
- /**
+ /**
* Line 3 of the applicant's address
* @return line3
- **/
+ */
@javax.annotation.Nullable
public String getLine3() {
return line3;
@@ -475,12 +474,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("country");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to AddressShared
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AddressShared
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AddressShared.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -604,22 +603,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of AddressShared given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of AddressShared
- * @throws IOException if the JSON string is invalid with respect to AddressShared
- */
+ /**
+ * Create an instance of AddressShared given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AddressShared
+ * @throws IOException if the JSON string is invalid with respect to AddressShared
+ */
public static AddressShared fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AddressShared.class);
}
- /**
- * Convert an instance of AddressShared to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of AddressShared to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/AddressesList.java b/src/main/java/com/onfido/model/AddressesList.java
index d3a07a60..0ee1fdf9 100644
--- a/src/main/java/com/onfido/model/AddressesList.java
+++ b/src/main/java/com/onfido/model/AddressesList.java
@@ -40,7 +40,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -52,7 +51,7 @@
/**
* AddressesList
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class AddressesList {
public static final String SERIALIZED_NAME_ADDRESSES = "addresses";
@SerializedName(SERIALIZED_NAME_ADDRESSES)
@@ -74,10 +73,10 @@ public AddressesList addAddressesItem(Address addressesItem) {
return this;
}
- /**
+ /**
* Get addresses
* @return addresses
- **/
+ */
@javax.annotation.Nullable
public List getAddresses() {
return addresses;
@@ -185,12 +184,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields = new HashSet();
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to AddressesList
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to AddressesList
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!AddressesList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -286,22 +285,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of AddressesList given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of AddressesList
- * @throws IOException if the JSON string is invalid with respect to AddressesList
- */
+ /**
+ * Create an instance of AddressesList given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of AddressesList
+ * @throws IOException if the JSON string is invalid with respect to AddressesList
+ */
public static AddressesList fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, AddressesList.class);
}
- /**
- * Convert an instance of AddressesList to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of AddressesList to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/Applicant.java b/src/main/java/com/onfido/model/Applicant.java
index 26bfd687..592b4151 100644
--- a/src/main/java/com/onfido/model/Applicant.java
+++ b/src/main/java/com/onfido/model/Applicant.java
@@ -45,7 +45,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -57,7 +56,7 @@
/**
* Applicant
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class Applicant {
public static final String SERIALIZED_NAME_EMAIL = "email";
@SerializedName(SERIALIZED_NAME_EMAIL)
@@ -119,10 +118,10 @@ public Applicant email(String email) {
return this;
}
- /**
+ /**
* The applicant's email address. Required if doing a US check, or a UK check for which `applicant_provides_data` is `true`.
* @return email
- **/
+ */
@javax.annotation.Nullable
public String getEmail() {
return email;
@@ -138,10 +137,10 @@ public Applicant dob(LocalDate dob) {
return this;
}
- /**
+ /**
* The applicant's date of birth
* @return dob
- **/
+ */
@javax.annotation.Nullable
public LocalDate getDob() {
return dob;
@@ -165,10 +164,10 @@ public Applicant addIdNumbersItem(IdNumber idNumbersItem) {
return this;
}
- /**
+ /**
* Get idNumbers
* @return idNumbers
- **/
+ */
@javax.annotation.Nullable
public List getIdNumbers() {
return idNumbers;
@@ -184,10 +183,10 @@ public Applicant phoneNumber(String phoneNumber) {
return this;
}
- /**
+ /**
* The applicant's phone number
* @return phoneNumber
- **/
+ */
@javax.annotation.Nullable
public String getPhoneNumber() {
return phoneNumber;
@@ -203,10 +202,10 @@ public Applicant firstName(String firstName) {
return this;
}
- /**
+ /**
* The applicant's first name
* @return firstName
- **/
+ */
@javax.annotation.Nullable
public String getFirstName() {
return firstName;
@@ -222,10 +221,10 @@ public Applicant lastName(String lastName) {
return this;
}
- /**
+ /**
* The applicant's surname
* @return lastName
- **/
+ */
@javax.annotation.Nullable
public String getLastName() {
return lastName;
@@ -241,10 +240,10 @@ public Applicant id(UUID id) {
return this;
}
- /**
+ /**
* The unique identifier for the applicant.
* @return id
- **/
+ */
@javax.annotation.Nonnull
public UUID getId() {
return id;
@@ -260,10 +259,10 @@ public Applicant createdAt(OffsetDateTime createdAt) {
return this;
}
- /**
+ /**
* The date and time when this applicant was created.
* @return createdAt
- **/
+ */
@javax.annotation.Nullable
public OffsetDateTime getCreatedAt() {
return createdAt;
@@ -279,10 +278,10 @@ public Applicant deleteAt(OffsetDateTime deleteAt) {
return this;
}
- /**
+ /**
* The date and time when this applicant is scheduled to be deleted.
* @return deleteAt
- **/
+ */
@javax.annotation.Nullable
public OffsetDateTime getDeleteAt() {
return deleteAt;
@@ -298,10 +297,10 @@ public Applicant href(String href) {
return this;
}
- /**
+ /**
* The uri of this resource.
* @return href
- **/
+ */
@javax.annotation.Nullable
public String getHref() {
return href;
@@ -317,10 +316,10 @@ public Applicant sandbox(Boolean sandbox) {
return this;
}
- /**
+ /**
* Get sandbox
* @return sandbox
- **/
+ */
@javax.annotation.Nullable
public Boolean getSandbox() {
return sandbox;
@@ -336,10 +335,10 @@ public Applicant address(Address address) {
return this;
}
- /**
+ /**
* Get address
* @return address
- **/
+ */
@javax.annotation.Nullable
public Address getAddress() {
return address;
@@ -355,10 +354,10 @@ public Applicant location(Location location) {
return this;
}
- /**
+ /**
* Get location
* @return location
- **/
+ */
@javax.annotation.Nullable
public Location getLocation() {
return location;
@@ -503,12 +502,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("id");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to Applicant
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to Applicant
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Applicant.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -637,22 +636,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of Applicant given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of Applicant
- * @throws IOException if the JSON string is invalid with respect to Applicant
- */
+ /**
+ * Create an instance of Applicant given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of Applicant
+ * @throws IOException if the JSON string is invalid with respect to Applicant
+ */
public static Applicant fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Applicant.class);
}
- /**
- * Convert an instance of Applicant to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of Applicant to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/ApplicantBuilder.java b/src/main/java/com/onfido/model/ApplicantBuilder.java
index 70e21e55..5280e8f3 100644
--- a/src/main/java/com/onfido/model/ApplicantBuilder.java
+++ b/src/main/java/com/onfido/model/ApplicantBuilder.java
@@ -44,7 +44,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -56,7 +55,7 @@
/**
* ApplicantBuilder
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApplicantBuilder {
public static final String SERIALIZED_NAME_EMAIL = "email";
@SerializedName(SERIALIZED_NAME_EMAIL)
@@ -102,10 +101,10 @@ public ApplicantBuilder email(String email) {
return this;
}
- /**
+ /**
* The applicant's email address. Required if doing a US check, or a UK check for which `applicant_provides_data` is `true`.
* @return email
- **/
+ */
@javax.annotation.Nullable
public String getEmail() {
return email;
@@ -121,10 +120,10 @@ public ApplicantBuilder dob(LocalDate dob) {
return this;
}
- /**
+ /**
* The applicant's date of birth
* @return dob
- **/
+ */
@javax.annotation.Nullable
public LocalDate getDob() {
return dob;
@@ -148,10 +147,10 @@ public ApplicantBuilder addIdNumbersItem(IdNumber idNumbersItem) {
return this;
}
- /**
+ /**
* Get idNumbers
* @return idNumbers
- **/
+ */
@javax.annotation.Nullable
public List getIdNumbers() {
return idNumbers;
@@ -167,10 +166,10 @@ public ApplicantBuilder phoneNumber(String phoneNumber) {
return this;
}
- /**
+ /**
* The applicant's phone number
* @return phoneNumber
- **/
+ */
@javax.annotation.Nullable
public String getPhoneNumber() {
return phoneNumber;
@@ -194,10 +193,10 @@ public ApplicantBuilder addConsentsItem(ApplicantConsentBuilder consentsItem) {
return this;
}
- /**
+ /**
* The applicant's consents
* @return consents
- **/
+ */
@javax.annotation.Nullable
public List getConsents() {
return consents;
@@ -213,10 +212,10 @@ public ApplicantBuilder address(AddressBuilder address) {
return this;
}
- /**
+ /**
* Get address
* @return address
- **/
+ */
@javax.annotation.Nullable
public AddressBuilder getAddress() {
return address;
@@ -232,10 +231,10 @@ public ApplicantBuilder location(LocationBuilder location) {
return this;
}
- /**
+ /**
* Get location
* @return location
- **/
+ */
@javax.annotation.Nullable
public LocationBuilder getLocation() {
return location;
@@ -251,10 +250,10 @@ public ApplicantBuilder firstName(String firstName) {
return this;
}
- /**
+ /**
* The applicant's first name
* @return firstName
- **/
+ */
@javax.annotation.Nonnull
public String getFirstName() {
return firstName;
@@ -270,10 +269,10 @@ public ApplicantBuilder lastName(String lastName) {
return this;
}
- /**
+ /**
* The applicant's surname
* @return lastName
- **/
+ */
@javax.annotation.Nonnull
public String getLastName() {
return lastName;
@@ -407,12 +406,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("last_name");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to ApplicantBuilder
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to ApplicantBuilder
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ApplicantBuilder.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -549,22 +548,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of ApplicantBuilder given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of ApplicantBuilder
- * @throws IOException if the JSON string is invalid with respect to ApplicantBuilder
- */
+ /**
+ * Create an instance of ApplicantBuilder given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of ApplicantBuilder
+ * @throws IOException if the JSON string is invalid with respect to ApplicantBuilder
+ */
public static ApplicantBuilder fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ApplicantBuilder.class);
}
- /**
- * Convert an instance of ApplicantBuilder to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of ApplicantBuilder to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/ApplicantConsentBuilder.java b/src/main/java/com/onfido/model/ApplicantConsentBuilder.java
index 13b22f80..039a659d 100644
--- a/src/main/java/com/onfido/model/ApplicantConsentBuilder.java
+++ b/src/main/java/com/onfido/model/ApplicantConsentBuilder.java
@@ -38,7 +38,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -50,7 +49,7 @@
/**
* ApplicantConsentBuilder
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApplicantConsentBuilder {
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
@@ -68,10 +67,10 @@ public ApplicantConsentBuilder name(ApplicantConsentName name) {
return this;
}
- /**
+ /**
* Get name
* @return name
- **/
+ */
@javax.annotation.Nonnull
public ApplicantConsentName getName() {
return name;
@@ -87,10 +86,10 @@ public ApplicantConsentBuilder granted(Boolean granted) {
return this;
}
- /**
+ /**
* Get granted
* @return granted
- **/
+ */
@javax.annotation.Nonnull
public Boolean getGranted() {
return granted;
@@ -203,12 +202,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("granted");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to ApplicantConsentBuilder
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to ApplicantConsentBuilder
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ApplicantConsentBuilder.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -299,22 +298,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of ApplicantConsentBuilder given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of ApplicantConsentBuilder
- * @throws IOException if the JSON string is invalid with respect to ApplicantConsentBuilder
- */
+ /**
+ * Create an instance of ApplicantConsentBuilder given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of ApplicantConsentBuilder
+ * @throws IOException if the JSON string is invalid with respect to ApplicantConsentBuilder
+ */
public static ApplicantConsentBuilder fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ApplicantConsentBuilder.class);
}
- /**
- * Convert an instance of ApplicantConsentBuilder to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of ApplicantConsentBuilder to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/ApplicantCreate.java b/src/main/java/com/onfido/model/ApplicantCreate.java
index ddb901eb..24cbf4ca 100644
--- a/src/main/java/com/onfido/model/ApplicantCreate.java
+++ b/src/main/java/com/onfido/model/ApplicantCreate.java
@@ -37,7 +37,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -49,7 +48,7 @@
/**
* ApplicantCreate
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApplicantCreate {
public static final String SERIALIZED_NAME_FIRST_NAME = "first_name";
@SerializedName(SERIALIZED_NAME_FIRST_NAME)
@@ -67,10 +66,10 @@ public ApplicantCreate firstName(String firstName) {
return this;
}
- /**
+ /**
* The applicant's first name
* @return firstName
- **/
+ */
@javax.annotation.Nonnull
public String getFirstName() {
return firstName;
@@ -86,10 +85,10 @@ public ApplicantCreate lastName(String lastName) {
return this;
}
- /**
+ /**
* The applicant's surname
* @return lastName
- **/
+ */
@javax.annotation.Nonnull
public String getLastName() {
return lastName;
@@ -202,12 +201,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("last_name");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to ApplicantCreate
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to ApplicantCreate
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ApplicantCreate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -302,22 +301,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of ApplicantCreate given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of ApplicantCreate
- * @throws IOException if the JSON string is invalid with respect to ApplicantCreate
- */
+ /**
+ * Create an instance of ApplicantCreate given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of ApplicantCreate
+ * @throws IOException if the JSON string is invalid with respect to ApplicantCreate
+ */
public static ApplicantCreate fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ApplicantCreate.class);
}
- /**
- * Convert an instance of ApplicantCreate to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of ApplicantCreate to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/ApplicantRequest.java b/src/main/java/com/onfido/model/ApplicantRequest.java
index 9d0b2461..f540115a 100644
--- a/src/main/java/com/onfido/model/ApplicantRequest.java
+++ b/src/main/java/com/onfido/model/ApplicantRequest.java
@@ -42,7 +42,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -54,7 +53,7 @@
/**
* ApplicantRequest
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApplicantRequest {
public static final String SERIALIZED_NAME_CONSENTS = "consents";
@SerializedName(SERIALIZED_NAME_CONSENTS)
@@ -84,10 +83,10 @@ public ApplicantRequest addConsentsItem(ApplicantConsentBuilder consentsItem) {
return this;
}
- /**
+ /**
* The applicant's consents
* @return consents
- **/
+ */
@javax.annotation.Nullable
public List getConsents() {
return consents;
@@ -103,10 +102,10 @@ public ApplicantRequest address(AddressBuilder address) {
return this;
}
- /**
+ /**
* Get address
* @return address
- **/
+ */
@javax.annotation.Nullable
public AddressBuilder getAddress() {
return address;
@@ -122,10 +121,10 @@ public ApplicantRequest location(LocationBuilder location) {
return this;
}
- /**
+ /**
* Get location
* @return location
- **/
+ */
@javax.annotation.Nullable
public LocationBuilder getLocation() {
return location;
@@ -239,12 +238,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields = new HashSet();
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to ApplicantRequest
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to ApplicantRequest
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ApplicantRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -348,22 +347,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of ApplicantRequest given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of ApplicantRequest
- * @throws IOException if the JSON string is invalid with respect to ApplicantRequest
- */
+ /**
+ * Create an instance of ApplicantRequest given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of ApplicantRequest
+ * @throws IOException if the JSON string is invalid with respect to ApplicantRequest
+ */
public static ApplicantRequest fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ApplicantRequest.class);
}
- /**
- * Convert an instance of ApplicantRequest to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of ApplicantRequest to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/ApplicantResponse.java b/src/main/java/com/onfido/model/ApplicantResponse.java
index d595a9d2..09377f38 100644
--- a/src/main/java/com/onfido/model/ApplicantResponse.java
+++ b/src/main/java/com/onfido/model/ApplicantResponse.java
@@ -41,7 +41,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -53,7 +52,7 @@
/**
* ApplicantResponse
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApplicantResponse {
public static final String SERIALIZED_NAME_FIRST_NAME = "first_name";
@SerializedName(SERIALIZED_NAME_FIRST_NAME)
@@ -99,10 +98,10 @@ public ApplicantResponse firstName(String firstName) {
return this;
}
- /**
+ /**
* The applicant's first name
* @return firstName
- **/
+ */
@javax.annotation.Nullable
public String getFirstName() {
return firstName;
@@ -118,10 +117,10 @@ public ApplicantResponse lastName(String lastName) {
return this;
}
- /**
+ /**
* The applicant's surname
* @return lastName
- **/
+ */
@javax.annotation.Nullable
public String getLastName() {
return lastName;
@@ -137,10 +136,10 @@ public ApplicantResponse id(UUID id) {
return this;
}
- /**
+ /**
* The unique identifier for the applicant.
* @return id
- **/
+ */
@javax.annotation.Nonnull
public UUID getId() {
return id;
@@ -156,10 +155,10 @@ public ApplicantResponse createdAt(OffsetDateTime createdAt) {
return this;
}
- /**
+ /**
* The date and time when this applicant was created.
* @return createdAt
- **/
+ */
@javax.annotation.Nullable
public OffsetDateTime getCreatedAt() {
return createdAt;
@@ -175,10 +174,10 @@ public ApplicantResponse deleteAt(OffsetDateTime deleteAt) {
return this;
}
- /**
+ /**
* The date and time when this applicant is scheduled to be deleted.
* @return deleteAt
- **/
+ */
@javax.annotation.Nullable
public OffsetDateTime getDeleteAt() {
return deleteAt;
@@ -194,10 +193,10 @@ public ApplicantResponse href(String href) {
return this;
}
- /**
+ /**
* The uri of this resource.
* @return href
- **/
+ */
@javax.annotation.Nullable
public String getHref() {
return href;
@@ -213,10 +212,10 @@ public ApplicantResponse sandbox(Boolean sandbox) {
return this;
}
- /**
+ /**
* Get sandbox
* @return sandbox
- **/
+ */
@javax.annotation.Nullable
public Boolean getSandbox() {
return sandbox;
@@ -232,10 +231,10 @@ public ApplicantResponse address(Address address) {
return this;
}
- /**
+ /**
* Get address
* @return address
- **/
+ */
@javax.annotation.Nullable
public Address getAddress() {
return address;
@@ -251,10 +250,10 @@ public ApplicantResponse location(Location location) {
return this;
}
- /**
+ /**
* Get location
* @return location
- **/
+ */
@javax.annotation.Nullable
public Location getLocation() {
return location;
@@ -387,12 +386,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("id");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to ApplicantResponse
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to ApplicantResponse
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ApplicantResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -501,22 +500,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of ApplicantResponse given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of ApplicantResponse
- * @throws IOException if the JSON string is invalid with respect to ApplicantResponse
- */
+ /**
+ * Create an instance of ApplicantResponse given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of ApplicantResponse
+ * @throws IOException if the JSON string is invalid with respect to ApplicantResponse
+ */
public static ApplicantResponse fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ApplicantResponse.class);
}
- /**
- * Convert an instance of ApplicantResponse to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of ApplicantResponse to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/ApplicantShared.java b/src/main/java/com/onfido/model/ApplicantShared.java
index b4a1ba81..ce19948d 100644
--- a/src/main/java/com/onfido/model/ApplicantShared.java
+++ b/src/main/java/com/onfido/model/ApplicantShared.java
@@ -41,7 +41,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -53,7 +52,7 @@
/**
* ApplicantShared
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApplicantShared {
public static final String SERIALIZED_NAME_EMAIL = "email";
@SerializedName(SERIALIZED_NAME_EMAIL)
@@ -79,10 +78,10 @@ public ApplicantShared email(String email) {
return this;
}
- /**
+ /**
* The applicant's email address. Required if doing a US check, or a UK check for which `applicant_provides_data` is `true`.
* @return email
- **/
+ */
@javax.annotation.Nullable
public String getEmail() {
return email;
@@ -98,10 +97,10 @@ public ApplicantShared dob(LocalDate dob) {
return this;
}
- /**
+ /**
* The applicant's date of birth
* @return dob
- **/
+ */
@javax.annotation.Nullable
public LocalDate getDob() {
return dob;
@@ -125,10 +124,10 @@ public ApplicantShared addIdNumbersItem(IdNumber idNumbersItem) {
return this;
}
- /**
+ /**
* Get idNumbers
* @return idNumbers
- **/
+ */
@javax.annotation.Nullable
public List getIdNumbers() {
return idNumbers;
@@ -144,10 +143,10 @@ public ApplicantShared phoneNumber(String phoneNumber) {
return this;
}
- /**
+ /**
* The applicant's phone number
* @return phoneNumber
- **/
+ */
@javax.annotation.Nullable
public String getPhoneNumber() {
return phoneNumber;
@@ -264,12 +263,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields = new HashSet();
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to ApplicantShared
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to ApplicantShared
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ApplicantShared.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -371,22 +370,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of ApplicantShared given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of ApplicantShared
- * @throws IOException if the JSON string is invalid with respect to ApplicantShared
- */
+ /**
+ * Create an instance of ApplicantShared given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of ApplicantShared
+ * @throws IOException if the JSON string is invalid with respect to ApplicantShared
+ */
public static ApplicantShared fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ApplicantShared.class);
}
- /**
- * Convert an instance of ApplicantShared to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of ApplicantShared to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/ApplicantUpdate.java b/src/main/java/com/onfido/model/ApplicantUpdate.java
index 389f44d5..c88e2dd9 100644
--- a/src/main/java/com/onfido/model/ApplicantUpdate.java
+++ b/src/main/java/com/onfido/model/ApplicantUpdate.java
@@ -37,7 +37,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -49,7 +48,7 @@
/**
* ApplicantUpdate
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApplicantUpdate {
public static final String SERIALIZED_NAME_FIRST_NAME = "first_name";
@SerializedName(SERIALIZED_NAME_FIRST_NAME)
@@ -67,10 +66,10 @@ public ApplicantUpdate firstName(String firstName) {
return this;
}
- /**
+ /**
* The applicant's first name
* @return firstName
- **/
+ */
@javax.annotation.Nullable
public String getFirstName() {
return firstName;
@@ -86,10 +85,10 @@ public ApplicantUpdate lastName(String lastName) {
return this;
}
- /**
+ /**
* The applicant's surname
* @return lastName
- **/
+ */
@javax.annotation.Nullable
public String getLastName() {
return lastName;
@@ -200,12 +199,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields = new HashSet();
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to ApplicantUpdate
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to ApplicantUpdate
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ApplicantUpdate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -293,22 +292,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of ApplicantUpdate given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of ApplicantUpdate
- * @throws IOException if the JSON string is invalid with respect to ApplicantUpdate
- */
+ /**
+ * Create an instance of ApplicantUpdate given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of ApplicantUpdate
+ * @throws IOException if the JSON string is invalid with respect to ApplicantUpdate
+ */
public static ApplicantUpdate fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ApplicantUpdate.class);
}
- /**
- * Convert an instance of ApplicantUpdate to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of ApplicantUpdate to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/ApplicantUpdater.java b/src/main/java/com/onfido/model/ApplicantUpdater.java
index eb1a07e1..c45e29a0 100644
--- a/src/main/java/com/onfido/model/ApplicantUpdater.java
+++ b/src/main/java/com/onfido/model/ApplicantUpdater.java
@@ -44,7 +44,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -56,7 +55,7 @@
/**
* ApplicantUpdater
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApplicantUpdater {
public static final String SERIALIZED_NAME_EMAIL = "email";
@SerializedName(SERIALIZED_NAME_EMAIL)
@@ -102,10 +101,10 @@ public ApplicantUpdater email(String email) {
return this;
}
- /**
+ /**
* The applicant's email address. Required if doing a US check, or a UK check for which `applicant_provides_data` is `true`.
* @return email
- **/
+ */
@javax.annotation.Nullable
public String getEmail() {
return email;
@@ -121,10 +120,10 @@ public ApplicantUpdater dob(LocalDate dob) {
return this;
}
- /**
+ /**
* The applicant's date of birth
* @return dob
- **/
+ */
@javax.annotation.Nullable
public LocalDate getDob() {
return dob;
@@ -148,10 +147,10 @@ public ApplicantUpdater addIdNumbersItem(IdNumber idNumbersItem) {
return this;
}
- /**
+ /**
* Get idNumbers
* @return idNumbers
- **/
+ */
@javax.annotation.Nullable
public List getIdNumbers() {
return idNumbers;
@@ -167,10 +166,10 @@ public ApplicantUpdater phoneNumber(String phoneNumber) {
return this;
}
- /**
+ /**
* The applicant's phone number
* @return phoneNumber
- **/
+ */
@javax.annotation.Nullable
public String getPhoneNumber() {
return phoneNumber;
@@ -194,10 +193,10 @@ public ApplicantUpdater addConsentsItem(ApplicantConsentBuilder consentsItem) {
return this;
}
- /**
+ /**
* The applicant's consents
* @return consents
- **/
+ */
@javax.annotation.Nullable
public List getConsents() {
return consents;
@@ -213,10 +212,10 @@ public ApplicantUpdater address(AddressBuilder address) {
return this;
}
- /**
+ /**
* Get address
* @return address
- **/
+ */
@javax.annotation.Nullable
public AddressBuilder getAddress() {
return address;
@@ -232,10 +231,10 @@ public ApplicantUpdater location(LocationBuilder location) {
return this;
}
- /**
+ /**
* Get location
* @return location
- **/
+ */
@javax.annotation.Nullable
public LocationBuilder getLocation() {
return location;
@@ -251,10 +250,10 @@ public ApplicantUpdater firstName(String firstName) {
return this;
}
- /**
+ /**
* The applicant's first name
* @return firstName
- **/
+ */
@javax.annotation.Nullable
public String getFirstName() {
return firstName;
@@ -270,10 +269,10 @@ public ApplicantUpdater lastName(String lastName) {
return this;
}
- /**
+ /**
* The applicant's surname
* @return lastName
- **/
+ */
@javax.annotation.Nullable
public String getLastName() {
return lastName;
@@ -405,12 +404,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields = new HashSet();
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to ApplicantUpdater
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to ApplicantUpdater
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ApplicantUpdater.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -540,22 +539,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of ApplicantUpdater given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of ApplicantUpdater
- * @throws IOException if the JSON string is invalid with respect to ApplicantUpdater
- */
+ /**
+ * Create an instance of ApplicantUpdater given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of ApplicantUpdater
+ * @throws IOException if the JSON string is invalid with respect to ApplicantUpdater
+ */
public static ApplicantUpdater fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ApplicantUpdater.class);
}
- /**
- * Convert an instance of ApplicantUpdater to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of ApplicantUpdater to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/ApplicantsList.java b/src/main/java/com/onfido/model/ApplicantsList.java
index c678f0c2..2bd094d6 100644
--- a/src/main/java/com/onfido/model/ApplicantsList.java
+++ b/src/main/java/com/onfido/model/ApplicantsList.java
@@ -40,7 +40,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -52,7 +51,7 @@
/**
* ApplicantsList
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApplicantsList {
public static final String SERIALIZED_NAME_APPLICANTS = "applicants";
@SerializedName(SERIALIZED_NAME_APPLICANTS)
@@ -74,10 +73,10 @@ public ApplicantsList addApplicantsItem(Applicant applicantsItem) {
return this;
}
- /**
+ /**
* Get applicants
* @return applicants
- **/
+ */
@javax.annotation.Nonnull
public List getApplicants() {
return applicants;
@@ -186,12 +185,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("applicants");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to ApplicantsList
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to ApplicantsList
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ApplicantsList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -290,22 +289,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of ApplicantsList given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of ApplicantsList
- * @throws IOException if the JSON string is invalid with respect to ApplicantsList
- */
+ /**
+ * Create an instance of ApplicantsList given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of ApplicantsList
+ * @throws IOException if the JSON string is invalid with respect to ApplicantsList
+ */
public static ApplicantsList fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ApplicantsList.class);
}
- /**
- * Convert an instance of ApplicantsList to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of ApplicantsList to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/Check.java b/src/main/java/com/onfido/model/Check.java
index 53f89b3c..329f11ce 100644
--- a/src/main/java/com/onfido/model/Check.java
+++ b/src/main/java/com/onfido/model/Check.java
@@ -42,7 +42,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -54,7 +53,7 @@
/**
* Check
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class Check {
public static final String SERIALIZED_NAME_WEBHOOK_IDS = "webhook_ids";
@SerializedName(SERIALIZED_NAME_WEBHOOK_IDS)
@@ -194,10 +193,10 @@ public Check addWebhookIdsItem(String webhookIdsItem) {
return this;
}
- /**
+ /**
* An array of webhook ids describing which webhooks to trigger for this check.
* @return webhookIds
- **/
+ */
@javax.annotation.Nullable
public List getWebhookIds() {
return webhookIds;
@@ -213,10 +212,10 @@ public Check applicantId(UUID applicantId) {
return this;
}
- /**
+ /**
* The ID of the applicant to do the check on.
* @return applicantId
- **/
+ */
@javax.annotation.Nonnull
public UUID getApplicantId() {
return applicantId;
@@ -232,10 +231,10 @@ public Check applicantProvidesData(Boolean applicantProvidesData) {
return this;
}
- /**
+ /**
* Send an applicant form to applicant to complete to proceed with check. Defaults to false.
* @return applicantProvidesData
- **/
+ */
@javax.annotation.Nullable
public Boolean getApplicantProvidesData() {
return applicantProvidesData;
@@ -259,10 +258,10 @@ public Check addTagsItem(String tagsItem) {
return this;
}
- /**
+ /**
* Array of tags being assigned to this check.
* @return tags
- **/
+ */
@javax.annotation.Nullable
public List getTags() {
return tags;
@@ -278,10 +277,10 @@ public Check redirectUri(String redirectUri) {
return this;
}
- /**
+ /**
* For checks where `applicant_provides_data` is `true`, redirect to this URI when the applicant has submitted their data.
* @return redirectUri
- **/
+ */
@javax.annotation.Nullable
public String getRedirectUri() {
return redirectUri;
@@ -297,10 +296,10 @@ public Check privacyNoticesReadConsentGiven(Boolean privacyNoticesReadConsentGiv
return this;
}
- /**
+ /**
* Get privacyNoticesReadConsentGiven
* @return privacyNoticesReadConsentGiven
- **/
+ */
@javax.annotation.Nullable
public Boolean getPrivacyNoticesReadConsentGiven() {
return privacyNoticesReadConsentGiven;
@@ -316,10 +315,10 @@ public Check id(UUID id) {
return this;
}
- /**
+ /**
* The unique identifier for the check.
* @return id
- **/
+ */
@javax.annotation.Nonnull
public UUID getId() {
return id;
@@ -335,10 +334,10 @@ public Check createdAt(OffsetDateTime createdAt) {
return this;
}
- /**
+ /**
* The date and time when this check was created.
* @return createdAt
- **/
+ */
@javax.annotation.Nullable
public OffsetDateTime getCreatedAt() {
return createdAt;
@@ -354,10 +353,10 @@ public Check href(String href) {
return this;
}
- /**
+ /**
* The uri of this resource.
* @return href
- **/
+ */
@javax.annotation.Nullable
public String getHref() {
return href;
@@ -373,10 +372,10 @@ public Check status(CheckStatus status) {
return this;
}
- /**
+ /**
* Get status
* @return status
- **/
+ */
@javax.annotation.Nullable
public CheckStatus getStatus() {
return status;
@@ -392,10 +391,10 @@ public Check result(ResultEnum result) {
return this;
}
- /**
+ /**
* The overall result of the check, based on the results of the constituent reports.
* @return result
- **/
+ */
@javax.annotation.Nullable
public ResultEnum getResult() {
return result;
@@ -411,10 +410,10 @@ public Check formUri(String formUri) {
return this;
}
- /**
+ /**
* A link to the applicant form, if `applicant_provides_data` is `true`.
* @return formUri
- **/
+ */
@javax.annotation.Nullable
public String getFormUri() {
return formUri;
@@ -430,10 +429,10 @@ public Check resultsUri(String resultsUri) {
return this;
}
- /**
+ /**
* A link to the corresponding results page on the Onfido dashboard.
* @return resultsUri
- **/
+ */
@javax.annotation.Nullable
public String getResultsUri() {
return resultsUri;
@@ -457,10 +456,10 @@ public Check addReportIdsItem(UUID reportIdsItem) {
return this;
}
- /**
+ /**
* An array of report ids.
* @return reportIds
- **/
+ */
@javax.annotation.Nullable
public List getReportIds() {
return reportIds;
@@ -476,10 +475,10 @@ public Check sandbox(Boolean sandbox) {
return this;
}
- /**
+ /**
* Indicates whether the object was created in the sandbox or not.
* @return sandbox
- **/
+ */
@javax.annotation.Nullable
public Boolean getSandbox() {
return sandbox;
@@ -495,10 +494,10 @@ public Check paused(Boolean paused) {
return this;
}
- /**
+ /**
* Get paused
* @return paused
- **/
+ */
@javax.annotation.Nullable
public Boolean getPaused() {
return paused;
@@ -514,10 +513,10 @@ public Check version(String version) {
return this;
}
- /**
+ /**
* Get version
* @return version
- **/
+ */
@javax.annotation.Nullable
public String getVersion() {
return version;
@@ -675,12 +674,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("id");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to Check
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to Check
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!Check.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -816,22 +815,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of Check given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of Check
- * @throws IOException if the JSON string is invalid with respect to Check
- */
+ /**
+ * Create an instance of Check given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of Check
+ * @throws IOException if the JSON string is invalid with respect to Check
+ */
public static Check fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, Check.class);
}
- /**
- * Convert an instance of Check to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of Check to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/CheckBuilder.java b/src/main/java/com/onfido/model/CheckBuilder.java
index 4abd8c40..97018286 100644
--- a/src/main/java/com/onfido/model/CheckBuilder.java
+++ b/src/main/java/com/onfido/model/CheckBuilder.java
@@ -42,7 +42,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -54,7 +53,7 @@
/**
* CheckBuilder
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class CheckBuilder {
public static final String SERIALIZED_NAME_WEBHOOK_IDS = "webhook_ids";
@SerializedName(SERIALIZED_NAME_WEBHOOK_IDS)
@@ -124,10 +123,10 @@ public CheckBuilder addWebhookIdsItem(String webhookIdsItem) {
return this;
}
- /**
+ /**
* An array of webhook ids describing which webhooks to trigger for this check.
* @return webhookIds
- **/
+ */
@javax.annotation.Nullable
public List getWebhookIds() {
return webhookIds;
@@ -143,10 +142,10 @@ public CheckBuilder applicantId(UUID applicantId) {
return this;
}
- /**
+ /**
* The ID of the applicant to do the check on.
* @return applicantId
- **/
+ */
@javax.annotation.Nonnull
public UUID getApplicantId() {
return applicantId;
@@ -162,10 +161,10 @@ public CheckBuilder applicantProvidesData(Boolean applicantProvidesData) {
return this;
}
- /**
+ /**
* Send an applicant form to applicant to complete to proceed with check. Defaults to false.
* @return applicantProvidesData
- **/
+ */
@javax.annotation.Nullable
public Boolean getApplicantProvidesData() {
return applicantProvidesData;
@@ -189,10 +188,10 @@ public CheckBuilder addTagsItem(String tagsItem) {
return this;
}
- /**
+ /**
* Array of tags being assigned to this check.
* @return tags
- **/
+ */
@javax.annotation.Nullable
public List getTags() {
return tags;
@@ -208,10 +207,10 @@ public CheckBuilder redirectUri(String redirectUri) {
return this;
}
- /**
+ /**
* For checks where `applicant_provides_data` is `true`, redirect to this URI when the applicant has submitted their data.
* @return redirectUri
- **/
+ */
@javax.annotation.Nullable
public String getRedirectUri() {
return redirectUri;
@@ -227,10 +226,10 @@ public CheckBuilder privacyNoticesReadConsentGiven(Boolean privacyNoticesReadCon
return this;
}
- /**
+ /**
* Get privacyNoticesReadConsentGiven
* @return privacyNoticesReadConsentGiven
- **/
+ */
@javax.annotation.Nullable
public Boolean getPrivacyNoticesReadConsentGiven() {
return privacyNoticesReadConsentGiven;
@@ -254,10 +253,10 @@ public CheckBuilder addReportNamesItem(ReportName reportNamesItem) {
return this;
}
- /**
+ /**
* An array of report names (strings).
* @return reportNames
- **/
+ */
@javax.annotation.Nonnull
public List getReportNames() {
return reportNames;
@@ -281,10 +280,10 @@ public CheckBuilder addDocumentIdsItem(UUID documentIdsItem) {
return this;
}
- /**
+ /**
* Optional. An array of document ids, for use with Document reports only. If omitted, the Document report will use the most recently uploaded document by default.
* @return documentIds
- **/
+ */
@javax.annotation.Nullable
public List getDocumentIds() {
return documentIds;
@@ -300,10 +299,10 @@ public CheckBuilder asynchronous(Boolean asynchronous) {
return this;
}
- /**
+ /**
* Defaults to `true`. If set to `false`, you will only receive a response when all reports in your check have completed.
* @return asynchronous
- **/
+ */
@javax.annotation.Nullable
public Boolean getAsynchronous() {
return asynchronous;
@@ -319,10 +318,10 @@ public CheckBuilder suppressFormEmails(Boolean suppressFormEmails) {
return this;
}
- /**
+ /**
* For checks where `applicant_provides_data` is `true`, applicant form will not be automatically sent if `suppress_form_emails` is set to `true`. You can manually send the form at any time after the check has been created, using the link found in the form_uri attribute of the check object. Write-only. Defaults to false.
* @return suppressFormEmails
- **/
+ */
@javax.annotation.Nullable
public Boolean getSuppressFormEmails() {
return suppressFormEmails;
@@ -338,10 +337,10 @@ public CheckBuilder subResult(String subResult) {
return this;
}
- /**
+ /**
* Triggers responses for particular sub-results for sandbox Document reports.
* @return subResult
- **/
+ */
@javax.annotation.Nullable
public String getSubResult() {
return subResult;
@@ -365,10 +364,10 @@ public CheckBuilder addConsiderItem(ReportName considerItem) {
return this;
}
- /**
+ /**
* Array of names of particular reports to return consider as their results. This is a feature available in sandbox testing
* @return consider
- **/
+ */
@javax.annotation.Nullable
public List getConsider() {
return consider;
@@ -384,10 +383,10 @@ public CheckBuilder usDrivingLicence(UsDrivingLicenceBuilder usDrivingLicence) {
return this;
}
- /**
+ /**
* Get usDrivingLicence
* @return usDrivingLicence
- **/
+ */
@javax.annotation.Nullable
public UsDrivingLicenceBuilder getUsDrivingLicence() {
return usDrivingLicence;
@@ -533,12 +532,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("report_names");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to CheckBuilder
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to CheckBuilder
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!CheckBuilder.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -662,22 +661,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of CheckBuilder given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of CheckBuilder
- * @throws IOException if the JSON string is invalid with respect to CheckBuilder
- */
+ /**
+ * Create an instance of CheckBuilder given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of CheckBuilder
+ * @throws IOException if the JSON string is invalid with respect to CheckBuilder
+ */
public static CheckBuilder fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, CheckBuilder.class);
}
- /**
- * Convert an instance of CheckBuilder to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of CheckBuilder to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/CheckRequest.java b/src/main/java/com/onfido/model/CheckRequest.java
index 009f6460..d6a543a4 100644
--- a/src/main/java/com/onfido/model/CheckRequest.java
+++ b/src/main/java/com/onfido/model/CheckRequest.java
@@ -42,7 +42,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -54,7 +53,7 @@
/**
* CheckRequest
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class CheckRequest {
public static final String SERIALIZED_NAME_REPORT_NAMES = "report_names";
@SerializedName(SERIALIZED_NAME_REPORT_NAMES)
@@ -104,10 +103,10 @@ public CheckRequest addReportNamesItem(ReportName reportNamesItem) {
return this;
}
- /**
+ /**
* An array of report names (strings).
* @return reportNames
- **/
+ */
@javax.annotation.Nonnull
public List getReportNames() {
return reportNames;
@@ -131,10 +130,10 @@ public CheckRequest addDocumentIdsItem(UUID documentIdsItem) {
return this;
}
- /**
+ /**
* Optional. An array of document ids, for use with Document reports only. If omitted, the Document report will use the most recently uploaded document by default.
* @return documentIds
- **/
+ */
@javax.annotation.Nullable
public List getDocumentIds() {
return documentIds;
@@ -150,10 +149,10 @@ public CheckRequest applicantProvidesData(Boolean applicantProvidesData) {
return this;
}
- /**
+ /**
* Send an applicant form to applicant to complete to proceed with check. Defaults to false.
* @return applicantProvidesData
- **/
+ */
@javax.annotation.Nullable
public Boolean getApplicantProvidesData() {
return applicantProvidesData;
@@ -169,10 +168,10 @@ public CheckRequest asynchronous(Boolean asynchronous) {
return this;
}
- /**
+ /**
* Defaults to `true`. If set to `false`, you will only receive a response when all reports in your check have completed.
* @return asynchronous
- **/
+ */
@javax.annotation.Nullable
public Boolean getAsynchronous() {
return asynchronous;
@@ -188,10 +187,10 @@ public CheckRequest suppressFormEmails(Boolean suppressFormEmails) {
return this;
}
- /**
+ /**
* For checks where `applicant_provides_data` is `true`, applicant form will not be automatically sent if `suppress_form_emails` is set to `true`. You can manually send the form at any time after the check has been created, using the link found in the form_uri attribute of the check object. Write-only. Defaults to false.
* @return suppressFormEmails
- **/
+ */
@javax.annotation.Nullable
public Boolean getSuppressFormEmails() {
return suppressFormEmails;
@@ -207,10 +206,10 @@ public CheckRequest subResult(String subResult) {
return this;
}
- /**
+ /**
* Triggers responses for particular sub-results for sandbox Document reports.
* @return subResult
- **/
+ */
@javax.annotation.Nullable
public String getSubResult() {
return subResult;
@@ -234,10 +233,10 @@ public CheckRequest addConsiderItem(ReportName considerItem) {
return this;
}
- /**
+ /**
* Array of names of particular reports to return consider as their results. This is a feature available in sandbox testing
* @return consider
- **/
+ */
@javax.annotation.Nullable
public List getConsider() {
return consider;
@@ -253,10 +252,10 @@ public CheckRequest usDrivingLicence(UsDrivingLicenceBuilder usDrivingLicence) {
return this;
}
- /**
+ /**
* Get usDrivingLicence
* @return usDrivingLicence
- **/
+ */
@javax.annotation.Nullable
public UsDrivingLicenceBuilder getUsDrivingLicence() {
return usDrivingLicence;
@@ -386,12 +385,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("report_names");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to CheckRequest
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to CheckRequest
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!CheckRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -501,22 +500,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of CheckRequest given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of CheckRequest
- * @throws IOException if the JSON string is invalid with respect to CheckRequest
- */
+ /**
+ * Create an instance of CheckRequest given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of CheckRequest
+ * @throws IOException if the JSON string is invalid with respect to CheckRequest
+ */
public static CheckRequest fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, CheckRequest.class);
}
- /**
- * Convert an instance of CheckRequest to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of CheckRequest to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/CheckResponse.java b/src/main/java/com/onfido/model/CheckResponse.java
index 67ffc659..ffc18c2b 100644
--- a/src/main/java/com/onfido/model/CheckResponse.java
+++ b/src/main/java/com/onfido/model/CheckResponse.java
@@ -42,7 +42,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -54,7 +53,7 @@
/**
* CheckResponse
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class CheckResponse {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
@@ -162,10 +161,10 @@ public CheckResponse id(UUID id) {
return this;
}
- /**
+ /**
* The unique identifier for the check.
* @return id
- **/
+ */
@javax.annotation.Nonnull
public UUID getId() {
return id;
@@ -181,10 +180,10 @@ public CheckResponse createdAt(OffsetDateTime createdAt) {
return this;
}
- /**
+ /**
* The date and time when this check was created.
* @return createdAt
- **/
+ */
@javax.annotation.Nullable
public OffsetDateTime getCreatedAt() {
return createdAt;
@@ -200,10 +199,10 @@ public CheckResponse href(String href) {
return this;
}
- /**
+ /**
* The uri of this resource.
* @return href
- **/
+ */
@javax.annotation.Nullable
public String getHref() {
return href;
@@ -219,10 +218,10 @@ public CheckResponse status(CheckStatus status) {
return this;
}
- /**
+ /**
* Get status
* @return status
- **/
+ */
@javax.annotation.Nullable
public CheckStatus getStatus() {
return status;
@@ -238,10 +237,10 @@ public CheckResponse result(ResultEnum result) {
return this;
}
- /**
+ /**
* The overall result of the check, based on the results of the constituent reports.
* @return result
- **/
+ */
@javax.annotation.Nullable
public ResultEnum getResult() {
return result;
@@ -257,10 +256,10 @@ public CheckResponse formUri(String formUri) {
return this;
}
- /**
+ /**
* A link to the applicant form, if `applicant_provides_data` is `true`.
* @return formUri
- **/
+ */
@javax.annotation.Nullable
public String getFormUri() {
return formUri;
@@ -276,10 +275,10 @@ public CheckResponse resultsUri(String resultsUri) {
return this;
}
- /**
+ /**
* A link to the corresponding results page on the Onfido dashboard.
* @return resultsUri
- **/
+ */
@javax.annotation.Nullable
public String getResultsUri() {
return resultsUri;
@@ -303,10 +302,10 @@ public CheckResponse addReportIdsItem(UUID reportIdsItem) {
return this;
}
- /**
+ /**
* An array of report ids.
* @return reportIds
- **/
+ */
@javax.annotation.Nullable
public List getReportIds() {
return reportIds;
@@ -322,10 +321,10 @@ public CheckResponse sandbox(Boolean sandbox) {
return this;
}
- /**
+ /**
* Indicates whether the object was created in the sandbox or not.
* @return sandbox
- **/
+ */
@javax.annotation.Nullable
public Boolean getSandbox() {
return sandbox;
@@ -341,10 +340,10 @@ public CheckResponse paused(Boolean paused) {
return this;
}
- /**
+ /**
* Get paused
* @return paused
- **/
+ */
@javax.annotation.Nullable
public Boolean getPaused() {
return paused;
@@ -360,10 +359,10 @@ public CheckResponse version(String version) {
return this;
}
- /**
+ /**
* Get version
* @return version
- **/
+ */
@javax.annotation.Nullable
public String getVersion() {
return version;
@@ -502,12 +501,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("id");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to CheckResponse
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to CheckResponse
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!CheckResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -629,22 +628,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of CheckResponse given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of CheckResponse
- * @throws IOException if the JSON string is invalid with respect to CheckResponse
- */
+ /**
+ * Create an instance of CheckResponse given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of CheckResponse
+ * @throws IOException if the JSON string is invalid with respect to CheckResponse
+ */
public static CheckResponse fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, CheckResponse.class);
}
- /**
- * Convert an instance of CheckResponse to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of CheckResponse to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/CheckShared.java b/src/main/java/com/onfido/model/CheckShared.java
index de29f61a..51a72d5e 100644
--- a/src/main/java/com/onfido/model/CheckShared.java
+++ b/src/main/java/com/onfido/model/CheckShared.java
@@ -40,7 +40,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -52,7 +51,7 @@
/**
* CheckShared
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class CheckShared {
public static final String SERIALIZED_NAME_WEBHOOK_IDS = "webhook_ids";
@SerializedName(SERIALIZED_NAME_WEBHOOK_IDS)
@@ -94,10 +93,10 @@ public CheckShared addWebhookIdsItem(String webhookIdsItem) {
return this;
}
- /**
+ /**
* An array of webhook ids describing which webhooks to trigger for this check.
* @return webhookIds
- **/
+ */
@javax.annotation.Nullable
public List getWebhookIds() {
return webhookIds;
@@ -113,10 +112,10 @@ public CheckShared applicantId(UUID applicantId) {
return this;
}
- /**
+ /**
* The ID of the applicant to do the check on.
* @return applicantId
- **/
+ */
@javax.annotation.Nonnull
public UUID getApplicantId() {
return applicantId;
@@ -132,10 +131,10 @@ public CheckShared applicantProvidesData(Boolean applicantProvidesData) {
return this;
}
- /**
+ /**
* Send an applicant form to applicant to complete to proceed with check. Defaults to false.
* @return applicantProvidesData
- **/
+ */
@javax.annotation.Nullable
public Boolean getApplicantProvidesData() {
return applicantProvidesData;
@@ -159,10 +158,10 @@ public CheckShared addTagsItem(String tagsItem) {
return this;
}
- /**
+ /**
* Array of tags being assigned to this check.
* @return tags
- **/
+ */
@javax.annotation.Nullable
public List getTags() {
return tags;
@@ -178,10 +177,10 @@ public CheckShared redirectUri(String redirectUri) {
return this;
}
- /**
+ /**
* For checks where `applicant_provides_data` is `true`, redirect to this URI when the applicant has submitted their data.
* @return redirectUri
- **/
+ */
@javax.annotation.Nullable
public String getRedirectUri() {
return redirectUri;
@@ -197,10 +196,10 @@ public CheckShared privacyNoticesReadConsentGiven(Boolean privacyNoticesReadCons
return this;
}
- /**
+ /**
* Get privacyNoticesReadConsentGiven
* @return privacyNoticesReadConsentGiven
- **/
+ */
@javax.annotation.Nullable
public Boolean getPrivacyNoticesReadConsentGiven() {
return privacyNoticesReadConsentGiven;
@@ -324,12 +323,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("applicant_id");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to CheckShared
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to CheckShared
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!CheckShared.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -432,22 +431,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of CheckShared given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of CheckShared
- * @throws IOException if the JSON string is invalid with respect to CheckShared
- */
+ /**
+ * Create an instance of CheckShared given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of CheckShared
+ * @throws IOException if the JSON string is invalid with respect to CheckShared
+ */
public static CheckShared fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, CheckShared.class);
}
- /**
- * Convert an instance of CheckShared to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of CheckShared to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/ChecksList.java b/src/main/java/com/onfido/model/ChecksList.java
index 448e2ab2..5fc164f6 100644
--- a/src/main/java/com/onfido/model/ChecksList.java
+++ b/src/main/java/com/onfido/model/ChecksList.java
@@ -40,7 +40,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -52,7 +51,7 @@
/**
* ChecksList
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ChecksList {
public static final String SERIALIZED_NAME_CHECKS = "checks";
@SerializedName(SERIALIZED_NAME_CHECKS)
@@ -74,10 +73,10 @@ public ChecksList addChecksItem(Check checksItem) {
return this;
}
- /**
+ /**
* Get checks
* @return checks
- **/
+ */
@javax.annotation.Nonnull
public List getChecks() {
return checks;
@@ -186,12 +185,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("checks");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to ChecksList
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to ChecksList
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!ChecksList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -290,22 +289,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of ChecksList given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of ChecksList
- * @throws IOException if the JSON string is invalid with respect to ChecksList
- */
+ /**
+ * Create an instance of ChecksList given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of ChecksList
+ * @throws IOException if the JSON string is invalid with respect to ChecksList
+ */
public static ChecksList fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, ChecksList.class);
}
- /**
- * Convert an instance of ChecksList to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of ChecksList to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/CompleteTaskBuilder.java b/src/main/java/com/onfido/model/CompleteTaskBuilder.java
index 0238a80a..ea53e216 100644
--- a/src/main/java/com/onfido/model/CompleteTaskBuilder.java
+++ b/src/main/java/com/onfido/model/CompleteTaskBuilder.java
@@ -38,7 +38,6 @@
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
-import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -50,7 +49,7 @@
/**
* CompleteTaskBuilder
*/
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class CompleteTaskBuilder {
public static final String SERIALIZED_NAME_DATA = "data";
@SerializedName(SERIALIZED_NAME_DATA)
@@ -64,10 +63,10 @@ public CompleteTaskBuilder data(CompleteTaskDataBuilder data) {
return this;
}
- /**
+ /**
* Get data
* @return data
- **/
+ */
@javax.annotation.Nonnull
public CompleteTaskDataBuilder getData() {
return data;
@@ -176,12 +175,12 @@ private String toIndentedString(Object o) {
openapiRequiredFields.add("data");
}
- /**
- * Validates the JSON Element and throws an exception if issues found
- *
- * @param jsonElement JSON Element
- * @throws IOException if the JSON Element is invalid with respect to CompleteTaskBuilder
- */
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to CompleteTaskBuilder
+ */
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
if (jsonElement == null) {
if (!CompleteTaskBuilder.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null
@@ -272,22 +271,22 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean())
}
}
- /**
- * Create an instance of CompleteTaskBuilder given an JSON string
- *
- * @param jsonString JSON string
- * @return An instance of CompleteTaskBuilder
- * @throws IOException if the JSON string is invalid with respect to CompleteTaskBuilder
- */
+ /**
+ * Create an instance of CompleteTaskBuilder given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of CompleteTaskBuilder
+ * @throws IOException if the JSON string is invalid with respect to CompleteTaskBuilder
+ */
public static CompleteTaskBuilder fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, CompleteTaskBuilder.class);
}
- /**
- * Convert an instance of CompleteTaskBuilder to an JSON string
- *
- * @return JSON string
- */
+ /**
+ * Convert an instance of CompleteTaskBuilder to an JSON string
+ *
+ * @return JSON string
+ */
public String toJson() {
return JSON.getGson().toJson(this);
}
diff --git a/src/main/java/com/onfido/model/CompleteTaskDataBuilder.java b/src/main/java/com/onfido/model/CompleteTaskDataBuilder.java
index 7ddd2112..be9f75c3 100644
--- a/src/main/java/com/onfido/model/CompleteTaskDataBuilder.java
+++ b/src/main/java/com/onfido/model/CompleteTaskDataBuilder.java
@@ -52,7 +52,7 @@
import com.onfido.JSON;
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.6.0")
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class CompleteTaskDataBuilder extends AbstractOpenApiSchema {
private static final Logger log = Logger.getLogger(CompleteTaskDataBuilder.class.getName());
@@ -65,8 +65,8 @@ public TypeAdapter create(Gson gson, TypeToken type) {
}
final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
- final Type typeInstance = new TypeToken>(){}.getType();
- final TypeAdapter> adapterListObject = (TypeAdapter>) gson.getDelegateAdapter(this, TypeToken.get(typeInstance));
+ final Type typeInstanceListObject = new TypeToken>(){}.getType();
+ final TypeAdapter> adapterListObject = (TypeAdapter>) gson.getDelegateAdapter(this, TypeToken.get(typeInstanceListObject));
final TypeAdapter