11/*
22 * Regula Document Reader Web API
33 *
4- * Regula Document Reader Web API
4+ * 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
55 *
6- * The version of the OpenAPI document: 5.2 .0
6+ * The version of the OpenAPI document: 5.3 .0
77 *
88 * Generated by: https://github.com/openapitools/openapi-generator.git
99 */
@@ -26,27 +26,6 @@ public interface IDefaultApi : IApiAccessor
2626 {
2727 #region Synchronous Operations
2828 /// <summary>
29- /// Process list of documents images and return extracted data
30- /// </summary>
31- /// <remarks>
32- ///
33- /// </remarks>
34- /// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
35- /// <param name="processRequest"></param>
36- /// <returns>ProcessResponse</returns>
37- ProcessResponse ApiProcess ( ProcessRequest processRequest ) ;
38-
39- /// <summary>
40- /// Process list of documents images and return extracted data
41- /// </summary>
42- /// <remarks>
43- ///
44- /// </remarks>
45- /// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
46- /// <param name="processRequest"></param>
47- /// <returns>ApiResponse of ProcessResponse</returns>
48- ApiResponse < ProcessResponse > ApiProcessWithHttpInfo ( ProcessRequest processRequest ) ;
49- /// <summary>
5029 /// Server health check
5130 /// </summary>
5231 /// <remarks>
@@ -68,29 +47,6 @@ public interface IDefaultApi : IApiAccessor
6847 #endregion Synchronous Operations
6948 #region Asynchronous Operations
7049 /// <summary>
71- /// Process list of documents images and return extracted data
72- /// </summary>
73- /// <remarks>
74- ///
75- /// </remarks>
76- /// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
77- /// <param name="processRequest"></param>
78- /// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
79- /// <returns>Task of ProcessResponse</returns>
80- System . Threading . Tasks . Task < ProcessResponse > ApiProcessAsync ( ProcessRequest processRequest , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
81-
82- /// <summary>
83- /// Process list of documents images and return extracted data
84- /// </summary>
85- /// <remarks>
86- ///
87- /// </remarks>
88- /// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
89- /// <param name="processRequest"></param>
90- /// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
91- /// <returns>Task of ApiResponse (ProcessResponse)</returns>
92- System . Threading . Tasks . Task < ApiResponse < ProcessResponse > > ApiProcessWithHttpInfoAsync ( ProcessRequest processRequest , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
93- /// <summary>
9450 /// Server health check
9551 /// </summary>
9652 /// <remarks>
@@ -222,157 +178,6 @@ public void AddDefaultHeader(string key, string value)
222178 this . Configuration . AddDefaultHeader ( key , value ) ;
223179 }
224180
225- /// <summary>
226- /// Process list of documents images and return extracted data
227- /// </summary>
228- /// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
229- /// <param name="processRequest"></param>
230- /// <returns>ProcessResponse</returns>
231- public ProcessResponse ApiProcess ( ProcessRequest processRequest )
232- {
233- ApiResponse < ProcessResponse > localVarResponse = ApiProcessWithHttpInfo ( processRequest ) ;
234- return localVarResponse . Data ;
235- }
236-
237- /// <summary>
238- /// Process list of documents images and return extracted data
239- /// </summary>
240- /// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
241- /// <param name="processRequest"></param>
242- /// <returns>ApiResponse of ProcessResponse</returns>
243- public ApiResponse < ProcessResponse > ApiProcessWithHttpInfo ( ProcessRequest processRequest )
244- {
245- // verify the required parameter 'processRequest' is set
246- if ( processRequest == null )
247- throw new ApiException ( 400 , "Missing required parameter 'processRequest' when calling DefaultApi->ApiProcess" ) ;
248-
249- var localVarPath = "/api/process" ;
250- var localVarPathParams = new Dictionary < String , String > ( ) ;
251- var localVarQueryParams = new List < KeyValuePair < String , String > > ( ) ;
252- var localVarHeaderParams = new Dictionary < String , String > ( this . Configuration . DefaultHeader ) ;
253- var localVarFormParams = new Dictionary < String , String > ( ) ;
254- var localVarFileParams = new Dictionary < String , FileParameter > ( ) ;
255- Object localVarPostBody = null ;
256-
257- // to determine the Content-Type header
258- String [ ] localVarHttpContentTypes = new String [ ] {
259- "application/json"
260- } ;
261- String localVarHttpContentType = this . Configuration . ApiClient . SelectHeaderContentType ( localVarHttpContentTypes ) ;
262-
263- // to determine the Accept header
264- String [ ] localVarHttpHeaderAccepts = new String [ ] {
265- "application/json"
266- } ;
267- String localVarHttpHeaderAccept = this . Configuration . ApiClient . SelectHeaderAccept ( localVarHttpHeaderAccepts ) ;
268- if ( localVarHttpHeaderAccept != null )
269- localVarHeaderParams . Add ( "Accept" , localVarHttpHeaderAccept ) ;
270-
271- if ( processRequest != null && processRequest . GetType ( ) != typeof ( byte [ ] ) )
272- {
273- localVarPostBody = this . Configuration . ApiClient . Serialize ( processRequest ) ; // http body (model) parameter
274- }
275- else
276- {
277- localVarPostBody = processRequest ; // byte array
278- }
279-
280-
281- // make the HTTP request
282- IRestResponse localVarResponse = ( IRestResponse ) this . Configuration . ApiClient . CallApi ( localVarPath ,
283- Method . POST , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarFileParams ,
284- localVarPathParams , localVarHttpContentType ) ;
285-
286- int localVarStatusCode = ( int ) localVarResponse . StatusCode ;
287-
288- if ( ExceptionFactory != null )
289- {
290- Exception exception = ExceptionFactory ( "ApiProcess" , localVarResponse ) ;
291- if ( exception != null ) throw exception ;
292- }
293-
294- return new ApiResponse < ProcessResponse > ( localVarStatusCode ,
295- localVarResponse . Headers . ToDictionary ( x => x . Name , x => string . Join ( "," , x . Value ) ) ,
296- ( ProcessResponse ) this . Configuration . ApiClient . Deserialize ( localVarResponse , typeof ( ProcessResponse ) ) ) ;
297- }
298-
299- /// <summary>
300- /// Process list of documents images and return extracted data
301- /// </summary>
302- /// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
303- /// <param name="processRequest"></param>
304- /// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
305- /// <returns>Task of ProcessResponse</returns>
306- public async System . Threading . Tasks . Task < ProcessResponse > ApiProcessAsync ( ProcessRequest processRequest , CancellationToken cancellationToken = default ( CancellationToken ) )
307- {
308- ApiResponse < ProcessResponse > localVarResponse = await ApiProcessWithHttpInfoAsync ( processRequest , cancellationToken ) ;
309- return localVarResponse . Data ;
310-
311- }
312-
313- /// <summary>
314- /// Process list of documents images and return extracted data
315- /// </summary>
316- /// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
317- /// <param name="processRequest"></param>
318- /// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
319- /// <returns>Task of ApiResponse (ProcessResponse)</returns>
320- public async System . Threading . Tasks . Task < ApiResponse < ProcessResponse > > ApiProcessWithHttpInfoAsync ( ProcessRequest processRequest , CancellationToken cancellationToken = default ( CancellationToken ) )
321- {
322- // verify the required parameter 'processRequest' is set
323- if ( processRequest == null )
324- throw new ApiException ( 400 , "Missing required parameter 'processRequest' when calling DefaultApi->ApiProcess" ) ;
325-
326- var localVarPath = "/api/process" ;
327- var localVarPathParams = new Dictionary < String , String > ( ) ;
328- var localVarQueryParams = new List < KeyValuePair < String , String > > ( ) ;
329- var localVarHeaderParams = new Dictionary < String , String > ( this . Configuration . DefaultHeader ) ;
330- var localVarFormParams = new Dictionary < String , String > ( ) ;
331- var localVarFileParams = new Dictionary < String , FileParameter > ( ) ;
332- Object localVarPostBody = null ;
333-
334- // to determine the Content-Type header
335- String [ ] localVarHttpContentTypes = new String [ ] {
336- "application/json"
337- } ;
338- String localVarHttpContentType = this . Configuration . ApiClient . SelectHeaderContentType ( localVarHttpContentTypes ) ;
339-
340- // to determine the Accept header
341- String [ ] localVarHttpHeaderAccepts = new String [ ] {
342- "application/json"
343- } ;
344- String localVarHttpHeaderAccept = this . Configuration . ApiClient . SelectHeaderAccept ( localVarHttpHeaderAccepts ) ;
345- if ( localVarHttpHeaderAccept != null )
346- localVarHeaderParams . Add ( "Accept" , localVarHttpHeaderAccept ) ;
347-
348- if ( processRequest != null && processRequest . GetType ( ) != typeof ( byte [ ] ) )
349- {
350- localVarPostBody = this . Configuration . ApiClient . Serialize ( processRequest ) ; // http body (model) parameter
351- }
352- else
353- {
354- localVarPostBody = processRequest ; // byte array
355- }
356-
357-
358- // make the HTTP request
359- IRestResponse localVarResponse = ( IRestResponse ) await this . Configuration . ApiClient . CallApiAsync ( localVarPath ,
360- Method . POST , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarFileParams ,
361- localVarPathParams , localVarHttpContentType , cancellationToken ) ;
362-
363- int localVarStatusCode = ( int ) localVarResponse . StatusCode ;
364-
365- if ( ExceptionFactory != null )
366- {
367- Exception exception = ExceptionFactory ( "ApiProcess" , localVarResponse ) ;
368- if ( exception != null ) throw exception ;
369- }
370-
371- return new ApiResponse < ProcessResponse > ( localVarStatusCode ,
372- localVarResponse . Headers . ToDictionary ( x => x . Name , x => string . Join ( "," , x . Value ) ) ,
373- ( ProcessResponse ) this . Configuration . ApiClient . Deserialize ( localVarResponse , typeof ( ProcessResponse ) ) ) ;
374- }
375-
376181 /// <summary>
377182 /// Server health check
378183 /// </summary>
0 commit comments