@emilgroup/insurance-sdk-node 1.10.0 → 1.11.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 +5 -0
- package/README.md +2 -2
- package/api/leads-api.ts +13 -15
- package/base.ts +1 -1
- package/dist/api/leads-api.d.ts +10 -10
- package/dist/api/leads-api.js +9 -11
- package/dist/base.js +1 -1
- package/dist/models/create-insured-object-request-dto.d.ts +20 -2
- package/dist/models/create-lead-request-dto.d.ts +18 -12
- package/dist/models/create-premium-formula-request-dto.d.ts +1 -0
- package/dist/models/create-premium-formula-request-dto.js +1 -0
- package/dist/models/currency-class.d.ts +48 -0
- package/dist/models/currency-class.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/insured-object-class.d.ts +18 -0
- package/dist/models/invoice-item-class.d.ts +117 -0
- package/dist/models/invoice-item-class.js +24 -0
- package/dist/models/invoice-status-class.d.ts +47 -0
- package/dist/models/invoice-status-class.js +20 -0
- package/dist/models/lead-class.d.ts +10 -4
- package/dist/models/patch-lead-request-dto.d.ts +77 -0
- package/dist/models/patch-lead-request-dto.js +15 -0
- package/dist/models/policy-premium-class.d.ts +0 -12
- package/dist/models/policy-premium-item-class.d.ts +0 -18
- package/dist/models/premium-override-dto.d.ts +1 -6
- package/dist/models/premium-override-dto.js +1 -0
- package/dist/models/shared-invoice-class.d.ts +151 -0
- package/dist/models/shared-invoice-class.js +30 -0
- package/dist/models/shared-update-premium-formula-request-dto.d.ts +1 -0
- package/dist/models/shared-update-premium-formula-request-dto.js +1 -0
- package/dist/models/update-insured-object-request-dto.d.ts +18 -0
- package/dist/models/update-lead-request-dto.d.ts +12 -0
- package/dist/models/update-premium-formula-request-dto.d.ts +1 -0
- package/dist/models/update-premium-formula-request-dto.js +1 -0
- package/models/create-insured-object-request-dto.ts +20 -2
- package/models/create-lead-request-dto.ts +18 -12
- package/models/create-premium-formula-request-dto.ts +1 -0
- package/models/currency-class.ts +54 -0
- package/models/index.ts +5 -0
- package/models/insured-object-class.ts +18 -0
- package/models/invoice-item-class.ts +126 -0
- package/models/invoice-status-class.ts +56 -0
- package/models/lead-class.ts +10 -4
- package/models/patch-lead-request-dto.ts +83 -0
- package/models/policy-premium-class.ts +0 -12
- package/models/policy-premium-item-class.ts +0 -18
- package/models/premium-override-dto.ts +1 -6
- package/models/shared-invoice-class.ts +161 -0
- package/models/shared-update-premium-formula-request-dto.ts +1 -0
- package/models/update-insured-object-request-dto.ts +18 -0
- package/models/update-lead-request-dto.ts +12 -0
- package/models/update-premium-formula-request-dto.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -40,6 +40,7 @@ models/create-product-field-response-class.ts
|
|
|
40
40
|
models/create-product-request-dto.ts
|
|
41
41
|
models/create-product-response-class.ts
|
|
42
42
|
models/csv-product-factor-dto.ts
|
|
43
|
+
models/currency-class.ts
|
|
43
44
|
models/delete-request-dto.ts
|
|
44
45
|
models/delete-response-class.ts
|
|
45
46
|
models/get-insured-object-response-class.ts
|
|
@@ -67,6 +68,8 @@ models/grouped-product-factors-response-class.ts
|
|
|
67
68
|
models/index.ts
|
|
68
69
|
models/insured-object-class.ts
|
|
69
70
|
models/insured-object-type-class.ts
|
|
71
|
+
models/invoice-item-class.ts
|
|
72
|
+
models/invoice-status-class.ts
|
|
70
73
|
models/lead-bank-account-class.ts
|
|
71
74
|
models/lead-class.ts
|
|
72
75
|
models/lead-status-class.ts
|
|
@@ -81,6 +84,7 @@ models/list-product-field-types-response-class.ts
|
|
|
81
84
|
models/list-product-fields-response-class.ts
|
|
82
85
|
models/list-products-response-class.ts
|
|
83
86
|
models/list-request-dto.ts
|
|
87
|
+
models/patch-lead-request-dto.ts
|
|
84
88
|
models/policy-class.ts
|
|
85
89
|
models/policy-object-class.ts
|
|
86
90
|
models/policy-object-dto.ts
|
|
@@ -97,6 +101,7 @@ models/product-factor-value-class.ts
|
|
|
97
101
|
models/product-field-class.ts
|
|
98
102
|
models/product-field-type-class.ts
|
|
99
103
|
models/product-version-class.ts
|
|
104
|
+
models/shared-invoice-class.ts
|
|
100
105
|
models/shared-product-field-class.ts
|
|
101
106
|
models/shared-update-premium-formula-request-dto.ts
|
|
102
107
|
models/store-product-factors-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/insurance-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/insurance-sdk-node@1.11.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk-node@1.11.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
package/api/leads-api.ts
CHANGED
|
@@ -93,16 +93,14 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
93
93
|
* 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.
|
|
94
94
|
* @summary Retrieve the lead
|
|
95
95
|
* @param {string} code Unique identifier for the object.
|
|
96
|
-
* @param {string} expand
|
|
97
96
|
* @param {string} [authorization] Bearer Token
|
|
97
|
+
* @param {string} [expand]
|
|
98
98
|
* @param {*} [options] Override http request option.
|
|
99
99
|
* @throws {RequiredError}
|
|
100
100
|
*/
|
|
101
|
-
getLead: async (code: string,
|
|
101
|
+
getLead: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
102
102
|
// verify required parameter 'code' is not null or undefined
|
|
103
103
|
assertParamExists('getLead', 'code', code)
|
|
104
|
-
// verify required parameter 'expand' is not null or undefined
|
|
105
|
-
assertParamExists('getLead', 'expand', expand)
|
|
106
104
|
const localVarPath = `/insuranceservice/v1/leads/{code}`
|
|
107
105
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
108
106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -289,13 +287,13 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
289
287
|
* 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.
|
|
290
288
|
* @summary Retrieve the lead
|
|
291
289
|
* @param {string} code Unique identifier for the object.
|
|
292
|
-
* @param {string} expand
|
|
293
290
|
* @param {string} [authorization] Bearer Token
|
|
291
|
+
* @param {string} [expand]
|
|
294
292
|
* @param {*} [options] Override http request option.
|
|
295
293
|
* @throws {RequiredError}
|
|
296
294
|
*/
|
|
297
|
-
async getLead(code: string,
|
|
298
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code,
|
|
295
|
+
async getLead(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>> {
|
|
296
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code, authorization, expand, options);
|
|
299
297
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
300
298
|
},
|
|
301
299
|
/**
|
|
@@ -353,13 +351,13 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
353
351
|
* 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.
|
|
354
352
|
* @summary Retrieve the lead
|
|
355
353
|
* @param {string} code Unique identifier for the object.
|
|
356
|
-
* @param {string} expand
|
|
357
354
|
* @param {string} [authorization] Bearer Token
|
|
355
|
+
* @param {string} [expand]
|
|
358
356
|
* @param {*} [options] Override http request option.
|
|
359
357
|
* @throws {RequiredError}
|
|
360
358
|
*/
|
|
361
|
-
getLead(code: string,
|
|
362
|
-
return localVarFp.getLead(code,
|
|
359
|
+
getLead(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass> {
|
|
360
|
+
return localVarFp.getLead(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
363
361
|
},
|
|
364
362
|
/**
|
|
365
363
|
* 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.
|
|
@@ -427,18 +425,18 @@ export interface LeadsApiGetLeadRequest {
|
|
|
427
425
|
readonly code: string
|
|
428
426
|
|
|
429
427
|
/**
|
|
430
|
-
*
|
|
428
|
+
* Bearer Token
|
|
431
429
|
* @type {string}
|
|
432
430
|
* @memberof LeadsApiGetLead
|
|
433
431
|
*/
|
|
434
|
-
readonly
|
|
432
|
+
readonly authorization?: string
|
|
435
433
|
|
|
436
434
|
/**
|
|
437
|
-
*
|
|
435
|
+
*
|
|
438
436
|
* @type {string}
|
|
439
437
|
* @memberof LeadsApiGetLead
|
|
440
438
|
*/
|
|
441
|
-
readonly
|
|
439
|
+
readonly expand?: string
|
|
442
440
|
}
|
|
443
441
|
|
|
444
442
|
/**
|
|
@@ -553,7 +551,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
553
551
|
* @memberof LeadsApi
|
|
554
552
|
*/
|
|
555
553
|
public getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig) {
|
|
556
|
-
return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.
|
|
554
|
+
return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
557
555
|
}
|
|
558
556
|
|
|
559
557
|
/**
|
package/base.ts
CHANGED
|
@@ -21,7 +21,7 @@ import * as fs from 'fs';
|
|
|
21
21
|
import * as path from 'path';
|
|
22
22
|
import * as os from 'os';
|
|
23
23
|
|
|
24
|
-
export const BASE_PATH = "
|
|
24
|
+
export const BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
|
|
25
25
|
const CONFIG_DIRECTORY = '.emil';
|
|
26
26
|
const CONFIG_FILENAME = 'credentials';
|
|
27
27
|
const KEY_USERNAME = 'emil_username';
|
package/dist/api/leads-api.d.ts
CHANGED
|
@@ -36,12 +36,12 @@ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
36
36
|
* 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.
|
|
37
37
|
* @summary Retrieve the lead
|
|
38
38
|
* @param {string} code Unique identifier for the object.
|
|
39
|
-
* @param {string} expand
|
|
40
39
|
* @param {string} [authorization] Bearer Token
|
|
40
|
+
* @param {string} [expand]
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
*/
|
|
44
|
-
getLead: (code: string,
|
|
44
|
+
getLead: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
45
|
/**
|
|
46
46
|
* 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.
|
|
47
47
|
* @summary List leads
|
|
@@ -85,12 +85,12 @@ export declare const LeadsApiFp: (configuration?: Configuration) => {
|
|
|
85
85
|
* 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.
|
|
86
86
|
* @summary Retrieve the lead
|
|
87
87
|
* @param {string} code Unique identifier for the object.
|
|
88
|
-
* @param {string} expand
|
|
89
88
|
* @param {string} [authorization] Bearer Token
|
|
89
|
+
* @param {string} [expand]
|
|
90
90
|
* @param {*} [options] Override http request option.
|
|
91
91
|
* @throws {RequiredError}
|
|
92
92
|
*/
|
|
93
|
-
getLead(code: string,
|
|
93
|
+
getLead(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
|
|
94
94
|
/**
|
|
95
95
|
* 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.
|
|
96
96
|
* @summary List leads
|
|
@@ -134,12 +134,12 @@ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
134
134
|
* 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.
|
|
135
135
|
* @summary Retrieve the lead
|
|
136
136
|
* @param {string} code Unique identifier for the object.
|
|
137
|
-
* @param {string} expand
|
|
138
137
|
* @param {string} [authorization] Bearer Token
|
|
138
|
+
* @param {string} [expand]
|
|
139
139
|
* @param {*} [options] Override http request option.
|
|
140
140
|
* @throws {RequiredError}
|
|
141
141
|
*/
|
|
142
|
-
getLead(code: string,
|
|
142
|
+
getLead(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
|
|
143
143
|
/**
|
|
144
144
|
* 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.
|
|
145
145
|
* @summary List leads
|
|
@@ -197,17 +197,17 @@ export interface LeadsApiGetLeadRequest {
|
|
|
197
197
|
*/
|
|
198
198
|
readonly code: string;
|
|
199
199
|
/**
|
|
200
|
-
*
|
|
200
|
+
* Bearer Token
|
|
201
201
|
* @type {string}
|
|
202
202
|
* @memberof LeadsApiGetLead
|
|
203
203
|
*/
|
|
204
|
-
readonly
|
|
204
|
+
readonly authorization?: string;
|
|
205
205
|
/**
|
|
206
|
-
*
|
|
206
|
+
*
|
|
207
207
|
* @type {string}
|
|
208
208
|
* @memberof LeadsApiGetLead
|
|
209
209
|
*/
|
|
210
|
-
readonly
|
|
210
|
+
readonly expand?: string;
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
213
|
* Request parameters for listLeads operation in LeadsApi.
|
package/dist/api/leads-api.js
CHANGED
|
@@ -149,12 +149,12 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
149
149
|
* 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.
|
|
150
150
|
* @summary Retrieve the lead
|
|
151
151
|
* @param {string} code Unique identifier for the object.
|
|
152
|
-
* @param {string} expand
|
|
153
152
|
* @param {string} [authorization] Bearer Token
|
|
153
|
+
* @param {string} [expand]
|
|
154
154
|
* @param {*} [options] Override http request option.
|
|
155
155
|
* @throws {RequiredError}
|
|
156
156
|
*/
|
|
157
|
-
getLead: function (code,
|
|
157
|
+
getLead: function (code, authorization, expand, options) {
|
|
158
158
|
if (options === void 0) { options = {}; }
|
|
159
159
|
return __awaiter(_this, void 0, void 0, function () {
|
|
160
160
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -163,8 +163,6 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
163
163
|
case 0:
|
|
164
164
|
// verify required parameter 'code' is not null or undefined
|
|
165
165
|
(0, common_1.assertParamExists)('getLead', 'code', code);
|
|
166
|
-
// verify required parameter 'expand' is not null or undefined
|
|
167
|
-
(0, common_1.assertParamExists)('getLead', 'expand', expand);
|
|
168
166
|
localVarPath = "/insuranceservice/v1/leads/{code}"
|
|
169
167
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
170
168
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -355,17 +353,17 @@ var LeadsApiFp = function (configuration) {
|
|
|
355
353
|
* 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.
|
|
356
354
|
* @summary Retrieve the lead
|
|
357
355
|
* @param {string} code Unique identifier for the object.
|
|
358
|
-
* @param {string} expand
|
|
359
356
|
* @param {string} [authorization] Bearer Token
|
|
357
|
+
* @param {string} [expand]
|
|
360
358
|
* @param {*} [options] Override http request option.
|
|
361
359
|
* @throws {RequiredError}
|
|
362
360
|
*/
|
|
363
|
-
getLead: function (code,
|
|
361
|
+
getLead: function (code, authorization, expand, options) {
|
|
364
362
|
return __awaiter(this, void 0, void 0, function () {
|
|
365
363
|
var localVarAxiosArgs;
|
|
366
364
|
return __generator(this, function (_a) {
|
|
367
365
|
switch (_a.label) {
|
|
368
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code,
|
|
366
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code, authorization, expand, options)];
|
|
369
367
|
case 1:
|
|
370
368
|
localVarAxiosArgs = _a.sent();
|
|
371
369
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -446,13 +444,13 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
446
444
|
* 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.
|
|
447
445
|
* @summary Retrieve the lead
|
|
448
446
|
* @param {string} code Unique identifier for the object.
|
|
449
|
-
* @param {string} expand
|
|
450
447
|
* @param {string} [authorization] Bearer Token
|
|
448
|
+
* @param {string} [expand]
|
|
451
449
|
* @param {*} [options] Override http request option.
|
|
452
450
|
* @throws {RequiredError}
|
|
453
451
|
*/
|
|
454
|
-
getLead: function (code,
|
|
455
|
-
return localVarFp.getLead(code,
|
|
452
|
+
getLead: function (code, authorization, expand, options) {
|
|
453
|
+
return localVarFp.getLead(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
456
454
|
},
|
|
457
455
|
/**
|
|
458
456
|
* 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.
|
|
@@ -518,7 +516,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
518
516
|
*/
|
|
519
517
|
LeadsApi.prototype.getLead = function (requestParameters, options) {
|
|
520
518
|
var _this = this;
|
|
521
|
-
return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.
|
|
519
|
+
return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
522
520
|
};
|
|
523
521
|
/**
|
|
524
522
|
* 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.
|
package/dist/base.js
CHANGED
|
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
109
109
|
var fs = __importStar(require("fs"));
|
|
110
110
|
var path = __importStar(require("path"));
|
|
111
111
|
var os = __importStar(require("os"));
|
|
112
|
-
exports.BASE_PATH = "
|
|
112
|
+
exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
|
|
113
113
|
var CONFIG_DIRECTORY = '.emil';
|
|
114
114
|
var CONFIG_FILENAME = 'credentials';
|
|
115
115
|
var KEY_USERNAME = 'emil_username';
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateInsuredObjectRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
* Unique identifier referencing the
|
|
19
|
+
* Unique identifier referencing the Product version.
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof CreateInsuredObjectRequestDto
|
|
22
22
|
*/
|
|
@@ -34,9 +34,27 @@ export interface CreateInsuredObjectRequestDto {
|
|
|
34
34
|
*/
|
|
35
35
|
'label': string;
|
|
36
36
|
/**
|
|
37
|
-
* Unique identifier referencing the
|
|
37
|
+
* Unique identifier referencing the Insured object type.
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof CreateInsuredObjectRequestDto
|
|
40
40
|
*/
|
|
41
41
|
'insuredObjectTypeId': number;
|
|
42
|
+
/**
|
|
43
|
+
* Insured object count.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CreateInsuredObjectRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'count'?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Minimum insured object count.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CreateInsuredObjectRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'min'?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Maximum insured object count.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof CreateInsuredObjectRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'max'?: number;
|
|
42
60
|
}
|
|
@@ -32,6 +32,24 @@ export interface CreateLeadRequestDto {
|
|
|
32
32
|
* @memberof CreateLeadRequestDto
|
|
33
33
|
*/
|
|
34
34
|
'productVersionId'?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Account code. The create lead request should either contain accountCode or account.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateLeadRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'accountCode'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Account. The create lead request should either contain accountCode or account.
|
|
43
|
+
* @type {CreateAccountRequestDto}
|
|
44
|
+
* @memberof CreateLeadRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'account'?: CreateAccountRequestDto;
|
|
47
|
+
/**
|
|
48
|
+
* Policy
|
|
49
|
+
* @type {CreatePolicyRequestDto}
|
|
50
|
+
* @memberof CreateLeadRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'policy': CreatePolicyRequestDto;
|
|
35
53
|
/**
|
|
36
54
|
* Bank account details.
|
|
37
55
|
* @type {CreateBankAccountRequestDto}
|
|
@@ -62,16 +80,4 @@ export interface CreateLeadRequestDto {
|
|
|
62
80
|
* @memberof CreateLeadRequestDto
|
|
63
81
|
*/
|
|
64
82
|
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {CreateAccountRequestDto}
|
|
68
|
-
* @memberof CreateLeadRequestDto
|
|
69
|
-
*/
|
|
70
|
-
'account': CreateAccountRequestDto;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {CreatePolicyRequestDto}
|
|
74
|
-
* @memberof CreateLeadRequestDto
|
|
75
|
-
*/
|
|
76
|
-
'policy': CreatePolicyRequestDto;
|
|
77
83
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService 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 CurrencyClass
|
|
16
|
+
*/
|
|
17
|
+
export interface CurrencyClass {
|
|
18
|
+
/**
|
|
19
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CurrencyClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Name of currency in English.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CurrencyClass
|
|
28
|
+
*/
|
|
29
|
+
'name': string;
|
|
30
|
+
/**
|
|
31
|
+
* Name of currency in native language.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CurrencyClass
|
|
34
|
+
*/
|
|
35
|
+
'nativeName': string;
|
|
36
|
+
/**
|
|
37
|
+
* Code defined by ISO 4217 standard.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CurrencyClass
|
|
40
|
+
*/
|
|
41
|
+
'code': string;
|
|
42
|
+
/**
|
|
43
|
+
* Currency symbols are graphical representations used to denote a particular currency in written or printed form.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CurrencyClass
|
|
46
|
+
*/
|
|
47
|
+
'symbol': string;
|
|
48
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService 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
|
@@ -20,6 +20,7 @@ export * from './create-product-field-response-class';
|
|
|
20
20
|
export * from './create-product-request-dto';
|
|
21
21
|
export * from './create-product-response-class';
|
|
22
22
|
export * from './csv-product-factor-dto';
|
|
23
|
+
export * from './currency-class';
|
|
23
24
|
export * from './delete-request-dto';
|
|
24
25
|
export * from './delete-response-class';
|
|
25
26
|
export * from './get-insured-object-response-class';
|
|
@@ -46,6 +47,8 @@ export * from './grouped-product-factor-value-class';
|
|
|
46
47
|
export * from './grouped-product-factors-response-class';
|
|
47
48
|
export * from './insured-object-class';
|
|
48
49
|
export * from './insured-object-type-class';
|
|
50
|
+
export * from './invoice-item-class';
|
|
51
|
+
export * from './invoice-status-class';
|
|
49
52
|
export * from './lead-bank-account-class';
|
|
50
53
|
export * from './lead-class';
|
|
51
54
|
export * from './lead-status-class';
|
|
@@ -60,6 +63,7 @@ export * from './list-product-field-types-response-class';
|
|
|
60
63
|
export * from './list-product-fields-response-class';
|
|
61
64
|
export * from './list-products-response-class';
|
|
62
65
|
export * from './list-request-dto';
|
|
66
|
+
export * from './patch-lead-request-dto';
|
|
63
67
|
export * from './policy-class';
|
|
64
68
|
export * from './policy-object-class';
|
|
65
69
|
export * from './policy-object-dto';
|
|
@@ -76,6 +80,7 @@ export * from './product-factor-value-class';
|
|
|
76
80
|
export * from './product-field-class';
|
|
77
81
|
export * from './product-field-type-class';
|
|
78
82
|
export * from './product-version-class';
|
|
83
|
+
export * from './shared-invoice-class';
|
|
79
84
|
export * from './shared-product-field-class';
|
|
80
85
|
export * from './shared-update-premium-formula-request-dto';
|
|
81
86
|
export * from './store-product-factors-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -36,6 +36,7 @@ __exportStar(require("./create-product-field-response-class"), exports);
|
|
|
36
36
|
__exportStar(require("./create-product-request-dto"), exports);
|
|
37
37
|
__exportStar(require("./create-product-response-class"), exports);
|
|
38
38
|
__exportStar(require("./csv-product-factor-dto"), exports);
|
|
39
|
+
__exportStar(require("./currency-class"), exports);
|
|
39
40
|
__exportStar(require("./delete-request-dto"), exports);
|
|
40
41
|
__exportStar(require("./delete-response-class"), exports);
|
|
41
42
|
__exportStar(require("./get-insured-object-response-class"), exports);
|
|
@@ -62,6 +63,8 @@ __exportStar(require("./grouped-product-factor-value-class"), exports);
|
|
|
62
63
|
__exportStar(require("./grouped-product-factors-response-class"), exports);
|
|
63
64
|
__exportStar(require("./insured-object-class"), exports);
|
|
64
65
|
__exportStar(require("./insured-object-type-class"), exports);
|
|
66
|
+
__exportStar(require("./invoice-item-class"), exports);
|
|
67
|
+
__exportStar(require("./invoice-status-class"), exports);
|
|
65
68
|
__exportStar(require("./lead-bank-account-class"), exports);
|
|
66
69
|
__exportStar(require("./lead-class"), exports);
|
|
67
70
|
__exportStar(require("./lead-status-class"), exports);
|
|
@@ -76,6 +79,7 @@ __exportStar(require("./list-product-field-types-response-class"), exports);
|
|
|
76
79
|
__exportStar(require("./list-product-fields-response-class"), exports);
|
|
77
80
|
__exportStar(require("./list-products-response-class"), exports);
|
|
78
81
|
__exportStar(require("./list-request-dto"), exports);
|
|
82
|
+
__exportStar(require("./patch-lead-request-dto"), exports);
|
|
79
83
|
__exportStar(require("./policy-class"), exports);
|
|
80
84
|
__exportStar(require("./policy-object-class"), exports);
|
|
81
85
|
__exportStar(require("./policy-object-dto"), exports);
|
|
@@ -92,6 +96,7 @@ __exportStar(require("./product-factor-value-class"), exports);
|
|
|
92
96
|
__exportStar(require("./product-field-class"), exports);
|
|
93
97
|
__exportStar(require("./product-field-type-class"), exports);
|
|
94
98
|
__exportStar(require("./product-version-class"), exports);
|
|
99
|
+
__exportStar(require("./shared-invoice-class"), exports);
|
|
95
100
|
__exportStar(require("./shared-product-field-class"), exports);
|
|
96
101
|
__exportStar(require("./shared-update-premium-formula-request-dto"), exports);
|
|
97
102
|
__exportStar(require("./store-product-factors-request-dto"), exports);
|
|
@@ -46,6 +46,24 @@ export interface InsuredObjectClass {
|
|
|
46
46
|
* @memberof InsuredObjectClass
|
|
47
47
|
*/
|
|
48
48
|
'insuredObjectTypeId': number;
|
|
49
|
+
/**
|
|
50
|
+
* Insured object count default to 1.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof InsuredObjectClass
|
|
53
|
+
*/
|
|
54
|
+
'count': number;
|
|
55
|
+
/**
|
|
56
|
+
* Minimum insured object count default to 0.
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof InsuredObjectClass
|
|
59
|
+
*/
|
|
60
|
+
'min': number;
|
|
61
|
+
/**
|
|
62
|
+
* Maximum insured object count default to 1.
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof InsuredObjectClass
|
|
65
|
+
*/
|
|
66
|
+
'max': number;
|
|
49
67
|
/**
|
|
50
68
|
* Product fields.
|
|
51
69
|
* @type {Array<SharedProductFieldClass>}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService 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 InvoiceItemClass
|
|
16
|
+
*/
|
|
17
|
+
export interface InvoiceItemClass {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier referencing the invoice item.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof InvoiceItemClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier referencing the premium formula.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof InvoiceItemClass
|
|
28
|
+
*/
|
|
29
|
+
'premiumFormulaId': number;
|
|
30
|
+
/**
|
|
31
|
+
* Product name.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InvoiceItemClass
|
|
34
|
+
*/
|
|
35
|
+
'name': string;
|
|
36
|
+
/**
|
|
37
|
+
* Tax code.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof InvoiceItemClass
|
|
40
|
+
*/
|
|
41
|
+
'taxCode': string;
|
|
42
|
+
/**
|
|
43
|
+
* Unit of Premium units are determined based on time or distance.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof InvoiceItemClass
|
|
46
|
+
*/
|
|
47
|
+
'unit': InvoiceItemClassUnitEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Invoice group.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof InvoiceItemClass
|
|
52
|
+
*/
|
|
53
|
+
'group': string;
|
|
54
|
+
/**
|
|
55
|
+
* Item quantity. This property determines number of days during the billing interval.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof InvoiceItemClass
|
|
58
|
+
*/
|
|
59
|
+
'quantity': number;
|
|
60
|
+
/**
|
|
61
|
+
* Item price per unit.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof InvoiceItemClass
|
|
64
|
+
*/
|
|
65
|
+
'pricePerUnit': number;
|
|
66
|
+
/**
|
|
67
|
+
* Item tax rate.
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof InvoiceItemClass
|
|
70
|
+
*/
|
|
71
|
+
'taxRate': number;
|
|
72
|
+
/**
|
|
73
|
+
* Net amount in cents. It is the result of the multiplication of the quantity by the pricePerUnit.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof InvoiceItemClass
|
|
76
|
+
*/
|
|
77
|
+
'netAmount': number;
|
|
78
|
+
/**
|
|
79
|
+
* Tax amount in cents.
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof InvoiceItemClass
|
|
82
|
+
*/
|
|
83
|
+
'taxAmount': number;
|
|
84
|
+
/**
|
|
85
|
+
* Gross amount in cents. It is the result of the sum of taxAmount and netAmount.
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof InvoiceItemClass
|
|
88
|
+
*/
|
|
89
|
+
'grossAmount': number;
|
|
90
|
+
/**
|
|
91
|
+
* Credit amount.
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof InvoiceItemClass
|
|
94
|
+
*/
|
|
95
|
+
'creditAmount': number;
|
|
96
|
+
/**
|
|
97
|
+
* This is the date at which the invoice item interval starts.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof InvoiceItemClass
|
|
100
|
+
*/
|
|
101
|
+
'billingIntervalFrom': string;
|
|
102
|
+
/**
|
|
103
|
+
* This is the date at which the invoice item interval ends.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof InvoiceItemClass
|
|
106
|
+
*/
|
|
107
|
+
'billingIntervalTo': string;
|
|
108
|
+
}
|
|
109
|
+
export declare const InvoiceItemClassUnitEnum: {
|
|
110
|
+
readonly Day: "day";
|
|
111
|
+
readonly Week: "week";
|
|
112
|
+
readonly Month: "month";
|
|
113
|
+
readonly Quarter: "quarter";
|
|
114
|
+
readonly Year: "year";
|
|
115
|
+
readonly OneTimePayment: "oneTimePayment";
|
|
116
|
+
};
|
|
117
|
+
export type InvoiceItemClassUnitEnum = typeof InvoiceItemClassUnitEnum[keyof typeof InvoiceItemClassUnitEnum];
|