@emilgroup/insurance-sdk-node 1.23.0 → 1.24.1

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.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +0 -2
  2. package/README.md +2 -2
  3. package/api/premium-formulas-api.ts +0 -107
  4. package/api/products-api.ts +4 -122
  5. package/dist/api/premium-formulas-api.d.ts +0 -57
  6. package/dist/api/premium-formulas-api.js +0 -93
  7. package/dist/api/products-api.d.ts +4 -68
  8. package/dist/api/products-api.js +3 -103
  9. package/dist/models/create-lead-policy-request-dto.d.ts +1 -1
  10. package/dist/models/create-lead-request-dto.d.ts +7 -7
  11. package/dist/models/create-premium-formula-request-dto.d.ts +0 -12
  12. package/dist/models/get-product-request-dto.d.ts +4 -10
  13. package/dist/models/grpc-patch-lead-request-dto.d.ts +1 -1
  14. package/dist/models/grpc-update-lead-request-dto.d.ts +7 -7
  15. package/dist/models/index.d.ts +0 -2
  16. package/dist/models/index.js +0 -2
  17. package/dist/models/patch-lead-request-dto.d.ts +1 -1
  18. package/dist/models/policy-object-dto.d.ts +1 -1
  19. package/dist/models/premium-formula-class.d.ts +0 -12
  20. package/dist/models/shared-create-lead-policy-request-dto.d.ts +1 -1
  21. package/dist/models/shared-lead-policy-object-dto.d.ts +1 -1
  22. package/dist/models/shared-update-premium-formula-request-dto.d.ts +0 -12
  23. package/dist/models/update-lead-request-dto.d.ts +7 -7
  24. package/dist/models/update-premium-formula-request-dto.d.ts +0 -12
  25. package/models/create-lead-policy-request-dto.ts +1 -1
  26. package/models/create-lead-request-dto.ts +7 -7
  27. package/models/create-premium-formula-request-dto.ts +0 -12
  28. package/models/get-product-request-dto.ts +4 -10
  29. package/models/grpc-patch-lead-request-dto.ts +1 -1
  30. package/models/grpc-update-lead-request-dto.ts +7 -7
  31. package/models/index.ts +0 -2
  32. package/models/patch-lead-request-dto.ts +1 -1
  33. package/models/policy-object-dto.ts +1 -1
  34. package/models/premium-formula-class.ts +0 -12
  35. package/models/shared-create-lead-policy-request-dto.ts +1 -1
  36. package/models/shared-lead-policy-object-dto.ts +1 -1
  37. package/models/shared-update-premium-formula-request-dto.ts +0 -12
  38. package/models/update-lead-request-dto.ts +7 -7
  39. package/models/update-premium-formula-request-dto.ts +0 -12
  40. package/package.json +1 -1
  41. package/dist/models/empty-response-class.d.ts +0 -24
  42. package/dist/models/empty-response-class.js +0 -15
  43. package/dist/models/swap-premium-formulas-order-requestt-dto.d.ts +0 -30
  44. package/dist/models/swap-premium-formulas-order-requestt-dto.js +0 -15
  45. package/models/empty-response-class.ts +0 -30
  46. package/models/swap-premium-formulas-order-requestt-dto.ts +0 -36
@@ -46,23 +46,13 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
46
46
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
47
47
  * @summary Retrieve the product
48
48
  * @param {string} code Unique identifier for the object.
49
- * @param {number} id Unique identifier referencing the product.
49
+ * @param {number} id Product id
50
50
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
51
51
  * @param {string} [expand] Fields to expand response by
52
52
  * @param {*} [options] Override http request option.
53
53
  * @throws {RequiredError}
54
54
  */
55
55
  getProductByCode: (code: string, id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
56
- /**
57
- * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
58
- * @summary Retrieve the product
59
- * @param {number} id Unique identifier referencing the product.
60
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
61
- * @param {string} [expand] Fields to expand response by
62
- * @param {*} [options] Override http request option.
63
- * @throws {RequiredError}
64
- */
65
- getProductByIdentifier: (id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
56
  /**
67
57
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
68
58
  * @summary List products
@@ -115,23 +105,13 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
115
105
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
116
106
  * @summary Retrieve the product
117
107
  * @param {string} code Unique identifier for the object.
118
- * @param {number} id Unique identifier referencing the product.
108
+ * @param {number} id Product id
119
109
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
120
110
  * @param {string} [expand] Fields to expand response by
121
111
  * @param {*} [options] Override http request option.
122
112
  * @throws {RequiredError}
123
113
  */
124
114
  getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
125
- /**
126
- * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
127
- * @summary Retrieve the product
128
- * @param {number} id Unique identifier referencing the product.
129
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
130
- * @param {string} [expand] Fields to expand response by
131
- * @param {*} [options] Override http request option.
132
- * @throws {RequiredError}
133
- */
134
- getProductByIdentifier(id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
135
115
  /**
136
116
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
137
117
  * @summary List products
@@ -184,23 +164,13 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
184
164
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
185
165
  * @summary Retrieve the product
186
166
  * @param {string} code Unique identifier for the object.
187
- * @param {number} id Unique identifier referencing the product.
167
+ * @param {number} id Product id
188
168
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
169
  * @param {string} [expand] Fields to expand response by
190
170
  * @param {*} [options] Override http request option.
191
171
  * @throws {RequiredError}
192
172
  */
193
173
  getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass>;
194
- /**
195
- * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
196
- * @summary Retrieve the product
197
- * @param {number} id Unique identifier referencing the product.
198
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
199
- * @param {string} [expand] Fields to expand response by
200
- * @param {*} [options] Override http request option.
201
- * @throws {RequiredError}
202
- */
203
- getProductByIdentifier(id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass>;
204
174
  /**
205
175
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
206
176
  * @summary List products
@@ -277,7 +247,7 @@ export interface ProductsApiGetProductByCodeRequest {
277
247
  */
278
248
  readonly code: string;
279
249
  /**
280
- * Unique identifier referencing the product.
250
+ * Product id
281
251
  * @type {number}
282
252
  * @memberof ProductsApiGetProductByCode
283
253
  */
@@ -295,31 +265,6 @@ export interface ProductsApiGetProductByCodeRequest {
295
265
  */
296
266
  readonly expand?: string;
297
267
  }
298
- /**
299
- * Request parameters for getProductByIdentifier operation in ProductsApi.
300
- * @export
301
- * @interface ProductsApiGetProductByIdentifierRequest
302
- */
303
- export interface ProductsApiGetProductByIdentifierRequest {
304
- /**
305
- * Unique identifier referencing the product.
306
- * @type {number}
307
- * @memberof ProductsApiGetProductByIdentifier
308
- */
309
- readonly id: number;
310
- /**
311
- * Bearer Token: provided by the login endpoint under the name accessToken.
312
- * @type {string}
313
- * @memberof ProductsApiGetProductByIdentifier
314
- */
315
- readonly authorization?: string;
316
- /**
317
- * Fields to expand response by
318
- * @type {string}
319
- * @memberof ProductsApiGetProductByIdentifier
320
- */
321
- readonly expand?: string;
322
- }
323
268
  /**
324
269
  * Request parameters for listProducts operation in ProductsApi.
325
270
  * @export
@@ -428,15 +373,6 @@ export declare class ProductsApi extends BaseAPI {
428
373
  * @memberof ProductsApi
429
374
  */
430
375
  getProductByCode(requestParameters: ProductsApiGetProductByCodeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductResponseClass, any>>;
431
- /**
432
- * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
433
- * @summary Retrieve the product
434
- * @param {ProductsApiGetProductByIdentifierRequest} requestParameters Request parameters.
435
- * @param {*} [options] Override http request option.
436
- * @throws {RequiredError}
437
- * @memberof ProductsApi
438
- */
439
- getProductByIdentifier(requestParameters: ProductsApiGetProductByIdentifierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductResponseClass, any>>;
440
376
  /**
441
377
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
442
378
  * @summary List products
@@ -197,7 +197,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
197
197
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
198
198
  * @summary Retrieve the product
199
199
  * @param {string} code Unique identifier for the object.
200
- * @param {number} id Unique identifier referencing the product.
200
+ * @param {number} id Product id
201
201
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
202
202
  * @param {string} [expand] Fields to expand response by
203
203
  * @param {*} [options] Override http request option.
@@ -251,60 +251,6 @@ var ProductsApiAxiosParamCreator = function (configuration) {
251
251
  });
252
252
  });
253
253
  },
254
- /**
255
- * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
256
- * @summary Retrieve the product
257
- * @param {number} id Unique identifier referencing the product.
258
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
259
- * @param {string} [expand] Fields to expand response by
260
- * @param {*} [options] Override http request option.
261
- * @throws {RequiredError}
262
- */
263
- getProductByIdentifier: function (id, authorization, expand, options) {
264
- if (options === void 0) { options = {}; }
265
- return __awaiter(_this, void 0, void 0, function () {
266
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
267
- return __generator(this, function (_a) {
268
- switch (_a.label) {
269
- case 0:
270
- // verify required parameter 'id' is not null or undefined
271
- (0, common_1.assertParamExists)('getProductByIdentifier', 'id', id);
272
- localVarPath = "/insuranceservice/v1/products/get-by-identifier";
273
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
274
- if (configuration) {
275
- baseOptions = configuration.baseOptions;
276
- baseAccessToken = configuration.accessToken;
277
- }
278
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
279
- localVarHeaderParameter = {};
280
- localVarQueryParameter = {};
281
- // authentication bearer required
282
- // http bearer authentication required
283
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
284
- case 1:
285
- // authentication bearer required
286
- // http bearer authentication required
287
- _a.sent();
288
- if (id !== undefined) {
289
- localVarQueryParameter['id'] = id;
290
- }
291
- if (expand !== undefined) {
292
- localVarQueryParameter['expand'] = expand;
293
- }
294
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
296
- }
297
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
298
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
299
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
300
- return [2 /*return*/, {
301
- url: (0, common_1.toPathString)(localVarUrlObj),
302
- options: localVarRequestOptions,
303
- }];
304
- }
305
- });
306
- });
307
- },
308
254
  /**
309
255
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
310
256
  * @summary List products
@@ -482,7 +428,7 @@ var ProductsApiFp = function (configuration) {
482
428
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
483
429
  * @summary Retrieve the product
484
430
  * @param {string} code Unique identifier for the object.
485
- * @param {number} id Unique identifier referencing the product.
431
+ * @param {number} id Product id
486
432
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
487
433
  * @param {string} [expand] Fields to expand response by
488
434
  * @param {*} [options] Override http request option.
@@ -501,28 +447,6 @@ var ProductsApiFp = function (configuration) {
501
447
  });
502
448
  });
503
449
  },
504
- /**
505
- * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
506
- * @summary Retrieve the product
507
- * @param {number} id Unique identifier referencing the product.
508
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
509
- * @param {string} [expand] Fields to expand response by
510
- * @param {*} [options] Override http request option.
511
- * @throws {RequiredError}
512
- */
513
- getProductByIdentifier: function (id, authorization, expand, options) {
514
- return __awaiter(this, void 0, void 0, function () {
515
- var localVarAxiosArgs;
516
- return __generator(this, function (_a) {
517
- switch (_a.label) {
518
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductByIdentifier(id, authorization, expand, options)];
519
- case 1:
520
- localVarAxiosArgs = _a.sent();
521
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
522
- }
523
- });
524
- });
525
- },
526
450
  /**
527
451
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
528
452
  * @summary List products
@@ -607,7 +531,7 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
607
531
  * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
608
532
  * @summary Retrieve the product
609
533
  * @param {string} code Unique identifier for the object.
610
- * @param {number} id Unique identifier referencing the product.
534
+ * @param {number} id Product id
611
535
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
612
536
  * @param {string} [expand] Fields to expand response by
613
537
  * @param {*} [options] Override http request option.
@@ -616,18 +540,6 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
616
540
  getProductByCode: function (code, id, authorization, expand, options) {
617
541
  return localVarFp.getProductByCode(code, id, authorization, expand, options).then(function (request) { return request(axios, basePath); });
618
542
  },
619
- /**
620
- * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
621
- * @summary Retrieve the product
622
- * @param {number} id Unique identifier referencing the product.
623
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
624
- * @param {string} [expand] Fields to expand response by
625
- * @param {*} [options] Override http request option.
626
- * @throws {RequiredError}
627
- */
628
- getProductByIdentifier: function (id, authorization, expand, options) {
629
- return localVarFp.getProductByIdentifier(id, authorization, expand, options).then(function (request) { return request(axios, basePath); });
630
- },
631
543
  /**
632
544
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
633
545
  * @summary List products
@@ -706,18 +618,6 @@ var ProductsApi = /** @class */ (function (_super) {
706
618
  var _this = this;
707
619
  return (0, exports.ProductsApiFp)(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
708
620
  };
709
- /**
710
- * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
711
- * @summary Retrieve the product
712
- * @param {ProductsApiGetProductByIdentifierRequest} requestParameters Request parameters.
713
- * @param {*} [options] Override http request option.
714
- * @throws {RequiredError}
715
- * @memberof ProductsApi
716
- */
717
- ProductsApi.prototype.getProductByIdentifier = function (requestParameters, options) {
718
- var _this = this;
719
- return (0, exports.ProductsApiFp)(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
720
- };
721
621
  /**
722
622
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
723
623
  * @summary List products
@@ -42,7 +42,7 @@ export interface CreateLeadPolicyRequestDto {
42
42
  */
43
43
  'policyObjects'?: Array<SharedLeadPolicyObjectDto>;
44
44
  /**
45
- * 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.
45
+ * 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.
46
46
  * @type {PremiumOverrideRequestDto}
47
47
  * @memberof CreateLeadPolicyRequestDto
48
48
  */
@@ -34,7 +34,7 @@ export interface CreateLeadRequestDto {
34
34
  */
35
35
  'productVersionId'?: number;
36
36
  /**
37
- * The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
37
+ * The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
38
38
  * @type {string}
39
39
  * @memberof CreateLeadRequestDto
40
40
  */
@@ -52,31 +52,31 @@ export interface CreateLeadRequestDto {
52
52
  */
53
53
  'policy': SharedCreateLeadPolicyRequestDto;
54
54
  /**
55
- * Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
55
+ * Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
56
56
  * @type {CreateBankAccountRequestDto}
57
57
  * @memberof CreateLeadRequestDto
58
58
  */
59
59
  'bankAccount'?: CreateBankAccountRequestDto;
60
60
  /**
61
- * Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
61
+ * Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
62
62
  * @type {object}
63
63
  * @memberof CreateLeadRequestDto
64
64
  */
65
65
  'customData'?: object;
66
66
  /**
67
- * Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
67
+ * Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
68
68
  * @type {UploadedDocumentDto}
69
69
  * @memberof CreateLeadRequestDto
70
70
  */
71
71
  'uploadedDocument'?: UploadedDocumentDto;
72
72
  /**
73
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
73
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
74
74
  * @type {string}
75
75
  * @memberof CreateLeadRequestDto
76
76
  */
77
77
  'status'?: string;
78
78
  /**
79
- * 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.
79
+ * 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.
80
80
  * @type {Array<PremiumOverrideRequestDto>}
81
81
  * @memberof CreateLeadRequestDto
82
82
  */
@@ -88,7 +88,7 @@ export interface CreateLeadRequestDto {
88
88
  */
89
89
  'paymentMethod'?: CreatePaymentMethodRequestDto;
90
90
  /**
91
- * The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
91
+ * The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
92
92
  * @type {boolean}
93
93
  * @memberof CreateLeadRequestDto
94
94
  */
@@ -63,18 +63,6 @@ export interface CreatePremiumFormulaRequestDto {
63
63
  * @memberof CreatePremiumFormulaRequestDto
64
64
  */
65
65
  'visibility'?: CreatePremiumFormulaRequestDtoVisibilityEnum;
66
- /**
67
- * Name of the variable this Premium item value is referenced by in the other items formulas.
68
- * @type {string}
69
- * @memberof CreatePremiumFormulaRequestDto
70
- */
71
- 'variableName'?: string;
72
- /**
73
- * order index for the Premium item, used to define the order the items are calculated in.
74
- * @type {number}
75
- * @memberof CreatePremiumFormulaRequestDto
76
- */
77
- 'order': number;
78
66
  }
79
67
  export declare const CreatePremiumFormulaRequestDtoTypeEnum: {
80
68
  readonly Time: "time";
@@ -16,23 +16,17 @@
16
16
  */
17
17
  export interface GetProductRequestDto {
18
18
  /**
19
- * Unique identifier referencing the product.
19
+ * Product id
20
20
  * @type {number}
21
21
  * @memberof GetProductRequestDto
22
22
  */
23
23
  'id': number;
24
24
  /**
25
- * Unique identifier of the product that this object belongs to.
26
- * @type {object}
27
- * @memberof GetProductRequestDto
28
- */
29
- 'code': object;
30
- /**
31
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
32
- * @type {object}
25
+ * Product code
26
+ * @type {string}
33
27
  * @memberof GetProductRequestDto
34
28
  */
35
- 'slug': object;
29
+ 'code': string;
36
30
  /**
37
31
  * Fields to expand response by
38
32
  * @type {string}
@@ -40,7 +40,7 @@ export interface GrpcPatchLeadRequestDto {
40
40
  */
41
41
  'policy'?: CreateLeadPolicyRequestDto;
42
42
  /**
43
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
43
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
44
44
  * @type {string}
45
45
  * @memberof GrpcPatchLeadRequestDto
46
46
  */
@@ -40,37 +40,37 @@ export interface GrpcUpdateLeadRequestDto {
40
40
  */
41
41
  'policy': CreateLeadPolicyRequestDto;
42
42
  /**
43
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
43
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
44
44
  * @type {string}
45
45
  * @memberof GrpcUpdateLeadRequestDto
46
46
  */
47
47
  'status': string;
48
48
  /**
49
- * Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
49
+ * Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
50
50
  * @type {CreateBankAccountRequestDto}
51
51
  * @memberof GrpcUpdateLeadRequestDto
52
52
  */
53
53
  'bankAccount'?: CreateBankAccountRequestDto;
54
54
  /**
55
- * Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
55
+ * Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
56
56
  * @type {object}
57
57
  * @memberof GrpcUpdateLeadRequestDto
58
58
  */
59
59
  'customData'?: object;
60
60
  /**
61
- * Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
61
+ * Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
62
62
  * @type {UploadedDocumentDto}
63
63
  * @memberof GrpcUpdateLeadRequestDto
64
64
  */
65
65
  'uploadedDocument'?: UploadedDocumentDto;
66
66
  /**
67
- * 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.
67
+ * 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.
68
68
  * @type {Array<PremiumOverrideRequestDto>}
69
69
  * @memberof GrpcUpdateLeadRequestDto
70
70
  */
71
71
  'premiumOverride'?: Array<PremiumOverrideRequestDto>;
72
72
  /**
73
- * The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
73
+ * The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
74
74
  * @type {string}
75
75
  * @memberof GrpcUpdateLeadRequestDto
76
76
  */
@@ -82,7 +82,7 @@ export interface GrpcUpdateLeadRequestDto {
82
82
  */
83
83
  'paymentMethod'?: CreatePaymentMethodRequestDto;
84
84
  /**
85
- * The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
85
+ * The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
86
86
  * @type {boolean}
87
87
  * @memberof GrpcUpdateLeadRequestDto
88
88
  */
@@ -27,7 +27,6 @@ export * from './create-product-response-class';
27
27
  export * from './csv-product-factor-dto';
28
28
  export * from './delete-request-dto';
29
29
  export * from './delete-response-class';
30
- export * from './empty-response-class';
31
30
  export * from './get-insured-object-response-class';
32
31
  export * from './get-lead-response-class';
33
32
  export * from './get-lead-status-response-class';
@@ -104,7 +103,6 @@ export * from './store-product-factors-request-dto';
104
103
  export * from './store-product-factors-response-class';
105
104
  export * from './suspend-policy-request-dto';
106
105
  export * from './suspend-policy-response-class';
107
- export * from './swap-premium-formulas-order-requestt-dto';
108
106
  export * from './terminate-policy-request-dto';
109
107
  export * from './terminate-policy-response-class';
110
108
  export * from './timeslice-class';
@@ -43,7 +43,6 @@ __exportStar(require("./create-product-response-class"), exports);
43
43
  __exportStar(require("./csv-product-factor-dto"), exports);
44
44
  __exportStar(require("./delete-request-dto"), exports);
45
45
  __exportStar(require("./delete-response-class"), exports);
46
- __exportStar(require("./empty-response-class"), exports);
47
46
  __exportStar(require("./get-insured-object-response-class"), exports);
48
47
  __exportStar(require("./get-lead-response-class"), exports);
49
48
  __exportStar(require("./get-lead-status-response-class"), exports);
@@ -120,7 +119,6 @@ __exportStar(require("./store-product-factors-request-dto"), exports);
120
119
  __exportStar(require("./store-product-factors-response-class"), exports);
121
120
  __exportStar(require("./suspend-policy-request-dto"), exports);
122
121
  __exportStar(require("./suspend-policy-response-class"), exports);
123
- __exportStar(require("./swap-premium-formulas-order-requestt-dto"), exports);
124
122
  __exportStar(require("./terminate-policy-request-dto"), exports);
125
123
  __exportStar(require("./terminate-policy-response-class"), exports);
126
124
  __exportStar(require("./timeslice-class"), exports);
@@ -40,7 +40,7 @@ export interface PatchLeadRequestDto {
40
40
  */
41
41
  'policy'?: CreateLeadPolicyRequestDto;
42
42
  /**
43
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
43
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
44
44
  * @type {string}
45
45
  * @memberof PatchLeadRequestDto
46
46
  */
@@ -22,7 +22,7 @@ export interface PolicyObjectDto {
22
22
  */
23
23
  'insuredObjectId'?: number;
24
24
  /**
25
- * Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
25
+ * Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
26
26
  * @type {string}
27
27
  * @memberof PolicyObjectDto
28
28
  */
@@ -69,18 +69,6 @@ export interface PremiumFormulaClass {
69
69
  * @memberof PremiumFormulaClass
70
70
  */
71
71
  'visibility'?: string;
72
- /**
73
- * Name of the variable this Premium item value is referenced by in the other items formulas.
74
- * @type {string}
75
- * @memberof PremiumFormulaClass
76
- */
77
- 'variableName'?: string;
78
- /**
79
- * order index for the Premium item, used to define the order the items are calculated in.
80
- * @type {number}
81
- * @memberof PremiumFormulaClass
82
- */
83
- 'order': number;
84
72
  /**
85
73
  * Time at which the object was created.
86
74
  * @type {string}
@@ -42,7 +42,7 @@ export interface SharedCreateLeadPolicyRequestDto {
42
42
  */
43
43
  'policyObjects'?: Array<SharedLeadPolicyObjectDto>;
44
44
  /**
45
- * 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.
45
+ * 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.
46
46
  * @type {PremiumOverrideRequestDto}
47
47
  * @memberof SharedCreateLeadPolicyRequestDto
48
48
  */
@@ -22,7 +22,7 @@ export interface SharedLeadPolicyObjectDto {
22
22
  */
23
23
  'insuredObjectId'?: number;
24
24
  /**
25
- * Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
25
+ * Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
26
26
  * @type {string}
27
27
  * @memberof SharedLeadPolicyObjectDto
28
28
  */
@@ -63,18 +63,6 @@ export interface SharedUpdatePremiumFormulaRequestDto {
63
63
  * @memberof SharedUpdatePremiumFormulaRequestDto
64
64
  */
65
65
  'visibility'?: SharedUpdatePremiumFormulaRequestDtoVisibilityEnum;
66
- /**
67
- * Name of the variable this Premium item value is referenced by in the other items formulas.
68
- * @type {string}
69
- * @memberof SharedUpdatePremiumFormulaRequestDto
70
- */
71
- 'variableName'?: string;
72
- /**
73
- * order index for the Premium item, used to define the order the items are calculated in.
74
- * @type {number}
75
- * @memberof SharedUpdatePremiumFormulaRequestDto
76
- */
77
- 'order': number;
78
66
  /**
79
67
  * Internal unique identifier for the object. You should not have to use this, use code instead.
80
68
  * @type {number}