diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index eecca03..37649d4 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -34,7 +34,7 @@ jobs:
distribution: "adopt"
- name: Install and run linter over tests
run: |
- npm install google-java-format
+ npm install google-java-format@1.4.0
npx google-java-format --set-exit-if-changed -i $(git ls-files src/test/\*.java)
- name: Cache local Maven repository
uses: actions/cache@v4
diff --git a/.release.json b/.release.json
index 44466cc..4557547 100644
--- a/.release.json
+++ b/.release.json
@@ -1,9 +1,9 @@
{
"source": {
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
- "short_sha": "c80d3b5",
- "long_sha": "c80d3b513a15bb67ec316709884b890ab2f47121",
- "version": "v5.5.0"
+ "short_sha": "30c4d08",
+ "long_sha": "30c4d08a018e09bc02d87e6c04a137c371541163",
+ "version": "v5.6.0"
},
- "release": "v6.5.0"
+ "release": "v6.6.0"
}
diff --git a/README.md b/README.md
index 69947b4..0c8ecbc 100644
--- a/README.md
+++ b/README.md
@@ -50,7 +50,7 @@ Add this dependency to your project's POM:
com.onfido
onfido-api-java
- 6.5.0
+ 6.6.0
compile
```
@@ -66,7 +66,7 @@ Add this dependency to your project's build file:
}
dependencies {
- implementation "com.onfido:onfido-api-java:6.5.0"
+ implementation "com.onfido:onfido-api-java:6.6.0"
}
```
@@ -80,10 +80,10 @@ mvn clean package
Then manually install the following JARs:
-- `target/onfido-api-java-6.5.0.jar`
+- `target/onfido-api-java-6.6.0.jar`
- `target/lib/*.jar`
-The latest version can be found at .
+The latest version can be found at .
## Getting Started
diff --git a/build.gradle b/build.gradle
index 914fb11..f958251 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'
group = 'com.onfido'
-version = '6.5.0'
+version = '6.6.0'
buildscript {
repositories {
diff --git a/build.sbt b/build.sbt
index 0d3ba39..1195943 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 := "6.5.0",
+ version := "6.6.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
diff --git a/pom.xml b/pom.xml
index 2273c21..2a12b1e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
onfido-api-java
jar
onfido-api-java
- 6.5.0
+ 6.6.0
https://documentation.onfido.com
Official Java API client library for the Onfido API
diff --git a/src/main/java/com/onfido/ApiClient.java b/src/main/java/com/onfido/ApiClient.java
index 874f291..d17c5d1 100644
--- a/src/main/java/com/onfido/ApiClient.java
+++ b/src/main/java/com/onfido/ApiClient.java
@@ -162,7 +162,7 @@ private void init() {
json = new JSON();
// Set default User-Agent.
- setUserAgent("onfido-java/6.5.0");
+ setUserAgent("onfido-java/6.6.0");
authentications = new HashMap();
}
diff --git a/src/main/java/com/onfido/Configuration.java b/src/main/java/com/onfido/Configuration.java
index e452c6f..0005de1 100644
--- a/src/main/java/com/onfido/Configuration.java
+++ b/src/main/java/com/onfido/Configuration.java
@@ -15,7 +15,7 @@
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
public class Configuration {
- public static final String VERSION = "6.5.0";
+ public static final String VERSION = "6.6.0";
private static ApiClient defaultApiClient = new ApiClient();
diff --git a/src/main/java/com/onfido/model/ExtractionDocumentClassification.java b/src/main/java/com/onfido/model/ExtractionDocumentClassification.java
index 3b0a1c0..d7478b1 100644
--- a/src/main/java/com/onfido/model/ExtractionDocumentClassification.java
+++ b/src/main/java/com/onfido/model/ExtractionDocumentClassification.java
@@ -72,12 +72,52 @@ public class ExtractionDocumentClassification {
*/
@JsonAdapter(SubtypeEnum.Adapter.class)
public enum SubtypeEnum {
+ SPE("SPE"),
+
+ ALI("ali"),
+
+ ALIEN("alien"),
+
+ COM("com"),
+
+ COMMERCIAL("commercial"),
+
+ DOM("dom"),
+
+ DOMESTIC("domestic"),
+
FULL("full"),
NOT_FULL("not_full"),
+ FULL_DRIVING_LICENCE("full driving licence"),
+
+ HEAVY_VEHICLE("heavy_vehicle"),
+
+ LEARNER("learner"),
+
+ MINOR_U21_OR_U18_("minor (u21 or u18)"),
+
+ MOT("mot"),
+
+ MUL("mul"),
+
PROVISIONAL("provisional"),
+ PROVISIONAL_DRIVING_LICENCE("provisional driving licence"),
+
+ SER("ser"),
+
+ SPE2("spe"),
+
+ SPECIAL("special"),
+
+ STANDARD("standard"),
+
+ TEM("tem"),
+
+ U21("u21"),
+
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
diff --git a/src/main/java/com/onfido/model/ProofOfAddressProperties.java b/src/main/java/com/onfido/model/ProofOfAddressProperties.java
index fa9e5a4..7ebb0b4 100644
--- a/src/main/java/com/onfido/model/ProofOfAddressProperties.java
+++ b/src/main/java/com/onfido/model/ProofOfAddressProperties.java
@@ -83,6 +83,20 @@ public enum DocumentTypeEnum {
EXCHANGE_HOUSE_STATEMENT("exchange_house_statement"),
+ ACCOMMODATION_TENANCY_CERTIFICATE("accommodation_tenancy_certificate"),
+
+ ADDRESS_CERTIFICATE("address_certificate"),
+
+ ELECTRICITY_BILL("electricity_bill"),
+
+ GAS_BILL("gas_bill"),
+
+ INTERNET_BILL("internet_bill"),
+
+ PHONE_BILL("phone_bill"),
+
+ WATER_BILL("water_bill"),
+
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
diff --git a/src/main/java/com/onfido/model/WebhookEventPayloadResource.java b/src/main/java/com/onfido/model/WebhookEventPayloadResource.java
index 95b997b..e8e0128 100644
--- a/src/main/java/com/onfido/model/WebhookEventPayloadResource.java
+++ b/src/main/java/com/onfido/model/WebhookEventPayloadResource.java
@@ -137,6 +137,11 @@ public class WebhookEventPayloadResource {
@javax.annotation.Nullable
private String customerUserId;
+ public static final String SERIALIZED_NAME_TIMELINE_FILE_DOWNLOAD_URL = "timeline_file_download_url";
+ @SerializedName(SERIALIZED_NAME_TIMELINE_FILE_DOWNLOAD_URL)
+ @javax.annotation.Nullable
+ private String timelineFileDownloadUrl;
+
public WebhookEventPayloadResource() {
}
@@ -451,6 +456,25 @@ public void setCustomerUserId(@javax.annotation.Nullable String customerUserId)
this.customerUserId = customerUserId;
}
+
+ public WebhookEventPayloadResource timelineFileDownloadUrl(@javax.annotation.Nullable String timelineFileDownloadUrl) {
+ this.timelineFileDownloadUrl = timelineFileDownloadUrl;
+ return this;
+ }
+
+ /**
+ * Pre-signed URL to download the timeline file for the Workflow Run.
+ * @return timelineFileDownloadUrl
+ */
+ @javax.annotation.Nullable
+ public String getTimelineFileDownloadUrl() {
+ return timelineFileDownloadUrl;
+ }
+
+ public void setTimelineFileDownloadUrl(@javax.annotation.Nullable String timelineFileDownloadUrl) {
+ this.timelineFileDownloadUrl = timelineFileDownloadUrl;
+ }
+
/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
@@ -521,7 +545,8 @@ public boolean equals(Object o) {
Objects.equals(this.reasons, webhookEventPayloadResource.reasons) &&
Objects.equals(this.link, webhookEventPayloadResource.link) &&
Objects.equals(this.error, webhookEventPayloadResource.error) &&
- Objects.equals(this.customerUserId, webhookEventPayloadResource.customerUserId)&&
+ Objects.equals(this.customerUserId, webhookEventPayloadResource.customerUserId) &&
+ Objects.equals(this.timelineFileDownloadUrl, webhookEventPayloadResource.timelineFileDownloadUrl)&&
Objects.equals(this.additionalProperties, webhookEventPayloadResource.additionalProperties);
}
@@ -531,7 +556,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b)
@Override
public int hashCode() {
- return Objects.hash(id, applicantId, createdAt, updatedAt, dashboardUrl, workflowId, workflowRunId, workflowVersionId, taskDefId, taskDefVersion, input, output, reasons, link, error, customerUserId, additionalProperties);
+ return Objects.hash(id, applicantId, createdAt, updatedAt, dashboardUrl, workflowId, workflowRunId, workflowVersionId, taskDefId, taskDefVersion, input, output, reasons, link, error, customerUserId, timelineFileDownloadUrl, additionalProperties);
}
private static int hashCodeNullable(JsonNullable a) {
@@ -561,6 +586,7 @@ public String toString() {
sb.append(" link: ").append(toIndentedString(link)).append("\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append(" customerUserId: ").append(toIndentedString(customerUserId)).append("\n");
+ sb.append(" timelineFileDownloadUrl: ").append(toIndentedString(timelineFileDownloadUrl)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -600,6 +626,7 @@ private String toIndentedString(Object o) {
openapiFields.add("link");
openapiFields.add("error");
openapiFields.add("customer_user_id");
+ openapiFields.add("timeline_file_download_url");
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet();
@@ -654,6 +681,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if ((jsonObj.get("customer_user_id") != null && !jsonObj.get("customer_user_id").isJsonNull()) && !jsonObj.get("customer_user_id").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `customer_user_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customer_user_id").toString()));
}
+ if ((jsonObj.get("timeline_file_download_url") != null && !jsonObj.get("timeline_file_download_url").isJsonNull()) && !jsonObj.get("timeline_file_download_url").isJsonPrimitive()) {
+ throw new IllegalArgumentException(String.format("Expected the field `timeline_file_download_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timeline_file_download_url").toString()));
+ }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {