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
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": "83ae3ce",
"long_sha": "83ae3cea0eb3901c02aa3af203856e1d55d84d87",
"version": "v5.3.0"
"short_sha": "22e3bd3",
"long_sha": "22e3bd3bc410d379ded0cdd592f71059fc0aee1d",
"version": "v5.4.0"
},
"release": "v6.3.0"
"release": "v6.4.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.3.0</version>
<version>6.4.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.3.0"
implementation "com.onfido:onfido-api-java:6.4.0"
}
```

Expand All @@ -80,10 +80,10 @@ mvn clean package

Then manually install the following JARs:

- `target/onfido-api-java-6.3.0.jar`
- `target/onfido-api-java-6.4.0.jar`
- `target/lib/*.jar`

The latest version can be found at <https://search.maven.org/artifact/com.onfido/onfido-api-java/6.3.0/jar>.
The latest version can be found at <https://search.maven.org/artifact/com.onfido/onfido-api-java/6.4.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.3.0'
version = '6.4.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.3.0",
version := "6.4.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
4 changes: 2 additions & 2 deletions 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.3.0</version>
<version>6.4.0</version>
<url>https://documentation.onfido.com</url>
<description>Official Java API client library for the Onfido API</description>
<scm>
Expand Down Expand Up @@ -338,7 +338,7 @@
<gson-fire-version>1.9.0</gson-fire-version>
<okhttp-version>4.12.0</okhttp-version>
<gson-version>2.10.1</gson-version>
<commons-lang3-version>3.18.0</commons-lang3-version>
<commons-lang3-version>3.17.0</commons-lang3-version>
<jackson-databind-nullable-version>0.2.6</jackson-databind-nullable-version>
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
<beanvalidation-version>2.0.2</beanvalidation-version>
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.3.0");
setUserAgent("onfido-java/6.4.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.3.0";
public static final String VERSION = "6.4.0";

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
152 changes: 152 additions & 0 deletions src/main/java/com/onfido/api/DefaultApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -1565,6 +1565,158 @@ public okhttp3.Call deleteWebhookAsync(UUID webhookId, final ApiCallback<Void> _
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for downloadAesDocument
* @param workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required)
* @param id The unique identifier of the file which you want to retrieve. (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
<table border="1">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 302 </td><td> Found </td><td> * Location - Link to the Timeline File. <br> </td></tr>
<tr><td> 200 </td><td> The signed document PDF binary data. </td><td> - </td></tr>
<tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
</table>
*/
public okhttp3.Call downloadAesDocumentCall(UUID workflowRunId, UUID id, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };

// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}

Object localVarPostBody = null;

// create path and map variables
String localVarPath = "/advanced_electronic_signature/documents";

List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();

if (workflowRunId != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("workflow_run_id", workflowRunId));
}

if (id != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id));
}

final String[] localVarAccepts = {
"application/pdf",
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}

final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}

String[] localVarAuthNames = new String[] { "Token" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}

@SuppressWarnings("rawtypes")
private okhttp3.Call downloadAesDocumentValidateBeforeCall(UUID workflowRunId, UUID id, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'workflowRunId' is set
if (workflowRunId == null) {
throw new ApiException("Missing the required parameter 'workflowRunId' when calling downloadAesDocument(Async)");
}

// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling downloadAesDocument(Async)");
}

return downloadAesDocumentCall(workflowRunId, id, _callback);

}

/**
* Retrieves the signed document or signing transaction receipt
* Retrieves the signed document or signing transaction receipt depending on the id provided.
* @param workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required)
* @param id The unique identifier of the file which you want to retrieve. (required)
* @return FileTransfer
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
<table border="1">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 302 </td><td> Found </td><td> * Location - Link to the Timeline File. <br> </td></tr>
<tr><td> 200 </td><td> The signed document PDF binary data. </td><td> - </td></tr>
<tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
</table>
*/
public FileTransfer downloadAesDocument(UUID workflowRunId, UUID id) throws ApiException {
ApiResponse<FileTransfer> localVarResp = downloadAesDocumentWithHttpInfo(workflowRunId, id);
return localVarResp.getData();
}

/**
* Retrieves the signed document or signing transaction receipt
* Retrieves the signed document or signing transaction receipt depending on the id provided.
* @param workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required)
* @param id The unique identifier of the file which you want to retrieve. (required)
* @return ApiResponse&lt;FileTransfer&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
<table border="1">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 302 </td><td> Found </td><td> * Location - Link to the Timeline File. <br> </td></tr>
<tr><td> 200 </td><td> The signed document PDF binary data. </td><td> - </td></tr>
<tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
</table>
*/
public ApiResponse<FileTransfer> downloadAesDocumentWithHttpInfo(UUID workflowRunId, UUID id) throws ApiException {
okhttp3.Call localVarCall = downloadAesDocumentValidateBeforeCall(workflowRunId, id, null);
Type localVarReturnType = new TypeToken<FileTransfer>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}

/**
* Retrieves the signed document or signing transaction receipt (asynchronously)
* Retrieves the signed document or signing transaction receipt depending on the id provided.
* @param workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required)
* @param id The unique identifier of the file which you want to retrieve. (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
<table border="1">
<caption>Response Details</caption>
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 302 </td><td> Found </td><td> * Location - Link to the Timeline File. <br> </td></tr>
<tr><td> 200 </td><td> The signed document PDF binary data. </td><td> - </td></tr>
<tr><td> 0 </td><td> Unexpected error </td><td> - </td></tr>
</table>
*/
public okhttp3.Call downloadAesDocumentAsync(UUID workflowRunId, UUID id, final ApiCallback<FileTransfer> _callback) throws ApiException {

okhttp3.Call localVarCall = downloadAesDocumentValidateBeforeCall(workflowRunId, id, _callback);
Type localVarReturnType = new TypeToken<FileTransfer>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for downloadCheck
* @param checkId (required)
Expand Down