Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .release.json
Original file line number Diff line number Diff line change
@@ -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"
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.onfido</groupId>
<artifactId>onfido-api-java</artifactId>
<version>6.5.0</version>
<version>6.6.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -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"
}
```

Expand All @@ -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 <https://search.maven.org/artifact/com.onfido/onfido-api-java/6.5.0/jar>.
The latest version can be found at <https://search.maven.org/artifact/com.onfido/onfido-api-java/6.6.0/jar>.

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>onfido-api-java</artifactId>
<packaging>jar</packaging>
<name>onfido-api-java</name>
<version>6.5.0</version>
<version>6.6.0</version>
<url>https://documentation.onfido.com</url>
<description>Official Java API client library for the Onfido API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/onfido/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/onfido/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
14 changes: 14 additions & 0 deletions src/main/java/com/onfido/model/ProofOfAddressProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
34 changes: 32 additions & 2 deletions src/main/java/com/onfido/model/WebhookEventPayloadResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
}

Expand All @@ -531,7 +556,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> 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 <T> int hashCodeNullable(JsonNullable<T> a) {
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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<String>();
Expand Down Expand Up @@ -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 {
Expand Down
Loading