@emilgroup/customer-sdk-node 1.39.1-beta.2 → 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 +7 -0
- package/README.md +2 -2
- package/api/leads-api.ts +30 -30
- package/api/payments-api.ts +23 -6
- package/dist/api/leads-api.d.ts +16 -16
- 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/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/grpc-update-lead-request-dto.d.ts +57 -0
- package/dist/models/grpc-update-lead-request-dto.js +15 -0
- 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/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/dist/models/update-lead-request-dto.d.ts +0 -6
- 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/grpc-update-lead-request-dto.ts +63 -0
- 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/payment-method-class.ts +84 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/models/update-lead-request-dto.ts +0 -6
- package/package.json +1 -1
package/dist/api/leads-api.js
CHANGED
|
@@ -152,26 +152,26 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
152
152
|
/**
|
|
153
153
|
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
154
154
|
* @summary Retrieve the lead
|
|
155
|
-
* @param {string}
|
|
155
|
+
* @param {string} code Unique identifier for the object.
|
|
156
156
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
157
157
|
* @param {string} [authorization] Bearer Token
|
|
158
158
|
* @param {string} [expand]
|
|
159
159
|
* @param {*} [options] Override http request option.
|
|
160
160
|
* @throws {RequiredError}
|
|
161
161
|
*/
|
|
162
|
-
getLead: function (
|
|
162
|
+
getLead: function (code, customerCode, authorization, expand, options) {
|
|
163
163
|
if (options === void 0) { options = {}; }
|
|
164
164
|
return __awaiter(_this, void 0, void 0, function () {
|
|
165
165
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
166
166
|
return __generator(this, function (_a) {
|
|
167
167
|
switch (_a.label) {
|
|
168
168
|
case 0:
|
|
169
|
-
// verify required parameter '
|
|
170
|
-
(0, common_1.assertParamExists)('getLead', '
|
|
169
|
+
// verify required parameter 'code' is not null or undefined
|
|
170
|
+
(0, common_1.assertParamExists)('getLead', 'code', code);
|
|
171
171
|
// verify required parameter 'customerCode' is not null or undefined
|
|
172
172
|
(0, common_1.assertParamExists)('getLead', 'customerCode', customerCode);
|
|
173
|
-
localVarPath = "/v1/customers/{customerCode}/leads/{
|
|
174
|
-
.replace("{".concat("
|
|
173
|
+
localVarPath = "/v1/customers/{customerCode}/leads/{code}"
|
|
174
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
175
175
|
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
176
176
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
177
177
|
if (configuration) {
|
|
@@ -284,28 +284,28 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
284
284
|
/**
|
|
285
285
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
286
286
|
* @summary Update the lead
|
|
287
|
-
* @param {string}
|
|
287
|
+
* @param {string} code Unique identifier for the object.
|
|
288
288
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
289
289
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
290
290
|
* @param {string} [authorization] Bearer Token
|
|
291
291
|
* @param {*} [options] Override http request option.
|
|
292
292
|
* @throws {RequiredError}
|
|
293
293
|
*/
|
|
294
|
-
updateLead: function (
|
|
294
|
+
updateLead: function (code, customerCode, updateLeadRequestDto, authorization, options) {
|
|
295
295
|
if (options === void 0) { options = {}; }
|
|
296
296
|
return __awaiter(_this, void 0, void 0, function () {
|
|
297
297
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
298
298
|
return __generator(this, function (_a) {
|
|
299
299
|
switch (_a.label) {
|
|
300
300
|
case 0:
|
|
301
|
-
// verify required parameter '
|
|
302
|
-
(0, common_1.assertParamExists)('updateLead', '
|
|
301
|
+
// verify required parameter 'code' is not null or undefined
|
|
302
|
+
(0, common_1.assertParamExists)('updateLead', 'code', code);
|
|
303
303
|
// verify required parameter 'customerCode' is not null or undefined
|
|
304
304
|
(0, common_1.assertParamExists)('updateLead', 'customerCode', customerCode);
|
|
305
305
|
// verify required parameter 'updateLeadRequestDto' is not null or undefined
|
|
306
306
|
(0, common_1.assertParamExists)('updateLead', 'updateLeadRequestDto', updateLeadRequestDto);
|
|
307
|
-
localVarPath = "/v1/customers/{customerCode}/leads/{
|
|
308
|
-
.replace("{".concat("
|
|
307
|
+
localVarPath = "/v1/customers/{customerCode}/leads/{code}"
|
|
308
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
309
309
|
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
310
310
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
311
311
|
if (configuration) {
|
|
@@ -373,19 +373,19 @@ var LeadsApiFp = function (configuration) {
|
|
|
373
373
|
/**
|
|
374
374
|
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
375
375
|
* @summary Retrieve the lead
|
|
376
|
-
* @param {string}
|
|
376
|
+
* @param {string} code Unique identifier for the object.
|
|
377
377
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
378
378
|
* @param {string} [authorization] Bearer Token
|
|
379
379
|
* @param {string} [expand]
|
|
380
380
|
* @param {*} [options] Override http request option.
|
|
381
381
|
* @throws {RequiredError}
|
|
382
382
|
*/
|
|
383
|
-
getLead: function (
|
|
383
|
+
getLead: function (code, customerCode, authorization, expand, options) {
|
|
384
384
|
return __awaiter(this, void 0, void 0, function () {
|
|
385
385
|
var localVarAxiosArgs;
|
|
386
386
|
return __generator(this, function (_a) {
|
|
387
387
|
switch (_a.label) {
|
|
388
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(
|
|
388
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code, customerCode, authorization, expand, options)];
|
|
389
389
|
case 1:
|
|
390
390
|
localVarAxiosArgs = _a.sent();
|
|
391
391
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -424,19 +424,19 @@ var LeadsApiFp = function (configuration) {
|
|
|
424
424
|
/**
|
|
425
425
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
426
426
|
* @summary Update the lead
|
|
427
|
-
* @param {string}
|
|
427
|
+
* @param {string} code Unique identifier for the object.
|
|
428
428
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
429
429
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
430
430
|
* @param {string} [authorization] Bearer Token
|
|
431
431
|
* @param {*} [options] Override http request option.
|
|
432
432
|
* @throws {RequiredError}
|
|
433
433
|
*/
|
|
434
|
-
updateLead: function (
|
|
434
|
+
updateLead: function (code, customerCode, updateLeadRequestDto, authorization, options) {
|
|
435
435
|
return __awaiter(this, void 0, void 0, function () {
|
|
436
436
|
var localVarAxiosArgs;
|
|
437
437
|
return __generator(this, function (_a) {
|
|
438
438
|
switch (_a.label) {
|
|
439
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLead(
|
|
439
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateLead(code, customerCode, updateLeadRequestDto, authorization, options)];
|
|
440
440
|
case 1:
|
|
441
441
|
localVarAxiosArgs = _a.sent();
|
|
442
442
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -469,15 +469,15 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
469
469
|
/**
|
|
470
470
|
* Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
|
|
471
471
|
* @summary Retrieve the lead
|
|
472
|
-
* @param {string}
|
|
472
|
+
* @param {string} code Unique identifier for the object.
|
|
473
473
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
474
474
|
* @param {string} [authorization] Bearer Token
|
|
475
475
|
* @param {string} [expand]
|
|
476
476
|
* @param {*} [options] Override http request option.
|
|
477
477
|
* @throws {RequiredError}
|
|
478
478
|
*/
|
|
479
|
-
getLead: function (
|
|
480
|
-
return localVarFp.getLead(
|
|
479
|
+
getLead: function (code, customerCode, authorization, expand, options) {
|
|
480
|
+
return localVarFp.getLead(code, customerCode, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
481
481
|
},
|
|
482
482
|
/**
|
|
483
483
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -500,15 +500,15 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
500
500
|
/**
|
|
501
501
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
502
502
|
* @summary Update the lead
|
|
503
|
-
* @param {string}
|
|
503
|
+
* @param {string} code Unique identifier for the object.
|
|
504
504
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
505
505
|
* @param {UpdateLeadRequestDto} updateLeadRequestDto
|
|
506
506
|
* @param {string} [authorization] Bearer Token
|
|
507
507
|
* @param {*} [options] Override http request option.
|
|
508
508
|
* @throws {RequiredError}
|
|
509
509
|
*/
|
|
510
|
-
updateLead: function (
|
|
511
|
-
return localVarFp.updateLead(
|
|
510
|
+
updateLead: function (code, customerCode, updateLeadRequestDto, authorization, options) {
|
|
511
|
+
return localVarFp.updateLead(code, customerCode, updateLeadRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
512
512
|
},
|
|
513
513
|
};
|
|
514
514
|
};
|
|
@@ -546,7 +546,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
546
546
|
*/
|
|
547
547
|
LeadsApi.prototype.getLead = function (requestParameters, options) {
|
|
548
548
|
var _this = this;
|
|
549
|
-
return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.
|
|
549
|
+
return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.customerCode, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
550
550
|
};
|
|
551
551
|
/**
|
|
552
552
|
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -570,7 +570,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
570
570
|
*/
|
|
571
571
|
LeadsApi.prototype.updateLead = function (requestParameters, options) {
|
|
572
572
|
var _this = this;
|
|
573
|
-
return (0, exports.LeadsApiFp)(this.configuration).updateLead(requestParameters.
|
|
573
|
+
return (0, exports.LeadsApiFp)(this.configuration).updateLead(requestParameters.code, requestParameters.customerCode, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
574
574
|
};
|
|
575
575
|
return LeadsApi;
|
|
576
576
|
}(base_1.BaseAPI));
|
|
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CompletePaymentSetupPspRequest } from '../models';
|
|
16
16
|
import { CompletePaymentSetupResponseClass } from '../models';
|
|
17
|
+
import { InitiatePaymentSetupRequestDto } from '../models';
|
|
17
18
|
import { InitiatePaymentSetupResponseClass } from '../models';
|
|
18
19
|
/**
|
|
19
20
|
* PaymentsApi - axios parameter creator
|
|
@@ -34,11 +35,12 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
34
35
|
* Request to initiate a payment change by customer.
|
|
35
36
|
* @summary Request payment setup initiation
|
|
36
37
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
38
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
37
39
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
38
40
|
* @param {*} [options] Override http request option.
|
|
39
41
|
* @throws {RequiredError}
|
|
40
42
|
*/
|
|
41
|
-
initiatePaymentSetup: (customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
|
+
initiatePaymentSetup: (customerCode: string, initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
44
|
};
|
|
43
45
|
/**
|
|
44
46
|
* PaymentsApi - functional programming interface
|
|
@@ -59,11 +61,12 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
59
61
|
* Request to initiate a payment change by customer.
|
|
60
62
|
* @summary Request payment setup initiation
|
|
61
63
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
64
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
62
65
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
63
66
|
* @param {*} [options] Override http request option.
|
|
64
67
|
* @throws {RequiredError}
|
|
65
68
|
*/
|
|
66
|
-
initiatePaymentSetup(customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
|
|
69
|
+
initiatePaymentSetup(customerCode: string, initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePaymentSetupResponseClass>>;
|
|
67
70
|
};
|
|
68
71
|
/**
|
|
69
72
|
* PaymentsApi - factory interface
|
|
@@ -84,11 +87,12 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
84
87
|
* Request to initiate a payment change by customer.
|
|
85
88
|
* @summary Request payment setup initiation
|
|
86
89
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
90
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
87
91
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
88
92
|
* @param {*} [options] Override http request option.
|
|
89
93
|
* @throws {RequiredError}
|
|
90
94
|
*/
|
|
91
|
-
initiatePaymentSetup(customerCode: string, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
|
|
95
|
+
initiatePaymentSetup(customerCode: string, initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, authorization?: string, options?: any): AxiosPromise<InitiatePaymentSetupResponseClass>;
|
|
92
96
|
};
|
|
93
97
|
/**
|
|
94
98
|
* Request parameters for completePaymentSetup operation in PaymentsApi.
|
|
@@ -127,6 +131,12 @@ export interface PaymentsApiInitiatePaymentSetupRequest {
|
|
|
127
131
|
* @memberof PaymentsApiInitiatePaymentSetup
|
|
128
132
|
*/
|
|
129
133
|
readonly customerCode: string;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {InitiatePaymentSetupRequestDto}
|
|
137
|
+
* @memberof PaymentsApiInitiatePaymentSetup
|
|
138
|
+
*/
|
|
139
|
+
readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto;
|
|
130
140
|
/**
|
|
131
141
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
132
142
|
* @type {string}
|
package/dist/api/payments-api.js
CHANGED
|
@@ -143,17 +143,20 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
143
143
|
* Request to initiate a payment change by customer.
|
|
144
144
|
* @summary Request payment setup initiation
|
|
145
145
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
146
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
146
147
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
147
148
|
* @param {*} [options] Override http request option.
|
|
148
149
|
* @throws {RequiredError}
|
|
149
150
|
*/
|
|
150
|
-
initiatePaymentSetup: function (customerCode, authorization, options) {
|
|
151
|
+
initiatePaymentSetup: function (customerCode, initiatePaymentSetupRequestDto, authorization, options) {
|
|
151
152
|
if (options === void 0) { options = {}; }
|
|
152
153
|
return __awaiter(_this, void 0, void 0, function () {
|
|
153
154
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
154
155
|
return __generator(this, function (_a) {
|
|
155
156
|
// verify required parameter 'customerCode' is not null or undefined
|
|
156
157
|
(0, common_1.assertParamExists)('initiatePaymentSetup', 'customerCode', customerCode);
|
|
158
|
+
// verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
|
|
159
|
+
(0, common_1.assertParamExists)('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto);
|
|
157
160
|
localVarPath = "/v1/customers/{customerCode}/payment_setup/initiate"
|
|
158
161
|
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
159
162
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -167,9 +170,11 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
167
170
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
168
171
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
169
172
|
}
|
|
173
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
170
174
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
171
175
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
176
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
177
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration);
|
|
173
178
|
return [2 /*return*/, {
|
|
174
179
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
175
180
|
options: localVarRequestOptions,
|
|
@@ -213,16 +218,17 @@ var PaymentsApiFp = function (configuration) {
|
|
|
213
218
|
* Request to initiate a payment change by customer.
|
|
214
219
|
* @summary Request payment setup initiation
|
|
215
220
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
221
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
216
222
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
217
223
|
* @param {*} [options] Override http request option.
|
|
218
224
|
* @throws {RequiredError}
|
|
219
225
|
*/
|
|
220
|
-
initiatePaymentSetup: function (customerCode, authorization, options) {
|
|
226
|
+
initiatePaymentSetup: function (customerCode, initiatePaymentSetupRequestDto, authorization, options) {
|
|
221
227
|
return __awaiter(this, void 0, void 0, function () {
|
|
222
228
|
var localVarAxiosArgs;
|
|
223
229
|
return __generator(this, function (_a) {
|
|
224
230
|
switch (_a.label) {
|
|
225
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(customerCode, authorization, options)];
|
|
231
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(customerCode, initiatePaymentSetupRequestDto, authorization, options)];
|
|
226
232
|
case 1:
|
|
227
233
|
localVarAxiosArgs = _a.sent();
|
|
228
234
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -256,12 +262,13 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
256
262
|
* Request to initiate a payment change by customer.
|
|
257
263
|
* @summary Request payment setup initiation
|
|
258
264
|
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
265
|
+
* @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
|
|
259
266
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
260
267
|
* @param {*} [options] Override http request option.
|
|
261
268
|
* @throws {RequiredError}
|
|
262
269
|
*/
|
|
263
|
-
initiatePaymentSetup: function (customerCode, authorization, options) {
|
|
264
|
-
return localVarFp.initiatePaymentSetup(customerCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
270
|
+
initiatePaymentSetup: function (customerCode, initiatePaymentSetupRequestDto, authorization, options) {
|
|
271
|
+
return localVarFp.initiatePaymentSetup(customerCode, initiatePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
265
272
|
},
|
|
266
273
|
};
|
|
267
274
|
};
|
|
@@ -299,7 +306,7 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
299
306
|
*/
|
|
300
307
|
PaymentsApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
|
|
301
308
|
var _this = this;
|
|
302
|
-
return (0, exports.PaymentsApiFp)(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
309
|
+
return (0, exports.PaymentsApiFp)(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
303
310
|
};
|
|
304
311
|
return PaymentsApi;
|
|
305
312
|
}(base_1.BaseAPI));
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
|
|
13
|
+
import { LinkLeadPartnerRequestDto } from './link-lead-partner-request-dto';
|
|
14
|
+
import { PolicyObjectDto } from './policy-object-dto';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GrpcUpdateLeadRequestDto
|
|
19
|
+
*/
|
|
20
|
+
export interface GrpcUpdateLeadRequestDto {
|
|
21
|
+
/**
|
|
22
|
+
* Policy objects.
|
|
23
|
+
* @type {Array<PolicyObjectDto>}
|
|
24
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
25
|
+
*/
|
|
26
|
+
'policyObjects': Array<PolicyObjectDto>;
|
|
27
|
+
/**
|
|
28
|
+
* Unique identifier of the product that this object belongs to.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
31
|
+
*/
|
|
32
|
+
'productCode': string;
|
|
33
|
+
/**
|
|
34
|
+
* Status of the lead.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
37
|
+
*/
|
|
38
|
+
'status'?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Payment method
|
|
41
|
+
* @type {CreatePaymentMethodRequestDto}
|
|
42
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
43
|
+
*/
|
|
44
|
+
'paymentMethod': CreatePaymentMethodRequestDto;
|
|
45
|
+
/**
|
|
46
|
+
* Optional partner object contains necessary information to link a partner to the policy.
|
|
47
|
+
* @type {LinkLeadPartnerRequestDto}
|
|
48
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
49
|
+
*/
|
|
50
|
+
'partner'?: LinkLeadPartnerRequestDto;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof GrpcUpdateLeadRequestDto
|
|
55
|
+
*/
|
|
56
|
+
'code': string;
|
|
57
|
+
}
|
|
@@ -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 });
|
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';
|
|
@@ -30,9 +32,12 @@ export * from './get-customer-response-class';
|
|
|
30
32
|
export * from './get-lead-response-class';
|
|
31
33
|
export * from './get-policy-response-class';
|
|
32
34
|
export * from './get-product-response-class';
|
|
35
|
+
export * from './grpc-update-lead-request-dto';
|
|
36
|
+
export * from './initiate-adyen-payment-setup-response-class';
|
|
33
37
|
export * from './initiate-auth-request-dto';
|
|
34
38
|
export * from './initiate-auth-response-class';
|
|
35
39
|
export * from './initiate-braintree-payment-setup-response-class';
|
|
40
|
+
export * from './initiate-payment-setup-request-dto';
|
|
36
41
|
export * from './initiate-payment-setup-response-class';
|
|
37
42
|
export * from './initiate-stripe-payment-setup-response-class';
|
|
38
43
|
export * from './inline-response200';
|
|
@@ -53,6 +58,7 @@ export * from './list-leads-response-class';
|
|
|
53
58
|
export * from './list-policies-response-class';
|
|
54
59
|
export * from './list-products-response-class';
|
|
55
60
|
export * from './partner-link-class';
|
|
61
|
+
export * from './payment-method-class';
|
|
56
62
|
export * from './policy-class';
|
|
57
63
|
export * from './policy-object-class';
|
|
58
64
|
export * from './policy-object-dto';
|
|
@@ -70,6 +76,7 @@ export * from './request-policy-update-response-class';
|
|
|
70
76
|
export * from './reset-password-by-customer-request-dto';
|
|
71
77
|
export * from './respond-to-auth-challenge-class';
|
|
72
78
|
export * from './respond-to-auth-challenge-request-dto';
|
|
79
|
+
export * from './sepa-direct-dto';
|
|
73
80
|
export * from './sepa-dto';
|
|
74
81
|
export * from './shared-customer-policy-object-request-dto';
|
|
75
82
|
export * from './shared-invoice-item-class';
|