@emilgroup/customer-sdk-node 1.40.0 → 1.42.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 +7 -0
- package/README.md +2 -2
- package/api/claims-api.ts +28 -28
- package/api/customers-api.ts +28 -28
- package/api/documents-api.ts +51 -34
- package/api/invoices-api.ts +28 -28
- package/api/leads-api.ts +36 -36
- package/api/payments-api.ts +23 -6
- package/api/policies-api.ts +28 -28
- package/api/products-api.ts +28 -28
- package/base.ts +14 -23
- package/dist/api/claims-api.d.ts +20 -20
- package/dist/api/claims-api.js +18 -18
- package/dist/api/customers-api.d.ts +20 -20
- package/dist/api/customers-api.js +18 -18
- package/dist/api/documents-api.d.ts +33 -23
- package/dist/api/documents-api.js +31 -24
- package/dist/api/invoices-api.d.ts +20 -20
- package/dist/api/invoices-api.js +18 -18
- package/dist/api/leads-api.d.ts +28 -28
- package/dist/api/leads-api.js +26 -26
- package/dist/api/payments-api.d.ts +13 -3
- package/dist/api/payments-api.js +13 -6
- package/dist/api/policies-api.d.ts +20 -20
- package/dist/api/policies-api.js +18 -18
- package/dist/api/products-api.d.ts +20 -20
- package/dist/api/products-api.js +18 -18
- package/dist/base.d.ts +3 -4
- package/dist/base.js +29 -37
- package/dist/models/account-class.d.ts +1 -1
- package/dist/models/account-class.js +1 -1
- package/dist/models/card-details-dto.d.ts +42 -0
- package/dist/models/card-details-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +80 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-psp-request.d.ts +13 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +3 -2
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
- package/dist/models/create-account-request-dto.d.ts +2 -8
- package/dist/models/create-account-request-dto.js +1 -1
- package/dist/models/customer-product-class.d.ts +2 -2
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/initiate-adyen-payment-setup-response-class.d.ts +42 -0
- package/dist/models/initiate-adyen-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +7 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/lead-class.d.ts +1 -1
- package/dist/models/link-lead-partner-request-dto.d.ts +16 -4
- package/dist/models/payment-method-class.d.ts +78 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/policy-object-dto.d.ts +2 -2
- package/dist/models/policy-premium-class.d.ts +2 -2
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +1 -1
- package/dist/models/upload-account-documents-request-dto.d.ts +46 -0
- package/dist/models/upload-account-documents-request-dto.js +19 -0
- package/models/account-class.ts +1 -1
- package/models/card-details-dto.ts +48 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +86 -0
- package/models/complete-payment-setup-psp-request.ts +13 -0
- package/models/complete-payment-setup-response-class.ts +3 -2
- package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
- package/models/create-account-request-dto.ts +2 -8
- package/models/customer-product-class.ts +2 -2
- package/models/index.ts +7 -0
- package/models/initiate-adyen-payment-setup-response-class.ts +48 -0
- package/models/initiate-payment-setup-request-dto.ts +36 -0
- package/models/initiate-payment-setup-response-class.ts +7 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/lead-class.ts +1 -1
- package/models/link-lead-partner-request-dto.ts +16 -4
- package/models/payment-method-class.ts +84 -0
- package/models/policy-object-dto.ts +2 -2
- package/models/policy-premium-class.ts +2 -2
- package/models/sepa-direct-dto.ts +30 -0
- package/models/update-lead-request-dto.ts +1 -1
- package/models/upload-account-documents-request-dto.ts +55 -0
- package/package.json +1 -1
package/dist/base.js
CHANGED
|
@@ -129,6 +129,7 @@ var Environment;
|
|
|
129
129
|
(function (Environment) {
|
|
130
130
|
Environment["Production"] = "https://apiv2.emil.de";
|
|
131
131
|
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
132
|
+
Environment["Staging"] = "https://apiv2-staging.emil.de";
|
|
132
133
|
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
133
134
|
Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
|
|
134
135
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
@@ -243,14 +244,11 @@ var BaseAPI = /** @class */ (function () {
|
|
|
243
244
|
BaseAPI.prototype.selectEnvironment = function (env) {
|
|
244
245
|
this.configuration.basePath = env;
|
|
245
246
|
};
|
|
246
|
-
BaseAPI.prototype.getPermissions = function () {
|
|
247
|
-
return this.permissions.split(',');
|
|
248
|
-
};
|
|
249
247
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
250
248
|
return __awaiter(this, void 0, void 0, function () {
|
|
251
|
-
var options, response,
|
|
252
|
-
return __generator(this, function (
|
|
253
|
-
switch (
|
|
249
|
+
var options, response, accessToken, refreshToken;
|
|
250
|
+
return __generator(this, function (_a) {
|
|
251
|
+
switch (_a.label) {
|
|
254
252
|
case 0:
|
|
255
253
|
options = {
|
|
256
254
|
method: 'POST',
|
|
@@ -264,11 +262,10 @@ var BaseAPI = /** @class */ (function () {
|
|
|
264
262
|
};
|
|
265
263
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
266
264
|
case 1:
|
|
267
|
-
response =
|
|
268
|
-
|
|
265
|
+
response = _a.sent();
|
|
266
|
+
accessToken = response.data.accessToken;
|
|
269
267
|
this.configuration.username = username;
|
|
270
268
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
271
|
-
this.permissions = permissions;
|
|
272
269
|
refreshToken = this.extractRefreshToken(response);
|
|
273
270
|
this.configuration.refreshToken = refreshToken;
|
|
274
271
|
return [2 /*return*/];
|
|
@@ -343,13 +340,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
343
340
|
};
|
|
344
341
|
BaseAPI.prototype.refreshTokenTenant = function () {
|
|
345
342
|
return __awaiter(this, void 0, void 0, function () {
|
|
346
|
-
var _a, username, refreshToken, options,
|
|
343
|
+
var _a, username, refreshToken, options, accessToken;
|
|
347
344
|
return __generator(this, function (_b) {
|
|
348
345
|
switch (_b.label) {
|
|
349
346
|
case 0:
|
|
350
347
|
_a = this.configuration, username = _a.username, refreshToken = _a.refreshToken;
|
|
351
348
|
if (!username || !refreshToken) {
|
|
352
|
-
|
|
349
|
+
return [2 /*return*/, ''];
|
|
353
350
|
}
|
|
354
351
|
options = {
|
|
355
352
|
method: 'POST',
|
|
@@ -363,21 +360,21 @@ var BaseAPI = /** @class */ (function () {
|
|
|
363
360
|
};
|
|
364
361
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
365
362
|
case 1:
|
|
366
|
-
|
|
367
|
-
return [2 /*return*/,
|
|
363
|
+
accessToken = (_b.sent()).data.accessToken;
|
|
364
|
+
return [2 /*return*/, accessToken];
|
|
368
365
|
}
|
|
369
366
|
});
|
|
370
367
|
});
|
|
371
368
|
};
|
|
372
369
|
BaseAPI.prototype.refreshTokenCustomer = function () {
|
|
373
370
|
return __awaiter(this, void 0, void 0, function () {
|
|
374
|
-
var _a, username, refreshToken, tenantSlug, options,
|
|
371
|
+
var _a, username, refreshToken, tenantSlug, options, accessToken;
|
|
375
372
|
return __generator(this, function (_b) {
|
|
376
373
|
switch (_b.label) {
|
|
377
374
|
case 0:
|
|
378
375
|
_a = this.configuration, username = _a.username, refreshToken = _a.refreshToken, tenantSlug = _a.tenantSlug;
|
|
379
376
|
if (!username || !refreshToken) {
|
|
380
|
-
|
|
377
|
+
return [2 /*return*/, ''];
|
|
381
378
|
}
|
|
382
379
|
options = {
|
|
383
380
|
method: 'POST',
|
|
@@ -391,8 +388,8 @@ var BaseAPI = /** @class */ (function () {
|
|
|
391
388
|
};
|
|
392
389
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
393
390
|
case 1:
|
|
394
|
-
|
|
395
|
-
return [2 /*return*/,
|
|
391
|
+
accessToken = (_b.sent()).data.accessToken;
|
|
392
|
+
return [2 /*return*/, accessToken];
|
|
396
393
|
}
|
|
397
394
|
});
|
|
398
395
|
});
|
|
@@ -409,38 +406,35 @@ var BaseAPI = /** @class */ (function () {
|
|
|
409
406
|
axios.interceptors.response.use(function (res) {
|
|
410
407
|
return res;
|
|
411
408
|
}, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
412
|
-
var originalConfig, tokenString,
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
switch (_e.label) {
|
|
409
|
+
var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
|
|
410
|
+
return __generator(this, function (_a) {
|
|
411
|
+
switch (_a.label) {
|
|
416
412
|
case 0:
|
|
417
413
|
originalConfig = err.config;
|
|
418
414
|
if (!err.response) return [3 /*break*/, 8];
|
|
419
415
|
if (!(err.response.status === 401 && !originalConfig._retry)) return [3 /*break*/, 7];
|
|
420
416
|
originalConfig._retry = true;
|
|
421
|
-
|
|
417
|
+
_a.label = 1;
|
|
422
418
|
case 1:
|
|
423
|
-
|
|
419
|
+
_a.trys.push([1, 6, , 7]);
|
|
424
420
|
tokenString = void 0;
|
|
425
|
-
permissions = void 0;
|
|
426
421
|
if (!this.isCustomerToken) return [3 /*break*/, 3];
|
|
427
422
|
return [4 /*yield*/, this.refreshTokenCustomer()];
|
|
428
423
|
case 2:
|
|
429
|
-
|
|
424
|
+
tokenString = _a.sent();
|
|
430
425
|
return [3 /*break*/, 5];
|
|
431
426
|
case 3: return [4 /*yield*/, this.refreshTokenTenant()];
|
|
432
427
|
case 4:
|
|
433
|
-
|
|
434
|
-
|
|
428
|
+
tokenString = _a.sent();
|
|
429
|
+
_a.label = 5;
|
|
435
430
|
case 5:
|
|
436
431
|
accessToken = "Bearer ".concat(tokenString);
|
|
437
|
-
this.permissions = permissions;
|
|
438
432
|
delete originalConfig.headers['Authorization'];
|
|
439
433
|
originalConfig.headers['Authorization'] = accessToken;
|
|
440
434
|
this.configuration.accessToken = accessToken;
|
|
441
435
|
return [2 /*return*/, axios(originalConfig)];
|
|
442
436
|
case 6:
|
|
443
|
-
_error_1 =
|
|
437
|
+
_error_1 = _a.sent();
|
|
444
438
|
if (_error_1.response && _error_1.response.data) {
|
|
445
439
|
return [2 /*return*/, Promise.reject(_error_1.response.data)];
|
|
446
440
|
}
|
|
@@ -456,29 +450,27 @@ var BaseAPI = /** @class */ (function () {
|
|
|
456
450
|
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
457
451
|
&& _retry_count < 4)) return [3 /*break*/, 15];
|
|
458
452
|
_retry_count++;
|
|
459
|
-
|
|
453
|
+
_a.label = 9;
|
|
460
454
|
case 9:
|
|
461
|
-
|
|
455
|
+
_a.trys.push([9, 14, , 15]);
|
|
462
456
|
tokenString = void 0;
|
|
463
|
-
permissions = void 0;
|
|
464
457
|
if (!this.isCustomerToken) return [3 /*break*/, 11];
|
|
465
458
|
return [4 /*yield*/, this.refreshTokenCustomer()];
|
|
466
459
|
case 10:
|
|
467
|
-
|
|
460
|
+
tokenString = _a.sent();
|
|
468
461
|
return [3 /*break*/, 13];
|
|
469
462
|
case 11: return [4 /*yield*/, this.refreshTokenTenant()];
|
|
470
463
|
case 12:
|
|
471
|
-
|
|
472
|
-
|
|
464
|
+
tokenString = _a.sent();
|
|
465
|
+
_a.label = 13;
|
|
473
466
|
case 13:
|
|
474
467
|
accessToken = "Bearer ".concat(tokenString);
|
|
475
|
-
this.permissions = permissions;
|
|
476
468
|
_retry = true;
|
|
477
469
|
originalConfig.headers['Authorization'] = accessToken;
|
|
478
470
|
this.configuration.accessToken = accessToken;
|
|
479
471
|
return [2 /*return*/, axios.request(__assign({}, originalConfig))];
|
|
480
472
|
case 14:
|
|
481
|
-
_error_2 =
|
|
473
|
+
_error_2 = _a.sent();
|
|
482
474
|
if (_error_2.response && _error_2.response.data) {
|
|
483
475
|
return [2 /*return*/, Promise.reject(_error_2.response.data)];
|
|
484
476
|
}
|
|
@@ -159,7 +159,7 @@ export declare const AccountClassTitleEnum: {
|
|
|
159
159
|
readonly Empty: "";
|
|
160
160
|
readonly Dr: "Dr.";
|
|
161
161
|
readonly DrMed: "Dr. med.";
|
|
162
|
-
readonly
|
|
162
|
+
readonly Prof: "Prof.";
|
|
163
163
|
};
|
|
164
164
|
export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
|
|
165
165
|
export declare const AccountClassTypeEnum: {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CustomerService
|
|
3
|
+
* The EMIL CustomerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CardDetailsDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CardDetailsDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CardDetailsDto
|
|
22
|
+
*/
|
|
23
|
+
'encryptedCardNumber': string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CardDetailsDto
|
|
28
|
+
*/
|
|
29
|
+
'encryptedExpiryMonth': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CardDetailsDto
|
|
34
|
+
*/
|
|
35
|
+
'encryptedExpiryYear': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CardDetailsDto
|
|
40
|
+
*/
|
|
41
|
+
'encryptedSecurityCode': string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL CustomerService
|
|
6
|
+
* The EMIL CustomerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CustomerService
|
|
3
|
+
* The EMIL CustomerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { CardDetailsDto } from './card-details-dto';
|
|
13
|
+
import { SepaDirectDto } from './sepa-direct-dto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CompleteAdyenPaymentSetupRequestDto
|
|
18
|
+
*/
|
|
19
|
+
export interface CompleteAdyenPaymentSetupRequestDto {
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier for the shopper on Adyen.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
24
|
+
*/
|
|
25
|
+
'shopperReference': string;
|
|
26
|
+
/**
|
|
27
|
+
* The payment method type on Adyen.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
30
|
+
*/
|
|
31
|
+
'paymentMethodType': string;
|
|
32
|
+
/**
|
|
33
|
+
* Unique identifier of the lead that this object belongs to.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
36
|
+
*/
|
|
37
|
+
'leadCode'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The account\'s type.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
42
|
+
*/
|
|
43
|
+
'accountType': string;
|
|
44
|
+
/**
|
|
45
|
+
* The accounts holder\'s first name.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
48
|
+
*/
|
|
49
|
+
'firstName'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The account holder\'s last name.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
54
|
+
*/
|
|
55
|
+
'lastName'?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The account\'s company name.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
60
|
+
*/
|
|
61
|
+
'companyName'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The account\'s email address
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
66
|
+
*/
|
|
67
|
+
'email': string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {CardDetailsDto}
|
|
71
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
72
|
+
*/
|
|
73
|
+
'cardDetails'?: CardDetailsDto;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {SepaDirectDto}
|
|
77
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
78
|
+
*/
|
|
79
|
+
'sepaDetails'?: SepaDirectDto;
|
|
80
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL CustomerService
|
|
6
|
+
* The EMIL CustomerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { CompleteAdyenPaymentSetupRequestDto } from './complete-adyen-payment-setup-request-dto';
|
|
12
13
|
import { CompleteBraintreePaymentSetupRequestDto } from './complete-braintree-payment-setup-request-dto';
|
|
13
14
|
import { CompleteStripePaymentSetupRequestDto } from './complete-stripe-payment-setup-request-dto';
|
|
14
15
|
/**
|
|
@@ -17,6 +18,12 @@ import { CompleteStripePaymentSetupRequestDto } from './complete-stripe-payment-
|
|
|
17
18
|
* @interface CompletePaymentSetupPspRequest
|
|
18
19
|
*/
|
|
19
20
|
export interface CompletePaymentSetupPspRequest {
|
|
21
|
+
/**
|
|
22
|
+
* Product slug.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof CompletePaymentSetupPspRequest
|
|
25
|
+
*/
|
|
26
|
+
'productSlug'?: string;
|
|
20
27
|
/**
|
|
21
28
|
*
|
|
22
29
|
* @type {CompleteStripePaymentSetupRequestDto}
|
|
@@ -29,4 +36,10 @@ export interface CompletePaymentSetupPspRequest {
|
|
|
29
36
|
* @memberof CompletePaymentSetupPspRequest
|
|
30
37
|
*/
|
|
31
38
|
'braintree'?: CompleteBraintreePaymentSetupRequestDto;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {CompleteAdyenPaymentSetupRequestDto}
|
|
42
|
+
* @memberof CompletePaymentSetupPspRequest
|
|
43
|
+
*/
|
|
44
|
+
'adyen'?: CompleteAdyenPaymentSetupRequestDto;
|
|
32
45
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { PaymentMethodClass } from './payment-method-class';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -17,8 +18,8 @@
|
|
|
17
18
|
export interface CompletePaymentSetupResponseClass {
|
|
18
19
|
/**
|
|
19
20
|
* Payment method saved in the DB.
|
|
20
|
-
* @type {
|
|
21
|
+
* @type {PaymentMethodClass}
|
|
21
22
|
* @memberof CompletePaymentSetupResponseClass
|
|
22
23
|
*/
|
|
23
|
-
'paymentMethod':
|
|
24
|
+
'paymentMethod': PaymentMethodClass;
|
|
24
25
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { SepaDirectDto } from './sepa-direct-dto';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -57,4 +58,22 @@ export interface CompleteStripePaymentSetupRequestDto {
|
|
|
57
58
|
* @memberof CompleteStripePaymentSetupRequestDto
|
|
58
59
|
*/
|
|
59
60
|
'paymentMethodType'?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The account\'s type.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CompleteStripePaymentSetupRequestDto
|
|
65
|
+
*/
|
|
66
|
+
'accountType'?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The account\'s company name.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CompleteStripePaymentSetupRequestDto
|
|
71
|
+
*/
|
|
72
|
+
'companyName'?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {SepaDirectDto}
|
|
76
|
+
* @memberof CompleteStripePaymentSetupRequestDto
|
|
77
|
+
*/
|
|
78
|
+
'sepaDetails'?: SepaDirectDto;
|
|
60
79
|
}
|
|
@@ -70,7 +70,7 @@ export interface CreateAccountRequestDto {
|
|
|
70
70
|
*/
|
|
71
71
|
'type'?: CreateAccountRequestDtoTypeEnum;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Account\'s birth date.
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof CreateAccountRequestDto
|
|
76
76
|
*/
|
|
@@ -105,18 +105,12 @@ export interface CreateAccountRequestDto {
|
|
|
105
105
|
* @memberof CreateAccountRequestDto
|
|
106
106
|
*/
|
|
107
107
|
'customFields'?: object;
|
|
108
|
-
/**
|
|
109
|
-
* Customer email.
|
|
110
|
-
* @type {string}
|
|
111
|
-
* @memberof CreateAccountRequestDto
|
|
112
|
-
*/
|
|
113
|
-
'email': string;
|
|
114
108
|
}
|
|
115
109
|
export declare const CreateAccountRequestDtoTitleEnum: {
|
|
116
110
|
readonly Empty: "";
|
|
117
111
|
readonly Dr: "Dr.";
|
|
118
112
|
readonly DrMed: "Dr. med.";
|
|
119
|
-
readonly
|
|
113
|
+
readonly Prof: "Prof.";
|
|
120
114
|
};
|
|
121
115
|
export type CreateAccountRequestDtoTitleEnum = typeof CreateAccountRequestDtoTitleEnum[keyof typeof CreateAccountRequestDtoTitleEnum];
|
|
122
116
|
export declare const CreateAccountRequestDtoGenderEnum: {
|
|
@@ -40,13 +40,13 @@ export interface CustomerProductClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'contractDurationDays': number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Time at which the object was created.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CustomerProductClass
|
|
46
46
|
*/
|
|
47
47
|
'createdAt': string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Time at which the object was updated.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof CustomerProductClass
|
|
52
52
|
*/
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './account-class';
|
|
2
2
|
export * from './account-policy-class';
|
|
3
3
|
export * from './authentication-result-class';
|
|
4
|
+
export * from './card-details-dto';
|
|
4
5
|
export * from './change-customer-email-request-dto';
|
|
5
6
|
export * from './change-password-request-dto';
|
|
6
7
|
export * from './change-password-response-class';
|
|
7
8
|
export * from './claim-class';
|
|
9
|
+
export * from './complete-adyen-payment-setup-request-dto';
|
|
8
10
|
export * from './complete-braintree-payment-setup-request-dto';
|
|
9
11
|
export * from './complete-payment-setup-psp-request';
|
|
10
12
|
export * from './complete-payment-setup-response-class';
|
|
@@ -31,9 +33,11 @@ export * from './get-lead-response-class';
|
|
|
31
33
|
export * from './get-policy-response-class';
|
|
32
34
|
export * from './get-product-response-class';
|
|
33
35
|
export * from './grpc-update-lead-request-dto';
|
|
36
|
+
export * from './initiate-adyen-payment-setup-response-class';
|
|
34
37
|
export * from './initiate-auth-request-dto';
|
|
35
38
|
export * from './initiate-auth-response-class';
|
|
36
39
|
export * from './initiate-braintree-payment-setup-response-class';
|
|
40
|
+
export * from './initiate-payment-setup-request-dto';
|
|
37
41
|
export * from './initiate-payment-setup-response-class';
|
|
38
42
|
export * from './initiate-stripe-payment-setup-response-class';
|
|
39
43
|
export * from './inline-response200';
|
|
@@ -54,6 +58,7 @@ export * from './list-leads-response-class';
|
|
|
54
58
|
export * from './list-policies-response-class';
|
|
55
59
|
export * from './list-products-response-class';
|
|
56
60
|
export * from './partner-link-class';
|
|
61
|
+
export * from './payment-method-class';
|
|
57
62
|
export * from './policy-class';
|
|
58
63
|
export * from './policy-object-class';
|
|
59
64
|
export * from './policy-object-dto';
|
|
@@ -71,6 +76,7 @@ export * from './request-policy-update-response-class';
|
|
|
71
76
|
export * from './reset-password-by-customer-request-dto';
|
|
72
77
|
export * from './respond-to-auth-challenge-class';
|
|
73
78
|
export * from './respond-to-auth-challenge-request-dto';
|
|
79
|
+
export * from './sepa-direct-dto';
|
|
74
80
|
export * from './sepa-dto';
|
|
75
81
|
export * from './shared-customer-policy-object-request-dto';
|
|
76
82
|
export * from './shared-invoice-item-class';
|
|
@@ -85,6 +91,7 @@ export * from './update-customer-request-dto';
|
|
|
85
91
|
export * from './update-customer-response-class';
|
|
86
92
|
export * from './update-lead-request-dto';
|
|
87
93
|
export * from './update-lead-response-class';
|
|
94
|
+
export * from './upload-account-documents-request-dto';
|
|
88
95
|
export * from './upload-customer-claim-documents-request-dto';
|
|
89
96
|
export * from './upload-customer-policy-documents-request-dto';
|
|
90
97
|
export * from './uploaded-document-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -17,10 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./account-class"), exports);
|
|
18
18
|
__exportStar(require("./account-policy-class"), exports);
|
|
19
19
|
__exportStar(require("./authentication-result-class"), exports);
|
|
20
|
+
__exportStar(require("./card-details-dto"), exports);
|
|
20
21
|
__exportStar(require("./change-customer-email-request-dto"), exports);
|
|
21
22
|
__exportStar(require("./change-password-request-dto"), exports);
|
|
22
23
|
__exportStar(require("./change-password-response-class"), exports);
|
|
23
24
|
__exportStar(require("./claim-class"), exports);
|
|
25
|
+
__exportStar(require("./complete-adyen-payment-setup-request-dto"), exports);
|
|
24
26
|
__exportStar(require("./complete-braintree-payment-setup-request-dto"), exports);
|
|
25
27
|
__exportStar(require("./complete-payment-setup-psp-request"), exports);
|
|
26
28
|
__exportStar(require("./complete-payment-setup-response-class"), exports);
|
|
@@ -47,9 +49,11 @@ __exportStar(require("./get-lead-response-class"), exports);
|
|
|
47
49
|
__exportStar(require("./get-policy-response-class"), exports);
|
|
48
50
|
__exportStar(require("./get-product-response-class"), exports);
|
|
49
51
|
__exportStar(require("./grpc-update-lead-request-dto"), exports);
|
|
52
|
+
__exportStar(require("./initiate-adyen-payment-setup-response-class"), exports);
|
|
50
53
|
__exportStar(require("./initiate-auth-request-dto"), exports);
|
|
51
54
|
__exportStar(require("./initiate-auth-response-class"), exports);
|
|
52
55
|
__exportStar(require("./initiate-braintree-payment-setup-response-class"), exports);
|
|
56
|
+
__exportStar(require("./initiate-payment-setup-request-dto"), exports);
|
|
53
57
|
__exportStar(require("./initiate-payment-setup-response-class"), exports);
|
|
54
58
|
__exportStar(require("./initiate-stripe-payment-setup-response-class"), exports);
|
|
55
59
|
__exportStar(require("./inline-response200"), exports);
|
|
@@ -70,6 +74,7 @@ __exportStar(require("./list-leads-response-class"), exports);
|
|
|
70
74
|
__exportStar(require("./list-policies-response-class"), exports);
|
|
71
75
|
__exportStar(require("./list-products-response-class"), exports);
|
|
72
76
|
__exportStar(require("./partner-link-class"), exports);
|
|
77
|
+
__exportStar(require("./payment-method-class"), exports);
|
|
73
78
|
__exportStar(require("./policy-class"), exports);
|
|
74
79
|
__exportStar(require("./policy-object-class"), exports);
|
|
75
80
|
__exportStar(require("./policy-object-dto"), exports);
|
|
@@ -87,6 +92,7 @@ __exportStar(require("./request-policy-update-response-class"), exports);
|
|
|
87
92
|
__exportStar(require("./reset-password-by-customer-request-dto"), exports);
|
|
88
93
|
__exportStar(require("./respond-to-auth-challenge-class"), exports);
|
|
89
94
|
__exportStar(require("./respond-to-auth-challenge-request-dto"), exports);
|
|
95
|
+
__exportStar(require("./sepa-direct-dto"), exports);
|
|
90
96
|
__exportStar(require("./sepa-dto"), exports);
|
|
91
97
|
__exportStar(require("./shared-customer-policy-object-request-dto"), exports);
|
|
92
98
|
__exportStar(require("./shared-invoice-item-class"), exports);
|
|
@@ -101,6 +107,7 @@ __exportStar(require("./update-customer-request-dto"), exports);
|
|
|
101
107
|
__exportStar(require("./update-customer-response-class"), exports);
|
|
102
108
|
__exportStar(require("./update-lead-request-dto"), exports);
|
|
103
109
|
__exportStar(require("./update-lead-response-class"), exports);
|
|
110
|
+
__exportStar(require("./upload-account-documents-request-dto"), exports);
|
|
104
111
|
__exportStar(require("./upload-customer-claim-documents-request-dto"), exports);
|
|
105
112
|
__exportStar(require("./upload-customer-policy-documents-request-dto"), exports);
|
|
106
113
|
__exportStar(require("./uploaded-document-dto"), exports);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CustomerService
|
|
3
|
+
* The EMIL CustomerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InitiateAdyenPaymentSetupResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface InitiateAdyenPaymentSetupResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* The client key associated with the Adyen account.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InitiateAdyenPaymentSetupResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'clientKey': string;
|
|
24
|
+
/**
|
|
25
|
+
* A unique reference for the shopper.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InitiateAdyenPaymentSetupResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'shopperReference': string;
|
|
30
|
+
/**
|
|
31
|
+
* The environment in which the payment request is being made (e.g., \"TEST\" or \"LIVE\").
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InitiateAdyenPaymentSetupResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'environment': string;
|
|
36
|
+
/**
|
|
37
|
+
* The country code associated with the shopper\'s payment details.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof InitiateAdyenPaymentSetupResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'country': string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL CustomerService
|
|
6
|
+
* The EMIL CustomerService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|