@@ -50,6 +50,7 @@ public void setApiClient(ApiClient apiClient) {
5050 * Build call for apiProcess
5151 *
5252 * @param processRequest (required)
53+ * @param xRequestID (optional)
5354 * @param _callback Callback for upload/download progress
5455 * @return Call to execute
5556 * @throws ApiException If fail to serialize the request body object
@@ -61,7 +62,8 @@ public void setApiClient(ApiClient apiClient) {
6162 * <tr><td> 403 </td><td> Bad license. Either server or request does not contain valid license. </td><td> - </td></tr>
6263 * </table>
6364 */
64- public okhttp3 .Call apiProcessCall (ProcessRequest processRequest , final ApiCallback _callback )
65+ public okhttp3 .Call apiProcessCall (
66+ ProcessRequest processRequest , String xRequestID , final ApiCallback _callback )
6567 throws ApiException {
6668 Object localVarPostBody = processRequest ;
6769
@@ -71,6 +73,10 @@ public okhttp3.Call apiProcessCall(ProcessRequest processRequest, final ApiCallb
7173 List <Pair > localVarQueryParams = new ArrayList <Pair >();
7274 List <Pair > localVarCollectionQueryParams = new ArrayList <Pair >();
7375 Map <String , String > localVarHeaderParams = new HashMap <String , String >();
76+ if (xRequestID != null ) {
77+ localVarHeaderParams .put ("X-RequestID" , localVarApiClient .parameterToString (xRequestID ));
78+ }
79+
7480 Map <String , String > localVarCookieParams = new HashMap <String , String >();
7581 Map <String , Object > localVarFormParams = new HashMap <String , Object >();
7682 final String [] localVarAccepts = {"application/json" };
@@ -100,22 +106,24 @@ public okhttp3.Call apiProcessCall(ProcessRequest processRequest, final ApiCallb
100106
101107 @ SuppressWarnings ("rawtypes" )
102108 private okhttp3 .Call apiProcessValidateBeforeCall (
103- ProcessRequest processRequest , final ApiCallback _callback ) throws ApiException {
109+ ProcessRequest processRequest , String xRequestID , final ApiCallback _callback )
110+ throws ApiException {
104111
105112 // verify the required parameter 'processRequest' is set
106113 if (processRequest == null ) {
107114 throw new ApiException (
108115 "Missing the required parameter 'processRequest' when calling apiProcess(Async)" );
109116 }
110117
111- okhttp3 .Call localVarCall = apiProcessCall (processRequest , _callback );
118+ okhttp3 .Call localVarCall = apiProcessCall (processRequest , xRequestID , _callback );
112119 return localVarCall ;
113120 }
114121
115122 /**
116123 * Process list of documents images and return extracted data
117124 *
118125 * @param processRequest (required)
126+ * @param xRequestID (optional)
119127 * @return ProcessResponse
120128 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
121129 * response body
@@ -127,15 +135,17 @@ private okhttp3.Call apiProcessValidateBeforeCall(
127135 * <tr><td> 403 </td><td> Bad license. Either server or request does not contain valid license. </td><td> - </td></tr>
128136 * </table>
129137 */
130- public ProcessResponse apiProcess (ProcessRequest processRequest ) throws ApiException {
131- ApiResponse <ProcessResponse > localVarResp = apiProcessWithHttpInfo (processRequest );
138+ public ProcessResponse apiProcess (ProcessRequest processRequest , String xRequestID )
139+ throws ApiException {
140+ ApiResponse <ProcessResponse > localVarResp = apiProcessWithHttpInfo (processRequest , xRequestID );
132141 return localVarResp .getData ();
133142 }
134143
135144 /**
136145 * Process list of documents images and return extracted data
137146 *
138147 * @param processRequest (required)
148+ * @param xRequestID (optional)
139149 * @return ApiResponse<ProcessResponse>
140150 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
141151 * response body
@@ -147,9 +157,9 @@ public ProcessResponse apiProcess(ProcessRequest processRequest) throws ApiExcep
147157 * <tr><td> 403 </td><td> Bad license. Either server or request does not contain valid license. </td><td> - </td></tr>
148158 * </table>
149159 */
150- public ApiResponse <ProcessResponse > apiProcessWithHttpInfo (ProcessRequest processRequest )
151- throws ApiException {
152- okhttp3 .Call localVarCall = apiProcessValidateBeforeCall (processRequest , null );
160+ public ApiResponse <ProcessResponse > apiProcessWithHttpInfo (
161+ ProcessRequest processRequest , String xRequestID ) throws ApiException {
162+ okhttp3 .Call localVarCall = apiProcessValidateBeforeCall (processRequest , xRequestID , null );
153163 Type localVarReturnType = new TypeToken <ProcessResponse >() {}.getType ();
154164 return localVarApiClient .execute (localVarCall , localVarReturnType );
155165 }
@@ -158,6 +168,7 @@ public ApiResponse<ProcessResponse> apiProcessWithHttpInfo(ProcessRequest proces
158168 * Process list of documents images and return extracted data (asynchronously)
159169 *
160170 * @param processRequest (required)
171+ * @param xRequestID (optional)
161172 * @param _callback The callback to be executed when the API call finishes
162173 * @return The request call
163174 * @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -170,10 +181,12 @@ public ApiResponse<ProcessResponse> apiProcessWithHttpInfo(ProcessRequest proces
170181 * </table>
171182 */
172183 public okhttp3 .Call apiProcessAsync (
173- ProcessRequest processRequest , final ApiCallback <ProcessResponse > _callback )
184+ ProcessRequest processRequest ,
185+ String xRequestID ,
186+ final ApiCallback <ProcessResponse > _callback )
174187 throws ApiException {
175188
176- okhttp3 .Call localVarCall = apiProcessValidateBeforeCall (processRequest , _callback );
189+ okhttp3 .Call localVarCall = apiProcessValidateBeforeCall (processRequest , xRequestID , _callback );
177190 Type localVarReturnType = new TypeToken <ProcessResponse >() {}.getType ();
178191 localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
179192 return localVarCall ;
0 commit comments