@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
@@ -49,6 +49,54 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
49
49
  createClaimRegulation: async (createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
50
  // verify required parameter 'createRegulationItemRequestDto' is not null or undefined
51
51
  assertParamExists('createClaimRegulation', 'createRegulationItemRequestDto', createRegulationItemRequestDto)
52
+ const localVarPath = `/claimservice/v1/regulations`;
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ let baseAccessToken;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ baseAccessToken = configuration.accessToken;
60
+ }
61
+
62
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
63
+ const localVarHeaderParameter = {} as any;
64
+ const localVarQueryParameter = {} as any;
65
+
66
+ // authentication bearer required
67
+ // http bearer authentication required
68
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
+
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ }
73
+
74
+
75
+
76
+ localVarHeaderParameter['Content-Type'] = 'application/json';
77
+
78
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
79
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
80
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
81
+ localVarRequestOptions.data = serializeDataIfNeeded(createRegulationItemRequestDto, localVarRequestOptions, configuration)
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * 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.
90
+ * @summary Create the claim regulation item
91
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
92
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
93
+ * @param {*} [options] Override http request option.
94
+ * @deprecated
95
+ * @throws {RequiredError}
96
+ */
97
+ createClaimRegulation1: async (createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
98
+ // verify required parameter 'createRegulationItemRequestDto' is not null or undefined
99
+ assertParamExists('createClaimRegulation1', 'createRegulationItemRequestDto', createRegulationItemRequestDto)
52
100
  const localVarPath = `/v1/claims/regulations`;
53
101
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
102
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -96,6 +144,52 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
96
144
  deleteClaimRegulations: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
145
  // verify required parameter 'code' is not null or undefined
98
146
  assertParamExists('deleteClaimRegulations', 'code', code)
147
+ const localVarPath = `/claimservice/v1/regulations/{code}`
148
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
151
+ let baseOptions;
152
+ let baseAccessToken;
153
+ if (configuration) {
154
+ baseOptions = configuration.baseOptions;
155
+ baseAccessToken = configuration.accessToken;
156
+ }
157
+
158
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
159
+ const localVarHeaderParameter = {} as any;
160
+ const localVarQueryParameter = {} as any;
161
+
162
+ // authentication bearer required
163
+ // http bearer authentication required
164
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
165
+
166
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
167
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
168
+ }
169
+
170
+
171
+
172
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
175
+
176
+ return {
177
+ url: toPathString(localVarUrlObj),
178
+ options: localVarRequestOptions,
179
+ };
180
+ },
181
+ /**
182
+ * 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.
183
+ * @summary Delete the claim regulation item
184
+ * @param {string} code Unique identifier for the object.
185
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
186
+ * @param {*} [options] Override http request option.
187
+ * @deprecated
188
+ * @throws {RequiredError}
189
+ */
190
+ deleteClaimRegulations1: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
191
+ // verify required parameter 'code' is not null or undefined
192
+ assertParamExists('deleteClaimRegulations1', 'code', code)
99
193
  const localVarPath = `/v1/claims/regulations/{code}`
100
194
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
101
195
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -142,6 +236,57 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
142
236
  getClaimRegulation: async (code: string, authorization?: string, expand?: 'claim', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
143
237
  // verify required parameter 'code' is not null or undefined
144
238
  assertParamExists('getClaimRegulation', 'code', code)
239
+ const localVarPath = `/claimservice/v1/regulations/{code}`
240
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
242
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
243
+ let baseOptions;
244
+ let baseAccessToken;
245
+ if (configuration) {
246
+ baseOptions = configuration.baseOptions;
247
+ baseAccessToken = configuration.accessToken;
248
+ }
249
+
250
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
251
+ const localVarHeaderParameter = {} as any;
252
+ const localVarQueryParameter = {} as any;
253
+
254
+ // authentication bearer required
255
+ // http bearer authentication required
256
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
257
+
258
+ if (expand !== undefined) {
259
+ localVarQueryParameter['expand'] = expand;
260
+ }
261
+
262
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
263
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
264
+ }
265
+
266
+
267
+
268
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
269
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
270
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
271
+
272
+ return {
273
+ url: toPathString(localVarUrlObj),
274
+ options: localVarRequestOptions,
275
+ };
276
+ },
277
+ /**
278
+ * 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.
279
+ * @summary Retrieve the claim regulation item
280
+ * @param {string} code
281
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
282
+ * @param {'claim'} [expand]
283
+ * @param {*} [options] Override http request option.
284
+ * @deprecated
285
+ * @throws {RequiredError}
286
+ */
287
+ getClaimRegulation1: async (code: string, authorization?: string, expand?: 'claim', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
288
+ // verify required parameter 'code' is not null or undefined
289
+ assertParamExists('getClaimRegulation1', 'code', code)
145
290
  const localVarPath = `/v1/claims/regulations/{code}`
146
291
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
147
292
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -195,6 +340,83 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
195
340
  * @throws {RequiredError}
196
341
  */
197
342
  listClaimRegulations: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
343
+ const localVarPath = `/claimservice/v1/regulations`;
344
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
345
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
346
+ let baseOptions;
347
+ let baseAccessToken;
348
+ if (configuration) {
349
+ baseOptions = configuration.baseOptions;
350
+ baseAccessToken = configuration.accessToken;
351
+ }
352
+
353
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
354
+ const localVarHeaderParameter = {} as any;
355
+ const localVarQueryParameter = {} as any;
356
+
357
+ // authentication bearer required
358
+ // http bearer authentication required
359
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
360
+
361
+ if (pageSize !== undefined) {
362
+ localVarQueryParameter['pageSize'] = pageSize;
363
+ }
364
+
365
+ if (pageToken !== undefined) {
366
+ localVarQueryParameter['pageToken'] = pageToken;
367
+ }
368
+
369
+ if (filter !== undefined) {
370
+ localVarQueryParameter['filter'] = filter;
371
+ }
372
+
373
+ if (search !== undefined) {
374
+ localVarQueryParameter['search'] = search;
375
+ }
376
+
377
+ if (order !== undefined) {
378
+ localVarQueryParameter['order'] = order;
379
+ }
380
+
381
+ if (expand !== undefined) {
382
+ localVarQueryParameter['expand'] = expand;
383
+ }
384
+
385
+ if (filters !== undefined) {
386
+ localVarQueryParameter['filters'] = filters;
387
+ }
388
+
389
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
390
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
391
+ }
392
+
393
+
394
+
395
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
396
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
397
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
398
+
399
+ return {
400
+ url: toPathString(localVarUrlObj),
401
+ options: localVarRequestOptions,
402
+ };
403
+ },
404
+ /**
405
+ * 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.
406
+ * @summary List claim regulation items
407
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
408
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
409
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
410
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType&lt;/i&gt;
411
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, claimCode, currency&lt;/i&gt;
412
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: amount, bookingDate, createdAt, updatedAt&lt;/i&gt;
413
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: claim&lt;i&gt;
414
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType&lt;/i&gt;
415
+ * @param {*} [options] Override http request option.
416
+ * @deprecated
417
+ * @throws {RequiredError}
418
+ */
419
+ listClaimRegulations1: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
198
420
  const localVarPath = `/v1/claims/regulations`;
199
421
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
200
422
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -270,6 +492,58 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
270
492
  assertParamExists('updateClaimRegulation', 'code', code)
271
493
  // verify required parameter 'updateRegulationItemRequestDto' is not null or undefined
272
494
  assertParamExists('updateClaimRegulation', 'updateRegulationItemRequestDto', updateRegulationItemRequestDto)
495
+ const localVarPath = `/claimservice/v1/regulations/{code}`
496
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
498
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
499
+ let baseOptions;
500
+ let baseAccessToken;
501
+ if (configuration) {
502
+ baseOptions = configuration.baseOptions;
503
+ baseAccessToken = configuration.accessToken;
504
+ }
505
+
506
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
507
+ const localVarHeaderParameter = {} as any;
508
+ const localVarQueryParameter = {} as any;
509
+
510
+ // authentication bearer required
511
+ // http bearer authentication required
512
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
513
+
514
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
515
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
516
+ }
517
+
518
+
519
+
520
+ localVarHeaderParameter['Content-Type'] = 'application/json';
521
+
522
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
523
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
524
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
525
+ localVarRequestOptions.data = serializeDataIfNeeded(updateRegulationItemRequestDto, localVarRequestOptions, configuration)
526
+
527
+ return {
528
+ url: toPathString(localVarUrlObj),
529
+ options: localVarRequestOptions,
530
+ };
531
+ },
532
+ /**
533
+ * 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.
534
+ * @summary Update the claim regulation item
535
+ * @param {string} code Unique identifier for the object.
536
+ * @param {UpdateRegulationItemRequestDto} updateRegulationItemRequestDto
537
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
538
+ * @param {*} [options] Override http request option.
539
+ * @deprecated
540
+ * @throws {RequiredError}
541
+ */
542
+ updateClaimRegulation1: async (code: string, updateRegulationItemRequestDto: UpdateRegulationItemRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
543
+ // verify required parameter 'code' is not null or undefined
544
+ assertParamExists('updateClaimRegulation1', 'code', code)
545
+ // verify required parameter 'updateRegulationItemRequestDto' is not null or undefined
546
+ assertParamExists('updateClaimRegulation1', 'updateRegulationItemRequestDto', updateRegulationItemRequestDto)
273
547
  const localVarPath = `/v1/claims/regulations/{code}`
274
548
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
275
549
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -330,15 +604,41 @@ export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
330
604
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
331
605
  },
332
606
  /**
333
- * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\"
607
+ * 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.
608
+ * @summary Create the claim regulation item
609
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
610
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
611
+ * @param {*} [options] Override http request option.
612
+ * @deprecated
613
+ * @throws {RequiredError}
614
+ */
615
+ async createClaimRegulation1(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
616
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createClaimRegulation1(createRegulationItemRequestDto, authorization, options);
617
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
618
+ },
619
+ /**
620
+ * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\"
621
+ * @summary Delete the claim regulation item
622
+ * @param {string} code Unique identifier for the object.
623
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
624
+ * @param {*} [options] Override http request option.
625
+ * @throws {RequiredError}
626
+ */
627
+ async deleteClaimRegulations(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
628
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimRegulations(code, authorization, options);
629
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
630
+ },
631
+ /**
632
+ * 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.
334
633
  * @summary Delete the claim regulation item
335
634
  * @param {string} code Unique identifier for the object.
336
635
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
337
636
  * @param {*} [options] Override http request option.
637
+ * @deprecated
338
638
  * @throws {RequiredError}
339
639
  */
340
- async deleteClaimRegulations(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
341
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimRegulations(code, authorization, options);
640
+ async deleteClaimRegulations1(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
641
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimRegulations1(code, authorization, options);
342
642
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
343
643
  },
344
644
  /**
@@ -354,6 +654,20 @@ export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
354
654
  const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimRegulation(code, authorization, expand, options);
355
655
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
356
656
  },
657
+ /**
658
+ * 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.
659
+ * @summary Retrieve the claim regulation item
660
+ * @param {string} code
661
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
662
+ * @param {'claim'} [expand]
663
+ * @param {*} [options] Override http request option.
664
+ * @deprecated
665
+ * @throws {RequiredError}
666
+ */
667
+ async getClaimRegulation1(code: string, authorization?: string, expand?: 'claim', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
668
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimRegulation1(code, authorization, expand, options);
669
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
670
+ },
357
671
  /**
358
672
  * 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\"
359
673
  * @summary List claim regulation items
@@ -372,6 +686,25 @@ export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
372
686
  const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimRegulations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
373
687
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
374
688
  },
689
+ /**
690
+ * 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.
691
+ * @summary List claim regulation items
692
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
693
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
694
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
695
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType&lt;/i&gt;
696
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, claimCode, currency&lt;/i&gt;
697
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: amount, bookingDate, createdAt, updatedAt&lt;/i&gt;
698
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: claim&lt;i&gt;
699
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType&lt;/i&gt;
700
+ * @param {*} [options] Override http request option.
701
+ * @deprecated
702
+ * @throws {RequiredError}
703
+ */
704
+ async listClaimRegulations1(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRegulationsResponseClass>> {
705
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimRegulations1(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
706
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
707
+ },
375
708
  /**
376
709
  * 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\"
377
710
  * @summary Update the claim regulation item
@@ -385,6 +718,20 @@ export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
385
718
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateClaimRegulation(code, updateRegulationItemRequestDto, authorization, options);
386
719
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
387
720
  },
721
+ /**
722
+ * 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.
723
+ * @summary Update the claim regulation item
724
+ * @param {string} code Unique identifier for the object.
725
+ * @param {UpdateRegulationItemRequestDto} updateRegulationItemRequestDto
726
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
727
+ * @param {*} [options] Override http request option.
728
+ * @deprecated
729
+ * @throws {RequiredError}
730
+ */
731
+ async updateClaimRegulation1(code: string, updateRegulationItemRequestDto: UpdateRegulationItemRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClaimRegulation1(code, updateRegulationItemRequestDto, authorization, options);
733
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
734
+ },
388
735
  }
389
736
  };
390
737
 
@@ -406,6 +753,18 @@ export const ClaimRegulationsApiFactory = function (configuration?: Configuratio
406
753
  createClaimRegulation(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
407
754
  return localVarFp.createClaimRegulation(createRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
408
755
  },
756
+ /**
757
+ * 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.
758
+ * @summary Create the claim regulation item
759
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
760
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
761
+ * @param {*} [options] Override http request option.
762
+ * @deprecated
763
+ * @throws {RequiredError}
764
+ */
765
+ createClaimRegulation1(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
766
+ return localVarFp.createClaimRegulation1(createRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
767
+ },
409
768
  /**
410
769
  * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\"
411
770
  * @summary Delete the claim regulation item
@@ -417,6 +776,18 @@ export const ClaimRegulationsApiFactory = function (configuration?: Configuratio
417
776
  deleteClaimRegulations(code: string, authorization?: string, options?: any): AxiosPromise<void> {
418
777
  return localVarFp.deleteClaimRegulations(code, authorization, options).then((request) => request(axios, basePath));
419
778
  },
779
+ /**
780
+ * 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.
781
+ * @summary Delete the claim regulation item
782
+ * @param {string} code Unique identifier for the object.
783
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
784
+ * @param {*} [options] Override http request option.
785
+ * @deprecated
786
+ * @throws {RequiredError}
787
+ */
788
+ deleteClaimRegulations1(code: string, authorization?: string, options?: any): AxiosPromise<void> {
789
+ return localVarFp.deleteClaimRegulations1(code, authorization, options).then((request) => request(axios, basePath));
790
+ },
420
791
  /**
421
792
  * 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\"
422
793
  * @summary Retrieve the claim regulation item
@@ -429,6 +800,19 @@ export const ClaimRegulationsApiFactory = function (configuration?: Configuratio
429
800
  getClaimRegulation(code: string, authorization?: string, expand?: 'claim', options?: any): AxiosPromise<RegulationItemResponseClass> {
430
801
  return localVarFp.getClaimRegulation(code, authorization, expand, options).then((request) => request(axios, basePath));
431
802
  },
803
+ /**
804
+ * 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.
805
+ * @summary Retrieve the claim regulation item
806
+ * @param {string} code
807
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
808
+ * @param {'claim'} [expand]
809
+ * @param {*} [options] Override http request option.
810
+ * @deprecated
811
+ * @throws {RequiredError}
812
+ */
813
+ getClaimRegulation1(code: string, authorization?: string, expand?: 'claim', options?: any): AxiosPromise<RegulationItemResponseClass> {
814
+ return localVarFp.getClaimRegulation1(code, authorization, expand, options).then((request) => request(axios, basePath));
815
+ },
432
816
  /**
433
817
  * 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\"
434
818
  * @summary List claim regulation items
@@ -446,6 +830,24 @@ export const ClaimRegulationsApiFactory = function (configuration?: Configuratio
446
830
  listClaimRegulations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRegulationsResponseClass> {
447
831
  return localVarFp.listClaimRegulations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
448
832
  },
833
+ /**
834
+ * 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.
835
+ * @summary List claim regulation items
836
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
837
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
838
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
839
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType&lt;/i&gt;
840
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, claimCode, currency&lt;/i&gt;
841
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: amount, bookingDate, createdAt, updatedAt&lt;/i&gt;
842
+ * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: claim&lt;i&gt;
843
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType&lt;/i&gt;
844
+ * @param {*} [options] Override http request option.
845
+ * @deprecated
846
+ * @throws {RequiredError}
847
+ */
848
+ listClaimRegulations1(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRegulationsResponseClass> {
849
+ return localVarFp.listClaimRegulations1(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
850
+ },
449
851
  /**
450
852
  * 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\"
451
853
  * @summary Update the claim regulation item
@@ -458,6 +860,19 @@ export const ClaimRegulationsApiFactory = function (configuration?: Configuratio
458
860
  updateClaimRegulation(code: string, updateRegulationItemRequestDto: UpdateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
459
861
  return localVarFp.updateClaimRegulation(code, updateRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
460
862
  },
863
+ /**
864
+ * 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.
865
+ * @summary Update the claim regulation item
866
+ * @param {string} code Unique identifier for the object.
867
+ * @param {UpdateRegulationItemRequestDto} updateRegulationItemRequestDto
868
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
869
+ * @param {*} [options] Override http request option.
870
+ * @deprecated
871
+ * @throws {RequiredError}
872
+ */
873
+ updateClaimRegulation1(code: string, updateRegulationItemRequestDto: UpdateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
874
+ return localVarFp.updateClaimRegulation1(code, updateRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
875
+ },
461
876
  };
462
877
  };
463
878
 
@@ -482,6 +897,27 @@ export interface ClaimRegulationsApiCreateClaimRegulationRequest {
482
897
  readonly authorization?: string
483
898
  }
484
899
 
900
+ /**
901
+ * Request parameters for createClaimRegulation1 operation in ClaimRegulationsApi.
902
+ * @export
903
+ * @interface ClaimRegulationsApiCreateClaimRegulation1Request
904
+ */
905
+ export interface ClaimRegulationsApiCreateClaimRegulation1Request {
906
+ /**
907
+ *
908
+ * @type {CreateRegulationItemRequestDto}
909
+ * @memberof ClaimRegulationsApiCreateClaimRegulation1
910
+ */
911
+ readonly createRegulationItemRequestDto: CreateRegulationItemRequestDto
912
+
913
+ /**
914
+ * Bearer Token: provided by the login endpoint under the name accessToken.
915
+ * @type {string}
916
+ * @memberof ClaimRegulationsApiCreateClaimRegulation1
917
+ */
918
+ readonly authorization?: string
919
+ }
920
+
485
921
  /**
486
922
  * Request parameters for deleteClaimRegulations operation in ClaimRegulationsApi.
487
923
  * @export
@@ -503,6 +939,27 @@ export interface ClaimRegulationsApiDeleteClaimRegulationsRequest {
503
939
  readonly authorization?: string
504
940
  }
505
941
 
942
+ /**
943
+ * Request parameters for deleteClaimRegulations1 operation in ClaimRegulationsApi.
944
+ * @export
945
+ * @interface ClaimRegulationsApiDeleteClaimRegulations1Request
946
+ */
947
+ export interface ClaimRegulationsApiDeleteClaimRegulations1Request {
948
+ /**
949
+ * Unique identifier for the object.
950
+ * @type {string}
951
+ * @memberof ClaimRegulationsApiDeleteClaimRegulations1
952
+ */
953
+ readonly code: string
954
+
955
+ /**
956
+ * Bearer Token: provided by the login endpoint under the name accessToken.
957
+ * @type {string}
958
+ * @memberof ClaimRegulationsApiDeleteClaimRegulations1
959
+ */
960
+ readonly authorization?: string
961
+ }
962
+
506
963
  /**
507
964
  * Request parameters for getClaimRegulation operation in ClaimRegulationsApi.
508
965
  * @export
@@ -531,6 +988,34 @@ export interface ClaimRegulationsApiGetClaimRegulationRequest {
531
988
  readonly expand?: 'claim'
532
989
  }
533
990
 
991
+ /**
992
+ * Request parameters for getClaimRegulation1 operation in ClaimRegulationsApi.
993
+ * @export
994
+ * @interface ClaimRegulationsApiGetClaimRegulation1Request
995
+ */
996
+ export interface ClaimRegulationsApiGetClaimRegulation1Request {
997
+ /**
998
+ *
999
+ * @type {string}
1000
+ * @memberof ClaimRegulationsApiGetClaimRegulation1
1001
+ */
1002
+ readonly code: string
1003
+
1004
+ /**
1005
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1006
+ * @type {string}
1007
+ * @memberof ClaimRegulationsApiGetClaimRegulation1
1008
+ */
1009
+ readonly authorization?: string
1010
+
1011
+ /**
1012
+ *
1013
+ * @type {'claim'}
1014
+ * @memberof ClaimRegulationsApiGetClaimRegulation1
1015
+ */
1016
+ readonly expand?: 'claim'
1017
+ }
1018
+
534
1019
  /**
535
1020
  * Request parameters for listClaimRegulations operation in ClaimRegulationsApi.
536
1021
  * @export
@@ -594,6 +1079,69 @@ export interface ClaimRegulationsApiListClaimRegulationsRequest {
594
1079
  readonly filters?: string
595
1080
  }
596
1081
 
1082
+ /**
1083
+ * Request parameters for listClaimRegulations1 operation in ClaimRegulationsApi.
1084
+ * @export
1085
+ * @interface ClaimRegulationsApiListClaimRegulations1Request
1086
+ */
1087
+ export interface ClaimRegulationsApiListClaimRegulations1Request {
1088
+ /**
1089
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1090
+ * @type {string}
1091
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1092
+ */
1093
+ readonly authorization?: string
1094
+
1095
+ /**
1096
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1097
+ * @type {number}
1098
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1099
+ */
1100
+ readonly pageSize?: number
1101
+
1102
+ /**
1103
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
1104
+ * @type {string}
1105
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1106
+ */
1107
+ readonly pageToken?: string
1108
+
1109
+ /**
1110
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType&lt;/i&gt;
1111
+ * @type {string}
1112
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1113
+ */
1114
+ readonly filter?: string
1115
+
1116
+ /**
1117
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, claimCode, currency&lt;/i&gt;
1118
+ * @type {string}
1119
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1120
+ */
1121
+ readonly search?: string
1122
+
1123
+ /**
1124
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: amount, bookingDate, createdAt, updatedAt&lt;/i&gt;
1125
+ * @type {string}
1126
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1127
+ */
1128
+ readonly order?: string
1129
+
1130
+ /**
1131
+ * 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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: claim&lt;i&gt;
1132
+ * @type {string}
1133
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1134
+ */
1135
+ readonly expand?: string
1136
+
1137
+ /**
1138
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutDetails.payoutType, payoutDetails.payoutStatus, regressDetails.recoveryType, regressDetails.recoveryStatus, reserveDetails.reserveType&lt;/i&gt;
1139
+ * @type {string}
1140
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1141
+ */
1142
+ readonly filters?: string
1143
+ }
1144
+
597
1145
  /**
598
1146
  * Request parameters for updateClaimRegulation operation in ClaimRegulationsApi.
599
1147
  * @export
@@ -622,6 +1170,34 @@ export interface ClaimRegulationsApiUpdateClaimRegulationRequest {
622
1170
  readonly authorization?: string
623
1171
  }
624
1172
 
1173
+ /**
1174
+ * Request parameters for updateClaimRegulation1 operation in ClaimRegulationsApi.
1175
+ * @export
1176
+ * @interface ClaimRegulationsApiUpdateClaimRegulation1Request
1177
+ */
1178
+ export interface ClaimRegulationsApiUpdateClaimRegulation1Request {
1179
+ /**
1180
+ * Unique identifier for the object.
1181
+ * @type {string}
1182
+ * @memberof ClaimRegulationsApiUpdateClaimRegulation1
1183
+ */
1184
+ readonly code: string
1185
+
1186
+ /**
1187
+ *
1188
+ * @type {UpdateRegulationItemRequestDto}
1189
+ * @memberof ClaimRegulationsApiUpdateClaimRegulation1
1190
+ */
1191
+ readonly updateRegulationItemRequestDto: UpdateRegulationItemRequestDto
1192
+
1193
+ /**
1194
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1195
+ * @type {string}
1196
+ * @memberof ClaimRegulationsApiUpdateClaimRegulation1
1197
+ */
1198
+ readonly authorization?: string
1199
+ }
1200
+
625
1201
  /**
626
1202
  * ClaimRegulationsApi - object-oriented interface
627
1203
  * @export
@@ -641,6 +1217,19 @@ export class ClaimRegulationsApi extends BaseAPI {
641
1217
  return ClaimRegulationsApiFp(this.configuration).createClaimRegulation(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
642
1218
  }
643
1219
 
1220
+ /**
1221
+ * 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.
1222
+ * @summary Create the claim regulation item
1223
+ * @param {ClaimRegulationsApiCreateClaimRegulation1Request} requestParameters Request parameters.
1224
+ * @param {*} [options] Override http request option.
1225
+ * @deprecated
1226
+ * @throws {RequiredError}
1227
+ * @memberof ClaimRegulationsApi
1228
+ */
1229
+ public createClaimRegulation1(requestParameters: ClaimRegulationsApiCreateClaimRegulation1Request, options?: AxiosRequestConfig) {
1230
+ return ClaimRegulationsApiFp(this.configuration).createClaimRegulation1(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1231
+ }
1232
+
644
1233
  /**
645
1234
  * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\"
646
1235
  * @summary Delete the claim regulation item
@@ -653,6 +1242,19 @@ export class ClaimRegulationsApi extends BaseAPI {
653
1242
  return ClaimRegulationsApiFp(this.configuration).deleteClaimRegulations(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
654
1243
  }
655
1244
 
1245
+ /**
1246
+ * 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.
1247
+ * @summary Delete the claim regulation item
1248
+ * @param {ClaimRegulationsApiDeleteClaimRegulations1Request} requestParameters Request parameters.
1249
+ * @param {*} [options] Override http request option.
1250
+ * @deprecated
1251
+ * @throws {RequiredError}
1252
+ * @memberof ClaimRegulationsApi
1253
+ */
1254
+ public deleteClaimRegulations1(requestParameters: ClaimRegulationsApiDeleteClaimRegulations1Request, options?: AxiosRequestConfig) {
1255
+ return ClaimRegulationsApiFp(this.configuration).deleteClaimRegulations1(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1256
+ }
1257
+
656
1258
  /**
657
1259
  * 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\"
658
1260
  * @summary Retrieve the claim regulation item
@@ -665,6 +1267,19 @@ export class ClaimRegulationsApi extends BaseAPI {
665
1267
  return ClaimRegulationsApiFp(this.configuration).getClaimRegulation(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
666
1268
  }
667
1269
 
1270
+ /**
1271
+ * 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.
1272
+ * @summary Retrieve the claim regulation item
1273
+ * @param {ClaimRegulationsApiGetClaimRegulation1Request} requestParameters Request parameters.
1274
+ * @param {*} [options] Override http request option.
1275
+ * @deprecated
1276
+ * @throws {RequiredError}
1277
+ * @memberof ClaimRegulationsApi
1278
+ */
1279
+ public getClaimRegulation1(requestParameters: ClaimRegulationsApiGetClaimRegulation1Request, options?: AxiosRequestConfig) {
1280
+ return ClaimRegulationsApiFp(this.configuration).getClaimRegulation1(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1281
+ }
1282
+
668
1283
  /**
669
1284
  * 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\"
670
1285
  * @summary List claim regulation items
@@ -677,6 +1292,19 @@ export class ClaimRegulationsApi extends BaseAPI {
677
1292
  return ClaimRegulationsApiFp(this.configuration).listClaimRegulations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
678
1293
  }
679
1294
 
1295
+ /**
1296
+ * 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.
1297
+ * @summary List claim regulation items
1298
+ * @param {ClaimRegulationsApiListClaimRegulations1Request} requestParameters Request parameters.
1299
+ * @param {*} [options] Override http request option.
1300
+ * @deprecated
1301
+ * @throws {RequiredError}
1302
+ * @memberof ClaimRegulationsApi
1303
+ */
1304
+ public listClaimRegulations1(requestParameters: ClaimRegulationsApiListClaimRegulations1Request = {}, options?: AxiosRequestConfig) {
1305
+ return ClaimRegulationsApiFp(this.configuration).listClaimRegulations1(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1306
+ }
1307
+
680
1308
  /**
681
1309
  * 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\"
682
1310
  * @summary Update the claim regulation item
@@ -688,4 +1316,17 @@ export class ClaimRegulationsApi extends BaseAPI {
688
1316
  public updateClaimRegulation(requestParameters: ClaimRegulationsApiUpdateClaimRegulationRequest, options?: AxiosRequestConfig) {
689
1317
  return ClaimRegulationsApiFp(this.configuration).updateClaimRegulation(requestParameters.code, requestParameters.updateRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
690
1318
  }
1319
+
1320
+ /**
1321
+ * 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.
1322
+ * @summary Update the claim regulation item
1323
+ * @param {ClaimRegulationsApiUpdateClaimRegulation1Request} requestParameters Request parameters.
1324
+ * @param {*} [options] Override http request option.
1325
+ * @deprecated
1326
+ * @throws {RequiredError}
1327
+ * @memberof ClaimRegulationsApi
1328
+ */
1329
+ public updateClaimRegulation1(requestParameters: ClaimRegulationsApiUpdateClaimRegulation1Request, options?: AxiosRequestConfig) {
1330
+ return ClaimRegulationsApiFp(this.configuration).updateClaimRegulation1(requestParameters.code, requestParameters.updateRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1331
+ }
691
1332
  }