diff --git a/.release.json b/.release.json index 692e01e..b604406 100644 --- a/.release.json +++ b/.release.json @@ -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" } diff --git a/README.md b/README.md index a569e51..f2e6cbd 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.3.0 + 6.4.0 compile ``` @@ -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" } ``` @@ -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 . +The latest version can be found at . ## Getting Started diff --git a/build.gradle b/build.gradle index 3707aed..eab47e6 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { diff --git a/build.sbt b/build.sbt index 7a97696..5b42480 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.3.0", + version := "6.4.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/pom.xml b/pom.xml index 632fffb..5b2dbf4 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ onfido-api-java jar onfido-api-java - 6.3.0 + 6.4.0 https://documentation.onfido.com Official Java API client library for the Onfido API @@ -338,7 +338,7 @@ 1.9.0 4.12.0 2.10.1 - 3.18.0 + 3.17.0 0.2.6 1.3.5 2.0.2 diff --git a/src/main/java/com/onfido/ApiClient.java b/src/main/java/com/onfido/ApiClient.java index 9371a19..9ff16f7 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.3.0"); + setUserAgent("onfido-java/6.4.0"); authentications = new HashMap(); } diff --git a/src/main/java/com/onfido/Configuration.java b/src/main/java/com/onfido/Configuration.java index ed17c57..3170de0 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.3.0"; + public static final String VERSION = "6.4.0"; private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/com/onfido/api/DefaultApi.java b/src/main/java/com/onfido/api/DefaultApi.java index 9873fe8..6ba0aa8 100644 --- a/src/main/java/com/onfido/api/DefaultApi.java +++ b/src/main/java/com/onfido/api/DefaultApi.java @@ -1565,6 +1565,158 @@ public okhttp3.Call deleteWebhookAsync(UUID webhookId, final ApiCallback _ 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 + + + + + + +
Response Details
Status Code Description Response Headers
302 Found * Location - Link to the Timeline File.
200 The signed document PDF binary data. -
0 Unexpected error -
+ */ + 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 localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + 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 + + + + + + +
Response Details
Status Code Description Response Headers
302 Found * Location - Link to the Timeline File.
200 The signed document PDF binary data. -
0 Unexpected error -
+ */ + public FileTransfer downloadAesDocument(UUID workflowRunId, UUID id) throws ApiException { + ApiResponse 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<FileTransfer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
302 Found * Location - Link to the Timeline File.
200 The signed document PDF binary data. -
0 Unexpected error -
+ */ + public ApiResponse downloadAesDocumentWithHttpInfo(UUID workflowRunId, UUID id) throws ApiException { + okhttp3.Call localVarCall = downloadAesDocumentValidateBeforeCall(workflowRunId, id, null); + Type localVarReturnType = new TypeToken(){}.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 + + + + + + +
Response Details
Status Code Description Response Headers
302 Found * Location - Link to the Timeline File.
200 The signed document PDF binary data. -
0 Unexpected error -
+ */ + public okhttp3.Call downloadAesDocumentAsync(UUID workflowRunId, UUID id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = downloadAesDocumentValidateBeforeCall(workflowRunId, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for downloadCheck * @param checkId (required)