@@ -33,8 +33,9 @@ public interface IProcessApi : IApiAccessor
33
33
/// </remarks>
34
34
/// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
35
35
/// <param name="processRequest"></param>
36
+ /// <param name="xRequestID"> (optional)</param>
36
37
/// <returns>ProcessResponse</returns>
37
- ProcessResponse ApiProcess ( ProcessRequest processRequest , Dictionary < String , String > headers ) ;
38
+ ProcessResponse ApiProcess ( ProcessRequest processRequest , string xRequestID = default ( string ) ) ;
38
39
39
40
/// <summary>
40
41
/// Process list of documents images and return extracted data
@@ -44,8 +45,9 @@ public interface IProcessApi : IApiAccessor
44
45
/// </remarks>
45
46
/// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
46
47
/// <param name="processRequest"></param>
48
+ /// <param name="xRequestID"> (optional)</param>
47
49
/// <returns>ApiResponse of ProcessResponse</returns>
48
- ApiResponse < ProcessResponse > ApiProcessWithHttpInfo ( ProcessRequest processRequest , Dictionary < String , String > headers ) ;
50
+ ApiResponse < ProcessResponse > ApiProcessWithHttpInfo ( ProcessRequest processRequest , string xRequestID = default ( string ) ) ;
49
51
#endregion Synchronous Operations
50
52
#region Asynchronous Operations
51
53
/// <summary>
@@ -56,9 +58,10 @@ public interface IProcessApi : IApiAccessor
56
58
/// </remarks>
57
59
/// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
58
60
/// <param name="processRequest"></param>
61
+ /// <param name="xRequestID"> (optional)</param>
59
62
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
60
63
/// <returns>Task of ProcessResponse</returns>
61
- System . Threading . Tasks . Task < ProcessResponse > ApiProcessAsync ( ProcessRequest processRequest , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
64
+ System . Threading . Tasks . Task < ProcessResponse > ApiProcessAsync ( ProcessRequest processRequest , string xRequestID = default ( string ) , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
62
65
63
66
/// <summary>
64
67
/// Process list of documents images and return extracted data
@@ -68,9 +71,10 @@ public interface IProcessApi : IApiAccessor
68
71
/// </remarks>
69
72
/// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
70
73
/// <param name="processRequest"></param>
74
+ /// <param name="xRequestID"> (optional)</param>
71
75
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
72
76
/// <returns>Task of ApiResponse (ProcessResponse)</returns>
73
- System . Threading . Tasks . Task < ApiResponse < ProcessResponse > > ApiProcessWithHttpInfoAsync ( ProcessRequest processRequest , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
77
+ System . Threading . Tasks . Task < ApiResponse < ProcessResponse > > ApiProcessWithHttpInfoAsync ( ProcessRequest processRequest , string xRequestID = default ( string ) , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
74
78
#endregion Asynchronous Operations
75
79
}
76
80
@@ -187,10 +191,11 @@ public void AddDefaultHeader(string key, string value)
187
191
/// </summary>
188
192
/// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
189
193
/// <param name="processRequest"></param>
194
+ /// <param name="xRequestID"> (optional)</param>
190
195
/// <returns>ProcessResponse</returns>
191
- public ProcessResponse ApiProcess ( ProcessRequest processRequest , Dictionary < String , String > headers )
196
+ public ProcessResponse ApiProcess ( ProcessRequest processRequest , string xRequestID = default ( string ) )
192
197
{
193
- ApiResponse < ProcessResponse > localVarResponse = ApiProcessWithHttpInfo ( processRequest , headers ) ;
198
+ ApiResponse < ProcessResponse > localVarResponse = ApiProcessWithHttpInfo ( processRequest , xRequestID ) ;
194
199
return localVarResponse . Data ;
195
200
}
196
201
@@ -199,8 +204,9 @@ public ProcessResponse ApiProcess (ProcessRequest processRequest, Dictionary<Str
199
204
/// </summary>
200
205
/// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
201
206
/// <param name="processRequest"></param>
207
+ /// <param name="xRequestID"> (optional)</param>
202
208
/// <returns>ApiResponse of ProcessResponse</returns>
203
- public ApiResponse < ProcessResponse > ApiProcessWithHttpInfo ( ProcessRequest processRequest , Dictionary < String , String > headers )
209
+ public ApiResponse < ProcessResponse > ApiProcessWithHttpInfo ( ProcessRequest processRequest , string xRequestID = default ( string ) )
204
210
{
205
211
// verify the required parameter 'processRequest' is set
206
212
if ( processRequest == null )
@@ -209,7 +215,7 @@ public ApiResponse<ProcessResponse> ApiProcessWithHttpInfo (ProcessRequest proce
209
215
var localVarPath = "/api/process" ;
210
216
var localVarPathParams = new Dictionary < String , String > ( ) ;
211
217
var localVarQueryParams = new List < KeyValuePair < String , String > > ( ) ;
212
- var localVarHeaderParams = this . Configuration . DefaultHeader . Union ( headers ) . ToDictionary ( k => k . Key , v => v . Value ) ;
218
+ var localVarHeaderParams = new Dictionary < String , String > ( this . Configuration . DefaultHeader ) ;
213
219
var localVarFormParams = new Dictionary < String , String > ( ) ;
214
220
var localVarFileParams = new Dictionary < String , FileParameter > ( ) ;
215
221
Object localVarPostBody = null ;
@@ -228,6 +234,7 @@ public ApiResponse<ProcessResponse> ApiProcessWithHttpInfo (ProcessRequest proce
228
234
if ( localVarHttpHeaderAccept != null )
229
235
localVarHeaderParams . Add ( "Accept" , localVarHttpHeaderAccept ) ;
230
236
237
+ if ( xRequestID != null ) localVarHeaderParams . Add ( "X-RequestID" , this . Configuration . ApiClient . ParameterToString ( xRequestID ) ) ; // header parameter
231
238
if ( processRequest != null && processRequest . GetType ( ) != typeof ( byte [ ] ) )
232
239
{
233
240
localVarPostBody = this . Configuration . ApiClient . Serialize ( processRequest ) ; // http body (model) parameter
@@ -261,11 +268,12 @@ public ApiResponse<ProcessResponse> ApiProcessWithHttpInfo (ProcessRequest proce
261
268
/// </summary>
262
269
/// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
263
270
/// <param name="processRequest"></param>
271
+ /// <param name="xRequestID"> (optional)</param>
264
272
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
265
273
/// <returns>Task of ProcessResponse</returns>
266
- public async System . Threading . Tasks . Task < ProcessResponse > ApiProcessAsync ( ProcessRequest processRequest , CancellationToken cancellationToken = default ( CancellationToken ) )
274
+ public async System . Threading . Tasks . Task < ProcessResponse > ApiProcessAsync ( ProcessRequest processRequest , string xRequestID = default ( string ) , CancellationToken cancellationToken = default ( CancellationToken ) )
267
275
{
268
- ApiResponse < ProcessResponse > localVarResponse = await ApiProcessWithHttpInfoAsync ( processRequest , cancellationToken ) ;
276
+ ApiResponse < ProcessResponse > localVarResponse = await ApiProcessWithHttpInfoAsync ( processRequest , xRequestID , cancellationToken ) ;
269
277
return localVarResponse . Data ;
270
278
271
279
}
@@ -275,9 +283,10 @@ public ApiResponse<ProcessResponse> ApiProcessWithHttpInfo (ProcessRequest proce
275
283
/// </summary>
276
284
/// <exception cref="Regula.DocumentReader.WebClient.Client.ApiException">Thrown when fails to make API call</exception>
277
285
/// <param name="processRequest"></param>
286
+ /// <param name="xRequestID"> (optional)</param>
278
287
/// <param name="cancellationToken">Cancellation Token to cancel request (optional) </param>
279
288
/// <returns>Task of ApiResponse (ProcessResponse)</returns>
280
- public async System . Threading . Tasks . Task < ApiResponse < ProcessResponse > > ApiProcessWithHttpInfoAsync ( ProcessRequest processRequest , CancellationToken cancellationToken = default ( CancellationToken ) )
289
+ public async System . Threading . Tasks . Task < ApiResponse < ProcessResponse > > ApiProcessWithHttpInfoAsync ( ProcessRequest processRequest , string xRequestID = default ( string ) , CancellationToken cancellationToken = default ( CancellationToken ) )
281
290
{
282
291
// verify the required parameter 'processRequest' is set
283
292
if ( processRequest == null )
@@ -305,6 +314,7 @@ public ApiResponse<ProcessResponse> ApiProcessWithHttpInfo (ProcessRequest proce
305
314
if ( localVarHttpHeaderAccept != null )
306
315
localVarHeaderParams . Add ( "Accept" , localVarHttpHeaderAccept ) ;
307
316
317
+ if ( xRequestID != null ) localVarHeaderParams . Add ( "X-RequestID" , this . Configuration . ApiClient . ParameterToString ( xRequestID ) ) ; // header parameter
308
318
if ( processRequest != null && processRequest . GetType ( ) != typeof ( byte [ ] ) )
309
319
{
310
320
localVarPostBody = this . Configuration . ApiClient . Serialize ( processRequest ) ; // http body (model) parameter
0 commit comments