@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/dist/api/claims-api.js
CHANGED
|
@@ -98,7 +98,7 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
100
|
* Create a new claim for customer.
|
|
101
|
-
* @summary Create a new claim
|
|
101
|
+
* @summary Create a new claim
|
|
102
102
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
103
103
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
104
104
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -143,9 +143,55 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
143
143
|
});
|
|
144
144
|
});
|
|
145
145
|
},
|
|
146
|
+
/**
|
|
147
|
+
* Get claim for customer.
|
|
148
|
+
* @summary Get claim
|
|
149
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
150
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
151
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
152
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
getCustomerClaim: function (customerCode, claimCode, authorization, authorization2, options) {
|
|
157
|
+
if (options === void 0) { options = {}; }
|
|
158
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
162
|
+
(0, common_1.assertParamExists)('getCustomerClaim', 'customerCode', customerCode);
|
|
163
|
+
// verify required parameter 'claimCode' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('getCustomerClaim', 'claimCode', claimCode);
|
|
165
|
+
localVarPath = "/v1/customers/{customerCode}/claims/{claimCode}"
|
|
166
|
+
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)))
|
|
167
|
+
.replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
|
|
168
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
169
|
+
if (configuration) {
|
|
170
|
+
baseOptions = configuration.baseOptions;
|
|
171
|
+
baseAccessToken = configuration.accessToken;
|
|
172
|
+
}
|
|
173
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
174
|
+
localVarHeaderParameter = {};
|
|
175
|
+
localVarQueryParameter = {};
|
|
176
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
177
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
178
|
+
}
|
|
179
|
+
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
180
|
+
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
181
|
+
}
|
|
182
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
183
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
184
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
185
|
+
return [2 /*return*/, {
|
|
186
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
}];
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
},
|
|
146
192
|
/**
|
|
147
193
|
* List claims by customer.
|
|
148
|
-
* @summary List claims
|
|
194
|
+
* @summary List claims
|
|
149
195
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
150
196
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
151
197
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -211,7 +257,7 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
|
|
|
211
257
|
},
|
|
212
258
|
/**
|
|
213
259
|
* Update claim for customer.
|
|
214
|
-
* @summary Update claim
|
|
260
|
+
* @summary Update claim
|
|
215
261
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
216
262
|
* @param {string} claimCode The claim code to identify a claim.
|
|
217
263
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
@@ -323,7 +369,7 @@ var ClaimsApiFp = function (configuration) {
|
|
|
323
369
|
return {
|
|
324
370
|
/**
|
|
325
371
|
* Create a new claim for customer.
|
|
326
|
-
* @summary Create a new claim
|
|
372
|
+
* @summary Create a new claim
|
|
327
373
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
328
374
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
329
375
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -344,9 +390,32 @@ var ClaimsApiFp = function (configuration) {
|
|
|
344
390
|
});
|
|
345
391
|
});
|
|
346
392
|
},
|
|
393
|
+
/**
|
|
394
|
+
* Get claim for customer.
|
|
395
|
+
* @summary Get claim
|
|
396
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
397
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
398
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
399
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
*/
|
|
403
|
+
getCustomerClaim: function (customerCode, claimCode, authorization, authorization2, options) {
|
|
404
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
405
|
+
var localVarAxiosArgs;
|
|
406
|
+
return __generator(this, function (_a) {
|
|
407
|
+
switch (_a.label) {
|
|
408
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomerClaim(customerCode, claimCode, authorization, authorization2, options)];
|
|
409
|
+
case 1:
|
|
410
|
+
localVarAxiosArgs = _a.sent();
|
|
411
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
});
|
|
415
|
+
},
|
|
347
416
|
/**
|
|
348
417
|
* List claims by customer.
|
|
349
|
-
* @summary List claims
|
|
418
|
+
* @summary List claims
|
|
350
419
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
351
420
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
352
421
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -374,7 +443,7 @@ var ClaimsApiFp = function (configuration) {
|
|
|
374
443
|
},
|
|
375
444
|
/**
|
|
376
445
|
* Update claim for customer.
|
|
377
|
-
* @summary Update claim
|
|
446
|
+
* @summary Update claim
|
|
378
447
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
379
448
|
* @param {string} claimCode The claim code to identify a claim.
|
|
380
449
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
@@ -432,7 +501,7 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
|
|
|
432
501
|
return {
|
|
433
502
|
/**
|
|
434
503
|
* Create a new claim for customer.
|
|
435
|
-
* @summary Create a new claim
|
|
504
|
+
* @summary Create a new claim
|
|
436
505
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
437
506
|
* @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
|
|
438
507
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -443,9 +512,22 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
|
|
|
443
512
|
createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, authorization2, options) {
|
|
444
513
|
return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options).then(function (request) { return request(axios, basePath); });
|
|
445
514
|
},
|
|
515
|
+
/**
|
|
516
|
+
* Get claim for customer.
|
|
517
|
+
* @summary Get claim
|
|
518
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
519
|
+
* @param {string} claimCode The claim code to identify a claim.
|
|
520
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
521
|
+
* @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
*/
|
|
525
|
+
getCustomerClaim: function (customerCode, claimCode, authorization, authorization2, options) {
|
|
526
|
+
return localVarFp.getCustomerClaim(customerCode, claimCode, authorization, authorization2, options).then(function (request) { return request(axios, basePath); });
|
|
527
|
+
},
|
|
446
528
|
/**
|
|
447
529
|
* List claims by customer.
|
|
448
|
-
* @summary List claims
|
|
530
|
+
* @summary List claims
|
|
449
531
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
450
532
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
451
533
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -463,7 +545,7 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
|
|
|
463
545
|
},
|
|
464
546
|
/**
|
|
465
547
|
* Update claim for customer.
|
|
466
|
-
* @summary Update claim
|
|
548
|
+
* @summary Update claim
|
|
467
549
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
468
550
|
* @param {string} claimCode The claim code to identify a claim.
|
|
469
551
|
* @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
|
|
@@ -505,7 +587,7 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
505
587
|
}
|
|
506
588
|
/**
|
|
507
589
|
* Create a new claim for customer.
|
|
508
|
-
* @summary Create a new claim
|
|
590
|
+
* @summary Create a new claim
|
|
509
591
|
* @param {ClaimsApiCreateCustomerClaimRequest} requestParameters Request parameters.
|
|
510
592
|
* @param {*} [options] Override http request option.
|
|
511
593
|
* @throws {RequiredError}
|
|
@@ -515,9 +597,21 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
515
597
|
var _this = this;
|
|
516
598
|
return (0, exports.ClaimsApiFp)(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
517
599
|
};
|
|
600
|
+
/**
|
|
601
|
+
* Get claim for customer.
|
|
602
|
+
* @summary Get claim
|
|
603
|
+
* @param {ClaimsApiGetCustomerClaimRequest} requestParameters Request parameters.
|
|
604
|
+
* @param {*} [options] Override http request option.
|
|
605
|
+
* @throws {RequiredError}
|
|
606
|
+
* @memberof ClaimsApi
|
|
607
|
+
*/
|
|
608
|
+
ClaimsApi.prototype.getCustomerClaim = function (requestParameters, options) {
|
|
609
|
+
var _this = this;
|
|
610
|
+
return (0, exports.ClaimsApiFp)(this.configuration).getCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.authorization, requestParameters.authorization2, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
611
|
+
};
|
|
518
612
|
/**
|
|
519
613
|
* List claims by customer.
|
|
520
|
-
* @summary List claims
|
|
614
|
+
* @summary List claims
|
|
521
615
|
* @param {ClaimsApiListCustomerClaimsRequest} requestParameters Request parameters.
|
|
522
616
|
* @param {*} [options] Override http request option.
|
|
523
617
|
* @throws {RequiredError}
|
|
@@ -529,7 +623,7 @@ var ClaimsApi = /** @class */ (function (_super) {
|
|
|
529
623
|
};
|
|
530
624
|
/**
|
|
531
625
|
* Update claim for customer.
|
|
532
|
-
* @summary Update claim
|
|
626
|
+
* @summary Update claim
|
|
533
627
|
* @param {ClaimsApiUpdateCustomerClaimRequest} requestParameters Request parameters.
|
|
534
628
|
* @param {*} [options] Override http request option.
|
|
535
629
|
* @throws {RequiredError}
|
|
@@ -22,7 +22,7 @@ import { ListDocumentsResponseClass } from '../models';
|
|
|
22
22
|
export declare const DocumentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
23
|
/**
|
|
24
24
|
* Get a presigned download url for document.
|
|
25
|
-
* @summary Get a
|
|
25
|
+
* @summary Get a download url for document
|
|
26
26
|
* @param {string} documentCode The document code.
|
|
27
27
|
* @param {string} customerCode
|
|
28
28
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -61,7 +61,7 @@ export declare const DocumentsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
61
61
|
export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
62
62
|
/**
|
|
63
63
|
* Get a presigned download url for document.
|
|
64
|
-
* @summary Get a
|
|
64
|
+
* @summary Get a download url for document
|
|
65
65
|
* @param {string} documentCode The document code.
|
|
66
66
|
* @param {string} customerCode
|
|
67
67
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -100,7 +100,7 @@ export declare const DocumentsApiFp: (configuration?: Configuration) => {
|
|
|
100
100
|
export declare const DocumentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
101
101
|
/**
|
|
102
102
|
* Get a presigned download url for document.
|
|
103
|
-
* @summary Get a
|
|
103
|
+
* @summary Get a download url for document
|
|
104
104
|
* @param {string} documentCode The document code.
|
|
105
105
|
* @param {string} customerCode
|
|
106
106
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -234,7 +234,7 @@ export interface DocumentsApiUploadAccountDocumentsRequest {
|
|
|
234
234
|
export declare class DocumentsApi extends BaseAPI {
|
|
235
235
|
/**
|
|
236
236
|
* Get a presigned download url for document.
|
|
237
|
-
* @summary Get a
|
|
237
|
+
* @summary Get a download url for document
|
|
238
238
|
* @param {DocumentsApiGetCustomerDocumentDownloadUrlRequest} requestParameters Request parameters.
|
|
239
239
|
* @param {*} [options] Override http request option.
|
|
240
240
|
* @throws {RequiredError}
|
|
@@ -98,7 +98,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
100
|
* Get a presigned download url for document.
|
|
101
|
-
* @summary Get a
|
|
101
|
+
* @summary Get a download url for document
|
|
102
102
|
* @param {string} documentCode The document code.
|
|
103
103
|
* @param {string} customerCode
|
|
104
104
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -246,7 +246,7 @@ var DocumentsApiFp = function (configuration) {
|
|
|
246
246
|
return {
|
|
247
247
|
/**
|
|
248
248
|
* Get a presigned download url for document.
|
|
249
|
-
* @summary Get a
|
|
249
|
+
* @summary Get a download url for document
|
|
250
250
|
* @param {string} documentCode The document code.
|
|
251
251
|
* @param {string} customerCode
|
|
252
252
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -325,7 +325,7 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
325
325
|
return {
|
|
326
326
|
/**
|
|
327
327
|
* Get a presigned download url for document.
|
|
328
|
-
* @summary Get a
|
|
328
|
+
* @summary Get a download url for document
|
|
329
329
|
* @param {string} documentCode The document code.
|
|
330
330
|
* @param {string} customerCode
|
|
331
331
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -378,7 +378,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
378
378
|
}
|
|
379
379
|
/**
|
|
380
380
|
* Get a presigned download url for document.
|
|
381
|
-
* @summary Get a
|
|
381
|
+
* @summary Get a download url for document
|
|
382
382
|
* @param {DocumentsApiGetCustomerDocumentDownloadUrlRequest} requestParameters Request parameters.
|
|
383
383
|
* @param {*} [options] Override http request option.
|
|
384
384
|
* @throws {RequiredError}
|
|
@@ -16,6 +16,7 @@ import { CreateCustomerRequestDto } from '../models';
|
|
|
16
16
|
import { CreateCustomerResponseClass } from '../models';
|
|
17
17
|
import { InviteByCustomerRequestDto } from '../models';
|
|
18
18
|
import { InviteByCustomerResponseClass } from '../models';
|
|
19
|
+
import { InviteByTenantRequestDto } from '../models';
|
|
19
20
|
import { InviteByTenantResponseClass } from '../models';
|
|
20
21
|
import { VerifyCustomerInviteResponseClass } from '../models';
|
|
21
22
|
/**
|
|
@@ -43,12 +44,12 @@ export declare const InvitesApiAxiosParamCreator: (configuration?: Configuration
|
|
|
43
44
|
/**
|
|
44
45
|
* 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.
|
|
45
46
|
* @summary Invite a customer by tenant
|
|
46
|
-
* @param {
|
|
47
|
+
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
47
48
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
48
49
|
* @param {*} [options] Override http request option.
|
|
49
50
|
* @throws {RequiredError}
|
|
50
51
|
*/
|
|
51
|
-
inviteByTenant: (
|
|
52
|
+
inviteByTenant: (inviteByTenantRequestDto: InviteByTenantRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
53
|
/**
|
|
53
54
|
* Verify the invite sent to the customer via email.
|
|
54
55
|
* @summary Verify customer\'s invite token
|
|
@@ -83,12 +84,12 @@ export declare const InvitesApiFp: (configuration?: Configuration) => {
|
|
|
83
84
|
/**
|
|
84
85
|
* 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.
|
|
85
86
|
* @summary Invite a customer by tenant
|
|
86
|
-
* @param {
|
|
87
|
+
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
87
88
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
88
89
|
* @param {*} [options] Override http request option.
|
|
89
90
|
* @throws {RequiredError}
|
|
90
91
|
*/
|
|
91
|
-
inviteByTenant(
|
|
92
|
+
inviteByTenant(inviteByTenantRequestDto: InviteByTenantRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteByTenantResponseClass>>;
|
|
92
93
|
/**
|
|
93
94
|
* Verify the invite sent to the customer via email.
|
|
94
95
|
* @summary Verify customer\'s invite token
|
|
@@ -123,12 +124,12 @@ export declare const InvitesApiFactory: (configuration?: Configuration, basePath
|
|
|
123
124
|
/**
|
|
124
125
|
* 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.
|
|
125
126
|
* @summary Invite a customer by tenant
|
|
126
|
-
* @param {
|
|
127
|
+
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
127
128
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
128
129
|
* @param {*} [options] Override http request option.
|
|
129
130
|
* @throws {RequiredError}
|
|
130
131
|
*/
|
|
131
|
-
inviteByTenant(
|
|
132
|
+
inviteByTenant(inviteByTenantRequestDto: InviteByTenantRequestDto, authorization?: string, options?: any): AxiosPromise<InviteByTenantResponseClass>;
|
|
132
133
|
/**
|
|
133
134
|
* Verify the invite sent to the customer via email.
|
|
134
135
|
* @summary Verify customer\'s invite token
|
|
@@ -178,10 +179,10 @@ export interface InvitesApiInviteByCustomerRequest {
|
|
|
178
179
|
export interface InvitesApiInviteByTenantRequest {
|
|
179
180
|
/**
|
|
180
181
|
*
|
|
181
|
-
* @type {
|
|
182
|
+
* @type {InviteByTenantRequestDto}
|
|
182
183
|
* @memberof InvitesApiInviteByTenant
|
|
183
184
|
*/
|
|
184
|
-
readonly
|
|
185
|
+
readonly inviteByTenantRequestDto: InviteByTenantRequestDto;
|
|
185
186
|
/**
|
|
186
187
|
* Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
187
188
|
* @type {string}
|
package/dist/api/invites-api.js
CHANGED
|
@@ -173,18 +173,18 @@ var InvitesApiAxiosParamCreator = function (configuration) {
|
|
|
173
173
|
/**
|
|
174
174
|
* 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.
|
|
175
175
|
* @summary Invite a customer by tenant
|
|
176
|
-
* @param {
|
|
176
|
+
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
177
177
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
178
178
|
* @param {*} [options] Override http request option.
|
|
179
179
|
* @throws {RequiredError}
|
|
180
180
|
*/
|
|
181
|
-
inviteByTenant: function (
|
|
181
|
+
inviteByTenant: function (inviteByTenantRequestDto, authorization, options) {
|
|
182
182
|
if (options === void 0) { options = {}; }
|
|
183
183
|
return __awaiter(_this, void 0, void 0, function () {
|
|
184
184
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
185
185
|
return __generator(this, function (_a) {
|
|
186
|
-
// verify required parameter '
|
|
187
|
-
(0, common_1.assertParamExists)('inviteByTenant', '
|
|
186
|
+
// verify required parameter 'inviteByTenantRequestDto' is not null or undefined
|
|
187
|
+
(0, common_1.assertParamExists)('inviteByTenant', 'inviteByTenantRequestDto', inviteByTenantRequestDto);
|
|
188
188
|
localVarPath = "/v1/customers/invites/by-tenant";
|
|
189
189
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
190
190
|
if (configuration) {
|
|
@@ -201,7 +201,7 @@ var InvitesApiAxiosParamCreator = function (configuration) {
|
|
|
201
201
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
202
202
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
203
203
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
204
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
204
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteByTenantRequestDto, localVarRequestOptions, configuration);
|
|
205
205
|
return [2 /*return*/, {
|
|
206
206
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
207
207
|
options: localVarRequestOptions,
|
|
@@ -299,17 +299,17 @@ var InvitesApiFp = function (configuration) {
|
|
|
299
299
|
/**
|
|
300
300
|
* 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.
|
|
301
301
|
* @summary Invite a customer by tenant
|
|
302
|
-
* @param {
|
|
302
|
+
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
303
303
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
304
304
|
* @param {*} [options] Override http request option.
|
|
305
305
|
* @throws {RequiredError}
|
|
306
306
|
*/
|
|
307
|
-
inviteByTenant: function (
|
|
307
|
+
inviteByTenant: function (inviteByTenantRequestDto, authorization, options) {
|
|
308
308
|
return __awaiter(this, void 0, void 0, function () {
|
|
309
309
|
var localVarAxiosArgs;
|
|
310
310
|
return __generator(this, function (_a) {
|
|
311
311
|
switch (_a.label) {
|
|
312
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteByTenant(
|
|
312
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteByTenant(inviteByTenantRequestDto, authorization, options)];
|
|
313
313
|
case 1:
|
|
314
314
|
localVarAxiosArgs = _a.sent();
|
|
315
315
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -371,13 +371,13 @@ var InvitesApiFactory = function (configuration, basePath, axios) {
|
|
|
371
371
|
/**
|
|
372
372
|
* 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.
|
|
373
373
|
* @summary Invite a customer by tenant
|
|
374
|
-
* @param {
|
|
374
|
+
* @param {InviteByTenantRequestDto} inviteByTenantRequestDto
|
|
375
375
|
* @param {string} [authorization] Bearer Token: provided by the Emil Insurance Suite\'s Auth login endpoint under the name accessToken.
|
|
376
376
|
* @param {*} [options] Override http request option.
|
|
377
377
|
* @throws {RequiredError}
|
|
378
378
|
*/
|
|
379
|
-
inviteByTenant: function (
|
|
380
|
-
return localVarFp.inviteByTenant(
|
|
379
|
+
inviteByTenant: function (inviteByTenantRequestDto, authorization, options) {
|
|
380
|
+
return localVarFp.inviteByTenant(inviteByTenantRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
381
381
|
},
|
|
382
382
|
/**
|
|
383
383
|
* Verify the invite sent to the customer via email.
|
|
@@ -437,7 +437,7 @@ var InvitesApi = /** @class */ (function (_super) {
|
|
|
437
437
|
*/
|
|
438
438
|
InvitesApi.prototype.inviteByTenant = function (requestParameters, options) {
|
|
439
439
|
var _this = this;
|
|
440
|
-
return (0, exports.InvitesApiFp)(this.configuration).inviteByTenant(requestParameters.
|
|
440
|
+
return (0, exports.InvitesApiFp)(this.configuration).inviteByTenant(requestParameters.inviteByTenantRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
441
441
|
};
|
|
442
442
|
/**
|
|
443
443
|
* Verify the invite sent to the customer via email.
|
|
@@ -22,18 +22,17 @@ import { InitiatePaymentSetupResponseClass } from '../models';
|
|
|
22
22
|
export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
23
|
/**
|
|
24
24
|
* Request to complete a payment change by customer.
|
|
25
|
-
* @summary Request payment setup complete
|
|
25
|
+
* @summary Request payment setup complete
|
|
26
26
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
27
27
|
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
28
28
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
29
|
-
* @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.
|
|
30
29
|
* @param {*} [options] Override http request option.
|
|
31
30
|
* @throws {RequiredError}
|
|
32
31
|
*/
|
|
33
|
-
completePaymentSetup: (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string,
|
|
32
|
+
completePaymentSetup: (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
34
33
|
/**
|
|
35
34
|
* Request to initiate a payment change by customer.
|
|
36
|
-
* @summary Request payment setup initiation
|
|
35
|
+
* @summary Request payment setup initiation
|
|
37
36
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
38
37
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
39
38
|
* @param {*} [options] Override http request option.
|
|
@@ -48,18 +47,17 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
48
47
|
export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
49
48
|
/**
|
|
50
49
|
* Request to complete a payment change by customer.
|
|
51
|
-
* @summary Request payment setup complete
|
|
50
|
+
* @summary Request payment setup complete
|
|
52
51
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
53
52
|
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
54
53
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
55
|
-
* @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.
|
|
56
54
|
* @param {*} [options] Override http request option.
|
|
57
55
|
* @throws {RequiredError}
|
|
58
56
|
*/
|
|
59
|
-
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string,
|
|
57
|
+
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
|
|
60
58
|
/**
|
|
61
59
|
* Request to initiate a payment change by customer.
|
|
62
|
-
* @summary Request payment setup initiation
|
|
60
|
+
* @summary Request payment setup initiation
|
|
63
61
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
64
62
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
65
63
|
* @param {*} [options] Override http request option.
|
|
@@ -74,18 +72,17 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
74
72
|
export declare const PaymentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
75
73
|
/**
|
|
76
74
|
* Request to complete a payment change by customer.
|
|
77
|
-
* @summary Request payment setup complete
|
|
75
|
+
* @summary Request payment setup complete
|
|
78
76
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
79
77
|
* @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
|
|
80
78
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
81
|
-
* @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.
|
|
82
79
|
* @param {*} [options] Override http request option.
|
|
83
80
|
* @throws {RequiredError}
|
|
84
81
|
*/
|
|
85
|
-
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string,
|
|
82
|
+
completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
|
|
86
83
|
/**
|
|
87
84
|
* Request to initiate a payment change by customer.
|
|
88
|
-
* @summary Request payment setup initiation
|
|
85
|
+
* @summary Request payment setup initiation
|
|
89
86
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
90
87
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
91
88
|
* @param {*} [options] Override http request option.
|
|
@@ -117,12 +114,6 @@ export interface PaymentsApiCompletePaymentSetupRequest {
|
|
|
117
114
|
* @memberof PaymentsApiCompletePaymentSetup
|
|
118
115
|
*/
|
|
119
116
|
readonly authorization?: string;
|
|
120
|
-
/**
|
|
121
|
-
* 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.
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof PaymentsApiCompletePaymentSetup
|
|
124
|
-
*/
|
|
125
|
-
readonly idempotencyKey?: string;
|
|
126
117
|
}
|
|
127
118
|
/**
|
|
128
119
|
* Request parameters for initiatePaymentSetup operation in PaymentsApi.
|
|
@@ -152,7 +143,7 @@ export interface PaymentsApiInitiatePaymentSetupRequest {
|
|
|
152
143
|
export declare class PaymentsApi extends BaseAPI {
|
|
153
144
|
/**
|
|
154
145
|
* Request to complete a payment change by customer.
|
|
155
|
-
* @summary Request payment setup complete
|
|
146
|
+
* @summary Request payment setup complete
|
|
156
147
|
* @param {PaymentsApiCompletePaymentSetupRequest} requestParameters Request parameters.
|
|
157
148
|
* @param {*} [options] Override http request option.
|
|
158
149
|
* @throws {RequiredError}
|
|
@@ -161,7 +152,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
161
152
|
completePaymentSetup(requestParameters: PaymentsApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any>>;
|
|
162
153
|
/**
|
|
163
154
|
* Request to initiate a payment change by customer.
|
|
164
|
-
* @summary Request payment setup initiation
|
|
155
|
+
* @summary Request payment setup initiation
|
|
165
156
|
* @param {PaymentsApiInitiatePaymentSetupRequest} requestParameters Request parameters.
|
|
166
157
|
* @param {*} [options] Override http request option.
|
|
167
158
|
* @throws {RequiredError}
|