@emilgroup/customer-sdk-node 1.9.1 → 1.11.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 +9 -0
- package/README.md +58 -2
- package/api/authentication-api.ts +601 -0
- package/api/claims-api.ts +158 -40
- package/api/customers-api.ts +72 -1770
- package/api/documents-api.ts +442 -0
- package/api/invites-api.ts +443 -0
- package/api/invoices-api.ts +245 -0
- package/api/payments-api.ts +291 -0
- package/api/policies-api.ts +16 -16
- package/api/products-api.ts +16 -16
- package/api.ts +11 -0
- package/dist/api/authentication-api.d.ts +332 -0
- package/dist/api/authentication-api.js +604 -0
- package/dist/api/claims-api.d.ts +106 -31
- package/dist/api/claims-api.js +84 -36
- package/dist/api/customers-api.d.ts +0 -954
- package/dist/api/customers-api.js +20 -1381
- package/dist/api/documents-api.d.ts +262 -0
- package/dist/api/documents-api.js +417 -0
- package/dist/api/invites-api.d.ts +248 -0
- package/dist/api/invites-api.js +456 -0
- package/dist/api/invoices-api.d.ts +150 -0
- package/dist/api/invoices-api.js +253 -0
- package/dist/api/payments-api.d.ts +171 -0
- package/dist/api/payments-api.js +312 -0
- package/dist/api/policies-api.d.ts +16 -16
- package/dist/api/policies-api.js +12 -12
- package/dist/api/products-api.d.ts +16 -16
- package/dist/api/products-api.js +12 -12
- package/dist/api.d.ts +7 -1
- package/dist/api.js +6 -0
- package/dist/models/account-class.d.ts +31 -1
- package/dist/models/account-class.js +11 -0
- package/dist/models/claim-class.d.ts +132 -0
- package/dist/models/claim-class.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +39 -9
- package/dist/models/create-account-request-dto.js +11 -1
- package/dist/models/create-customer-claim-response-class.d.ts +25 -0
- package/dist/models/create-customer-claim-response-class.js +15 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-customer-claims-response-class.d.ts +31 -0
- package/dist/models/list-customer-claims-response-class.js +15 -0
- package/dist/models/update-account-request-dto.d.ts +17 -0
- package/dist/models/update-account-request-dto.js +5 -1
- package/dist/models/update-customer-claim-response-class.d.ts +25 -0
- package/dist/models/update-customer-claim-response-class.js +15 -0
- package/models/account-class.ts +35 -1
- package/models/claim-class.ts +138 -0
- package/models/create-account-request-dto.ts +41 -9
- package/models/create-customer-claim-response-class.ts +31 -0
- package/models/index.ts +4 -0
- package/models/list-customer-claims-response-class.ts +37 -0
- package/models/update-account-request-dto.ts +18 -0
- package/models/update-customer-claim-response-class.ts +31 -0
- package/package.json +1 -1
package/api/claims-api.ts
CHANGED
|
@@ -23,10 +23,16 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateCustomerClaimRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { CreateCustomerClaimResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
27
29
|
// @ts-ignore
|
|
30
|
+
import { ListCustomerClaimsResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
28
32
|
import { UpdateCustomerClaimRequestDto } from '../models';
|
|
29
33
|
// @ts-ignore
|
|
34
|
+
import { UpdateCustomerClaimResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
30
36
|
import { UploadCustomerClaimDocumentsRequestDto } from '../models';
|
|
31
37
|
// URLSearchParams not necessarily used
|
|
32
38
|
// @ts-ignore
|
|
@@ -43,10 +49,12 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
43
49
|
* @summary Create a new claim for customer
|
|
44
50
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
45
51
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
52
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
53
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
46
54
|
* @param {*} [options] Override http request option.
|
|
47
55
|
* @throws {RequiredError}
|
|
48
56
|
*/
|
|
49
|
-
createCustomerClaim: async (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57
|
+
createCustomerClaim: async (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
58
|
// verify required parameter 'customerCode' is not null or undefined
|
|
51
59
|
assertParamExists('createCustomerClaim', 'customerCode', customerCode)
|
|
52
60
|
// verify required parameter 'createCustomerClaimRequestDto' is not null or undefined
|
|
@@ -66,6 +74,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
66
74
|
const localVarHeaderParameter = {} as any;
|
|
67
75
|
const localVarQueryParameter = {} as any;
|
|
68
76
|
|
|
77
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
78
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
82
|
+
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
83
|
+
}
|
|
84
|
+
|
|
69
85
|
|
|
70
86
|
|
|
71
87
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -84,16 +100,18 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
84
100
|
* List claims by customer.
|
|
85
101
|
* @summary List claims by customer
|
|
86
102
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
87
|
-
* @param {
|
|
88
|
-
* @param {any} [
|
|
103
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
105
|
+
* @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.
|
|
89
106
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
90
107
|
* @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.
|
|
91
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
92
|
-
* @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
|
|
108
|
+
* @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.
|
|
109
|
+
* @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.
|
|
110
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
93
111
|
* @param {*} [options] Override http request option.
|
|
94
112
|
* @throws {RequiredError}
|
|
95
113
|
*/
|
|
96
|
-
listCustomerClaims: async (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
114
|
+
listCustomerClaims: async (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
115
|
// verify required parameter 'customerCode' is not null or undefined
|
|
98
116
|
assertParamExists('listCustomerClaims', 'customerCode', customerCode)
|
|
99
117
|
const localVarPath = `/v1/customers/{customerCode}/claims`
|
|
@@ -135,6 +153,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
135
153
|
localVarQueryParameter['expand'] = expand;
|
|
136
154
|
}
|
|
137
155
|
|
|
156
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
157
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
161
|
+
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
162
|
+
}
|
|
163
|
+
|
|
138
164
|
|
|
139
165
|
|
|
140
166
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,10 +178,12 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
152
178
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
153
179
|
* @param {string} claimCode The claim code to identify a claim.
|
|
154
180
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
181
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
182
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
155
183
|
* @param {*} [options] Override http request option.
|
|
156
184
|
* @throws {RequiredError}
|
|
157
185
|
*/
|
|
158
|
-
updateCustomerClaim: async (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
186
|
+
updateCustomerClaim: async (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
159
187
|
// verify required parameter 'customerCode' is not null or undefined
|
|
160
188
|
assertParamExists('updateCustomerClaim', 'customerCode', customerCode)
|
|
161
189
|
// verify required parameter 'claimCode' is not null or undefined
|
|
@@ -178,6 +206,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
178
206
|
const localVarHeaderParameter = {} as any;
|
|
179
207
|
const localVarQueryParameter = {} as any;
|
|
180
208
|
|
|
209
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
210
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
214
|
+
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
215
|
+
}
|
|
216
|
+
|
|
181
217
|
|
|
182
218
|
|
|
183
219
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -198,10 +234,12 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
198
234
|
* @param {string} customerCode
|
|
199
235
|
* @param {string} claimCode The claim code to identify a claim.
|
|
200
236
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
237
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
238
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
201
239
|
* @param {*} [options] Override http request option.
|
|
202
240
|
* @throws {RequiredError}
|
|
203
241
|
*/
|
|
204
|
-
uploadCustomerClaimDocuments: async (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
242
|
+
uploadCustomerClaimDocuments: async (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
205
243
|
// verify required parameter 'customerCode' is not null or undefined
|
|
206
244
|
assertParamExists('uploadCustomerClaimDocuments', 'customerCode', customerCode)
|
|
207
245
|
// verify required parameter 'claimCode' is not null or undefined
|
|
@@ -224,6 +262,14 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
224
262
|
const localVarHeaderParameter = {} as any;
|
|
225
263
|
const localVarQueryParameter = {} as any;
|
|
226
264
|
|
|
265
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
266
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
270
|
+
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
271
|
+
}
|
|
272
|
+
|
|
227
273
|
|
|
228
274
|
|
|
229
275
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -253,28 +299,32 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
253
299
|
* @summary Create a new claim for customer
|
|
254
300
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
255
301
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
302
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
303
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
256
304
|
* @param {*} [options] Override http request option.
|
|
257
305
|
* @throws {RequiredError}
|
|
258
306
|
*/
|
|
259
|
-
async createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
260
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options);
|
|
307
|
+
async createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerClaimResponseClass>> {
|
|
308
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options);
|
|
261
309
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
262
310
|
},
|
|
263
311
|
/**
|
|
264
312
|
* List claims by customer.
|
|
265
313
|
* @summary List claims by customer
|
|
266
314
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
267
|
-
* @param {
|
|
268
|
-
* @param {any} [
|
|
315
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
316
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
317
|
+
* @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.
|
|
269
318
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
270
319
|
* @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.
|
|
271
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
272
|
-
* @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
|
|
320
|
+
* @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.
|
|
321
|
+
* @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.
|
|
322
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
273
323
|
* @param {*} [options] Override http request option.
|
|
274
324
|
* @throws {RequiredError}
|
|
275
325
|
*/
|
|
276
|
-
async listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
277
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options);
|
|
326
|
+
async listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>> {
|
|
327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options);
|
|
278
328
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
279
329
|
},
|
|
280
330
|
/**
|
|
@@ -283,11 +333,13 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
283
333
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
284
334
|
* @param {string} claimCode The claim code to identify a claim.
|
|
285
335
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
336
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
337
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
286
338
|
* @param {*} [options] Override http request option.
|
|
287
339
|
* @throws {RequiredError}
|
|
288
340
|
*/
|
|
289
|
-
async updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
290
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options);
|
|
341
|
+
async updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerClaimResponseClass>> {
|
|
342
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options);
|
|
291
343
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
292
344
|
},
|
|
293
345
|
/**
|
|
@@ -296,11 +348,13 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
296
348
|
* @param {string} customerCode
|
|
297
349
|
* @param {string} claimCode The claim code to identify a claim.
|
|
298
350
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
351
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
352
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
299
353
|
* @param {*} [options] Override http request option.
|
|
300
354
|
* @throws {RequiredError}
|
|
301
355
|
*/
|
|
302
|
-
async uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
|
|
303
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options);
|
|
356
|
+
async uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
|
|
357
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options);
|
|
304
358
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
305
359
|
},
|
|
306
360
|
}
|
|
@@ -318,27 +372,31 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
318
372
|
* @summary Create a new claim for customer
|
|
319
373
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
320
374
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
375
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
376
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
321
377
|
* @param {*} [options] Override http request option.
|
|
322
378
|
* @throws {RequiredError}
|
|
323
379
|
*/
|
|
324
|
-
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: any): AxiosPromise<
|
|
325
|
-
return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options).then((request) => request(axios, basePath));
|
|
380
|
+
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<CreateCustomerClaimResponseClass> {
|
|
381
|
+
return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options).then((request) => request(axios, basePath));
|
|
326
382
|
},
|
|
327
383
|
/**
|
|
328
384
|
* List claims by customer.
|
|
329
385
|
* @summary List claims by customer
|
|
330
386
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
331
|
-
* @param {
|
|
332
|
-
* @param {any} [
|
|
387
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
388
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
389
|
+
* @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.
|
|
333
390
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
334
391
|
* @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.
|
|
335
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
336
|
-
* @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
|
|
392
|
+
* @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.
|
|
393
|
+
* @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.
|
|
394
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
337
395
|
* @param {*} [options] Override http request option.
|
|
338
396
|
* @throws {RequiredError}
|
|
339
397
|
*/
|
|
340
|
-
listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<
|
|
341
|
-
return localVarFp.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
398
|
+
listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization2?: string, options?: any): AxiosPromise<ListCustomerClaimsResponseClass> {
|
|
399
|
+
return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options).then((request) => request(axios, basePath));
|
|
342
400
|
},
|
|
343
401
|
/**
|
|
344
402
|
* Update claim for customer.
|
|
@@ -346,11 +404,13 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
346
404
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
347
405
|
* @param {string} claimCode The claim code to identify a claim.
|
|
348
406
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
407
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
408
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
349
409
|
* @param {*} [options] Override http request option.
|
|
350
410
|
* @throws {RequiredError}
|
|
351
411
|
*/
|
|
352
|
-
updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: any): AxiosPromise<
|
|
353
|
-
return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options).then((request) => request(axios, basePath));
|
|
412
|
+
updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<UpdateCustomerClaimResponseClass> {
|
|
413
|
+
return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options).then((request) => request(axios, basePath));
|
|
354
414
|
},
|
|
355
415
|
/**
|
|
356
416
|
* API to upload and attach documents to a claim.
|
|
@@ -358,11 +418,13 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
358
418
|
* @param {string} customerCode
|
|
359
419
|
* @param {string} claimCode The claim code to identify a claim.
|
|
360
420
|
* @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
|
|
421
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
422
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
361
423
|
* @param {*} [options] Override http request option.
|
|
362
424
|
* @throws {RequiredError}
|
|
363
425
|
*/
|
|
364
|
-
uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
|
|
365
|
-
return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options).then((request) => request(axios, basePath));
|
|
426
|
+
uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
|
|
427
|
+
return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options).then((request) => request(axios, basePath));
|
|
366
428
|
},
|
|
367
429
|
};
|
|
368
430
|
};
|
|
@@ -386,6 +448,20 @@ export interface ClaimsApiCreateCustomerClaimRequest {
|
|
|
386
448
|
* @memberof ClaimsApiCreateCustomerClaim
|
|
387
449
|
*/
|
|
388
450
|
readonly createCustomerClaimRequestDto: CreateCustomerClaimRequestDto
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
454
|
+
* @type {string}
|
|
455
|
+
* @memberof ClaimsApiCreateCustomerClaim
|
|
456
|
+
*/
|
|
457
|
+
readonly authorization?: string
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
461
|
+
* @type {string}
|
|
462
|
+
* @memberof ClaimsApiCreateCustomerClaim
|
|
463
|
+
*/
|
|
464
|
+
readonly authorization2?: string
|
|
389
465
|
}
|
|
390
466
|
|
|
391
467
|
/**
|
|
@@ -402,14 +478,21 @@ export interface ClaimsApiListCustomerClaimsRequest {
|
|
|
402
478
|
readonly customerCode: string
|
|
403
479
|
|
|
404
480
|
/**
|
|
405
|
-
*
|
|
481
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
482
|
+
* @type {string}
|
|
483
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
484
|
+
*/
|
|
485
|
+
readonly authorization?: string
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
406
489
|
* @type {any}
|
|
407
490
|
* @memberof ClaimsApiListCustomerClaims
|
|
408
491
|
*/
|
|
409
492
|
readonly pageSize?: any
|
|
410
493
|
|
|
411
494
|
/**
|
|
412
|
-
* A cursor for use in pagination.
|
|
495
|
+
* 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.
|
|
413
496
|
* @type {any}
|
|
414
497
|
* @memberof ClaimsApiListCustomerClaims
|
|
415
498
|
*/
|
|
@@ -430,18 +513,25 @@ export interface ClaimsApiListCustomerClaimsRequest {
|
|
|
430
513
|
readonly search?: any
|
|
431
514
|
|
|
432
515
|
/**
|
|
433
|
-
* The order parameter determines how the results should be sorted according to a specified field.
|
|
516
|
+
* 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.
|
|
434
517
|
* @type {any}
|
|
435
518
|
* @memberof ClaimsApiListCustomerClaims
|
|
436
519
|
*/
|
|
437
520
|
readonly order?: any
|
|
438
521
|
|
|
439
522
|
/**
|
|
440
|
-
* 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
|
|
523
|
+
* 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.
|
|
441
524
|
* @type {any}
|
|
442
525
|
* @memberof ClaimsApiListCustomerClaims
|
|
443
526
|
*/
|
|
444
527
|
readonly expand?: any
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
531
|
+
* @type {string}
|
|
532
|
+
* @memberof ClaimsApiListCustomerClaims
|
|
533
|
+
*/
|
|
534
|
+
readonly authorization2?: string
|
|
445
535
|
}
|
|
446
536
|
|
|
447
537
|
/**
|
|
@@ -470,6 +560,20 @@ export interface ClaimsApiUpdateCustomerClaimRequest {
|
|
|
470
560
|
* @memberof ClaimsApiUpdateCustomerClaim
|
|
471
561
|
*/
|
|
472
562
|
readonly updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
566
|
+
* @type {string}
|
|
567
|
+
* @memberof ClaimsApiUpdateCustomerClaim
|
|
568
|
+
*/
|
|
569
|
+
readonly authorization?: string
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
573
|
+
* @type {string}
|
|
574
|
+
* @memberof ClaimsApiUpdateCustomerClaim
|
|
575
|
+
*/
|
|
576
|
+
readonly authorization2?: string
|
|
473
577
|
}
|
|
474
578
|
|
|
475
579
|
/**
|
|
@@ -498,6 +602,20 @@ export interface ClaimsApiUploadCustomerClaimDocumentsRequest {
|
|
|
498
602
|
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
499
603
|
*/
|
|
500
604
|
readonly uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
608
|
+
* @type {string}
|
|
609
|
+
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
610
|
+
*/
|
|
611
|
+
readonly authorization?: string
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
615
|
+
* @type {string}
|
|
616
|
+
* @memberof ClaimsApiUploadCustomerClaimDocuments
|
|
617
|
+
*/
|
|
618
|
+
readonly authorization2?: string
|
|
501
619
|
}
|
|
502
620
|
|
|
503
621
|
/**
|
|
@@ -516,7 +634,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
516
634
|
* @memberof ClaimsApi
|
|
517
635
|
*/
|
|
518
636
|
public createCustomerClaim(requestParameters: ClaimsApiCreateCustomerClaimRequest, options?: AxiosRequestConfig) {
|
|
519
|
-
return ClaimsApiFp(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
637
|
+
return ClaimsApiFp(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
|
|
520
638
|
}
|
|
521
639
|
|
|
522
640
|
/**
|
|
@@ -528,7 +646,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
528
646
|
* @memberof ClaimsApi
|
|
529
647
|
*/
|
|
530
648
|
public listCustomerClaims(requestParameters: ClaimsApiListCustomerClaimsRequest, options?: AxiosRequestConfig) {
|
|
531
|
-
return ClaimsApiFp(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
649
|
+
return ClaimsApiFp(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
|
|
532
650
|
}
|
|
533
651
|
|
|
534
652
|
/**
|
|
@@ -540,7 +658,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
540
658
|
* @memberof ClaimsApi
|
|
541
659
|
*/
|
|
542
660
|
public updateCustomerClaim(requestParameters: ClaimsApiUpdateCustomerClaimRequest, options?: AxiosRequestConfig) {
|
|
543
|
-
return ClaimsApiFp(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
661
|
+
return ClaimsApiFp(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
|
|
544
662
|
}
|
|
545
663
|
|
|
546
664
|
/**
|
|
@@ -552,6 +670,6 @@ export class ClaimsApi extends BaseAPI {
|
|
|
552
670
|
* @memberof ClaimsApi
|
|
553
671
|
*/
|
|
554
672
|
public uploadCustomerClaimDocuments(requestParameters: ClaimsApiUploadCustomerClaimDocumentsRequest, options?: AxiosRequestConfig) {
|
|
555
|
-
return ClaimsApiFp(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
673
|
+
return ClaimsApiFp(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
|
|
556
674
|
}
|
|
557
675
|
}
|