Skip to content

Commit f4e247e

Browse files
Update models
1 parent 83e1464 commit f4e247e

File tree

23 files changed

+251
-1356
lines changed

23 files changed

+251
-1356
lines changed

client/generator-templates/api.mustache

Lines changed: 0 additions & 612 deletions
This file was deleted.

client/generator-templates/pojo.mustache

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
8080
super();
8181
{{/parcelableModel}}
8282
{{/parent}}
83-
{{#discriminator}}
84-
{{#discriminator.isEnum}}
85-
{{#readWriteVars}}{{#isDiscriminator}}{{#defaultValue}}
86-
this.{{name}} = {{defaultValue}};
87-
{{/defaultValue}}{{/isDiscriminator}}{{/readWriteVars}}
88-
{{/discriminator.isEnum}}
89-
{{/discriminator}}
9083
}
9184
{{#vendorExtensions.x-has-readonly-properties}}
9285
{{^withXml}}

client/src/main/generated/com/regula/documentreader/webclient/api/HealthcheckApi.java

Lines changed: 27 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
7878
* <tr><td> 200 </td><td> Device info. </td><td> - </td></tr>
7979
* </table>
8080
*/
81-
public okhttp3.Call healthzCall(
82-
String xRequestID, HashMap<String, String> headers, final ApiCallback _callback)
81+
public okhttp3.Call healthzCall(String xRequestID, final ApiCallback _callback)
8382
throws ApiException {
8483
String basePath = null;
8584
// Operation Servers
@@ -122,11 +121,6 @@ public okhttp3.Call healthzCall(
122121
localVarHeaderParams.put("X-RequestID", localVarApiClient.parameterToString(xRequestID));
123122
}
124123

125-
if (headers != null) {
126-
for (String key : headers.keySet()) {
127-
localVarHeaderParams.put(key, headers.get(key));
128-
}
129-
}
130124
String[] localVarAuthNames = new String[] {};
131125
return localVarApiClient.buildCall(
132126
basePath,
@@ -143,10 +137,9 @@ public okhttp3.Call healthzCall(
143137
}
144138

145139
@SuppressWarnings("rawtypes")
146-
private okhttp3.Call healthzValidateBeforeCall(
147-
String xRequestID, HashMap<String, String> headers, final ApiCallback _callback)
140+
private okhttp3.Call healthzValidateBeforeCall(String xRequestID, final ApiCallback _callback)
148141
throws ApiException {
149-
return healthzCall(xRequestID, headers, _callback);
142+
return healthzCall(xRequestID, _callback);
150143
}
151144

152145
/**
@@ -163,9 +156,8 @@ private okhttp3.Call healthzValidateBeforeCall(
163156
* <tr><td> 200 </td><td> Device info. </td><td> - </td></tr>
164157
* </table>
165158
*/
166-
public Healthcheck healthz(String xRequestID, HashMap<String, String> headers)
167-
throws ApiException {
168-
ApiResponse<Healthcheck> localVarResp = healthzWithHttpInfo(xRequestID, headers);
159+
public Healthcheck healthz(String xRequestID) throws ApiException {
160+
ApiResponse<Healthcheck> localVarResp = healthzWithHttpInfo(xRequestID);
169161
return localVarResp.getData();
170162
}
171163

@@ -183,9 +175,8 @@ public Healthcheck healthz(String xRequestID, HashMap<String, String> headers)
183175
* <tr><td> 200 </td><td> Device info. </td><td> - </td></tr>
184176
* </table>
185177
*/
186-
public ApiResponse<Healthcheck> healthzWithHttpInfo(
187-
String xRequestID, HashMap<String, String> headers) throws ApiException {
188-
okhttp3.Call localVarCall = healthzValidateBeforeCall(xRequestID, headers, null);
178+
public ApiResponse<Healthcheck> healthzWithHttpInfo(String xRequestID) throws ApiException {
179+
okhttp3.Call localVarCall = healthzValidateBeforeCall(xRequestID, null);
189180
Type localVarReturnType = new TypeToken<Healthcheck>() {}.getType();
190181
return localVarApiClient.execute(localVarCall, localVarReturnType);
191182
}
@@ -204,11 +195,10 @@ public ApiResponse<Healthcheck> healthzWithHttpInfo(
204195
* <tr><td> 200 </td><td> Device info. </td><td> - </td></tr>
205196
* </table>
206197
*/
207-
public okhttp3.Call healthzAsync(
208-
String xRequestID, HashMap<String, String> headers, final ApiCallback<Healthcheck> _callback)
198+
public okhttp3.Call healthzAsync(String xRequestID, final ApiCallback<Healthcheck> _callback)
209199
throws ApiException {
210200

211-
okhttp3.Call localVarCall = healthzValidateBeforeCall(xRequestID, headers, _callback);
201+
okhttp3.Call localVarCall = healthzValidateBeforeCall(xRequestID, _callback);
212202
Type localVarReturnType = new TypeToken<Healthcheck>() {}.getType();
213203
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
214204
return localVarCall;
@@ -230,9 +220,7 @@ public okhttp3.Call healthzAsync(
230220
* @deprecated
231221
*/
232222
@Deprecated
233-
public okhttp3.Call pingCall(
234-
String xRequestID, HashMap<String, String> headers, final ApiCallback _callback)
235-
throws ApiException {
223+
public okhttp3.Call pingCall(String xRequestID, final ApiCallback _callback) throws ApiException {
236224
String basePath = null;
237225
// Operation Servers
238226
String[] localBasePaths = new String[] {};
@@ -274,11 +262,6 @@ public okhttp3.Call pingCall(
274262
localVarHeaderParams.put("X-RequestID", localVarApiClient.parameterToString(xRequestID));
275263
}
276264

277-
if (headers != null) {
278-
for (String key : headers.keySet()) {
279-
localVarHeaderParams.put(key, headers.get(key));
280-
}
281-
}
282265
String[] localVarAuthNames = new String[] {};
283266
return localVarApiClient.buildCall(
284267
basePath,
@@ -296,10 +279,9 @@ public okhttp3.Call pingCall(
296279

297280
@Deprecated
298281
@SuppressWarnings("rawtypes")
299-
private okhttp3.Call pingValidateBeforeCall(
300-
String xRequestID, HashMap<String, String> headers, final ApiCallback _callback)
282+
private okhttp3.Call pingValidateBeforeCall(String xRequestID, final ApiCallback _callback)
301283
throws ApiException {
302-
return pingCall(xRequestID, headers, _callback);
284+
return pingCall(xRequestID, _callback);
303285
}
304286

305287
/**
@@ -319,8 +301,8 @@ private okhttp3.Call pingValidateBeforeCall(
319301
* @deprecated
320302
*/
321303
@Deprecated
322-
public DeviceInfo ping(String xRequestID, HashMap<String, String> headers) throws ApiException {
323-
ApiResponse<DeviceInfo> localVarResp = pingWithHttpInfo(xRequestID, headers);
304+
public DeviceInfo ping(String xRequestID) throws ApiException {
305+
ApiResponse<DeviceInfo> localVarResp = pingWithHttpInfo(xRequestID);
324306
return localVarResp.getData();
325307
}
326308

@@ -341,9 +323,8 @@ public DeviceInfo ping(String xRequestID, HashMap<String, String> headers) throw
341323
* @deprecated
342324
*/
343325
@Deprecated
344-
public ApiResponse<DeviceInfo> pingWithHttpInfo(
345-
String xRequestID, HashMap<String, String> headers) throws ApiException {
346-
okhttp3.Call localVarCall = pingValidateBeforeCall(xRequestID, headers, null);
326+
public ApiResponse<DeviceInfo> pingWithHttpInfo(String xRequestID) throws ApiException {
327+
okhttp3.Call localVarCall = pingValidateBeforeCall(xRequestID, null);
347328
Type localVarReturnType = new TypeToken<DeviceInfo>() {}.getType();
348329
return localVarApiClient.execute(localVarCall, localVarReturnType);
349330
}
@@ -365,11 +346,10 @@ public ApiResponse<DeviceInfo> pingWithHttpInfo(
365346
* @deprecated
366347
*/
367348
@Deprecated
368-
public okhttp3.Call pingAsync(
369-
String xRequestID, HashMap<String, String> headers, final ApiCallback<DeviceInfo> _callback)
349+
public okhttp3.Call pingAsync(String xRequestID, final ApiCallback<DeviceInfo> _callback)
370350
throws ApiException {
371351

372-
okhttp3.Call localVarCall = pingValidateBeforeCall(xRequestID, headers, _callback);
352+
okhttp3.Call localVarCall = pingValidateBeforeCall(xRequestID, _callback);
373353
Type localVarReturnType = new TypeToken<DeviceInfo>() {}.getType();
374354
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
375355
return localVarCall;
@@ -389,8 +369,7 @@ public okhttp3.Call pingAsync(
389369
* <tr><td> 400 </td><td> The license is not valid. </td><td> - </td></tr>
390370
* </table>
391371
*/
392-
public okhttp3.Call readyzCall(
393-
String xRequestID, HashMap<String, String> headers, final ApiCallback _callback)
372+
public okhttp3.Call readyzCall(String xRequestID, final ApiCallback _callback)
394373
throws ApiException {
395374
String basePath = null;
396375
// Operation Servers
@@ -433,11 +412,6 @@ public okhttp3.Call readyzCall(
433412
localVarHeaderParams.put("X-RequestID", localVarApiClient.parameterToString(xRequestID));
434413
}
435414

436-
if (headers != null) {
437-
for (String key : headers.keySet()) {
438-
localVarHeaderParams.put(key, headers.get(key));
439-
}
440-
}
441415
String[] localVarAuthNames = new String[] {};
442416
return localVarApiClient.buildCall(
443417
basePath,
@@ -454,10 +428,9 @@ public okhttp3.Call readyzCall(
454428
}
455429

456430
@SuppressWarnings("rawtypes")
457-
private okhttp3.Call readyzValidateBeforeCall(
458-
String xRequestID, HashMap<String, String> headers, final ApiCallback _callback)
431+
private okhttp3.Call readyzValidateBeforeCall(String xRequestID, final ApiCallback _callback)
459432
throws ApiException {
460-
return readyzCall(xRequestID, headers, _callback);
433+
return readyzCall(xRequestID, _callback);
461434
}
462435

463436
/**
@@ -474,8 +447,8 @@ private okhttp3.Call readyzValidateBeforeCall(
474447
* <tr><td> 400 </td><td> The license is not valid. </td><td> - </td></tr>
475448
* </table>
476449
*/
477-
public void readyz(String xRequestID, HashMap<String, String> headers) throws ApiException {
478-
readyzWithHttpInfo(xRequestID, headers);
450+
public void readyz(String xRequestID) throws ApiException {
451+
readyzWithHttpInfo(xRequestID);
479452
}
480453

481454
/**
@@ -493,9 +466,8 @@ public void readyz(String xRequestID, HashMap<String, String> headers) throws Ap
493466
* <tr><td> 400 </td><td> The license is not valid. </td><td> - </td></tr>
494467
* </table>
495468
*/
496-
public ApiResponse<Void> readyzWithHttpInfo(String xRequestID, HashMap<String, String> headers)
497-
throws ApiException {
498-
okhttp3.Call localVarCall = readyzValidateBeforeCall(xRequestID, headers, null);
469+
public ApiResponse<Void> readyzWithHttpInfo(String xRequestID) throws ApiException {
470+
okhttp3.Call localVarCall = readyzValidateBeforeCall(xRequestID, null);
499471
return localVarApiClient.execute(localVarCall);
500472
}
501473

@@ -514,11 +486,10 @@ public ApiResponse<Void> readyzWithHttpInfo(String xRequestID, HashMap<String, S
514486
* <tr><td> 400 </td><td> The license is not valid. </td><td> - </td></tr>
515487
* </table>
516488
*/
517-
public okhttp3.Call readyzAsync(
518-
String xRequestID, HashMap<String, String> headers, final ApiCallback<Void> _callback)
489+
public okhttp3.Call readyzAsync(String xRequestID, final ApiCallback<Void> _callback)
519490
throws ApiException {
520491

521-
okhttp3.Call localVarCall = readyzValidateBeforeCall(xRequestID, headers, _callback);
492+
okhttp3.Call localVarCall = readyzValidateBeforeCall(xRequestID, _callback);
522493
localVarApiClient.executeAsync(localVarCall, _callback);
523494
return localVarCall;
524495
}

client/src/main/generated/com/regula/documentreader/webclient/api/ProcessApi.java

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
8282
* </table>
8383
*/
8484
public okhttp3.Call apiProcessCall(
85-
ProcessRequest processRequest,
86-
String xRequestID,
87-
HashMap<String, String> headers,
88-
final ApiCallback _callback)
85+
ProcessRequest processRequest, String xRequestID, final ApiCallback _callback)
8986
throws ApiException {
9087
String basePath = null;
9188
// Operation Servers
@@ -128,11 +125,6 @@ public okhttp3.Call apiProcessCall(
128125
localVarHeaderParams.put("X-RequestID", localVarApiClient.parameterToString(xRequestID));
129126
}
130127

131-
if (headers != null) {
132-
for (String key : headers.keySet()) {
133-
localVarHeaderParams.put(key, headers.get(key));
134-
}
135-
}
136128
String[] localVarAuthNames = new String[] {};
137129
return localVarApiClient.buildCall(
138130
basePath,
@@ -150,18 +142,15 @@ public okhttp3.Call apiProcessCall(
150142

151143
@SuppressWarnings("rawtypes")
152144
private okhttp3.Call apiProcessValidateBeforeCall(
153-
ProcessRequest processRequest,
154-
String xRequestID,
155-
HashMap<String, String> headers,
156-
final ApiCallback _callback)
145+
ProcessRequest processRequest, String xRequestID, final ApiCallback _callback)
157146
throws ApiException {
158147
// verify the required parameter 'processRequest' is set
159148
if (processRequest == null) {
160149
throw new ApiException(
161150
"Missing the required parameter 'processRequest' when calling apiProcess(Async)");
162151
}
163152

164-
return apiProcessCall(processRequest, xRequestID, headers, _callback);
153+
return apiProcessCall(processRequest, xRequestID, _callback);
165154
}
166155

167156
/**
@@ -181,11 +170,9 @@ private okhttp3.Call apiProcessValidateBeforeCall(
181170
* <tr><td> 403 </td><td> Bad license. Either server or request does not contain valid license. </td><td> - </td></tr>
182171
* </table>
183172
*/
184-
public ProcessResponse apiProcess(
185-
ProcessRequest processRequest, String xRequestID, HashMap<String, String> headers)
173+
public ProcessResponse apiProcess(ProcessRequest processRequest, String xRequestID)
186174
throws ApiException {
187-
ApiResponse<ProcessResponse> localVarResp =
188-
apiProcessWithHttpInfo(processRequest, xRequestID, headers);
175+
ApiResponse<ProcessResponse> localVarResp = apiProcessWithHttpInfo(processRequest, xRequestID);
189176
return localVarResp.getData();
190177
}
191178

@@ -207,10 +194,8 @@ public ProcessResponse apiProcess(
207194
* </table>
208195
*/
209196
public ApiResponse<ProcessResponse> apiProcessWithHttpInfo(
210-
ProcessRequest processRequest, String xRequestID, HashMap<String, String> headers)
211-
throws ApiException {
212-
okhttp3.Call localVarCall =
213-
apiProcessValidateBeforeCall(processRequest, xRequestID, headers, null);
197+
ProcessRequest processRequest, String xRequestID) throws ApiException {
198+
okhttp3.Call localVarCall = apiProcessValidateBeforeCall(processRequest, xRequestID, null);
214199
Type localVarReturnType = new TypeToken<ProcessResponse>() {}.getType();
215200
return localVarApiClient.execute(localVarCall, localVarReturnType);
216201
}
@@ -235,12 +220,10 @@ public ApiResponse<ProcessResponse> apiProcessWithHttpInfo(
235220
public okhttp3.Call apiProcessAsync(
236221
ProcessRequest processRequest,
237222
String xRequestID,
238-
HashMap<String, String> headers,
239223
final ApiCallback<ProcessResponse> _callback)
240224
throws ApiException {
241225

242-
okhttp3.Call localVarCall =
243-
apiProcessValidateBeforeCall(processRequest, xRequestID, headers, _callback);
226+
okhttp3.Call localVarCall = apiProcessValidateBeforeCall(processRequest, xRequestID, _callback);
244227
Type localVarReturnType = new TypeToken<ProcessResponse>() {}.getType();
245228
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
246229
return localVarCall;

0 commit comments

Comments
 (0)