@emilgroup/customer-sdk-node 1.63.1-beta.0 → 1.63.1-beta.10
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 +5 -0
- package/README.md +2 -2
- package/api/customer-controller-rest-api.ts +270 -0
- package/api/payments-api.ts +270 -0
- package/dist/api/customer-controller-rest-api.d.ts +158 -0
- package/dist/api/customer-controller-rest-api.js +195 -0
- package/dist/api/payments-api.d.ts +158 -0
- package/dist/api/payments-api.js +195 -0
- package/dist/models/attach-customer-payment-method-request-dto.d.ts +24 -0
- package/dist/models/attach-customer-payment-method-request-dto.js +15 -0
- package/dist/models/attach-customer-payment-method-response-class.d.ts +25 -0
- package/dist/models/attach-customer-payment-method-response-class.js +15 -0
- package/dist/models/create-account-request-dto.d.ts +8 -4
- package/dist/models/create-customer-claim-request-dto.d.ts +4 -2
- package/dist/models/create-lead-request-dto.d.ts +4 -2
- package/dist/models/customer-payment-method-class.d.ts +54 -0
- package/dist/models/customer-payment-method-class.js +15 -0
- package/dist/models/customer-policy-payment-method-class.d.ts +49 -0
- package/dist/models/customer-policy-payment-method-class.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/initiate-auth-request-dto.d.ts +4 -2
- package/dist/models/list-customer-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-customer-payment-methods-response-class.js +15 -0
- package/dist/models/policy-object-dto.d.ts +4 -2
- package/dist/models/respond-to-auth-challenge-request-dto.d.ts +4 -2
- package/dist/models/shared-customer-policy-object-request-dto.d.ts +4 -2
- package/dist/models/update-account-request-dto.d.ts +8 -4
- package/dist/models/update-customer-claim-request-dto.d.ts +4 -2
- package/models/attach-customer-payment-method-request-dto.ts +30 -0
- package/models/attach-customer-payment-method-response-class.ts +31 -0
- package/models/create-account-request-dto.ts +4 -4
- package/models/create-customer-claim-request-dto.ts +2 -2
- package/models/create-lead-request-dto.ts +2 -2
- package/models/customer-payment-method-class.ts +60 -0
- package/models/customer-policy-payment-method-class.ts +55 -0
- package/models/index.ts +5 -0
- package/models/initiate-auth-request-dto.ts +2 -2
- package/models/list-customer-payment-methods-response-class.ts +37 -0
- package/models/policy-object-dto.ts +2 -2
- package/models/respond-to-auth-challenge-request-dto.ts +2 -2
- package/models/shared-customer-policy-object-request-dto.ts +2 -2
- package/models/update-account-request-dto.ts +4 -4
- package/models/update-customer-claim-request-dto.ts +2 -2
- package/package.json +1 -1
package/dist/api/payments-api.js
CHANGED
|
@@ -96,6 +96,53 @@ var FormData = require('form-data');
|
|
|
96
96
|
var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
|
+
/**
|
|
100
|
+
* Use one of the customer\'s payment methods for future payments of the given policy.
|
|
101
|
+
* @summary Attach a payment method to a policy
|
|
102
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
103
|
+
* @param {string} paymentMethodCode Code of one of the customer\'s payment methods.
|
|
104
|
+
* @param {AttachCustomerPaymentMethodRequestDto} attachCustomerPaymentMethodRequestDto
|
|
105
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
attachPaymentMethod: function (customerCode, paymentMethodCode, attachCustomerPaymentMethodRequestDto, authorization, options) {
|
|
110
|
+
if (options === void 0) { options = {}; }
|
|
111
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('attachPaymentMethod', 'customerCode', customerCode);
|
|
116
|
+
// verify required parameter 'paymentMethodCode' is not null or undefined
|
|
117
|
+
(0, common_1.assertParamExists)('attachPaymentMethod', 'paymentMethodCode', paymentMethodCode);
|
|
118
|
+
// verify required parameter 'attachCustomerPaymentMethodRequestDto' is not null or undefined
|
|
119
|
+
(0, common_1.assertParamExists)('attachPaymentMethod', 'attachCustomerPaymentMethodRequestDto', attachCustomerPaymentMethodRequestDto);
|
|
120
|
+
localVarPath = "/v1/customers/{customerCode}/payment-methods/{paymentMethodCode}/attach"
|
|
121
|
+
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)))
|
|
122
|
+
.replace("{".concat("paymentMethodCode", "}"), encodeURIComponent(String(paymentMethodCode)));
|
|
123
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
124
|
+
if (configuration) {
|
|
125
|
+
baseOptions = configuration.baseOptions;
|
|
126
|
+
baseAccessToken = configuration.accessToken;
|
|
127
|
+
}
|
|
128
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
129
|
+
localVarHeaderParameter = {};
|
|
130
|
+
localVarQueryParameter = {};
|
|
131
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
132
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
133
|
+
}
|
|
134
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(attachCustomerPaymentMethodRequestDto, localVarRequestOptions, configuration);
|
|
139
|
+
return [2 /*return*/, {
|
|
140
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
|
+
options: localVarRequestOptions,
|
|
142
|
+
}];
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
},
|
|
99
146
|
/**
|
|
100
147
|
* Request to complete a payment change by customer.
|
|
101
148
|
* @summary Request payment setup complete
|
|
@@ -182,6 +229,56 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
182
229
|
});
|
|
183
230
|
});
|
|
184
231
|
},
|
|
232
|
+
/**
|
|
233
|
+
* List the payment methods on the customer\'s account, for example to choose one to attach to policies. IBANs are masked to their last four digits.
|
|
234
|
+
* @summary List payment methods of a customer
|
|
235
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
236
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
237
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
238
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
239
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
listPaymentMethods: function (customerCode, pageSize, pageToken, order, authorization, options) {
|
|
244
|
+
if (options === void 0) { options = {}; }
|
|
245
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
246
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
247
|
+
return __generator(this, function (_a) {
|
|
248
|
+
// verify required parameter 'customerCode' is not null or undefined
|
|
249
|
+
(0, common_1.assertParamExists)('listPaymentMethods', 'customerCode', customerCode);
|
|
250
|
+
localVarPath = "/v1/customers/{customerCode}/payment-methods"
|
|
251
|
+
.replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
|
|
252
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
253
|
+
if (configuration) {
|
|
254
|
+
baseOptions = configuration.baseOptions;
|
|
255
|
+
baseAccessToken = configuration.accessToken;
|
|
256
|
+
}
|
|
257
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
258
|
+
localVarHeaderParameter = {};
|
|
259
|
+
localVarQueryParameter = {};
|
|
260
|
+
if (pageSize !== undefined) {
|
|
261
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
262
|
+
}
|
|
263
|
+
if (pageToken !== undefined) {
|
|
264
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
265
|
+
}
|
|
266
|
+
if (order !== undefined) {
|
|
267
|
+
localVarQueryParameter['order'] = order;
|
|
268
|
+
}
|
|
269
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
270
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
271
|
+
}
|
|
272
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
273
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
274
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
275
|
+
return [2 /*return*/, {
|
|
276
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
277
|
+
options: localVarRequestOptions,
|
|
278
|
+
}];
|
|
279
|
+
});
|
|
280
|
+
});
|
|
281
|
+
},
|
|
185
282
|
};
|
|
186
283
|
};
|
|
187
284
|
exports.PaymentsApiAxiosParamCreator = PaymentsApiAxiosParamCreator;
|
|
@@ -192,6 +289,29 @@ exports.PaymentsApiAxiosParamCreator = PaymentsApiAxiosParamCreator;
|
|
|
192
289
|
var PaymentsApiFp = function (configuration) {
|
|
193
290
|
var localVarAxiosParamCreator = (0, exports.PaymentsApiAxiosParamCreator)(configuration);
|
|
194
291
|
return {
|
|
292
|
+
/**
|
|
293
|
+
* Use one of the customer\'s payment methods for future payments of the given policy.
|
|
294
|
+
* @summary Attach a payment method to a policy
|
|
295
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
296
|
+
* @param {string} paymentMethodCode Code of one of the customer\'s payment methods.
|
|
297
|
+
* @param {AttachCustomerPaymentMethodRequestDto} attachCustomerPaymentMethodRequestDto
|
|
298
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
299
|
+
* @param {*} [options] Override http request option.
|
|
300
|
+
* @throws {RequiredError}
|
|
301
|
+
*/
|
|
302
|
+
attachPaymentMethod: function (customerCode, paymentMethodCode, attachCustomerPaymentMethodRequestDto, authorization, options) {
|
|
303
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
304
|
+
var localVarAxiosArgs;
|
|
305
|
+
return __generator(this, function (_a) {
|
|
306
|
+
switch (_a.label) {
|
|
307
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.attachPaymentMethod(customerCode, paymentMethodCode, attachCustomerPaymentMethodRequestDto, authorization, options)];
|
|
308
|
+
case 1:
|
|
309
|
+
localVarAxiosArgs = _a.sent();
|
|
310
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
},
|
|
195
315
|
/**
|
|
196
316
|
* Request to complete a payment change by customer.
|
|
197
317
|
* @summary Request payment setup complete
|
|
@@ -236,6 +356,30 @@ var PaymentsApiFp = function (configuration) {
|
|
|
236
356
|
});
|
|
237
357
|
});
|
|
238
358
|
},
|
|
359
|
+
/**
|
|
360
|
+
* List the payment methods on the customer\'s account, for example to choose one to attach to policies. IBANs are masked to their last four digits.
|
|
361
|
+
* @summary List payment methods of a customer
|
|
362
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
363
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
364
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
365
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
366
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
367
|
+
* @param {*} [options] Override http request option.
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
*/
|
|
370
|
+
listPaymentMethods: function (customerCode, pageSize, pageToken, order, authorization, options) {
|
|
371
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
372
|
+
var localVarAxiosArgs;
|
|
373
|
+
return __generator(this, function (_a) {
|
|
374
|
+
switch (_a.label) {
|
|
375
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPaymentMethods(customerCode, pageSize, pageToken, order, authorization, options)];
|
|
376
|
+
case 1:
|
|
377
|
+
localVarAxiosArgs = _a.sent();
|
|
378
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
});
|
|
382
|
+
},
|
|
239
383
|
};
|
|
240
384
|
};
|
|
241
385
|
exports.PaymentsApiFp = PaymentsApiFp;
|
|
@@ -246,6 +390,19 @@ exports.PaymentsApiFp = PaymentsApiFp;
|
|
|
246
390
|
var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
247
391
|
var localVarFp = (0, exports.PaymentsApiFp)(configuration);
|
|
248
392
|
return {
|
|
393
|
+
/**
|
|
394
|
+
* Use one of the customer\'s payment methods for future payments of the given policy.
|
|
395
|
+
* @summary Attach a payment method to a policy
|
|
396
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
397
|
+
* @param {string} paymentMethodCode Code of one of the customer\'s payment methods.
|
|
398
|
+
* @param {AttachCustomerPaymentMethodRequestDto} attachCustomerPaymentMethodRequestDto
|
|
399
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
*/
|
|
403
|
+
attachPaymentMethod: function (customerCode, paymentMethodCode, attachCustomerPaymentMethodRequestDto, authorization, options) {
|
|
404
|
+
return localVarFp.attachPaymentMethod(customerCode, paymentMethodCode, attachCustomerPaymentMethodRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
405
|
+
},
|
|
249
406
|
/**
|
|
250
407
|
* Request to complete a payment change by customer.
|
|
251
408
|
* @summary Request payment setup complete
|
|
@@ -270,6 +427,20 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
270
427
|
initiatePaymentSetup: function (customerCode, initiatePaymentSetupRequestDto, authorization, options) {
|
|
271
428
|
return localVarFp.initiatePaymentSetup(customerCode, initiatePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
272
429
|
},
|
|
430
|
+
/**
|
|
431
|
+
* List the payment methods on the customer\'s account, for example to choose one to attach to policies. IBANs are masked to their last four digits.
|
|
432
|
+
* @summary List payment methods of a customer
|
|
433
|
+
* @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
|
|
434
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
435
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
436
|
+
* @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
437
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
listPaymentMethods: function (customerCode, pageSize, pageToken, order, authorization, options) {
|
|
442
|
+
return localVarFp.listPaymentMethods(customerCode, pageSize, pageToken, order, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
443
|
+
},
|
|
273
444
|
};
|
|
274
445
|
};
|
|
275
446
|
exports.PaymentsApiFactory = PaymentsApiFactory;
|
|
@@ -284,6 +455,18 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
284
455
|
function PaymentsApi() {
|
|
285
456
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
286
457
|
}
|
|
458
|
+
/**
|
|
459
|
+
* Use one of the customer\'s payment methods for future payments of the given policy.
|
|
460
|
+
* @summary Attach a payment method to a policy
|
|
461
|
+
* @param {PaymentsApiAttachPaymentMethodRequest} requestParameters Request parameters.
|
|
462
|
+
* @param {*} [options] Override http request option.
|
|
463
|
+
* @throws {RequiredError}
|
|
464
|
+
* @memberof PaymentsApi
|
|
465
|
+
*/
|
|
466
|
+
PaymentsApi.prototype.attachPaymentMethod = function (requestParameters, options) {
|
|
467
|
+
var _this = this;
|
|
468
|
+
return (0, exports.PaymentsApiFp)(this.configuration).attachPaymentMethod(requestParameters.customerCode, requestParameters.paymentMethodCode, requestParameters.attachCustomerPaymentMethodRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
469
|
+
};
|
|
287
470
|
/**
|
|
288
471
|
* Request to complete a payment change by customer.
|
|
289
472
|
* @summary Request payment setup complete
|
|
@@ -308,6 +491,18 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
308
491
|
var _this = this;
|
|
309
492
|
return (0, exports.PaymentsApiFp)(this.configuration).initiatePaymentSetup(requestParameters.customerCode, requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
310
493
|
};
|
|
494
|
+
/**
|
|
495
|
+
* List the payment methods on the customer\'s account, for example to choose one to attach to policies. IBANs are masked to their last four digits.
|
|
496
|
+
* @summary List payment methods of a customer
|
|
497
|
+
* @param {PaymentsApiListPaymentMethodsRequest} requestParameters Request parameters.
|
|
498
|
+
* @param {*} [options] Override http request option.
|
|
499
|
+
* @throws {RequiredError}
|
|
500
|
+
* @memberof PaymentsApi
|
|
501
|
+
*/
|
|
502
|
+
PaymentsApi.prototype.listPaymentMethods = function (requestParameters, options) {
|
|
503
|
+
var _this = this;
|
|
504
|
+
return (0, exports.PaymentsApiFp)(this.configuration).listPaymentMethods(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.order, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
505
|
+
};
|
|
311
506
|
return PaymentsApi;
|
|
312
507
|
}(base_1.BaseAPI));
|
|
313
508
|
exports.PaymentsApi = PaymentsApi;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 AttachCustomerPaymentMethodRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AttachCustomerPaymentMethodRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Code of the policy to pay with this payment method from now on. The policy must belong to the customer.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AttachCustomerPaymentMethodRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'policyCode': string;
|
|
24
|
+
}
|
|
@@ -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,25 @@
|
|
|
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 { CustomerPolicyPaymentMethodClass } from './customer-policy-payment-method-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AttachCustomerPaymentMethodResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface AttachCustomerPaymentMethodResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The payment method now attached to the policy.
|
|
21
|
+
* @type {CustomerPolicyPaymentMethodClass}
|
|
22
|
+
* @memberof AttachCustomerPaymentMethodResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'policyPaymentMethod': CustomerPolicyPaymentMethodClass;
|
|
25
|
+
}
|
|
@@ -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 });
|
|
@@ -95,16 +95,20 @@ export interface CreateAccountRequestDto {
|
|
|
95
95
|
'accountNumber'?: string;
|
|
96
96
|
/**
|
|
97
97
|
* Optional field to enter extra information.
|
|
98
|
-
* @type {object}
|
|
98
|
+
* @type {{ [key: string]: object; }}
|
|
99
99
|
* @memberof CreateAccountRequestDto
|
|
100
100
|
*/
|
|
101
|
-
'metadata'?:
|
|
101
|
+
'metadata'?: {
|
|
102
|
+
[key: string]: object;
|
|
103
|
+
};
|
|
102
104
|
/**
|
|
103
105
|
* Optional field to add predefined custom fields.
|
|
104
|
-
* @type {object}
|
|
106
|
+
* @type {{ [key: string]: object; }}
|
|
105
107
|
* @memberof CreateAccountRequestDto
|
|
106
108
|
*/
|
|
107
|
-
'customFields'?:
|
|
109
|
+
'customFields'?: {
|
|
110
|
+
[key: string]: object;
|
|
111
|
+
};
|
|
108
112
|
}
|
|
109
113
|
export declare const CreateAccountRequestDtoTitleEnum: {
|
|
110
114
|
readonly Empty: "";
|
|
@@ -113,8 +113,10 @@ export interface CreateCustomerClaimRequestDto {
|
|
|
113
113
|
'notificationDate': string;
|
|
114
114
|
/**
|
|
115
115
|
* Tenant specific custom fields for claims (e.g. IMEI, Serial Number, etc.)
|
|
116
|
-
* @type {object}
|
|
116
|
+
* @type {{ [key: string]: object; }}
|
|
117
117
|
* @memberof CreateCustomerClaimRequestDto
|
|
118
118
|
*/
|
|
119
|
-
'customFields'?:
|
|
119
|
+
'customFields'?: {
|
|
120
|
+
[key: string]: object;
|
|
121
|
+
};
|
|
120
122
|
}
|
|
@@ -53,10 +53,12 @@ export interface CreateLeadRequestDto {
|
|
|
53
53
|
'bankAccount'?: CreateBankAccountRequestDto;
|
|
54
54
|
/**
|
|
55
55
|
* Custom data.
|
|
56
|
-
* @type {object}
|
|
56
|
+
* @type {{ [key: string]: object; }}
|
|
57
57
|
* @memberof CreateLeadRequestDto
|
|
58
58
|
*/
|
|
59
|
-
'customData'?:
|
|
59
|
+
'customData'?: {
|
|
60
|
+
[key: string]: object;
|
|
61
|
+
};
|
|
60
62
|
/**
|
|
61
63
|
* Codes for documents to be uploaded.
|
|
62
64
|
* @type {UploadedDocumentDto}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 CustomerPaymentMethodClass
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomerPaymentMethodClass {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for the object.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CustomerPaymentMethodClass
|
|
22
|
+
*/
|
|
23
|
+
'code': string;
|
|
24
|
+
/**
|
|
25
|
+
* The payment method type.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomerPaymentMethodClass
|
|
28
|
+
*/
|
|
29
|
+
'type': string;
|
|
30
|
+
/**
|
|
31
|
+
* The payment service provider used by this payment method.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomerPaymentMethodClass
|
|
34
|
+
*/
|
|
35
|
+
'psp': string;
|
|
36
|
+
/**
|
|
37
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CustomerPaymentMethodClass
|
|
40
|
+
*/
|
|
41
|
+
'productSlug'?: string;
|
|
42
|
+
/**
|
|
43
|
+
* When the payment method was added.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CustomerPaymentMethodClass
|
|
46
|
+
*/
|
|
47
|
+
'createdAt'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Details for display, such as the card brand or the last four digits of the IBAN (all other IBAN digits are masked).
|
|
50
|
+
* @type {object}
|
|
51
|
+
* @memberof CustomerPaymentMethodClass
|
|
52
|
+
*/
|
|
53
|
+
'details'?: object;
|
|
54
|
+
}
|
|
@@ -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,49 @@
|
|
|
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 { CustomerPaymentMethodClass } from './customer-payment-method-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CustomerPolicyPaymentMethodClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CustomerPolicyPaymentMethodClass {
|
|
19
|
+
/**
|
|
20
|
+
* Unique identifier for the object.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CustomerPolicyPaymentMethodClass
|
|
23
|
+
*/
|
|
24
|
+
'code': string;
|
|
25
|
+
/**
|
|
26
|
+
* Policy code
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CustomerPolicyPaymentMethodClass
|
|
29
|
+
*/
|
|
30
|
+
'policyCode': string;
|
|
31
|
+
/**
|
|
32
|
+
* Whether this is the payment method now used for the policy. Always true after an attach.
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof CustomerPolicyPaymentMethodClass
|
|
35
|
+
*/
|
|
36
|
+
'isActive': boolean;
|
|
37
|
+
/**
|
|
38
|
+
* When the payment method was attached to the policy.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CustomerPolicyPaymentMethodClass
|
|
41
|
+
*/
|
|
42
|
+
'createdAt'?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {CustomerPaymentMethodClass}
|
|
46
|
+
* @memberof CustomerPolicyPaymentMethodClass
|
|
47
|
+
*/
|
|
48
|
+
'paymentMethod': CustomerPaymentMethodClass;
|
|
49
|
+
}
|
|
@@ -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,5 +1,7 @@
|
|
|
1
1
|
export * from './account-class';
|
|
2
2
|
export * from './account-policy-class';
|
|
3
|
+
export * from './attach-customer-payment-method-request-dto';
|
|
4
|
+
export * from './attach-customer-payment-method-response-class';
|
|
3
5
|
export * from './authentication-result-class';
|
|
4
6
|
export * from './bank-transfer-dto';
|
|
5
7
|
export * from './billing-address-dto';
|
|
@@ -26,6 +28,8 @@ export * from './create-policy-request-dto';
|
|
|
26
28
|
export * from './create-presigned-post-response-class';
|
|
27
29
|
export * from './customer-class';
|
|
28
30
|
export * from './customer-document-class';
|
|
31
|
+
export * from './customer-payment-method-class';
|
|
32
|
+
export * from './customer-policy-payment-method-class';
|
|
29
33
|
export * from './customer-product-class';
|
|
30
34
|
export * from './forgot-password-request-dto';
|
|
31
35
|
export * from './get-customer-claim-response-class';
|
|
@@ -60,6 +64,7 @@ export * from './lead-bank-account-class';
|
|
|
60
64
|
export * from './lead-class';
|
|
61
65
|
export * from './link-lead-partner-request-dto';
|
|
62
66
|
export * from './list-customer-claims-response-class';
|
|
67
|
+
export * from './list-customer-payment-methods-response-class';
|
|
63
68
|
export * from './list-documents-response-class';
|
|
64
69
|
export * from './list-invoices-response-class';
|
|
65
70
|
export * from './list-leads-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./account-class"), exports);
|
|
18
18
|
__exportStar(require("./account-policy-class"), exports);
|
|
19
|
+
__exportStar(require("./attach-customer-payment-method-request-dto"), exports);
|
|
20
|
+
__exportStar(require("./attach-customer-payment-method-response-class"), exports);
|
|
19
21
|
__exportStar(require("./authentication-result-class"), exports);
|
|
20
22
|
__exportStar(require("./bank-transfer-dto"), exports);
|
|
21
23
|
__exportStar(require("./billing-address-dto"), exports);
|
|
@@ -42,6 +44,8 @@ __exportStar(require("./create-policy-request-dto"), exports);
|
|
|
42
44
|
__exportStar(require("./create-presigned-post-response-class"), exports);
|
|
43
45
|
__exportStar(require("./customer-class"), exports);
|
|
44
46
|
__exportStar(require("./customer-document-class"), exports);
|
|
47
|
+
__exportStar(require("./customer-payment-method-class"), exports);
|
|
48
|
+
__exportStar(require("./customer-policy-payment-method-class"), exports);
|
|
45
49
|
__exportStar(require("./customer-product-class"), exports);
|
|
46
50
|
__exportStar(require("./forgot-password-request-dto"), exports);
|
|
47
51
|
__exportStar(require("./get-customer-claim-response-class"), exports);
|
|
@@ -76,6 +80,7 @@ __exportStar(require("./lead-bank-account-class"), exports);
|
|
|
76
80
|
__exportStar(require("./lead-class"), exports);
|
|
77
81
|
__exportStar(require("./link-lead-partner-request-dto"), exports);
|
|
78
82
|
__exportStar(require("./list-customer-claims-response-class"), exports);
|
|
83
|
+
__exportStar(require("./list-customer-payment-methods-response-class"), exports);
|
|
79
84
|
__exportStar(require("./list-documents-response-class"), exports);
|
|
80
85
|
__exportStar(require("./list-invoices-response-class"), exports);
|
|
81
86
|
__exportStar(require("./list-leads-response-class"), exports);
|
|
@@ -23,10 +23,12 @@ export interface InitiateAuthRequestDto {
|
|
|
23
23
|
'authFlow': string;
|
|
24
24
|
/**
|
|
25
25
|
* Auth flow parameters for the authentication process
|
|
26
|
-
* @type {object}
|
|
26
|
+
* @type {{ [key: string]: object; }}
|
|
27
27
|
* @memberof InitiateAuthRequestDto
|
|
28
28
|
*/
|
|
29
|
-
'authParameters'?:
|
|
29
|
+
'authParameters'?: {
|
|
30
|
+
[key: string]: object;
|
|
31
|
+
};
|
|
30
32
|
/**
|
|
31
33
|
* Tenant slug
|
|
32
34
|
* @type {string}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { CustomerPaymentMethodClass } from './customer-payment-method-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListCustomerPaymentMethodsResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface ListCustomerPaymentMethodsResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The customer\'s payment methods.
|
|
21
|
+
* @type {Array<CustomerPaymentMethodClass>}
|
|
22
|
+
* @memberof ListCustomerPaymentMethodsResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'items': Array<CustomerPaymentMethodClass>;
|
|
25
|
+
/**
|
|
26
|
+
* Next page token
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ListCustomerPaymentMethodsResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'nextPageToken'?: string;
|
|
31
|
+
}
|
|
@@ -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 });
|
|
@@ -29,10 +29,12 @@ export interface PolicyObjectDto {
|
|
|
29
29
|
'insuredObjectName'?: string;
|
|
30
30
|
/**
|
|
31
31
|
* Insured object data.
|
|
32
|
-
* @type {object}
|
|
32
|
+
* @type {{ [key: string]: object; }}
|
|
33
33
|
* @memberof PolicyObjectDto
|
|
34
34
|
*/
|
|
35
|
-
'data':
|
|
35
|
+
'data': {
|
|
36
|
+
[key: string]: object;
|
|
37
|
+
};
|
|
36
38
|
/**
|
|
37
39
|
* Unique identifier for the object.
|
|
38
40
|
* @type {string}
|