@emilgroup/claim-sdk 1.17.2-beta.2 → 1.17.2-beta.4

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 (50) hide show
  1. package/.openapi-generator/FILES +2 -4
  2. package/README.md +2 -2
  3. package/api/claim-regulations-api.ts +366 -45
  4. package/api/{default-api.ts → health-check-api.ts} +22 -18
  5. package/api.ts +2 -2
  6. package/dist/api/claim-regulations-api.d.ts +215 -40
  7. package/dist/api/claim-regulations-api.js +307 -23
  8. package/dist/api/health-check-api.d.ts +70 -0
  9. package/dist/api/{default-api.js → health-check-api.js} +31 -27
  10. package/dist/api.d.ts +1 -1
  11. package/dist/api.js +1 -1
  12. package/dist/models/create-claim-partner-response-class.d.ts +1 -1
  13. package/dist/models/create-claim-partner-role-response-class.d.ts +1 -1
  14. package/dist/models/create-claim-request-dto.d.ts +17 -17
  15. package/dist/models/create-regulation-item-request-dto.d.ts +20 -27
  16. package/dist/models/create-regulation-item-request-dto.js +14 -1
  17. package/dist/models/get-claim-partner-response-class.d.ts +1 -1
  18. package/dist/models/get-claim-partner-role-response-class.d.ts +1 -1
  19. package/dist/models/index.d.ts +1 -3
  20. package/dist/models/index.js +1 -3
  21. package/dist/models/list-regulations-response-class.d.ts +31 -0
  22. package/dist/models/{reserve-details-dto.js → list-regulations-response-class.js} +0 -5
  23. package/dist/models/patch-claim-request-dto.d.ts +18 -18
  24. package/dist/models/payout-details-class.d.ts +1 -1
  25. package/dist/models/regulation-item-class.d.ts +5 -4
  26. package/dist/models/update-claim-partner-role-response-class.d.ts +1 -1
  27. package/dist/models/update-claim-request-dto.d.ts +15 -15
  28. package/models/create-claim-partner-response-class.ts +1 -1
  29. package/models/create-claim-partner-role-response-class.ts +1 -1
  30. package/models/create-claim-request-dto.ts +17 -17
  31. package/models/create-regulation-item-request-dto.ts +21 -27
  32. package/models/get-claim-partner-response-class.ts +1 -1
  33. package/models/get-claim-partner-role-response-class.ts +1 -1
  34. package/models/index.ts +1 -3
  35. package/models/list-regulations-response-class.ts +37 -0
  36. package/models/patch-claim-request-dto.ts +18 -18
  37. package/models/payout-details-class.ts +1 -1
  38. package/models/regulation-item-class.ts +5 -4
  39. package/models/update-claim-partner-role-response-class.ts +1 -1
  40. package/models/update-claim-request-dto.ts +15 -15
  41. package/package.json +1 -1
  42. package/dist/api/default-api.d.ts +0 -66
  43. package/dist/models/payout-details-dto.d.ts +0 -60
  44. package/dist/models/payout-details-dto.js +0 -26
  45. package/dist/models/regress-details-dto.d.ts +0 -51
  46. package/dist/models/regress-details-dto.js +0 -29
  47. package/dist/models/reserve-details-dto.d.ts +0 -29
  48. package/models/payout-details-dto.ts +0 -70
  49. package/models/regress-details-dto.ts +0 -61
  50. package/models/reserve-details-dto.ts +0 -38
@@ -8,7 +8,7 @@ api/claim-partners-api.ts
8
8
  api/claim-regulations-api.ts
9
9
  api/claim-statuses-api.ts
10
10
  api/claims-api.ts
11
- api/default-api.ts
11
+ api/health-check-api.ts
12
12
  api/settlements-api.ts
13
13
  base.ts
14
14
  common.ts
@@ -42,17 +42,15 @@ models/list-claim-partner-roles-response-class.ts
42
42
  models/list-claim-partners-response-class.ts
43
43
  models/list-claim-statuses-response-class.ts
44
44
  models/list-claims-response-class.ts
45
+ models/list-regulations-response-class.ts
45
46
  models/list-settlements-response-class.ts
46
47
  models/patch-claim-request-dto.ts
47
48
  models/patch-claim-response-class.ts
48
49
  models/payout-details-class.ts
49
- models/payout-details-dto.ts
50
50
  models/regress-details-class.ts
51
- models/regress-details-dto.ts
52
51
  models/regulation-item-class.ts
53
52
  models/regulation-item-response-class.ts
54
53
  models/reserve-details-class.ts
55
- models/reserve-details-dto.ts
56
54
  models/settlement-class.ts
57
55
  models/update-claim-partner-role-request-dto.ts
58
56
  models/update-claim-partner-role-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/claim-sdk@1.17.2-beta.2 --save
20
+ npm install @emilgroup/claim-sdk@1.17.2-beta.4 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/claim-sdk@1.17.2-beta.2
24
+ yarn add @emilgroup/claim-sdk@1.17.2-beta.4
25
25
  ```
26
26
 
27
27
  And then you can import `ClaimsApi`.
@@ -23,6 +23,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { CreateRegulationItemRequestDto } from '../models';
25
25
  // @ts-ignore
26
+ import { ListRegulationsResponseClass } from '../models';
27
+ // @ts-ignore
26
28
  import { RegulationItemResponseClass } from '../models';
27
29
  /**
28
30
  * ClaimRegulationsApi - axios parameter creator
@@ -77,22 +79,61 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
77
79
  options: localVarRequestOptions,
78
80
  };
79
81
  },
82
+ /**
83
+ * This will delete the regulation item identified by the code.
84
+ * @summary Delete the claim regulation item
85
+ * @param {string} code Unique identifier for the object.
86
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ deleteClaimRegulations: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
91
+ // verify required parameter 'code' is not null or undefined
92
+ assertParamExists('deleteClaimRegulations', 'code', code)
93
+ const localVarPath = `/v1/claims/regulations/{code}`
94
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
95
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
96
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
97
+ let baseOptions;
98
+ let baseAccessToken;
99
+ if (configuration) {
100
+ baseOptions = configuration.baseOptions;
101
+ baseAccessToken = configuration.accessToken;
102
+ }
103
+
104
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
105
+ const localVarHeaderParameter = {} as any;
106
+ const localVarQueryParameter = {} as any;
107
+
108
+ // authentication bearer required
109
+ // http bearer authentication required
110
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
111
+
112
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
113
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
114
+ }
115
+
116
+
117
+
118
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
119
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
121
+
122
+ return {
123
+ url: toPathString(localVarUrlObj),
124
+ options: localVarRequestOptions,
125
+ };
126
+ },
80
127
  /**
81
128
  * 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.
82
129
  * @summary Retrieve the claim regulation item
83
130
  * @param {string} code
84
131
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
85
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
86
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
87
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
88
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
89
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
90
- * @param {'partners'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
91
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
132
+ * @param {'claim'} [expand]
92
133
  * @param {*} [options] Override http request option.
93
134
  * @throws {RequiredError}
94
135
  */
95
- getClaimRegulation: async (code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partners', filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
136
+ getClaimRegulation: async (code: string, authorization?: string, expand?: 'claim', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
137
  // verify required parameter 'code' is not null or undefined
97
138
  assertParamExists('getClaimRegulation', 'code', code)
98
139
  const localVarPath = `/v1/claims/regulations/{code}`
@@ -114,6 +155,58 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
114
155
  // http bearer authentication required
115
156
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
116
157
 
158
+ if (expand !== undefined) {
159
+ localVarQueryParameter['expand'] = expand;
160
+ }
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
+ * 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.
179
+ * @summary List claim regulation items
180
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
181
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
182
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
183
+ * @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, payoutType, regressType, reserveType, payoutStatus, regressStatus&lt;/i&gt;
184
+ * @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, amount, bookingDate, currency&lt;/i&gt;
185
+ * @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;
186
+ * @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;
187
+ * @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, payoutType, regressType, reserveType, payoutStatus, regressStatus&lt;/i&gt;
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ */
191
+ listClaimRegulations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
192
+ const localVarPath = `/v1/claims/regulations`;
193
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
194
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
195
+ let baseOptions;
196
+ let baseAccessToken;
197
+ if (configuration) {
198
+ baseOptions = configuration.baseOptions;
199
+ baseAccessToken = configuration.accessToken;
200
+ }
201
+
202
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
203
+ const localVarHeaderParameter = {} as any;
204
+ const localVarQueryParameter = {} as any;
205
+
206
+ // authentication bearer required
207
+ // http bearer authentication required
208
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
209
+
117
210
  if (pageSize !== undefined) {
118
211
  localVarQueryParameter['pageSize'] = pageSize;
119
212
  }
@@ -152,6 +245,57 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
152
245
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153
246
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
154
247
 
248
+ return {
249
+ url: toPathString(localVarUrlObj),
250
+ options: localVarRequestOptions,
251
+ };
252
+ },
253
+ /**
254
+ * 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.
255
+ * @summary Update the claim regulation item
256
+ * @param {string} code Unique identifier for the object.
257
+ * @param {object} body
258
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ updateClaimRegulation: async (code: string, body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
263
+ // verify required parameter 'code' is not null or undefined
264
+ assertParamExists('updateClaimRegulation', 'code', code)
265
+ // verify required parameter 'body' is not null or undefined
266
+ assertParamExists('updateClaimRegulation', 'body', body)
267
+ const localVarPath = `/v1/claims/regulations/{code}`
268
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
269
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
270
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
271
+ let baseOptions;
272
+ let baseAccessToken;
273
+ if (configuration) {
274
+ baseOptions = configuration.baseOptions;
275
+ baseAccessToken = configuration.accessToken;
276
+ }
277
+
278
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
279
+ const localVarHeaderParameter = {} as any;
280
+ const localVarQueryParameter = {} as any;
281
+
282
+ // authentication bearer required
283
+ // http bearer authentication required
284
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
285
+
286
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
287
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
288
+ }
289
+
290
+
291
+
292
+ localVarHeaderParameter['Content-Type'] = 'application/json';
293
+
294
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
295
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
296
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
297
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
298
+
155
299
  return {
156
300
  url: toPathString(localVarUrlObj),
157
301
  options: localVarRequestOptions,
@@ -179,23 +323,60 @@ export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
179
323
  const localVarAxiosArgs = await localVarAxiosParamCreator.createClaimRegulation(createRegulationItemRequestDto, authorization, options);
180
324
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
181
325
  },
326
+ /**
327
+ * This will delete the regulation item identified by the code.
328
+ * @summary Delete the claim regulation item
329
+ * @param {string} code Unique identifier for the object.
330
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ async deleteClaimRegulations(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
335
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimRegulations(code, authorization, options);
336
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
337
+ },
182
338
  /**
183
339
  * 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.
184
340
  * @summary Retrieve the claim regulation item
185
341
  * @param {string} code
186
342
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
343
+ * @param {'claim'} [expand]
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ async getClaimRegulation(code: string, authorization?: string, expand?: 'claim', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
348
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimRegulation(code, authorization, expand, options);
349
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
350
+ },
351
+ /**
352
+ * 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.
353
+ * @summary List claim regulation items
354
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
355
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
188
356
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
189
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
190
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
191
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
192
- * @param {'partners'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
193
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
357
+ * @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, payoutType, regressType, reserveType, payoutStatus, regressStatus&lt;/i&gt;
358
+ * @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, amount, bookingDate, currency&lt;/i&gt;
359
+ * @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;
360
+ * @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;
361
+ * @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, payoutType, regressType, reserveType, payoutStatus, regressStatus&lt;/i&gt;
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ async listClaimRegulations(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRegulationsResponseClass>> {
366
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimRegulations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
367
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
368
+ },
369
+ /**
370
+ * 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.
371
+ * @summary Update the claim regulation item
372
+ * @param {string} code Unique identifier for the object.
373
+ * @param {object} body
374
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
194
375
  * @param {*} [options] Override http request option.
195
376
  * @throws {RequiredError}
196
377
  */
197
- async getClaimRegulation(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partners', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
198
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimRegulation(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
378
+ async updateClaimRegulation(code: string, body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClaimRegulation(code, body, authorization, options);
199
380
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
200
381
  },
201
382
  }
@@ -219,23 +400,57 @@ export const ClaimRegulationsApiFactory = function (configuration?: Configuratio
219
400
  createClaimRegulation(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
220
401
  return localVarFp.createClaimRegulation(createRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
221
402
  },
403
+ /**
404
+ * This will delete the regulation item identified by the code.
405
+ * @summary Delete the claim regulation item
406
+ * @param {string} code Unique identifier for the object.
407
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ deleteClaimRegulations(code: string, authorization?: string, options?: any): AxiosPromise<void> {
412
+ return localVarFp.deleteClaimRegulations(code, authorization, options).then((request) => request(axios, basePath));
413
+ },
222
414
  /**
223
415
  * 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.
224
416
  * @summary Retrieve the claim regulation item
225
417
  * @param {string} code
226
418
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
419
+ * @param {'claim'} [expand]
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ */
423
+ getClaimRegulation(code: string, authorization?: string, expand?: 'claim', options?: any): AxiosPromise<RegulationItemResponseClass> {
424
+ return localVarFp.getClaimRegulation(code, authorization, expand, options).then((request) => request(axios, basePath));
425
+ },
426
+ /**
427
+ * 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.
428
+ * @summary List claim regulation items
429
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
227
430
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
228
431
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
229
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
230
- * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
231
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
232
- * @param {'partners'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
233
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
432
+ * @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, payoutType, regressType, reserveType, payoutStatus, regressStatus&lt;/i&gt;
433
+ * @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, amount, bookingDate, currency&lt;/i&gt;
434
+ * @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;
435
+ * @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;
436
+ * @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, payoutType, regressType, reserveType, payoutStatus, regressStatus&lt;/i&gt;
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ */
440
+ listClaimRegulations(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRegulationsResponseClass> {
441
+ return localVarFp.listClaimRegulations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
442
+ },
443
+ /**
444
+ * 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.
445
+ * @summary Update the claim regulation item
446
+ * @param {string} code Unique identifier for the object.
447
+ * @param {object} body
448
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
234
449
  * @param {*} [options] Override http request option.
235
450
  * @throws {RequiredError}
236
451
  */
237
- getClaimRegulation(code: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'partners', filters?: any, options?: any): AxiosPromise<RegulationItemResponseClass> {
238
- return localVarFp.getClaimRegulation(code, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
452
+ updateClaimRegulation(code: string, body: object, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
453
+ return localVarFp.updateClaimRegulation(code, body, authorization, options).then((request) => request(axios, basePath));
239
454
  },
240
455
  };
241
456
  };
@@ -261,6 +476,27 @@ export interface ClaimRegulationsApiCreateClaimRegulationRequest {
261
476
  readonly authorization?: string
262
477
  }
263
478
 
479
+ /**
480
+ * Request parameters for deleteClaimRegulations operation in ClaimRegulationsApi.
481
+ * @export
482
+ * @interface ClaimRegulationsApiDeleteClaimRegulationsRequest
483
+ */
484
+ export interface ClaimRegulationsApiDeleteClaimRegulationsRequest {
485
+ /**
486
+ * Unique identifier for the object.
487
+ * @type {string}
488
+ * @memberof ClaimRegulationsApiDeleteClaimRegulations
489
+ */
490
+ readonly code: string
491
+
492
+ /**
493
+ * Bearer Token: provided by the login endpoint under the name accessToken.
494
+ * @type {string}
495
+ * @memberof ClaimRegulationsApiDeleteClaimRegulations
496
+ */
497
+ readonly authorization?: string
498
+ }
499
+
264
500
  /**
265
501
  * Request parameters for getClaimRegulation operation in ClaimRegulationsApi.
266
502
  * @export
@@ -281,54 +517,103 @@ export interface ClaimRegulationsApiGetClaimRegulationRequest {
281
517
  */
282
518
  readonly authorization?: string
283
519
 
520
+ /**
521
+ *
522
+ * @type {'claim'}
523
+ * @memberof ClaimRegulationsApiGetClaimRegulation
524
+ */
525
+ readonly expand?: 'claim'
526
+ }
527
+
528
+ /**
529
+ * Request parameters for listClaimRegulations operation in ClaimRegulationsApi.
530
+ * @export
531
+ * @interface ClaimRegulationsApiListClaimRegulationsRequest
532
+ */
533
+ export interface ClaimRegulationsApiListClaimRegulationsRequest {
534
+ /**
535
+ * Bearer Token: provided by the login endpoint under the name accessToken.
536
+ * @type {string}
537
+ * @memberof ClaimRegulationsApiListClaimRegulations
538
+ */
539
+ readonly authorization?: string
540
+
284
541
  /**
285
542
  * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
286
543
  * @type {any}
287
- * @memberof ClaimRegulationsApiGetClaimRegulation
544
+ * @memberof ClaimRegulationsApiListClaimRegulations
288
545
  */
289
546
  readonly pageSize?: any
290
547
 
291
548
  /**
292
549
  * 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.
293
550
  * @type {any}
294
- * @memberof ClaimRegulationsApiGetClaimRegulation
551
+ * @memberof ClaimRegulationsApiListClaimRegulations
295
552
  */
296
553
  readonly pageToken?: any
297
554
 
298
555
  /**
299
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
300
- * @type {any}
301
- * @memberof ClaimRegulationsApiGetClaimRegulation
556
+ * 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, payoutType, regressType, reserveType, payoutStatus, regressStatus&lt;/i&gt;
557
+ * @type {string}
558
+ * @memberof ClaimRegulationsApiListClaimRegulations
302
559
  */
303
- readonly filter?: any
560
+ readonly filter?: string
304
561
 
305
562
  /**
306
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
307
- * @type {any}
308
- * @memberof ClaimRegulationsApiGetClaimRegulation
563
+ * 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, amount, bookingDate, currency&lt;/i&gt;
564
+ * @type {string}
565
+ * @memberof ClaimRegulationsApiListClaimRegulations
309
566
  */
310
- readonly search?: any
567
+ readonly search?: string
311
568
 
312
569
  /**
313
- * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
314
- * @type {any}
315
- * @memberof ClaimRegulationsApiGetClaimRegulation
570
+ * 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;
571
+ * @type {string}
572
+ * @memberof ClaimRegulationsApiListClaimRegulations
316
573
  */
317
- readonly order?: any
574
+ readonly order?: string
318
575
 
319
576
  /**
320
- * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
321
- * @type {'partners'}
322
- * @memberof ClaimRegulationsApiGetClaimRegulation
577
+ * 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;
578
+ * @type {string}
579
+ * @memberof ClaimRegulationsApiListClaimRegulations
323
580
  */
324
- readonly expand?: 'partners'
581
+ readonly expand?: string
325
582
 
326
583
  /**
327
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
328
- * @type {any}
329
- * @memberof ClaimRegulationsApiGetClaimRegulation
584
+ * 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, payoutType, regressType, reserveType, payoutStatus, regressStatus&lt;/i&gt;
585
+ * @type {string}
586
+ * @memberof ClaimRegulationsApiListClaimRegulations
330
587
  */
331
- readonly filters?: any
588
+ readonly filters?: string
589
+ }
590
+
591
+ /**
592
+ * Request parameters for updateClaimRegulation operation in ClaimRegulationsApi.
593
+ * @export
594
+ * @interface ClaimRegulationsApiUpdateClaimRegulationRequest
595
+ */
596
+ export interface ClaimRegulationsApiUpdateClaimRegulationRequest {
597
+ /**
598
+ * Unique identifier for the object.
599
+ * @type {string}
600
+ * @memberof ClaimRegulationsApiUpdateClaimRegulation
601
+ */
602
+ readonly code: string
603
+
604
+ /**
605
+ *
606
+ * @type {object}
607
+ * @memberof ClaimRegulationsApiUpdateClaimRegulation
608
+ */
609
+ readonly body: object
610
+
611
+ /**
612
+ * Bearer Token: provided by the login endpoint under the name accessToken.
613
+ * @type {string}
614
+ * @memberof ClaimRegulationsApiUpdateClaimRegulation
615
+ */
616
+ readonly authorization?: string
332
617
  }
333
618
 
334
619
  /**
@@ -350,6 +635,18 @@ export class ClaimRegulationsApi extends BaseAPI {
350
635
  return ClaimRegulationsApiFp(this.configuration).createClaimRegulation(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
351
636
  }
352
637
 
638
+ /**
639
+ * This will delete the regulation item identified by the code.
640
+ * @summary Delete the claim regulation item
641
+ * @param {ClaimRegulationsApiDeleteClaimRegulationsRequest} requestParameters Request parameters.
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ * @memberof ClaimRegulationsApi
645
+ */
646
+ public deleteClaimRegulations(requestParameters: ClaimRegulationsApiDeleteClaimRegulationsRequest, options?: AxiosRequestConfig) {
647
+ return ClaimRegulationsApiFp(this.configuration).deleteClaimRegulations(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
648
+ }
649
+
353
650
  /**
354
651
  * 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.
355
652
  * @summary Retrieve the claim regulation item
@@ -359,6 +656,30 @@ export class ClaimRegulationsApi extends BaseAPI {
359
656
  * @memberof ClaimRegulationsApi
360
657
  */
361
658
  public getClaimRegulation(requestParameters: ClaimRegulationsApiGetClaimRegulationRequest, options?: AxiosRequestConfig) {
362
- return ClaimRegulationsApiFp(this.configuration).getClaimRegulation(requestParameters.code, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
659
+ return ClaimRegulationsApiFp(this.configuration).getClaimRegulation(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
660
+ }
661
+
662
+ /**
663
+ * 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.
664
+ * @summary List claim regulation items
665
+ * @param {ClaimRegulationsApiListClaimRegulationsRequest} requestParameters Request parameters.
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ * @memberof ClaimRegulationsApi
669
+ */
670
+ public listClaimRegulations(requestParameters: ClaimRegulationsApiListClaimRegulationsRequest = {}, options?: AxiosRequestConfig) {
671
+ 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));
672
+ }
673
+
674
+ /**
675
+ * 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.
676
+ * @summary Update the claim regulation item
677
+ * @param {ClaimRegulationsApiUpdateClaimRegulationRequest} requestParameters Request parameters.
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ * @memberof ClaimRegulationsApi
681
+ */
682
+ public updateClaimRegulation(requestParameters: ClaimRegulationsApiUpdateClaimRegulationRequest, options?: AxiosRequestConfig) {
683
+ return ClaimRegulationsApiFp(this.configuration).updateClaimRegulation(requestParameters.code, requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
363
684
  }
364
685
  }