@emilgroup/claim-sdk 1.41.0 → 1.41.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/api/claim-limit-usages-api.ts +644 -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 +1336 -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 +581 -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 +1177 -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
@@ -45,6 +45,54 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
45
45
  createClaimRegulation: async (createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
46
  // verify required parameter 'createRegulationItemRequestDto' is not null or undefined
47
47
  assertParamExists('createClaimRegulation', 'createRegulationItemRequestDto', createRegulationItemRequestDto)
48
+ const localVarPath = `/claimservice/v1/regulations`;
49
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
+ let baseOptions;
52
+ let baseAccessToken;
53
+ if (configuration) {
54
+ baseOptions = configuration.baseOptions;
55
+ baseAccessToken = configuration.accessToken;
56
+ }
57
+
58
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
59
+ const localVarHeaderParameter = {} as any;
60
+ const localVarQueryParameter = {} as any;
61
+
62
+ // authentication bearer required
63
+ // http bearer authentication required
64
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
+
66
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
68
+ }
69
+
70
+
71
+
72
+ localVarHeaderParameter['Content-Type'] = 'application/json';
73
+
74
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
75
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
+ localVarRequestOptions.data = serializeDataIfNeeded(createRegulationItemRequestDto, localVarRequestOptions, configuration)
78
+
79
+ return {
80
+ url: toPathString(localVarUrlObj),
81
+ options: localVarRequestOptions,
82
+ };
83
+ },
84
+ /**
85
+ * 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.
86
+ * @summary Create the claim regulation item
87
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
88
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
89
+ * @param {*} [options] Override http request option.
90
+ * @deprecated
91
+ * @throws {RequiredError}
92
+ */
93
+ createClaimRegulation1: async (createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
94
+ // verify required parameter 'createRegulationItemRequestDto' is not null or undefined
95
+ assertParamExists('createClaimRegulation1', 'createRegulationItemRequestDto', createRegulationItemRequestDto)
48
96
  const localVarPath = `/v1/claims/regulations`;
49
97
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
98
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -92,6 +140,52 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
92
140
  deleteClaimRegulations: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
141
  // verify required parameter 'code' is not null or undefined
94
142
  assertParamExists('deleteClaimRegulations', 'code', code)
143
+ const localVarPath = `/claimservice/v1/regulations/{code}`
144
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
146
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147
+ let baseOptions;
148
+ let baseAccessToken;
149
+ if (configuration) {
150
+ baseOptions = configuration.baseOptions;
151
+ baseAccessToken = configuration.accessToken;
152
+ }
153
+
154
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
155
+ const localVarHeaderParameter = {} as any;
156
+ const localVarQueryParameter = {} as any;
157
+
158
+ // authentication bearer required
159
+ // http bearer authentication required
160
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
161
+
162
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
163
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
164
+ }
165
+
166
+
167
+
168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
170
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
171
+
172
+ return {
173
+ url: toPathString(localVarUrlObj),
174
+ options: localVarRequestOptions,
175
+ };
176
+ },
177
+ /**
178
+ * 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.
179
+ * @summary Delete the claim regulation item
180
+ * @param {string} code Unique identifier for the object.
181
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
182
+ * @param {*} [options] Override http request option.
183
+ * @deprecated
184
+ * @throws {RequiredError}
185
+ */
186
+ deleteClaimRegulations1: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
187
+ // verify required parameter 'code' is not null or undefined
188
+ assertParamExists('deleteClaimRegulations1', 'code', code)
95
189
  const localVarPath = `/v1/claims/regulations/{code}`
96
190
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
97
191
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -138,6 +232,57 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
138
232
  getClaimRegulation: async (code: string, authorization?: string, expand?: 'claim', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
139
233
  // verify required parameter 'code' is not null or undefined
140
234
  assertParamExists('getClaimRegulation', 'code', code)
235
+ const localVarPath = `/claimservice/v1/regulations/{code}`
236
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
237
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
238
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
239
+ let baseOptions;
240
+ let baseAccessToken;
241
+ if (configuration) {
242
+ baseOptions = configuration.baseOptions;
243
+ baseAccessToken = configuration.accessToken;
244
+ }
245
+
246
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
247
+ const localVarHeaderParameter = {} as any;
248
+ const localVarQueryParameter = {} as any;
249
+
250
+ // authentication bearer required
251
+ // http bearer authentication required
252
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
253
+
254
+ if (expand !== undefined) {
255
+ localVarQueryParameter['expand'] = expand;
256
+ }
257
+
258
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
259
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
260
+ }
261
+
262
+
263
+
264
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
265
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
266
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
267
+
268
+ return {
269
+ url: toPathString(localVarUrlObj),
270
+ options: localVarRequestOptions,
271
+ };
272
+ },
273
+ /**
274
+ * 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.
275
+ * @summary Retrieve the claim regulation item
276
+ * @param {string} code
277
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
278
+ * @param {'claim'} [expand]
279
+ * @param {*} [options] Override http request option.
280
+ * @deprecated
281
+ * @throws {RequiredError}
282
+ */
283
+ getClaimRegulation1: async (code: string, authorization?: string, expand?: 'claim', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
284
+ // verify required parameter 'code' is not null or undefined
285
+ assertParamExists('getClaimRegulation1', 'code', code)
141
286
  const localVarPath = `/v1/claims/regulations/{code}`
142
287
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
143
288
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -191,6 +336,83 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
191
336
  * @throws {RequiredError}
192
337
  */
193
338
  listClaimRegulations: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
339
+ const localVarPath = `/claimservice/v1/regulations`;
340
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
341
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
342
+ let baseOptions;
343
+ let baseAccessToken;
344
+ if (configuration) {
345
+ baseOptions = configuration.baseOptions;
346
+ baseAccessToken = configuration.accessToken;
347
+ }
348
+
349
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
350
+ const localVarHeaderParameter = {} as any;
351
+ const localVarQueryParameter = {} as any;
352
+
353
+ // authentication bearer required
354
+ // http bearer authentication required
355
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
356
+
357
+ if (pageSize !== undefined) {
358
+ localVarQueryParameter['pageSize'] = pageSize;
359
+ }
360
+
361
+ if (pageToken !== undefined) {
362
+ localVarQueryParameter['pageToken'] = pageToken;
363
+ }
364
+
365
+ if (filter !== undefined) {
366
+ localVarQueryParameter['filter'] = filter;
367
+ }
368
+
369
+ if (search !== undefined) {
370
+ localVarQueryParameter['search'] = search;
371
+ }
372
+
373
+ if (order !== undefined) {
374
+ localVarQueryParameter['order'] = order;
375
+ }
376
+
377
+ if (expand !== undefined) {
378
+ localVarQueryParameter['expand'] = expand;
379
+ }
380
+
381
+ if (filters !== undefined) {
382
+ localVarQueryParameter['filters'] = filters;
383
+ }
384
+
385
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
386
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
387
+ }
388
+
389
+
390
+
391
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
392
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
393
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
394
+
395
+ return {
396
+ url: toPathString(localVarUrlObj),
397
+ options: localVarRequestOptions,
398
+ };
399
+ },
400
+ /**
401
+ * 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.
402
+ * @summary List claim regulation items
403
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
404
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
405
+ * @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.
406
+ * @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;
407
+ * @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;
408
+ * @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;
409
+ * @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;
410
+ * @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;
411
+ * @param {*} [options] Override http request option.
412
+ * @deprecated
413
+ * @throws {RequiredError}
414
+ */
415
+ listClaimRegulations1: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
194
416
  const localVarPath = `/v1/claims/regulations`;
195
417
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
418
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -266,6 +488,58 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
266
488
  assertParamExists('updateClaimRegulation', 'code', code)
267
489
  // verify required parameter 'updateRegulationItemRequestDto' is not null or undefined
268
490
  assertParamExists('updateClaimRegulation', 'updateRegulationItemRequestDto', updateRegulationItemRequestDto)
491
+ const localVarPath = `/claimservice/v1/regulations/{code}`
492
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
493
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
494
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
495
+ let baseOptions;
496
+ let baseAccessToken;
497
+ if (configuration) {
498
+ baseOptions = configuration.baseOptions;
499
+ baseAccessToken = configuration.accessToken;
500
+ }
501
+
502
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
503
+ const localVarHeaderParameter = {} as any;
504
+ const localVarQueryParameter = {} as any;
505
+
506
+ // authentication bearer required
507
+ // http bearer authentication required
508
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
509
+
510
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
511
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
512
+ }
513
+
514
+
515
+
516
+ localVarHeaderParameter['Content-Type'] = 'application/json';
517
+
518
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
519
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
520
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
521
+ localVarRequestOptions.data = serializeDataIfNeeded(updateRegulationItemRequestDto, localVarRequestOptions, configuration)
522
+
523
+ return {
524
+ url: toPathString(localVarUrlObj),
525
+ options: localVarRequestOptions,
526
+ };
527
+ },
528
+ /**
529
+ * 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.
530
+ * @summary Update the claim regulation item
531
+ * @param {string} code Unique identifier for the object.
532
+ * @param {UpdateRegulationItemRequestDto} updateRegulationItemRequestDto
533
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
534
+ * @param {*} [options] Override http request option.
535
+ * @deprecated
536
+ * @throws {RequiredError}
537
+ */
538
+ updateClaimRegulation1: async (code: string, updateRegulationItemRequestDto: UpdateRegulationItemRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
539
+ // verify required parameter 'code' is not null or undefined
540
+ assertParamExists('updateClaimRegulation1', 'code', code)
541
+ // verify required parameter 'updateRegulationItemRequestDto' is not null or undefined
542
+ assertParamExists('updateClaimRegulation1', 'updateRegulationItemRequestDto', updateRegulationItemRequestDto)
269
543
  const localVarPath = `/v1/claims/regulations/{code}`
270
544
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
271
545
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -326,15 +600,41 @@ export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
326
600
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
327
601
  },
328
602
  /**
329
- * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\"
603
+ * 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.
604
+ * @summary Create the claim regulation item
605
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
606
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
607
+ * @param {*} [options] Override http request option.
608
+ * @deprecated
609
+ * @throws {RequiredError}
610
+ */
611
+ async createClaimRegulation1(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
612
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createClaimRegulation1(createRegulationItemRequestDto, authorization, options);
613
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
614
+ },
615
+ /**
616
+ * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\"
617
+ * @summary Delete the claim regulation item
618
+ * @param {string} code Unique identifier for the object.
619
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
620
+ * @param {*} [options] Override http request option.
621
+ * @throws {RequiredError}
622
+ */
623
+ async deleteClaimRegulations(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
624
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimRegulations(code, authorization, options);
625
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
626
+ },
627
+ /**
628
+ * 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.
330
629
  * @summary Delete the claim regulation item
331
630
  * @param {string} code Unique identifier for the object.
332
631
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
333
632
  * @param {*} [options] Override http request option.
633
+ * @deprecated
334
634
  * @throws {RequiredError}
335
635
  */
336
- async deleteClaimRegulations(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
337
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimRegulations(code, authorization, options);
636
+ async deleteClaimRegulations1(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
637
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimRegulations1(code, authorization, options);
338
638
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
339
639
  },
340
640
  /**
@@ -350,6 +650,20 @@ export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
350
650
  const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimRegulation(code, authorization, expand, options);
351
651
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
352
652
  },
653
+ /**
654
+ * 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.
655
+ * @summary Retrieve the claim regulation item
656
+ * @param {string} code
657
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
658
+ * @param {'claim'} [expand]
659
+ * @param {*} [options] Override http request option.
660
+ * @deprecated
661
+ * @throws {RequiredError}
662
+ */
663
+ async getClaimRegulation1(code: string, authorization?: string, expand?: 'claim', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
664
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimRegulation1(code, authorization, expand, options);
665
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
666
+ },
353
667
  /**
354
668
  * 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\"
355
669
  * @summary List claim regulation items
@@ -368,6 +682,25 @@ export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
368
682
  const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimRegulations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
369
683
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
370
684
  },
685
+ /**
686
+ * 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.
687
+ * @summary List claim regulation items
688
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
689
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
690
+ * @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.
691
+ * @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;
692
+ * @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;
693
+ * @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;
694
+ * @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;
695
+ * @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;
696
+ * @param {*} [options] Override http request option.
697
+ * @deprecated
698
+ * @throws {RequiredError}
699
+ */
700
+ 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>> {
701
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimRegulations1(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
702
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
703
+ },
371
704
  /**
372
705
  * 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\"
373
706
  * @summary Update the claim regulation item
@@ -381,6 +714,20 @@ export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
381
714
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateClaimRegulation(code, updateRegulationItemRequestDto, authorization, options);
382
715
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
383
716
  },
717
+ /**
718
+ * 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.
719
+ * @summary Update the claim regulation item
720
+ * @param {string} code Unique identifier for the object.
721
+ * @param {UpdateRegulationItemRequestDto} updateRegulationItemRequestDto
722
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
723
+ * @param {*} [options] Override http request option.
724
+ * @deprecated
725
+ * @throws {RequiredError}
726
+ */
727
+ async updateClaimRegulation1(code: string, updateRegulationItemRequestDto: UpdateRegulationItemRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
728
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClaimRegulation1(code, updateRegulationItemRequestDto, authorization, options);
729
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
730
+ },
384
731
  }
385
732
  };
386
733
 
@@ -402,6 +749,18 @@ export const ClaimRegulationsApiFactory = function (configuration?: Configuratio
402
749
  createClaimRegulation(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
403
750
  return localVarFp.createClaimRegulation(createRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
404
751
  },
752
+ /**
753
+ * 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.
754
+ * @summary Create the claim regulation item
755
+ * @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
756
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
757
+ * @param {*} [options] Override http request option.
758
+ * @deprecated
759
+ * @throws {RequiredError}
760
+ */
761
+ createClaimRegulation1(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
762
+ return localVarFp.createClaimRegulation1(createRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
763
+ },
405
764
  /**
406
765
  * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\"
407
766
  * @summary Delete the claim regulation item
@@ -413,6 +772,18 @@ export const ClaimRegulationsApiFactory = function (configuration?: Configuratio
413
772
  deleteClaimRegulations(code: string, authorization?: string, options?: any): AxiosPromise<void> {
414
773
  return localVarFp.deleteClaimRegulations(code, authorization, options).then((request) => request(axios, basePath));
415
774
  },
775
+ /**
776
+ * 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.
777
+ * @summary Delete the claim regulation item
778
+ * @param {string} code Unique identifier for the object.
779
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
780
+ * @param {*} [options] Override http request option.
781
+ * @deprecated
782
+ * @throws {RequiredError}
783
+ */
784
+ deleteClaimRegulations1(code: string, authorization?: string, options?: any): AxiosPromise<void> {
785
+ return localVarFp.deleteClaimRegulations1(code, authorization, options).then((request) => request(axios, basePath));
786
+ },
416
787
  /**
417
788
  * 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\"
418
789
  * @summary Retrieve the claim regulation item
@@ -425,6 +796,19 @@ export const ClaimRegulationsApiFactory = function (configuration?: Configuratio
425
796
  getClaimRegulation(code: string, authorization?: string, expand?: 'claim', options?: any): AxiosPromise<RegulationItemResponseClass> {
426
797
  return localVarFp.getClaimRegulation(code, authorization, expand, options).then((request) => request(axios, basePath));
427
798
  },
799
+ /**
800
+ * 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.
801
+ * @summary Retrieve the claim regulation item
802
+ * @param {string} code
803
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
804
+ * @param {'claim'} [expand]
805
+ * @param {*} [options] Override http request option.
806
+ * @deprecated
807
+ * @throws {RequiredError}
808
+ */
809
+ getClaimRegulation1(code: string, authorization?: string, expand?: 'claim', options?: any): AxiosPromise<RegulationItemResponseClass> {
810
+ return localVarFp.getClaimRegulation1(code, authorization, expand, options).then((request) => request(axios, basePath));
811
+ },
428
812
  /**
429
813
  * 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\"
430
814
  * @summary List claim regulation items
@@ -442,6 +826,24 @@ export const ClaimRegulationsApiFactory = function (configuration?: Configuratio
442
826
  listClaimRegulations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRegulationsResponseClass> {
443
827
  return localVarFp.listClaimRegulations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
444
828
  },
829
+ /**
830
+ * 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.
831
+ * @summary List claim regulation items
832
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
833
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
834
+ * @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.
835
+ * @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;
836
+ * @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;
837
+ * @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;
838
+ * @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;
839
+ * @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;
840
+ * @param {*} [options] Override http request option.
841
+ * @deprecated
842
+ * @throws {RequiredError}
843
+ */
844
+ listClaimRegulations1(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRegulationsResponseClass> {
845
+ return localVarFp.listClaimRegulations1(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
846
+ },
445
847
  /**
446
848
  * 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\"
447
849
  * @summary Update the claim regulation item
@@ -454,6 +856,19 @@ export const ClaimRegulationsApiFactory = function (configuration?: Configuratio
454
856
  updateClaimRegulation(code: string, updateRegulationItemRequestDto: UpdateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
455
857
  return localVarFp.updateClaimRegulation(code, updateRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
456
858
  },
859
+ /**
860
+ * 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.
861
+ * @summary Update the claim regulation item
862
+ * @param {string} code Unique identifier for the object.
863
+ * @param {UpdateRegulationItemRequestDto} updateRegulationItemRequestDto
864
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
865
+ * @param {*} [options] Override http request option.
866
+ * @deprecated
867
+ * @throws {RequiredError}
868
+ */
869
+ updateClaimRegulation1(code: string, updateRegulationItemRequestDto: UpdateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
870
+ return localVarFp.updateClaimRegulation1(code, updateRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
871
+ },
457
872
  };
458
873
  };
459
874
 
@@ -478,6 +893,27 @@ export interface ClaimRegulationsApiCreateClaimRegulationRequest {
478
893
  readonly authorization?: string
479
894
  }
480
895
 
896
+ /**
897
+ * Request parameters for createClaimRegulation1 operation in ClaimRegulationsApi.
898
+ * @export
899
+ * @interface ClaimRegulationsApiCreateClaimRegulation1Request
900
+ */
901
+ export interface ClaimRegulationsApiCreateClaimRegulation1Request {
902
+ /**
903
+ *
904
+ * @type {CreateRegulationItemRequestDto}
905
+ * @memberof ClaimRegulationsApiCreateClaimRegulation1
906
+ */
907
+ readonly createRegulationItemRequestDto: CreateRegulationItemRequestDto
908
+
909
+ /**
910
+ * Bearer Token: provided by the login endpoint under the name accessToken.
911
+ * @type {string}
912
+ * @memberof ClaimRegulationsApiCreateClaimRegulation1
913
+ */
914
+ readonly authorization?: string
915
+ }
916
+
481
917
  /**
482
918
  * Request parameters for deleteClaimRegulations operation in ClaimRegulationsApi.
483
919
  * @export
@@ -499,6 +935,27 @@ export interface ClaimRegulationsApiDeleteClaimRegulationsRequest {
499
935
  readonly authorization?: string
500
936
  }
501
937
 
938
+ /**
939
+ * Request parameters for deleteClaimRegulations1 operation in ClaimRegulationsApi.
940
+ * @export
941
+ * @interface ClaimRegulationsApiDeleteClaimRegulations1Request
942
+ */
943
+ export interface ClaimRegulationsApiDeleteClaimRegulations1Request {
944
+ /**
945
+ * Unique identifier for the object.
946
+ * @type {string}
947
+ * @memberof ClaimRegulationsApiDeleteClaimRegulations1
948
+ */
949
+ readonly code: string
950
+
951
+ /**
952
+ * Bearer Token: provided by the login endpoint under the name accessToken.
953
+ * @type {string}
954
+ * @memberof ClaimRegulationsApiDeleteClaimRegulations1
955
+ */
956
+ readonly authorization?: string
957
+ }
958
+
502
959
  /**
503
960
  * Request parameters for getClaimRegulation operation in ClaimRegulationsApi.
504
961
  * @export
@@ -527,6 +984,34 @@ export interface ClaimRegulationsApiGetClaimRegulationRequest {
527
984
  readonly expand?: 'claim'
528
985
  }
529
986
 
987
+ /**
988
+ * Request parameters for getClaimRegulation1 operation in ClaimRegulationsApi.
989
+ * @export
990
+ * @interface ClaimRegulationsApiGetClaimRegulation1Request
991
+ */
992
+ export interface ClaimRegulationsApiGetClaimRegulation1Request {
993
+ /**
994
+ *
995
+ * @type {string}
996
+ * @memberof ClaimRegulationsApiGetClaimRegulation1
997
+ */
998
+ readonly code: string
999
+
1000
+ /**
1001
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1002
+ * @type {string}
1003
+ * @memberof ClaimRegulationsApiGetClaimRegulation1
1004
+ */
1005
+ readonly authorization?: string
1006
+
1007
+ /**
1008
+ *
1009
+ * @type {'claim'}
1010
+ * @memberof ClaimRegulationsApiGetClaimRegulation1
1011
+ */
1012
+ readonly expand?: 'claim'
1013
+ }
1014
+
530
1015
  /**
531
1016
  * Request parameters for listClaimRegulations operation in ClaimRegulationsApi.
532
1017
  * @export
@@ -590,6 +1075,69 @@ export interface ClaimRegulationsApiListClaimRegulationsRequest {
590
1075
  readonly filters?: string
591
1076
  }
592
1077
 
1078
+ /**
1079
+ * Request parameters for listClaimRegulations1 operation in ClaimRegulationsApi.
1080
+ * @export
1081
+ * @interface ClaimRegulationsApiListClaimRegulations1Request
1082
+ */
1083
+ export interface ClaimRegulationsApiListClaimRegulations1Request {
1084
+ /**
1085
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1086
+ * @type {string}
1087
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1088
+ */
1089
+ readonly authorization?: string
1090
+
1091
+ /**
1092
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1093
+ * @type {number}
1094
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1095
+ */
1096
+ readonly pageSize?: number
1097
+
1098
+ /**
1099
+ * 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.
1100
+ * @type {string}
1101
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1102
+ */
1103
+ readonly pageToken?: string
1104
+
1105
+ /**
1106
+ * 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;
1107
+ * @type {string}
1108
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1109
+ */
1110
+ readonly filter?: string
1111
+
1112
+ /**
1113
+ * 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;
1114
+ * @type {string}
1115
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1116
+ */
1117
+ readonly search?: string
1118
+
1119
+ /**
1120
+ * 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;
1121
+ * @type {string}
1122
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1123
+ */
1124
+ readonly order?: string
1125
+
1126
+ /**
1127
+ * 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;
1128
+ * @type {string}
1129
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1130
+ */
1131
+ readonly expand?: string
1132
+
1133
+ /**
1134
+ * 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;
1135
+ * @type {string}
1136
+ * @memberof ClaimRegulationsApiListClaimRegulations1
1137
+ */
1138
+ readonly filters?: string
1139
+ }
1140
+
593
1141
  /**
594
1142
  * Request parameters for updateClaimRegulation operation in ClaimRegulationsApi.
595
1143
  * @export
@@ -618,6 +1166,34 @@ export interface ClaimRegulationsApiUpdateClaimRegulationRequest {
618
1166
  readonly authorization?: string
619
1167
  }
620
1168
 
1169
+ /**
1170
+ * Request parameters for updateClaimRegulation1 operation in ClaimRegulationsApi.
1171
+ * @export
1172
+ * @interface ClaimRegulationsApiUpdateClaimRegulation1Request
1173
+ */
1174
+ export interface ClaimRegulationsApiUpdateClaimRegulation1Request {
1175
+ /**
1176
+ * Unique identifier for the object.
1177
+ * @type {string}
1178
+ * @memberof ClaimRegulationsApiUpdateClaimRegulation1
1179
+ */
1180
+ readonly code: string
1181
+
1182
+ /**
1183
+ *
1184
+ * @type {UpdateRegulationItemRequestDto}
1185
+ * @memberof ClaimRegulationsApiUpdateClaimRegulation1
1186
+ */
1187
+ readonly updateRegulationItemRequestDto: UpdateRegulationItemRequestDto
1188
+
1189
+ /**
1190
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1191
+ * @type {string}
1192
+ * @memberof ClaimRegulationsApiUpdateClaimRegulation1
1193
+ */
1194
+ readonly authorization?: string
1195
+ }
1196
+
621
1197
  /**
622
1198
  * ClaimRegulationsApi - object-oriented interface
623
1199
  * @export
@@ -637,6 +1213,19 @@ export class ClaimRegulationsApi extends BaseAPI {
637
1213
  return ClaimRegulationsApiFp(this.configuration).createClaimRegulation(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
638
1214
  }
639
1215
 
1216
+ /**
1217
+ * 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.
1218
+ * @summary Create the claim regulation item
1219
+ * @param {ClaimRegulationsApiCreateClaimRegulation1Request} requestParameters Request parameters.
1220
+ * @param {*} [options] Override http request option.
1221
+ * @deprecated
1222
+ * @throws {RequiredError}
1223
+ * @memberof ClaimRegulationsApi
1224
+ */
1225
+ public createClaimRegulation1(requestParameters: ClaimRegulationsApiCreateClaimRegulation1Request, options?: AxiosRequestConfig) {
1226
+ return ClaimRegulationsApiFp(this.configuration).createClaimRegulation1(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1227
+ }
1228
+
640
1229
  /**
641
1230
  * This will delete the regulation item identified by the code. **Required Permissions** \"claim-management.regulations.delete\"
642
1231
  * @summary Delete the claim regulation item
@@ -649,6 +1238,19 @@ export class ClaimRegulationsApi extends BaseAPI {
649
1238
  return ClaimRegulationsApiFp(this.configuration).deleteClaimRegulations(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
650
1239
  }
651
1240
 
1241
+ /**
1242
+ * 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.
1243
+ * @summary Delete the claim regulation item
1244
+ * @param {ClaimRegulationsApiDeleteClaimRegulations1Request} requestParameters Request parameters.
1245
+ * @param {*} [options] Override http request option.
1246
+ * @deprecated
1247
+ * @throws {RequiredError}
1248
+ * @memberof ClaimRegulationsApi
1249
+ */
1250
+ public deleteClaimRegulations1(requestParameters: ClaimRegulationsApiDeleteClaimRegulations1Request, options?: AxiosRequestConfig) {
1251
+ return ClaimRegulationsApiFp(this.configuration).deleteClaimRegulations1(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1252
+ }
1253
+
652
1254
  /**
653
1255
  * 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\"
654
1256
  * @summary Retrieve the claim regulation item
@@ -661,6 +1263,19 @@ export class ClaimRegulationsApi extends BaseAPI {
661
1263
  return ClaimRegulationsApiFp(this.configuration).getClaimRegulation(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
662
1264
  }
663
1265
 
1266
+ /**
1267
+ * 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.
1268
+ * @summary Retrieve the claim regulation item
1269
+ * @param {ClaimRegulationsApiGetClaimRegulation1Request} requestParameters Request parameters.
1270
+ * @param {*} [options] Override http request option.
1271
+ * @deprecated
1272
+ * @throws {RequiredError}
1273
+ * @memberof ClaimRegulationsApi
1274
+ */
1275
+ public getClaimRegulation1(requestParameters: ClaimRegulationsApiGetClaimRegulation1Request, options?: AxiosRequestConfig) {
1276
+ return ClaimRegulationsApiFp(this.configuration).getClaimRegulation1(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1277
+ }
1278
+
664
1279
  /**
665
1280
  * 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\"
666
1281
  * @summary List claim regulation items
@@ -673,6 +1288,19 @@ export class ClaimRegulationsApi extends BaseAPI {
673
1288
  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));
674
1289
  }
675
1290
 
1291
+ /**
1292
+ * 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.
1293
+ * @summary List claim regulation items
1294
+ * @param {ClaimRegulationsApiListClaimRegulations1Request} requestParameters Request parameters.
1295
+ * @param {*} [options] Override http request option.
1296
+ * @deprecated
1297
+ * @throws {RequiredError}
1298
+ * @memberof ClaimRegulationsApi
1299
+ */
1300
+ public listClaimRegulations1(requestParameters: ClaimRegulationsApiListClaimRegulations1Request = {}, options?: AxiosRequestConfig) {
1301
+ 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));
1302
+ }
1303
+
676
1304
  /**
677
1305
  * 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\"
678
1306
  * @summary Update the claim regulation item
@@ -684,4 +1312,17 @@ export class ClaimRegulationsApi extends BaseAPI {
684
1312
  public updateClaimRegulation(requestParameters: ClaimRegulationsApiUpdateClaimRegulationRequest, options?: AxiosRequestConfig) {
685
1313
  return ClaimRegulationsApiFp(this.configuration).updateClaimRegulation(requestParameters.code, requestParameters.updateRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
686
1314
  }
1315
+
1316
+ /**
1317
+ * 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.
1318
+ * @summary Update the claim regulation item
1319
+ * @param {ClaimRegulationsApiUpdateClaimRegulation1Request} requestParameters Request parameters.
1320
+ * @param {*} [options] Override http request option.
1321
+ * @deprecated
1322
+ * @throws {RequiredError}
1323
+ * @memberof ClaimRegulationsApi
1324
+ */
1325
+ public updateClaimRegulation1(requestParameters: ClaimRegulationsApiUpdateClaimRegulation1Request, options?: AxiosRequestConfig) {
1326
+ return ClaimRegulationsApiFp(this.configuration).updateClaimRegulation1(requestParameters.code, requestParameters.updateRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1327
+ }
687
1328
  }