@emilgroup/insurance-sdk 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 +2 -0
- package/dist/api/leads-api.d.ts +10 -10
- package/dist/api/leads-api.js +9 -11
- package/dist/base.js +3 -0
- 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@1.
|
|
20
|
+
npm install @emilgroup/insurance-sdk@1.11.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk@1.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk@1.11.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
package/api/leads-api.ts
CHANGED
|
@@ -89,16 +89,14 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
89
89
|
* 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.
|
|
90
90
|
* @summary Retrieve the lead
|
|
91
91
|
* @param {string} code Unique identifier for the object.
|
|
92
|
-
* @param {string} expand
|
|
93
92
|
* @param {string} [authorization] Bearer Token
|
|
93
|
+
* @param {string} [expand]
|
|
94
94
|
* @param {*} [options] Override http request option.
|
|
95
95
|
* @throws {RequiredError}
|
|
96
96
|
*/
|
|
97
|
-
getLead: async (code: string,
|
|
97
|
+
getLead: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
98
98
|
// verify required parameter 'code' is not null or undefined
|
|
99
99
|
assertParamExists('getLead', 'code', code)
|
|
100
|
-
// verify required parameter 'expand' is not null or undefined
|
|
101
|
-
assertParamExists('getLead', 'expand', expand)
|
|
102
100
|
const localVarPath = `/insuranceservice/v1/leads/{code}`
|
|
103
101
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
104
102
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -285,13 +283,13 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
285
283
|
* 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.
|
|
286
284
|
* @summary Retrieve the lead
|
|
287
285
|
* @param {string} code Unique identifier for the object.
|
|
288
|
-
* @param {string} expand
|
|
289
286
|
* @param {string} [authorization] Bearer Token
|
|
287
|
+
* @param {string} [expand]
|
|
290
288
|
* @param {*} [options] Override http request option.
|
|
291
289
|
* @throws {RequiredError}
|
|
292
290
|
*/
|
|
293
|
-
async getLead(code: string,
|
|
294
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code,
|
|
291
|
+
async getLead(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>> {
|
|
292
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code, authorization, expand, options);
|
|
295
293
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
296
294
|
},
|
|
297
295
|
/**
|
|
@@ -349,13 +347,13 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
349
347
|
* 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.
|
|
350
348
|
* @summary Retrieve the lead
|
|
351
349
|
* @param {string} code Unique identifier for the object.
|
|
352
|
-
* @param {string} expand
|
|
353
350
|
* @param {string} [authorization] Bearer Token
|
|
351
|
+
* @param {string} [expand]
|
|
354
352
|
* @param {*} [options] Override http request option.
|
|
355
353
|
* @throws {RequiredError}
|
|
356
354
|
*/
|
|
357
|
-
getLead(code: string,
|
|
358
|
-
return localVarFp.getLead(code,
|
|
355
|
+
getLead(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass> {
|
|
356
|
+
return localVarFp.getLead(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
359
357
|
},
|
|
360
358
|
/**
|
|
361
359
|
* 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.
|
|
@@ -423,18 +421,18 @@ export interface LeadsApiGetLeadRequest {
|
|
|
423
421
|
readonly code: string
|
|
424
422
|
|
|
425
423
|
/**
|
|
426
|
-
*
|
|
424
|
+
* Bearer Token
|
|
427
425
|
* @type {string}
|
|
428
426
|
* @memberof LeadsApiGetLead
|
|
429
427
|
*/
|
|
430
|
-
readonly
|
|
428
|
+
readonly authorization?: string
|
|
431
429
|
|
|
432
430
|
/**
|
|
433
|
-
*
|
|
431
|
+
*
|
|
434
432
|
* @type {string}
|
|
435
433
|
* @memberof LeadsApiGetLead
|
|
436
434
|
*/
|
|
437
|
-
readonly
|
|
435
|
+
readonly expand?: string
|
|
438
436
|
}
|
|
439
437
|
|
|
440
438
|
/**
|
|
@@ -549,7 +547,7 @@ export class LeadsApi extends BaseAPI {
|
|
|
549
547
|
* @memberof LeadsApi
|
|
550
548
|
*/
|
|
551
549
|
public getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig) {
|
|
552
|
-
return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.
|
|
550
|
+
return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
553
551
|
}
|
|
554
552
|
|
|
555
553
|
/**
|
package/base.ts
CHANGED
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
|
@@ -145,12 +145,12 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
* 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.
|
|
146
146
|
* @summary Retrieve the lead
|
|
147
147
|
* @param {string} code Unique identifier for the object.
|
|
148
|
-
* @param {string} expand
|
|
149
148
|
* @param {string} [authorization] Bearer Token
|
|
149
|
+
* @param {string} [expand]
|
|
150
150
|
* @param {*} [options] Override http request option.
|
|
151
151
|
* @throws {RequiredError}
|
|
152
152
|
*/
|
|
153
|
-
getLead: function (code,
|
|
153
|
+
getLead: function (code, authorization, expand, options) {
|
|
154
154
|
if (options === void 0) { options = {}; }
|
|
155
155
|
return __awaiter(_this, void 0, void 0, function () {
|
|
156
156
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -159,8 +159,6 @@ var LeadsApiAxiosParamCreator = function (configuration) {
|
|
|
159
159
|
case 0:
|
|
160
160
|
// verify required parameter 'code' is not null or undefined
|
|
161
161
|
(0, common_1.assertParamExists)('getLead', 'code', code);
|
|
162
|
-
// verify required parameter 'expand' is not null or undefined
|
|
163
|
-
(0, common_1.assertParamExists)('getLead', 'expand', expand);
|
|
164
162
|
localVarPath = "/insuranceservice/v1/leads/{code}"
|
|
165
163
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
166
164
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -351,17 +349,17 @@ var LeadsApiFp = function (configuration) {
|
|
|
351
349
|
* 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.
|
|
352
350
|
* @summary Retrieve the lead
|
|
353
351
|
* @param {string} code Unique identifier for the object.
|
|
354
|
-
* @param {string} expand
|
|
355
352
|
* @param {string} [authorization] Bearer Token
|
|
353
|
+
* @param {string} [expand]
|
|
356
354
|
* @param {*} [options] Override http request option.
|
|
357
355
|
* @throws {RequiredError}
|
|
358
356
|
*/
|
|
359
|
-
getLead: function (code,
|
|
357
|
+
getLead: function (code, authorization, expand, options) {
|
|
360
358
|
return __awaiter(this, void 0, void 0, function () {
|
|
361
359
|
var localVarAxiosArgs;
|
|
362
360
|
return __generator(this, function (_a) {
|
|
363
361
|
switch (_a.label) {
|
|
364
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code,
|
|
362
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLead(code, authorization, expand, options)];
|
|
365
363
|
case 1:
|
|
366
364
|
localVarAxiosArgs = _a.sent();
|
|
367
365
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -442,13 +440,13 @@ var LeadsApiFactory = function (configuration, basePath, axios) {
|
|
|
442
440
|
* 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.
|
|
443
441
|
* @summary Retrieve the lead
|
|
444
442
|
* @param {string} code Unique identifier for the object.
|
|
445
|
-
* @param {string} expand
|
|
446
443
|
* @param {string} [authorization] Bearer Token
|
|
444
|
+
* @param {string} [expand]
|
|
447
445
|
* @param {*} [options] Override http request option.
|
|
448
446
|
* @throws {RequiredError}
|
|
449
447
|
*/
|
|
450
|
-
getLead: function (code,
|
|
451
|
-
return localVarFp.getLead(code,
|
|
448
|
+
getLead: function (code, authorization, expand, options) {
|
|
449
|
+
return localVarFp.getLead(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
452
450
|
},
|
|
453
451
|
/**
|
|
454
452
|
* 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.
|
|
@@ -514,7 +512,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
514
512
|
*/
|
|
515
513
|
LeadsApi.prototype.getLead = function (requestParameters, options) {
|
|
516
514
|
var _this = this;
|
|
517
|
-
return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.
|
|
515
|
+
return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
518
516
|
};
|
|
519
517
|
/**
|
|
520
518
|
* 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
|
@@ -204,6 +204,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
204
204
|
if (typeof window !== 'undefined') {
|
|
205
205
|
this.tokenData = (0, common_1.defaultStorage)().get(TOKEN_DATA) || {};
|
|
206
206
|
}
|
|
207
|
+
else {
|
|
208
|
+
this.tokenData = {};
|
|
209
|
+
}
|
|
207
210
|
};
|
|
208
211
|
BaseAPI.prototype.cleanTokenData = function () {
|
|
209
212
|
this.storeTokenData(null);
|
|
@@ -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];
|