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

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.
@@ -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,6 +42,7 @@ 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
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.3 --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.3
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,18 +155,64 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
114
155
  // http bearer authentication required
115
156
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
116
157
 
117
- if (pageSize !== undefined) {
118
- localVarQueryParameter['pageSize'] = pageSize;
158
+ if (expand !== undefined) {
159
+ localVarQueryParameter['expand'] = expand;
119
160
  }
120
161
 
121
- if (pageToken !== undefined) {
122
- localVarQueryParameter['pageToken'] = pageToken;
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 {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;
182
+ * @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;
183
+ * @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;
184
+ * @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;
185
+ * @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;
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ */
189
+ listClaimRegulations: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
190
+ const localVarPath = `/v1/claims/regulations`;
191
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
192
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
193
+ let baseOptions;
194
+ let baseAccessToken;
195
+ if (configuration) {
196
+ baseOptions = configuration.baseOptions;
197
+ baseAccessToken = configuration.accessToken;
123
198
  }
124
199
 
200
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
201
+ const localVarHeaderParameter = {} as any;
202
+ const localVarQueryParameter = {} as any;
203
+
204
+ // authentication bearer required
205
+ // http bearer authentication required
206
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
207
+
125
208
  if (filter !== undefined) {
126
209
  localVarQueryParameter['filter'] = filter;
127
210
  }
128
211
 
212
+ if (filters !== undefined) {
213
+ localVarQueryParameter['filters'] = filters;
214
+ }
215
+
129
216
  if (search !== undefined) {
130
217
  localVarQueryParameter['search'] = search;
131
218
  }
@@ -138,19 +225,66 @@ export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Co
138
225
  localVarQueryParameter['expand'] = expand;
139
226
  }
140
227
 
141
- if (filters !== undefined) {
142
- localVarQueryParameter['filters'] = filters;
228
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
229
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
143
230
  }
144
231
 
232
+
233
+
234
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
235
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
237
+
238
+ return {
239
+ url: toPathString(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ };
242
+ },
243
+ /**
244
+ * 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.
245
+ * @summary Update the claim regulation item
246
+ * @param {string} code Unique identifier for the object.
247
+ * @param {object} body
248
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ updateClaimRegulation: async (code: string, body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
253
+ // verify required parameter 'code' is not null or undefined
254
+ assertParamExists('updateClaimRegulation', 'code', code)
255
+ // verify required parameter 'body' is not null or undefined
256
+ assertParamExists('updateClaimRegulation', 'body', body)
257
+ const localVarPath = `/v1/claims/regulations/{code}`
258
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
259
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
260
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
261
+ let baseOptions;
262
+ let baseAccessToken;
263
+ if (configuration) {
264
+ baseOptions = configuration.baseOptions;
265
+ baseAccessToken = configuration.accessToken;
266
+ }
267
+
268
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
269
+ const localVarHeaderParameter = {} as any;
270
+ const localVarQueryParameter = {} as any;
271
+
272
+ // authentication bearer required
273
+ // http bearer authentication required
274
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
275
+
145
276
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
146
277
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
147
278
  }
148
279
 
149
280
 
150
281
 
282
+ localVarHeaderParameter['Content-Type'] = 'application/json';
283
+
151
284
  setSearchParams(localVarUrlObj, localVarQueryParameter);
152
285
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153
286
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
287
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
154
288
 
155
289
  return {
156
290
  url: toPathString(localVarUrlObj),
@@ -179,23 +313,58 @@ export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
179
313
  const localVarAxiosArgs = await localVarAxiosParamCreator.createClaimRegulation(createRegulationItemRequestDto, authorization, options);
180
314
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
181
315
  },
316
+ /**
317
+ * This will delete the regulation item identified by the code.
318
+ * @summary Delete the claim regulation item
319
+ * @param {string} code Unique identifier for the object.
320
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ */
324
+ async deleteClaimRegulations(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
325
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimRegulations(code, authorization, options);
326
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
327
+ },
182
328
  /**
183
329
  * 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
330
  * @summary Retrieve the claim regulation item
185
331
  * @param {string} code
186
332
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
188
- * @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.
333
+ * @param {'claim'} [expand]
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ */
337
+ async getClaimRegulation(code: string, authorization?: string, expand?: 'claim', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
338
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimRegulation(code, authorization, expand, options);
339
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
340
+ },
341
+ /**
342
+ * 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.
343
+ * @summary List claim regulation items
344
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
345
+ * @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;
346
+ * @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;
347
+ * @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;
348
+ * @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;
349
+ * @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;
194
350
  * @param {*} [options] Override http request option.
195
351
  * @throws {RequiredError}
196
352
  */
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);
353
+ async listClaimRegulations(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRegulationsResponseClass>> {
354
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimRegulations(authorization, filter, filters, search, order, expand, options);
355
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
356
+ },
357
+ /**
358
+ * 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.
359
+ * @summary Update the claim regulation item
360
+ * @param {string} code Unique identifier for the object.
361
+ * @param {object} body
362
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ async updateClaimRegulation(code: string, body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
367
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClaimRegulation(code, body, authorization, options);
199
368
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
200
369
  },
201
370
  }
@@ -219,23 +388,55 @@ export const ClaimRegulationsApiFactory = function (configuration?: Configuratio
219
388
  createClaimRegulation(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
220
389
  return localVarFp.createClaimRegulation(createRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
221
390
  },
391
+ /**
392
+ * This will delete the regulation item identified by the code.
393
+ * @summary Delete the claim regulation item
394
+ * @param {string} code Unique identifier for the object.
395
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
396
+ * @param {*} [options] Override http request option.
397
+ * @throws {RequiredError}
398
+ */
399
+ deleteClaimRegulations(code: string, authorization?: string, options?: any): AxiosPromise<void> {
400
+ return localVarFp.deleteClaimRegulations(code, authorization, options).then((request) => request(axios, basePath));
401
+ },
222
402
  /**
223
403
  * 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
404
  * @summary Retrieve the claim regulation item
225
405
  * @param {string} code
226
406
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
227
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
228
- * @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.
407
+ * @param {'claim'} [expand]
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ getClaimRegulation(code: string, authorization?: string, expand?: 'claim', options?: any): AxiosPromise<RegulationItemResponseClass> {
412
+ return localVarFp.getClaimRegulation(code, authorization, expand, options).then((request) => request(axios, basePath));
413
+ },
414
+ /**
415
+ * 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.
416
+ * @summary List claim regulation items
417
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
418
+ * @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;
419
+ * @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;
420
+ * @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;
421
+ * @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;
422
+ * @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;
234
423
  * @param {*} [options] Override http request option.
235
424
  * @throws {RequiredError}
236
425
  */
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));
426
+ listClaimRegulations(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRegulationsResponseClass> {
427
+ return localVarFp.listClaimRegulations(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
428
+ },
429
+ /**
430
+ * 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.
431
+ * @summary Update the claim regulation item
432
+ * @param {string} code Unique identifier for the object.
433
+ * @param {object} body
434
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ updateClaimRegulation(code: string, body: object, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
439
+ return localVarFp.updateClaimRegulation(code, body, authorization, options).then((request) => request(axios, basePath));
239
440
  },
240
441
  };
241
442
  };
@@ -261,6 +462,27 @@ export interface ClaimRegulationsApiCreateClaimRegulationRequest {
261
462
  readonly authorization?: string
262
463
  }
263
464
 
465
+ /**
466
+ * Request parameters for deleteClaimRegulations operation in ClaimRegulationsApi.
467
+ * @export
468
+ * @interface ClaimRegulationsApiDeleteClaimRegulationsRequest
469
+ */
470
+ export interface ClaimRegulationsApiDeleteClaimRegulationsRequest {
471
+ /**
472
+ * Unique identifier for the object.
473
+ * @type {string}
474
+ * @memberof ClaimRegulationsApiDeleteClaimRegulations
475
+ */
476
+ readonly code: string
477
+
478
+ /**
479
+ * Bearer Token: provided by the login endpoint under the name accessToken.
480
+ * @type {string}
481
+ * @memberof ClaimRegulationsApiDeleteClaimRegulations
482
+ */
483
+ readonly authorization?: string
484
+ }
485
+
264
486
  /**
265
487
  * Request parameters for getClaimRegulation operation in ClaimRegulationsApi.
266
488
  * @export
@@ -282,53 +504,88 @@ export interface ClaimRegulationsApiGetClaimRegulationRequest {
282
504
  readonly authorization?: string
283
505
 
284
506
  /**
285
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
286
- * @type {any}
507
+ *
508
+ * @type {'claim'}
287
509
  * @memberof ClaimRegulationsApiGetClaimRegulation
288
510
  */
289
- readonly pageSize?: any
511
+ readonly expand?: 'claim'
512
+ }
290
513
 
514
+ /**
515
+ * Request parameters for listClaimRegulations operation in ClaimRegulationsApi.
516
+ * @export
517
+ * @interface ClaimRegulationsApiListClaimRegulationsRequest
518
+ */
519
+ export interface ClaimRegulationsApiListClaimRegulationsRequest {
291
520
  /**
292
- * 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
- * @type {any}
294
- * @memberof ClaimRegulationsApiGetClaimRegulation
521
+ * Bearer Token: provided by the login endpoint under the name accessToken.
522
+ * @type {string}
523
+ * @memberof ClaimRegulationsApiListClaimRegulations
295
524
  */
296
- readonly pageToken?: any
525
+ readonly authorization?: string
297
526
 
298
527
  /**
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
528
+ * 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;
529
+ * @type {string}
530
+ * @memberof ClaimRegulationsApiListClaimRegulations
302
531
  */
303
- readonly filter?: any
532
+ readonly filter?: string
304
533
 
305
534
  /**
306
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
307
- * @type {any}
308
- * @memberof ClaimRegulationsApiGetClaimRegulation
535
+ * 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;
536
+ * @type {string}
537
+ * @memberof ClaimRegulationsApiListClaimRegulations
309
538
  */
310
- readonly search?: any
539
+ readonly filters?: string
311
540
 
312
541
  /**
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
542
+ * 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;
543
+ * @type {string}
544
+ * @memberof ClaimRegulationsApiListClaimRegulations
316
545
  */
317
- readonly order?: any
546
+ readonly search?: string
318
547
 
319
548
  /**
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
549
+ * 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;
550
+ * @type {string}
551
+ * @memberof ClaimRegulationsApiListClaimRegulations
323
552
  */
324
- readonly expand?: 'partners'
553
+ readonly order?: string
325
554
 
326
555
  /**
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
556
+ * 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;
557
+ * @type {string}
558
+ * @memberof ClaimRegulationsApiListClaimRegulations
330
559
  */
331
- readonly filters?: any
560
+ readonly expand?: string
561
+ }
562
+
563
+ /**
564
+ * Request parameters for updateClaimRegulation operation in ClaimRegulationsApi.
565
+ * @export
566
+ * @interface ClaimRegulationsApiUpdateClaimRegulationRequest
567
+ */
568
+ export interface ClaimRegulationsApiUpdateClaimRegulationRequest {
569
+ /**
570
+ * Unique identifier for the object.
571
+ * @type {string}
572
+ * @memberof ClaimRegulationsApiUpdateClaimRegulation
573
+ */
574
+ readonly code: string
575
+
576
+ /**
577
+ *
578
+ * @type {object}
579
+ * @memberof ClaimRegulationsApiUpdateClaimRegulation
580
+ */
581
+ readonly body: object
582
+
583
+ /**
584
+ * Bearer Token: provided by the login endpoint under the name accessToken.
585
+ * @type {string}
586
+ * @memberof ClaimRegulationsApiUpdateClaimRegulation
587
+ */
588
+ readonly authorization?: string
332
589
  }
333
590
 
334
591
  /**
@@ -350,6 +607,18 @@ export class ClaimRegulationsApi extends BaseAPI {
350
607
  return ClaimRegulationsApiFp(this.configuration).createClaimRegulation(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
351
608
  }
352
609
 
610
+ /**
611
+ * This will delete the regulation item identified by the code.
612
+ * @summary Delete the claim regulation item
613
+ * @param {ClaimRegulationsApiDeleteClaimRegulationsRequest} requestParameters Request parameters.
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ * @memberof ClaimRegulationsApi
617
+ */
618
+ public deleteClaimRegulations(requestParameters: ClaimRegulationsApiDeleteClaimRegulationsRequest, options?: AxiosRequestConfig) {
619
+ return ClaimRegulationsApiFp(this.configuration).deleteClaimRegulations(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
620
+ }
621
+
353
622
  /**
354
623
  * 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
624
  * @summary Retrieve the claim regulation item
@@ -359,6 +628,30 @@ export class ClaimRegulationsApi extends BaseAPI {
359
628
  * @memberof ClaimRegulationsApi
360
629
  */
361
630
  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));
631
+ return ClaimRegulationsApiFp(this.configuration).getClaimRegulation(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
632
+ }
633
+
634
+ /**
635
+ * 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.
636
+ * @summary List claim regulation items
637
+ * @param {ClaimRegulationsApiListClaimRegulationsRequest} requestParameters Request parameters.
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ * @memberof ClaimRegulationsApi
641
+ */
642
+ public listClaimRegulations(requestParameters: ClaimRegulationsApiListClaimRegulationsRequest = {}, options?: AxiosRequestConfig) {
643
+ return ClaimRegulationsApiFp(this.configuration).listClaimRegulations(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
644
+ }
645
+
646
+ /**
647
+ * 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.
648
+ * @summary Update the claim regulation item
649
+ * @param {ClaimRegulationsApiUpdateClaimRegulationRequest} requestParameters Request parameters.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ * @memberof ClaimRegulationsApi
653
+ */
654
+ public updateClaimRegulation(requestParameters: ClaimRegulationsApiUpdateClaimRegulationRequest, options?: AxiosRequestConfig) {
655
+ return ClaimRegulationsApiFp(this.configuration).updateClaimRegulation(requestParameters.code, requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
363
656
  }
364
657
  }