@emilgroup/customer-sdk-node 1.11.3 → 1.13.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 +3 -0
- package/README.md +2 -2
- package/api/authentication-api.ts +8 -8
- package/api/claims-api.ts +138 -12
- package/api/documents-api.ts +4 -4
- package/api/invites-api.ts +16 -14
- package/api/payments-api.ts +14 -28
- package/api/policies-api.ts +16 -16
- package/api/products-api.ts +4 -4
- package/base.ts +1 -1
- package/dist/api/authentication-api.d.ts +8 -8
- package/dist/api/authentication-api.js +8 -8
- package/dist/api/claims-api.d.ts +86 -12
- package/dist/api/claims-api.js +106 -12
- package/dist/api/documents-api.d.ts +4 -4
- package/dist/api/documents-api.js +4 -4
- package/dist/api/invites-api.d.ts +9 -8
- package/dist/api/invites-api.js +12 -12
- package/dist/api/payments-api.d.ts +11 -20
- package/dist/api/payments-api.js +14 -20
- package/dist/api/policies-api.d.ts +16 -16
- package/dist/api/policies-api.js +16 -16
- package/dist/api/products-api.d.ts +4 -4
- package/dist/api/products-api.js +4 -4
- package/dist/base.js +1 -1
- package/dist/models/currency-class.d.ts +48 -0
- package/dist/models/currency-class.js +15 -0
- package/dist/models/get-customer-claim-response-class.d.ts +25 -0
- package/dist/models/get-customer-claim-response-class.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/invite-by-tenant-request-dto.d.ts +24 -0
- package/dist/models/invite-by-tenant-request-dto.js +15 -0
- package/dist/models/invoice-class.d.ts +7 -0
- package/dist/models/policy-object-class.d.ts +18 -0
- package/dist/models/shared-customer-policy-object-request-dto.d.ts +7 -1
- package/dist/models/terminate-customer-policy-request-dto.d.ts +1 -1
- package/models/currency-class.ts +54 -0
- package/models/get-customer-claim-response-class.ts +31 -0
- package/models/index.ts +3 -0
- package/models/invite-by-tenant-request-dto.ts +30 -0
- package/models/invoice-class.ts +7 -0
- package/models/policy-object-class.ts +18 -0
- package/models/shared-customer-policy-object-request-dto.ts +7 -1
- package/models/terminate-customer-policy-request-dto.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -31,10 +31,12 @@ models/create-customer-claim-response-class.ts
|
|
|
31
31
|
models/create-customer-request-dto.ts
|
|
32
32
|
models/create-customer-response-class.ts
|
|
33
33
|
models/create-presigned-post-response-class.ts
|
|
34
|
+
models/currency-class.ts
|
|
34
35
|
models/customer-class.ts
|
|
35
36
|
models/customer-document-class.ts
|
|
36
37
|
models/customer-product-class.ts
|
|
37
38
|
models/forgot-password-request-dto.ts
|
|
39
|
+
models/get-customer-claim-response-class.ts
|
|
38
40
|
models/get-customer-document-download-url-response-class.ts
|
|
39
41
|
models/get-customer-response-class.ts
|
|
40
42
|
models/get-policy-response-class.ts
|
|
@@ -47,6 +49,7 @@ models/initiate-payment-setup-response-class.ts
|
|
|
47
49
|
models/initiate-stripe-payment-setup-response-class.ts
|
|
48
50
|
models/invite-by-customer-request-dto.ts
|
|
49
51
|
models/invite-by-customer-response-class.ts
|
|
52
|
+
models/invite-by-tenant-request-dto.ts
|
|
50
53
|
models/invite-by-tenant-response-class.ts
|
|
51
54
|
models/invite-class.ts
|
|
52
55
|
models/invoice-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/customer-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/customer-sdk-node@1.13.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/customer-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/customer-sdk-node@1.13.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CustomersApi`.
|
|
@@ -202,8 +202,8 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
202
202
|
};
|
|
203
203
|
},
|
|
204
204
|
/**
|
|
205
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
206
|
-
* @summary Respond to auth challenge
|
|
205
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
206
|
+
* @summary Respond to auth challenge
|
|
207
207
|
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
208
208
|
* @param {*} [options] Override http request option.
|
|
209
209
|
* @throws {RequiredError}
|
|
@@ -334,8 +334,8 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
|
|
|
334
334
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
335
335
|
},
|
|
336
336
|
/**
|
|
337
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
338
|
-
* @summary Respond to auth challenge
|
|
337
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
338
|
+
* @summary Respond to auth challenge
|
|
339
339
|
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
340
340
|
* @param {*} [options] Override http request option.
|
|
341
341
|
* @throws {RequiredError}
|
|
@@ -407,8 +407,8 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
|
|
|
407
407
|
return localVarFp.resetPassword(resetPasswordByCustomerRequestDto, options).then((request) => request(axios, basePath));
|
|
408
408
|
},
|
|
409
409
|
/**
|
|
410
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
411
|
-
* @summary Respond to auth challenge
|
|
410
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
411
|
+
* @summary Respond to auth challenge
|
|
412
412
|
* @param {RespondToAuthChallengeRequestDto} respondToAuthChallengeRequestDto
|
|
413
413
|
* @param {*} [options] Override http request option.
|
|
414
414
|
* @throws {RequiredError}
|
|
@@ -576,8 +576,8 @@ export class AuthenticationApi extends BaseAPI {
|
|
|
576
576
|
}
|
|
577
577
|
|
|
578
578
|
/**
|
|
579
|
-
* Respond to the auth challenge to get new access token, refresh token after successful login.
|
|
580
|
-
* @summary Respond to auth challenge
|
|
579
|
+
* Respond to the auth challenge by customer to get new access token, refresh token after successful login.
|
|
580
|
+
* @summary Respond to auth challenge
|
|
581
581
|
* @param {AuthenticationApiRespondToAuthChallengeRequest} requestParameters Request parameters.
|
|
582
582
|
* @param {*} [options] Override http request option.
|
|
583
583
|
* @throws {RequiredError}
|
package/api/claims-api.ts
CHANGED
|
@@ -27,6 +27,8 @@ import { CreateCustomerClaimResponseClass } from '../models';
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
+
import { GetCustomerClaimResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
30
32
|
import { ListCustomerClaimsResponseClass } from '../models';
|
|
31
33
|
// @ts-ignore
|
|
32
34
|
import { UpdateCustomerClaimRequestDto } from '../models';
|
|
@@ -46,7 +48,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
46
48
|
return {
|
|
47
49
|
/**
|
|
48
50
|
* Create a new claim for customer.
|
|
49
|
-
* @summary Create a new claim
|
|
51
|
+
* @summary Create a new claim
|
|
50
52
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
51
53
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
52
54
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -96,9 +98,59 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
96
98
|
options: localVarRequestOptions,
|
|
97
99
|
};
|
|
98
100
|
},
|
|
101
|
+
/**
|
|
102
|
+
* Get claim for customer.
|
|
103
|
+
* @summary Get claim
|
|
104
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
105
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
106
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
107
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
getCustomerClaim: async (customerCode: string, claimCode: string, authorization?: string, authorization2?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
112
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
113
|
+
assertParamExists('getCustomerClaim', 'customerCode', customerCode)
|
|
114
|
+
// verify required parameter 'claimCode' is not null or undefined
|
|
115
|
+
assertParamExists('getCustomerClaim', 'claimCode', claimCode)
|
|
116
|
+
const localVarPath = `/v1/customers/{customerCode}/claims/{claimCode}`
|
|
117
|
+
.replace(`{${"customerCode"}}`, encodeURIComponent(String(customerCode)))
|
|
118
|
+
.replace(`{${"claimCode"}}`, encodeURIComponent(String(claimCode)));
|
|
119
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
120
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
121
|
+
let baseOptions;
|
|
122
|
+
let baseAccessToken;
|
|
123
|
+
if (configuration) {
|
|
124
|
+
baseOptions = configuration.baseOptions;
|
|
125
|
+
baseAccessToken = configuration.accessToken;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
129
|
+
const localVarHeaderParameter = {} as any;
|
|
130
|
+
const localVarQueryParameter = {} as any;
|
|
131
|
+
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
137
|
+
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
145
|
+
|
|
146
|
+
return {
|
|
147
|
+
url: toPathString(localVarUrlObj),
|
|
148
|
+
options: localVarRequestOptions,
|
|
149
|
+
};
|
|
150
|
+
},
|
|
99
151
|
/**
|
|
100
152
|
* List claims by customer.
|
|
101
|
-
* @summary List claims
|
|
153
|
+
* @summary List claims
|
|
102
154
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
103
155
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
156
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -174,7 +226,7 @@ export const ClaimsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
174
226
|
},
|
|
175
227
|
/**
|
|
176
228
|
* Update claim for customer.
|
|
177
|
-
* @summary Update claim
|
|
229
|
+
* @summary Update claim
|
|
178
230
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
179
231
|
* @param {string} claimCode The claim code to identify a claim.
|
|
180
232
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
@@ -296,7 +348,7 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
296
348
|
return {
|
|
297
349
|
/**
|
|
298
350
|
* Create a new claim for customer.
|
|
299
|
-
* @summary Create a new claim
|
|
351
|
+
* @summary Create a new claim
|
|
300
352
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
301
353
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
302
354
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -308,9 +360,23 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
308
360
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options);
|
|
309
361
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
310
362
|
},
|
|
363
|
+
/**
|
|
364
|
+
* Get claim for customer.
|
|
365
|
+
* @summary Get claim
|
|
366
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
367
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
368
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
369
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
*/
|
|
373
|
+
async getCustomerClaim(customerCode: string, claimCode: string, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomerClaimResponseClass>> {
|
|
374
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomerClaim(customerCode, claimCode, authorization, authorization2, options);
|
|
375
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
376
|
+
},
|
|
311
377
|
/**
|
|
312
378
|
* List claims by customer.
|
|
313
|
-
* @summary List claims
|
|
379
|
+
* @summary List claims
|
|
314
380
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
315
381
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
316
382
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -329,7 +395,7 @@ export const ClaimsApiFp = function(configuration?: Configuration) {
|
|
|
329
395
|
},
|
|
330
396
|
/**
|
|
331
397
|
* Update claim for customer.
|
|
332
|
-
* @summary Update claim
|
|
398
|
+
* @summary Update claim
|
|
333
399
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
334
400
|
* @param {string} claimCode The claim code to identify a claim.
|
|
335
401
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
@@ -369,7 +435,7 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
369
435
|
return {
|
|
370
436
|
/**
|
|
371
437
|
* Create a new claim for customer.
|
|
372
|
-
* @summary Create a new claim
|
|
438
|
+
* @summary Create a new claim
|
|
373
439
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
374
440
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
375
441
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -380,9 +446,22 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
380
446
|
createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<CreateCustomerClaimResponseClass> {
|
|
381
447
|
return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options).then((request) => request(axios, basePath));
|
|
382
448
|
},
|
|
449
|
+
/**
|
|
450
|
+
* Get claim for customer.
|
|
451
|
+
* @summary Get claim
|
|
452
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
453
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
454
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
455
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
456
|
+
* @param {*} [options] Override http request option.
|
|
457
|
+
* @throws {RequiredError}
|
|
458
|
+
*/
|
|
459
|
+
getCustomerClaim(customerCode: string, claimCode: string, authorization?: string, authorization2?: string, options?: any): AxiosPromise<GetCustomerClaimResponseClass> {
|
|
460
|
+
return localVarFp.getCustomerClaim(customerCode, claimCode, authorization, authorization2, options).then((request) => request(axios, basePath));
|
|
461
|
+
},
|
|
383
462
|
/**
|
|
384
463
|
* List claims by customer.
|
|
385
|
-
* @summary List claims
|
|
464
|
+
* @summary List claims
|
|
386
465
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
387
466
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
388
467
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -400,7 +479,7 @@ export const ClaimsApiFactory = function (configuration?: Configuration, basePat
|
|
|
400
479
|
},
|
|
401
480
|
/**
|
|
402
481
|
* Update claim for customer.
|
|
403
|
-
* @summary Update claim
|
|
482
|
+
* @summary Update claim
|
|
404
483
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
405
484
|
* @param {string} claimCode The claim code to identify a claim.
|
|
406
485
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
@@ -464,6 +543,41 @@ export interface ClaimsApiCreateCustomerClaimRequest {
|
|
|
464
543
|
readonly authorization2?: string
|
|
465
544
|
}
|
|
466
545
|
|
|
546
|
+
/**
|
|
547
|
+
* Request parameters for getCustomerClaim operation in ClaimsApi.
|
|
548
|
+
* @export
|
|
549
|
+
* @interface ClaimsApiGetCustomerClaimRequest
|
|
550
|
+
*/
|
|
551
|
+
export interface ClaimsApiGetCustomerClaimRequest {
|
|
552
|
+
/**
|
|
553
|
+
* The customer code or \"me\" for the currently logged in customer.
|
|
554
|
+
* @type {string}
|
|
555
|
+
* @memberof ClaimsApiGetCustomerClaim
|
|
556
|
+
*/
|
|
557
|
+
readonly customerCode: string
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* The claim code to identify a claim.
|
|
561
|
+
* @type {string}
|
|
562
|
+
* @memberof ClaimsApiGetCustomerClaim
|
|
563
|
+
*/
|
|
564
|
+
readonly claimCode: string
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
568
|
+
* @type {string}
|
|
569
|
+
* @memberof ClaimsApiGetCustomerClaim
|
|
570
|
+
*/
|
|
571
|
+
readonly authorization?: string
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
575
|
+
* @type {string}
|
|
576
|
+
* @memberof ClaimsApiGetCustomerClaim
|
|
577
|
+
*/
|
|
578
|
+
readonly authorization2?: string
|
|
579
|
+
}
|
|
580
|
+
|
|
467
581
|
/**
|
|
468
582
|
* Request parameters for listCustomerClaims operation in ClaimsApi.
|
|
469
583
|
* @export
|
|
@@ -627,7 +741,7 @@ export interface ClaimsApiUploadCustomerClaimDocumentsRequest {
|
|
|
627
741
|
export class ClaimsApi extends BaseAPI {
|
|
628
742
|
/**
|
|
629
743
|
* Create a new claim for customer.
|
|
630
|
-
* @summary Create a new claim
|
|
744
|
+
* @summary Create a new claim
|
|
631
745
|
* @param {ClaimsApiCreateCustomerClaimRequest} requestParameters Request parameters.
|
|
632
746
|
* @param {*} [options] Override http request option.
|
|
633
747
|
* @throws {RequiredError}
|
|
@@ -637,9 +751,21 @@ export class ClaimsApi extends BaseAPI {
|
|
|
637
751
|
return ClaimsApiFp(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
|
|
638
752
|
}
|
|
639
753
|
|
|
754
|
+
/**
|
|
755
|
+
* Get claim for customer.
|
|
756
|
+
* @summary Get claim
|
|
757
|
+
* @param {ClaimsApiGetCustomerClaimRequest} requestParameters Request parameters.
|
|
758
|
+
* @param {*} [options] Override http request option.
|
|
759
|
+
* @throws {RequiredError}
|
|
760
|
+
* @memberof ClaimsApi
|
|
761
|
+
*/
|
|
762
|
+
public getCustomerClaim(requestParameters: ClaimsApiGetCustomerClaimRequest, options?: AxiosRequestConfig) {
|
|
763
|
+
return ClaimsApiFp(this.configuration).getCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.authorization, requestParameters.authorization2, options).then((request) => request(this.axios, this.basePath));
|
|
764
|
+
}
|
|
765
|
+
|
|
640
766
|
/**
|
|
641
767
|
* List claims by customer.
|
|
642
|
-
* @summary List claims
|
|
768
|
+
* @summary List claims
|
|
643
769
|
* @param {ClaimsApiListCustomerClaimsRequest} requestParameters Request parameters.
|
|
644
770
|
* @param {*} [options] Override http request option.
|
|
645
771
|
* @throws {RequiredError}
|
|
@@ -651,7 +777,7 @@ export class ClaimsApi extends BaseAPI {
|
|
|
651
777
|
|
|
652
778
|
/**
|
|
653
779
|
* Update claim for customer.
|
|
654
|
-
* @summary Update claim
|
|
780
|
+
* @summary Update claim
|
|
655
781
|
* @param {ClaimsApiUpdateCustomerClaimRequest} requestParameters Request parameters.
|
|
656
782
|
* @param {*} [options] Override http request option.
|
|
657
783
|
* @throws {RequiredError}
|
package/api/documents-api.ts
CHANGED
|
@@ -38,7 +38,7 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
38
38
|
return {
|
|
39
39
|
/**
|
|
40
40
|
* Get a presigned download url for document.
|
|
41
|
-
* @summary Get a
|
|
41
|
+
* @summary Get a download url for document
|
|
42
42
|
* @param {string} documentCode The document code.
|
|
43
43
|
* @param {string} customerCode
|
|
44
44
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -200,7 +200,7 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
200
200
|
return {
|
|
201
201
|
/**
|
|
202
202
|
* Get a presigned download url for document.
|
|
203
|
-
* @summary Get a
|
|
203
|
+
* @summary Get a download url for document
|
|
204
204
|
* @param {string} documentCode The document code.
|
|
205
205
|
* @param {string} customerCode
|
|
206
206
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -252,7 +252,7 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
252
252
|
return {
|
|
253
253
|
/**
|
|
254
254
|
* Get a presigned download url for document.
|
|
255
|
-
* @summary Get a
|
|
255
|
+
* @summary Get a download url for document
|
|
256
256
|
* @param {string} documentCode The document code.
|
|
257
257
|
* @param {string} customerCode
|
|
258
258
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -406,7 +406,7 @@ export interface DocumentsApiUploadAccountDocumentsRequest {
|
|
|
406
406
|
export class DocumentsApi extends BaseAPI {
|
|
407
407
|
/**
|
|
408
408
|
* Get a presigned download url for document.
|
|
409
|
-
* @summary Get a
|
|
409
|
+
* @summary Get a download url for document
|
|
410
410
|
* @param {DocumentsApiGetCustomerDocumentDownloadUrlRequest} requestParameters Request parameters.
|
|
411
411
|
* @param {*} [options] Override http request option.
|
|
412
412
|
* @throws {RequiredError}
|
package/api/invites-api.ts
CHANGED
|
@@ -29,6 +29,8 @@ import { InviteByCustomerRequestDto } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { InviteByCustomerResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
+
import { InviteByTenantRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
32
34
|
import { InviteByTenantResponseClass } from '../models';
|
|
33
35
|
// @ts-ignore
|
|
34
36
|
import { VerifyCustomerInviteResponseClass } from '../models';
|
|
@@ -126,14 +128,14 @@ export const InvitesApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
126
128
|
/**
|
|
127
129
|
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
128
130
|
* @summary Invite a customer by tenant
|
|
129
|
-
* @param {
|
|
131
|
+
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
130
132
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
131
133
|
* @param {*} [options] Override http request option.
|
|
132
134
|
* @throws {RequiredError}
|
|
133
135
|
*/
|
|
134
|
-
inviteByTenant: async (
|
|
135
|
-
// verify required parameter '
|
|
136
|
-
assertParamExists('inviteByTenant', '
|
|
136
|
+
inviteByTenant: async (inviteByTenantRequestDto: InviteByTenantRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
137
|
+
// verify required parameter 'inviteByTenantRequestDto' is not null or undefined
|
|
138
|
+
assertParamExists('inviteByTenant', 'inviteByTenantRequestDto', inviteByTenantRequestDto)
|
|
137
139
|
const localVarPath = `/v1/customers/invites/by-tenant`;
|
|
138
140
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
139
141
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -159,7 +161,7 @@ export const InvitesApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
159
161
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
160
162
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
161
163
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
162
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
164
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inviteByTenantRequestDto, localVarRequestOptions, configuration)
|
|
163
165
|
|
|
164
166
|
return {
|
|
165
167
|
url: toPathString(localVarUrlObj),
|
|
@@ -241,13 +243,13 @@ export const InvitesApiFp = function(configuration?: Configuration) {
|
|
|
241
243
|
/**
|
|
242
244
|
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
243
245
|
* @summary Invite a customer by tenant
|
|
244
|
-
* @param {
|
|
246
|
+
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
245
247
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
246
248
|
* @param {*} [options] Override http request option.
|
|
247
249
|
* @throws {RequiredError}
|
|
248
250
|
*/
|
|
249
|
-
async inviteByTenant(
|
|
250
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteByTenant(
|
|
251
|
+
async inviteByTenant(inviteByTenantRequestDto: InviteByTenantRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByTenantResponseClass>> {
|
|
252
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteByTenant(inviteByTenantRequestDto, authorization, options);
|
|
251
253
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
252
254
|
},
|
|
253
255
|
/**
|
|
@@ -295,13 +297,13 @@ export const InvitesApiFactory = function (configuration?: Configuration, basePa
|
|
|
295
297
|
/**
|
|
296
298
|
* Send a customer an invite via email to register. An account should have been created before inviting the customer. To invite users without accounts and policies is not yet supported.
|
|
297
299
|
* @summary Invite a customer by tenant
|
|
298
|
-
* @param {
|
|
300
|
+
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
299
301
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
300
302
|
* @param {*} [options] Override http request option.
|
|
301
303
|
* @throws {RequiredError}
|
|
302
304
|
*/
|
|
303
|
-
inviteByTenant(
|
|
304
|
-
return localVarFp.inviteByTenant(
|
|
305
|
+
inviteByTenant(inviteByTenantRequestDto: InviteByTenantRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByTenantResponseClass> {
|
|
306
|
+
return localVarFp.inviteByTenant(inviteByTenantRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
305
307
|
},
|
|
306
308
|
/**
|
|
307
309
|
* Verify the invite sent to the customer via email.
|
|
@@ -359,10 +361,10 @@ export interface InvitesApiInviteByCustomerRequest {
|
|
|
359
361
|
export interface InvitesApiInviteByTenantRequest {
|
|
360
362
|
/**
|
|
361
363
|
*
|
|
362
|
-
* @type {
|
|
364
|
+
* @type {InviteByTenantRequestDto}
|
|
363
365
|
* @memberof InvitesApiInviteByTenant
|
|
364
366
|
*/
|
|
365
|
-
readonly
|
|
367
|
+
readonly inviteByTenantRequestDto: InviteByTenantRequestDto
|
|
366
368
|
|
|
367
369
|
/**
|
|
368
370
|
* Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
@@ -426,7 +428,7 @@ export class InvitesApi extends BaseAPI {
|
|
|
426
428
|
* @memberof InvitesApi
|
|
427
429
|
*/
|
|
428
430
|
public inviteByTenant(requestParameters: InvitesApiInviteByTenantRequest, options?: AxiosRequestConfig) {
|
|
429
|
-
return InvitesApiFp(this.configuration).inviteByTenant(requestParameters.
|
|
431
|
+
return InvitesApiFp(this.configuration).inviteByTenant(requestParameters.inviteByTenantRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
430
432
|
}
|
|
431
433
|
|
|
432
434
|
/**
|
package/api/payments-api.ts
CHANGED
|
@@ -38,15 +38,14 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
38
38
|
return {
|
|
39
39
|
/**
|
|
40
40
|
* Request to complete a payment change by customer.
|
|
41
|
-
* @summary Request payment setup complete
|
|
41
|
+
* @summary Request payment setup complete
|
|
42
42
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
43
43
|
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
44
44
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
45
|
-
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
|
|
46
45
|
* @param {*} [options] Override http request option.
|
|
47
46
|
* @throws {RequiredError}
|
|
48
47
|
*/
|
|
49
|
-
completePaymentSetup: async (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string,
|
|
48
|
+
completePaymentSetup: async (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
49
|
// verify required parameter 'customerCode' is not null or undefined
|
|
51
50
|
assertParamExists('completePaymentSetup', 'customerCode', customerCode)
|
|
52
51
|
// verify required parameter 'completePaymentSetupPspRequest' is not null or undefined
|
|
@@ -70,10 +69,6 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
70
69
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
71
70
|
}
|
|
72
71
|
|
|
73
|
-
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
74
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
72
|
|
|
78
73
|
|
|
79
74
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -90,7 +85,7 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
90
85
|
},
|
|
91
86
|
/**
|
|
92
87
|
* Request to initiate a payment change by customer.
|
|
93
|
-
* @summary Request payment setup initiation
|
|
88
|
+
* @summary Request payment setup initiation
|
|
94
89
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
95
90
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
96
91
|
* @param {*} [options] Override http request option.
|
|
@@ -141,21 +136,20 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
|
|
|
141
136
|
return {
|
|
142
137
|
/**
|
|
143
138
|
* Request to complete a payment change by customer.
|
|
144
|
-
* @summary Request payment setup complete
|
|
139
|
+
* @summary Request payment setup complete
|
|
145
140
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
146
141
|
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
147
142
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
148
|
-
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
|
|
149
143
|
* @param {*} [options] Override http request option.
|
|
150
144
|
* @throws {RequiredError}
|
|
151
145
|
*/
|
|
152
|
-
async completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string,
|
|
153
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization,
|
|
146
|
+
async completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>> {
|
|
147
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options);
|
|
154
148
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
155
149
|
},
|
|
156
150
|
/**
|
|
157
151
|
* Request to initiate a payment change by customer.
|
|
158
|
-
* @summary Request payment setup initiation
|
|
152
|
+
* @summary Request payment setup initiation
|
|
159
153
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
160
154
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
161
155
|
* @param {*} [options] Override http request option.
|
|
@@ -177,20 +171,19 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
|
|
|
177
171
|
return {
|
|
178
172
|
/**
|
|
179
173
|
* Request to complete a payment change by customer.
|
|
180
|
-
* @summary Request payment setup complete
|
|
174
|
+
* @summary Request payment setup complete
|
|
181
175
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
182
176
|
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
183
177
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
184
|
-
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
|
|
185
178
|
* @param {*} [options] Override http request option.
|
|
186
179
|
* @throws {RequiredError}
|
|
187
180
|
*/
|
|
188
|
-
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string,
|
|
189
|
-
return localVarFp.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization,
|
|
181
|
+
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass> {
|
|
182
|
+
return localVarFp.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options).then((request) => request(axios, basePath));
|
|
190
183
|
},
|
|
191
184
|
/**
|
|
192
185
|
* Request to initiate a payment change by customer.
|
|
193
|
-
* @summary Request payment setup initiation
|
|
186
|
+
* @summary Request payment setup initiation
|
|
194
187
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
195
188
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
196
189
|
* @param {*} [options] Override http request option.
|
|
@@ -228,13 +221,6 @@ export interface PaymentsApiCompletePaymentSetupRequest {
|
|
|
228
221
|
* @memberof PaymentsApiCompletePaymentSetup
|
|
229
222
|
*/
|
|
230
223
|
readonly authorization?: string
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
|
|
234
|
-
* @type {string}
|
|
235
|
-
* @memberof PaymentsApiCompletePaymentSetup
|
|
236
|
-
*/
|
|
237
|
-
readonly idempotencyKey?: string
|
|
238
224
|
}
|
|
239
225
|
|
|
240
226
|
/**
|
|
@@ -267,19 +253,19 @@ export interface PaymentsApiInitiatePaymentSetupRequest {
|
|
|
267
253
|
export class PaymentsApi extends BaseAPI {
|
|
268
254
|
/**
|
|
269
255
|
* Request to complete a payment change by customer.
|
|
270
|
-
* @summary Request payment setup complete
|
|
256
|
+
* @summary Request payment setup complete
|
|
271
257
|
* @param {PaymentsApiCompletePaymentSetupRequest} requestParameters Request parameters.
|
|
272
258
|
* @param {*} [options] Override http request option.
|
|
273
259
|
* @throws {RequiredError}
|
|
274
260
|
* @memberof PaymentsApi
|
|
275
261
|
*/
|
|
276
262
|
public completePaymentSetup(requestParameters: PaymentsApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
|
|
277
|
-
return PaymentsApiFp(this.configuration).completePaymentSetup(requestParameters.customerCode, requestParameters.completePaymentSetupPspRequest, requestParameters.authorization,
|
|
263
|
+
return PaymentsApiFp(this.configuration).completePaymentSetup(requestParameters.customerCode, requestParameters.completePaymentSetupPspRequest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
278
264
|
}
|
|
279
265
|
|
|
280
266
|
/**
|
|
281
267
|
* Request to initiate a payment change by customer.
|
|
282
|
-
* @summary Request payment setup initiation
|
|
268
|
+
* @summary Request payment setup initiation
|
|
283
269
|
* @param {PaymentsApiInitiatePaymentSetupRequest} requestParameters Request parameters.
|
|
284
270
|
* @param {*} [options] Override http request option.
|
|
285
271
|
* @throws {RequiredError}
|