All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.onfido.api.DefaultApi Maven / Gradle / Ivy

/*
 * 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.api;

import com.onfido.ApiCallback;
import com.onfido.ApiClient;
import com.onfido.ApiException;
import com.onfido.ApiResponse;
import com.onfido.Configuration;
import com.onfido.Pair;
import com.onfido.ProgressRequestBody;
import com.onfido.ProgressResponseBody;
import com.onfido.FileTransfer;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import com.onfido.model.AddressesList;
import com.onfido.model.Applicant;
import com.onfido.model.ApplicantBuilder;
import com.onfido.model.ApplicantUpdater;
import com.onfido.model.ApplicantsList;
import com.onfido.model.Check;
import com.onfido.model.CheckBuilder;
import com.onfido.model.ChecksList;
import com.onfido.model.CompleteTaskBuilder;
import com.onfido.model.CountryCodes;
import com.onfido.model.Document;
import com.onfido.model.DocumentsList;
import com.onfido.model.Error;
import com.onfido.model.Error1;
import com.onfido.model.ExtractRequest;
import com.onfido.model.Extraction;
import java.io.File;
import com.onfido.model.IdPhoto;
import com.onfido.model.IdPhotosList;
import com.onfido.model.LivePhoto;
import com.onfido.model.LivePhotosList;
import com.onfido.model.LiveVideo;
import com.onfido.model.LiveVideosList;
import com.onfido.model.LocationBuilder;
import com.onfido.model.MotionCapture;
import com.onfido.model.MotionCapturesList;
import java.time.OffsetDateTime;
import com.onfido.model.RepeatAttemptsList;
import com.onfido.model.Report;
import com.onfido.model.ReportsList;
import com.onfido.model.ResultsFeedback;
import com.onfido.model.SdkToken;
import com.onfido.model.SdkTokenBuilder;
import com.onfido.model.Task;
import com.onfido.model.TaskItem;
import com.onfido.model.TimelineFileReference;
import java.net.URI;
import java.util.UUID;
import com.onfido.model.WatchlistMonitor;
import com.onfido.model.WatchlistMonitorBuilder;
import com.onfido.model.WatchlistMonitorMatchesList;
import com.onfido.model.WatchlistMonitorMatchesUpdater;
import com.onfido.model.WatchlistMonitorsList;
import com.onfido.model.Webhook;
import com.onfido.model.WebhookBuilder;
import com.onfido.model.WebhookResend;
import com.onfido.model.WebhookUpdater;
import com.onfido.model.WebhooksList;
import com.onfido.model.WorkflowRun;
import com.onfido.model.WorkflowRunBuilder;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DefaultApi {
    private ApiClient localVarApiClient;
    private int localHostIndex;
    private String localCustomBaseUrl;

    public DefaultApi() {
        this(Configuration.getDefaultApiClient());
    }

    public DefaultApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public int getHostIndex() {
        return localHostIndex;
    }

    public void setHostIndex(int hostIndex) {
        this.localHostIndex = hostIndex;
    }

    public String getCustomBaseUrl() {
        return localCustomBaseUrl;
    }

    public void setCustomBaseUrl(String customBaseUrl) {
        this.localCustomBaseUrl = customBaseUrl;
    }

    /**
     * Build call for cancelReport
     * @param reportId  (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
     
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public okhttp3.Call cancelReportCall(UUID reportId, 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 = "/reports/{report_id}/cancel" .replace("{" + "report_id" + "}", localVarApiClient.escapeString(reportId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call cancelReportValidateBeforeCall(UUID reportId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'reportId' is set if (reportId == null) { throw new ApiException("Missing the required parameter 'reportId' when calling cancelReport(Async)"); } return cancelReportCall(reportId, _callback); } /** * Cancel report * Cancels single paused reports. * @param reportId (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public void cancelReport(UUID reportId) throws ApiException { cancelReportWithHttpInfo(reportId); } /** * Cancel report * Cancels single paused reports. * @param reportId (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public ApiResponse cancelReportWithHttpInfo(UUID reportId) throws ApiException { okhttp3.Call localVarCall = cancelReportValidateBeforeCall(reportId, null); return localVarApiClient.execute(localVarCall); } /** * Cancel report (asynchronously) * Cancels single paused reports. * @param reportId (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
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public okhttp3.Call cancelReportAsync(UUID reportId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = cancelReportValidateBeforeCall(reportId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for completeTask * @param workflowRunId The unique identifier of the Workflow Run to which the Task belongs. (required) * @param taskId The identifier of the Task you want to complete. (required) * @param completeTaskBuilder (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
Status Code Description Response Headers
200 An empty response body. -
0 Unexpected error -
*/ public okhttp3.Call completeTaskCall(UUID workflowRunId, String taskId, CompleteTaskBuilder completeTaskBuilder, 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 = completeTaskBuilder; // create path and map variables String localVarPath = "/workflow_runs/{workflow_run_id}/tasks/{task_id}/complete" .replace("{" + "workflow_run_id" + "}", localVarApiClient.escapeString(workflowRunId.toString())) .replace("{" + "task_id" + "}", localVarApiClient.escapeString(taskId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call completeTaskValidateBeforeCall(UUID workflowRunId, String taskId, CompleteTaskBuilder completeTaskBuilder, 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 completeTask(Async)"); } // verify the required parameter 'taskId' is set if (taskId == null) { throw new ApiException("Missing the required parameter 'taskId' when calling completeTask(Async)"); } // verify the required parameter 'completeTaskBuilder' is set if (completeTaskBuilder == null) { throw new ApiException("Missing the required parameter 'completeTaskBuilder' when calling completeTask(Async)"); } return completeTaskCall(workflowRunId, taskId, completeTaskBuilder, _callback); } /** * Complete Task * Completes a Send / Receive Data Task. * @param workflowRunId The unique identifier of the Workflow Run to which the Task belongs. (required) * @param taskId The identifier of the Task you want to complete. (required) * @param completeTaskBuilder (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An empty response body. -
0 Unexpected error -
*/ public void completeTask(UUID workflowRunId, String taskId, CompleteTaskBuilder completeTaskBuilder) throws ApiException { completeTaskWithHttpInfo(workflowRunId, taskId, completeTaskBuilder); } /** * Complete Task * Completes a Send / Receive Data Task. * @param workflowRunId The unique identifier of the Workflow Run to which the Task belongs. (required) * @param taskId The identifier of the Task you want to complete. (required) * @param completeTaskBuilder (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An empty response body. -
0 Unexpected error -
*/ public ApiResponse completeTaskWithHttpInfo(UUID workflowRunId, String taskId, CompleteTaskBuilder completeTaskBuilder) throws ApiException { okhttp3.Call localVarCall = completeTaskValidateBeforeCall(workflowRunId, taskId, completeTaskBuilder, null); return localVarApiClient.execute(localVarCall); } /** * Complete Task (asynchronously) * Completes a Send / Receive Data Task. * @param workflowRunId The unique identifier of the Workflow Run to which the Task belongs. (required) * @param taskId The identifier of the Task you want to complete. (required) * @param completeTaskBuilder (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
Status Code Description Response Headers
200 An empty response body. -
0 Unexpected error -
*/ public okhttp3.Call completeTaskAsync(UUID workflowRunId, String taskId, CompleteTaskBuilder completeTaskBuilder, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = completeTaskValidateBeforeCall(workflowRunId, taskId, completeTaskBuilder, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for createApplicant * @param applicantBuilder (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
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public okhttp3.Call createApplicantCall(ApplicantBuilder applicantBuilder, 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 = applicantBuilder; // create path and map variables String localVarPath = "/applicants"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createApplicantValidateBeforeCall(ApplicantBuilder applicantBuilder, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicantBuilder' is set if (applicantBuilder == null) { throw new ApiException("Missing the required parameter 'applicantBuilder' when calling createApplicant(Async)"); } return createApplicantCall(applicantBuilder, _callback); } /** * Create Applicant * Creates a single applicant. Returns an applicant object. * @param applicantBuilder (required) * @return Applicant * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public Applicant createApplicant(ApplicantBuilder applicantBuilder) throws ApiException { ApiResponse localVarResp = createApplicantWithHttpInfo(applicantBuilder); return localVarResp.getData(); } /** * Create Applicant * Creates a single applicant. Returns an applicant object. * @param applicantBuilder (required) * @return ApiResponse<Applicant> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public ApiResponse createApplicantWithHttpInfo(ApplicantBuilder applicantBuilder) throws ApiException { okhttp3.Call localVarCall = createApplicantValidateBeforeCall(applicantBuilder, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create Applicant (asynchronously) * Creates a single applicant. Returns an applicant object. * @param applicantBuilder (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
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public okhttp3.Call createApplicantAsync(ApplicantBuilder applicantBuilder, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createApplicantValidateBeforeCall(applicantBuilder, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createCheck * @param checkBuilder (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
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public okhttp3.Call createCheckCall(CheckBuilder checkBuilder, 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 = checkBuilder; // create path and map variables String localVarPath = "/checks"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createCheckValidateBeforeCall(CheckBuilder checkBuilder, final ApiCallback _callback) throws ApiException { // verify the required parameter 'checkBuilder' is set if (checkBuilder == null) { throw new ApiException("Missing the required parameter 'checkBuilder' when calling createCheck(Async)"); } return createCheckCall(checkBuilder, _callback); } /** * Create a check * Initiates a check for an applicant, which can contain one or more reports. Returns a check object. * @param checkBuilder (required) * @return Check * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public Check createCheck(CheckBuilder checkBuilder) throws ApiException { ApiResponse localVarResp = createCheckWithHttpInfo(checkBuilder); return localVarResp.getData(); } /** * Create a check * Initiates a check for an applicant, which can contain one or more reports. Returns a check object. * @param checkBuilder (required) * @return ApiResponse<Check> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public ApiResponse createCheckWithHttpInfo(CheckBuilder checkBuilder) throws ApiException { okhttp3.Call localVarCall = createCheckValidateBeforeCall(checkBuilder, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create a check (asynchronously) * Initiates a check for an applicant, which can contain one or more reports. Returns a check object. * @param checkBuilder (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
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public okhttp3.Call createCheckAsync(CheckBuilder checkBuilder, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCheckValidateBeforeCall(checkBuilder, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createTimelineFile * @param workflowRunId The unique identifier of the Workflow Run. (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
Status Code Description Response Headers
202 A Timeline File reference. -
0 Unexpected error -
*/ public okhttp3.Call createTimelineFileCall(UUID workflowRunId, 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 = "/workflow_runs/{workflow_run_id}/timeline_file" .replace("{" + "workflow_run_id" + "}", localVarApiClient.escapeString(workflowRunId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createTimelineFileValidateBeforeCall(UUID workflowRunId, 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 createTimelineFile(Async)"); } return createTimelineFileCall(workflowRunId, _callback); } /** * Create Timeline File for Workflow Run * Triggers the generation of the Timeline File for the designated Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run. (required) * @return TimelineFileReference * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
202 A Timeline File reference. -
0 Unexpected error -
*/ public TimelineFileReference createTimelineFile(UUID workflowRunId) throws ApiException { ApiResponse localVarResp = createTimelineFileWithHttpInfo(workflowRunId); return localVarResp.getData(); } /** * Create Timeline File for Workflow Run * Triggers the generation of the Timeline File for the designated Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run. (required) * @return ApiResponse<TimelineFileReference> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
202 A Timeline File reference. -
0 Unexpected error -
*/ public ApiResponse createTimelineFileWithHttpInfo(UUID workflowRunId) throws ApiException { okhttp3.Call localVarCall = createTimelineFileValidateBeforeCall(workflowRunId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create Timeline File for Workflow Run (asynchronously) * Triggers the generation of the Timeline File for the designated Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run. (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
Status Code Description Response Headers
202 A Timeline File reference. -
0 Unexpected error -
*/ public okhttp3.Call createTimelineFileAsync(UUID workflowRunId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createTimelineFileValidateBeforeCall(workflowRunId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createWatchlistMonitor * @param watchlistMonitorBuilder (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
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public okhttp3.Call createWatchlistMonitorCall(WatchlistMonitorBuilder watchlistMonitorBuilder, 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 = watchlistMonitorBuilder; // create path and map variables String localVarPath = "/watchlist_monitors"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createWatchlistMonitorValidateBeforeCall(WatchlistMonitorBuilder watchlistMonitorBuilder, final ApiCallback _callback) throws ApiException { // verify the required parameter 'watchlistMonitorBuilder' is set if (watchlistMonitorBuilder == null) { throw new ApiException("Missing the required parameter 'watchlistMonitorBuilder' when calling createWatchlistMonitor(Async)"); } return createWatchlistMonitorCall(watchlistMonitorBuilder, _callback); } /** * Create monitor * Creates a new monitor for the applicant * @param watchlistMonitorBuilder (required) * @return WatchlistMonitor * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public WatchlistMonitor createWatchlistMonitor(WatchlistMonitorBuilder watchlistMonitorBuilder) throws ApiException { ApiResponse localVarResp = createWatchlistMonitorWithHttpInfo(watchlistMonitorBuilder); return localVarResp.getData(); } /** * Create monitor * Creates a new monitor for the applicant * @param watchlistMonitorBuilder (required) * @return ApiResponse<WatchlistMonitor> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public ApiResponse createWatchlistMonitorWithHttpInfo(WatchlistMonitorBuilder watchlistMonitorBuilder) throws ApiException { okhttp3.Call localVarCall = createWatchlistMonitorValidateBeforeCall(watchlistMonitorBuilder, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create monitor (asynchronously) * Creates a new monitor for the applicant * @param watchlistMonitorBuilder (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
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public okhttp3.Call createWatchlistMonitorAsync(WatchlistMonitorBuilder watchlistMonitorBuilder, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createWatchlistMonitorValidateBeforeCall(watchlistMonitorBuilder, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createWebhook * @param webhookBuilder (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
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public okhttp3.Call createWebhookCall(WebhookBuilder webhookBuilder, 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 = webhookBuilder; // create path and map variables String localVarPath = "/webhooks"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createWebhookValidateBeforeCall(WebhookBuilder webhookBuilder, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookBuilder' is set if (webhookBuilder == null) { throw new ApiException("Missing the required parameter 'webhookBuilder' when calling createWebhook(Async)"); } return createWebhookCall(webhookBuilder, _callback); } /** * Register webhook * Registers a webhook. Returns a webhook object. * @param webhookBuilder (required) * @return Webhook * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public Webhook createWebhook(WebhookBuilder webhookBuilder) throws ApiException { ApiResponse localVarResp = createWebhookWithHttpInfo(webhookBuilder); return localVarResp.getData(); } /** * Register webhook * Registers a webhook. Returns a webhook object. * @param webhookBuilder (required) * @return ApiResponse<Webhook> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public ApiResponse createWebhookWithHttpInfo(WebhookBuilder webhookBuilder) throws ApiException { okhttp3.Call localVarCall = createWebhookValidateBeforeCall(webhookBuilder, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Register webhook (asynchronously) * Registers a webhook. Returns a webhook object. * @param webhookBuilder (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
Status Code Description Response Headers
201 Created -
0 Unexpected error -
*/ public okhttp3.Call createWebhookAsync(WebhookBuilder webhookBuilder, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createWebhookValidateBeforeCall(webhookBuilder, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createWorkflowRun * @param workflowRunBuilder (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
Status Code Description Response Headers
201 A Workflow Run object. -
0 Unexpected error -
*/ public okhttp3.Call createWorkflowRunCall(WorkflowRunBuilder workflowRunBuilder, 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 = workflowRunBuilder; // create path and map variables String localVarPath = "/workflow_runs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createWorkflowRunValidateBeforeCall(WorkflowRunBuilder workflowRunBuilder, final ApiCallback _callback) throws ApiException { // verify the required parameter 'workflowRunBuilder' is set if (workflowRunBuilder == null) { throw new ApiException("Missing the required parameter 'workflowRunBuilder' when calling createWorkflowRun(Async)"); } return createWorkflowRunCall(workflowRunBuilder, _callback); } /** * Create a Workflow Run * Creates and starts a Workflow Run. Returns a Workflow Run object. * @param workflowRunBuilder (required) * @return WorkflowRun * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 A Workflow Run object. -
0 Unexpected error -
*/ public WorkflowRun createWorkflowRun(WorkflowRunBuilder workflowRunBuilder) throws ApiException { ApiResponse localVarResp = createWorkflowRunWithHttpInfo(workflowRunBuilder); return localVarResp.getData(); } /** * Create a Workflow Run * Creates and starts a Workflow Run. Returns a Workflow Run object. * @param workflowRunBuilder (required) * @return ApiResponse<WorkflowRun> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 A Workflow Run object. -
0 Unexpected error -
*/ public ApiResponse createWorkflowRunWithHttpInfo(WorkflowRunBuilder workflowRunBuilder) throws ApiException { okhttp3.Call localVarCall = createWorkflowRunValidateBeforeCall(workflowRunBuilder, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create a Workflow Run (asynchronously) * Creates and starts a Workflow Run. Returns a Workflow Run object. * @param workflowRunBuilder (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
Status Code Description Response Headers
201 A Workflow Run object. -
0 Unexpected error -
*/ public okhttp3.Call createWorkflowRunAsync(WorkflowRunBuilder workflowRunBuilder, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createWorkflowRunValidateBeforeCall(workflowRunBuilder, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteApplicant * @param applicantId (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
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public okhttp3.Call deleteApplicantCall(UUID applicantId, 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 = "/applicants/{applicant_id}" .replace("{" + "applicant_id" + "}", localVarApiClient.escapeString(applicantId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteApplicantValidateBeforeCall(UUID applicantId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicantId' is set if (applicantId == null) { throw new ApiException("Missing the required parameter 'applicantId' when calling deleteApplicant(Async)"); } return deleteApplicantCall(applicantId, _callback); } /** * Delete Applicant * Deletes a single applicant. * @param applicantId (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public void deleteApplicant(UUID applicantId) throws ApiException { deleteApplicantWithHttpInfo(applicantId); } /** * Delete Applicant * Deletes a single applicant. * @param applicantId (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public ApiResponse deleteApplicantWithHttpInfo(UUID applicantId) throws ApiException { okhttp3.Call localVarCall = deleteApplicantValidateBeforeCall(applicantId, null); return localVarApiClient.execute(localVarCall); } /** * Delete Applicant (asynchronously) * Deletes a single applicant. * @param applicantId (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
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public okhttp3.Call deleteApplicantAsync(UUID applicantId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteApplicantValidateBeforeCall(applicantId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteWatchlistMonitor * @param monitorId (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
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public okhttp3.Call deleteWatchlistMonitorCall(UUID monitorId, 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 = "/watchlist_monitors/{monitor_id}" .replace("{" + "monitor_id" + "}", localVarApiClient.escapeString(monitorId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteWatchlistMonitorValidateBeforeCall(UUID monitorId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'monitorId' is set if (monitorId == null) { throw new ApiException("Missing the required parameter 'monitorId' when calling deleteWatchlistMonitor(Async)"); } return deleteWatchlistMonitorCall(monitorId, _callback); } /** * Delete monitor * Deactivates the given monitor * @param monitorId (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public void deleteWatchlistMonitor(UUID monitorId) throws ApiException { deleteWatchlistMonitorWithHttpInfo(monitorId); } /** * Delete monitor * Deactivates the given monitor * @param monitorId (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public ApiResponse deleteWatchlistMonitorWithHttpInfo(UUID monitorId) throws ApiException { okhttp3.Call localVarCall = deleteWatchlistMonitorValidateBeforeCall(monitorId, null); return localVarApiClient.execute(localVarCall); } /** * Delete monitor (asynchronously) * Deactivates the given monitor * @param monitorId (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
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public okhttp3.Call deleteWatchlistMonitorAsync(UUID monitorId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteWatchlistMonitorValidateBeforeCall(monitorId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteWebhook * @param webhookId (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
Status Code Description Response Headers
204 Webhook deleted -
0 Unexpected error -
*/ public okhttp3.Call deleteWebhookCall(UUID webhookId, 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 = "/webhooks/{webhook_id}" .replace("{" + "webhook_id" + "}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteWebhookValidateBeforeCall(UUID webhookId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling deleteWebhook(Async)"); } return deleteWebhookCall(webhookId, _callback); } /** * Delete a webhook * Deletes a webhook. * @param webhookId (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Webhook deleted -
0 Unexpected error -
*/ public void deleteWebhook(UUID webhookId) throws ApiException { deleteWebhookWithHttpInfo(webhookId); } /** * Delete a webhook * Deletes a webhook. * @param webhookId (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Webhook deleted -
0 Unexpected error -
*/ public ApiResponse deleteWebhookWithHttpInfo(UUID webhookId) throws ApiException { okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(webhookId, null); return localVarApiClient.execute(localVarCall); } /** * Delete a webhook (asynchronously) * Deletes a webhook. * @param webhookId (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
Status Code Description Response Headers
204 Webhook deleted -
0 Unexpected error -
*/ public okhttp3.Call deleteWebhookAsync(UUID webhookId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteWebhookValidateBeforeCall(webhookId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for downloadCheck * @param checkId (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
Status Code Description Response Headers
200 The check PDF binary data -
0 Unexpected error -
*/ public okhttp3.Call downloadCheckCall(UUID checkId, 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 = "/checks/{check_id}/download" .replace("{" + "check_id" + "}", localVarApiClient.escapeString(checkId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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 downloadCheckValidateBeforeCall(UUID checkId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'checkId' is set if (checkId == null) { throw new ApiException("Missing the required parameter 'checkId' when calling downloadCheck(Async)"); } return downloadCheckCall(checkId, _callback); } /** * Download check * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF. * @param checkId (required) * @return FileTransfer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The check PDF binary data -
0 Unexpected error -
*/ public FileTransfer downloadCheck(UUID checkId) throws ApiException { ApiResponse localVarResp = downloadCheckWithHttpInfo(checkId); return localVarResp.getData(); } /** * Download check * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF. * @param checkId (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
Status Code Description Response Headers
200 The check PDF binary data -
0 Unexpected error -
*/ public ApiResponse downloadCheckWithHttpInfo(UUID checkId) throws ApiException { okhttp3.Call localVarCall = downloadCheckValidateBeforeCall(checkId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Download check (asynchronously) * Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF. * @param checkId (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
Status Code Description Response Headers
200 The check PDF binary data -
0 Unexpected error -
*/ public okhttp3.Call downloadCheckAsync(UUID checkId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadCheckValidateBeforeCall(checkId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for downloadDocument * @param documentId (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
Status Code Description Response Headers
200 The document binary data -
0 Unexpected error -
*/ public okhttp3.Call downloadDocumentCall(UUID documentId, 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 = "/documents/{document_id}/download" .replace("{" + "document_id" + "}", localVarApiClient.escapeString(documentId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*", "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 downloadDocumentValidateBeforeCall(UUID documentId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'documentId' is set if (documentId == null) { throw new ApiException("Missing the required parameter 'documentId' when calling downloadDocument(Async)"); } return downloadDocumentCall(documentId, _callback); } /** * Download document * Downloads specific documents belonging to an applicant. If successful, the response will be the binary data representing the image. * @param documentId (required) * @return FileTransfer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The document binary data -
0 Unexpected error -
*/ public FileTransfer downloadDocument(UUID documentId) throws ApiException { ApiResponse localVarResp = downloadDocumentWithHttpInfo(documentId); return localVarResp.getData(); } /** * Download document * Downloads specific documents belonging to an applicant. If successful, the response will be the binary data representing the image. * @param documentId (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
Status Code Description Response Headers
200 The document binary data -
0 Unexpected error -
*/ public ApiResponse downloadDocumentWithHttpInfo(UUID documentId) throws ApiException { okhttp3.Call localVarCall = downloadDocumentValidateBeforeCall(documentId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Download document (asynchronously) * Downloads specific documents belonging to an applicant. If successful, the response will be the binary data representing the image. * @param documentId (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
Status Code Description Response Headers
200 The document binary data -
0 Unexpected error -
*/ public okhttp3.Call downloadDocumentAsync(UUID documentId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadDocumentValidateBeforeCall(documentId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for downloadDocumentVideo * @param documentId (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
Status Code Description Response Headers
200 The document's video binary data -
0 Unexpected error -
*/ public okhttp3.Call downloadDocumentVideoCall(String documentId, 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 = "/documents/{document_id}/video/download" .replace("{" + "document_id" + "}", localVarApiClient.escapeString(documentId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*", "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 downloadDocumentVideoValidateBeforeCall(String documentId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'documentId' is set if (documentId == null) { throw new ApiException("Missing the required parameter 'documentId' when calling downloadDocumentVideo(Async)"); } return downloadDocumentVideoCall(documentId, _callback); } /** * Download document video * Downloads a document video. If successful, the response will be the binary data representing the video. * @param documentId (required) * @return FileTransfer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The document's video binary data -
0 Unexpected error -
*/ public FileTransfer downloadDocumentVideo(String documentId) throws ApiException { ApiResponse localVarResp = downloadDocumentVideoWithHttpInfo(documentId); return localVarResp.getData(); } /** * Download document video * Downloads a document video. If successful, the response will be the binary data representing the video. * @param documentId (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
Status Code Description Response Headers
200 The document's video binary data -
0 Unexpected error -
*/ public ApiResponse downloadDocumentVideoWithHttpInfo(String documentId) throws ApiException { okhttp3.Call localVarCall = downloadDocumentVideoValidateBeforeCall(documentId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Download document video (asynchronously) * Downloads a document video. If successful, the response will be the binary data representing the video. * @param documentId (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
Status Code Description Response Headers
200 The document's video binary data -
0 Unexpected error -
*/ public okhttp3.Call downloadDocumentVideoAsync(String documentId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadDocumentVideoValidateBeforeCall(documentId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for downloadIdPhoto * @param idPhotoId The ID photo's unique identifier. (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
Status Code Description Response Headers
200 The ID photo's binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadIdPhotoCall(UUID idPhotoId, 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 = "/id_photos/{id_photo_id}/download" .replace("{" + "id_photo_id" + "}", localVarApiClient.escapeString(idPhotoId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*", "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 downloadIdPhotoValidateBeforeCall(UUID idPhotoId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'idPhotoId' is set if (idPhotoId == null) { throw new ApiException("Missing the required parameter 'idPhotoId' when calling downloadIdPhoto(Async)"); } return downloadIdPhotoCall(idPhotoId, _callback); } /** * Download ID photo * ID photos are downloaded using this endpoint. * @param idPhotoId The ID photo's unique identifier. (required) * @return FileTransfer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The ID photo's binary data. -
0 Unexpected error -
*/ public FileTransfer downloadIdPhoto(UUID idPhotoId) throws ApiException { ApiResponse localVarResp = downloadIdPhotoWithHttpInfo(idPhotoId); return localVarResp.getData(); } /** * Download ID photo * ID photos are downloaded using this endpoint. * @param idPhotoId The ID photo's unique identifier. (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
Status Code Description Response Headers
200 The ID photo's binary data. -
0 Unexpected error -
*/ public ApiResponse downloadIdPhotoWithHttpInfo(UUID idPhotoId) throws ApiException { okhttp3.Call localVarCall = downloadIdPhotoValidateBeforeCall(idPhotoId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Download ID photo (asynchronously) * ID photos are downloaded using this endpoint. * @param idPhotoId The ID photo's unique identifier. (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
Status Code Description Response Headers
200 The ID photo's binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadIdPhotoAsync(UUID idPhotoId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadIdPhotoValidateBeforeCall(idPhotoId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for downloadLivePhoto * @param livePhotoId The live photo's unique identifier. (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
Status Code Description Response Headers
200 The live photo's binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadLivePhotoCall(UUID livePhotoId, 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 = "/live_photos/{live_photo_id}/download" .replace("{" + "live_photo_id" + "}", localVarApiClient.escapeString(livePhotoId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*", "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 downloadLivePhotoValidateBeforeCall(UUID livePhotoId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'livePhotoId' is set if (livePhotoId == null) { throw new ApiException("Missing the required parameter 'livePhotoId' when calling downloadLivePhoto(Async)"); } return downloadLivePhotoCall(livePhotoId, _callback); } /** * Download live photo * Live photos are downloaded using this endpoint. * @param livePhotoId The live photo's unique identifier. (required) * @return FileTransfer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The live photo's binary data. -
0 Unexpected error -
*/ public FileTransfer downloadLivePhoto(UUID livePhotoId) throws ApiException { ApiResponse localVarResp = downloadLivePhotoWithHttpInfo(livePhotoId); return localVarResp.getData(); } /** * Download live photo * Live photos are downloaded using this endpoint. * @param livePhotoId The live photo's unique identifier. (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
Status Code Description Response Headers
200 The live photo's binary data. -
0 Unexpected error -
*/ public ApiResponse downloadLivePhotoWithHttpInfo(UUID livePhotoId) throws ApiException { okhttp3.Call localVarCall = downloadLivePhotoValidateBeforeCall(livePhotoId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Download live photo (asynchronously) * Live photos are downloaded using this endpoint. * @param livePhotoId The live photo's unique identifier. (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
Status Code Description Response Headers
200 The live photo's binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadLivePhotoAsync(UUID livePhotoId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadLivePhotoValidateBeforeCall(livePhotoId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for downloadLiveVideo * @param liveVideoId The live video's unique identifier. (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
Status Code Description Response Headers
200 The live video's binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadLiveVideoCall(UUID liveVideoId, 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 = "/live_videos/{live_video_id}/download" .replace("{" + "live_video_id" + "}", localVarApiClient.escapeString(liveVideoId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*", "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 downloadLiveVideoValidateBeforeCall(UUID liveVideoId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'liveVideoId' is set if (liveVideoId == null) { throw new ApiException("Missing the required parameter 'liveVideoId' when calling downloadLiveVideo(Async)"); } return downloadLiveVideoCall(liveVideoId, _callback); } /** * Download live video * Live videos are downloaded using this endpoint. * @param liveVideoId The live video's unique identifier. (required) * @return FileTransfer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The live video's binary data. -
0 Unexpected error -
*/ public FileTransfer downloadLiveVideo(UUID liveVideoId) throws ApiException { ApiResponse localVarResp = downloadLiveVideoWithHttpInfo(liveVideoId); return localVarResp.getData(); } /** * Download live video * Live videos are downloaded using this endpoint. * @param liveVideoId The live video's unique identifier. (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
Status Code Description Response Headers
200 The live video's binary data. -
0 Unexpected error -
*/ public ApiResponse downloadLiveVideoWithHttpInfo(UUID liveVideoId) throws ApiException { okhttp3.Call localVarCall = downloadLiveVideoValidateBeforeCall(liveVideoId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Download live video (asynchronously) * Live videos are downloaded using this endpoint. * @param liveVideoId The live video's unique identifier. (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
Status Code Description Response Headers
200 The live video's binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadLiveVideoAsync(UUID liveVideoId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadLiveVideoValidateBeforeCall(liveVideoId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for downloadLiveVideoFrame * @param liveVideoId The live video's unique identifier. (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
Status Code Description Response Headers
200 The live video frame's binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadLiveVideoFrameCall(UUID liveVideoId, 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 = "/live_videos/{live_video_id}/frame" .replace("{" + "live_video_id" + "}", localVarApiClient.escapeString(liveVideoId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*", "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 downloadLiveVideoFrameValidateBeforeCall(UUID liveVideoId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'liveVideoId' is set if (liveVideoId == null) { throw new ApiException("Missing the required parameter 'liveVideoId' when calling downloadLiveVideoFrame(Async)"); } return downloadLiveVideoFrameCall(liveVideoId, _callback); } /** * Download live video frame * Returns the binary data representing a single frame from a live video. * @param liveVideoId The live video's unique identifier. (required) * @return FileTransfer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The live video frame's binary data. -
0 Unexpected error -
*/ public FileTransfer downloadLiveVideoFrame(UUID liveVideoId) throws ApiException { ApiResponse localVarResp = downloadLiveVideoFrameWithHttpInfo(liveVideoId); return localVarResp.getData(); } /** * Download live video frame * Returns the binary data representing a single frame from a live video. * @param liveVideoId The live video's unique identifier. (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
Status Code Description Response Headers
200 The live video frame's binary data. -
0 Unexpected error -
*/ public ApiResponse downloadLiveVideoFrameWithHttpInfo(UUID liveVideoId) throws ApiException { okhttp3.Call localVarCall = downloadLiveVideoFrameValidateBeforeCall(liveVideoId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Download live video frame (asynchronously) * Returns the binary data representing a single frame from a live video. * @param liveVideoId The live video's unique identifier. (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
Status Code Description Response Headers
200 The live video frame's binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadLiveVideoFrameAsync(UUID liveVideoId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadLiveVideoFrameValidateBeforeCall(liveVideoId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for downloadMotionCapture * @param motionCaptureId The motion capture's unique identifier. (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
Status Code Description Response Headers
200 The motion capture's binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadMotionCaptureCall(UUID motionCaptureId, 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 = "/motion_captures/{motion_capture_id}/download" .replace("{" + "motion_capture_id" + "}", localVarApiClient.escapeString(motionCaptureId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*", "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 downloadMotionCaptureValidateBeforeCall(UUID motionCaptureId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'motionCaptureId' is set if (motionCaptureId == null) { throw new ApiException("Missing the required parameter 'motionCaptureId' when calling downloadMotionCapture(Async)"); } return downloadMotionCaptureCall(motionCaptureId, _callback); } /** * Download motion capture * Motion captures are downloaded using this endpoint. * @param motionCaptureId The motion capture's unique identifier. (required) * @return FileTransfer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The motion capture's binary data. -
0 Unexpected error -
*/ public FileTransfer downloadMotionCapture(UUID motionCaptureId) throws ApiException { ApiResponse localVarResp = downloadMotionCaptureWithHttpInfo(motionCaptureId); return localVarResp.getData(); } /** * Download motion capture * Motion captures are downloaded using this endpoint. * @param motionCaptureId The motion capture's unique identifier. (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
Status Code Description Response Headers
200 The motion capture's binary data. -
0 Unexpected error -
*/ public ApiResponse downloadMotionCaptureWithHttpInfo(UUID motionCaptureId) throws ApiException { okhttp3.Call localVarCall = downloadMotionCaptureValidateBeforeCall(motionCaptureId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Download motion capture (asynchronously) * Motion captures are downloaded using this endpoint. * @param motionCaptureId The motion capture's unique identifier. (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
Status Code Description Response Headers
200 The motion capture's binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadMotionCaptureAsync(UUID motionCaptureId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadMotionCaptureValidateBeforeCall(motionCaptureId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for downloadMotionCaptureFrame * @param motionCaptureId The motion capture's unique identifier. (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
Status Code Description Response Headers
200 The motion capture frame's binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadMotionCaptureFrameCall(UUID motionCaptureId, 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 = "/motion_captures/{motion_capture_id}/frame" .replace("{" + "motion_capture_id" + "}", localVarApiClient.escapeString(motionCaptureId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*", "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 downloadMotionCaptureFrameValidateBeforeCall(UUID motionCaptureId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'motionCaptureId' is set if (motionCaptureId == null) { throw new ApiException("Missing the required parameter 'motionCaptureId' when calling downloadMotionCaptureFrame(Async)"); } return downloadMotionCaptureFrameCall(motionCaptureId, _callback); } /** * Download motion capture frame * Instead of the whole capture binary, a single frame can be downloaded using this endpoint. Returns the binary data representing the frame. * @param motionCaptureId The motion capture's unique identifier. (required) * @return FileTransfer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The motion capture frame's binary data. -
0 Unexpected error -
*/ public FileTransfer downloadMotionCaptureFrame(UUID motionCaptureId) throws ApiException { ApiResponse localVarResp = downloadMotionCaptureFrameWithHttpInfo(motionCaptureId); return localVarResp.getData(); } /** * Download motion capture frame * Instead of the whole capture binary, a single frame can be downloaded using this endpoint. Returns the binary data representing the frame. * @param motionCaptureId The motion capture's unique identifier. (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
Status Code Description Response Headers
200 The motion capture frame's binary data. -
0 Unexpected error -
*/ public ApiResponse downloadMotionCaptureFrameWithHttpInfo(UUID motionCaptureId) throws ApiException { okhttp3.Call localVarCall = downloadMotionCaptureFrameValidateBeforeCall(motionCaptureId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Download motion capture frame (asynchronously) * Instead of the whole capture binary, a single frame can be downloaded using this endpoint. Returns the binary data representing the frame. * @param motionCaptureId The motion capture's unique identifier. (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
Status Code Description Response Headers
200 The motion capture frame's binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadMotionCaptureFrameAsync(UUID motionCaptureId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadMotionCaptureFrameValidateBeforeCall(motionCaptureId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for downloadQesDocument * @param workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required) * @param fileId 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
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 downloadQesDocumentCall(UUID workflowRunId, UUID fileId, 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 = "/qualified_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 (fileId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("file_id", fileId)); } 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 downloadQesDocumentValidateBeforeCall(UUID workflowRunId, UUID fileId, 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 downloadQesDocument(Async)"); } // verify the required parameter 'fileId' is set if (fileId == null) { throw new ApiException("Missing the required parameter 'fileId' when calling downloadQesDocument(Async)"); } return downloadQesDocumentCall(workflowRunId, fileId, _callback); } /** * Retrieves the signed document or application form * Retrieves the signed document or application form depending on the file_id provided. * @param workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required) * @param fileId 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
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 downloadQesDocument(UUID workflowRunId, UUID fileId) throws ApiException { ApiResponse localVarResp = downloadQesDocumentWithHttpInfo(workflowRunId, fileId); return localVarResp.getData(); } /** * Retrieves the signed document or application form * Retrieves the signed document or application form depending on the file_id provided. * @param workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required) * @param fileId 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
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 downloadQesDocumentWithHttpInfo(UUID workflowRunId, UUID fileId) throws ApiException { okhttp3.Call localVarCall = downloadQesDocumentValidateBeforeCall(workflowRunId, fileId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieves the signed document or application form (asynchronously) * Retrieves the signed document or application form depending on the file_id provided. * @param workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document. (required) * @param fileId 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
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 downloadQesDocumentAsync(UUID workflowRunId, UUID fileId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadQesDocumentValidateBeforeCall(workflowRunId, fileId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for downloadSignedEvidenceFile * @param workflowRunId Workflow Run ID (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
Status Code Description Response Headers
302 Found * Location - Link to the Timeline File.
200 The signed evidence PDF binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadSignedEvidenceFileCall(UUID workflowRunId, 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 = "/workflow_runs/{workflow_run_id}/signed_evidence_file" .replace("{" + "workflow_run_id" + "}", localVarApiClient.escapeString(workflowRunId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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 downloadSignedEvidenceFileValidateBeforeCall(UUID workflowRunId, 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 downloadSignedEvidenceFile(Async)"); } return downloadSignedEvidenceFileCall(workflowRunId, _callback); } /** * Retrieve Workflow Run Evidence Summary File * Retrieves the signed evidence file for the designated Workflow Run * @param workflowRunId Workflow Run ID (required) * @return FileTransfer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
302 Found * Location - Link to the Timeline File.
200 The signed evidence PDF binary data. -
0 Unexpected error -
*/ public FileTransfer downloadSignedEvidenceFile(UUID workflowRunId) throws ApiException { ApiResponse localVarResp = downloadSignedEvidenceFileWithHttpInfo(workflowRunId); return localVarResp.getData(); } /** * Retrieve Workflow Run Evidence Summary File * Retrieves the signed evidence file for the designated Workflow Run * @param workflowRunId Workflow Run ID (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
Status Code Description Response Headers
302 Found * Location - Link to the Timeline File.
200 The signed evidence PDF binary data. -
0 Unexpected error -
*/ public ApiResponse downloadSignedEvidenceFileWithHttpInfo(UUID workflowRunId) throws ApiException { okhttp3.Call localVarCall = downloadSignedEvidenceFileValidateBeforeCall(workflowRunId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve Workflow Run Evidence Summary File (asynchronously) * Retrieves the signed evidence file for the designated Workflow Run * @param workflowRunId Workflow Run ID (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
Status Code Description Response Headers
302 Found * Location - Link to the Timeline File.
200 The signed evidence PDF binary data. -
0 Unexpected error -
*/ public okhttp3.Call downloadSignedEvidenceFileAsync(UUID workflowRunId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadSignedEvidenceFileValidateBeforeCall(workflowRunId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for extract * @param extractRequest (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
Status Code Description Response Headers
200 Extraction result -
0 Unprocessable Entity -
*/ public okhttp3.Call extractCall(ExtractRequest extractRequest, 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 = extractRequest; // create path and map variables String localVarPath = "/extractions"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call extractValidateBeforeCall(ExtractRequest extractRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'extractRequest' is set if (extractRequest == null) { throw new ApiException("Missing the required parameter 'extractRequest' when calling extract(Async)"); } return extractCall(extractRequest, _callback); } /** * Autofill * Extract information from a document * @param extractRequest (required) * @return Extraction * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Extraction result -
0 Unprocessable Entity -
*/ public Extraction extract(ExtractRequest extractRequest) throws ApiException { ApiResponse localVarResp = extractWithHttpInfo(extractRequest); return localVarResp.getData(); } /** * Autofill * Extract information from a document * @param extractRequest (required) * @return ApiResponse<Extraction> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Extraction result -
0 Unprocessable Entity -
*/ public ApiResponse extractWithHttpInfo(ExtractRequest extractRequest) throws ApiException { okhttp3.Call localVarCall = extractValidateBeforeCall(extractRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Autofill (asynchronously) * Extract information from a document * @param extractRequest (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
Status Code Description Response Headers
200 Extraction result -
0 Unprocessable Entity -
*/ public okhttp3.Call extractAsync(ExtractRequest extractRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = extractValidateBeforeCall(extractRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findAddresses * @param postcode (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
Status Code Description Response Headers
200 A list of addresses -
0 Unexpected error -
*/ public okhttp3.Call findAddressesCall(String postcode, 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 = "/addresses/pick"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (postcode != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("postcode", postcode)); } final String[] localVarAccepts = { "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 findAddressesValidateBeforeCall(String postcode, final ApiCallback _callback) throws ApiException { // verify the required parameter 'postcode' is set if (postcode == null) { throw new ApiException("Missing the required parameter 'postcode' when calling findAddresses(Async)"); } return findAddressesCall(postcode, _callback); } /** * Address Picker * Search for addresses by postcode * @param postcode (required) * @return AddressesList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A list of addresses -
0 Unexpected error -
*/ public AddressesList findAddresses(String postcode) throws ApiException { ApiResponse localVarResp = findAddressesWithHttpInfo(postcode); return localVarResp.getData(); } /** * Address Picker * Search for addresses by postcode * @param postcode (required) * @return ApiResponse<AddressesList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A list of addresses -
0 Unexpected error -
*/ public ApiResponse findAddressesWithHttpInfo(String postcode) throws ApiException { okhttp3.Call localVarCall = findAddressesValidateBeforeCall(postcode, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Address Picker (asynchronously) * Search for addresses by postcode * @param postcode (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
Status Code Description Response Headers
200 A list of addresses -
0 Unexpected error -
*/ public okhttp3.Call findAddressesAsync(String postcode, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findAddressesValidateBeforeCall(postcode, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findApplicant * @param applicantId (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
Status Code Description Response Headers
200 Applicant object -
0 Unexpected error -
*/ public okhttp3.Call findApplicantCall(UUID applicantId, 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 = "/applicants/{applicant_id}" .replace("{" + "applicant_id" + "}", localVarApiClient.escapeString(applicantId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 findApplicantValidateBeforeCall(UUID applicantId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicantId' is set if (applicantId == null) { throw new ApiException("Missing the required parameter 'applicantId' when calling findApplicant(Async)"); } return findApplicantCall(applicantId, _callback); } /** * Retrieve Applicant * Retrieves a single applicant. Returns an applicant object. * @param applicantId (required) * @return Applicant * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Applicant object -
0 Unexpected error -
*/ public Applicant findApplicant(UUID applicantId) throws ApiException { ApiResponse localVarResp = findApplicantWithHttpInfo(applicantId); return localVarResp.getData(); } /** * Retrieve Applicant * Retrieves a single applicant. Returns an applicant object. * @param applicantId (required) * @return ApiResponse<Applicant> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Applicant object -
0 Unexpected error -
*/ public ApiResponse findApplicantWithHttpInfo(UUID applicantId) throws ApiException { okhttp3.Call localVarCall = findApplicantValidateBeforeCall(applicantId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve Applicant (asynchronously) * Retrieves a single applicant. Returns an applicant object. * @param applicantId (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
Status Code Description Response Headers
200 Applicant object -
0 Unexpected error -
*/ public okhttp3.Call findApplicantAsync(UUID applicantId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findApplicantValidateBeforeCall(applicantId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findCheck * @param checkId (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
Status Code Description Response Headers
200 Check object -
0 Unexpected error -
*/ public okhttp3.Call findCheckCall(UUID checkId, 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 = "/checks/{check_id}" .replace("{" + "check_id" + "}", localVarApiClient.escapeString(checkId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 findCheckValidateBeforeCall(UUID checkId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'checkId' is set if (checkId == null) { throw new ApiException("Missing the required parameter 'checkId' when calling findCheck(Async)"); } return findCheckCall(checkId, _callback); } /** * Retrieve a Check * Retrieves a single check. Returns a check object. * @param checkId (required) * @return Check * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Check object -
0 Unexpected error -
*/ public Check findCheck(UUID checkId) throws ApiException { ApiResponse localVarResp = findCheckWithHttpInfo(checkId); return localVarResp.getData(); } /** * Retrieve a Check * Retrieves a single check. Returns a check object. * @param checkId (required) * @return ApiResponse<Check> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Check object -
0 Unexpected error -
*/ public ApiResponse findCheckWithHttpInfo(UUID checkId) throws ApiException { okhttp3.Call localVarCall = findCheckValidateBeforeCall(checkId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve a Check (asynchronously) * Retrieves a single check. Returns a check object. * @param checkId (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
Status Code Description Response Headers
200 Check object -
0 Unexpected error -
*/ public okhttp3.Call findCheckAsync(UUID checkId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findCheckValidateBeforeCall(checkId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findDocument * @param documentId (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
Status Code Description Response Headers
200 A document -
0 Unexpected error -
*/ public okhttp3.Call findDocumentCall(UUID documentId, 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 = "/documents/{document_id}" .replace("{" + "document_id" + "}", localVarApiClient.escapeString(documentId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 findDocumentValidateBeforeCall(UUID documentId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'documentId' is set if (documentId == null) { throw new ApiException("Missing the required parameter 'documentId' when calling findDocument(Async)"); } return findDocumentCall(documentId, _callback); } /** * Retrieve document * A single document can be retrieved by calling this endpoint with the document's unique identifier. * @param documentId (required) * @return Document * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A document -
0 Unexpected error -
*/ public Document findDocument(UUID documentId) throws ApiException { ApiResponse localVarResp = findDocumentWithHttpInfo(documentId); return localVarResp.getData(); } /** * Retrieve document * A single document can be retrieved by calling this endpoint with the document's unique identifier. * @param documentId (required) * @return ApiResponse<Document> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A document -
0 Unexpected error -
*/ public ApiResponse findDocumentWithHttpInfo(UUID documentId) throws ApiException { okhttp3.Call localVarCall = findDocumentValidateBeforeCall(documentId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve document (asynchronously) * A single document can be retrieved by calling this endpoint with the document's unique identifier. * @param documentId (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
Status Code Description Response Headers
200 A document -
0 Unexpected error -
*/ public okhttp3.Call findDocumentAsync(UUID documentId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findDocumentValidateBeforeCall(documentId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findIdPhoto * @param idPhotoId The ID photo's unique identifier. (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
Status Code Description Response Headers
200 A ID photo -
0 Unexpected error -
*/ public okhttp3.Call findIdPhotoCall(UUID idPhotoId, 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 = "/id_photos/{id_photo_id}" .replace("{" + "id_photo_id" + "}", localVarApiClient.escapeString(idPhotoId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 findIdPhotoValidateBeforeCall(UUID idPhotoId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'idPhotoId' is set if (idPhotoId == null) { throw new ApiException("Missing the required parameter 'idPhotoId' when calling findIdPhoto(Async)"); } return findIdPhotoCall(idPhotoId, _callback); } /** * Retrieve ID photo * Retrieves a single ID photo. Returns a ID photo object. * @param idPhotoId The ID photo's unique identifier. (required) * @return IdPhoto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A ID photo -
0 Unexpected error -
*/ public IdPhoto findIdPhoto(UUID idPhotoId) throws ApiException { ApiResponse localVarResp = findIdPhotoWithHttpInfo(idPhotoId); return localVarResp.getData(); } /** * Retrieve ID photo * Retrieves a single ID photo. Returns a ID photo object. * @param idPhotoId The ID photo's unique identifier. (required) * @return ApiResponse<IdPhoto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A ID photo -
0 Unexpected error -
*/ public ApiResponse findIdPhotoWithHttpInfo(UUID idPhotoId) throws ApiException { okhttp3.Call localVarCall = findIdPhotoValidateBeforeCall(idPhotoId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve ID photo (asynchronously) * Retrieves a single ID photo. Returns a ID photo object. * @param idPhotoId The ID photo's unique identifier. (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
Status Code Description Response Headers
200 A ID photo -
0 Unexpected error -
*/ public okhttp3.Call findIdPhotoAsync(UUID idPhotoId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findIdPhotoValidateBeforeCall(idPhotoId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findLivePhoto * @param livePhotoId The live photo's unique identifier. (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
Status Code Description Response Headers
200 A live photo -
0 Unexpected error -
*/ public okhttp3.Call findLivePhotoCall(UUID livePhotoId, 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 = "/live_photos/{live_photo_id}" .replace("{" + "live_photo_id" + "}", localVarApiClient.escapeString(livePhotoId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 findLivePhotoValidateBeforeCall(UUID livePhotoId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'livePhotoId' is set if (livePhotoId == null) { throw new ApiException("Missing the required parameter 'livePhotoId' when calling findLivePhoto(Async)"); } return findLivePhotoCall(livePhotoId, _callback); } /** * Retrieve live photo * Retrieves a single live photo. Returns a live photo object. * @param livePhotoId The live photo's unique identifier. (required) * @return LivePhoto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A live photo -
0 Unexpected error -
*/ public LivePhoto findLivePhoto(UUID livePhotoId) throws ApiException { ApiResponse localVarResp = findLivePhotoWithHttpInfo(livePhotoId); return localVarResp.getData(); } /** * Retrieve live photo * Retrieves a single live photo. Returns a live photo object. * @param livePhotoId The live photo's unique identifier. (required) * @return ApiResponse<LivePhoto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A live photo -
0 Unexpected error -
*/ public ApiResponse findLivePhotoWithHttpInfo(UUID livePhotoId) throws ApiException { okhttp3.Call localVarCall = findLivePhotoValidateBeforeCall(livePhotoId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve live photo (asynchronously) * Retrieves a single live photo. Returns a live photo object. * @param livePhotoId The live photo's unique identifier. (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
Status Code Description Response Headers
200 A live photo -
0 Unexpected error -
*/ public okhttp3.Call findLivePhotoAsync(UUID livePhotoId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findLivePhotoValidateBeforeCall(livePhotoId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findLiveVideo * @param liveVideoId The live video's unique identifier. (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
Status Code Description Response Headers
200 A live video -
0 Unexpected error -
*/ public okhttp3.Call findLiveVideoCall(UUID liveVideoId, 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 = "/live_videos/{live_video_id}" .replace("{" + "live_video_id" + "}", localVarApiClient.escapeString(liveVideoId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 findLiveVideoValidateBeforeCall(UUID liveVideoId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'liveVideoId' is set if (liveVideoId == null) { throw new ApiException("Missing the required parameter 'liveVideoId' when calling findLiveVideo(Async)"); } return findLiveVideoCall(liveVideoId, _callback); } /** * Retrieve live video * Retrieves a single live video. Returns the corresponding live video object. * @param liveVideoId The live video's unique identifier. (required) * @return LiveVideo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A live video -
0 Unexpected error -
*/ public LiveVideo findLiveVideo(UUID liveVideoId) throws ApiException { ApiResponse localVarResp = findLiveVideoWithHttpInfo(liveVideoId); return localVarResp.getData(); } /** * Retrieve live video * Retrieves a single live video. Returns the corresponding live video object. * @param liveVideoId The live video's unique identifier. (required) * @return ApiResponse<LiveVideo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A live video -
0 Unexpected error -
*/ public ApiResponse findLiveVideoWithHttpInfo(UUID liveVideoId) throws ApiException { okhttp3.Call localVarCall = findLiveVideoValidateBeforeCall(liveVideoId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve live video (asynchronously) * Retrieves a single live video. Returns the corresponding live video object. * @param liveVideoId The live video's unique identifier. (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
Status Code Description Response Headers
200 A live video -
0 Unexpected error -
*/ public okhttp3.Call findLiveVideoAsync(UUID liveVideoId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findLiveVideoValidateBeforeCall(liveVideoId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findMotionCapture * @param motionCaptureId The motion capture's unique identifier. (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
Status Code Description Response Headers
200 A motion capture -
0 Unexpected error -
*/ public okhttp3.Call findMotionCaptureCall(UUID motionCaptureId, 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 = "/motion_captures/{motion_capture_id}" .replace("{" + "motion_capture_id" + "}", localVarApiClient.escapeString(motionCaptureId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 findMotionCaptureValidateBeforeCall(UUID motionCaptureId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'motionCaptureId' is set if (motionCaptureId == null) { throw new ApiException("Missing the required parameter 'motionCaptureId' when calling findMotionCapture(Async)"); } return findMotionCaptureCall(motionCaptureId, _callback); } /** * Retrieve motion capture * Retrieves a single motion capture. Returns the corresponding motion capture object. * @param motionCaptureId The motion capture's unique identifier. (required) * @return MotionCapture * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A motion capture -
0 Unexpected error -
*/ public MotionCapture findMotionCapture(UUID motionCaptureId) throws ApiException { ApiResponse localVarResp = findMotionCaptureWithHttpInfo(motionCaptureId); return localVarResp.getData(); } /** * Retrieve motion capture * Retrieves a single motion capture. Returns the corresponding motion capture object. * @param motionCaptureId The motion capture's unique identifier. (required) * @return ApiResponse<MotionCapture> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A motion capture -
0 Unexpected error -
*/ public ApiResponse findMotionCaptureWithHttpInfo(UUID motionCaptureId) throws ApiException { okhttp3.Call localVarCall = findMotionCaptureValidateBeforeCall(motionCaptureId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve motion capture (asynchronously) * Retrieves a single motion capture. Returns the corresponding motion capture object. * @param motionCaptureId The motion capture's unique identifier. (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
Status Code Description Response Headers
200 A motion capture -
0 Unexpected error -
*/ public okhttp3.Call findMotionCaptureAsync(UUID motionCaptureId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findMotionCaptureValidateBeforeCall(motionCaptureId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findReport * @param reportId (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
Status Code Description Response Headers
200 Report object -
0 Unexpected error -
*/ public okhttp3.Call findReportCall(UUID reportId, 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 = "/reports/{report_id}" .replace("{" + "report_id" + "}", localVarApiClient.escapeString(reportId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 findReportValidateBeforeCall(UUID reportId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'reportId' is set if (reportId == null) { throw new ApiException("Missing the required parameter 'reportId' when calling findReport(Async)"); } return findReportCall(reportId, _callback); } /** * Retrieve report * A single report can be retrieved using this endpoint with the corresponding unique identifier. * @param reportId (required) * @return Report * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Report object -
0 Unexpected error -
*/ public Report findReport(UUID reportId) throws ApiException { ApiResponse localVarResp = findReportWithHttpInfo(reportId); return localVarResp.getData(); } /** * Retrieve report * A single report can be retrieved using this endpoint with the corresponding unique identifier. * @param reportId (required) * @return ApiResponse<Report> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Report object -
0 Unexpected error -
*/ public ApiResponse findReportWithHttpInfo(UUID reportId) throws ApiException { okhttp3.Call localVarCall = findReportValidateBeforeCall(reportId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve report (asynchronously) * A single report can be retrieved using this endpoint with the corresponding unique identifier. * @param reportId (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
Status Code Description Response Headers
200 Report object -
0 Unexpected error -
*/ public okhttp3.Call findReportAsync(UUID reportId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findReportValidateBeforeCall(reportId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findTask * @param workflowRunId The unique identifier of the Workflow Run to which the Task belongs. (required) * @param taskId The identifier of the Task 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
Status Code Description Response Headers
200 A Task object. -
0 Unexpected error -
*/ public okhttp3.Call findTaskCall(UUID workflowRunId, String taskId, 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 = "/workflow_runs/{workflow_run_id}/tasks/{task_id}" .replace("{" + "workflow_run_id" + "}", localVarApiClient.escapeString(workflowRunId.toString())) .replace("{" + "task_id" + "}", localVarApiClient.escapeString(taskId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 findTaskValidateBeforeCall(UUID workflowRunId, String taskId, 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 findTask(Async)"); } // verify the required parameter 'taskId' is set if (taskId == null) { throw new ApiException("Missing the required parameter 'taskId' when calling findTask(Async)"); } return findTaskCall(workflowRunId, taskId, _callback); } /** * Retrieve Task * A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run to which the Task belongs. (required) * @param taskId The identifier of the Task you want to retrieve. (required) * @return Task * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A Task object. -
0 Unexpected error -
*/ public Task findTask(UUID workflowRunId, String taskId) throws ApiException { ApiResponse localVarResp = findTaskWithHttpInfo(workflowRunId, taskId); return localVarResp.getData(); } /** * Retrieve Task * A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run to which the Task belongs. (required) * @param taskId The identifier of the Task you want to retrieve. (required) * @return ApiResponse<Task> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A Task object. -
0 Unexpected error -
*/ public ApiResponse findTaskWithHttpInfo(UUID workflowRunId, String taskId) throws ApiException { okhttp3.Call localVarCall = findTaskValidateBeforeCall(workflowRunId, taskId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve Task (asynchronously) * A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run to which the Task belongs. (required) * @param taskId The identifier of the Task 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
Status Code Description Response Headers
200 A Task object. -
0 Unexpected error -
*/ public okhttp3.Call findTaskAsync(UUID workflowRunId, String taskId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findTaskValidateBeforeCall(workflowRunId, taskId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findTimelineFile * @param workflowRunId The unique identifier of the Workflow Run. (required) * @param timelineFileId The unique identifier for the Timefile File. (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
Status Code Description Response Headers
302 Found * Location - Link to the Timeline File.
200 The Timeline File PDF binary data. -
0 Unexpected error -
*/ public okhttp3.Call findTimelineFileCall(UUID workflowRunId, UUID timelineFileId, 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 = "/workflow_runs/{workflow_run_id}/timeline_file/{timeline_file_id}" .replace("{" + "workflow_run_id" + "}", localVarApiClient.escapeString(workflowRunId.toString())) .replace("{" + "timeline_file_id" + "}", localVarApiClient.escapeString(timelineFileId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); 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 findTimelineFileValidateBeforeCall(UUID workflowRunId, UUID timelineFileId, 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 findTimelineFile(Async)"); } // verify the required parameter 'timelineFileId' is set if (timelineFileId == null) { throw new ApiException("Missing the required parameter 'timelineFileId' when calling findTimelineFile(Async)"); } return findTimelineFileCall(workflowRunId, timelineFileId, _callback); } /** * Retrieve Timeline File for Workflow Run * Retrieves the Timeline File for the designated Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run. (required) * @param timelineFileId The unique identifier for the Timefile File. (required) * @return FileTransfer * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
302 Found * Location - Link to the Timeline File.
200 The Timeline File PDF binary data. -
0 Unexpected error -
*/ public FileTransfer findTimelineFile(UUID workflowRunId, UUID timelineFileId) throws ApiException { ApiResponse localVarResp = findTimelineFileWithHttpInfo(workflowRunId, timelineFileId); return localVarResp.getData(); } /** * Retrieve Timeline File for Workflow Run * Retrieves the Timeline File for the designated Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run. (required) * @param timelineFileId The unique identifier for the Timefile File. (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
Status Code Description Response Headers
302 Found * Location - Link to the Timeline File.
200 The Timeline File PDF binary data. -
0 Unexpected error -
*/ public ApiResponse findTimelineFileWithHttpInfo(UUID workflowRunId, UUID timelineFileId) throws ApiException { okhttp3.Call localVarCall = findTimelineFileValidateBeforeCall(workflowRunId, timelineFileId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve Timeline File for Workflow Run (asynchronously) * Retrieves the Timeline File for the designated Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run. (required) * @param timelineFileId The unique identifier for the Timefile File. (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
Status Code Description Response Headers
302 Found * Location - Link to the Timeline File.
200 The Timeline File PDF binary data. -
0 Unexpected error -
*/ public okhttp3.Call findTimelineFileAsync(UUID workflowRunId, UUID timelineFileId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findTimelineFileValidateBeforeCall(workflowRunId, timelineFileId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findWatchlistMonitor * @param monitorId The watchlist monitor's unique identifier. (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
Status Code Description Response Headers
200 A watchlist monitor -
0 Unexpected error -
*/ public okhttp3.Call findWatchlistMonitorCall(UUID monitorId, 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 = "/watchlist_monitors/{monitor_id}" .replace("{" + "monitor_id" + "}", localVarApiClient.escapeString(monitorId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 findWatchlistMonitorValidateBeforeCall(UUID monitorId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'monitorId' is set if (monitorId == null) { throw new ApiException("Missing the required parameter 'monitorId' when calling findWatchlistMonitor(Async)"); } return findWatchlistMonitorCall(monitorId, _callback); } /** * Retrieve monitor * Retrieves a single monitor * @param monitorId The watchlist monitor's unique identifier. (required) * @return WatchlistMonitor * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A watchlist monitor -
0 Unexpected error -
*/ public WatchlistMonitor findWatchlistMonitor(UUID monitorId) throws ApiException { ApiResponse localVarResp = findWatchlistMonitorWithHttpInfo(monitorId); return localVarResp.getData(); } /** * Retrieve monitor * Retrieves a single monitor * @param monitorId The watchlist monitor's unique identifier. (required) * @return ApiResponse<WatchlistMonitor> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A watchlist monitor -
0 Unexpected error -
*/ public ApiResponse findWatchlistMonitorWithHttpInfo(UUID monitorId) throws ApiException { okhttp3.Call localVarCall = findWatchlistMonitorValidateBeforeCall(monitorId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve monitor (asynchronously) * Retrieves a single monitor * @param monitorId The watchlist monitor's unique identifier. (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
Status Code Description Response Headers
200 A watchlist monitor -
0 Unexpected error -
*/ public okhttp3.Call findWatchlistMonitorAsync(UUID monitorId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findWatchlistMonitorValidateBeforeCall(monitorId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findWebhook * @param webhookId (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
Status Code Description Response Headers
200 Webhook object -
0 Unexpected error -
*/ public okhttp3.Call findWebhookCall(UUID webhookId, 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 = "/webhooks/{webhook_id}" .replace("{" + "webhook_id" + "}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 findWebhookValidateBeforeCall(UUID webhookId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling findWebhook(Async)"); } return findWebhookCall(webhookId, _callback); } /** * Retrieve a Webhook * Retrieves a single webhook. Returns a webhook object. * @param webhookId (required) * @return Webhook * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Webhook object -
0 Unexpected error -
*/ public Webhook findWebhook(UUID webhookId) throws ApiException { ApiResponse localVarResp = findWebhookWithHttpInfo(webhookId); return localVarResp.getData(); } /** * Retrieve a Webhook * Retrieves a single webhook. Returns a webhook object. * @param webhookId (required) * @return ApiResponse<Webhook> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Webhook object -
0 Unexpected error -
*/ public ApiResponse findWebhookWithHttpInfo(UUID webhookId) throws ApiException { okhttp3.Call localVarCall = findWebhookValidateBeforeCall(webhookId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve a Webhook (asynchronously) * Retrieves a single webhook. Returns a webhook object. * @param webhookId (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
Status Code Description Response Headers
200 Webhook object -
0 Unexpected error -
*/ public okhttp3.Call findWebhookAsync(UUID webhookId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findWebhookValidateBeforeCall(webhookId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for findWorkflowRun * @param workflowRunId The unique identifier of the Workflow Run. (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
Status Code Description Response Headers
200 A Workflow Run object. -
0 Unexpected error -
*/ public okhttp3.Call findWorkflowRunCall(UUID workflowRunId, 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 = "/workflow_runs/{workflow_run_id}" .replace("{" + "workflow_run_id" + "}", localVarApiClient.escapeString(workflowRunId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 findWorkflowRunValidateBeforeCall(UUID workflowRunId, 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 findWorkflowRun(Async)"); } return findWorkflowRunCall(workflowRunId, _callback); } /** * Retrieve Workflow Run * A single workflow run can be retrieved by calling this endpoint with the unique identifier of the Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run. (required) * @return WorkflowRun * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A Workflow Run object. -
0 Unexpected error -
*/ public WorkflowRun findWorkflowRun(UUID workflowRunId) throws ApiException { ApiResponse localVarResp = findWorkflowRunWithHttpInfo(workflowRunId); return localVarResp.getData(); } /** * Retrieve Workflow Run * A single workflow run can be retrieved by calling this endpoint with the unique identifier of the Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run. (required) * @return ApiResponse<WorkflowRun> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A Workflow Run object. -
0 Unexpected error -
*/ public ApiResponse findWorkflowRunWithHttpInfo(UUID workflowRunId) throws ApiException { okhttp3.Call localVarCall = findWorkflowRunValidateBeforeCall(workflowRunId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve Workflow Run (asynchronously) * A single workflow run can be retrieved by calling this endpoint with the unique identifier of the Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run. (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
Status Code Description Response Headers
200 A Workflow Run object. -
0 Unexpected error -
*/ public okhttp3.Call findWorkflowRunAsync(UUID workflowRunId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = findWorkflowRunValidateBeforeCall(workflowRunId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for forceReportCreationFromWatchlistMonitor * @param monitorId (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
Status Code Description Response Headers
201 Created * Location - Link to the newly generated report.
0 Unexpected error -
*/ public okhttp3.Call forceReportCreationFromWatchlistMonitorCall(UUID monitorId, 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 = "/watchlist_monitors/{monitor_id}/new_report" .replace("{" + "monitor_id" + "}", localVarApiClient.escapeString(monitorId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call forceReportCreationFromWatchlistMonitorValidateBeforeCall(UUID monitorId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'monitorId' is set if (monitorId == null) { throw new ApiException("Missing the required parameter 'monitorId' when calling forceReportCreationFromWatchlistMonitor(Async)"); } return forceReportCreationFromWatchlistMonitorCall(monitorId, _callback); } /** * Force new report creation (BETA) * Triggers a new check with an updated report to be generated by the monitor, as if the monitor had received an update. * @param monitorId (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created * Location - Link to the newly generated report.
0 Unexpected error -
*/ public void forceReportCreationFromWatchlistMonitor(UUID monitorId) throws ApiException { forceReportCreationFromWatchlistMonitorWithHttpInfo(monitorId); } /** * Force new report creation (BETA) * Triggers a new check with an updated report to be generated by the monitor, as if the monitor had received an update. * @param monitorId (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Created * Location - Link to the newly generated report.
0 Unexpected error -
*/ public ApiResponse forceReportCreationFromWatchlistMonitorWithHttpInfo(UUID monitorId) throws ApiException { okhttp3.Call localVarCall = forceReportCreationFromWatchlistMonitorValidateBeforeCall(monitorId, null); return localVarApiClient.execute(localVarCall); } /** * Force new report creation (BETA) (asynchronously) * Triggers a new check with an updated report to be generated by the monitor, as if the monitor had received an update. * @param monitorId (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
Status Code Description Response Headers
201 Created * Location - Link to the newly generated report.
0 Unexpected error -
*/ public okhttp3.Call forceReportCreationFromWatchlistMonitorAsync(UUID monitorId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = forceReportCreationFromWatchlistMonitorValidateBeforeCall(monitorId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for generateSdkToken * @param sdkTokenBuilder (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
Status Code Description Response Headers
200 Generated -
0 Unexpected error -
*/ public okhttp3.Call generateSdkTokenCall(SdkTokenBuilder sdkTokenBuilder, 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 = sdkTokenBuilder; // create path and map variables String localVarPath = "/sdk_token"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call generateSdkTokenValidateBeforeCall(SdkTokenBuilder sdkTokenBuilder, final ApiCallback _callback) throws ApiException { // verify the required parameter 'sdkTokenBuilder' is set if (sdkTokenBuilder == null) { throw new ApiException("Missing the required parameter 'sdkTokenBuilder' when calling generateSdkToken(Async)"); } return generateSdkTokenCall(sdkTokenBuilder, _callback); } /** * Generate a SDK token * Generates an SDK token. Returns a token object containing the SDK token. * @param sdkTokenBuilder (required) * @return SdkToken * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Generated -
0 Unexpected error -
*/ public SdkToken generateSdkToken(SdkTokenBuilder sdkTokenBuilder) throws ApiException { ApiResponse localVarResp = generateSdkTokenWithHttpInfo(sdkTokenBuilder); return localVarResp.getData(); } /** * Generate a SDK token * Generates an SDK token. Returns a token object containing the SDK token. * @param sdkTokenBuilder (required) * @return ApiResponse<SdkToken> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Generated -
0 Unexpected error -
*/ public ApiResponse generateSdkTokenWithHttpInfo(SdkTokenBuilder sdkTokenBuilder) throws ApiException { okhttp3.Call localVarCall = generateSdkTokenValidateBeforeCall(sdkTokenBuilder, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Generate a SDK token (asynchronously) * Generates an SDK token. Returns a token object containing the SDK token. * @param sdkTokenBuilder (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
Status Code Description Response Headers
200 Generated -
0 Unexpected error -
*/ public okhttp3.Call generateSdkTokenAsync(SdkTokenBuilder sdkTokenBuilder, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = generateSdkTokenValidateBeforeCall(sdkTokenBuilder, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listApplicants * @param page The page to return. The first page is `page=1` (optional, default to 1) * @param perPage The number of objects per page. (optional, default to 20) * @param includeDeleted Whether to also include applicants scheduled for deletion. (optional, default to false) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 A list of applicants -
0 Unexpected error -
*/ public okhttp3.Call listApplicantsCall(Integer page, Integer perPage, Boolean includeDeleted, 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 = "/applicants"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } if (perPage != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); } if (includeDeleted != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_deleted", includeDeleted)); } final String[] localVarAccepts = { "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 listApplicantsValidateBeforeCall(Integer page, Integer perPage, Boolean includeDeleted, final ApiCallback _callback) throws ApiException { return listApplicantsCall(page, perPage, includeDeleted, _callback); } /** * List Applicants * Lists all applicants you've created, sorted by creation date in descending order. * @param page The page to return. The first page is `page=1` (optional, default to 1) * @param perPage The number of objects per page. (optional, default to 20) * @param includeDeleted Whether to also include applicants scheduled for deletion. (optional, default to false) * @return ApplicantsList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A list of applicants -
0 Unexpected error -
*/ public ApplicantsList listApplicants(Integer page, Integer perPage, Boolean includeDeleted) throws ApiException { ApiResponse localVarResp = listApplicantsWithHttpInfo(page, perPage, includeDeleted); return localVarResp.getData(); } /** * List Applicants * Lists all applicants you've created, sorted by creation date in descending order. * @param page The page to return. The first page is `page=1` (optional, default to 1) * @param perPage The number of objects per page. (optional, default to 20) * @param includeDeleted Whether to also include applicants scheduled for deletion. (optional, default to false) * @return ApiResponse<ApplicantsList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A list of applicants -
0 Unexpected error -
*/ public ApiResponse listApplicantsWithHttpInfo(Integer page, Integer perPage, Boolean includeDeleted) throws ApiException { okhttp3.Call localVarCall = listApplicantsValidateBeforeCall(page, perPage, includeDeleted, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Applicants (asynchronously) * Lists all applicants you've created, sorted by creation date in descending order. * @param page The page to return. The first page is `page=1` (optional, default to 1) * @param perPage The number of objects per page. (optional, default to 20) * @param includeDeleted Whether to also include applicants scheduled for deletion. (optional, default to false) * @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
Status Code Description Response Headers
200 A list of applicants -
0 Unexpected error -
*/ public okhttp3.Call listApplicantsAsync(Integer page, Integer perPage, Boolean includeDeleted, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listApplicantsValidateBeforeCall(page, perPage, includeDeleted, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listChecks * @param applicantId (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
Status Code Description Response Headers
200 An array of checks -
0 Unexpected error -
*/ public okhttp3.Call listChecksCall(UUID applicantId, 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 = "/checks"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (applicantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("applicant_id", applicantId)); } final String[] localVarAccepts = { "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 listChecksValidateBeforeCall(UUID applicantId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicantId' is set if (applicantId == null) { throw new ApiException("Missing the required parameter 'applicantId' when calling listChecks(Async)"); } return listChecksCall(applicantId, _callback); } /** * Retrieve Checks * Retrieves a single check. Returns a check object. * @param applicantId (required) * @return ChecksList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of checks -
0 Unexpected error -
*/ public ChecksList listChecks(UUID applicantId) throws ApiException { ApiResponse localVarResp = listChecksWithHttpInfo(applicantId); return localVarResp.getData(); } /** * Retrieve Checks * Retrieves a single check. Returns a check object. * @param applicantId (required) * @return ApiResponse<ChecksList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of checks -
0 Unexpected error -
*/ public ApiResponse listChecksWithHttpInfo(UUID applicantId) throws ApiException { okhttp3.Call localVarCall = listChecksValidateBeforeCall(applicantId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve Checks (asynchronously) * Retrieves a single check. Returns a check object. * @param applicantId (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
Status Code Description Response Headers
200 An array of checks -
0 Unexpected error -
*/ public okhttp3.Call listChecksAsync(UUID applicantId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listChecksValidateBeforeCall(applicantId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listDocuments * @param applicantId (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
Status Code Description Response Headers
200 List of Documents -
0 Unexpected error -
*/ public okhttp3.Call listDocumentsCall(UUID applicantId, 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 = "/documents"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (applicantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("applicant_id", applicantId)); } final String[] localVarAccepts = { "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 listDocumentsValidateBeforeCall(UUID applicantId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicantId' is set if (applicantId == null) { throw new ApiException("Missing the required parameter 'applicantId' when calling listDocuments(Async)"); } return listDocumentsCall(applicantId, _callback); } /** * List documents * All documents belonging to an applicant can be listed from this endpoint * @param applicantId (required) * @return DocumentsList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 List of Documents -
0 Unexpected error -
*/ public DocumentsList listDocuments(UUID applicantId) throws ApiException { ApiResponse localVarResp = listDocumentsWithHttpInfo(applicantId); return localVarResp.getData(); } /** * List documents * All documents belonging to an applicant can be listed from this endpoint * @param applicantId (required) * @return ApiResponse<DocumentsList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 List of Documents -
0 Unexpected error -
*/ public ApiResponse listDocumentsWithHttpInfo(UUID applicantId) throws ApiException { okhttp3.Call localVarCall = listDocumentsValidateBeforeCall(applicantId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List documents (asynchronously) * All documents belonging to an applicant can be listed from this endpoint * @param applicantId (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
Status Code Description Response Headers
200 List of Documents -
0 Unexpected error -
*/ public okhttp3.Call listDocumentsAsync(UUID applicantId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listDocumentsValidateBeforeCall(applicantId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listIdPhotos * @param applicantId The id of the applicant the ID photos belong to. (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
Status Code Description Response Headers
200 An array of ID photos -
0 Unexpected error -
*/ public okhttp3.Call listIdPhotosCall(UUID applicantId, 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 = "/id_photos"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (applicantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("applicant_id", applicantId)); } final String[] localVarAccepts = { "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 listIdPhotosValidateBeforeCall(UUID applicantId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicantId' is set if (applicantId == null) { throw new ApiException("Missing the required parameter 'applicantId' when calling listIdPhotos(Async)"); } return listIdPhotosCall(applicantId, _callback); } /** * List ID photos * Lists the ID photos that belong to an applicant. * @param applicantId The id of the applicant the ID photos belong to. (required) * @return IdPhotosList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of ID photos -
0 Unexpected error -
*/ public IdPhotosList listIdPhotos(UUID applicantId) throws ApiException { ApiResponse localVarResp = listIdPhotosWithHttpInfo(applicantId); return localVarResp.getData(); } /** * List ID photos * Lists the ID photos that belong to an applicant. * @param applicantId The id of the applicant the ID photos belong to. (required) * @return ApiResponse<IdPhotosList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of ID photos -
0 Unexpected error -
*/ public ApiResponse listIdPhotosWithHttpInfo(UUID applicantId) throws ApiException { okhttp3.Call localVarCall = listIdPhotosValidateBeforeCall(applicantId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List ID photos (asynchronously) * Lists the ID photos that belong to an applicant. * @param applicantId The id of the applicant the ID photos belong to. (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
Status Code Description Response Headers
200 An array of ID photos -
0 Unexpected error -
*/ public okhttp3.Call listIdPhotosAsync(UUID applicantId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listIdPhotosValidateBeforeCall(applicantId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listLivePhotos * @param applicantId The id of the applicant the live photos belong to. (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
Status Code Description Response Headers
200 An array of live photos -
0 Unexpected error -
*/ public okhttp3.Call listLivePhotosCall(UUID applicantId, 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 = "/live_photos"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (applicantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("applicant_id", applicantId)); } final String[] localVarAccepts = { "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 listLivePhotosValidateBeforeCall(UUID applicantId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicantId' is set if (applicantId == null) { throw new ApiException("Missing the required parameter 'applicantId' when calling listLivePhotos(Async)"); } return listLivePhotosCall(applicantId, _callback); } /** * List live photos * Lists the live photos that belong to an applicant. * @param applicantId The id of the applicant the live photos belong to. (required) * @return LivePhotosList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of live photos -
0 Unexpected error -
*/ public LivePhotosList listLivePhotos(UUID applicantId) throws ApiException { ApiResponse localVarResp = listLivePhotosWithHttpInfo(applicantId); return localVarResp.getData(); } /** * List live photos * Lists the live photos that belong to an applicant. * @param applicantId The id of the applicant the live photos belong to. (required) * @return ApiResponse<LivePhotosList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of live photos -
0 Unexpected error -
*/ public ApiResponse listLivePhotosWithHttpInfo(UUID applicantId) throws ApiException { okhttp3.Call localVarCall = listLivePhotosValidateBeforeCall(applicantId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List live photos (asynchronously) * Lists the live photos that belong to an applicant. * @param applicantId The id of the applicant the live photos belong to. (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
Status Code Description Response Headers
200 An array of live photos -
0 Unexpected error -
*/ public okhttp3.Call listLivePhotosAsync(UUID applicantId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listLivePhotosValidateBeforeCall(applicantId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listLiveVideos * @param applicantId The id of the applicant the live videos belong to. (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
Status Code Description Response Headers
200 An array of live videos -
0 Unexpected error -
*/ public okhttp3.Call listLiveVideosCall(UUID applicantId, 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 = "/live_videos"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (applicantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("applicant_id", applicantId)); } final String[] localVarAccepts = { "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 listLiveVideosValidateBeforeCall(UUID applicantId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicantId' is set if (applicantId == null) { throw new ApiException("Missing the required parameter 'applicantId' when calling listLiveVideos(Async)"); } return listLiveVideosCall(applicantId, _callback); } /** * List live videos * Lists all the live videos that belong to an applicant. * @param applicantId The id of the applicant the live videos belong to. (required) * @return LiveVideosList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of live videos -
0 Unexpected error -
*/ public LiveVideosList listLiveVideos(UUID applicantId) throws ApiException { ApiResponse localVarResp = listLiveVideosWithHttpInfo(applicantId); return localVarResp.getData(); } /** * List live videos * Lists all the live videos that belong to an applicant. * @param applicantId The id of the applicant the live videos belong to. (required) * @return ApiResponse<LiveVideosList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of live videos -
0 Unexpected error -
*/ public ApiResponse listLiveVideosWithHttpInfo(UUID applicantId) throws ApiException { okhttp3.Call localVarCall = listLiveVideosValidateBeforeCall(applicantId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List live videos (asynchronously) * Lists all the live videos that belong to an applicant. * @param applicantId The id of the applicant the live videos belong to. (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
Status Code Description Response Headers
200 An array of live videos -
0 Unexpected error -
*/ public okhttp3.Call listLiveVideosAsync(UUID applicantId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listLiveVideosValidateBeforeCall(applicantId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listMotionCaptures * @param applicantId The id of the applicant the motion captures belong to. (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
Status Code Description Response Headers
200 An array of motion captures -
0 Unexpected error -
*/ public okhttp3.Call listMotionCapturesCall(UUID applicantId, 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 = "/motion_captures"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (applicantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("applicant_id", applicantId)); } final String[] localVarAccepts = { "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 listMotionCapturesValidateBeforeCall(UUID applicantId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicantId' is set if (applicantId == null) { throw new ApiException("Missing the required parameter 'applicantId' when calling listMotionCaptures(Async)"); } return listMotionCapturesCall(applicantId, _callback); } /** * List motion captures * Lists all the motion captures that belong to an applicant. * @param applicantId The id of the applicant the motion captures belong to. (required) * @return MotionCapturesList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of motion captures -
0 Unexpected error -
*/ public MotionCapturesList listMotionCaptures(UUID applicantId) throws ApiException { ApiResponse localVarResp = listMotionCapturesWithHttpInfo(applicantId); return localVarResp.getData(); } /** * List motion captures * Lists all the motion captures that belong to an applicant. * @param applicantId The id of the applicant the motion captures belong to. (required) * @return ApiResponse<MotionCapturesList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of motion captures -
0 Unexpected error -
*/ public ApiResponse listMotionCapturesWithHttpInfo(UUID applicantId) throws ApiException { okhttp3.Call localVarCall = listMotionCapturesValidateBeforeCall(applicantId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List motion captures (asynchronously) * Lists all the motion captures that belong to an applicant. * @param applicantId The id of the applicant the motion captures belong to. (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
Status Code Description Response Headers
200 An array of motion captures -
0 Unexpected error -
*/ public okhttp3.Call listMotionCapturesAsync(UUID applicantId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listMotionCapturesValidateBeforeCall(applicantId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listRepeatAttempts * @param reportId (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
Status Code Description Response Headers
200 Repeat attempts object -
0 Unexpected error -
*/ public okhttp3.Call listRepeatAttemptsCall(UUID reportId, 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 = "/repeat_attempts/{report_id}" .replace("{" + "report_id" + "}", localVarApiClient.escapeString(reportId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 listRepeatAttemptsValidateBeforeCall(UUID reportId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'reportId' is set if (reportId == null) { throw new ApiException("Missing the required parameter 'reportId' when calling listRepeatAttempts(Async)"); } return listRepeatAttemptsCall(reportId, _callback); } /** * Retrieve repeat attempts * Returns all repeat attempts for a given Document report * @param reportId (required) * @return RepeatAttemptsList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Repeat attempts object -
0 Unexpected error -
*/ public RepeatAttemptsList listRepeatAttempts(UUID reportId) throws ApiException { ApiResponse localVarResp = listRepeatAttemptsWithHttpInfo(reportId); return localVarResp.getData(); } /** * Retrieve repeat attempts * Returns all repeat attempts for a given Document report * @param reportId (required) * @return ApiResponse<RepeatAttemptsList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Repeat attempts object -
0 Unexpected error -
*/ public ApiResponse listRepeatAttemptsWithHttpInfo(UUID reportId) throws ApiException { okhttp3.Call localVarCall = listRepeatAttemptsValidateBeforeCall(reportId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Retrieve repeat attempts (asynchronously) * Returns all repeat attempts for a given Document report * @param reportId (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
Status Code Description Response Headers
200 Repeat attempts object -
0 Unexpected error -
*/ public okhttp3.Call listRepeatAttemptsAsync(UUID reportId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listRepeatAttemptsValidateBeforeCall(reportId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listReports * @param checkId (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
Status Code Description Response Headers
200 List of Reports -
0 Unexpected error -
*/ public okhttp3.Call listReportsCall(UUID checkId, 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 = "/reports"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (checkId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("check_id", checkId)); } final String[] localVarAccepts = { "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 listReportsValidateBeforeCall(UUID checkId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'checkId' is set if (checkId == null) { throw new ApiException("Missing the required parameter 'checkId' when calling listReports(Async)"); } return listReportsCall(checkId, _callback); } /** * List reports * All the reports belonging to a particular check can be listed from this endpoint. * @param checkId (required) * @return ReportsList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 List of Reports -
0 Unexpected error -
*/ public ReportsList listReports(UUID checkId) throws ApiException { ApiResponse localVarResp = listReportsWithHttpInfo(checkId); return localVarResp.getData(); } /** * List reports * All the reports belonging to a particular check can be listed from this endpoint. * @param checkId (required) * @return ApiResponse<ReportsList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 List of Reports -
0 Unexpected error -
*/ public ApiResponse listReportsWithHttpInfo(UUID checkId) throws ApiException { okhttp3.Call localVarCall = listReportsValidateBeforeCall(checkId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List reports (asynchronously) * All the reports belonging to a particular check can be listed from this endpoint. * @param checkId (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
Status Code Description Response Headers
200 List of Reports -
0 Unexpected error -
*/ public okhttp3.Call listReportsAsync(UUID checkId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listReportsValidateBeforeCall(checkId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listTasks * @param workflowRunId The unique identifier of the Workflow Run to which the Tasks belong. (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
Status Code Description Response Headers
200 An array of subset Task objects that were already started or completed, ordered by the created_at field, in ascending order. -
0 Unexpected error -
*/ public okhttp3.Call listTasksCall(UUID workflowRunId, 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 = "/workflow_runs/{workflow_run_id}/tasks" .replace("{" + "workflow_run_id" + "}", localVarApiClient.escapeString(workflowRunId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 listTasksValidateBeforeCall(UUID workflowRunId, 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 listTasks(Async)"); } return listTasksCall(workflowRunId, _callback); } /** * List Tasks * The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run to which the Tasks belong. (required) * @return List<TaskItem> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of subset Task objects that were already started or completed, ordered by the created_at field, in ascending order. -
0 Unexpected error -
*/ public List listTasks(UUID workflowRunId) throws ApiException { ApiResponse> localVarResp = listTasksWithHttpInfo(workflowRunId); return localVarResp.getData(); } /** * List Tasks * The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run to which the Tasks belong. (required) * @return ApiResponse<List<TaskItem>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of subset Task objects that were already started or completed, ordered by the created_at field, in ascending order. -
0 Unexpected error -
*/ public ApiResponse> listTasksWithHttpInfo(UUID workflowRunId) throws ApiException { okhttp3.Call localVarCall = listTasksValidateBeforeCall(workflowRunId, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Tasks (asynchronously) * The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run. * @param workflowRunId The unique identifier of the Workflow Run to which the Tasks belong. (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
Status Code Description Response Headers
200 An array of subset Task objects that were already started or completed, ordered by the created_at field, in ascending order. -
0 Unexpected error -
*/ public okhttp3.Call listTasksAsync(UUID workflowRunId, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = listTasksValidateBeforeCall(workflowRunId, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listWatchlistMonitorMatches * @param monitorId (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
Status Code Description Response Headers
200 An array of watchlist monitors -
*/ public okhttp3.Call listWatchlistMonitorMatchesCall(UUID monitorId, 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 = "/watchlist_monitors/{monitor_id}/matches" .replace("{" + "monitor_id" + "}", localVarApiClient.escapeString(monitorId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 listWatchlistMonitorMatchesValidateBeforeCall(UUID monitorId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'monitorId' is set if (monitorId == null) { throw new ApiException("Missing the required parameter 'monitorId' when calling listWatchlistMonitorMatches(Async)"); } return listWatchlistMonitorMatchesCall(monitorId, _callback); } /** * List matches (BETA) * List match IDs on this monitor, as well as their enabled/disabled status * @param monitorId (required) * @return WatchlistMonitorMatchesList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of watchlist monitors -
*/ public WatchlistMonitorMatchesList listWatchlistMonitorMatches(UUID monitorId) throws ApiException { ApiResponse localVarResp = listWatchlistMonitorMatchesWithHttpInfo(monitorId); return localVarResp.getData(); } /** * List matches (BETA) * List match IDs on this monitor, as well as their enabled/disabled status * @param monitorId (required) * @return ApiResponse<WatchlistMonitorMatchesList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of watchlist monitors -
*/ public ApiResponse listWatchlistMonitorMatchesWithHttpInfo(UUID monitorId) throws ApiException { okhttp3.Call localVarCall = listWatchlistMonitorMatchesValidateBeforeCall(monitorId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List matches (BETA) (asynchronously) * List match IDs on this monitor, as well as their enabled/disabled status * @param monitorId (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
Status Code Description Response Headers
200 An array of watchlist monitors -
*/ public okhttp3.Call listWatchlistMonitorMatchesAsync(UUID monitorId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listWatchlistMonitorMatchesValidateBeforeCall(monitorId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listWatchlistMonitors * @param applicantId The id of the applicant the watchlist monitors belong to. If omitted, all monitors for the account will be listed. (required) * @param includeDeleted Whether to also include deleted (inactive) monitors. (optional, default to false) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 An array of watchlist monitors -
0 Unexpected error -
*/ public okhttp3.Call listWatchlistMonitorsCall(UUID applicantId, Boolean includeDeleted, 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 = "/watchlist_monitors"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (applicantId != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("applicant_id", applicantId)); } if (includeDeleted != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("include_deleted", includeDeleted)); } final String[] localVarAccepts = { "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 listWatchlistMonitorsValidateBeforeCall(UUID applicantId, Boolean includeDeleted, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicantId' is set if (applicantId == null) { throw new ApiException("Missing the required parameter 'applicantId' when calling listWatchlistMonitors(Async)"); } return listWatchlistMonitorsCall(applicantId, includeDeleted, _callback); } /** * List monitors * List all available monitors for an applicant * @param applicantId The id of the applicant the watchlist monitors belong to. If omitted, all monitors for the account will be listed. (required) * @param includeDeleted Whether to also include deleted (inactive) monitors. (optional, default to false) * @return WatchlistMonitorsList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of watchlist monitors -
0 Unexpected error -
*/ public WatchlistMonitorsList listWatchlistMonitors(UUID applicantId, Boolean includeDeleted) throws ApiException { ApiResponse localVarResp = listWatchlistMonitorsWithHttpInfo(applicantId, includeDeleted); return localVarResp.getData(); } /** * List monitors * List all available monitors for an applicant * @param applicantId The id of the applicant the watchlist monitors belong to. If omitted, all monitors for the account will be listed. (required) * @param includeDeleted Whether to also include deleted (inactive) monitors. (optional, default to false) * @return ApiResponse<WatchlistMonitorsList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of watchlist monitors -
0 Unexpected error -
*/ public ApiResponse listWatchlistMonitorsWithHttpInfo(UUID applicantId, Boolean includeDeleted) throws ApiException { okhttp3.Call localVarCall = listWatchlistMonitorsValidateBeforeCall(applicantId, includeDeleted, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List monitors (asynchronously) * List all available monitors for an applicant * @param applicantId The id of the applicant the watchlist monitors belong to. If omitted, all monitors for the account will be listed. (required) * @param includeDeleted Whether to also include deleted (inactive) monitors. (optional, default to false) * @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
Status Code Description Response Headers
200 An array of watchlist monitors -
0 Unexpected error -
*/ public okhttp3.Call listWatchlistMonitorsAsync(UUID applicantId, Boolean includeDeleted, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listWatchlistMonitorsValidateBeforeCall(applicantId, includeDeleted, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listWebhooks * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 A list of webhooks -
0 Unexpected error -
*/ public okhttp3.Call listWebhooksCall(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 = "/webhooks"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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 listWebhooksValidateBeforeCall(final ApiCallback _callback) throws ApiException { return listWebhooksCall(_callback); } /** * List webhooks * Lists all webhooks you've created. * @return WebhooksList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A list of webhooks -
0 Unexpected error -
*/ public WebhooksList listWebhooks() throws ApiException { ApiResponse localVarResp = listWebhooksWithHttpInfo(); return localVarResp.getData(); } /** * List webhooks * Lists all webhooks you've created. * @return ApiResponse<WebhooksList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 A list of webhooks -
0 Unexpected error -
*/ public ApiResponse listWebhooksWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = listWebhooksValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List webhooks (asynchronously) * Lists all webhooks you've created. * @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
Status Code Description Response Headers
200 A list of webhooks -
0 Unexpected error -
*/ public okhttp3.Call listWebhooksAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listWebhooksValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for listWorkflowRuns * @param page The number of the page to be retrieved. If not specified, defaults to 1. (optional, default to 1) * @param status A list of comma separated status values to filter the results. Possible values are 'processing', 'awaiting_input', 'approved', 'declined', 'review', 'abandoned' and 'error'. (optional) * @param createdAtGt A ISO-8601 date to filter results with a created date greater than (after) the one provided. (optional) * @param createdAtLt A ISO-8601 date to filter results with a created date less than (before) the one provided. (optional) * @param sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (optional, default to desc) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 An array of Workflow Run objects matching the query parameters. -
0 Unexpected error -
*/ public okhttp3.Call listWorkflowRunsCall(Integer page, String status, OffsetDateTime createdAtGt, OffsetDateTime createdAtLt, String sort, 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 = "/workflow_runs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } if (status != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); } if (createdAtGt != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("created_at_gt", createdAtGt)); } if (createdAtLt != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("created_at_lt", createdAtLt)); } if (sort != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("sort", sort)); } final String[] localVarAccepts = { "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 listWorkflowRunsValidateBeforeCall(Integer page, String status, OffsetDateTime createdAtGt, OffsetDateTime createdAtLt, String sort, final ApiCallback _callback) throws ApiException { return listWorkflowRunsCall(page, status, createdAtGt, createdAtLt, sort, _callback); } /** * List Workflow Runs * Retrieves the Workflow Runs of the client. Returns a list of Workflow Run objects. * @param page The number of the page to be retrieved. If not specified, defaults to 1. (optional, default to 1) * @param status A list of comma separated status values to filter the results. Possible values are 'processing', 'awaiting_input', 'approved', 'declined', 'review', 'abandoned' and 'error'. (optional) * @param createdAtGt A ISO-8601 date to filter results with a created date greater than (after) the one provided. (optional) * @param createdAtLt A ISO-8601 date to filter results with a created date less than (before) the one provided. (optional) * @param sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (optional, default to desc) * @return List<WorkflowRun> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of Workflow Run objects matching the query parameters. -
0 Unexpected error -
*/ public List listWorkflowRuns(Integer page, String status, OffsetDateTime createdAtGt, OffsetDateTime createdAtLt, String sort) throws ApiException { ApiResponse> localVarResp = listWorkflowRunsWithHttpInfo(page, status, createdAtGt, createdAtLt, sort); return localVarResp.getData(); } /** * List Workflow Runs * Retrieves the Workflow Runs of the client. Returns a list of Workflow Run objects. * @param page The number of the page to be retrieved. If not specified, defaults to 1. (optional, default to 1) * @param status A list of comma separated status values to filter the results. Possible values are 'processing', 'awaiting_input', 'approved', 'declined', 'review', 'abandoned' and 'error'. (optional) * @param createdAtGt A ISO-8601 date to filter results with a created date greater than (after) the one provided. (optional) * @param createdAtLt A ISO-8601 date to filter results with a created date less than (before) the one provided. (optional) * @param sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (optional, default to desc) * @return ApiResponse<List<WorkflowRun>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of Workflow Run objects matching the query parameters. -
0 Unexpected error -
*/ public ApiResponse> listWorkflowRunsWithHttpInfo(Integer page, String status, OffsetDateTime createdAtGt, OffsetDateTime createdAtLt, String sort) throws ApiException { okhttp3.Call localVarCall = listWorkflowRunsValidateBeforeCall(page, status, createdAtGt, createdAtLt, sort, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * List Workflow Runs (asynchronously) * Retrieves the Workflow Runs of the client. Returns a list of Workflow Run objects. * @param page The number of the page to be retrieved. If not specified, defaults to 1. (optional, default to 1) * @param status A list of comma separated status values to filter the results. Possible values are 'processing', 'awaiting_input', 'approved', 'declined', 'review', 'abandoned' and 'error'. (optional) * @param createdAtGt A ISO-8601 date to filter results with a created date greater than (after) the one provided. (optional) * @param createdAtLt A ISO-8601 date to filter results with a created date less than (before) the one provided. (optional) * @param sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (optional, default to desc) * @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
Status Code Description Response Headers
200 An array of Workflow Run objects matching the query parameters. -
0 Unexpected error -
*/ public okhttp3.Call listWorkflowRunsAsync(Integer page, String status, OffsetDateTime createdAtGt, OffsetDateTime createdAtLt, String sort, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = listWorkflowRunsValidateBeforeCall(page, status, createdAtGt, createdAtLt, sort, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for ping * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Regional base URL is operational -
0 Unexpected error -
*/ public okhttp3.Call pingCall(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 = "/ping"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "text/plain", "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 pingValidateBeforeCall(final ApiCallback _callback) throws ApiException { return pingCall(_callback); } /** * Ping * Run a health check on the Onfido API * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Regional base URL is operational -
0 Unexpected error -
*/ public String ping() throws ApiException { ApiResponse localVarResp = pingWithHttpInfo(); return localVarResp.getData(); } /** * Ping * Run a health check on the Onfido API * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Regional base URL is operational -
0 Unexpected error -
*/ public ApiResponse pingWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = pingValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Ping (asynchronously) * Run a health check on the Onfido API * @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
Status Code Description Response Headers
200 Regional base URL is operational -
0 Unexpected error -
*/ public okhttp3.Call pingAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = pingValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for postResultsFeedback * @param resultsFeedback (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
Status Code Description Response Headers
200 Created feedback -
0 Unexpected error -
*/ public okhttp3.Call postResultsFeedbackCall(ResultsFeedback resultsFeedback, 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 = resultsFeedback; // create path and map variables String localVarPath = "/results_feedback"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call postResultsFeedbackValidateBeforeCall(ResultsFeedback resultsFeedback, final ApiCallback _callback) throws ApiException { // verify the required parameter 'resultsFeedback' is set if (resultsFeedback == null) { throw new ApiException("Missing the required parameter 'resultsFeedback' when calling postResultsFeedback(Async)"); } return postResultsFeedbackCall(resultsFeedback, _callback); } /** * Fraud reporting (ALPHA) * Create Feedback on checks and reports * @param resultsFeedback (required) * @return ResultsFeedback * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Created feedback -
0 Unexpected error -
*/ public ResultsFeedback postResultsFeedback(ResultsFeedback resultsFeedback) throws ApiException { ApiResponse localVarResp = postResultsFeedbackWithHttpInfo(resultsFeedback); return localVarResp.getData(); } /** * Fraud reporting (ALPHA) * Create Feedback on checks and reports * @param resultsFeedback (required) * @return ApiResponse<ResultsFeedback> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Created feedback -
0 Unexpected error -
*/ public ApiResponse postResultsFeedbackWithHttpInfo(ResultsFeedback resultsFeedback) throws ApiException { okhttp3.Call localVarCall = postResultsFeedbackValidateBeforeCall(resultsFeedback, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Fraud reporting (ALPHA) (asynchronously) * Create Feedback on checks and reports * @param resultsFeedback (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
Status Code Description Response Headers
200 Created feedback -
0 Unexpected error -
*/ public okhttp3.Call postResultsFeedbackAsync(ResultsFeedback resultsFeedback, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = postResultsFeedbackValidateBeforeCall(resultsFeedback, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for resendWebhooks * @param webhookResend (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
Status Code Description Response Headers
204 Webhooks are resent for the respective checks -
422 Request was received but it could not be processed -
0 Unexpected error -
*/ public okhttp3.Call resendWebhooksCall(WebhookResend webhookResend, 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 = webhookResend; // create path and map variables String localVarPath = "/webhooks/resend"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call resendWebhooksValidateBeforeCall(WebhookResend webhookResend, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookResend' is set if (webhookResend == null) { throw new ApiException("Missing the required parameter 'webhookResend' when calling resendWebhooks(Async)"); } return resendWebhooksCall(webhookResend, _callback); } /** * Resends webhooks * Resends events to all webhooks registered with a matching environment in your account. * @param webhookResend (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Webhooks are resent for the respective checks -
422 Request was received but it could not be processed -
0 Unexpected error -
*/ public void resendWebhooks(WebhookResend webhookResend) throws ApiException { resendWebhooksWithHttpInfo(webhookResend); } /** * Resends webhooks * Resends events to all webhooks registered with a matching environment in your account. * @param webhookResend (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Webhooks are resent for the respective checks -
422 Request was received but it could not be processed -
0 Unexpected error -
*/ public ApiResponse resendWebhooksWithHttpInfo(WebhookResend webhookResend) throws ApiException { okhttp3.Call localVarCall = resendWebhooksValidateBeforeCall(webhookResend, null); return localVarApiClient.execute(localVarCall); } /** * Resends webhooks (asynchronously) * Resends events to all webhooks registered with a matching environment in your account. * @param webhookResend (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
Status Code Description Response Headers
204 Webhooks are resent for the respective checks -
422 Request was received but it could not be processed -
0 Unexpected error -
*/ public okhttp3.Call resendWebhooksAsync(WebhookResend webhookResend, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = resendWebhooksValidateBeforeCall(webhookResend, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for restoreApplicant * @param applicantId (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
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public okhttp3.Call restoreApplicantCall(UUID applicantId, 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 = "/applicants/{applicant_id}/restore" .replace("{" + "applicant_id" + "}", localVarApiClient.escapeString(applicantId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call restoreApplicantValidateBeforeCall(UUID applicantId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicantId' is set if (applicantId == null) { throw new ApiException("Missing the required parameter 'applicantId' when calling restoreApplicant(Async)"); } return restoreApplicantCall(applicantId, _callback); } /** * Restore Applicant * Restores a single applicant scheduled for deletion. * @param applicantId (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public void restoreApplicant(UUID applicantId) throws ApiException { restoreApplicantWithHttpInfo(applicantId); } /** * Restore Applicant * Restores a single applicant scheduled for deletion. * @param applicantId (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public ApiResponse restoreApplicantWithHttpInfo(UUID applicantId) throws ApiException { okhttp3.Call localVarCall = restoreApplicantValidateBeforeCall(applicantId, null); return localVarApiClient.execute(localVarCall); } /** * Restore Applicant (asynchronously) * Restores a single applicant scheduled for deletion. * @param applicantId (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
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public okhttp3.Call restoreApplicantAsync(UUID applicantId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = restoreApplicantValidateBeforeCall(applicantId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for resumeCheck * @param checkId (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
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public okhttp3.Call resumeCheckCall(UUID checkId, 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 = "/checks/{check_id}/resume" .replace("{" + "check_id" + "}", localVarApiClient.escapeString(checkId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call resumeCheckValidateBeforeCall(UUID checkId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'checkId' is set if (checkId == null) { throw new ApiException("Missing the required parameter 'checkId' when calling resumeCheck(Async)"); } return resumeCheckCall(checkId, _callback); } /** * Resume a Check * Resumes a paused check. * @param checkId (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public void resumeCheck(UUID checkId) throws ApiException { resumeCheckWithHttpInfo(checkId); } /** * Resume a Check * Resumes a paused check. * @param checkId (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public ApiResponse resumeCheckWithHttpInfo(UUID checkId) throws ApiException { okhttp3.Call localVarCall = resumeCheckValidateBeforeCall(checkId, null); return localVarApiClient.execute(localVarCall); } /** * Resume a Check (asynchronously) * Resumes a paused check. * @param checkId (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
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public okhttp3.Call resumeCheckAsync(UUID checkId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = resumeCheckValidateBeforeCall(checkId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for resumeReport * @param reportId (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
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public okhttp3.Call resumeReportCall(UUID reportId, 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 = "/reports/{report_id}/resume" .replace("{" + "report_id" + "}", localVarApiClient.escapeString(reportId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call resumeReportValidateBeforeCall(UUID reportId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'reportId' is set if (reportId == null) { throw new ApiException("Missing the required parameter 'reportId' when calling resumeReport(Async)"); } return resumeReportCall(reportId, _callback); } /** * Resume report * Resumes a single paused report. * @param reportId (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public void resumeReport(UUID reportId) throws ApiException { resumeReportWithHttpInfo(reportId); } /** * Resume report * Resumes a single paused report. * @param reportId (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public ApiResponse resumeReportWithHttpInfo(UUID reportId) throws ApiException { okhttp3.Call localVarCall = resumeReportValidateBeforeCall(reportId, null); return localVarApiClient.execute(localVarCall); } /** * Resume report (asynchronously) * Resumes a single paused report. * @param reportId (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
Status Code Description Response Headers
204 No Content -
0 Unexpected error -
*/ public okhttp3.Call resumeReportAsync(UUID reportId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = resumeReportValidateBeforeCall(reportId, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateApplicant * @param applicantId (required) * @param applicantUpdater (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
Status Code Description Response Headers
200 Applicant Object -
0 Unexpected error -
*/ public okhttp3.Call updateApplicantCall(UUID applicantId, ApplicantUpdater applicantUpdater, 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 = applicantUpdater; // create path and map variables String localVarPath = "/applicants/{applicant_id}" .replace("{" + "applicant_id" + "}", localVarApiClient.escapeString(applicantId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateApplicantValidateBeforeCall(UUID applicantId, ApplicantUpdater applicantUpdater, final ApiCallback _callback) throws ApiException { // verify the required parameter 'applicantId' is set if (applicantId == null) { throw new ApiException("Missing the required parameter 'applicantId' when calling updateApplicant(Async)"); } // verify the required parameter 'applicantUpdater' is set if (applicantUpdater == null) { throw new ApiException("Missing the required parameter 'applicantUpdater' when calling updateApplicant(Async)"); } return updateApplicantCall(applicantId, applicantUpdater, _callback); } /** * Update Applicant * Allows updating applicant's information before any checks is created. - Partial updates - Addresses and ID numbers present will replace existing ones - Same applicant validations to create applicant * @param applicantId (required) * @param applicantUpdater (required) * @return Applicant * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Applicant Object -
0 Unexpected error -
*/ public Applicant updateApplicant(UUID applicantId, ApplicantUpdater applicantUpdater) throws ApiException { ApiResponse localVarResp = updateApplicantWithHttpInfo(applicantId, applicantUpdater); return localVarResp.getData(); } /** * Update Applicant * Allows updating applicant's information before any checks is created. - Partial updates - Addresses and ID numbers present will replace existing ones - Same applicant validations to create applicant * @param applicantId (required) * @param applicantUpdater (required) * @return ApiResponse<Applicant> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Applicant Object -
0 Unexpected error -
*/ public ApiResponse updateApplicantWithHttpInfo(UUID applicantId, ApplicantUpdater applicantUpdater) throws ApiException { okhttp3.Call localVarCall = updateApplicantValidateBeforeCall(applicantId, applicantUpdater, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update Applicant (asynchronously) * Allows updating applicant's information before any checks is created. - Partial updates - Addresses and ID numbers present will replace existing ones - Same applicant validations to create applicant * @param applicantId (required) * @param applicantUpdater (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
Status Code Description Response Headers
200 Applicant Object -
0 Unexpected error -
*/ public okhttp3.Call updateApplicantAsync(UUID applicantId, ApplicantUpdater applicantUpdater, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateApplicantValidateBeforeCall(applicantId, applicantUpdater, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateWatchlistMonitorMatch * @param monitorId (required) * @param watchlistMonitorMatchesUpdater (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
Status Code Description Response Headers
200 An array of watchlist monitors -
0 Unexpected error -
*/ public okhttp3.Call updateWatchlistMonitorMatchCall(UUID monitorId, WatchlistMonitorMatchesUpdater watchlistMonitorMatchesUpdater, 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 = watchlistMonitorMatchesUpdater; // create path and map variables String localVarPath = "/watchlist_monitors/{monitor_id}/matches" .replace("{" + "monitor_id" + "}", localVarApiClient.escapeString(monitorId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateWatchlistMonitorMatchValidateBeforeCall(UUID monitorId, WatchlistMonitorMatchesUpdater watchlistMonitorMatchesUpdater, final ApiCallback _callback) throws ApiException { // verify the required parameter 'monitorId' is set if (monitorId == null) { throw new ApiException("Missing the required parameter 'monitorId' when calling updateWatchlistMonitorMatch(Async)"); } // verify the required parameter 'watchlistMonitorMatchesUpdater' is set if (watchlistMonitorMatchesUpdater == null) { throw new ApiException("Missing the required parameter 'watchlistMonitorMatchesUpdater' when calling updateWatchlistMonitorMatch(Async)"); } return updateWatchlistMonitorMatchCall(monitorId, watchlistMonitorMatchesUpdater, _callback); } /** * Set match status (BETA) * Update the status of the given matches * @param monitorId (required) * @param watchlistMonitorMatchesUpdater (required) * @return WatchlistMonitorMatchesList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of watchlist monitors -
0 Unexpected error -
*/ public WatchlistMonitorMatchesList updateWatchlistMonitorMatch(UUID monitorId, WatchlistMonitorMatchesUpdater watchlistMonitorMatchesUpdater) throws ApiException { ApiResponse localVarResp = updateWatchlistMonitorMatchWithHttpInfo(monitorId, watchlistMonitorMatchesUpdater); return localVarResp.getData(); } /** * Set match status (BETA) * Update the status of the given matches * @param monitorId (required) * @param watchlistMonitorMatchesUpdater (required) * @return ApiResponse<WatchlistMonitorMatchesList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 An array of watchlist monitors -
0 Unexpected error -
*/ public ApiResponse updateWatchlistMonitorMatchWithHttpInfo(UUID monitorId, WatchlistMonitorMatchesUpdater watchlistMonitorMatchesUpdater) throws ApiException { okhttp3.Call localVarCall = updateWatchlistMonitorMatchValidateBeforeCall(monitorId, watchlistMonitorMatchesUpdater, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Set match status (BETA) (asynchronously) * Update the status of the given matches * @param monitorId (required) * @param watchlistMonitorMatchesUpdater (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
Status Code Description Response Headers
200 An array of watchlist monitors -
0 Unexpected error -
*/ public okhttp3.Call updateWatchlistMonitorMatchAsync(UUID monitorId, WatchlistMonitorMatchesUpdater watchlistMonitorMatchesUpdater, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateWatchlistMonitorMatchValidateBeforeCall(monitorId, watchlistMonitorMatchesUpdater, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateWebhook * @param webhookId (required) * @param webhookUpdater (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
Status Code Description Response Headers
200 Webhook Object -
0 Unexpected error -
*/ public okhttp3.Call updateWebhookCall(UUID webhookId, WebhookUpdater webhookUpdater, 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 = webhookUpdater; // create path and map variables String localVarPath = "/webhooks/{webhook_id}" .replace("{" + "webhook_id" + "}", localVarApiClient.escapeString(webhookId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateWebhookValidateBeforeCall(UUID webhookId, WebhookUpdater webhookUpdater, final ApiCallback _callback) throws ApiException { // verify the required parameter 'webhookId' is set if (webhookId == null) { throw new ApiException("Missing the required parameter 'webhookId' when calling updateWebhook(Async)"); } // verify the required parameter 'webhookUpdater' is set if (webhookUpdater == null) { throw new ApiException("Missing the required parameter 'webhookUpdater' when calling updateWebhook(Async)"); } return updateWebhookCall(webhookId, webhookUpdater, _callback); } /** * Edit a webhook * Edits a webhook. Returns the updated webhook object. * @param webhookId (required) * @param webhookUpdater (required) * @return Webhook * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Webhook Object -
0 Unexpected error -
*/ public Webhook updateWebhook(UUID webhookId, WebhookUpdater webhookUpdater) throws ApiException { ApiResponse localVarResp = updateWebhookWithHttpInfo(webhookId, webhookUpdater); return localVarResp.getData(); } /** * Edit a webhook * Edits a webhook. Returns the updated webhook object. * @param webhookId (required) * @param webhookUpdater (required) * @return ApiResponse<Webhook> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Webhook Object -
0 Unexpected error -
*/ public ApiResponse updateWebhookWithHttpInfo(UUID webhookId, WebhookUpdater webhookUpdater) throws ApiException { okhttp3.Call localVarCall = updateWebhookValidateBeforeCall(webhookId, webhookUpdater, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Edit a webhook (asynchronously) * Edits a webhook. Returns the updated webhook object. * @param webhookId (required) * @param webhookUpdater (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
Status Code Description Response Headers
200 Webhook Object -
0 Unexpected error -
*/ public okhttp3.Call updateWebhookAsync(UUID webhookId, WebhookUpdater webhookUpdater, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateWebhookValidateBeforeCall(webhookId, webhookUpdater, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for uploadDocument * @param type The type of document (required) * @param applicantId The ID of the applicant whose document is being uploaded. (required) * @param _file The file to be uploaded. (required) * @param fileType The file type of the uploaded file (optional) * @param side The side of the document, if applicable. The possible values are front and back (optional) * @param issuingCountry The issuing country of the document, a 3-letter ISO code. (optional) * @param validateImageQuality Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds. (optional) * @param location (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 A document -
0 Unexpected error -
*/ public okhttp3.Call uploadDocumentCall(String type, UUID applicantId, FileTransfer _file, String fileType, String side, CountryCodes issuingCountry, Boolean validateImageQuality, LocationBuilder location, 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 = "/documents"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (fileType != null) { localVarFormParams.put("file_type", fileType); } if (type != null) { localVarFormParams.put("type", type); } if (side != null) { localVarFormParams.put("side", side); } if (issuingCountry != null) { localVarFormParams.put("issuing_country", issuingCountry); } if (applicantId != null) { localVarFormParams.put("applicant_id", applicantId); } if (_file != null) { localVarFormParams.put("file", _file); } if (validateImageQuality != null) { localVarFormParams.put("validate_image_quality", validateImageQuality); } if (location != null) { localVarFormParams.put("location", location); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call uploadDocumentValidateBeforeCall(String type, UUID applicantId, FileTransfer _file, String fileType, String side, CountryCodes issuingCountry, Boolean validateImageQuality, LocationBuilder location, final ApiCallback _callback) throws ApiException { // verify the required parameter 'type' is set if (type == null) { throw new ApiException("Missing the required parameter 'type' when calling uploadDocument(Async)"); } // verify the required parameter 'applicantId' is set if (applicantId == null) { throw new ApiException("Missing the required parameter 'applicantId' when calling uploadDocument(Async)"); } // verify the required parameter '_file' is set if (_file == null) { throw new ApiException("Missing the required parameter '_file' when calling uploadDocument(Async)"); } return uploadDocumentCall(type, applicantId, _file, fileType, side, issuingCountry, validateImageQuality, location, _callback); } /** * Upload a document * Documents are uploaded using this endpoint. Along with the file upload the relevant document type must be specified. Documents must be uploaded as a multipart form. The valid file types are: jpg, png and pdf. The file size must be between 2KB and 3MB. * @param type The type of document (required) * @param applicantId The ID of the applicant whose document is being uploaded. (required) * @param _file The file to be uploaded. (required) * @param fileType The file type of the uploaded file (optional) * @param side The side of the document, if applicable. The possible values are front and back (optional) * @param issuingCountry The issuing country of the document, a 3-letter ISO code. (optional) * @param validateImageQuality Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds. (optional) * @param location (optional) * @return Document * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 A document -
0 Unexpected error -
*/ public Document uploadDocument(String type, UUID applicantId, FileTransfer _file, String fileType, String side, CountryCodes issuingCountry, Boolean validateImageQuality, LocationBuilder location) throws ApiException { ApiResponse localVarResp = uploadDocumentWithHttpInfo(type, applicantId, _file, fileType, side, issuingCountry, validateImageQuality, location); return localVarResp.getData(); } /** * Upload a document * Documents are uploaded using this endpoint. Along with the file upload the relevant document type must be specified. Documents must be uploaded as a multipart form. The valid file types are: jpg, png and pdf. The file size must be between 2KB and 3MB. * @param type The type of document (required) * @param applicantId The ID of the applicant whose document is being uploaded. (required) * @param _file The file to be uploaded. (required) * @param fileType The file type of the uploaded file (optional) * @param side The side of the document, if applicable. The possible values are front and back (optional) * @param issuingCountry The issuing country of the document, a 3-letter ISO code. (optional) * @param validateImageQuality Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds. (optional) * @param location (optional) * @return ApiResponse<Document> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 A document -
0 Unexpected error -
*/ public ApiResponse uploadDocumentWithHttpInfo(String type, UUID applicantId, FileTransfer _file, String fileType, String side, CountryCodes issuingCountry, Boolean validateImageQuality, LocationBuilder location) throws ApiException { okhttp3.Call localVarCall = uploadDocumentValidateBeforeCall(type, applicantId, _file, fileType, side, issuingCountry, validateImageQuality, location, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Upload a document (asynchronously) * Documents are uploaded using this endpoint. Along with the file upload the relevant document type must be specified. Documents must be uploaded as a multipart form. The valid file types are: jpg, png and pdf. The file size must be between 2KB and 3MB. * @param type The type of document (required) * @param applicantId The ID of the applicant whose document is being uploaded. (required) * @param _file The file to be uploaded. (required) * @param fileType The file type of the uploaded file (optional) * @param side The side of the document, if applicable. The possible values are front and back (optional) * @param issuingCountry The issuing country of the document, a 3-letter ISO code. (optional) * @param validateImageQuality Defaults to false. When true the submitted image will undergo an image quality validation which may take up to 5 seconds. (optional) * @param location (optional) * @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
Status Code Description Response Headers
201 A document -
0 Unexpected error -
*/ public okhttp3.Call uploadDocumentAsync(String type, UUID applicantId, FileTransfer _file, String fileType, String side, CountryCodes issuingCountry, Boolean validateImageQuality, LocationBuilder location, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadDocumentValidateBeforeCall(type, applicantId, _file, fileType, side, issuingCountry, validateImageQuality, location, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for uploadIdPhoto * @param applicantId The ID of the applicant whose ID photo is being uploaded. (optional) * @param _file The file to be uploaded. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 The ID photo -
0 Unexpected error -
*/ public okhttp3.Call uploadIdPhotoCall(UUID applicantId, FileTransfer _file, 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 = "/id_photos"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (applicantId != null) { localVarFormParams.put("applicant_id", applicantId); } if (_file != null) { localVarFormParams.put("file", _file); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call uploadIdPhotoValidateBeforeCall(UUID applicantId, FileTransfer _file, final ApiCallback _callback) throws ApiException { return uploadIdPhotoCall(applicantId, _file, _callback); } /** * Upload ID photo * You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. * @param applicantId The ID of the applicant whose ID photo is being uploaded. (optional) * @param _file The file to be uploaded. (optional) * @return IdPhoto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 The ID photo -
0 Unexpected error -
*/ public IdPhoto uploadIdPhoto(UUID applicantId, FileTransfer _file) throws ApiException { ApiResponse localVarResp = uploadIdPhotoWithHttpInfo(applicantId, _file); return localVarResp.getData(); } /** * Upload ID photo * You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. * @param applicantId The ID of the applicant whose ID photo is being uploaded. (optional) * @param _file The file to be uploaded. (optional) * @return ApiResponse<IdPhoto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 The ID photo -
0 Unexpected error -
*/ public ApiResponse uploadIdPhotoWithHttpInfo(UUID applicantId, FileTransfer _file) throws ApiException { okhttp3.Call localVarCall = uploadIdPhotoValidateBeforeCall(applicantId, _file, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Upload ID photo (asynchronously) * You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. * @param applicantId The ID of the applicant whose ID photo is being uploaded. (optional) * @param _file The file to be uploaded. (optional) * @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
Status Code Description Response Headers
201 The ID photo -
0 Unexpected error -
*/ public okhttp3.Call uploadIdPhotoAsync(UUID applicantId, FileTransfer _file, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadIdPhotoValidateBeforeCall(applicantId, _file, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for uploadLivePhoto * @param applicantId The ID of the applicant whose live photo is being uploaded. (optional) * @param _file The file to be uploaded. (optional) * @param advancedValidation Validates that the live photo contains exactly one face. (optional, default to true) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 The Live Photo -
0 Unexpected error -
*/ public okhttp3.Call uploadLivePhotoCall(UUID applicantId, FileTransfer _file, Boolean advancedValidation, 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 = "/live_photos"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (applicantId != null) { localVarFormParams.put("applicant_id", applicantId); } if (_file != null) { localVarFormParams.put("file", _file); } if (advancedValidation != null) { localVarFormParams.put("advanced_validation", advancedValidation); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "Token" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call uploadLivePhotoValidateBeforeCall(UUID applicantId, FileTransfer _file, Boolean advancedValidation, final ApiCallback _callback) throws ApiException { return uploadLivePhotoCall(applicantId, _file, advancedValidation, _callback); } /** * Upload live photo * You can upload live photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. Live photos are validated at the point of upload to check that they contain exactly one face. This validation can be disabled by setting the advanced_validation argument to false. * @param applicantId The ID of the applicant whose live photo is being uploaded. (optional) * @param _file The file to be uploaded. (optional) * @param advancedValidation Validates that the live photo contains exactly one face. (optional, default to true) * @return LivePhoto * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 The Live Photo -
0 Unexpected error -
*/ public LivePhoto uploadLivePhoto(UUID applicantId, FileTransfer _file, Boolean advancedValidation) throws ApiException { ApiResponse localVarResp = uploadLivePhotoWithHttpInfo(applicantId, _file, advancedValidation); return localVarResp.getData(); } /** * Upload live photo * You can upload live photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. Live photos are validated at the point of upload to check that they contain exactly one face. This validation can be disabled by setting the advanced_validation argument to false. * @param applicantId The ID of the applicant whose live photo is being uploaded. (optional) * @param _file The file to be uploaded. (optional) * @param advancedValidation Validates that the live photo contains exactly one face. (optional, default to true) * @return ApiResponse<LivePhoto> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 The Live Photo -
0 Unexpected error -
*/ public ApiResponse uploadLivePhotoWithHttpInfo(UUID applicantId, FileTransfer _file, Boolean advancedValidation) throws ApiException { okhttp3.Call localVarCall = uploadLivePhotoValidateBeforeCall(applicantId, _file, advancedValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Upload live photo (asynchronously) * You can upload live photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. Live photos are validated at the point of upload to check that they contain exactly one face. This validation can be disabled by setting the advanced_validation argument to false. * @param applicantId The ID of the applicant whose live photo is being uploaded. (optional) * @param _file The file to be uploaded. (optional) * @param advancedValidation Validates that the live photo contains exactly one face. (optional, default to true) * @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
Status Code Description Response Headers
201 The Live Photo -
0 Unexpected error -
*/ public okhttp3.Call uploadLivePhotoAsync(UUID applicantId, FileTransfer _file, Boolean advancedValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = uploadLivePhotoValidateBeforeCall(applicantId, _file, advancedValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy