From e931a599a003bdb7e475814ddb49c1424c4a5df1 Mon Sep 17 00:00:00 2001 From: Artem Tsybulko Date: Thu, 22 May 2025 13:29:37 +0300 Subject: [PATCH] SP-23476 - update eLDS_ParsingNotificationCodes, update generator --- .openapi-generator/VERSION | 2 +- .../Api/HealthcheckApi.cs | 48 ++++++++-------- .../Api/ProcessApi.cs | 16 +++--- .../Api/TransactionApi.cs | 56 +++++++++---------- .../Client/ApiClient.cs | 18 +++--- .../Client/Configuration.cs | 2 +- .../Client/IAsynchronousClient.cs | 14 ++--- .../Client/RetryConfiguration.cs | 4 +- .../Model/EncryptedRCLItem.cs | 2 +- .../Model/EncryptedRCLResult.cs | 2 +- .../Model/LicenseItem.cs | 2 +- .../Model/LicenseResult.cs | 2 +- .../Model/ParsingNotificationCodes.cs | 12 +++- update-models.sh | 2 +- 14 files changed, 96 insertions(+), 86 deletions(-) diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 5f84a81..eb1dc6a 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.12.0 +7.13.0 diff --git a/src/Regula.DocumentReader.WebClient/Api/HealthcheckApi.cs b/src/Regula.DocumentReader.WebClient/Api/HealthcheckApi.cs index 99044d7..80909a9 100644 --- a/src/Regula.DocumentReader.WebClient/Api/HealthcheckApi.cs +++ b/src/Regula.DocumentReader.WebClient/Api/HealthcheckApi.cs @@ -33,7 +33,7 @@ public interface IHealthcheckApiSync : IApiAccessor /// Thrown when fails to make API call /// (optional) /// Healthcheck - Healthcheck Healthz(string? xRequestID = default(string?)); + Healthcheck Healthz(string? xRequestID = default); /// /// Server health check @@ -44,7 +44,7 @@ public interface IHealthcheckApiSync : IApiAccessor /// Thrown when fails to make API call /// (optional) /// ApiResponse of Healthcheck - ApiResponse HealthzWithHttpInfo(string? xRequestID = default(string?)); + ApiResponse HealthzWithHttpInfo(string? xRequestID = default); /// /// Server health check /// @@ -52,7 +52,7 @@ public interface IHealthcheckApiSync : IApiAccessor /// (optional) /// DeviceInfo [Obsolete] - DeviceInfo Ping(string? xRequestID = default(string?)); + DeviceInfo Ping(string? xRequestID = default); /// /// Server health check @@ -64,14 +64,14 @@ public interface IHealthcheckApiSync : IApiAccessor /// (optional) /// ApiResponse of DeviceInfo [Obsolete] - ApiResponse PingWithHttpInfo(string? xRequestID = default(string?)); + ApiResponse PingWithHttpInfo(string? xRequestID = default); /// /// License health check /// /// Thrown when fails to make API call /// (optional) /// - void Readyz(string? xRequestID = default(string?)); + void Readyz(string? xRequestID = default); /// /// License health check @@ -82,7 +82,7 @@ public interface IHealthcheckApiSync : IApiAccessor /// Thrown when fails to make API call /// (optional) /// ApiResponse of Object(void) - ApiResponse ReadyzWithHttpInfo(string? xRequestID = default(string?)); + ApiResponse ReadyzWithHttpInfo(string? xRequestID = default); #endregion Synchronous Operations } @@ -102,7 +102,7 @@ public interface IHealthcheckApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of Healthcheck - System.Threading.Tasks.Task HealthzAsync(string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task HealthzAsync(string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default); /// /// Server health check @@ -114,7 +114,7 @@ public interface IHealthcheckApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (Healthcheck) - System.Threading.Tasks.Task> HealthzWithHttpInfoAsync(string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> HealthzWithHttpInfoAsync(string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default); /// /// Server health check /// @@ -126,7 +126,7 @@ public interface IHealthcheckApiAsync : IApiAccessor /// Cancellation Token to cancel the request. /// Task of DeviceInfo [Obsolete] - System.Threading.Tasks.Task PingAsync(string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task PingAsync(string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default); /// /// Server health check @@ -139,7 +139,7 @@ public interface IHealthcheckApiAsync : IApiAccessor /// Cancellation Token to cancel the request. /// Task of ApiResponse (DeviceInfo) [Obsolete] - System.Threading.Tasks.Task> PingWithHttpInfoAsync(string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> PingWithHttpInfoAsync(string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default); /// /// License health check /// @@ -150,7 +150,7 @@ public interface IHealthcheckApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task ReadyzAsync(string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ReadyzAsync(string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default); /// /// License health check @@ -162,7 +162,7 @@ public interface IHealthcheckApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> ReadyzWithHttpInfoAsync(string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ReadyzWithHttpInfoAsync(string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default); #endregion Asynchronous Operations } @@ -382,7 +382,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// (optional) /// Healthcheck - public Healthcheck Healthz(string? xRequestID = default(string?)) + public Healthcheck Healthz(string? xRequestID = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = HealthzWithHttpInfo(xRequestID); return localVarResponse.Data; @@ -394,7 +394,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// (optional) /// ApiResponse of Healthcheck - public Regula.DocumentReader.WebClient.Client.ApiResponse HealthzWithHttpInfo(string? xRequestID = default(string?)) + public Regula.DocumentReader.WebClient.Client.ApiResponse HealthzWithHttpInfo(string? xRequestID = default) { Regula.DocumentReader.WebClient.Client.RequestOptions localVarRequestOptions = new Regula.DocumentReader.WebClient.Client.RequestOptions(); @@ -437,7 +437,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// (optional) /// Cancellation Token to cancel the request. /// Task of Healthcheck - public async System.Threading.Tasks.Task HealthzAsync(string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task HealthzAsync(string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = await HealthzWithHttpInfoAsync(xRequestID, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -450,7 +450,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (Healthcheck) - public async System.Threading.Tasks.Task> HealthzWithHttpInfoAsync(string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> HealthzWithHttpInfoAsync(string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.RequestOptions localVarRequestOptions = new Regula.DocumentReader.WebClient.Client.RequestOptions(); @@ -496,7 +496,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// (optional) /// DeviceInfo [Obsolete] - public DeviceInfo Ping(string? xRequestID = default(string?)) + public DeviceInfo Ping(string? xRequestID = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = PingWithHttpInfo(xRequestID); return localVarResponse.Data; @@ -509,7 +509,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// (optional) /// ApiResponse of DeviceInfo [Obsolete] - public Regula.DocumentReader.WebClient.Client.ApiResponse PingWithHttpInfo(string? xRequestID = default(string?)) + public Regula.DocumentReader.WebClient.Client.ApiResponse PingWithHttpInfo(string? xRequestID = default) { Regula.DocumentReader.WebClient.Client.RequestOptions localVarRequestOptions = new Regula.DocumentReader.WebClient.Client.RequestOptions(); @@ -553,7 +553,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// Cancellation Token to cancel the request. /// Task of DeviceInfo [Obsolete] - public async System.Threading.Tasks.Task PingAsync(string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task PingAsync(string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = await PingWithHttpInfoAsync(xRequestID, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -567,7 +567,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// Cancellation Token to cancel the request. /// Task of ApiResponse (DeviceInfo) [Obsolete] - public async System.Threading.Tasks.Task> PingWithHttpInfoAsync(string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> PingWithHttpInfoAsync(string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.RequestOptions localVarRequestOptions = new Regula.DocumentReader.WebClient.Client.RequestOptions(); @@ -612,7 +612,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// (optional) /// - public void Readyz(string? xRequestID = default(string?)) + public void Readyz(string? xRequestID = default) { ReadyzWithHttpInfo(xRequestID); } @@ -623,7 +623,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// Thrown when fails to make API call /// (optional) /// ApiResponse of Object(void) - public Regula.DocumentReader.WebClient.Client.ApiResponse ReadyzWithHttpInfo(string? xRequestID = default(string?)) + public Regula.DocumentReader.WebClient.Client.ApiResponse ReadyzWithHttpInfo(string? xRequestID = default) { Regula.DocumentReader.WebClient.Client.RequestOptions localVarRequestOptions = new Regula.DocumentReader.WebClient.Client.RequestOptions(); @@ -665,7 +665,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// (optional) /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task ReadyzAsync(string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ReadyzAsync(string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default) { await ReadyzWithHttpInfoAsync(xRequestID, cancellationToken).ConfigureAwait(false); } @@ -677,7 +677,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> ReadyzWithHttpInfoAsync(string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ReadyzWithHttpInfoAsync(string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.RequestOptions localVarRequestOptions = new Regula.DocumentReader.WebClient.Client.RequestOptions(); diff --git a/src/Regula.DocumentReader.WebClient/Api/ProcessApi.cs b/src/Regula.DocumentReader.WebClient/Api/ProcessApi.cs index 22e1cc9..255bf53 100644 --- a/src/Regula.DocumentReader.WebClient/Api/ProcessApi.cs +++ b/src/Regula.DocumentReader.WebClient/Api/ProcessApi.cs @@ -34,7 +34,7 @@ public interface IProcessApiSync : IApiAccessor /// /// (optional) /// ProcessResponse - ProcessResponse ApiProcess(ProcessRequest processRequest, string? xRequestID = default(string?)); + ProcessResponse ApiProcess(ProcessRequest processRequest, string? xRequestID = default); /// /// Process list of documents images and return extracted data @@ -46,7 +46,7 @@ public interface IProcessApiSync : IApiAccessor /// /// (optional) /// ApiResponse of ProcessResponse - ApiResponse ApiProcessWithHttpInfo(ProcessRequest processRequest, string? xRequestID = default(string?)); + ApiResponse ApiProcessWithHttpInfo(ProcessRequest processRequest, string? xRequestID = default); #endregion Synchronous Operations } @@ -67,7 +67,7 @@ public interface IProcessApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of ProcessResponse - System.Threading.Tasks.Task ApiProcessAsync(ProcessRequest processRequest, string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiProcessAsync(ProcessRequest processRequest, string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default); /// /// Process list of documents images and return extracted data @@ -80,7 +80,7 @@ public interface IProcessApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ProcessResponse) - System.Threading.Tasks.Task> ApiProcessWithHttpInfoAsync(ProcessRequest processRequest, string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiProcessWithHttpInfoAsync(ProcessRequest processRequest, string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default); #endregion Asynchronous Operations } @@ -301,7 +301,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// /// (optional) /// ProcessResponse - public ProcessResponse ApiProcess(ProcessRequest processRequest, string? xRequestID = default(string?)) + public ProcessResponse ApiProcess(ProcessRequest processRequest, string? xRequestID = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = ApiProcessWithHttpInfo(processRequest, xRequestID); return localVarResponse.Data; @@ -314,7 +314,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// /// (optional) /// ApiResponse of ProcessResponse - public Regula.DocumentReader.WebClient.Client.ApiResponse ApiProcessWithHttpInfo(ProcessRequest processRequest, string? xRequestID = default(string?)) + public Regula.DocumentReader.WebClient.Client.ApiResponse ApiProcessWithHttpInfo(ProcessRequest processRequest, string? xRequestID = default) { // verify the required parameter 'processRequest' is set if (processRequest == null) @@ -364,7 +364,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// (optional) /// Cancellation Token to cancel the request. /// Task of ProcessResponse - public async System.Threading.Tasks.Task ApiProcessAsync(ProcessRequest processRequest, string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiProcessAsync(ProcessRequest processRequest, string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = await ApiProcessWithHttpInfoAsync(processRequest, xRequestID, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -378,7 +378,7 @@ public Regula.DocumentReader.WebClient.Client.ExceptionFactory ExceptionFactory /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ProcessResponse) - public async System.Threading.Tasks.Task> ApiProcessWithHttpInfoAsync(ProcessRequest processRequest, string? xRequestID = default(string?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiProcessWithHttpInfoAsync(ProcessRequest processRequest, string? xRequestID = default, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'processRequest' is set if (processRequest == null) diff --git a/src/Regula.DocumentReader.WebClient/Api/TransactionApi.cs b/src/Regula.DocumentReader.WebClient/Api/TransactionApi.cs index 926adf5..2e418bf 100644 --- a/src/Regula.DocumentReader.WebClient/Api/TransactionApi.cs +++ b/src/Regula.DocumentReader.WebClient/Api/TransactionApi.cs @@ -128,7 +128,7 @@ public interface ITransactionApiSync : IApiAccessor /// Transaction id /// With base64 images or url (optional) /// ProcessResponse - ProcessResponse ApiV2TransactionTransactionIdResultsGet(Guid transactionId, bool? withImages = default(bool?)); + ProcessResponse ApiV2TransactionTransactionIdResultsGet(Guid transactionId, bool? withImages = default); /// /// Get Reprocess transaction result @@ -140,7 +140,7 @@ public interface ITransactionApiSync : IApiAccessor /// Transaction id /// With base64 images or url (optional) /// ApiResponse of ProcessResponse - ApiResponse ApiV2TransactionTransactionIdResultsGetWithHttpInfo(Guid transactionId, bool? withImages = default(bool?)); + ApiResponse ApiV2TransactionTransactionIdResultsGetWithHttpInfo(Guid transactionId, bool? withImages = default); #endregion Synchronous Operations } @@ -160,7 +160,7 @@ public interface ITransactionApiAsync : IApiAccessor /// Tag id /// Cancellation Token to cancel the request. /// Task of Object - System.Threading.Tasks.Task ApiV2TagTagIdDeleteAsync(Guid tagId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2TagTagIdDeleteAsync(Guid tagId, System.Threading.CancellationToken cancellationToken = default); /// /// Delete Reprocess transactions by tag @@ -172,7 +172,7 @@ public interface ITransactionApiAsync : IApiAccessor /// Tag id /// Cancellation Token to cancel the request. /// Task of ApiResponse (Object) - System.Threading.Tasks.Task> ApiV2TagTagIdDeleteWithHttpInfoAsync(Guid tagId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiV2TagTagIdDeleteWithHttpInfoAsync(Guid tagId, System.Threading.CancellationToken cancellationToken = default); /// /// Get transactions by tag /// @@ -183,7 +183,7 @@ public interface ITransactionApiAsync : IApiAccessor /// Tag id /// Cancellation Token to cancel the request. /// Task of ListTransactionsByTagResponse - System.Threading.Tasks.Task ApiV2TagTagIdTransactionsGetAsync(string tagId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2TagTagIdTransactionsGetAsync(string tagId, System.Threading.CancellationToken cancellationToken = default); /// /// Get transactions by tag @@ -195,7 +195,7 @@ public interface ITransactionApiAsync : IApiAccessor /// Tag id /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListTransactionsByTagResponse) - System.Threading.Tasks.Task> ApiV2TagTagIdTransactionsGetWithHttpInfoAsync(string tagId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiV2TagTagIdTransactionsGetWithHttpInfoAsync(string tagId, System.Threading.CancellationToken cancellationToken = default); /// /// Get Reprocess transaction file /// @@ -207,7 +207,7 @@ public interface ITransactionApiAsync : IApiAccessor /// File name /// Cancellation Token to cancel the request. /// Task of FileParameter - System.Threading.Tasks.Task ApiV2TransactionTransactionIdFileGetAsync(Guid transactionId, string name, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2TransactionTransactionIdFileGetAsync(Guid transactionId, string name, System.Threading.CancellationToken cancellationToken = default); /// /// Get Reprocess transaction file @@ -220,7 +220,7 @@ public interface ITransactionApiAsync : IApiAccessor /// File name /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileParameter) - System.Threading.Tasks.Task> ApiV2TransactionTransactionIdFileGetWithHttpInfoAsync(Guid transactionId, string name, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiV2TransactionTransactionIdFileGetWithHttpInfoAsync(Guid transactionId, string name, System.Threading.CancellationToken cancellationToken = default); /// /// Get Reprocess transaction data /// @@ -231,7 +231,7 @@ public interface ITransactionApiAsync : IApiAccessor /// Transaction id /// Cancellation Token to cancel the request. /// Task of TransactionProcessGetResponse - System.Threading.Tasks.Task ApiV2TransactionTransactionIdGetAsync(Guid transactionId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2TransactionTransactionIdGetAsync(Guid transactionId, System.Threading.CancellationToken cancellationToken = default); /// /// Get Reprocess transaction data @@ -243,7 +243,7 @@ public interface ITransactionApiAsync : IApiAccessor /// Transaction id /// Cancellation Token to cancel the request. /// Task of ApiResponse (TransactionProcessGetResponse) - System.Threading.Tasks.Task> ApiV2TransactionTransactionIdGetWithHttpInfoAsync(Guid transactionId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiV2TransactionTransactionIdGetWithHttpInfoAsync(Guid transactionId, System.Threading.CancellationToken cancellationToken = default); /// /// Reprocess /// @@ -255,7 +255,7 @@ public interface ITransactionApiAsync : IApiAccessor /// /// Cancellation Token to cancel the request. /// Task of TransactionProcessResult - System.Threading.Tasks.Task ApiV2TransactionTransactionIdProcessPostAsync(Guid transactionId, TransactionProcessRequest transactionProcessRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2TransactionTransactionIdProcessPostAsync(Guid transactionId, TransactionProcessRequest transactionProcessRequest, System.Threading.CancellationToken cancellationToken = default); /// /// Reprocess @@ -268,7 +268,7 @@ public interface ITransactionApiAsync : IApiAccessor /// /// Cancellation Token to cancel the request. /// Task of ApiResponse (TransactionProcessResult) - System.Threading.Tasks.Task> ApiV2TransactionTransactionIdProcessPostWithHttpInfoAsync(Guid transactionId, TransactionProcessRequest transactionProcessRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiV2TransactionTransactionIdProcessPostWithHttpInfoAsync(Guid transactionId, TransactionProcessRequest transactionProcessRequest, System.Threading.CancellationToken cancellationToken = default); /// /// Get Reprocess transaction result /// @@ -280,7 +280,7 @@ public interface ITransactionApiAsync : IApiAccessor /// With base64 images or url (optional) /// Cancellation Token to cancel the request. /// Task of ProcessResponse - System.Threading.Tasks.Task ApiV2TransactionTransactionIdResultsGetAsync(Guid transactionId, bool? withImages = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task ApiV2TransactionTransactionIdResultsGetAsync(Guid transactionId, bool? withImages = default, System.Threading.CancellationToken cancellationToken = default); /// /// Get Reprocess transaction result @@ -293,7 +293,7 @@ public interface ITransactionApiAsync : IApiAccessor /// With base64 images or url (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ProcessResponse) - System.Threading.Tasks.Task> ApiV2TransactionTransactionIdResultsGetWithHttpInfoAsync(Guid transactionId, bool? withImages = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiV2TransactionTransactionIdResultsGetWithHttpInfoAsync(Guid transactionId, bool? withImages = default, System.Threading.CancellationToken cancellationToken = default); #endregion Asynchronous Operations } @@ -565,7 +565,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponse ApiV2TagTagIdD /// Tag id /// Cancellation Token to cancel the request. /// Task of Object - public async System.Threading.Tasks.Task ApiV2TagTagIdDeleteAsync(Guid tagId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2TagTagIdDeleteAsync(Guid tagId, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = await ApiV2TagTagIdDeleteWithHttpInfoAsync(tagId, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -578,7 +578,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponse ApiV2TagTagIdD /// Tag id /// Cancellation Token to cancel the request. /// Task of ApiResponse (Object) - public async System.Threading.Tasks.Task> ApiV2TagTagIdDeleteWithHttpInfoAsync(Guid tagId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiV2TagTagIdDeleteWithHttpInfoAsync(Guid tagId, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.RequestOptions localVarRequestOptions = new Regula.DocumentReader.WebClient.Client.RequestOptions(); @@ -676,7 +676,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponseTag id /// Cancellation Token to cancel the request. /// Task of ListTransactionsByTagResponse - public async System.Threading.Tasks.Task ApiV2TagTagIdTransactionsGetAsync(string tagId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2TagTagIdTransactionsGetAsync(string tagId, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = await ApiV2TagTagIdTransactionsGetWithHttpInfoAsync(tagId, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -689,7 +689,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponseTag id /// Cancellation Token to cancel the request. /// Task of ApiResponse (ListTransactionsByTagResponse) - public async System.Threading.Tasks.Task> ApiV2TagTagIdTransactionsGetWithHttpInfoAsync(string tagId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiV2TagTagIdTransactionsGetWithHttpInfoAsync(string tagId, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'tagId' is set if (tagId == null) @@ -795,7 +795,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponse ApiV2Tr /// File name /// Cancellation Token to cancel the request. /// Task of FileParameter - public async System.Threading.Tasks.Task ApiV2TransactionTransactionIdFileGetAsync(Guid transactionId, string name, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2TransactionTransactionIdFileGetAsync(Guid transactionId, string name, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = await ApiV2TransactionTransactionIdFileGetWithHttpInfoAsync(transactionId, name, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -809,7 +809,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponse ApiV2Tr /// File name /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileParameter) - public async System.Threading.Tasks.Task> ApiV2TransactionTransactionIdFileGetWithHttpInfoAsync(Guid transactionId, string name, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiV2TransactionTransactionIdFileGetWithHttpInfoAsync(Guid transactionId, string name, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'name' is set if (name == null) @@ -908,7 +908,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponseTransaction id /// Cancellation Token to cancel the request. /// Task of TransactionProcessGetResponse - public async System.Threading.Tasks.Task ApiV2TransactionTransactionIdGetAsync(Guid transactionId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2TransactionTransactionIdGetAsync(Guid transactionId, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = await ApiV2TransactionTransactionIdGetWithHttpInfoAsync(transactionId, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -921,7 +921,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponseTransaction id /// Cancellation Token to cancel the request. /// Task of ApiResponse (TransactionProcessGetResponse) - public async System.Threading.Tasks.Task> ApiV2TransactionTransactionIdGetWithHttpInfoAsync(Guid transactionId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiV2TransactionTransactionIdGetWithHttpInfoAsync(Guid transactionId, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.RequestOptions localVarRequestOptions = new Regula.DocumentReader.WebClient.Client.RequestOptions(); @@ -1024,7 +1024,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponse /// Cancellation Token to cancel the request. /// Task of TransactionProcessResult - public async System.Threading.Tasks.Task ApiV2TransactionTransactionIdProcessPostAsync(Guid transactionId, TransactionProcessRequest transactionProcessRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2TransactionTransactionIdProcessPostAsync(Guid transactionId, TransactionProcessRequest transactionProcessRequest, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = await ApiV2TransactionTransactionIdProcessPostWithHttpInfoAsync(transactionId, transactionProcessRequest, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1038,7 +1038,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponse /// Cancellation Token to cancel the request. /// Task of ApiResponse (TransactionProcessResult) - public async System.Threading.Tasks.Task> ApiV2TransactionTransactionIdProcessPostWithHttpInfoAsync(Guid transactionId, TransactionProcessRequest transactionProcessRequest, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiV2TransactionTransactionIdProcessPostWithHttpInfoAsync(Guid transactionId, TransactionProcessRequest transactionProcessRequest, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'transactionProcessRequest' is set if (transactionProcessRequest == null) @@ -1087,7 +1087,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponseTransaction id /// With base64 images or url (optional) /// ProcessResponse - public ProcessResponse ApiV2TransactionTransactionIdResultsGet(Guid transactionId, bool? withImages = default(bool?)) + public ProcessResponse ApiV2TransactionTransactionIdResultsGet(Guid transactionId, bool? withImages = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = ApiV2TransactionTransactionIdResultsGetWithHttpInfo(transactionId, withImages); return localVarResponse.Data; @@ -1100,7 +1100,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponseTransaction id /// With base64 images or url (optional) /// ApiResponse of ProcessResponse - public Regula.DocumentReader.WebClient.Client.ApiResponse ApiV2TransactionTransactionIdResultsGetWithHttpInfo(Guid transactionId, bool? withImages = default(bool?)) + public Regula.DocumentReader.WebClient.Client.ApiResponse ApiV2TransactionTransactionIdResultsGetWithHttpInfo(Guid transactionId, bool? withImages = default) { Regula.DocumentReader.WebClient.Client.RequestOptions localVarRequestOptions = new Regula.DocumentReader.WebClient.Client.RequestOptions(); @@ -1145,7 +1145,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponseWith base64 images or url (optional) /// Cancellation Token to cancel the request. /// Task of ProcessResponse - public async System.Threading.Tasks.Task ApiV2TransactionTransactionIdResultsGetAsync(Guid transactionId, bool? withImages = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ApiV2TransactionTransactionIdResultsGetAsync(Guid transactionId, bool? withImages = default, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.ApiResponse localVarResponse = await ApiV2TransactionTransactionIdResultsGetWithHttpInfoAsync(transactionId, withImages, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1159,7 +1159,7 @@ public Regula.DocumentReader.WebClient.Client.ApiResponseWith base64 images or url (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ProcessResponse) - public async System.Threading.Tasks.Task> ApiV2TransactionTransactionIdResultsGetWithHttpInfoAsync(Guid transactionId, bool? withImages = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiV2TransactionTransactionIdResultsGetWithHttpInfoAsync(Guid transactionId, bool? withImages = default, System.Threading.CancellationToken cancellationToken = default) { Regula.DocumentReader.WebClient.Client.RequestOptions localVarRequestOptions = new Regula.DocumentReader.WebClient.Client.RequestOptions(); diff --git a/src/Regula.DocumentReader.WebClient/Client/ApiClient.cs b/src/Regula.DocumentReader.WebClient/Client/ApiClient.cs index 259160f..cc2e6d6 100644 --- a/src/Regula.DocumentReader.WebClient/Client/ApiClient.cs +++ b/src/Regula.DocumentReader.WebClient/Client/ApiClient.cs @@ -474,7 +474,7 @@ private ApiResponse Exec(HttpRequestMessage req, IReadableConfiguration co private async Task> ExecAsync(HttpRequestMessage req, IReadableConfiguration configuration, - System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + System.Threading.CancellationToken cancellationToken = default) { CancellationTokenSource timeoutTokenSource = null; CancellationTokenSource finalTokenSource = null; @@ -536,7 +536,7 @@ private async Task> ExecAsync(HttpRequestMessage req, if (!response.IsSuccessStatusCode) { - return await ToApiResponse(response, default(T), req.RequestUri).ConfigureAwait(false); + return await ToApiResponse(response, default, req.RequestUri).ConfigureAwait(false); } object responseData = await deserializer.Deserialize(response).ConfigureAwait(false); @@ -588,7 +588,7 @@ private async Task> ExecAsync(HttpRequestMessage req, /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), config, cancellationToken); @@ -603,7 +603,7 @@ private async Task> ExecAsync(HttpRequestMessage req, /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), config, cancellationToken); @@ -618,7 +618,7 @@ private async Task> ExecAsync(HttpRequestMessage req, /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), config, cancellationToken); @@ -633,7 +633,7 @@ private async Task> ExecAsync(HttpRequestMessage req, /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), config, cancellationToken); @@ -648,7 +648,7 @@ private async Task> ExecAsync(HttpRequestMessage req, /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), config, cancellationToken); @@ -663,7 +663,7 @@ private async Task> ExecAsync(HttpRequestMessage req, /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), config, cancellationToken); @@ -678,7 +678,7 @@ private async Task> ExecAsync(HttpRequestMessage req, /// GlobalConfiguration has been done before calling this method. /// Token that enables callers to cancel the request. /// A Task containing ApiResponse - public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default) { var config = configuration ?? GlobalConfiguration.Instance; return ExecAsync(NewRequest(new HttpMethod("PATCH"), path, options, config), config, cancellationToken); diff --git a/src/Regula.DocumentReader.WebClient/Client/Configuration.cs b/src/Regula.DocumentReader.WebClient/Client/Configuration.cs index 21fa903..b081a47 100644 --- a/src/Regula.DocumentReader.WebClient/Client/Configuration.cs +++ b/src/Regula.DocumentReader.WebClient/Client/Configuration.cs @@ -514,7 +514,7 @@ private string GetServerUrl(IList> servers, if (inputVariables.ContainsKey(variable.Key)) { - if (((List)serverVariables["enum_values"]).Contains(inputVariables[variable.Key])) + if (!serverVariables.ContainsKey("enum_values") || ((List)serverVariables["enum_values"]).Contains(inputVariables[variable.Key])) { url = url.Replace("{" + variable.Key + "}", inputVariables[variable.Key]); } diff --git a/src/Regula.DocumentReader.WebClient/Client/IAsynchronousClient.cs b/src/Regula.DocumentReader.WebClient/Client/IAsynchronousClient.cs index 8f2fbf2..a98680d 100644 --- a/src/Regula.DocumentReader.WebClient/Client/IAsynchronousClient.cs +++ b/src/Regula.DocumentReader.WebClient/Client/IAsynchronousClient.cs @@ -29,7 +29,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default); /// /// Executes a non-blocking call to some using the POST http verb. @@ -40,7 +40,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default); /// /// Executes a non-blocking call to some using the PUT http verb. @@ -51,7 +51,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default); /// /// Executes a non-blocking call to some using the DELETE http verb. @@ -62,7 +62,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default); /// /// Executes a non-blocking call to some using the HEAD http verb. @@ -73,7 +73,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default); /// /// Executes a non-blocking call to some using the OPTIONS http verb. @@ -84,7 +84,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default); /// /// Executes a non-blocking call to some using the PATCH http verb. @@ -95,6 +95,6 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default); } } diff --git a/src/Regula.DocumentReader.WebClient/Client/RetryConfiguration.cs b/src/Regula.DocumentReader.WebClient/Client/RetryConfiguration.cs index edd5e59..1d5522f 100644 --- a/src/Regula.DocumentReader.WebClient/Client/RetryConfiguration.cs +++ b/src/Regula.DocumentReader.WebClient/Client/RetryConfiguration.cs @@ -21,11 +21,11 @@ public static class RetryConfiguration /// /// Retry policy /// - public static Policy RetryPolicy { get; set; } + public static ISyncPolicy RetryPolicy { get; set; } /// /// Async retry policy /// - public static AsyncPolicy AsyncRetryPolicy { get; set; } + public static IAsyncPolicy AsyncRetryPolicy { get; set; } } } diff --git a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs index 51b2a9c..2f0426f 100644 --- a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs +++ b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs @@ -56,7 +56,7 @@ protected EncryptedRCLItem() { } /// /// Base64 encoded data /* - [B@2d970d48 + [B@56f1b55a */ [DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)] public byte[] EncryptedRCL { get; set; } diff --git a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs index 301fd60..a708662 100644 --- a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs @@ -62,7 +62,7 @@ protected EncryptedRCLResult() { } /// /// Base64 encoded data /* - [B@2d970d48 + [B@56f1b55a */ [DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)] public byte[] EncryptedRCL { get; set; } diff --git a/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs b/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs index 1daac32..bea1e75 100644 --- a/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs +++ b/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs @@ -56,7 +56,7 @@ protected LicenseItem() { } /// /// Base64 encoded data /* - [B@2065118c + [B@6299255d */ [DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)] public byte[] License { get; set; } diff --git a/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs b/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs index 9847f1b..99e8335 100644 --- a/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs @@ -62,7 +62,7 @@ protected LicenseResult() { } /// /// Base64 encoded data /* - [B@2065118c + [B@6299255d */ [DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)] public byte[] License { get; set; } diff --git a/src/Regula.DocumentReader.WebClient/Model/ParsingNotificationCodes.cs b/src/Regula.DocumentReader.WebClient/Model/ParsingNotificationCodes.cs index dc02d5f..8e3828d 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ParsingNotificationCodes.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ParsingNotificationCodes.cs @@ -1140,7 +1140,17 @@ public enum ParsingNotificationCodes: long /// /// Enum ntfLDS_ICAO_Certificate_MRZ_Country_NonMatching for value: 2415919698 /// - ntfLDS_ICAO_Certificate_MRZ_Country_NonMatching = 2415919698 + ntfLDS_ICAO_Certificate_MRZ_Country_NonMatching = 2415919698, + + /// + /// Enum ntfLDS_ICAO_Certificate_Issuer_CountryNonUpperCase for value: 2415919699 + /// + ntfLDS_ICAO_Certificate_Issuer_CountryNonUpperCase = 2415919699, + + /// + /// Enum ntfLDS_ICAO_Certificate_Subject_CountryNonUpperCase for value: 2415919700 + /// + ntfLDS_ICAO_Certificate_Subject_CountryNonUpperCase = 2415919700 } } diff --git a/update-models.sh b/update-models.sh index e45c062..f69f92d 100755 --- a/update-models.sh +++ b/update-models.sh @@ -5,7 +5,7 @@ DOCS_DEFINITION_FOLDER="${PWD}/../DocumentReader-web-openapi" \ && docker run --user "$(id -u):$(id -g)" --rm \ -v "${PWD}:/client" \ -v "${DOCS_DEFINITION_FOLDER}:/definitions" \ -openapitools/openapi-generator-cli:v7.12.0 generate \ +openapitools/openapi-generator-cli:v7.13.0 generate \ -g csharp \ -i /definitions/index.yml \ -o /client/ --openapi-normalizer REF_AS_PARENT_IN_ALLOF=true \