@emilgroup/public-api-sdk 1.27.0 → 1.29.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 +1 -0
- package/README.md +2 -2
- package/api/booking-funnels-api.ts +4 -4
- package/api/leads-api.ts +25 -12
- package/api/payments-setup-api.ts +21 -8
- package/base.ts +30 -9
- package/dist/api/booking-funnels-api.d.ts +4 -4
- package/dist/api/booking-funnels-api.js +4 -4
- package/dist/api/leads-api.d.ts +17 -8
- package/dist/api/leads-api.js +17 -12
- package/dist/api/payments-setup-api.d.ts +13 -4
- package/dist/api/payments-setup-api.js +13 -8
- package/dist/base.d.ts +3 -2
- package/dist/base.js +39 -21
- package/dist/models/complete-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/create-estimated-invoice-response-class.d.ts +7 -1
- package/dist/models/create-lead-request-dto.d.ts +6 -11
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/link-lead-partner-request-dto.d.ts +36 -0
- package/dist/models/link-lead-partner-request-dto.js +15 -0
- package/dist/models/partner-class.d.ts +1 -1
- package/dist/models/update-lead-request-dto.d.ts +7 -0
- package/models/complete-payment-setup-request-dto.ts +6 -0
- package/models/create-estimated-invoice-response-class.ts +7 -1
- package/models/create-lead-request-dto.ts +6 -11
- package/models/index.ts +1 -0
- package/models/initiate-payment-setup-request-dto.ts +6 -0
- package/models/link-lead-partner-request-dto.ts +42 -0
- package/models/partner-class.ts +1 -1
- package/models/update-lead-request-dto.ts +7 -0
- package/package.json +1 -1
|
@@ -35,12 +35,13 @@ export declare const PaymentsSetupApiAxiosParamCreator: (configuration?: Configu
|
|
|
35
35
|
/**
|
|
36
36
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
37
37
|
* @summary Get public key and psp
|
|
38
|
+
* @param {string} productSlug
|
|
38
39
|
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
39
40
|
* @param {string} [authorization] Bearer Token
|
|
40
41
|
* @param {*} [options] Override http request option.
|
|
41
42
|
* @throws {RequiredError}
|
|
42
43
|
*/
|
|
43
|
-
getPublicPSPConfig: (idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
+
getPublicPSPConfig: (productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
45
|
/**
|
|
45
46
|
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
46
47
|
* @summary Initiate a payment setup
|
|
@@ -70,12 +71,13 @@ export declare const PaymentsSetupApiFp: (configuration?: Configuration) => {
|
|
|
70
71
|
/**
|
|
71
72
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
72
73
|
* @summary Get public key and psp
|
|
74
|
+
* @param {string} productSlug
|
|
73
75
|
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
74
76
|
* @param {string} [authorization] Bearer Token
|
|
75
77
|
* @param {*} [options] Override http request option.
|
|
76
78
|
* @throws {RequiredError}
|
|
77
79
|
*/
|
|
78
|
-
getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>>;
|
|
80
|
+
getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>>;
|
|
79
81
|
/**
|
|
80
82
|
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
81
83
|
* @summary Initiate a payment setup
|
|
@@ -105,12 +107,13 @@ export declare const PaymentsSetupApiFactory: (configuration?: Configuration, ba
|
|
|
105
107
|
/**
|
|
106
108
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
107
109
|
* @summary Get public key and psp
|
|
110
|
+
* @param {string} productSlug
|
|
108
111
|
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
109
112
|
* @param {string} [authorization] Bearer Token
|
|
110
113
|
* @param {*} [options] Override http request option.
|
|
111
114
|
* @throws {RequiredError}
|
|
112
115
|
*/
|
|
113
|
-
getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass>;
|
|
116
|
+
getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass>;
|
|
114
117
|
/**
|
|
115
118
|
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
116
119
|
* @summary Initiate a payment setup
|
|
@@ -153,6 +156,12 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
|
|
|
153
156
|
* @interface PaymentsSetupApiGetPublicPSPConfigRequest
|
|
154
157
|
*/
|
|
155
158
|
export interface PaymentsSetupApiGetPublicPSPConfigRequest {
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
163
|
+
*/
|
|
164
|
+
readonly productSlug: string;
|
|
156
165
|
/**
|
|
157
166
|
* An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
158
167
|
* @type {string}
|
|
@@ -215,7 +224,7 @@ export declare class PaymentsSetupApi extends BaseAPI {
|
|
|
215
224
|
* @throws {RequiredError}
|
|
216
225
|
* @memberof PaymentsSetupApi
|
|
217
226
|
*/
|
|
218
|
-
getPublicPSPConfig(requestParameters
|
|
227
|
+
getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPublicPspSettingsResponseClass, any>>;
|
|
219
228
|
/**
|
|
220
229
|
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
221
230
|
* @summary Initiate a payment setup
|
|
@@ -148,19 +148,23 @@ var PaymentsSetupApiAxiosParamCreator = function (configuration) {
|
|
|
148
148
|
/**
|
|
149
149
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
150
150
|
* @summary Get public key and psp
|
|
151
|
+
* @param {string} productSlug
|
|
151
152
|
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
152
153
|
* @param {string} [authorization] Bearer Token
|
|
153
154
|
* @param {*} [options] Override http request option.
|
|
154
155
|
* @throws {RequiredError}
|
|
155
156
|
*/
|
|
156
|
-
getPublicPSPConfig: function (idempotencyKey, authorization, options) {
|
|
157
|
+
getPublicPSPConfig: function (productSlug, idempotencyKey, authorization, options) {
|
|
157
158
|
if (options === void 0) { options = {}; }
|
|
158
159
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
160
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
161
|
return __generator(this, function (_a) {
|
|
161
162
|
switch (_a.label) {
|
|
162
163
|
case 0:
|
|
163
|
-
|
|
164
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
165
|
+
(0, common_1.assertParamExists)('getPublicPSPConfig', 'productSlug', productSlug);
|
|
166
|
+
localVarPath = "/publicapi/v1/payment-setup/get-psp-config/{productSlug}"
|
|
167
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
164
168
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
165
169
|
if (configuration) {
|
|
166
170
|
baseOptions = configuration.baseOptions;
|
|
@@ -281,17 +285,18 @@ var PaymentsSetupApiFp = function (configuration) {
|
|
|
281
285
|
/**
|
|
282
286
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
283
287
|
* @summary Get public key and psp
|
|
288
|
+
* @param {string} productSlug
|
|
284
289
|
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
285
290
|
* @param {string} [authorization] Bearer Token
|
|
286
291
|
* @param {*} [options] Override http request option.
|
|
287
292
|
* @throws {RequiredError}
|
|
288
293
|
*/
|
|
289
|
-
getPublicPSPConfig: function (idempotencyKey, authorization, options) {
|
|
294
|
+
getPublicPSPConfig: function (productSlug, idempotencyKey, authorization, options) {
|
|
290
295
|
return __awaiter(this, void 0, void 0, function () {
|
|
291
296
|
var localVarAxiosArgs;
|
|
292
297
|
return __generator(this, function (_a) {
|
|
293
298
|
switch (_a.label) {
|
|
294
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPublicPSPConfig(idempotencyKey, authorization, options)];
|
|
299
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options)];
|
|
295
300
|
case 1:
|
|
296
301
|
localVarAxiosArgs = _a.sent();
|
|
297
302
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -346,13 +351,14 @@ var PaymentsSetupApiFactory = function (configuration, basePath, axios) {
|
|
|
346
351
|
/**
|
|
347
352
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
348
353
|
* @summary Get public key and psp
|
|
354
|
+
* @param {string} productSlug
|
|
349
355
|
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
350
356
|
* @param {string} [authorization] Bearer Token
|
|
351
357
|
* @param {*} [options] Override http request option.
|
|
352
358
|
* @throws {RequiredError}
|
|
353
359
|
*/
|
|
354
|
-
getPublicPSPConfig: function (idempotencyKey, authorization, options) {
|
|
355
|
-
return localVarFp.getPublicPSPConfig(idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
360
|
+
getPublicPSPConfig: function (productSlug, idempotencyKey, authorization, options) {
|
|
361
|
+
return localVarFp.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
356
362
|
},
|
|
357
363
|
/**
|
|
358
364
|
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
@@ -402,8 +408,7 @@ var PaymentsSetupApi = /** @class */ (function (_super) {
|
|
|
402
408
|
*/
|
|
403
409
|
PaymentsSetupApi.prototype.getPublicPSPConfig = function (requestParameters, options) {
|
|
404
410
|
var _this = this;
|
|
405
|
-
|
|
406
|
-
return (0, exports.PaymentsSetupApiFp)(this.configuration).getPublicPSPConfig(requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
411
|
+
return (0, exports.PaymentsSetupApiFp)(this.configuration).getPublicPSPConfig(requestParameters.productSlug, requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
407
412
|
};
|
|
408
413
|
/**
|
|
409
414
|
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
package/dist/base.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
24
24
|
};
|
|
25
25
|
export interface LoginClass {
|
|
26
26
|
accessToken: string;
|
|
27
|
-
permissions:
|
|
27
|
+
permissions: string;
|
|
28
28
|
}
|
|
29
29
|
export declare enum Environment {
|
|
30
30
|
Production = "https://apiv2.emil.de",
|
|
@@ -55,8 +55,9 @@ export declare class BaseAPI {
|
|
|
55
55
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
56
56
|
selectEnvironment(env: Environment): void;
|
|
57
57
|
selectBasePath(path: string): void;
|
|
58
|
+
getPermissions(): Array<string>;
|
|
58
59
|
authorize(username: string, password: string): Promise<void>;
|
|
59
|
-
refreshTokenInternal(): Promise<
|
|
60
|
+
refreshTokenInternal(): Promise<LoginClass>;
|
|
60
61
|
private storeTokenData;
|
|
61
62
|
loadTokenData(): void;
|
|
62
63
|
cleanTokenData(): void;
|
package/dist/base.js
CHANGED
|
@@ -143,11 +143,18 @@ var BaseAPI = /** @class */ (function () {
|
|
|
143
143
|
BaseAPI.prototype.selectBasePath = function (path) {
|
|
144
144
|
this.configuration.basePath = path;
|
|
145
145
|
};
|
|
146
|
+
BaseAPI.prototype.getPermissions = function () {
|
|
147
|
+
var _a;
|
|
148
|
+
if (!((_a = this.tokenData) === null || _a === void 0 ? void 0 : _a.permissions)) {
|
|
149
|
+
return [];
|
|
150
|
+
}
|
|
151
|
+
return this.tokenData.permissions.split(',');
|
|
152
|
+
};
|
|
146
153
|
BaseAPI.prototype.authorize = function (username, password) {
|
|
147
154
|
return __awaiter(this, void 0, void 0, function () {
|
|
148
|
-
var options, response, accessToken;
|
|
149
|
-
return __generator(this, function (
|
|
150
|
-
switch (
|
|
155
|
+
var options, response, _a, accessToken, permissions;
|
|
156
|
+
return __generator(this, function (_b) {
|
|
157
|
+
switch (_b.label) {
|
|
151
158
|
case 0:
|
|
152
159
|
options = {
|
|
153
160
|
method: 'POST',
|
|
@@ -161,12 +168,13 @@ var BaseAPI = /** @class */ (function () {
|
|
|
161
168
|
};
|
|
162
169
|
return [4 /*yield*/, axios_1.default.request(options)];
|
|
163
170
|
case 1:
|
|
164
|
-
response =
|
|
165
|
-
|
|
171
|
+
response = _b.sent();
|
|
172
|
+
_a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
|
|
166
173
|
this.configuration.username = username;
|
|
167
174
|
this.configuration.accessToken = "Bearer ".concat(accessToken);
|
|
168
175
|
this.tokenData.username = username;
|
|
169
176
|
this.tokenData.accessToken = accessToken;
|
|
177
|
+
this.tokenData.permissions = permissions;
|
|
170
178
|
this.storeTokenData(__assign({}, this.tokenData));
|
|
171
179
|
return [2 /*return*/];
|
|
172
180
|
}
|
|
@@ -175,14 +183,22 @@ var BaseAPI = /** @class */ (function () {
|
|
|
175
183
|
};
|
|
176
184
|
BaseAPI.prototype.refreshTokenInternal = function () {
|
|
177
185
|
return __awaiter(this, void 0, void 0, function () {
|
|
178
|
-
var username, options,
|
|
186
|
+
var username, refreshTokenAxios, options, response;
|
|
187
|
+
var _this = this;
|
|
179
188
|
return __generator(this, function (_a) {
|
|
180
189
|
switch (_a.label) {
|
|
181
190
|
case 0:
|
|
182
191
|
username = this.configuration.username;
|
|
183
192
|
if (!username) {
|
|
184
|
-
|
|
193
|
+
throw new Error('Failed to refresh token.');
|
|
185
194
|
}
|
|
195
|
+
refreshTokenAxios = axios_1.default.create();
|
|
196
|
+
refreshTokenAxios.interceptors.response.use(function (response) {
|
|
197
|
+
var permissions = response.data.permissions;
|
|
198
|
+
_this.tokenData.permissions = permissions;
|
|
199
|
+
_this.storeTokenData(_this.tokenData);
|
|
200
|
+
return response;
|
|
201
|
+
});
|
|
186
202
|
options = {
|
|
187
203
|
method: 'POST',
|
|
188
204
|
url: "".concat(this.configuration.basePath, "/authservice/v1/refresh-token"),
|
|
@@ -192,10 +208,10 @@ var BaseAPI = /** @class */ (function () {
|
|
|
192
208
|
data: { username: username },
|
|
193
209
|
withCredentials: true,
|
|
194
210
|
};
|
|
195
|
-
return [4 /*yield*/,
|
|
211
|
+
return [4 /*yield*/, refreshTokenAxios.request(options)];
|
|
196
212
|
case 1:
|
|
197
|
-
|
|
198
|
-
return [2 /*return*/,
|
|
213
|
+
response = _a.sent();
|
|
214
|
+
return [2 /*return*/, response.data];
|
|
199
215
|
}
|
|
200
216
|
});
|
|
201
217
|
});
|
|
@@ -221,22 +237,23 @@ var BaseAPI = /** @class */ (function () {
|
|
|
221
237
|
axios.interceptors.response.use(function (res) {
|
|
222
238
|
return res;
|
|
223
239
|
}, function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
224
|
-
var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
|
|
225
|
-
return __generator(this, function (
|
|
226
|
-
switch (
|
|
240
|
+
var originalConfig, _a, tokenString, permissions, accessToken, _error_1, _b, tokenString, permissions, accessToken, _error_2;
|
|
241
|
+
return __generator(this, function (_c) {
|
|
242
|
+
switch (_c.label) {
|
|
227
243
|
case 0:
|
|
228
244
|
originalConfig = err.config;
|
|
229
245
|
if (!(err.response && !(err.response instanceof XMLHttpRequest))) return [3 /*break*/, 5];
|
|
230
246
|
if (!((err.response.status === 401 || err.response.status === 403)
|
|
231
247
|
&& !originalConfig._retry)) return [3 /*break*/, 4];
|
|
232
248
|
originalConfig._retry = true;
|
|
233
|
-
|
|
249
|
+
_c.label = 1;
|
|
234
250
|
case 1:
|
|
235
|
-
|
|
251
|
+
_c.trys.push([1, 3, , 4]);
|
|
236
252
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
237
253
|
case 2:
|
|
238
|
-
|
|
254
|
+
_a = _c.sent(), tokenString = _a.accessToken, permissions = _a.permissions;
|
|
239
255
|
accessToken = "Bearer ".concat(tokenString);
|
|
256
|
+
this.tokenData.permissions = permissions;
|
|
240
257
|
delete originalConfig.headers['Authorization'];
|
|
241
258
|
originalConfig.headers['Authorization'] = accessToken;
|
|
242
259
|
this.configuration.accessToken = accessToken;
|
|
@@ -244,7 +261,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
244
261
|
this.storeTokenData(this.tokenData);
|
|
245
262
|
return [2 /*return*/, axios(originalConfig)];
|
|
246
263
|
case 3:
|
|
247
|
-
_error_1 =
|
|
264
|
+
_error_1 = _c.sent();
|
|
248
265
|
if (_error_1.response && _error_1.response.data) {
|
|
249
266
|
return [2 /*return*/, Promise.reject(_error_1.response.data)];
|
|
250
267
|
}
|
|
@@ -255,13 +272,14 @@ var BaseAPI = /** @class */ (function () {
|
|
|
255
272
|
&& originalConfig.headers.hasOwnProperty('Authorization')
|
|
256
273
|
&& _retry_count < 4)) return [3 /*break*/, 9];
|
|
257
274
|
_retry_count++;
|
|
258
|
-
|
|
275
|
+
_c.label = 6;
|
|
259
276
|
case 6:
|
|
260
|
-
|
|
277
|
+
_c.trys.push([6, 8, , 9]);
|
|
261
278
|
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
262
279
|
case 7:
|
|
263
|
-
|
|
280
|
+
_b = _c.sent(), tokenString = _b.accessToken, permissions = _b.permissions;
|
|
264
281
|
accessToken = "Bearer ".concat(tokenString);
|
|
282
|
+
this.tokenData.permissions = permissions;
|
|
265
283
|
_retry = true;
|
|
266
284
|
originalConfig.headers['Authorization'] = accessToken;
|
|
267
285
|
this.configuration.accessToken = accessToken;
|
|
@@ -269,7 +287,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
269
287
|
this.storeTokenData(this.tokenData);
|
|
270
288
|
return [2 /*return*/, axios.request(__assign({}, originalConfig))];
|
|
271
289
|
case 8:
|
|
272
|
-
_error_2 =
|
|
290
|
+
_error_2 = _c.sent();
|
|
273
291
|
if (_error_2.response && _error_2.response.data) {
|
|
274
292
|
return [2 /*return*/, Promise.reject(_error_2.response.data)];
|
|
275
293
|
}
|
|
@@ -29,4 +29,10 @@ export interface CompletePaymentSetupRequestDto {
|
|
|
29
29
|
* @memberof CompletePaymentSetupRequestDto
|
|
30
30
|
*/
|
|
31
31
|
'braintree'?: CompleteBraintreePaymentSetupRequestDto;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CompletePaymentSetupRequestDto
|
|
36
|
+
*/
|
|
37
|
+
'productSlug'?: string;
|
|
32
38
|
}
|
|
@@ -18,11 +18,17 @@ import { InvoiceClass } from './invoice-class';
|
|
|
18
18
|
*/
|
|
19
19
|
export interface CreateEstimatedInvoiceResponseClass {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* The estimated invoice response based on the current policy data. This includes the calculated invoice for the specified billing period (e.g., monthly, quarterly) as defined by the policy. The invoice contains details such as gross amount, net amount, tax amount, and other invoice-related data for the specific period the invoice is generated for.
|
|
22
22
|
* @type {InvoiceClass}
|
|
23
23
|
* @memberof CreateEstimatedInvoiceResponseClass
|
|
24
24
|
*/
|
|
25
25
|
'invoice'?: InvoiceClass;
|
|
26
|
+
/**
|
|
27
|
+
* The estimated yearly invoice response. This represents the invoice recalculated to a yearly format, standardizing the invoice values regardless of the billing frequency defined by the policy (e.g., monthly, quarterly, etc.). This yearly invoice gives an overview of the total cost for the entire year, including recalculated gross amount, net amount, tax amount, and other related invoice data, ensuring that all charges are displayed on a yearly basis. Note: If the original invoice is already set to a yearly billing frequency, the \'yearlyInvoice\' will be identical to the \'invoice\'.
|
|
28
|
+
* @type {InvoiceClass}
|
|
29
|
+
* @memberof CreateEstimatedInvoiceResponseClass
|
|
30
|
+
*/
|
|
31
|
+
'yearlyInvoice'?: InvoiceClass;
|
|
26
32
|
/**
|
|
27
33
|
* In some cases, custom premium calculation needs to be used. In that case, a custom object is returned. It can hold up any kind of information. For more information, check the general documentation.
|
|
28
34
|
* @type {object}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { CreateAccountRequestDto } from './create-account-request-dto';
|
|
13
13
|
import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
|
|
14
14
|
import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
|
|
15
|
+
import { LinkLeadPartnerRequestDto } from './link-lead-partner-request-dto';
|
|
15
16
|
import { PolicyObjectRequestDto } from './policy-object-request-dto';
|
|
16
17
|
import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
17
18
|
import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
@@ -89,10 +90,10 @@ export interface CreateLeadRequestDto {
|
|
|
89
90
|
'status'?: string;
|
|
90
91
|
/**
|
|
91
92
|
* Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
|
|
92
|
-
* @type {
|
|
93
|
+
* @type {PremiumOverrideRequestDto}
|
|
93
94
|
* @memberof CreateLeadRequestDto
|
|
94
95
|
*/
|
|
95
|
-
'premiumOverride'?:
|
|
96
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
96
97
|
/**
|
|
97
98
|
* Payment method, used to for payment method support, such as SEPA, invoice, etc. The payment method content will be validated if the \'validate\' flag is set to true.
|
|
98
99
|
* @type {CreatePaymentMethodRequestDto}
|
|
@@ -106,15 +107,9 @@ export interface CreateLeadRequestDto {
|
|
|
106
107
|
*/
|
|
107
108
|
'validate'?: boolean;
|
|
108
109
|
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {
|
|
111
|
-
* @memberof CreateLeadRequestDto
|
|
112
|
-
*/
|
|
113
|
-
'partnerCode'?: string;
|
|
114
|
-
/**
|
|
115
|
-
* An optional partner role code to establish a link between a lead and a partner. It must be sent together with the partner code. It will be validated regardless of the value of the \'validate\' flag.
|
|
116
|
-
* @type {string}
|
|
110
|
+
* Optional partner object contains necessary information to link a partner to the policy. The partner content will be validated if the \'validate\' flag is set to true.
|
|
111
|
+
* @type {LinkLeadPartnerRequestDto}
|
|
117
112
|
* @memberof CreateLeadRequestDto
|
|
118
113
|
*/
|
|
119
|
-
'
|
|
114
|
+
'partner'?: LinkLeadPartnerRequestDto;
|
|
120
115
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export * from './lead-bank-account-class';
|
|
|
51
51
|
export * from './lead-class';
|
|
52
52
|
export * from './lead-policy-class';
|
|
53
53
|
export * from './lead-policy-object-class';
|
|
54
|
+
export * from './link-lead-partner-request-dto';
|
|
54
55
|
export * from './list-documents-response-class';
|
|
55
56
|
export * from './list-product-documents-response-class';
|
|
56
57
|
export * from './list-products-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -67,6 +67,7 @@ __exportStar(require("./lead-bank-account-class"), exports);
|
|
|
67
67
|
__exportStar(require("./lead-class"), exports);
|
|
68
68
|
__exportStar(require("./lead-policy-class"), exports);
|
|
69
69
|
__exportStar(require("./lead-policy-object-class"), exports);
|
|
70
|
+
__exportStar(require("./link-lead-partner-request-dto"), exports);
|
|
70
71
|
__exportStar(require("./list-documents-response-class"), exports);
|
|
71
72
|
__exportStar(require("./list-product-documents-response-class"), exports);
|
|
72
73
|
__exportStar(require("./list-products-response-class"), exports);
|
|
@@ -29,4 +29,10 @@ export interface InitiatePaymentSetupRequestDto {
|
|
|
29
29
|
* @memberof InitiatePaymentSetupRequestDto
|
|
30
30
|
*/
|
|
31
31
|
'braintree'?: InitiateBraintreePaymentSetupRequestDto;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof InitiatePaymentSetupRequestDto
|
|
36
|
+
*/
|
|
37
|
+
'productSlug'?: string;
|
|
32
38
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil PublicAPI
|
|
3
|
+
* The Emil Public 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 LinkLeadPartnerRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface LinkLeadPartnerRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* The code of the partner with which the lead will be linked.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LinkLeadPartnerRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'partnerCode': string;
|
|
24
|
+
/**
|
|
25
|
+
* The code of role that the partner will have in the established link between the lead and the partner.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LinkLeadPartnerRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'partnerRoleCode': string;
|
|
30
|
+
/**
|
|
31
|
+
* The date of the start of linking with a partner.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LinkLeadPartnerRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'startDate': string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil PublicAPI
|
|
6
|
+
* The Emil Public 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 });
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { CreateAccountRequestDto } from './create-account-request-dto';
|
|
13
13
|
import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
|
|
14
14
|
import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
|
|
15
|
+
import { LinkLeadPartnerRequestDto } from './link-lead-partner-request-dto';
|
|
15
16
|
import { PolicyObjectRequestDto } from './policy-object-request-dto';
|
|
16
17
|
import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
17
18
|
/**
|
|
@@ -92,4 +93,10 @@ export interface UpdateLeadRequestDto {
|
|
|
92
93
|
* @memberof UpdateLeadRequestDto
|
|
93
94
|
*/
|
|
94
95
|
'validate'?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {LinkLeadPartnerRequestDto}
|
|
99
|
+
* @memberof UpdateLeadRequestDto
|
|
100
|
+
*/
|
|
101
|
+
'partner'?: LinkLeadPartnerRequestDto;
|
|
95
102
|
}
|
|
@@ -34,5 +34,11 @@ export interface CompletePaymentSetupRequestDto {
|
|
|
34
34
|
* @memberof CompletePaymentSetupRequestDto
|
|
35
35
|
*/
|
|
36
36
|
'braintree'?: CompleteBraintreePaymentSetupRequestDto;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CompletePaymentSetupRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'productSlug'?: string;
|
|
37
43
|
}
|
|
38
44
|
|
|
@@ -23,11 +23,17 @@ import { InvoiceClass } from './invoice-class';
|
|
|
23
23
|
*/
|
|
24
24
|
export interface CreateEstimatedInvoiceResponseClass {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* The estimated invoice response based on the current policy data. This includes the calculated invoice for the specified billing period (e.g., monthly, quarterly) as defined by the policy. The invoice contains details such as gross amount, net amount, tax amount, and other invoice-related data for the specific period the invoice is generated for.
|
|
27
27
|
* @type {InvoiceClass}
|
|
28
28
|
* @memberof CreateEstimatedInvoiceResponseClass
|
|
29
29
|
*/
|
|
30
30
|
'invoice'?: InvoiceClass;
|
|
31
|
+
/**
|
|
32
|
+
* The estimated yearly invoice response. This represents the invoice recalculated to a yearly format, standardizing the invoice values regardless of the billing frequency defined by the policy (e.g., monthly, quarterly, etc.). This yearly invoice gives an overview of the total cost for the entire year, including recalculated gross amount, net amount, tax amount, and other related invoice data, ensuring that all charges are displayed on a yearly basis. Note: If the original invoice is already set to a yearly billing frequency, the \'yearlyInvoice\' will be identical to the \'invoice\'.
|
|
33
|
+
* @type {InvoiceClass}
|
|
34
|
+
* @memberof CreateEstimatedInvoiceResponseClass
|
|
35
|
+
*/
|
|
36
|
+
'yearlyInvoice'?: InvoiceClass;
|
|
31
37
|
/**
|
|
32
38
|
* In some cases, custom premium calculation needs to be used. In that case, a custom object is returned. It can hold up any kind of information. For more information, check the general documentation.
|
|
33
39
|
* @type {object}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { CreateAccountRequestDto } from './create-account-request-dto';
|
|
17
17
|
import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
|
|
18
18
|
import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
|
|
19
|
+
import { LinkLeadPartnerRequestDto } from './link-lead-partner-request-dto';
|
|
19
20
|
import { PolicyObjectRequestDto } from './policy-object-request-dto';
|
|
20
21
|
import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
21
22
|
import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
@@ -94,10 +95,10 @@ export interface CreateLeadRequestDto {
|
|
|
94
95
|
'status'?: string;
|
|
95
96
|
/**
|
|
96
97
|
* Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
|
|
97
|
-
* @type {
|
|
98
|
+
* @type {PremiumOverrideRequestDto}
|
|
98
99
|
* @memberof CreateLeadRequestDto
|
|
99
100
|
*/
|
|
100
|
-
'premiumOverride'?:
|
|
101
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
101
102
|
/**
|
|
102
103
|
* Payment method, used to for payment method support, such as SEPA, invoice, etc. The payment method content will be validated if the \'validate\' flag is set to true.
|
|
103
104
|
* @type {CreatePaymentMethodRequestDto}
|
|
@@ -111,16 +112,10 @@ export interface CreateLeadRequestDto {
|
|
|
111
112
|
*/
|
|
112
113
|
'validate'?: boolean;
|
|
113
114
|
/**
|
|
114
|
-
*
|
|
115
|
-
* @type {
|
|
116
|
-
* @memberof CreateLeadRequestDto
|
|
117
|
-
*/
|
|
118
|
-
'partnerCode'?: string;
|
|
119
|
-
/**
|
|
120
|
-
* An optional partner role code to establish a link between a lead and a partner. It must be sent together with the partner code. It will be validated regardless of the value of the \'validate\' flag.
|
|
121
|
-
* @type {string}
|
|
115
|
+
* Optional partner object contains necessary information to link a partner to the policy. The partner content will be validated if the \'validate\' flag is set to true.
|
|
116
|
+
* @type {LinkLeadPartnerRequestDto}
|
|
122
117
|
* @memberof CreateLeadRequestDto
|
|
123
118
|
*/
|
|
124
|
-
'
|
|
119
|
+
'partner'?: LinkLeadPartnerRequestDto;
|
|
125
120
|
}
|
|
126
121
|
|
package/models/index.ts
CHANGED
|
@@ -51,6 +51,7 @@ export * from './lead-bank-account-class';
|
|
|
51
51
|
export * from './lead-class';
|
|
52
52
|
export * from './lead-policy-class';
|
|
53
53
|
export * from './lead-policy-object-class';
|
|
54
|
+
export * from './link-lead-partner-request-dto';
|
|
54
55
|
export * from './list-documents-response-class';
|
|
55
56
|
export * from './list-product-documents-response-class';
|
|
56
57
|
export * from './list-products-response-class';
|
|
@@ -34,5 +34,11 @@ export interface InitiatePaymentSetupRequestDto {
|
|
|
34
34
|
* @memberof InitiatePaymentSetupRequestDto
|
|
35
35
|
*/
|
|
36
36
|
'braintree'?: InitiateBraintreePaymentSetupRequestDto;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof InitiatePaymentSetupRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'productSlug'?: string;
|
|
37
43
|
}
|
|
38
44
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil PublicAPI
|
|
5
|
+
* The Emil Public API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface LinkLeadPartnerRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface LinkLeadPartnerRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The code of the partner with which the lead will be linked.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof LinkLeadPartnerRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'partnerCode': string;
|
|
29
|
+
/**
|
|
30
|
+
* The code of role that the partner will have in the established link between the lead and the partner.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof LinkLeadPartnerRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'partnerRoleCode': string;
|
|
35
|
+
/**
|
|
36
|
+
* The date of the start of linking with a partner.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof LinkLeadPartnerRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'startDate': string;
|
|
41
|
+
}
|
|
42
|
+
|