@emilgroup/claim-sdk-node 1.17.2-beta.0 → 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.
- package/.openapi-generator/FILES +9 -1
- package/README.md +18 -2
- package/api/claim-partner-roles-api.ts +41 -41
- package/api/claim-partners-api.ts +55 -55
- package/api/claim-regulations-api.ts +689 -0
- package/api/claim-statuses-api.ts +39 -39
- package/api/claims-api.ts +37 -37
- package/api/{default-api.ts → health-check-api.ts} +22 -18
- package/api/settlements-api.ts +39 -39
- package/api.ts +4 -2
- package/dist/api/claim-partner-roles-api.d.ts +41 -41
- package/dist/api/claim-partner-roles-api.js +23 -23
- package/dist/api/claim-partners-api.d.ts +51 -51
- package/dist/api/claim-partners-api.js +32 -32
- package/dist/api/claim-regulations-api.d.ts +390 -0
- package/dist/api/claim-regulations-api.js +646 -0
- package/dist/api/claim-statuses-api.d.ts +39 -39
- package/dist/api/claim-statuses-api.js +23 -23
- package/dist/api/claims-api.d.ts +37 -37
- package/dist/api/claims-api.js +19 -19
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +31 -27
- package/dist/api/settlements-api.d.ts +39 -39
- package/dist/api/settlements-api.js +23 -23
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/models/create-claim-partner-response-class.d.ts +1 -1
- package/dist/models/create-claim-partner-role-response-class.d.ts +1 -1
- package/dist/models/create-claim-request-dto.d.ts +17 -17
- package/dist/models/create-regulation-item-request-dto.d.ts +68 -0
- package/dist/models/create-regulation-item-request-dto.js +34 -0
- package/dist/models/get-claim-partner-response-class.d.ts +1 -1
- package/dist/models/get-claim-partner-role-response-class.d.ts +1 -1
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/list-regulations-response-class.d.ts +31 -0
- package/dist/models/list-regulations-response-class.js +15 -0
- package/dist/models/patch-claim-request-dto.d.ts +18 -18
- package/dist/models/payout-details-class.d.ts +90 -0
- package/dist/models/payout-details-class.js +26 -0
- package/dist/models/regress-details-class.d.ts +81 -0
- package/dist/models/regress-details-class.js +29 -0
- package/dist/models/regulation-item-class.d.ts +126 -0
- package/dist/models/regulation-item-class.js +34 -0
- package/dist/models/regulation-item-response-class.d.ts +25 -0
- package/dist/models/regulation-item-response-class.js +15 -0
- package/dist/models/reserve-details-class.d.ts +59 -0
- package/dist/models/reserve-details-class.js +20 -0
- package/dist/models/update-claim-partner-role-response-class.d.ts +1 -1
- package/dist/models/update-claim-request-dto.d.ts +15 -15
- package/models/create-claim-partner-response-class.ts +1 -1
- package/models/create-claim-partner-role-response-class.ts +1 -1
- package/models/create-claim-request-dto.ts +17 -17
- package/models/create-regulation-item-request-dto.ts +78 -0
- package/models/get-claim-partner-response-class.ts +1 -1
- package/models/get-claim-partner-role-response-class.ts +1 -1
- package/models/index.ts +7 -0
- package/models/list-regulations-response-class.ts +37 -0
- package/models/patch-claim-request-dto.ts +18 -18
- package/models/payout-details-class.ts +100 -0
- package/models/regress-details-class.ts +91 -0
- package/models/regulation-item-class.ts +136 -0
- package/models/regulation-item-response-class.ts +31 -0
- package/models/reserve-details-class.ts +68 -0
- package/models/update-claim-partner-role-response-class.ts +1 -1
- package/models/update-claim-request-dto.ts +15 -15
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
|
@@ -0,0 +1,689 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL ClaimService
|
|
5
|
+
* The EMIL ClaimService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateRegulationItemRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ListRegulationsResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { RegulationItemResponseClass } from '../models';
|
|
29
|
+
// URLSearchParams not necessarily used
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import { URL, URLSearchParams } from 'url';
|
|
32
|
+
const FormData = require('form-data');
|
|
33
|
+
/**
|
|
34
|
+
* ClaimRegulationsApi - axios parameter creator
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
export const ClaimRegulationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
|
+
return {
|
|
39
|
+
/**
|
|
40
|
+
* This endpoint will create a new regulation item for a claim
|
|
41
|
+
* @summary Create the claim regulation item
|
|
42
|
+
* @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
|
|
43
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
createClaimRegulation: async (createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
|
+
// verify required parameter 'createRegulationItemRequestDto' is not null or undefined
|
|
49
|
+
assertParamExists('createClaimRegulation', 'createRegulationItemRequestDto', createRegulationItemRequestDto)
|
|
50
|
+
const localVarPath = `/v1/claims/regulations`;
|
|
51
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
53
|
+
let baseOptions;
|
|
54
|
+
let baseAccessToken;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
baseOptions = configuration.baseOptions;
|
|
57
|
+
baseAccessToken = configuration.accessToken;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
61
|
+
const localVarHeaderParameter = {} as any;
|
|
62
|
+
const localVarQueryParameter = {} as any;
|
|
63
|
+
|
|
64
|
+
// authentication bearer required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
67
|
+
|
|
68
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
69
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
75
|
+
|
|
76
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
79
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createRegulationItemRequestDto, localVarRequestOptions, configuration)
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
url: toPathString(localVarUrlObj),
|
|
83
|
+
options: localVarRequestOptions,
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* This will delete the regulation item identified by the code.
|
|
88
|
+
* @summary Delete the claim regulation item
|
|
89
|
+
* @param {string} code Unique identifier for the object.
|
|
90
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
deleteClaimRegulations: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
+
// verify required parameter 'code' is not null or undefined
|
|
96
|
+
assertParamExists('deleteClaimRegulations', 'code', code)
|
|
97
|
+
const localVarPath = `/v1/claims/regulations/{code}`
|
|
98
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
99
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
100
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
101
|
+
let baseOptions;
|
|
102
|
+
let baseAccessToken;
|
|
103
|
+
if (configuration) {
|
|
104
|
+
baseOptions = configuration.baseOptions;
|
|
105
|
+
baseAccessToken = configuration.accessToken;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
109
|
+
const localVarHeaderParameter = {} as any;
|
|
110
|
+
const localVarQueryParameter = {} as any;
|
|
111
|
+
|
|
112
|
+
// authentication bearer required
|
|
113
|
+
// http bearer authentication required
|
|
114
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
115
|
+
|
|
116
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
117
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
123
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
124
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
url: toPathString(localVarUrlObj),
|
|
128
|
+
options: localVarRequestOptions,
|
|
129
|
+
};
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
132
|
+
* 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.
|
|
133
|
+
* @summary Retrieve the claim regulation item
|
|
134
|
+
* @param {string} code
|
|
135
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
136
|
+
* @param {'claim'} [expand]
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
getClaimRegulation: async (code: string, authorization?: string, expand?: 'claim', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
141
|
+
// verify required parameter 'code' is not null or undefined
|
|
142
|
+
assertParamExists('getClaimRegulation', 'code', code)
|
|
143
|
+
const localVarPath = `/v1/claims/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: 'GET', ...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 (expand !== undefined) {
|
|
163
|
+
localVarQueryParameter['expand'] = expand;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
167
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
173
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
174
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
175
|
+
|
|
176
|
+
return {
|
|
177
|
+
url: toPathString(localVarUrlObj),
|
|
178
|
+
options: localVarRequestOptions,
|
|
179
|
+
};
|
|
180
|
+
},
|
|
181
|
+
/**
|
|
182
|
+
* 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.
|
|
183
|
+
* @summary List claim regulation items
|
|
184
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
185
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
186
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
187
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
|
|
188
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, claimCode, amount, bookingDate, currency</i>
|
|
189
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: amount, bookingDate, createdAt, updatedAt</i>
|
|
190
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: claim.<i>
|
|
191
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
listClaimRegulations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
196
|
+
const localVarPath = `/v1/claims/regulations`;
|
|
197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
198
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
199
|
+
let baseOptions;
|
|
200
|
+
let baseAccessToken;
|
|
201
|
+
if (configuration) {
|
|
202
|
+
baseOptions = configuration.baseOptions;
|
|
203
|
+
baseAccessToken = configuration.accessToken;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
207
|
+
const localVarHeaderParameter = {} as any;
|
|
208
|
+
const localVarQueryParameter = {} as any;
|
|
209
|
+
|
|
210
|
+
// authentication bearer required
|
|
211
|
+
// http bearer authentication required
|
|
212
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
213
|
+
|
|
214
|
+
if (pageSize !== undefined) {
|
|
215
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (pageToken !== undefined) {
|
|
219
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (filter !== undefined) {
|
|
223
|
+
localVarQueryParameter['filter'] = filter;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (search !== undefined) {
|
|
227
|
+
localVarQueryParameter['search'] = search;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (order !== undefined) {
|
|
231
|
+
localVarQueryParameter['order'] = order;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (expand !== undefined) {
|
|
235
|
+
localVarQueryParameter['expand'] = expand;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (filters !== undefined) {
|
|
239
|
+
localVarQueryParameter['filters'] = filters;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
243
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
249
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
250
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
251
|
+
|
|
252
|
+
return {
|
|
253
|
+
url: toPathString(localVarUrlObj),
|
|
254
|
+
options: localVarRequestOptions,
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
/**
|
|
258
|
+
* 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.
|
|
259
|
+
* @summary Update the claim regulation item
|
|
260
|
+
* @param {string} code Unique identifier for the object.
|
|
261
|
+
* @param {object} body
|
|
262
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
updateClaimRegulation: async (code: string, body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
267
|
+
// verify required parameter 'code' is not null or undefined
|
|
268
|
+
assertParamExists('updateClaimRegulation', 'code', code)
|
|
269
|
+
// verify required parameter 'body' is not null or undefined
|
|
270
|
+
assertParamExists('updateClaimRegulation', 'body', body)
|
|
271
|
+
const localVarPath = `/v1/claims/regulations/{code}`
|
|
272
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
273
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
274
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
275
|
+
let baseOptions;
|
|
276
|
+
let baseAccessToken;
|
|
277
|
+
if (configuration) {
|
|
278
|
+
baseOptions = configuration.baseOptions;
|
|
279
|
+
baseAccessToken = configuration.accessToken;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
283
|
+
const localVarHeaderParameter = {} as any;
|
|
284
|
+
const localVarQueryParameter = {} as any;
|
|
285
|
+
|
|
286
|
+
// authentication bearer required
|
|
287
|
+
// http bearer authentication required
|
|
288
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
289
|
+
|
|
290
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
291
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
297
|
+
|
|
298
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
299
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
300
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
301
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
302
|
+
|
|
303
|
+
return {
|
|
304
|
+
url: toPathString(localVarUrlObj),
|
|
305
|
+
options: localVarRequestOptions,
|
|
306
|
+
};
|
|
307
|
+
},
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* ClaimRegulationsApi - functional programming interface
|
|
313
|
+
* @export
|
|
314
|
+
*/
|
|
315
|
+
export const ClaimRegulationsApiFp = function(configuration?: Configuration) {
|
|
316
|
+
const localVarAxiosParamCreator = ClaimRegulationsApiAxiosParamCreator(configuration)
|
|
317
|
+
return {
|
|
318
|
+
/**
|
|
319
|
+
* This endpoint will create a new regulation item for a claim
|
|
320
|
+
* @summary Create the claim regulation item
|
|
321
|
+
* @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
|
|
322
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
async createClaimRegulation(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
|
|
327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClaimRegulation(createRegulationItemRequestDto, authorization, options);
|
|
328
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
329
|
+
},
|
|
330
|
+
/**
|
|
331
|
+
* This will delete the regulation item identified by the code.
|
|
332
|
+
* @summary Delete the claim regulation item
|
|
333
|
+
* @param {string} code Unique identifier for the object.
|
|
334
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
async deleteClaimRegulations(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
339
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimRegulations(code, authorization, options);
|
|
340
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
341
|
+
},
|
|
342
|
+
/**
|
|
343
|
+
* 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.
|
|
344
|
+
* @summary Retrieve the claim regulation item
|
|
345
|
+
* @param {string} code
|
|
346
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
347
|
+
* @param {'claim'} [expand]
|
|
348
|
+
* @param {*} [options] Override http request option.
|
|
349
|
+
* @throws {RequiredError}
|
|
350
|
+
*/
|
|
351
|
+
async getClaimRegulation(code: string, authorization?: string, expand?: 'claim', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
|
|
352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimRegulation(code, authorization, expand, options);
|
|
353
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* 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.
|
|
357
|
+
* @summary List claim regulation items
|
|
358
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
359
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
360
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
361
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
|
|
362
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, claimCode, amount, bookingDate, currency</i>
|
|
363
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: amount, bookingDate, createdAt, updatedAt</i>
|
|
364
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: claim.<i>
|
|
365
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
*/
|
|
369
|
+
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>> {
|
|
370
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimRegulations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
371
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
* 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.
|
|
375
|
+
* @summary Update the claim regulation item
|
|
376
|
+
* @param {string} code Unique identifier for the object.
|
|
377
|
+
* @param {object} body
|
|
378
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
async updateClaimRegulation(code: string, body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegulationItemResponseClass>> {
|
|
383
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateClaimRegulation(code, body, authorization, options);
|
|
384
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
385
|
+
},
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* ClaimRegulationsApi - factory interface
|
|
391
|
+
* @export
|
|
392
|
+
*/
|
|
393
|
+
export const ClaimRegulationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
394
|
+
const localVarFp = ClaimRegulationsApiFp(configuration)
|
|
395
|
+
return {
|
|
396
|
+
/**
|
|
397
|
+
* This endpoint will create a new regulation item for a claim
|
|
398
|
+
* @summary Create the claim regulation item
|
|
399
|
+
* @param {CreateRegulationItemRequestDto} createRegulationItemRequestDto
|
|
400
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
createClaimRegulation(createRegulationItemRequestDto: CreateRegulationItemRequestDto, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
|
|
405
|
+
return localVarFp.createClaimRegulation(createRegulationItemRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
406
|
+
},
|
|
407
|
+
/**
|
|
408
|
+
* This will delete the regulation item identified by the code.
|
|
409
|
+
* @summary Delete the claim regulation item
|
|
410
|
+
* @param {string} code Unique identifier for the object.
|
|
411
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
412
|
+
* @param {*} [options] Override http request option.
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
*/
|
|
415
|
+
deleteClaimRegulations(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
416
|
+
return localVarFp.deleteClaimRegulations(code, authorization, options).then((request) => request(axios, basePath));
|
|
417
|
+
},
|
|
418
|
+
/**
|
|
419
|
+
* 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.
|
|
420
|
+
* @summary Retrieve the claim regulation item
|
|
421
|
+
* @param {string} code
|
|
422
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
423
|
+
* @param {'claim'} [expand]
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
*/
|
|
427
|
+
getClaimRegulation(code: string, authorization?: string, expand?: 'claim', options?: any): AxiosPromise<RegulationItemResponseClass> {
|
|
428
|
+
return localVarFp.getClaimRegulation(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
429
|
+
},
|
|
430
|
+
/**
|
|
431
|
+
* 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.
|
|
432
|
+
* @summary List claim regulation items
|
|
433
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
434
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
435
|
+
* @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
436
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
|
|
437
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, claimCode, amount, bookingDate, currency</i>
|
|
438
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: amount, bookingDate, createdAt, updatedAt</i>
|
|
439
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: claim.<i>
|
|
440
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
*/
|
|
444
|
+
listClaimRegulations(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRegulationsResponseClass> {
|
|
445
|
+
return localVarFp.listClaimRegulations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
446
|
+
},
|
|
447
|
+
/**
|
|
448
|
+
* 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.
|
|
449
|
+
* @summary Update the claim regulation item
|
|
450
|
+
* @param {string} code Unique identifier for the object.
|
|
451
|
+
* @param {object} body
|
|
452
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
*/
|
|
456
|
+
updateClaimRegulation(code: string, body: object, authorization?: string, options?: any): AxiosPromise<RegulationItemResponseClass> {
|
|
457
|
+
return localVarFp.updateClaimRegulation(code, body, authorization, options).then((request) => request(axios, basePath));
|
|
458
|
+
},
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Request parameters for createClaimRegulation operation in ClaimRegulationsApi.
|
|
464
|
+
* @export
|
|
465
|
+
* @interface ClaimRegulationsApiCreateClaimRegulationRequest
|
|
466
|
+
*/
|
|
467
|
+
export interface ClaimRegulationsApiCreateClaimRegulationRequest {
|
|
468
|
+
/**
|
|
469
|
+
*
|
|
470
|
+
* @type {CreateRegulationItemRequestDto}
|
|
471
|
+
* @memberof ClaimRegulationsApiCreateClaimRegulation
|
|
472
|
+
*/
|
|
473
|
+
readonly createRegulationItemRequestDto: CreateRegulationItemRequestDto
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
477
|
+
* @type {string}
|
|
478
|
+
* @memberof ClaimRegulationsApiCreateClaimRegulation
|
|
479
|
+
*/
|
|
480
|
+
readonly authorization?: string
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Request parameters for deleteClaimRegulations operation in ClaimRegulationsApi.
|
|
485
|
+
* @export
|
|
486
|
+
* @interface ClaimRegulationsApiDeleteClaimRegulationsRequest
|
|
487
|
+
*/
|
|
488
|
+
export interface ClaimRegulationsApiDeleteClaimRegulationsRequest {
|
|
489
|
+
/**
|
|
490
|
+
* Unique identifier for the object.
|
|
491
|
+
* @type {string}
|
|
492
|
+
* @memberof ClaimRegulationsApiDeleteClaimRegulations
|
|
493
|
+
*/
|
|
494
|
+
readonly code: string
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
498
|
+
* @type {string}
|
|
499
|
+
* @memberof ClaimRegulationsApiDeleteClaimRegulations
|
|
500
|
+
*/
|
|
501
|
+
readonly authorization?: string
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Request parameters for getClaimRegulation operation in ClaimRegulationsApi.
|
|
506
|
+
* @export
|
|
507
|
+
* @interface ClaimRegulationsApiGetClaimRegulationRequest
|
|
508
|
+
*/
|
|
509
|
+
export interface ClaimRegulationsApiGetClaimRegulationRequest {
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @type {string}
|
|
513
|
+
* @memberof ClaimRegulationsApiGetClaimRegulation
|
|
514
|
+
*/
|
|
515
|
+
readonly code: string
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
519
|
+
* @type {string}
|
|
520
|
+
* @memberof ClaimRegulationsApiGetClaimRegulation
|
|
521
|
+
*/
|
|
522
|
+
readonly authorization?: string
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @type {'claim'}
|
|
527
|
+
* @memberof ClaimRegulationsApiGetClaimRegulation
|
|
528
|
+
*/
|
|
529
|
+
readonly expand?: 'claim'
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Request parameters for listClaimRegulations operation in ClaimRegulationsApi.
|
|
534
|
+
* @export
|
|
535
|
+
* @interface ClaimRegulationsApiListClaimRegulationsRequest
|
|
536
|
+
*/
|
|
537
|
+
export interface ClaimRegulationsApiListClaimRegulationsRequest {
|
|
538
|
+
/**
|
|
539
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
540
|
+
* @type {string}
|
|
541
|
+
* @memberof ClaimRegulationsApiListClaimRegulations
|
|
542
|
+
*/
|
|
543
|
+
readonly authorization?: string
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
547
|
+
* @type {any}
|
|
548
|
+
* @memberof ClaimRegulationsApiListClaimRegulations
|
|
549
|
+
*/
|
|
550
|
+
readonly pageSize?: any
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
554
|
+
* @type {any}
|
|
555
|
+
* @memberof ClaimRegulationsApiListClaimRegulations
|
|
556
|
+
*/
|
|
557
|
+
readonly pageToken?: any
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
|
|
561
|
+
* @type {string}
|
|
562
|
+
* @memberof ClaimRegulationsApiListClaimRegulations
|
|
563
|
+
*/
|
|
564
|
+
readonly filter?: string
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, claimCode, amount, bookingDate, currency</i>
|
|
568
|
+
* @type {string}
|
|
569
|
+
* @memberof ClaimRegulationsApiListClaimRegulations
|
|
570
|
+
*/
|
|
571
|
+
readonly search?: string
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: amount, bookingDate, createdAt, updatedAt</i>
|
|
575
|
+
* @type {string}
|
|
576
|
+
* @memberof ClaimRegulationsApiListClaimRegulations
|
|
577
|
+
*/
|
|
578
|
+
readonly order?: string
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: claim.<i>
|
|
582
|
+
* @type {string}
|
|
583
|
+
* @memberof ClaimRegulationsApiListClaimRegulations
|
|
584
|
+
*/
|
|
585
|
+
readonly expand?: string
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, claimCode, amount, bookingDate, currency, regulationItemType, payoutType, regressType, reserveType, payoutStatus, regressStatus</i>
|
|
589
|
+
* @type {string}
|
|
590
|
+
* @memberof ClaimRegulationsApiListClaimRegulations
|
|
591
|
+
*/
|
|
592
|
+
readonly filters?: string
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Request parameters for updateClaimRegulation operation in ClaimRegulationsApi.
|
|
597
|
+
* @export
|
|
598
|
+
* @interface ClaimRegulationsApiUpdateClaimRegulationRequest
|
|
599
|
+
*/
|
|
600
|
+
export interface ClaimRegulationsApiUpdateClaimRegulationRequest {
|
|
601
|
+
/**
|
|
602
|
+
* Unique identifier for the object.
|
|
603
|
+
* @type {string}
|
|
604
|
+
* @memberof ClaimRegulationsApiUpdateClaimRegulation
|
|
605
|
+
*/
|
|
606
|
+
readonly code: string
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @type {object}
|
|
611
|
+
* @memberof ClaimRegulationsApiUpdateClaimRegulation
|
|
612
|
+
*/
|
|
613
|
+
readonly body: object
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
617
|
+
* @type {string}
|
|
618
|
+
* @memberof ClaimRegulationsApiUpdateClaimRegulation
|
|
619
|
+
*/
|
|
620
|
+
readonly authorization?: string
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* ClaimRegulationsApi - object-oriented interface
|
|
625
|
+
* @export
|
|
626
|
+
* @class ClaimRegulationsApi
|
|
627
|
+
* @extends {BaseAPI}
|
|
628
|
+
*/
|
|
629
|
+
export class ClaimRegulationsApi extends BaseAPI {
|
|
630
|
+
/**
|
|
631
|
+
* This endpoint will create a new regulation item for a claim
|
|
632
|
+
* @summary Create the claim regulation item
|
|
633
|
+
* @param {ClaimRegulationsApiCreateClaimRegulationRequest} requestParameters Request parameters.
|
|
634
|
+
* @param {*} [options] Override http request option.
|
|
635
|
+
* @throws {RequiredError}
|
|
636
|
+
* @memberof ClaimRegulationsApi
|
|
637
|
+
*/
|
|
638
|
+
public createClaimRegulation(requestParameters: ClaimRegulationsApiCreateClaimRegulationRequest, options?: AxiosRequestConfig) {
|
|
639
|
+
return ClaimRegulationsApiFp(this.configuration).createClaimRegulation(requestParameters.createRegulationItemRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* This will delete the regulation item identified by the code.
|
|
644
|
+
* @summary Delete the claim regulation item
|
|
645
|
+
* @param {ClaimRegulationsApiDeleteClaimRegulationsRequest} requestParameters Request parameters.
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
* @memberof ClaimRegulationsApi
|
|
649
|
+
*/
|
|
650
|
+
public deleteClaimRegulations(requestParameters: ClaimRegulationsApiDeleteClaimRegulationsRequest, options?: AxiosRequestConfig) {
|
|
651
|
+
return ClaimRegulationsApiFp(this.configuration).deleteClaimRegulations(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* 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.
|
|
656
|
+
* @summary Retrieve the claim regulation item
|
|
657
|
+
* @param {ClaimRegulationsApiGetClaimRegulationRequest} requestParameters Request parameters.
|
|
658
|
+
* @param {*} [options] Override http request option.
|
|
659
|
+
* @throws {RequiredError}
|
|
660
|
+
* @memberof ClaimRegulationsApi
|
|
661
|
+
*/
|
|
662
|
+
public getClaimRegulation(requestParameters: ClaimRegulationsApiGetClaimRegulationRequest, options?: AxiosRequestConfig) {
|
|
663
|
+
return ClaimRegulationsApiFp(this.configuration).getClaimRegulation(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* 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.
|
|
668
|
+
* @summary List claim regulation items
|
|
669
|
+
* @param {ClaimRegulationsApiListClaimRegulationsRequest} requestParameters Request parameters.
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
* @memberof ClaimRegulationsApi
|
|
673
|
+
*/
|
|
674
|
+
public listClaimRegulations(requestParameters: ClaimRegulationsApiListClaimRegulationsRequest = {}, options?: AxiosRequestConfig) {
|
|
675
|
+
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));
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* 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.
|
|
680
|
+
* @summary Update the claim regulation item
|
|
681
|
+
* @param {ClaimRegulationsApiUpdateClaimRegulationRequest} requestParameters Request parameters.
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
* @memberof ClaimRegulationsApi
|
|
685
|
+
*/
|
|
686
|
+
public updateClaimRegulation(requestParameters: ClaimRegulationsApiUpdateClaimRegulationRequest, options?: AxiosRequestConfig) {
|
|
687
|
+
return ClaimRegulationsApiFp(this.configuration).updateClaimRegulation(requestParameters.code, requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
688
|
+
}
|
|
689
|
+
}
|