diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES
index ae68ad3..8facdc4 100755
--- a/client/.openapi-generator/FILES
+++ b/client/.openapi-generator/FILES
@@ -13,6 +13,7 @@ src/main/generated/com/regula/documentreader/webclient/ServerVariable.java
src/main/generated/com/regula/documentreader/webclient/StringUtil.java
src/main/generated/com/regula/documentreader/webclient/api/HealthcheckApi.java
src/main/generated/com/regula/documentreader/webclient/api/ProcessApi.java
+src/main/generated/com/regula/documentreader/webclient/api/ResourcesApi.java
src/main/generated/com/regula/documentreader/webclient/api/TransactionApi.java
src/main/generated/com/regula/documentreader/webclient/auth/ApiKeyAuth.java
src/main/generated/com/regula/documentreader/webclient/auth/Authentication.java
@@ -49,6 +50,8 @@ src/main/generated/com/regula/documentreader/webclient/model/ContainerListListIn
src/main/generated/com/regula/documentreader/webclient/model/Critical.java
src/main/generated/com/regula/documentreader/webclient/model/CrossSourceValueComparison.java
src/main/generated/com/regula/documentreader/webclient/model/DataModule.java
+src/main/generated/com/regula/documentreader/webclient/model/DatabaseDocument.java
+src/main/generated/com/regula/documentreader/webclient/model/DatabaseDocumentList.java
src/main/generated/com/regula/documentreader/webclient/model/DetailsOptical.java
src/main/generated/com/regula/documentreader/webclient/model/DetailsRFID.java
src/main/generated/com/regula/documentreader/webclient/model/DeviceInfo.java
diff --git a/client/src/main/generated/com/regula/documentreader/webclient/JSON.java b/client/src/main/generated/com/regula/documentreader/webclient/JSON.java
index 448fb4e..09f5253 100755
--- a/client/src/main/generated/com/regula/documentreader/webclient/JSON.java
+++ b/client/src/main/generated/com/regula/documentreader/webclient/JSON.java
@@ -990,6 +990,11 @@ private static Class getClassByDiscriminator(
.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.regula.documentreader.webclient.model.DataModule.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.regula.documentreader.webclient.model.DatabaseDocument.CustomTypeAdapterFactory());
+ gsonBuilder.registerTypeAdapterFactory(
+ new com.regula.documentreader.webclient.model.DatabaseDocumentList
+ .CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
new com.regula.documentreader.webclient.model.DetailsOptical.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(
diff --git a/client/src/main/generated/com/regula/documentreader/webclient/api/ResourcesApi.java b/client/src/main/generated/com/regula/documentreader/webclient/api/ResourcesApi.java
new file mode 100644
index 0000000..b5f14be
--- /dev/null
+++ b/client/src/main/generated/com/regula/documentreader/webclient/api/ResourcesApi.java
@@ -0,0 +1,196 @@
+/*
+ * Regula Document Reader Web API
+ * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
+ *
+ * The version of the OpenAPI document: 8.1.0
+ *
+ *
+ * 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.regula.documentreader.webclient.api;
+
+import com.google.gson.reflect.TypeToken;
+import com.regula.documentreader.webclient.ApiCallback;
+import com.regula.documentreader.webclient.ApiClient;
+import com.regula.documentreader.webclient.ApiException;
+import com.regula.documentreader.webclient.ApiResponse;
+import com.regula.documentreader.webclient.Configuration;
+import com.regula.documentreader.webclient.Pair;
+import com.regula.documentreader.webclient.model.DatabaseDocumentList;
+import java.lang.reflect.Type;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class ResourcesApi {
+ private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
+
+ public ResourcesApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public ResourcesApi(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 doclist
+ *
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | The list of documents stored in the database. | - |
+ *
+ */
+ public okhttp3.Call doclistCall(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 = "/api/doclist";
+
+ 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[] {};
+ return localVarApiClient.buildCall(
+ basePath,
+ localVarPath,
+ "GET",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAuthNames,
+ _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call doclistValidateBeforeCall(final ApiCallback _callback) throws ApiException {
+ return doclistCall(_callback);
+ }
+
+ /**
+ * Returns the list of documents stored in the database that the Web Service API is running with.
+ *
+ * @return DatabaseDocumentList
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | The list of documents stored in the database. | - |
+ *
+ */
+ public DatabaseDocumentList doclist() throws ApiException {
+ ApiResponse localVarResp = doclistWithHttpInfo();
+ return localVarResp.getData();
+ }
+
+ /**
+ * Returns the list of documents stored in the database that the Web Service API is running with.
+ *
+ * @return ApiResponse<DatabaseDocumentList>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | The list of documents stored in the database. | - |
+ *
+ */
+ public ApiResponse doclistWithHttpInfo() throws ApiException {
+ okhttp3.Call localVarCall = doclistValidateBeforeCall(null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Returns the list of documents stored in the database that the Web Service API is running with.
+ * (asynchronously)
+ *
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+ *
+ * Response Details
+ * | Status Code | Description | Response Headers |
+ * | 200 | The list of documents stored in the database. | - |
+ *
+ */
+ public okhttp3.Call doclistAsync(final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall = doclistValidateBeforeCall(_callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+}
diff --git a/client/src/main/generated/com/regula/documentreader/webclient/api/TransactionApi.java b/client/src/main/generated/com/regula/documentreader/webclient/api/TransactionApi.java
index 7d3c151..2a9df8d 100644
--- a/client/src/main/generated/com/regula/documentreader/webclient/api/TransactionApi.java
+++ b/client/src/main/generated/com/regula/documentreader/webclient/api/TransactionApi.java
@@ -724,6 +724,8 @@ public okhttp3.Call apiV2TransactionTransactionIdGetAsync(
*
* @param transactionId Transaction id (required)
* @param transactionProcessRequest (required)
+ * @param useCache Get processed values from storage in case transaction has already processed.
+ * (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
@@ -739,6 +741,7 @@ public okhttp3.Call apiV2TransactionTransactionIdGetAsync(
public okhttp3.Call apiV2TransactionTransactionIdProcessPostCall(
@javax.annotation.Nonnull UUID transactionId,
@javax.annotation.Nonnull TransactionProcessRequest transactionProcessRequest,
+ @javax.annotation.Nullable Boolean useCache,
final ApiCallback _callback)
throws ApiException {
String basePath = null;
@@ -769,6 +772,10 @@ public okhttp3.Call apiV2TransactionTransactionIdProcessPostCall(
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
+ if (useCache != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("useCache", useCache));
+ }
+
final String[] localVarAccepts = {"application/json"};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
@@ -801,6 +808,7 @@ public okhttp3.Call apiV2TransactionTransactionIdProcessPostCall(
private okhttp3.Call apiV2TransactionTransactionIdProcessPostValidateBeforeCall(
@javax.annotation.Nonnull UUID transactionId,
@javax.annotation.Nonnull TransactionProcessRequest transactionProcessRequest,
+ @javax.annotation.Nullable Boolean useCache,
final ApiCallback _callback)
throws ApiException {
// verify the required parameter 'transactionId' is set
@@ -816,7 +824,7 @@ private okhttp3.Call apiV2TransactionTransactionIdProcessPostValidateBeforeCall(
}
return apiV2TransactionTransactionIdProcessPostCall(
- transactionId, transactionProcessRequest, _callback);
+ transactionId, transactionProcessRequest, useCache, _callback);
}
/**
@@ -824,6 +832,8 @@ private okhttp3.Call apiV2TransactionTransactionIdProcessPostValidateBeforeCall(
*
* @param transactionId Transaction id (required)
* @param transactionProcessRequest (required)
+ * @param useCache Get processed values from storage in case transaction has already processed.
+ * (optional, default to false)
* @return TransactionProcessResult
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -838,11 +848,12 @@ private okhttp3.Call apiV2TransactionTransactionIdProcessPostValidateBeforeCall(
*/
public TransactionProcessResult apiV2TransactionTransactionIdProcessPost(
@javax.annotation.Nonnull UUID transactionId,
- @javax.annotation.Nonnull TransactionProcessRequest transactionProcessRequest)
+ @javax.annotation.Nonnull TransactionProcessRequest transactionProcessRequest,
+ @javax.annotation.Nullable Boolean useCache)
throws ApiException {
ApiResponse localVarResp =
apiV2TransactionTransactionIdProcessPostWithHttpInfo(
- transactionId, transactionProcessRequest);
+ transactionId, transactionProcessRequest, useCache);
return localVarResp.getData();
}
@@ -851,6 +862,8 @@ public TransactionProcessResult apiV2TransactionTransactionIdProcessPost(
*
* @param transactionId Transaction id (required)
* @param transactionProcessRequest (required)
+ * @param useCache Get processed values from storage in case transaction has already processed.
+ * (optional, default to false)
* @return ApiResponse<TransactionProcessResult>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
* response body
@@ -865,11 +878,12 @@ public TransactionProcessResult apiV2TransactionTransactionIdProcessPost(
*/
public ApiResponse apiV2TransactionTransactionIdProcessPostWithHttpInfo(
@javax.annotation.Nonnull UUID transactionId,
- @javax.annotation.Nonnull TransactionProcessRequest transactionProcessRequest)
+ @javax.annotation.Nonnull TransactionProcessRequest transactionProcessRequest,
+ @javax.annotation.Nullable Boolean useCache)
throws ApiException {
okhttp3.Call localVarCall =
apiV2TransactionTransactionIdProcessPostValidateBeforeCall(
- transactionId, transactionProcessRequest, null);
+ transactionId, transactionProcessRequest, useCache, null);
Type localVarReturnType = new TypeToken() {}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -879,6 +893,8 @@ public ApiResponse apiV2TransactionTransactionIdProces
*
* @param transactionId Transaction id (required)
* @param transactionProcessRequest (required)
+ * @param useCache Get processed values from storage in case transaction has already processed.
+ * (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
@@ -894,12 +910,13 @@ public ApiResponse apiV2TransactionTransactionIdProces
public okhttp3.Call apiV2TransactionTransactionIdProcessPostAsync(
@javax.annotation.Nonnull UUID transactionId,
@javax.annotation.Nonnull TransactionProcessRequest transactionProcessRequest,
+ @javax.annotation.Nullable Boolean useCache,
final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
apiV2TransactionTransactionIdProcessPostValidateBeforeCall(
- transactionId, transactionProcessRequest, _callback);
+ transactionId, transactionProcessRequest, useCache, _callback);
Type localVarReturnType = new TypeToken() {}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DatabaseDocument.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DatabaseDocument.java
new file mode 100644
index 0000000..edd2b07
--- /dev/null
+++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DatabaseDocument.java
@@ -0,0 +1,656 @@
+/*
+ * Regula Document Reader Web API
+ * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
+ *
+ * The version of the OpenAPI document: 8.1.0
+ *
+ *
+ * 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.regula.documentreader.webclient.model;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.TypeAdapter;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import com.regula.documentreader.webclient.JSON;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Objects;
+
+/** DatabaseDocument */
+@javax.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.15.0")
+public class DatabaseDocument {
+ public static final String SERIALIZED_NAME_BARCODE_FIELDS = "barcode_fields";
+
+ @SerializedName(SERIALIZED_NAME_BARCODE_FIELDS)
+ @javax.annotation.Nonnull
+ private Boolean barcodeFields;
+
+ public static final String SERIALIZED_NAME_COUNTRY = "country";
+
+ @SerializedName(SERIALIZED_NAME_COUNTRY)
+ @javax.annotation.Nonnull
+ private String country;
+
+ public static final String SERIALIZED_NAME_CREATEAD = "createad";
+
+ @SerializedName(SERIALIZED_NAME_CREATEAD)
+ @javax.annotation.Nonnull
+ private String createad;
+
+ public static final String SERIALIZED_NAME_DOC_TYPE = "doc_type";
+
+ @SerializedName(SERIALIZED_NAME_DOC_TYPE)
+ @javax.annotation.Nonnull
+ private DocumentType docType;
+
+ public static final String SERIALIZED_NAME_DOCUMENT = "document";
+
+ @SerializedName(SERIALIZED_NAME_DOCUMENT)
+ @javax.annotation.Nonnull
+ private String document;
+
+ public static final String SERIALIZED_NAME_GRAPHIC_FIELDS = "graphic_fields";
+
+ @SerializedName(SERIALIZED_NAME_GRAPHIC_FIELDS)
+ @javax.annotation.Nonnull
+ private Boolean graphicFields;
+
+ public static final String SERIALIZED_NAME_ID = "id";
+
+ @SerializedName(SERIALIZED_NAME_ID)
+ @javax.annotation.Nonnull
+ private Integer id;
+
+ public static final String SERIALIZED_NAME_MRZ = "mrz";
+
+ @SerializedName(SERIALIZED_NAME_MRZ)
+ @javax.annotation.Nonnull
+ private Boolean mrz;
+
+ public static final String SERIALIZED_NAME_REGION = "region";
+
+ @SerializedName(SERIALIZED_NAME_REGION)
+ @javax.annotation.Nullable
+ private String region;
+
+ public static final String SERIALIZED_NAME_RFID_CHIP = "rfid_chip";
+
+ @SerializedName(SERIALIZED_NAME_RFID_CHIP)
+ @javax.annotation.Nonnull
+ private Boolean rfidChip;
+
+ public static final String SERIALIZED_NAME_TEXT_FIELDS = "text_fields";
+
+ @SerializedName(SERIALIZED_NAME_TEXT_FIELDS)
+ @javax.annotation.Nonnull
+ private Boolean textFields;
+
+ public static final String SERIALIZED_NAME_UPDATED = "updated";
+
+ @SerializedName(SERIALIZED_NAME_UPDATED)
+ @javax.annotation.Nonnull
+ private String updated;
+
+ public static final String SERIALIZED_NAME_YEAR = "year";
+
+ @SerializedName(SERIALIZED_NAME_YEAR)
+ @javax.annotation.Nullable
+ private String year;
+
+ public static final String SERIALIZED_NAME_SOVEREIGNTY = "sovereignty";
+
+ @SerializedName(SERIALIZED_NAME_SOVEREIGNTY)
+ @javax.annotation.Nullable
+ private String sovereignty;
+
+ public static final String SERIALIZED_NAME_DEPRECATED = "deprecated";
+
+ @SerializedName(SERIALIZED_NAME_DEPRECATED)
+ @javax.annotation.Nullable
+ private Boolean deprecated;
+
+ public DatabaseDocument() {}
+
+ public DatabaseDocument barcodeFields(@javax.annotation.Nonnull Boolean barcodeFields) {
+ this.barcodeFields = barcodeFields;
+ return this;
+ }
+
+ /**
+ * Whether the document has a barcode.
+ *
+ * @return barcodeFields
+ */
+ @javax.annotation.Nonnull
+ public Boolean getBarcodeFields() {
+ return barcodeFields;
+ }
+
+ public void setBarcodeFields(@javax.annotation.Nonnull Boolean barcodeFields) {
+ this.barcodeFields = barcodeFields;
+ }
+
+ public DatabaseDocument country(@javax.annotation.Nonnull String country) {
+ this.country = country;
+ return this;
+ }
+
+ /**
+ * Country name.
+ *
+ * @return country
+ */
+ @javax.annotation.Nonnull
+ public String getCountry() {
+ return country;
+ }
+
+ public void setCountry(@javax.annotation.Nonnull String country) {
+ this.country = country;
+ }
+
+ public DatabaseDocument createad(@javax.annotation.Nonnull String createad) {
+ this.createad = createad;
+ return this;
+ }
+
+ /**
+ * Date when the document description was created in the database.
+ *
+ * @return createad
+ */
+ @javax.annotation.Nonnull
+ public String getCreatead() {
+ return createad;
+ }
+
+ public void setCreatead(@javax.annotation.Nonnull String createad) {
+ this.createad = createad;
+ }
+
+ public DatabaseDocument docType(@javax.annotation.Nonnull DocumentType docType) {
+ this.docType = docType;
+ return this;
+ }
+
+ /**
+ * Get docType
+ *
+ * @return docType
+ */
+ @javax.annotation.Nonnull
+ public DocumentType getDocType() {
+ return docType;
+ }
+
+ public void setDocType(@javax.annotation.Nonnull DocumentType docType) {
+ this.docType = docType;
+ }
+
+ public DatabaseDocument document(@javax.annotation.Nonnull String document) {
+ this.document = document;
+ return this;
+ }
+
+ /**
+ * Document name.
+ *
+ * @return document
+ */
+ @javax.annotation.Nonnull
+ public String getDocument() {
+ return document;
+ }
+
+ public void setDocument(@javax.annotation.Nonnull String document) {
+ this.document = document;
+ }
+
+ public DatabaseDocument graphicFields(@javax.annotation.Nonnull Boolean graphicFields) {
+ this.graphicFields = graphicFields;
+ return this;
+ }
+
+ /**
+ * The presence of graphic fields in the document.
+ *
+ * @return graphicFields
+ */
+ @javax.annotation.Nonnull
+ public Boolean getGraphicFields() {
+ return graphicFields;
+ }
+
+ public void setGraphicFields(@javax.annotation.Nonnull Boolean graphicFields) {
+ this.graphicFields = graphicFields;
+ }
+
+ public DatabaseDocument id(@javax.annotation.Nonnull Integer id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Document code.
+ *
+ * @return id
+ */
+ @javax.annotation.Nonnull
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(@javax.annotation.Nonnull Integer id) {
+ this.id = id;
+ }
+
+ public DatabaseDocument mrz(@javax.annotation.Nonnull Boolean mrz) {
+ this.mrz = mrz;
+ return this;
+ }
+
+ /**
+ * The document has an MRZ.
+ *
+ * @return mrz
+ */
+ @javax.annotation.Nonnull
+ public Boolean getMrz() {
+ return mrz;
+ }
+
+ public void setMrz(@javax.annotation.Nonnull Boolean mrz) {
+ this.mrz = mrz;
+ }
+
+ public DatabaseDocument region(@javax.annotation.Nullable String region) {
+ this.region = region;
+ return this;
+ }
+
+ /**
+ * Country region.
+ *
+ * @return region
+ */
+ @javax.annotation.Nullable
+ public String getRegion() {
+ return region;
+ }
+
+ public void setRegion(@javax.annotation.Nullable String region) {
+ this.region = region;
+ }
+
+ public DatabaseDocument rfidChip(@javax.annotation.Nonnull Boolean rfidChip) {
+ this.rfidChip = rfidChip;
+ return this;
+ }
+
+ /**
+ * The document has an RFID chip.
+ *
+ * @return rfidChip
+ */
+ @javax.annotation.Nonnull
+ public Boolean getRfidChip() {
+ return rfidChip;
+ }
+
+ public void setRfidChip(@javax.annotation.Nonnull Boolean rfidChip) {
+ this.rfidChip = rfidChip;
+ }
+
+ public DatabaseDocument textFields(@javax.annotation.Nonnull Boolean textFields) {
+ this.textFields = textFields;
+ return this;
+ }
+
+ /**
+ * The presence of text fields in the document.
+ *
+ * @return textFields
+ */
+ @javax.annotation.Nonnull
+ public Boolean getTextFields() {
+ return textFields;
+ }
+
+ public void setTextFields(@javax.annotation.Nonnull Boolean textFields) {
+ this.textFields = textFields;
+ }
+
+ public DatabaseDocument updated(@javax.annotation.Nonnull String updated) {
+ this.updated = updated;
+ return this;
+ }
+
+ /**
+ * Date when the document description was updated in the database.
+ *
+ * @return updated
+ */
+ @javax.annotation.Nonnull
+ public String getUpdated() {
+ return updated;
+ }
+
+ public void setUpdated(@javax.annotation.Nonnull String updated) {
+ this.updated = updated;
+ }
+
+ public DatabaseDocument year(@javax.annotation.Nullable String year) {
+ this.year = year;
+ return this;
+ }
+
+ /**
+ * The year when the document was issued.
+ *
+ * @return year
+ */
+ @javax.annotation.Nullable
+ public String getYear() {
+ return year;
+ }
+
+ public void setYear(@javax.annotation.Nullable String year) {
+ this.year = year;
+ }
+
+ public DatabaseDocument sovereignty(@javax.annotation.Nullable String sovereignty) {
+ this.sovereignty = sovereignty;
+ return this;
+ }
+
+ /**
+ * Guardian country.
+ *
+ * @return sovereignty
+ */
+ @javax.annotation.Nullable
+ public String getSovereignty() {
+ return sovereignty;
+ }
+
+ public void setSovereignty(@javax.annotation.Nullable String sovereignty) {
+ this.sovereignty = sovereignty;
+ }
+
+ public DatabaseDocument deprecated(@javax.annotation.Nullable Boolean deprecated) {
+ this.deprecated = deprecated;
+ return this;
+ }
+
+ /**
+ * Whether the document is no longer in circulation.
+ *
+ * @return deprecated
+ */
+ @javax.annotation.Nullable
+ public Boolean getDeprecated() {
+ return deprecated;
+ }
+
+ public void setDeprecated(@javax.annotation.Nullable Boolean deprecated) {
+ this.deprecated = deprecated;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DatabaseDocument databaseDocument = (DatabaseDocument) o;
+ return Objects.equals(this.barcodeFields, databaseDocument.barcodeFields)
+ && Objects.equals(this.country, databaseDocument.country)
+ && Objects.equals(this.createad, databaseDocument.createad)
+ && Objects.equals(this.docType, databaseDocument.docType)
+ && Objects.equals(this.document, databaseDocument.document)
+ && Objects.equals(this.graphicFields, databaseDocument.graphicFields)
+ && Objects.equals(this.id, databaseDocument.id)
+ && Objects.equals(this.mrz, databaseDocument.mrz)
+ && Objects.equals(this.region, databaseDocument.region)
+ && Objects.equals(this.rfidChip, databaseDocument.rfidChip)
+ && Objects.equals(this.textFields, databaseDocument.textFields)
+ && Objects.equals(this.updated, databaseDocument.updated)
+ && Objects.equals(this.year, databaseDocument.year)
+ && Objects.equals(this.sovereignty, databaseDocument.sovereignty)
+ && Objects.equals(this.deprecated, databaseDocument.deprecated);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(
+ barcodeFields,
+ country,
+ createad,
+ docType,
+ document,
+ graphicFields,
+ id,
+ mrz,
+ region,
+ rfidChip,
+ textFields,
+ updated,
+ year,
+ sovereignty,
+ deprecated);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DatabaseDocument {\n");
+ sb.append(" barcodeFields: ").append(toIndentedString(barcodeFields)).append("\n");
+ sb.append(" country: ").append(toIndentedString(country)).append("\n");
+ sb.append(" createad: ").append(toIndentedString(createad)).append("\n");
+ sb.append(" docType: ").append(toIndentedString(docType)).append("\n");
+ sb.append(" document: ").append(toIndentedString(document)).append("\n");
+ sb.append(" graphicFields: ").append(toIndentedString(graphicFields)).append("\n");
+ sb.append(" id: ").append(toIndentedString(id)).append("\n");
+ sb.append(" mrz: ").append(toIndentedString(mrz)).append("\n");
+ sb.append(" region: ").append(toIndentedString(region)).append("\n");
+ sb.append(" rfidChip: ").append(toIndentedString(rfidChip)).append("\n");
+ sb.append(" textFields: ").append(toIndentedString(textFields)).append("\n");
+ sb.append(" updated: ").append(toIndentedString(updated)).append("\n");
+ sb.append(" year: ").append(toIndentedString(year)).append("\n");
+ sb.append(" sovereignty: ").append(toIndentedString(sovereignty)).append("\n");
+ sb.append(" deprecated: ").append(toIndentedString(deprecated)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields =
+ new HashSet(
+ Arrays.asList(
+ "barcode_fields",
+ "country",
+ "createad",
+ "doc_type",
+ "document",
+ "graphic_fields",
+ "id",
+ "mrz",
+ "region",
+ "rfid_chip",
+ "text_fields",
+ "updated",
+ "year",
+ "sovereignty",
+ "deprecated"));
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields =
+ new HashSet(
+ Arrays.asList(
+ "barcode_fields",
+ "country",
+ "createad",
+ "doc_type",
+ "document",
+ "graphic_fields",
+ "id",
+ "mrz",
+ "rfid_chip",
+ "text_fields",
+ "updated"));
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to DatabaseDocument
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!DatabaseDocument.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ System.err.println(
+ String.format(
+ "The required field(s) %s in DatabaseDocument is not found in the empty JSON string",
+ DatabaseDocument.openapiRequiredFields.toString()));
+ }
+ }
+
+ // check to make sure all required properties/fields are present in the JSON string
+ for (String requiredField : DatabaseDocument.openapiRequiredFields) {
+ if (jsonElement.getAsJsonObject().get(requiredField) == null) {
+ System.err.println(
+ String.format(
+ "The required field `%s` is not found in the JSON string: %s",
+ requiredField, jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ if (!jsonObj.get("country").isJsonPrimitive()) {
+ System.err.println(
+ String.format(
+ "Expected the field `country` to be a primitive type in the JSON string but got `%s`",
+ jsonObj.get("country").toString()));
+ }
+ if (!jsonObj.get("createad").isJsonPrimitive()) {
+ System.err.println(
+ String.format(
+ "Expected the field `createad` to be a primitive type in the JSON string but got `%s`",
+ jsonObj.get("createad").toString()));
+ }
+ // validate the required field `doc_type`
+ DocumentType.validateJsonElement(jsonObj.get("doc_type"));
+ if (!jsonObj.get("document").isJsonPrimitive()) {
+ System.err.println(
+ String.format(
+ "Expected the field `document` to be a primitive type in the JSON string but got `%s`",
+ jsonObj.get("document").toString()));
+ }
+ if ((jsonObj.get("region") != null && !jsonObj.get("region").isJsonNull())
+ && !jsonObj.get("region").isJsonPrimitive()) {
+ System.err.println(
+ String.format(
+ "Expected the field `region` to be a primitive type in the JSON string but got `%s`",
+ jsonObj.get("region").toString()));
+ }
+ if (!jsonObj.get("updated").isJsonPrimitive()) {
+ System.err.println(
+ String.format(
+ "Expected the field `updated` to be a primitive type in the JSON string but got `%s`",
+ jsonObj.get("updated").toString()));
+ }
+ if ((jsonObj.get("year") != null && !jsonObj.get("year").isJsonNull())
+ && !jsonObj.get("year").isJsonPrimitive()) {
+ System.err.println(
+ String.format(
+ "Expected the field `year` to be a primitive type in the JSON string but got `%s`",
+ jsonObj.get("year").toString()));
+ }
+ if ((jsonObj.get("sovereignty") != null && !jsonObj.get("sovereignty").isJsonNull())
+ && !jsonObj.get("sovereignty").isJsonPrimitive()) {
+ System.err.println(
+ String.format(
+ "Expected the field `sovereignty` to be a primitive type in the JSON string but got `%s`",
+ jsonObj.get("sovereignty").toString()));
+ }
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!DatabaseDocument.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'DatabaseDocument' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(this, TypeToken.get(DatabaseDocument.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, DatabaseDocument value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public DatabaseDocument read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of DatabaseDocument given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of DatabaseDocument
+ * @throws IOException if the JSON string is invalid with respect to DatabaseDocument
+ */
+ public static DatabaseDocument fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, DatabaseDocument.class);
+ }
+
+ /**
+ * Convert an instance of DatabaseDocument to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/DatabaseDocumentList.java b/client/src/main/generated/com/regula/documentreader/webclient/model/DatabaseDocumentList.java
new file mode 100644
index 0000000..d661c9b
--- /dev/null
+++ b/client/src/main/generated/com/regula/documentreader/webclient/model/DatabaseDocumentList.java
@@ -0,0 +1,211 @@
+/*
+ * Regula Document Reader Web API
+ * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
+ *
+ * The version of the OpenAPI document: 8.1.0
+ *
+ *
+ * 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.regula.documentreader.webclient.model;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonArray;
+import com.google.gson.JsonElement;
+import com.google.gson.JsonObject;
+import com.google.gson.TypeAdapter;
+import com.google.gson.TypeAdapterFactory;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.reflect.TypeToken;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import com.regula.documentreader.webclient.JSON;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Objects;
+
+/** DatabaseDocumentList */
+@javax.annotation.Generated(
+ value = "org.openapitools.codegen.languages.JavaClientCodegen",
+ comments = "Generator version: 7.15.0")
+public class DatabaseDocumentList {
+ public static final String SERIALIZED_NAME_ITEMS = "items";
+
+ @SerializedName(SERIALIZED_NAME_ITEMS)
+ @javax.annotation.Nonnull
+ private List items;
+
+ public DatabaseDocumentList() {}
+
+ public DatabaseDocumentList items(@javax.annotation.Nonnull List items) {
+ this.items = items;
+ return this;
+ }
+
+ public DatabaseDocumentList addItemsItem(DatabaseDocument itemsItem) {
+ if (this.items == null) {
+ this.items = new ArrayList<>();
+ }
+ this.items.add(itemsItem);
+ return this;
+ }
+
+ /**
+ * The list of documents stored in the database.
+ *
+ * @return items
+ */
+ @javax.annotation.Nonnull
+ public List getItems() {
+ return items;
+ }
+
+ public void setItems(@javax.annotation.Nonnull List items) {
+ this.items = items;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ DatabaseDocumentList databaseDocumentList = (DatabaseDocumentList) o;
+ return Objects.equals(this.items, databaseDocumentList.items);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(items);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class DatabaseDocumentList {\n");
+ sb.append(" items: ").append(toIndentedString(items)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+ public static HashSet openapiFields;
+ public static HashSet openapiRequiredFields;
+
+ static {
+ // a set of all properties/fields (JSON key names)
+ openapiFields = new HashSet(Arrays.asList("items"));
+
+ // a set of required properties/fields (JSON key names)
+ openapiRequiredFields = new HashSet(Arrays.asList("items"));
+ }
+
+ /**
+ * Validates the JSON Element and throws an exception if issues found
+ *
+ * @param jsonElement JSON Element
+ * @throws IOException if the JSON Element is invalid with respect to DatabaseDocumentList
+ */
+ public static void validateJsonElement(JsonElement jsonElement) throws IOException {
+ if (jsonElement == null) {
+ if (!DatabaseDocumentList.openapiRequiredFields
+ .isEmpty()) { // has required fields but JSON element is null
+ System.err.println(
+ String.format(
+ "The required field(s) %s in DatabaseDocumentList is not found in the empty JSON string",
+ DatabaseDocumentList.openapiRequiredFields.toString()));
+ }
+ }
+
+ // check to make sure all required properties/fields are present in the JSON string
+ for (String requiredField : DatabaseDocumentList.openapiRequiredFields) {
+ if (jsonElement.getAsJsonObject().get(requiredField) == null) {
+ System.err.println(
+ String.format(
+ "The required field `%s` is not found in the JSON string: %s",
+ requiredField, jsonElement.toString()));
+ }
+ }
+ JsonObject jsonObj = jsonElement.getAsJsonObject();
+ // ensure the json data is an array
+ if (!jsonObj.get("items").isJsonArray()) {
+ System.err.println(
+ String.format(
+ "Expected the field `items` to be an array in the JSON string but got `%s`",
+ jsonObj.get("items").toString()));
+ }
+
+ JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items");
+ // validate the required field `items` (array)
+ for (int i = 0; i < jsonArrayitems.size(); i++) {
+ DatabaseDocument.validateJsonElement(jsonArrayitems.get(i));
+ }
+ ;
+ }
+
+ public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
+ @SuppressWarnings("unchecked")
+ @Override
+ public TypeAdapter create(Gson gson, TypeToken type) {
+ if (!DatabaseDocumentList.class.isAssignableFrom(type.getRawType())) {
+ return null; // this class only serializes 'DatabaseDocumentList' and its subtypes
+ }
+ final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class);
+ final TypeAdapter thisAdapter =
+ gson.getDelegateAdapter(this, TypeToken.get(DatabaseDocumentList.class));
+
+ return (TypeAdapter)
+ new TypeAdapter() {
+ @Override
+ public void write(JsonWriter out, DatabaseDocumentList value) throws IOException {
+ JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();
+ elementAdapter.write(out, obj);
+ }
+
+ @Override
+ public DatabaseDocumentList read(JsonReader in) throws IOException {
+ JsonElement jsonElement = elementAdapter.read(in);
+ validateJsonElement(jsonElement);
+ return thisAdapter.fromJsonTree(jsonElement);
+ }
+ }.nullSafe();
+ }
+ }
+
+ /**
+ * Create an instance of DatabaseDocumentList given an JSON string
+ *
+ * @param jsonString JSON string
+ * @return An instance of DatabaseDocumentList
+ * @throws IOException if the JSON string is invalid with respect to DatabaseDocumentList
+ */
+ public static DatabaseDocumentList fromJson(String jsonString) throws IOException {
+ return JSON.getGson().fromJson(jsonString, DatabaseDocumentList.class);
+ }
+
+ /**
+ * Convert an instance of DatabaseDocumentList to an JSON string
+ *
+ * @return JSON string
+ */
+ public String toJson() {
+ return JSON.getGson().toJson(this);
+ }
+}
diff --git a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParams.java b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParams.java
index cca94d8..7cd35e0 100644
--- a/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParams.java
+++ b/client/src/main/generated/com/regula/documentreader/webclient/model/ProcessParams.java
@@ -436,6 +436,13 @@ public class ProcessParams {
@javax.annotation.Nullable
private Boolean strictSecurityChecks;
+ public static final String SERIALIZED_NAME_RETURN_TRANSLITERATED_FIELDS =
+ "returnTransliteratedFields";
+
+ @SerializedName(SERIALIZED_NAME_RETURN_TRANSLITERATED_FIELDS)
+ @javax.annotation.Nullable
+ private Boolean returnTransliteratedFields;
+
public ProcessParams() {}
public ProcessParams generateDTCVC(@javax.annotation.Nullable Boolean generateDTCVC) {
@@ -1849,6 +1856,27 @@ public void setStrictSecurityChecks(@javax.annotation.Nullable Boolean strictSec
this.strictSecurityChecks = strictSecurityChecks;
}
+ public ProcessParams returnTransliteratedFields(
+ @javax.annotation.Nullable Boolean returnTransliteratedFields) {
+ this.returnTransliteratedFields = returnTransliteratedFields;
+ return this;
+ }
+
+ /**
+ * Allows transliteration to be turned on or off; by default, it is enabled.
+ *
+ * @return returnTransliteratedFields
+ */
+ @javax.annotation.Nullable
+ public Boolean getReturnTransliteratedFields() {
+ return returnTransliteratedFields;
+ }
+
+ public void setReturnTransliteratedFields(
+ @javax.annotation.Nullable Boolean returnTransliteratedFields) {
+ this.returnTransliteratedFields = returnTransliteratedFields;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) {
@@ -1926,7 +1954,9 @@ public boolean equals(Object o) {
&& Objects.equals(this.pdfPagesLimit, processParams.pdfPagesLimit)
&& Objects.equals(
this.disableAuthResolutionFilter, processParams.disableAuthResolutionFilter)
- && Objects.equals(this.strictSecurityChecks, processParams.strictSecurityChecks);
+ && Objects.equals(this.strictSecurityChecks, processParams.strictSecurityChecks)
+ && Objects.equals(
+ this.returnTransliteratedFields, processParams.returnTransliteratedFields);
}
@Override
@@ -1996,7 +2026,8 @@ public int hashCode() {
generateAlpha2Codes,
pdfPagesLimit,
disableAuthResolutionFilter,
- strictSecurityChecks);
+ strictSecurityChecks,
+ returnTransliteratedFields);
}
@Override
@@ -2106,6 +2137,9 @@ public String toString() {
sb.append(" strictSecurityChecks: ")
.append(toIndentedString(strictSecurityChecks))
.append("\n");
+ sb.append(" returnTransliteratedFields: ")
+ .append(toIndentedString(returnTransliteratedFields))
+ .append("\n");
sb.append("}");
return sb.toString();
}
@@ -2192,7 +2226,8 @@ private String toIndentedString(Object o) {
"generateAlpha2Codes",
"pdfPagesLimit",
"disableAuthResolutionFilter",
- "strictSecurityChecks"));
+ "strictSecurityChecks",
+ "returnTransliteratedFields"));
// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet(Arrays.asList("scenario"));
diff --git a/client/src/main/java/com/regula/documentreader/webclient/api/DocumentReaderApi.java b/client/src/main/java/com/regula/documentreader/webclient/api/DocumentReaderApi.java
index 975af83..9df26d1 100755
--- a/client/src/main/java/com/regula/documentreader/webclient/api/DocumentReaderApi.java
+++ b/client/src/main/java/com/regula/documentreader/webclient/api/DocumentReaderApi.java
@@ -8,6 +8,7 @@
import com.regula.documentreader.webclient.ApiException;
import com.regula.documentreader.webclient.Configuration;
import com.regula.documentreader.webclient.Pair;
+import com.regula.documentreader.webclient.model.DatabaseDocumentList;
import com.regula.documentreader.webclient.model.DeviceInfo;
import com.regula.documentreader.webclient.model.Healthcheck;
import com.regula.documentreader.webclient.model.ProcessParams;
@@ -24,6 +25,7 @@ public class DocumentReaderApi {
private final HealthcheckApi defaultApi;
private final ProcessApi processApi;
+ private final ResourcesApi resourcesApi;
private String license;
@@ -34,6 +36,7 @@ public DocumentReaderApi() {
public DocumentReaderApi(ApiClient apiClient) {
this.defaultApi = new HealthcheckApi(apiClient);
this.processApi = new ProcessApi(apiClient);
+ this.resourcesApi = new ResourcesApi(apiClient);
}
public DocumentReaderApi(String basePath) {
@@ -79,6 +82,17 @@ public Healthcheck health(String xRequestID) throws ApiException {
return defaultApi.healthz(xRequestID);
}
+ /**
+ * Returns the list of documents stored in the database that the Web Service API is running with.
+ *
+ * @return DatabaseDocumentList
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ */
+ public DatabaseDocumentList doclist() throws ApiException {
+ return resourcesApi.doclist();
+ }
+
/**
* Reads list of documents and return extracted data
*