@emilgroup/customer-sdk-node 1.40.0 → 1.41.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 +6 -0
- package/README.md +2 -2
- package/api/leads-api.ts +8 -8
- package/api/payments-api.ts +23 -6
- package/base.ts +13 -23
- package/dist/api/leads-api.d.ts +8 -8
- package/dist/api/leads-api.js +8 -8
- package/dist/api/payments-api.d.ts +13 -3
- package/dist/api/payments-api.js +13 -6
- package/dist/base.d.ts +2 -4
- package/dist/base.js +28 -37
- 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/index.d.ts +6 -0
- package/dist/models/index.js +6 -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/lead-class.d.ts +1 -1
- package/dist/models/payment-method-class.d.ts +78 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- 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/index.ts +6 -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/lead-class.ts +1 -1
- package/models/payment-method-class.ts +84 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
|
@@ -55,19 +55,17 @@ export declare class BaseAPI {
|
|
|
55
55
|
private username?;
|
|
56
56
|
private password?;
|
|
57
57
|
private isCustomerToken;
|
|
58
|
-
private permissions?;
|
|
59
58
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
60
59
|
initialize(env?: Environment): Promise<void>;
|
|
61
60
|
private loadCredentials;
|
|
62
61
|
private readConfigFile;
|
|
63
62
|
private readEnvVariables;
|
|
64
63
|
selectEnvironment(env: Environment): void;
|
|
65
|
-
getPermissions(): Array<string>;
|
|
66
64
|
authorize(username: string, password: string): Promise<void>;
|
|
67
65
|
initiateAuthorization(username: string, password: string, tenantSlug: string): Promise<AxiosResponse<InitiateAuthResponseClass>>;
|
|
68
66
|
respondToAuthorizationChallenge(respondToAuthChallengeRequestDto: RespondToAuthChallengeRequestDto): Promise<AxiosResponse<RespondToAuthChallengeClass>>;
|
|
69
|
-
refreshTokenTenant(): Promise<
|
|
70
|
-
refreshTokenCustomer(): Promise<
|
|
67
|
+
refreshTokenTenant(): Promise<string>;
|
|
68
|
+
refreshTokenCustomer(): Promise<string>;
|
|
71
69
|
private extractRefreshToken;
|
|
72
70
|
private attachInterceptor;
|
|
73
71
|
}
|
package/dist/base.js
CHANGED
|
@@ -243,14 +243,11 @@ var BaseAPI = /** @class */ (function () {
|
|
|
243
243
|
BaseAPI.prototype.selectEnvironment = function (env) {
|
|
244
244
|
this.configuration.basePath = env;
|
|
245
245
|
};
|
|
246
|
-
BaseAPI.prototype.getPermissions = function () {
|
|
247
|
-
return this.permissions.split(',');
|
|
248
|
-
};
|
|
249
246
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
250
247
|
return __awaiter(this, void 0, void 0, function () {
|
|
251
|
-
var options, response,
|
|
252
|
-
return __generator(this, function (
|
|
253
|
-
switch (
|
|
248
|
+
var options, response, accessToken, refreshToken;
|
|
249
|
+
return __generator(this, function (_a) {
|
|
250
|
+
switch (_a.label) {
|
|
254
251
|
case 0:
|
|
255
252
|
options = {
|
|
256
253
|
method: 'POST',
|
|
@@ -264,11 +261,10 @@ var BaseAPI = /** @class */ (function () {
|
|
|
264
261
|
};
|
|
265
262
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
266
263
|
case 1:
|
|
267
|
-
response =
|
|
268
|
-
|
|
264
|
+
response = _a.sent();
|
|
265
|
+
accessToken = response.data.accessToken;
|
|
269
266
|
this.configuration.username = username;
|
|
270
267
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
271
|
-
this.permissions = permissions;
|
|
272
268
|
refreshToken = this.extractRefreshToken(response);
|
|
273
269
|
this.configuration.refreshToken = refreshToken;
|
|
274
270
|
return [2 /*return*/];
|
|
@@ -343,13 +339,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
343
339
|
};
|
|
344
340
|
BaseAPI.prototype.refreshTokenTenant = function () {
|
|
345
341
|
return __awaiter(this, void 0, void 0, function () {
|
|
346
|
-
var _a, username, refreshToken, options,
|
|
342
|
+
var _a, username, refreshToken, options, accessToken;
|
|
347
343
|
return __generator(this, function (_b) {
|
|
348
344
|
switch (_b.label) {
|
|
349
345
|
case 0:
|
|
350
346
|
_a = this.configuration, username = _a.username, refreshToken = _a.refreshToken;
|
|
351
347
|
if (!username || !refreshToken) {
|
|
352
|
-
|
|
348
|
+
return [2 /*return*/, ''];
|
|
353
349
|
}
|
|
354
350
|
options = {
|
|
355
351
|
method: 'POST',
|
|
@@ -363,21 +359,21 @@ var BaseAPI = /** @class */ (function () {
|
|
|
363
359
|
};
|
|
364
360
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
365
361
|
case 1:
|
|
366
|
-
|
|
367
|
-
return [2 /*return*/,
|
|
362
|
+
accessToken = (_b.sent()).data.accessToken;
|
|
363
|
+
return [2 /*return*/, accessToken];
|
|
368
364
|
}
|
|
369
365
|
});
|
|
370
366
|
});
|
|
371
367
|
};
|
|
372
368
|
BaseAPI.prototype.refreshTokenCustomer = function () {
|
|
373
369
|
return __awaiter(this, void 0, void 0, function () {
|
|
374
|
-
var _a, username, refreshToken, tenantSlug, options,
|
|
370
|
+
var _a, username, refreshToken, tenantSlug, options, accessToken;
|
|
375
371
|
return __generator(this, function (_b) {
|
|
376
372
|
switch (_b.label) {
|
|
377
373
|
case 0:
|
|
378
374
|
_a = this.configuration, username = _a.username, refreshToken = _a.refreshToken, tenantSlug = _a.tenantSlug;
|
|
379
375
|
if (!username || !refreshToken) {
|
|
380
|
-
|
|
376
|
+
return [2 /*return*/, ''];
|
|
381
377
|
}
|
|
382
378
|
options = {
|
|
383
379
|
method: 'POST',
|
|
@@ -391,8 +387,8 @@ var BaseAPI = /** @class */ (function () {
|
|
|
391
387
|
};
|
|
392
388
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
393
389
|
case 1:
|
|
394
|
-
|
|
395
|
-
return [2 /*return*/,
|
|
390
|
+
accessToken = (_b.sent()).data.accessToken;
|
|
391
|
+
return [2 /*return*/, accessToken];
|
|
396
392
|
}
|
|
397
393
|
});
|
|
398
394
|
});
|
|
@@ -409,38 +405,35 @@ var BaseAPI = /** @class */ (function () {
|
|
|
409
405
|
axios.interceptors.response.use(function (res) {
|
|
410
406
|
return res;
|
|
411
407
|
}, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
412
|
-
var originalConfig, tokenString,
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
switch (_e.label) {
|
|
408
|
+
var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
|
|
409
|
+
return __generator(this, function (_a) {
|
|
410
|
+
switch (_a.label) {
|
|
416
411
|
case 0:
|
|
417
412
|
originalConfig = err.config;
|
|
418
413
|
if (!err.response) return [3 /*break*/, 8];
|
|
419
414
|
if (!(err.response.status === 401 && !originalConfig._retry)) return [3 /*break*/, 7];
|
|
420
415
|
originalConfig._retry = true;
|
|
421
|
-
|
|
416
|
+
_a.label = 1;
|
|
422
417
|
case 1:
|
|
423
|
-
|
|
418
|
+
_a.trys.push([1, 6, , 7]);
|
|
424
419
|
tokenString = void 0;
|
|
425
|
-
permissions = void 0;
|
|
426
420
|
if (!this.isCustomerToken) return [3 /*break*/, 3];
|
|
427
421
|
return [4 /*yield*/, this.refreshTokenCustomer()];
|
|
428
422
|
case 2:
|
|
429
|
-
|
|
423
|
+
tokenString = _a.sent();
|
|
430
424
|
return [3 /*break*/, 5];
|
|
431
425
|
case 3: return [4 /*yield*/, this.refreshTokenTenant()];
|
|
432
426
|
case 4:
|
|
433
|
-
|
|
434
|
-
|
|
427
|
+
tokenString = _a.sent();
|
|
428
|
+
_a.label = 5;
|
|
435
429
|
case 5:
|
|
436
430
|
accessToken = "Bearer ".concat(tokenString);
|
|
437
|
-
this.permissions = permissions;
|
|
438
431
|
delete originalConfig.headers['Authorization'];
|
|
439
432
|
originalConfig.headers['Authorization'] = accessToken;
|
|
440
433
|
this.configuration.accessToken = accessToken;
|
|
441
434
|
return [2 /*return*/, axios(originalConfig)];
|
|
442
435
|
case 6:
|
|
443
|
-
_error_1 =
|
|
436
|
+
_error_1 = _a.sent();
|
|
444
437
|
if (_error_1.response && _error_1.response.data) {
|
|
445
438
|
return [2 /*return*/, Promise.reject(_error_1.response.data)];
|
|
446
439
|
}
|
|
@@ -456,29 +449,27 @@ var BaseAPI = /** @class */ (function () {
|
|
|
456
449
|
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
457
450
|
&& _retry_count < 4)) return [3 /*break*/, 15];
|
|
458
451
|
_retry_count++;
|
|
459
|
-
|
|
452
|
+
_a.label = 9;
|
|
460
453
|
case 9:
|
|
461
|
-
|
|
454
|
+
_a.trys.push([9, 14, , 15]);
|
|
462
455
|
tokenString = void 0;
|
|
463
|
-
permissions = void 0;
|
|
464
456
|
if (!this.isCustomerToken) return [3 /*break*/, 11];
|
|
465
457
|
return [4 /*yield*/, this.refreshTokenCustomer()];
|
|
466
458
|
case 10:
|
|
467
|
-
|
|
459
|
+
tokenString = _a.sent();
|
|
468
460
|
return [3 /*break*/, 13];
|
|
469
461
|
case 11: return [4 /*yield*/, this.refreshTokenTenant()];
|
|
470
462
|
case 12:
|
|
471
|
-
|
|
472
|
-
|
|
463
|
+
tokenString = _a.sent();
|
|
464
|
+
_a.label = 13;
|
|
473
465
|
case 13:
|
|
474
466
|
accessToken = "Bearer ".concat(tokenString);
|
|
475
|
-
this.permissions = permissions;
|
|
476
467
|
_retry = true;
|
|
477
468
|
originalConfig.headers['Authorization'] = accessToken;
|
|
478
469
|
this.configuration.accessToken = accessToken;
|
|
479
470
|
return [2 /*return*/, axios.request(__assign({}, originalConfig))];
|
|
480
471
|
case 14:
|
|
481
|
-
_error_2 =
|
|
472
|
+
_error_2 = _a.sent();
|
|
482
473
|
if (_error_2.response && _error_2.response.data) {
|
|
483
474
|
return [2 /*return*/, Promise.reject(_error_2.response.data)];
|
|
484
475
|
}
|
|
@@ -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
|
}
|
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';
|
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);
|
|
@@ -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 });
|
|
@@ -0,0 +1,30 @@
|
|
|
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 InitiatePaymentSetupRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface InitiatePaymentSetupRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Customer code.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InitiatePaymentSetupRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'customerCode': string;
|
|
24
|
+
/**
|
|
25
|
+
* Product slug.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InitiatePaymentSetupRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'productSlug'?: string;
|
|
30
|
+
}
|
|
@@ -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 { InitiateAdyenPaymentSetupResponseClass } from './initiate-adyen-payment-setup-response-class';
|
|
12
13
|
import { InitiateBraintreePaymentSetupResponseClass } from './initiate-braintree-payment-setup-response-class';
|
|
13
14
|
import { InitiateStripePaymentSetupResponseClass } from './initiate-stripe-payment-setup-response-class';
|
|
14
15
|
/**
|
|
@@ -29,4 +30,10 @@ export interface InitiatePaymentSetupResponseClass {
|
|
|
29
30
|
* @memberof InitiatePaymentSetupResponseClass
|
|
30
31
|
*/
|
|
31
32
|
'braintree': InitiateBraintreePaymentSetupResponseClass;
|
|
33
|
+
/**
|
|
34
|
+
* Adyen response after generating client token.
|
|
35
|
+
* @type {InitiateAdyenPaymentSetupResponseClass}
|
|
36
|
+
* @memberof InitiatePaymentSetupResponseClass
|
|
37
|
+
*/
|
|
38
|
+
'adyen': InitiateAdyenPaymentSetupResponseClass;
|
|
32
39
|
}
|
|
@@ -84,7 +84,7 @@ export interface LeadClass {
|
|
|
84
84
|
*/
|
|
85
85
|
'premiumOverride'?: PremiumOverrideRequestClass;
|
|
86
86
|
/**
|
|
87
|
-
* A slug is a human-readable, unique identifier, used to identify a resource
|
|
87
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
88
88
|
* @type {string}
|
|
89
89
|
* @memberof LeadClass
|
|
90
90
|
*/
|