@emilgroup/claim-sdk-node 1.39.0 → 1.39.1-beta.1

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 (102) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/api/claim-limit-usages-api.ts +648 -0
  4. package/api/claim-partner-roles-api.ts +627 -0
  5. package/api/claim-partners-api.ts +520 -0
  6. package/api/claim-positions-api.ts +1340 -0
  7. package/api/claim-regulations-api.ts +644 -3
  8. package/api/claim-statuses-api.ts +752 -5
  9. package/api/claims-api.ts +863 -11
  10. package/api/health-check-api.ts +66 -0
  11. package/api/settlements-api.ts +627 -0
  12. package/api.ts +4 -0
  13. package/dist/api/claim-limit-usages-api.d.ts +378 -0
  14. package/dist/api/claim-limit-usages-api.js +585 -0
  15. package/dist/api/claim-partner-roles-api.d.ts +358 -0
  16. package/dist/api/claim-partner-roles-api.js +525 -0
  17. package/dist/api/claim-partners-api.d.ts +299 -0
  18. package/dist/api/claim-partners-api.js +428 -0
  19. package/dist/api/claim-positions-api.d.ts +760 -0
  20. package/dist/api/claim-positions-api.js +1181 -0
  21. package/dist/api/claim-regulations-api.d.ts +367 -0
  22. package/dist/api/claim-regulations-api.js +531 -0
  23. package/dist/api/claim-statuses-api.d.ts +426 -0
  24. package/dist/api/claim-statuses-api.js +642 -14
  25. package/dist/api/claims-api.d.ts +493 -8
  26. package/dist/api/claims-api.js +734 -10
  27. package/dist/api/health-check-api.d.ts +33 -0
  28. package/dist/api/health-check-api.js +73 -0
  29. package/dist/api/settlements-api.d.ts +358 -0
  30. package/dist/api/settlements-api.js +525 -0
  31. package/dist/api.d.ts +2 -0
  32. package/dist/api.js +2 -0
  33. package/dist/models/calculation-step-result-class.d.ts +72 -0
  34. package/dist/models/calculation-step-result-class.js +21 -0
  35. package/dist/models/claim-applied-deductible-class.d.ts +95 -0
  36. package/dist/models/claim-applied-deductible-class.js +20 -0
  37. package/dist/models/claim-class.d.ts +25 -0
  38. package/dist/models/claim-limit-usage-class.d.ts +143 -0
  39. package/dist/models/claim-limit-usage-class.js +30 -0
  40. package/dist/models/claim-limit-usage-result-class.d.ts +48 -0
  41. package/dist/models/claim-limit-usage-result-class.js +21 -0
  42. package/dist/models/claim-position-class.d.ts +151 -0
  43. package/dist/models/claim-position-class.js +20 -0
  44. package/dist/models/create-claim-position-request-dto.d.ts +66 -0
  45. package/dist/models/create-claim-position-request-dto.js +15 -0
  46. package/dist/models/create-claim-position-response-class.d.ts +25 -0
  47. package/dist/models/create-claim-position-response-class.js +15 -0
  48. package/dist/models/create-claim-request-dto.d.ts +6 -0
  49. package/dist/models/create-regulation-item-request-dto.d.ts +26 -3
  50. package/dist/models/create-regulation-item-request-dto.js +5 -1
  51. package/dist/models/get-claim-limit-usage-response-class.d.ts +25 -0
  52. package/dist/models/get-claim-limit-usage-response-class.js +15 -0
  53. package/dist/models/get-claim-position-response-class.d.ts +25 -0
  54. package/dist/models/get-claim-position-response-class.js +15 -0
  55. package/dist/models/index.d.ts +13 -0
  56. package/dist/models/index.js +13 -0
  57. package/dist/models/list-claim-limit-usages-response-class.d.ts +43 -0
  58. package/dist/models/list-claim-limit-usages-response-class.js +15 -0
  59. package/dist/models/list-claim-partner-roles-response-class.d.ts +12 -0
  60. package/dist/models/list-claim-partners-response-class.d.ts +12 -0
  61. package/dist/models/list-claim-positions-response-class.d.ts +43 -0
  62. package/dist/models/list-claim-positions-response-class.js +15 -0
  63. package/dist/models/list-claim-statuses-response-class.d.ts +13 -1
  64. package/dist/models/list-claims-response-class.d.ts +12 -0
  65. package/dist/models/list-regulations-response-class.d.ts +12 -0
  66. package/dist/models/patch-claim-request-dto.d.ts +39 -33
  67. package/dist/models/regulation-item-class.d.ts +35 -0
  68. package/dist/models/regulation-item-class.js +10 -1
  69. package/dist/models/update-claim-position-request-dto.d.ts +60 -0
  70. package/dist/models/update-claim-position-request-dto.js +15 -0
  71. package/dist/models/update-claim-position-response-class.d.ts +25 -0
  72. package/dist/models/update-claim-position-response-class.js +15 -0
  73. package/dist/models/update-claim-request-dto.d.ts +39 -33
  74. package/dist/models/update-regulation-item-request-dto.d.ts +12 -0
  75. package/dist/models/update-regulation-item-request-dto.js +6 -1
  76. package/models/calculation-step-result-class.ts +81 -0
  77. package/models/claim-applied-deductible-class.ts +104 -0
  78. package/models/claim-class.ts +25 -0
  79. package/models/claim-limit-usage-class.ts +154 -0
  80. package/models/claim-limit-usage-result-class.ts +57 -0
  81. package/models/claim-position-class.ts +160 -0
  82. package/models/create-claim-position-request-dto.ts +72 -0
  83. package/models/create-claim-position-response-class.ts +31 -0
  84. package/models/create-claim-request-dto.ts +6 -0
  85. package/models/create-regulation-item-request-dto.ts +27 -3
  86. package/models/get-claim-limit-usage-response-class.ts +31 -0
  87. package/models/get-claim-position-response-class.ts +31 -0
  88. package/models/index.ts +13 -0
  89. package/models/list-claim-limit-usages-response-class.ts +49 -0
  90. package/models/list-claim-partner-roles-response-class.ts +12 -0
  91. package/models/list-claim-partners-response-class.ts +12 -0
  92. package/models/list-claim-positions-response-class.ts +49 -0
  93. package/models/list-claim-statuses-response-class.ts +13 -1
  94. package/models/list-claims-response-class.ts +12 -0
  95. package/models/list-regulations-response-class.ts +12 -0
  96. package/models/patch-claim-request-dto.ts +39 -33
  97. package/models/regulation-item-class.ts +37 -0
  98. package/models/update-claim-position-request-dto.ts +66 -0
  99. package/models/update-claim-position-response-class.ts +31 -0
  100. package/models/update-claim-request-dto.ts +39 -33
  101. package/models/update-regulation-item-request-dto.ts +13 -0
  102. package/package.json +1 -1
@@ -113,6 +113,56 @@ var ClaimRegulationsApiAxiosParamCreator = function (configuration) {
113
113
  case 0:
114
114
  // verify required parameter 'createRegulationItemRequestDto' is not null or undefined
115
115
  (0, common_1.assertParamExists)('createClaimRegulation', 'createRegulationItemRequestDto', createRegulationItemRequestDto);
116
+ localVarPath = "/claimservice/v1/regulations";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createRegulationItemRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * This endpoint will create a new regulation item for a claim **Required Permissions** \"claim-management.regulations.create\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
150
+ * @summary Create the claim regulation item
151
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {*} [options] Override http request option.
154
+ * @deprecated
155
+ * @throws {RequiredError}
156
+ */
157
+ createClaimRegulation1: function (createRegulationItemRequestDto, authorization, options) {
158
+ if (options === void 0) { options = {}; }
159
+ return __awaiter(_this, void 0, void 0, function () {
160
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
+ return __generator(this, function (_a) {
162
+ switch (_a.label) {
163
+ case 0:
164
+ // verify required parameter 'createRegulationItemRequestDto' is not null or undefined
165
+ (0, common_1.assertParamExists)('createClaimRegulation1', 'createRegulationItemRequestDto', createRegulationItemRequestDto);
116
166
  localVarPath = "/v1/claims/regulations";
117
167
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
168
  if (configuration) {
@@ -162,6 +212,55 @@ var ClaimRegulationsApiAxiosParamCreator = function (configuration) {
162
212
  case 0:
163
213
  // verify required parameter 'code' is not null or undefined
164
214
  (0, common_1.assertParamExists)('deleteClaimRegulations', 'code', code);
215
+ localVarPath = "/claimservice/v1/regulations/{code}"
216
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
217
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
218
+ if (configuration) {
219
+ baseOptions = configuration.baseOptions;
220
+ baseAccessToken = configuration.accessToken;
221
+ }
222
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
223
+ localVarHeaderParameter = {};
224
+ localVarQueryParameter = {};
225
+ // authentication bearer required
226
+ // http bearer authentication required
227
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
228
+ case 1:
229
+ // authentication bearer required
230
+ // http bearer authentication required
231
+ _a.sent();
232
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
+ }
235
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
238
+ return [2 /*return*/, {
239
+ url: (0, common_1.toPathString)(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ }];
242
+ }
243
+ });
244
+ });
245
+ },
246
+ /**
247
+ * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
248
+ * @summary Delete the claim regulation item
249
+ * @param {string} code Unique identifier for the object.
250
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
251
+ * @param {*} [options] Override http request option.
252
+ * @deprecated
253
+ * @throws {RequiredError}
254
+ */
255
+ deleteClaimRegulations1: function (code, authorization, options) {
256
+ if (options === void 0) { options = {}; }
257
+ return __awaiter(_this, void 0, void 0, function () {
258
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
259
+ return __generator(this, function (_a) {
260
+ switch (_a.label) {
261
+ case 0:
262
+ // verify required parameter 'code' is not null or undefined
263
+ (0, common_1.assertParamExists)('deleteClaimRegulations1', 'code', code);
165
264
  localVarPath = "/v1/claims/regulations/{code}"
166
265
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
167
266
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -211,6 +310,59 @@ var ClaimRegulationsApiAxiosParamCreator = function (configuration) {
211
310
  case 0:
212
311
  // verify required parameter 'code' is not null or undefined
213
312
  (0, common_1.assertParamExists)('getClaimRegulation', 'code', code);
313
+ localVarPath = "/claimservice/v1/regulations/{code}"
314
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
315
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
316
+ if (configuration) {
317
+ baseOptions = configuration.baseOptions;
318
+ baseAccessToken = configuration.accessToken;
319
+ }
320
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
321
+ localVarHeaderParameter = {};
322
+ localVarQueryParameter = {};
323
+ // authentication bearer required
324
+ // http bearer authentication required
325
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
326
+ case 1:
327
+ // authentication bearer required
328
+ // http bearer authentication required
329
+ _a.sent();
330
+ if (expand !== undefined) {
331
+ localVarQueryParameter['expand'] = expand;
332
+ }
333
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
334
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
335
+ }
336
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
337
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
338
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
339
+ return [2 /*return*/, {
340
+ url: (0, common_1.toPathString)(localVarUrlObj),
341
+ options: localVarRequestOptions,
342
+ }];
343
+ }
344
+ });
345
+ });
346
+ },
347
+ /**
348
+ * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information. **Required Permissions** \"claim-management.regulations.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
349
+ * @summary Retrieve the claim regulation item
350
+ * @param {string} code
351
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
352
+ * @param {'claim'} [expand]
353
+ * @param {*} [options] Override http request option.
354
+ * @deprecated
355
+ * @throws {RequiredError}
356
+ */
357
+ getClaimRegulation1: function (code, authorization, expand, options) {
358
+ if (options === void 0) { options = {}; }
359
+ return __awaiter(_this, void 0, void 0, function () {
360
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
361
+ return __generator(this, function (_a) {
362
+ switch (_a.label) {
363
+ case 0:
364
+ // verify required parameter 'code' is not null or undefined
365
+ (0, common_1.assertParamExists)('getClaimRegulation1', 'code', code);
214
366
  localVarPath = "/v1/claims/regulations/{code}"
215
367
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
216
368
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -260,6 +412,79 @@ var ClaimRegulationsApiAxiosParamCreator = function (configuration) {
260
412
  * @throws {RequiredError}
261
413
  */
262
414
  listClaimRegulations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
415
+ if (options === void 0) { options = {}; }
416
+ return __awaiter(_this, void 0, void 0, function () {
417
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
418
+ return __generator(this, function (_a) {
419
+ switch (_a.label) {
420
+ case 0:
421
+ localVarPath = "/claimservice/v1/regulations";
422
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
423
+ if (configuration) {
424
+ baseOptions = configuration.baseOptions;
425
+ baseAccessToken = configuration.accessToken;
426
+ }
427
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
428
+ localVarHeaderParameter = {};
429
+ localVarQueryParameter = {};
430
+ // authentication bearer required
431
+ // http bearer authentication required
432
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
433
+ case 1:
434
+ // authentication bearer required
435
+ // http bearer authentication required
436
+ _a.sent();
437
+ if (pageSize !== undefined) {
438
+ localVarQueryParameter['pageSize'] = pageSize;
439
+ }
440
+ if (pageToken !== undefined) {
441
+ localVarQueryParameter['pageToken'] = pageToken;
442
+ }
443
+ if (filter !== undefined) {
444
+ localVarQueryParameter['filter'] = filter;
445
+ }
446
+ if (search !== undefined) {
447
+ localVarQueryParameter['search'] = search;
448
+ }
449
+ if (order !== undefined) {
450
+ localVarQueryParameter['order'] = order;
451
+ }
452
+ if (expand !== undefined) {
453
+ localVarQueryParameter['expand'] = expand;
454
+ }
455
+ if (filters !== undefined) {
456
+ localVarQueryParameter['filters'] = filters;
457
+ }
458
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
459
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
460
+ }
461
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
462
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
463
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
464
+ return [2 /*return*/, {
465
+ url: (0, common_1.toPathString)(localVarUrlObj),
466
+ options: localVarRequestOptions,
467
+ }];
468
+ }
469
+ });
470
+ });
471
+ },
472
+ /**
473
+ * Returns a list of claim regulation items you have previously created. The claim regulation items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.regulations.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
474
+ * @summary List claim regulation items
475
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
476
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
477
+ * @param {string} [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.
478
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType</i>
479
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, claimCode, currency</i>
480
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: amount, bookingDate, createdAt, updatedAt</i>
481
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: claim<i>
482
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType</i>
483
+ * @param {*} [options] Override http request option.
484
+ * @deprecated
485
+ * @throws {RequiredError}
486
+ */
487
+ listClaimRegulations1: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
263
488
  if (options === void 0) { options = {}; }
264
489
  return __awaiter(_this, void 0, void 0, function () {
265
490
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -337,6 +562,60 @@ var ClaimRegulationsApiAxiosParamCreator = function (configuration) {
337
562
  (0, common_1.assertParamExists)('updateClaimRegulation', 'code', code);
338
563
  // verify required parameter 'updateRegulationItemRequestDto' is not null or undefined
339
564
  (0, common_1.assertParamExists)('updateClaimRegulation', 'updateRegulationItemRequestDto', updateRegulationItemRequestDto);
565
+ localVarPath = "/claimservice/v1/regulations/{code}"
566
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
567
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
568
+ if (configuration) {
569
+ baseOptions = configuration.baseOptions;
570
+ baseAccessToken = configuration.accessToken;
571
+ }
572
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
573
+ localVarHeaderParameter = {};
574
+ localVarQueryParameter = {};
575
+ // authentication bearer required
576
+ // http bearer authentication required
577
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
578
+ case 1:
579
+ // authentication bearer required
580
+ // http bearer authentication required
581
+ _a.sent();
582
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
583
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
584
+ }
585
+ localVarHeaderParameter['Content-Type'] = 'application/json';
586
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
587
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
588
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
589
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateRegulationItemRequestDto, localVarRequestOptions, configuration);
590
+ return [2 /*return*/, {
591
+ url: (0, common_1.toPathString)(localVarUrlObj),
592
+ options: localVarRequestOptions,
593
+ }];
594
+ }
595
+ });
596
+ });
597
+ },
598
+ /**
599
+ * Update a regulation item status and some other fields identified by it\'s code. A Regulation item type cannot be changed once created e.g. to change a regulation from PAYOUT to RESERVE. In case of mistakes the current regulation item should be deleted and another item should be created. **Required Permissions** \"claim-management.regulations.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
600
+ * @summary Update the claim regulation item
601
+ * @param {string} code Unique identifier for the object.
602
+ * @param {UpdateRegulationItemRequestDto} updateRegulationItemRequestDto
603
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
604
+ * @param {*} [options] Override http request option.
605
+ * @deprecated
606
+ * @throws {RequiredError}
607
+ */
608
+ updateClaimRegulation1: function (code, updateRegulationItemRequestDto, authorization, options) {
609
+ if (options === void 0) { options = {}; }
610
+ return __awaiter(_this, void 0, void 0, function () {
611
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
612
+ return __generator(this, function (_a) {
613
+ switch (_a.label) {
614
+ case 0:
615
+ // verify required parameter 'code' is not null or undefined
616
+ (0, common_1.assertParamExists)('updateClaimRegulation1', 'code', code);
617
+ // verify required parameter 'updateRegulationItemRequestDto' is not null or undefined
618
+ (0, common_1.assertParamExists)('updateClaimRegulation1', 'updateRegulationItemRequestDto', updateRegulationItemRequestDto);
340
619
  localVarPath = "/v1/claims/regulations/{code}"
341
620
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
342
621
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -401,6 +680,28 @@ var ClaimRegulationsApiFp = function (configuration) {
401
680
  });
402
681
  });
403
682
  },
683
+ /**
684
+ * This endpoint will create a new regulation item for a claim **Required Permissions** \"claim-management.regulations.create\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
685
+ * @summary Create the claim regulation item
686
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
687
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
688
+ * @param {*} [options] Override http request option.
689
+ * @deprecated
690
+ * @throws {RequiredError}
691
+ */
692
+ createClaimRegulation1: function (createRegulationItemRequestDto, authorization, options) {
693
+ return __awaiter(this, void 0, void 0, function () {
694
+ var localVarAxiosArgs;
695
+ return __generator(this, function (_a) {
696
+ switch (_a.label) {
697
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createClaimRegulation1(createRegulationItemRequestDto, authorization, options)];
698
+ case 1:
699
+ localVarAxiosArgs = _a.sent();
700
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
701
+ }
702
+ });
703
+ });
704
+ },
404
705
  /**
405
706
  * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\"
406
707
  * @summary Delete the claim regulation item
@@ -422,6 +723,28 @@ var ClaimRegulationsApiFp = function (configuration) {
422
723
  });
423
724
  });
424
725
  },
726
+ /**
727
+ * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
728
+ * @summary Delete the claim regulation item
729
+ * @param {string} code Unique identifier for the object.
730
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
731
+ * @param {*} [options] Override http request option.
732
+ * @deprecated
733
+ * @throws {RequiredError}
734
+ */
735
+ deleteClaimRegulations1: function (code, authorization, options) {
736
+ return __awaiter(this, void 0, void 0, function () {
737
+ var localVarAxiosArgs;
738
+ return __generator(this, function (_a) {
739
+ switch (_a.label) {
740
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteClaimRegulations1(code, authorization, options)];
741
+ case 1:
742
+ localVarAxiosArgs = _a.sent();
743
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
744
+ }
745
+ });
746
+ });
747
+ },
425
748
  /**
426
749
  * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information. **Required Permissions** \"claim-management.regulations.view\"
427
750
  * @summary Retrieve the claim regulation item
@@ -444,6 +767,29 @@ var ClaimRegulationsApiFp = function (configuration) {
444
767
  });
445
768
  });
446
769
  },
770
+ /**
771
+ * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information. **Required Permissions** \"claim-management.regulations.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
772
+ * @summary Retrieve the claim regulation item
773
+ * @param {string} code
774
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
775
+ * @param {'claim'} [expand]
776
+ * @param {*} [options] Override http request option.
777
+ * @deprecated
778
+ * @throws {RequiredError}
779
+ */
780
+ getClaimRegulation1: function (code, authorization, expand, options) {
781
+ return __awaiter(this, void 0, void 0, function () {
782
+ var localVarAxiosArgs;
783
+ return __generator(this, function (_a) {
784
+ switch (_a.label) {
785
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getClaimRegulation1(code, authorization, expand, options)];
786
+ case 1:
787
+ localVarAxiosArgs = _a.sent();
788
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
789
+ }
790
+ });
791
+ });
792
+ },
447
793
  /**
448
794
  * Returns a list of claim regulation items you have previously created. The claim regulation items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.regulations.view\"
449
795
  * @summary List claim regulation items
@@ -471,6 +817,34 @@ var ClaimRegulationsApiFp = function (configuration) {
471
817
  });
472
818
  });
473
819
  },
820
+ /**
821
+ * Returns a list of claim regulation items you have previously created. The claim regulation items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.regulations.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
822
+ * @summary List claim regulation items
823
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
824
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
825
+ * @param {string} [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.
826
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType</i>
827
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, claimCode, currency</i>
828
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: amount, bookingDate, createdAt, updatedAt</i>
829
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: claim<i>
830
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType</i>
831
+ * @param {*} [options] Override http request option.
832
+ * @deprecated
833
+ * @throws {RequiredError}
834
+ */
835
+ listClaimRegulations1: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
836
+ return __awaiter(this, void 0, void 0, function () {
837
+ var localVarAxiosArgs;
838
+ return __generator(this, function (_a) {
839
+ switch (_a.label) {
840
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listClaimRegulations1(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
841
+ case 1:
842
+ localVarAxiosArgs = _a.sent();
843
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
844
+ }
845
+ });
846
+ });
847
+ },
474
848
  /**
475
849
  * Update a regulation item status and some other fields identified by it\'s code. A Regulation item type cannot be changed once created e.g. to change a regulation from PAYOUT to RESERVE. In case of mistakes the current regulation item should be deleted and another item should be created. **Required Permissions** \"claim-management.regulations.update\"
476
850
  * @summary Update the claim regulation item
@@ -493,6 +867,29 @@ var ClaimRegulationsApiFp = function (configuration) {
493
867
  });
494
868
  });
495
869
  },
870
+ /**
871
+ * Update a regulation item status and some other fields identified by it\'s code. A Regulation item type cannot be changed once created e.g. to change a regulation from PAYOUT to RESERVE. In case of mistakes the current regulation item should be deleted and another item should be created. **Required Permissions** \"claim-management.regulations.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
872
+ * @summary Update the claim regulation item
873
+ * @param {string} code Unique identifier for the object.
874
+ * @param {UpdateRegulationItemRequestDto} updateRegulationItemRequestDto
875
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
876
+ * @param {*} [options] Override http request option.
877
+ * @deprecated
878
+ * @throws {RequiredError}
879
+ */
880
+ updateClaimRegulation1: function (code, updateRegulationItemRequestDto, authorization, options) {
881
+ return __awaiter(this, void 0, void 0, function () {
882
+ var localVarAxiosArgs;
883
+ return __generator(this, function (_a) {
884
+ switch (_a.label) {
885
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateClaimRegulation1(code, updateRegulationItemRequestDto, authorization, options)];
886
+ case 1:
887
+ localVarAxiosArgs = _a.sent();
888
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
889
+ }
890
+ });
891
+ });
892
+ },
496
893
  };
497
894
  };
498
895
  exports.ClaimRegulationsApiFp = ClaimRegulationsApiFp;
@@ -514,6 +911,18 @@ var ClaimRegulationsApiFactory = function (configuration, basePath, axios) {
514
911
  createClaimRegulation: function (createRegulationItemRequestDto, authorization, options) {
515
912
  return localVarFp.createClaimRegulation(createRegulationItemRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
516
913
  },
914
+ /**
915
+ * This endpoint will create a new regulation item for a claim **Required Permissions** \"claim-management.regulations.create\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
916
+ * @summary Create the claim regulation item
917
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
918
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
919
+ * @param {*} [options] Override http request option.
920
+ * @deprecated
921
+ * @throws {RequiredError}
922
+ */
923
+ createClaimRegulation1: function (createRegulationItemRequestDto, authorization, options) {
924
+ return localVarFp.createClaimRegulation1(createRegulationItemRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
925
+ },
517
926
  /**
518
927
  * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\"
519
928
  * @summary Delete the claim regulation item
@@ -525,6 +934,18 @@ var ClaimRegulationsApiFactory = function (configuration, basePath, axios) {
525
934
  deleteClaimRegulations: function (code, authorization, options) {
526
935
  return localVarFp.deleteClaimRegulations(code, authorization, options).then(function (request) { return request(axios, basePath); });
527
936
  },
937
+ /**
938
+ * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
939
+ * @summary Delete the claim regulation item
940
+ * @param {string} code Unique identifier for the object.
941
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
942
+ * @param {*} [options] Override http request option.
943
+ * @deprecated
944
+ * @throws {RequiredError}
945
+ */
946
+ deleteClaimRegulations1: function (code, authorization, options) {
947
+ return localVarFp.deleteClaimRegulations1(code, authorization, options).then(function (request) { return request(axios, basePath); });
948
+ },
528
949
  /**
529
950
  * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information. **Required Permissions** \"claim-management.regulations.view\"
530
951
  * @summary Retrieve the claim regulation item
@@ -537,6 +958,19 @@ var ClaimRegulationsApiFactory = function (configuration, basePath, axios) {
537
958
  getClaimRegulation: function (code, authorization, expand, options) {
538
959
  return localVarFp.getClaimRegulation(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
539
960
  },
961
+ /**
962
+ * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information. **Required Permissions** \"claim-management.regulations.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
963
+ * @summary Retrieve the claim regulation item
964
+ * @param {string} code
965
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
966
+ * @param {'claim'} [expand]
967
+ * @param {*} [options] Override http request option.
968
+ * @deprecated
969
+ * @throws {RequiredError}
970
+ */
971
+ getClaimRegulation1: function (code, authorization, expand, options) {
972
+ return localVarFp.getClaimRegulation1(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
973
+ },
540
974
  /**
541
975
  * Returns a list of claim regulation items you have previously created. The claim regulation items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.regulations.view\"
542
976
  * @summary List claim regulation items
@@ -554,6 +988,24 @@ var ClaimRegulationsApiFactory = function (configuration, basePath, axios) {
554
988
  listClaimRegulations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
555
989
  return localVarFp.listClaimRegulations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
556
990
  },
991
+ /**
992
+ * Returns a list of claim regulation items you have previously created. The claim regulation items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.regulations.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
993
+ * @summary List claim regulation items
994
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
995
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
996
+ * @param {string} [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.
997
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType</i>
998
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, claimCode, currency</i>
999
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: amount, bookingDate, createdAt, updatedAt</i>
1000
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: claim<i>
1001
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType</i>
1002
+ * @param {*} [options] Override http request option.
1003
+ * @deprecated
1004
+ * @throws {RequiredError}
1005
+ */
1006
+ listClaimRegulations1: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1007
+ return localVarFp.listClaimRegulations1(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1008
+ },
557
1009
  /**
558
1010
  * Update a regulation item status and some other fields identified by it\'s code. A Regulation item type cannot be changed once created e.g. to change a regulation from PAYOUT to RESERVE. In case of mistakes the current regulation item should be deleted and another item should be created. **Required Permissions** \"claim-management.regulations.update\"
559
1011
  * @summary Update the claim regulation item
@@ -566,6 +1018,19 @@ var ClaimRegulationsApiFactory = function (configuration, basePath, axios) {
566
1018
  updateClaimRegulation: function (code, updateRegulationItemRequestDto, authorization, options) {
567
1019
  return localVarFp.updateClaimRegulation(code, updateRegulationItemRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
568
1020
  },
1021
+ /**
1022
+ * Update a regulation item status and some other fields identified by it\'s code. A Regulation item type cannot be changed once created e.g. to change a regulation from PAYOUT to RESERVE. In case of mistakes the current regulation item should be deleted and another item should be created. **Required Permissions** \"claim-management.regulations.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1023
+ * @summary Update the claim regulation item
1024
+ * @param {string} code Unique identifier for the object.
1025
+ * @param {UpdateRegulationItemRequestDto} updateRegulationItemRequestDto
1026
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1027
+ * @param {*} [options] Override http request option.
1028
+ * @deprecated
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ updateClaimRegulation1: function (code, updateRegulationItemRequestDto, authorization, options) {
1032
+ return localVarFp.updateClaimRegulation1(code, updateRegulationItemRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1033
+ },
569
1034
  };
570
1035
  };
571
1036
  exports.ClaimRegulationsApiFactory = ClaimRegulationsApiFactory;
@@ -592,6 +1057,19 @@ var ClaimRegulationsApi = /** @class */ (function (_super) {
592
1057
  var _this = this;
593
1058
  return (0, exports.ClaimRegulationsApiFp)(this.configuration).createClaimRegulation(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
594
1059
  };
1060
+ /**
1061
+ * This endpoint will create a new regulation item for a claim **Required Permissions** \"claim-management.regulations.create\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1062
+ * @summary Create the claim regulation item
1063
+ * @param {ClaimRegulationsApiCreateClaimRegulation1Request} requestParameters Request parameters.
1064
+ * @param {*} [options] Override http request option.
1065
+ * @deprecated
1066
+ * @throws {RequiredError}
1067
+ * @memberof ClaimRegulationsApi
1068
+ */
1069
+ ClaimRegulationsApi.prototype.createClaimRegulation1 = function (requestParameters, options) {
1070
+ var _this = this;
1071
+ return (0, exports.ClaimRegulationsApiFp)(this.configuration).createClaimRegulation1(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1072
+ };
595
1073
  /**
596
1074
  * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\"
597
1075
  * @summary Delete the claim regulation item
@@ -604,6 +1082,19 @@ var ClaimRegulationsApi = /** @class */ (function (_super) {
604
1082
  var _this = this;
605
1083
  return (0, exports.ClaimRegulationsApiFp)(this.configuration).deleteClaimRegulations(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
606
1084
  };
1085
+ /**
1086
+ * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1087
+ * @summary Delete the claim regulation item
1088
+ * @param {ClaimRegulationsApiDeleteClaimRegulations1Request} requestParameters Request parameters.
1089
+ * @param {*} [options] Override http request option.
1090
+ * @deprecated
1091
+ * @throws {RequiredError}
1092
+ * @memberof ClaimRegulationsApi
1093
+ */
1094
+ ClaimRegulationsApi.prototype.deleteClaimRegulations1 = function (requestParameters, options) {
1095
+ var _this = this;
1096
+ return (0, exports.ClaimRegulationsApiFp)(this.configuration).deleteClaimRegulations1(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1097
+ };
607
1098
  /**
608
1099
  * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information. **Required Permissions** \"claim-management.regulations.view\"
609
1100
  * @summary Retrieve the claim regulation item
@@ -616,6 +1107,19 @@ var ClaimRegulationsApi = /** @class */ (function (_super) {
616
1107
  var _this = this;
617
1108
  return (0, exports.ClaimRegulationsApiFp)(this.configuration).getClaimRegulation(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
618
1109
  };
1110
+ /**
1111
+ * Retrieves the details of the claim regulation item that was previously created. Supply the unique claim regulation item code that was returned when you created it and Emil Api will return the corresponding claim regulation item information. **Required Permissions** \"claim-management.regulations.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1112
+ * @summary Retrieve the claim regulation item
1113
+ * @param {ClaimRegulationsApiGetClaimRegulation1Request} requestParameters Request parameters.
1114
+ * @param {*} [options] Override http request option.
1115
+ * @deprecated
1116
+ * @throws {RequiredError}
1117
+ * @memberof ClaimRegulationsApi
1118
+ */
1119
+ ClaimRegulationsApi.prototype.getClaimRegulation1 = function (requestParameters, options) {
1120
+ var _this = this;
1121
+ return (0, exports.ClaimRegulationsApiFp)(this.configuration).getClaimRegulation1(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
1122
+ };
619
1123
  /**
620
1124
  * Returns a list of claim regulation items you have previously created. The claim regulation items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.regulations.view\"
621
1125
  * @summary List claim regulation items
@@ -629,6 +1133,20 @@ var ClaimRegulationsApi = /** @class */ (function (_super) {
629
1133
  if (requestParameters === void 0) { requestParameters = {}; }
630
1134
  return (0, exports.ClaimRegulationsApiFp)(this.configuration).listClaimRegulations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
631
1135
  };
1136
+ /**
1137
+ * Returns a list of claim regulation items you have previously created. The claim regulation items are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"claim-management.regulations.view\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1138
+ * @summary List claim regulation items
1139
+ * @param {ClaimRegulationsApiListClaimRegulations1Request} requestParameters Request parameters.
1140
+ * @param {*} [options] Override http request option.
1141
+ * @deprecated
1142
+ * @throws {RequiredError}
1143
+ * @memberof ClaimRegulationsApi
1144
+ */
1145
+ ClaimRegulationsApi.prototype.listClaimRegulations1 = function (requestParameters, options) {
1146
+ var _this = this;
1147
+ if (requestParameters === void 0) { requestParameters = {}; }
1148
+ return (0, exports.ClaimRegulationsApiFp)(this.configuration).listClaimRegulations1(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1149
+ };
632
1150
  /**
633
1151
  * Update a regulation item status and some other fields identified by it\'s code. A Regulation item type cannot be changed once created e.g. to change a regulation from PAYOUT to RESERVE. In case of mistakes the current regulation item should be deleted and another item should be created. **Required Permissions** \"claim-management.regulations.update\"
634
1152
  * @summary Update the claim regulation item
@@ -641,6 +1159,19 @@ var ClaimRegulationsApi = /** @class */ (function (_super) {
641
1159
  var _this = this;
642
1160
  return (0, exports.ClaimRegulationsApiFp)(this.configuration).updateClaimRegulation(requestParameters.code, requestParameters.updateRegulationItemRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
643
1161
  };
1162
+ /**
1163
+ * Update a regulation item status and some other fields identified by it\'s code. A Regulation item type cannot be changed once created e.g. to change a regulation from PAYOUT to RESERVE. In case of mistakes the current regulation item should be deleted and another item should be created. **Required Permissions** \"claim-management.regulations.update\" **Deprecated.** Legacy path. Prefer the claimservice/v1 path for new integrations. This path may be removed in a future release.
1164
+ * @summary Update the claim regulation item
1165
+ * @param {ClaimRegulationsApiUpdateClaimRegulation1Request} requestParameters Request parameters.
1166
+ * @param {*} [options] Override http request option.
1167
+ * @deprecated
1168
+ * @throws {RequiredError}
1169
+ * @memberof ClaimRegulationsApi
1170
+ */
1171
+ ClaimRegulationsApi.prototype.updateClaimRegulation1 = function (requestParameters, options) {
1172
+ var _this = this;
1173
+ return (0, exports.ClaimRegulationsApiFp)(this.configuration).updateClaimRegulation1(requestParameters.code, requestParameters.updateRegulationItemRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1174
+ };
644
1175
  return ClaimRegulationsApi;
645
1176
  }(base_1.BaseAPI));
646
1177
  exports.ClaimRegulationsApi = ClaimRegulationsApi;