@emilgroup/claim-sdk-node 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/api/claims-api.ts +182 -61
  4. package/api/settlements-api.ts +760 -0
  5. package/api.ts +3 -1
  6. package/base.ts +1 -1
  7. package/common.ts +2 -2
  8. package/configuration.ts +1 -1
  9. package/dist/api/claims-api.d.ts +110 -50
  10. package/dist/api/claims-api.js +145 -44
  11. package/dist/api/settlements-api.d.ts +430 -0
  12. package/dist/api/settlements-api.js +681 -0
  13. package/dist/api.d.ts +2 -1
  14. package/dist/api.js +2 -1
  15. package/dist/base.d.ts +1 -1
  16. package/dist/base.js +1 -1
  17. package/dist/common.d.ts +2 -2
  18. package/dist/common.js +1 -1
  19. package/dist/configuration.d.ts +1 -1
  20. package/dist/configuration.js +1 -1
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/models/claim-class.d.ts +144 -0
  24. package/dist/models/claim-class.js +15 -0
  25. package/dist/models/create-claim-request-dto.d.ts +7 -7
  26. package/dist/models/create-claim-request-dto.js +1 -1
  27. package/dist/models/create-claim-response-class.d.ts +25 -0
  28. package/dist/models/create-claim-response-class.js +15 -0
  29. package/dist/models/create-settlement-request-dto.d.ts +48 -0
  30. package/dist/models/create-settlement-request-dto.js +15 -0
  31. package/dist/models/create-settlement-response-class.d.ts +25 -0
  32. package/dist/models/create-settlement-response-class.js +15 -0
  33. package/dist/models/delete-response-class.d.ts +24 -0
  34. package/dist/models/delete-response-class.js +15 -0
  35. package/dist/models/delete-settlement-request-dto.d.ts +30 -0
  36. package/dist/models/delete-settlement-request-dto.js +15 -0
  37. package/dist/models/get-claim-response-class.d.ts +25 -0
  38. package/dist/models/get-claim-response-class.js +15 -0
  39. package/dist/models/get-settlement-response-class.d.ts +25 -0
  40. package/dist/models/get-settlement-response-class.js +15 -0
  41. package/dist/models/index.d.ts +14 -0
  42. package/dist/models/index.js +14 -0
  43. package/dist/models/list-claim-response-class.d.ts +31 -0
  44. package/dist/models/list-claim-response-class.js +15 -0
  45. package/dist/models/list-settlements-response-class.d.ts +31 -0
  46. package/dist/models/list-settlements-response-class.js +15 -0
  47. package/dist/models/settlement-class.d.ts +72 -0
  48. package/dist/models/settlement-class.js +15 -0
  49. package/dist/models/update-claim-request-dto.d.ts +7 -7
  50. package/dist/models/update-claim-request-dto.js +1 -1
  51. package/dist/models/update-claim-response-class.d.ts +25 -0
  52. package/dist/models/update-claim-response-class.js +15 -0
  53. package/dist/models/update-settlement-request-dto.d.ts +48 -0
  54. package/dist/models/update-settlement-request-dto.js +15 -0
  55. package/dist/models/update-settlement-response-class.d.ts +25 -0
  56. package/dist/models/update-settlement-response-class.js +15 -0
  57. package/index.ts +1 -1
  58. package/models/claim-class.ts +150 -0
  59. package/models/create-claim-request-dto.ts +7 -7
  60. package/models/create-claim-response-class.ts +31 -0
  61. package/models/create-settlement-request-dto.ts +54 -0
  62. package/models/create-settlement-response-class.ts +31 -0
  63. package/models/delete-response-class.ts +30 -0
  64. package/models/delete-settlement-request-dto.ts +36 -0
  65. package/models/get-claim-response-class.ts +31 -0
  66. package/models/get-settlement-response-class.ts +31 -0
  67. package/models/index.ts +14 -0
  68. package/models/list-claim-response-class.ts +37 -0
  69. package/models/list-settlements-response-class.ts +37 -0
  70. package/models/settlement-class.ts +78 -0
  71. package/models/update-claim-request-dto.ts +7 -7
  72. package/models/update-claim-response-class.ts +31 -0
  73. package/models/update-settlement-request-dto.ts +54 -0
  74. package/models/update-settlement-response-class.ts +31 -0
  75. package/package.json +1 -1
@@ -6,7 +6,7 @@
6
6
  * The EMIL ClaimService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -99,21 +99,23 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
99
99
  /**
100
100
  * This will create a claim in the database
101
101
  * @summary Create the claim
102
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
102
103
  * @param {CreateClaimRequestDto} createClaimRequestDto
103
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
107
- createClaim: function (createClaimRequestDto, authorization, options) {
107
+ createClaim: function (authorization, createClaimRequestDto, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
114
+ // verify required parameter 'authorization' is not null or undefined
115
+ (0, common_1.assertParamExists)('createClaim', 'authorization', authorization);
114
116
  // verify required parameter 'createClaimRequestDto' is not null or undefined
115
117
  (0, common_1.assertParamExists)('createClaim', 'createClaimRequestDto', createClaimRequestDto);
116
- localVarPath = "/v1/claims/";
118
+ localVarPath = "/v1/claims";
117
119
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
120
  if (configuration) {
119
121
  baseOptions = configuration.baseOptions;
@@ -145,24 +147,76 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
145
147
  });
146
148
  });
147
149
  },
150
+ /**
151
+ * This will delete the requested claim from the database.
152
+ * @summary Delete the claim
153
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
154
+ * @param {string} code
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ deleteClaim: function (authorization, code, options) {
159
+ if (options === void 0) { options = {}; }
160
+ return __awaiter(_this, void 0, void 0, function () {
161
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ return __generator(this, function (_a) {
163
+ switch (_a.label) {
164
+ case 0:
165
+ // verify required parameter 'authorization' is not null or undefined
166
+ (0, common_1.assertParamExists)('deleteClaim', 'authorization', authorization);
167
+ // verify required parameter 'code' is not null or undefined
168
+ (0, common_1.assertParamExists)('deleteClaim', 'code', code);
169
+ localVarPath = "/v1/claims/{code}"
170
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
171
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
172
+ if (configuration) {
173
+ baseOptions = configuration.baseOptions;
174
+ baseAccessToken = configuration.accessToken;
175
+ }
176
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
177
+ localVarHeaderParameter = {};
178
+ localVarQueryParameter = {};
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
182
+ case 1:
183
+ // authentication bearer required
184
+ // http bearer authentication required
185
+ _a.sent();
186
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
+ }
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ return [2 /*return*/, {
193
+ url: (0, common_1.toPathString)(localVarUrlObj),
194
+ options: localVarRequestOptions,
195
+ }];
196
+ }
197
+ });
198
+ });
199
+ },
148
200
  /**
149
201
  * This will fetch the identified claim from the database by code
150
202
  * @summary Retrieve the claim
203
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
151
204
  * @param {string} code
152
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
205
  * @param {*} [options] Override http request option.
154
206
  * @throws {RequiredError}
155
207
  */
156
- getClaim: function (code, authorization, options) {
208
+ getClaim: function (authorization, code, options) {
157
209
  if (options === void 0) { options = {}; }
158
210
  return __awaiter(_this, void 0, void 0, function () {
159
211
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
212
  return __generator(this, function (_a) {
161
213
  switch (_a.label) {
162
214
  case 0:
215
+ // verify required parameter 'authorization' is not null or undefined
216
+ (0, common_1.assertParamExists)('getClaim', 'authorization', authorization);
163
217
  // verify required parameter 'code' is not null or undefined
164
218
  (0, common_1.assertParamExists)('getClaim', 'code', code);
165
- localVarPath = "/v1/claims//{code}"
219
+ localVarPath = "/v1/claims/{code}"
166
220
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
167
221
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
222
  if (configuration) {
@@ -194,9 +248,9 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
194
248
  });
195
249
  },
196
250
  /**
197
- * This will fetch list of claims from the database
198
- * @summary Retrieve the claim
199
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
251
+ * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
252
+ * @summary List claims
253
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
200
254
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
201
255
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
202
256
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -213,7 +267,9 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
213
267
  return __generator(this, function (_a) {
214
268
  switch (_a.label) {
215
269
  case 0:
216
- localVarPath = "/v1/claims/";
270
+ // verify required parameter 'authorization' is not null or undefined
271
+ (0, common_1.assertParamExists)('listClaims', 'authorization', authorization);
272
+ localVarPath = "/v1/claims";
217
273
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
218
274
  if (configuration) {
219
275
  baseOptions = configuration.baseOptions;
@@ -264,24 +320,26 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
264
320
  /**
265
321
  * This will update the identified claim in the database
266
322
  * @summary Update the claim
323
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
267
324
  * @param {string} code
268
325
  * @param {UpdateClaimRequestDto} updateClaimRequestDto
269
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
270
326
  * @param {*} [options] Override http request option.
271
327
  * @throws {RequiredError}
272
328
  */
273
- updateClaim: function (code, updateClaimRequestDto, authorization, options) {
329
+ updateClaim: function (authorization, code, updateClaimRequestDto, options) {
274
330
  if (options === void 0) { options = {}; }
275
331
  return __awaiter(_this, void 0, void 0, function () {
276
332
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
277
333
  return __generator(this, function (_a) {
278
334
  switch (_a.label) {
279
335
  case 0:
336
+ // verify required parameter 'authorization' is not null or undefined
337
+ (0, common_1.assertParamExists)('updateClaim', 'authorization', authorization);
280
338
  // verify required parameter 'code' is not null or undefined
281
339
  (0, common_1.assertParamExists)('updateClaim', 'code', code);
282
340
  // verify required parameter 'updateClaimRequestDto' is not null or undefined
283
341
  (0, common_1.assertParamExists)('updateClaim', 'updateClaimRequestDto', updateClaimRequestDto);
284
- localVarPath = "/v1/claims//{code}"
342
+ localVarPath = "/v1/claims/{code}"
285
343
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
286
344
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
287
345
  if (configuration) {
@@ -327,17 +385,38 @@ var ClaimsApiFp = function (configuration) {
327
385
  /**
328
386
  * This will create a claim in the database
329
387
  * @summary Create the claim
388
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
330
389
  * @param {CreateClaimRequestDto} createClaimRequestDto
331
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
332
390
  * @param {*} [options] Override http request option.
333
391
  * @throws {RequiredError}
334
392
  */
335
- createClaim: function (createClaimRequestDto, authorization, options) {
393
+ createClaim: function (authorization, createClaimRequestDto, options) {
336
394
  return __awaiter(this, void 0, void 0, function () {
337
395
  var localVarAxiosArgs;
338
396
  return __generator(this, function (_a) {
339
397
  switch (_a.label) {
340
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaim(createClaimRequestDto, authorization, options)];
398
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaim(authorization, createClaimRequestDto, options)];
399
+ case 1:
400
+ localVarAxiosArgs = _a.sent();
401
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
402
+ }
403
+ });
404
+ });
405
+ },
406
+ /**
407
+ * This will delete the requested claim from the database.
408
+ * @summary Delete the claim
409
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
410
+ * @param {string} code
411
+ * @param {*} [options] Override http request option.
412
+ * @throws {RequiredError}
413
+ */
414
+ deleteClaim: function (authorization, code, options) {
415
+ return __awaiter(this, void 0, void 0, function () {
416
+ var localVarAxiosArgs;
417
+ return __generator(this, function (_a) {
418
+ switch (_a.label) {
419
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteClaim(authorization, code, options)];
341
420
  case 1:
342
421
  localVarAxiosArgs = _a.sent();
343
422
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -348,17 +427,17 @@ var ClaimsApiFp = function (configuration) {
348
427
  /**
349
428
  * This will fetch the identified claim from the database by code
350
429
  * @summary Retrieve the claim
430
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
351
431
  * @param {string} code
352
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
353
432
  * @param {*} [options] Override http request option.
354
433
  * @throws {RequiredError}
355
434
  */
356
- getClaim: function (code, authorization, options) {
435
+ getClaim: function (authorization, code, options) {
357
436
  return __awaiter(this, void 0, void 0, function () {
358
437
  var localVarAxiosArgs;
359
438
  return __generator(this, function (_a) {
360
439
  switch (_a.label) {
361
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaim(code, authorization, options)];
440
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaim(authorization, code, options)];
362
441
  case 1:
363
442
  localVarAxiosArgs = _a.sent();
364
443
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -367,9 +446,9 @@ var ClaimsApiFp = function (configuration) {
367
446
  });
368
447
  },
369
448
  /**
370
- * This will fetch list of claims from the database
371
- * @summary Retrieve the claim
372
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
449
+ * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
450
+ * @summary List claims
451
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
373
452
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
374
453
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
375
454
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -395,18 +474,18 @@ var ClaimsApiFp = function (configuration) {
395
474
  /**
396
475
  * This will update the identified claim in the database
397
476
  * @summary Update the claim
477
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
398
478
  * @param {string} code
399
479
  * @param {UpdateClaimRequestDto} updateClaimRequestDto
400
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
401
480
  * @param {*} [options] Override http request option.
402
481
  * @throws {RequiredError}
403
482
  */
404
- updateClaim: function (code, updateClaimRequestDto, authorization, options) {
483
+ updateClaim: function (authorization, code, updateClaimRequestDto, options) {
405
484
  return __awaiter(this, void 0, void 0, function () {
406
485
  var localVarAxiosArgs;
407
486
  return __generator(this, function (_a) {
408
487
  switch (_a.label) {
409
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateClaim(code, updateClaimRequestDto, authorization, options)];
488
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateClaim(authorization, code, updateClaimRequestDto, options)];
410
489
  case 1:
411
490
  localVarAxiosArgs = _a.sent();
412
491
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -427,29 +506,40 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
427
506
  /**
428
507
  * This will create a claim in the database
429
508
  * @summary Create the claim
509
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
430
510
  * @param {CreateClaimRequestDto} createClaimRequestDto
431
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
432
511
  * @param {*} [options] Override http request option.
433
512
  * @throws {RequiredError}
434
513
  */
435
- createClaim: function (createClaimRequestDto, authorization, options) {
436
- return localVarFp.createClaim(createClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
514
+ createClaim: function (authorization, createClaimRequestDto, options) {
515
+ return localVarFp.createClaim(authorization, createClaimRequestDto, options).then(function (request) { return request(axios, basePath); });
516
+ },
517
+ /**
518
+ * This will delete the requested claim from the database.
519
+ * @summary Delete the claim
520
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
521
+ * @param {string} code
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ */
525
+ deleteClaim: function (authorization, code, options) {
526
+ return localVarFp.deleteClaim(authorization, code, options).then(function (request) { return request(axios, basePath); });
437
527
  },
438
528
  /**
439
529
  * This will fetch the identified claim from the database by code
440
530
  * @summary Retrieve the claim
531
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
441
532
  * @param {string} code
442
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
443
533
  * @param {*} [options] Override http request option.
444
534
  * @throws {RequiredError}
445
535
  */
446
- getClaim: function (code, authorization, options) {
447
- return localVarFp.getClaim(code, authorization, options).then(function (request) { return request(axios, basePath); });
536
+ getClaim: function (authorization, code, options) {
537
+ return localVarFp.getClaim(authorization, code, options).then(function (request) { return request(axios, basePath); });
448
538
  },
449
539
  /**
450
- * This will fetch list of claims from the database
451
- * @summary Retrieve the claim
452
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
540
+ * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
541
+ * @summary List claims
542
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
453
543
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
454
544
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
455
545
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -465,14 +555,14 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
465
555
  /**
466
556
  * This will update the identified claim in the database
467
557
  * @summary Update the claim
558
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
468
559
  * @param {string} code
469
560
  * @param {UpdateClaimRequestDto} updateClaimRequestDto
470
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
561
  * @param {*} [options] Override http request option.
472
562
  * @throws {RequiredError}
473
563
  */
474
- updateClaim: function (code, updateClaimRequestDto, authorization, options) {
475
- return localVarFp.updateClaim(code, updateClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
564
+ updateClaim: function (authorization, code, updateClaimRequestDto, options) {
565
+ return localVarFp.updateClaim(authorization, code, updateClaimRequestDto, options).then(function (request) { return request(axios, basePath); });
476
566
  },
477
567
  };
478
568
  };
@@ -498,7 +588,19 @@ var ClaimsApi = /** @class */ (function (_super) {
498
588
  */
499
589
  ClaimsApi.prototype.createClaim = function (requestParameters, options) {
500
590
  var _this = this;
501
- return (0, exports.ClaimsApiFp)(this.configuration).createClaim(requestParameters.createClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
591
+ return (0, exports.ClaimsApiFp)(this.configuration).createClaim(requestParameters.authorization, requestParameters.createClaimRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
592
+ };
593
+ /**
594
+ * This will delete the requested claim from the database.
595
+ * @summary Delete the claim
596
+ * @param {ClaimsApiDeleteClaimRequest} requestParameters Request parameters.
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ * @memberof ClaimsApi
600
+ */
601
+ ClaimsApi.prototype.deleteClaim = function (requestParameters, options) {
602
+ var _this = this;
603
+ return (0, exports.ClaimsApiFp)(this.configuration).deleteClaim(requestParameters.authorization, requestParameters.code, options).then(function (request) { return request(_this.axios, _this.basePath); });
502
604
  };
503
605
  /**
504
606
  * This will fetch the identified claim from the database by code
@@ -510,11 +612,11 @@ var ClaimsApi = /** @class */ (function (_super) {
510
612
  */
511
613
  ClaimsApi.prototype.getClaim = function (requestParameters, options) {
512
614
  var _this = this;
513
- return (0, exports.ClaimsApiFp)(this.configuration).getClaim(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
615
+ return (0, exports.ClaimsApiFp)(this.configuration).getClaim(requestParameters.authorization, requestParameters.code, options).then(function (request) { return request(_this.axios, _this.basePath); });
514
616
  };
515
617
  /**
516
- * This will fetch list of claims from the database
517
- * @summary Retrieve the claim
618
+ * Returns a list of claims you have previously created. The claims are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
619
+ * @summary List claims
518
620
  * @param {ClaimsApiListClaimsRequest} requestParameters Request parameters.
519
621
  * @param {*} [options] Override http request option.
520
622
  * @throws {RequiredError}
@@ -522,7 +624,6 @@ var ClaimsApi = /** @class */ (function (_super) {
522
624
  */
523
625
  ClaimsApi.prototype.listClaims = function (requestParameters, options) {
524
626
  var _this = this;
525
- if (requestParameters === void 0) { requestParameters = {}; }
526
627
  return (0, exports.ClaimsApiFp)(this.configuration).listClaims(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
527
628
  };
528
629
  /**
@@ -535,7 +636,7 @@ var ClaimsApi = /** @class */ (function (_super) {
535
636
  */
536
637
  ClaimsApi.prototype.updateClaim = function (requestParameters, options) {
537
638
  var _this = this;
538
- return (0, exports.ClaimsApiFp)(this.configuration).updateClaim(requestParameters.code, requestParameters.updateClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
639
+ return (0, exports.ClaimsApiFp)(this.configuration).updateClaim(requestParameters.authorization, requestParameters.code, requestParameters.updateClaimRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
539
640
  };
540
641
  return ClaimsApi;
541
642
  }(base_1.BaseAPI));