@emilgroup/claim-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +40 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/claim-statuses-api.ts +543 -0
- package/api/claims-api.ts +783 -0
- package/api/default-api.ts +120 -0
- package/api/settlements-api.ts +663 -0
- package/api.ts +33 -0
- package/base.ts +250 -0
- package/common.ts +198 -0
- package/configuration.ts +101 -0
- package/dist/api/claim-statuses-api.d.ts +309 -0
- package/dist/api/claim-statuses-api.js +531 -0
- package/dist/api/claims-api.d.ts +441 -0
- package/dist/api/claims-api.js +729 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +196 -0
- package/dist/api/settlements-api.d.ts +375 -0
- package/dist/api/settlements-api.js +630 -0
- package/dist/api.d.ts +15 -0
- package/dist/api.js +33 -0
- package/dist/base.d.ts +73 -0
- package/dist/base.js +297 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +276 -0
- package/dist/configuration.d.ts +83 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/claim-class.d.ts +156 -0
- package/dist/models/claim-class.js +15 -0
- package/dist/models/claim-status-class.d.ts +36 -0
- package/dist/models/claim-status-class.js +15 -0
- package/dist/models/create-claim-request-dto.d.ts +126 -0
- package/dist/models/create-claim-request-dto.js +15 -0
- package/dist/models/create-claim-response-class.d.ts +25 -0
- package/dist/models/create-claim-response-class.js +15 -0
- package/dist/models/create-claim-status-request-dto.d.ts +30 -0
- package/dist/models/create-claim-status-request-dto.js +15 -0
- package/dist/models/create-claim-status-response-class.d.ts +25 -0
- package/dist/models/create-claim-status-response-class.js +15 -0
- package/dist/models/create-settlement-request-dto.d.ts +48 -0
- package/dist/models/create-settlement-request-dto.js +15 -0
- package/dist/models/create-settlement-response-class.d.ts +25 -0
- package/dist/models/create-settlement-response-class.js +15 -0
- package/dist/models/get-claim-response-class.d.ts +25 -0
- package/dist/models/get-claim-response-class.js +15 -0
- package/dist/models/get-claim-status-response-class.d.ts +25 -0
- package/dist/models/get-claim-status-response-class.js +15 -0
- package/dist/models/get-settlement-response-class.d.ts +25 -0
- package/dist/models/get-settlement-response-class.js +15 -0
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +39 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/list-claim-statuses-response-class.d.ts +31 -0
- package/dist/models/list-claim-statuses-response-class.js +15 -0
- package/dist/models/list-claims-response-class.d.ts +31 -0
- package/dist/models/list-claims-response-class.js +15 -0
- package/dist/models/list-settlements-response-class.d.ts +31 -0
- package/dist/models/list-settlements-response-class.js +15 -0
- package/dist/models/patch-claim-request-dto.d.ts +126 -0
- package/dist/models/patch-claim-request-dto.js +15 -0
- package/dist/models/patch-claim-response-class.d.ts +25 -0
- package/dist/models/patch-claim-response-class.js +15 -0
- package/dist/models/settlement-class.d.ts +78 -0
- package/dist/models/settlement-class.js +15 -0
- package/dist/models/update-claim-request-dto.d.ts +126 -0
- package/dist/models/update-claim-request-dto.js +15 -0
- package/dist/models/update-claim-response-class.d.ts +25 -0
- package/dist/models/update-claim-response-class.js +15 -0
- package/dist/models/update-settlement-request-dto.d.ts +54 -0
- package/dist/models/update-settlement-request-dto.js +15 -0
- package/dist/models/update-settlement-response-class.d.ts +25 -0
- package/dist/models/update-settlement-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/claim-class.ts +162 -0
- package/models/claim-status-class.ts +42 -0
- package/models/create-claim-request-dto.ts +132 -0
- package/models/create-claim-response-class.ts +31 -0
- package/models/create-claim-status-request-dto.ts +36 -0
- package/models/create-claim-status-response-class.ts +31 -0
- package/models/create-settlement-request-dto.ts +54 -0
- package/models/create-settlement-response-class.ts +31 -0
- package/models/get-claim-response-class.ts +31 -0
- package/models/get-claim-status-response-class.ts +31 -0
- package/models/get-settlement-response-class.ts +31 -0
- package/models/index.ts +23 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/list-claim-statuses-response-class.ts +37 -0
- package/models/list-claims-response-class.ts +37 -0
- package/models/list-settlements-response-class.ts +37 -0
- package/models/patch-claim-request-dto.ts +132 -0
- package/models/patch-claim-response-class.ts +31 -0
- package/models/settlement-class.ts +84 -0
- package/models/update-claim-request-dto.ts +132 -0
- package/models/update-claim-response-class.ts +31 -0
- package/models/update-settlement-request-dto.ts +60 -0
- package/models/update-settlement-response-class.ts +31 -0
- package/package.json +27 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,663 @@
|
|
|
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 { CreateSettlementRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateSettlementResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetSettlementResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListSettlementsResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdateSettlementRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdateSettlementResponseClass } from '../models';
|
|
35
|
+
/**
|
|
36
|
+
* SettlementsApi - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
export const SettlementsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
* This will create a settlement against a claim in the database
|
|
43
|
+
* @summary Create the settlement
|
|
44
|
+
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
45
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
createSettlement: async (createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
// verify required parameter 'createSettlementRequestDto' is not null or undefined
|
|
51
|
+
assertParamExists('createSettlement', 'createSettlementRequestDto', createSettlementRequestDto)
|
|
52
|
+
const localVarPath = `/v1/settlements`;
|
|
53
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55
|
+
let baseOptions;
|
|
56
|
+
let baseAccessToken;
|
|
57
|
+
if (configuration) {
|
|
58
|
+
baseOptions = configuration.baseOptions;
|
|
59
|
+
baseAccessToken = configuration.accessToken;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
63
|
+
const localVarHeaderParameter = {} as any;
|
|
64
|
+
const localVarQueryParameter = {} as any;
|
|
65
|
+
|
|
66
|
+
// authentication bearer required
|
|
67
|
+
// http bearer authentication required
|
|
68
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
|
+
|
|
70
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
77
|
+
|
|
78
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
81
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSettlementRequestDto, localVarRequestOptions, configuration)
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
url: toPathString(localVarUrlObj),
|
|
85
|
+
options: localVarRequestOptions,
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* This will delete the requested settlement from the database.
|
|
90
|
+
* @summary Delete the settlement
|
|
91
|
+
* @param {string} code
|
|
92
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
deleteSettlement: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
|
+
// verify required parameter 'code' is not null or undefined
|
|
98
|
+
assertParamExists('deleteSettlement', 'code', code)
|
|
99
|
+
const localVarPath = `/v1/settlements/{code}`
|
|
100
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
101
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
+
let baseOptions;
|
|
104
|
+
let baseAccessToken;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
baseAccessToken = configuration.accessToken;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
111
|
+
const localVarHeaderParameter = {} as any;
|
|
112
|
+
const localVarQueryParameter = {} as any;
|
|
113
|
+
|
|
114
|
+
// authentication bearer required
|
|
115
|
+
// http bearer authentication required
|
|
116
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
|
+
|
|
118
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
* Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
|
|
135
|
+
* @summary Retrieve the settlement
|
|
136
|
+
* @param {string} code
|
|
137
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
getSettlement: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
142
|
+
// verify required parameter 'code' is not null or undefined
|
|
143
|
+
assertParamExists('getSettlement', 'code', code)
|
|
144
|
+
const localVarPath = `/v1/settlements/{code}`
|
|
145
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
146
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
148
|
+
let baseOptions;
|
|
149
|
+
let baseAccessToken;
|
|
150
|
+
if (configuration) {
|
|
151
|
+
baseOptions = configuration.baseOptions;
|
|
152
|
+
baseAccessToken = configuration.accessToken;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
156
|
+
const localVarHeaderParameter = {} as any;
|
|
157
|
+
const localVarQueryParameter = {} as any;
|
|
158
|
+
|
|
159
|
+
// authentication bearer required
|
|
160
|
+
// http bearer authentication required
|
|
161
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
162
|
+
|
|
163
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
164
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
170
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
171
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
url: toPathString(localVarUrlObj),
|
|
175
|
+
options: localVarRequestOptions,
|
|
176
|
+
};
|
|
177
|
+
},
|
|
178
|
+
/**
|
|
179
|
+
* Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
180
|
+
* @summary List settlements
|
|
181
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
182
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
183
|
+
* @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.
|
|
184
|
+
* @param {'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
185
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
186
|
+
* @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.
|
|
187
|
+
* @param {any} [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.
|
|
188
|
+
* @param {*} [options] Override http request option.
|
|
189
|
+
* @throws {RequiredError}
|
|
190
|
+
*/
|
|
191
|
+
listSettlements: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId', search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
192
|
+
const localVarPath = `/v1/settlements`;
|
|
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
|
+
|
|
210
|
+
if (pageSize !== undefined) {
|
|
211
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
if (pageToken !== undefined) {
|
|
215
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (filter !== undefined) {
|
|
219
|
+
localVarQueryParameter['filter'] = filter;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (search !== undefined) {
|
|
223
|
+
localVarQueryParameter['search'] = search;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (order !== undefined) {
|
|
227
|
+
localVarQueryParameter['order'] = order;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (expand !== undefined) {
|
|
231
|
+
localVarQueryParameter['expand'] = expand;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
235
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
241
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
242
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
243
|
+
|
|
244
|
+
return {
|
|
245
|
+
url: toPathString(localVarUrlObj),
|
|
246
|
+
options: localVarRequestOptions,
|
|
247
|
+
};
|
|
248
|
+
},
|
|
249
|
+
/**
|
|
250
|
+
* Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
251
|
+
* @summary Update the settlement
|
|
252
|
+
* @param {string} code
|
|
253
|
+
* @param {UpdateSettlementRequestDto} updateSettlementRequestDto
|
|
254
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
255
|
+
* @param {*} [options] Override http request option.
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
*/
|
|
258
|
+
updateSettlement: async (code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
259
|
+
// verify required parameter 'code' is not null or undefined
|
|
260
|
+
assertParamExists('updateSettlement', 'code', code)
|
|
261
|
+
// verify required parameter 'updateSettlementRequestDto' is not null or undefined
|
|
262
|
+
assertParamExists('updateSettlement', 'updateSettlementRequestDto', updateSettlementRequestDto)
|
|
263
|
+
const localVarPath = `/v1/settlements/{code}`
|
|
264
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
265
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
266
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
267
|
+
let baseOptions;
|
|
268
|
+
let baseAccessToken;
|
|
269
|
+
if (configuration) {
|
|
270
|
+
baseOptions = configuration.baseOptions;
|
|
271
|
+
baseAccessToken = configuration.accessToken;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
275
|
+
const localVarHeaderParameter = {} as any;
|
|
276
|
+
const localVarQueryParameter = {} as any;
|
|
277
|
+
|
|
278
|
+
// authentication bearer required
|
|
279
|
+
// http bearer authentication required
|
|
280
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
281
|
+
|
|
282
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
283
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
289
|
+
|
|
290
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
291
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
292
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
293
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateSettlementRequestDto, localVarRequestOptions, configuration)
|
|
294
|
+
|
|
295
|
+
return {
|
|
296
|
+
url: toPathString(localVarUrlObj),
|
|
297
|
+
options: localVarRequestOptions,
|
|
298
|
+
};
|
|
299
|
+
},
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* SettlementsApi - functional programming interface
|
|
305
|
+
* @export
|
|
306
|
+
*/
|
|
307
|
+
export const SettlementsApiFp = function(configuration?: Configuration) {
|
|
308
|
+
const localVarAxiosParamCreator = SettlementsApiAxiosParamCreator(configuration)
|
|
309
|
+
return {
|
|
310
|
+
/**
|
|
311
|
+
* This will create a settlement against a claim in the database
|
|
312
|
+
* @summary Create the settlement
|
|
313
|
+
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
314
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
315
|
+
* @param {*} [options] Override http request option.
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
*/
|
|
318
|
+
async createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSettlementResponseClass>> {
|
|
319
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSettlement(createSettlementRequestDto, authorization, options);
|
|
320
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
|
+
},
|
|
322
|
+
/**
|
|
323
|
+
* This will delete the requested settlement from the database.
|
|
324
|
+
* @summary Delete the settlement
|
|
325
|
+
* @param {string} code
|
|
326
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
async deleteSettlement(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
331
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSettlement(code, authorization, options);
|
|
332
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
333
|
+
},
|
|
334
|
+
/**
|
|
335
|
+
* Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
|
|
336
|
+
* @summary Retrieve the settlement
|
|
337
|
+
* @param {string} code
|
|
338
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
342
|
+
async getSettlement(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettlementResponseClass>> {
|
|
343
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSettlement(code, authorization, options);
|
|
344
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
345
|
+
},
|
|
346
|
+
/**
|
|
347
|
+
* Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
348
|
+
* @summary List settlements
|
|
349
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
350
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
351
|
+
* @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.
|
|
352
|
+
* @param {'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
353
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
354
|
+
* @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.
|
|
355
|
+
* @param {any} [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.
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
*/
|
|
359
|
+
async listSettlements(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId', search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSettlementsResponseClass>> {
|
|
360
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSettlements(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
361
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
362
|
+
},
|
|
363
|
+
/**
|
|
364
|
+
* Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
365
|
+
* @summary Update the settlement
|
|
366
|
+
* @param {string} code
|
|
367
|
+
* @param {UpdateSettlementRequestDto} updateSettlementRequestDto
|
|
368
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
async updateSettlement(code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSettlementResponseClass>> {
|
|
373
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSettlement(code, updateSettlementRequestDto, authorization, options);
|
|
374
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
|
+
},
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* SettlementsApi - factory interface
|
|
381
|
+
* @export
|
|
382
|
+
*/
|
|
383
|
+
export const SettlementsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
384
|
+
const localVarFp = SettlementsApiFp(configuration)
|
|
385
|
+
return {
|
|
386
|
+
/**
|
|
387
|
+
* This will create a settlement against a claim in the database
|
|
388
|
+
* @summary Create the settlement
|
|
389
|
+
* @param {CreateSettlementRequestDto} createSettlementRequestDto
|
|
390
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
*/
|
|
394
|
+
createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSettlementResponseClass> {
|
|
395
|
+
return localVarFp.createSettlement(createSettlementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
396
|
+
},
|
|
397
|
+
/**
|
|
398
|
+
* This will delete the requested settlement from the database.
|
|
399
|
+
* @summary Delete the settlement
|
|
400
|
+
* @param {string} code
|
|
401
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
*/
|
|
405
|
+
deleteSettlement(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
406
|
+
return localVarFp.deleteSettlement(code, authorization, options).then((request) => request(axios, basePath));
|
|
407
|
+
},
|
|
408
|
+
/**
|
|
409
|
+
* Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
|
|
410
|
+
* @summary Retrieve the settlement
|
|
411
|
+
* @param {string} code
|
|
412
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
413
|
+
* @param {*} [options] Override http request option.
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
*/
|
|
416
|
+
getSettlement(code: string, authorization?: string, options?: any): AxiosPromise<GetSettlementResponseClass> {
|
|
417
|
+
return localVarFp.getSettlement(code, authorization, options).then((request) => request(axios, basePath));
|
|
418
|
+
},
|
|
419
|
+
/**
|
|
420
|
+
* Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
421
|
+
* @summary List settlements
|
|
422
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
423
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
424
|
+
* @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.
|
|
425
|
+
* @param {'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
426
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
427
|
+
* @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.
|
|
428
|
+
* @param {any} [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.
|
|
429
|
+
* @param {*} [options] Override http request option.
|
|
430
|
+
* @throws {RequiredError}
|
|
431
|
+
*/
|
|
432
|
+
listSettlements(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId', search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListSettlementsResponseClass> {
|
|
433
|
+
return localVarFp.listSettlements(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
434
|
+
},
|
|
435
|
+
/**
|
|
436
|
+
* Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
437
|
+
* @summary Update the settlement
|
|
438
|
+
* @param {string} code
|
|
439
|
+
* @param {UpdateSettlementRequestDto} updateSettlementRequestDto
|
|
440
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
*/
|
|
444
|
+
updateSettlement(code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateSettlementResponseClass> {
|
|
445
|
+
return localVarFp.updateSettlement(code, updateSettlementRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
446
|
+
},
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Request parameters for createSettlement operation in SettlementsApi.
|
|
452
|
+
* @export
|
|
453
|
+
* @interface SettlementsApiCreateSettlementRequest
|
|
454
|
+
*/
|
|
455
|
+
export interface SettlementsApiCreateSettlementRequest {
|
|
456
|
+
/**
|
|
457
|
+
*
|
|
458
|
+
* @type {CreateSettlementRequestDto}
|
|
459
|
+
* @memberof SettlementsApiCreateSettlement
|
|
460
|
+
*/
|
|
461
|
+
readonly createSettlementRequestDto: CreateSettlementRequestDto
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
465
|
+
* @type {string}
|
|
466
|
+
* @memberof SettlementsApiCreateSettlement
|
|
467
|
+
*/
|
|
468
|
+
readonly authorization?: string
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Request parameters for deleteSettlement operation in SettlementsApi.
|
|
473
|
+
* @export
|
|
474
|
+
* @interface SettlementsApiDeleteSettlementRequest
|
|
475
|
+
*/
|
|
476
|
+
export interface SettlementsApiDeleteSettlementRequest {
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
* @type {string}
|
|
480
|
+
* @memberof SettlementsApiDeleteSettlement
|
|
481
|
+
*/
|
|
482
|
+
readonly code: string
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
486
|
+
* @type {string}
|
|
487
|
+
* @memberof SettlementsApiDeleteSettlement
|
|
488
|
+
*/
|
|
489
|
+
readonly authorization?: string
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Request parameters for getSettlement operation in SettlementsApi.
|
|
494
|
+
* @export
|
|
495
|
+
* @interface SettlementsApiGetSettlementRequest
|
|
496
|
+
*/
|
|
497
|
+
export interface SettlementsApiGetSettlementRequest {
|
|
498
|
+
/**
|
|
499
|
+
*
|
|
500
|
+
* @type {string}
|
|
501
|
+
* @memberof SettlementsApiGetSettlement
|
|
502
|
+
*/
|
|
503
|
+
readonly code: string
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
507
|
+
* @type {string}
|
|
508
|
+
* @memberof SettlementsApiGetSettlement
|
|
509
|
+
*/
|
|
510
|
+
readonly authorization?: string
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Request parameters for listSettlements operation in SettlementsApi.
|
|
515
|
+
* @export
|
|
516
|
+
* @interface SettlementsApiListSettlementsRequest
|
|
517
|
+
*/
|
|
518
|
+
export interface SettlementsApiListSettlementsRequest {
|
|
519
|
+
/**
|
|
520
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
521
|
+
* @type {string}
|
|
522
|
+
* @memberof SettlementsApiListSettlements
|
|
523
|
+
*/
|
|
524
|
+
readonly authorization?: string
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
528
|
+
* @type {any}
|
|
529
|
+
* @memberof SettlementsApiListSettlements
|
|
530
|
+
*/
|
|
531
|
+
readonly pageSize?: any
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* 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.
|
|
535
|
+
* @type {any}
|
|
536
|
+
* @memberof SettlementsApiListSettlements
|
|
537
|
+
*/
|
|
538
|
+
readonly pageToken?: any
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
542
|
+
* @type {'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'}
|
|
543
|
+
* @memberof SettlementsApiListSettlements
|
|
544
|
+
*/
|
|
545
|
+
readonly filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
549
|
+
* @type {any}
|
|
550
|
+
* @memberof SettlementsApiListSettlements
|
|
551
|
+
*/
|
|
552
|
+
readonly search?: any
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* 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.
|
|
556
|
+
* @type {any}
|
|
557
|
+
* @memberof SettlementsApiListSettlements
|
|
558
|
+
*/
|
|
559
|
+
readonly order?: any
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* 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.
|
|
563
|
+
* @type {any}
|
|
564
|
+
* @memberof SettlementsApiListSettlements
|
|
565
|
+
*/
|
|
566
|
+
readonly expand?: any
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Request parameters for updateSettlement operation in SettlementsApi.
|
|
571
|
+
* @export
|
|
572
|
+
* @interface SettlementsApiUpdateSettlementRequest
|
|
573
|
+
*/
|
|
574
|
+
export interface SettlementsApiUpdateSettlementRequest {
|
|
575
|
+
/**
|
|
576
|
+
*
|
|
577
|
+
* @type {string}
|
|
578
|
+
* @memberof SettlementsApiUpdateSettlement
|
|
579
|
+
*/
|
|
580
|
+
readonly code: string
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* @type {UpdateSettlementRequestDto}
|
|
585
|
+
* @memberof SettlementsApiUpdateSettlement
|
|
586
|
+
*/
|
|
587
|
+
readonly updateSettlementRequestDto: UpdateSettlementRequestDto
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
591
|
+
* @type {string}
|
|
592
|
+
* @memberof SettlementsApiUpdateSettlement
|
|
593
|
+
*/
|
|
594
|
+
readonly authorization?: string
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* SettlementsApi - object-oriented interface
|
|
599
|
+
* @export
|
|
600
|
+
* @class SettlementsApi
|
|
601
|
+
* @extends {BaseAPI}
|
|
602
|
+
*/
|
|
603
|
+
export class SettlementsApi extends BaseAPI {
|
|
604
|
+
/**
|
|
605
|
+
* This will create a settlement against a claim in the database
|
|
606
|
+
* @summary Create the settlement
|
|
607
|
+
* @param {SettlementsApiCreateSettlementRequest} requestParameters Request parameters.
|
|
608
|
+
* @param {*} [options] Override http request option.
|
|
609
|
+
* @throws {RequiredError}
|
|
610
|
+
* @memberof SettlementsApi
|
|
611
|
+
*/
|
|
612
|
+
public createSettlement(requestParameters: SettlementsApiCreateSettlementRequest, options?: AxiosRequestConfig) {
|
|
613
|
+
return SettlementsApiFp(this.configuration).createSettlement(requestParameters.createSettlementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* This will delete the requested settlement from the database.
|
|
618
|
+
* @summary Delete the settlement
|
|
619
|
+
* @param {SettlementsApiDeleteSettlementRequest} requestParameters Request parameters.
|
|
620
|
+
* @param {*} [options] Override http request option.
|
|
621
|
+
* @throws {RequiredError}
|
|
622
|
+
* @memberof SettlementsApi
|
|
623
|
+
*/
|
|
624
|
+
public deleteSettlement(requestParameters: SettlementsApiDeleteSettlementRequest, options?: AxiosRequestConfig) {
|
|
625
|
+
return SettlementsApiFp(this.configuration).deleteSettlement(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
|
|
630
|
+
* @summary Retrieve the settlement
|
|
631
|
+
* @param {SettlementsApiGetSettlementRequest} requestParameters Request parameters.
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
* @memberof SettlementsApi
|
|
635
|
+
*/
|
|
636
|
+
public getSettlement(requestParameters: SettlementsApiGetSettlementRequest, options?: AxiosRequestConfig) {
|
|
637
|
+
return SettlementsApiFp(this.configuration).getSettlement(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
642
|
+
* @summary List settlements
|
|
643
|
+
* @param {SettlementsApiListSettlementsRequest} requestParameters Request parameters.
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
* @memberof SettlementsApi
|
|
647
|
+
*/
|
|
648
|
+
public listSettlements(requestParameters: SettlementsApiListSettlementsRequest = {}, options?: AxiosRequestConfig) {
|
|
649
|
+
return SettlementsApiFp(this.configuration).listSettlements(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
654
|
+
* @summary Update the settlement
|
|
655
|
+
* @param {SettlementsApiUpdateSettlementRequest} requestParameters Request parameters.
|
|
656
|
+
* @param {*} [options] Override http request option.
|
|
657
|
+
* @throws {RequiredError}
|
|
658
|
+
* @memberof SettlementsApi
|
|
659
|
+
*/
|
|
660
|
+
public updateSettlement(requestParameters: SettlementsApiUpdateSettlementRequest, options?: AxiosRequestConfig) {
|
|
661
|
+
return SettlementsApiFp(this.configuration).updateSettlement(requestParameters.code, requestParameters.updateSettlementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
662
|
+
}
|
|
663
|
+
}
|