@emilgroup/public-api-sdk-node 1.22.0 → 1.27.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.
Files changed (37) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/documents-api.ts +114 -0
  4. package/api/products-api.ts +120 -0
  5. package/dist/api/documents-api.d.ts +64 -0
  6. package/dist/api/documents-api.js +98 -0
  7. package/dist/api/products-api.d.ts +66 -0
  8. package/dist/api/products-api.js +99 -0
  9. package/dist/models/calculate-product-fields-request-dto.d.ts +31 -0
  10. package/dist/models/calculate-product-fields-request-dto.js +15 -0
  11. package/dist/models/calculate-product-fields-response-class.d.ts +25 -0
  12. package/dist/models/calculate-product-fields-response-class.js +15 -0
  13. package/dist/models/create-estimated-invoice-response-class.d.ts +8 -1
  14. package/dist/models/create-lead-request-dto.d.ts +7 -7
  15. package/dist/models/document-class.d.ts +6 -0
  16. package/dist/models/index.d.ts +3 -0
  17. package/dist/models/index.js +3 -0
  18. package/dist/models/inline-response200.d.ts +6 -6
  19. package/dist/models/inline-response503.d.ts +6 -6
  20. package/dist/models/policy-object-request-dto.d.ts +1 -1
  21. package/dist/models/policy-object-response-class.d.ts +36 -0
  22. package/dist/models/policy-object-response-class.js +15 -0
  23. package/dist/models/product-document-class.d.ts +7 -7
  24. package/dist/models/update-lead-request-dto.d.ts +5 -5
  25. package/models/calculate-product-fields-request-dto.ts +37 -0
  26. package/models/calculate-product-fields-response-class.ts +31 -0
  27. package/models/create-estimated-invoice-response-class.ts +8 -1
  28. package/models/create-lead-request-dto.ts +7 -7
  29. package/models/document-class.ts +6 -0
  30. package/models/index.ts +3 -0
  31. package/models/inline-response200.ts +6 -6
  32. package/models/inline-response503.ts +6 -6
  33. package/models/policy-object-request-dto.ts +1 -1
  34. package/models/policy-object-response-class.ts +42 -0
  35. package/models/product-document-class.ts +7 -7
  36. package/models/update-lead-request-dto.ts +5 -5
  37. package/package.json +2 -2
@@ -96,6 +96,59 @@ var FormData = require('form-data');
96
96
  var ProductsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
+ /**
100
+ * This will calculate product fields.
101
+ * @summary Create the product fields
102
+ * @param {string} productCode
103
+ * @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
104
+ * @param {string} [authorization] Bearer Token
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'productCode' is not null or undefined
116
+ (0, common_1.assertParamExists)('calculateProductFields', 'productCode', productCode);
117
+ // verify required parameter 'calculateProductFieldsRequestDto' is not null or undefined
118
+ (0, common_1.assertParamExists)('calculateProductFields', 'calculateProductFieldsRequestDto', calculateProductFieldsRequestDto);
119
+ localVarPath = "/publicapi/v1/products/{product_code}/calculate-product-fields"
120
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ }
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(calculateProductFieldsRequestDto, localVarRequestOptions, configuration);
144
+ return [2 /*return*/, {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ }];
148
+ }
149
+ });
150
+ });
151
+ },
99
152
  /**
100
153
  * This will create an invoice product.
101
154
  * @summary Create the invoice product
@@ -474,6 +527,28 @@ exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
474
527
  var ProductsApiFp = function (configuration) {
475
528
  var localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
476
529
  return {
530
+ /**
531
+ * This will calculate product fields.
532
+ * @summary Create the product fields
533
+ * @param {string} productCode
534
+ * @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
535
+ * @param {string} [authorization] Bearer Token
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ */
539
+ calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
540
+ return __awaiter(this, void 0, void 0, function () {
541
+ var localVarAxiosArgs;
542
+ return __generator(this, function (_a) {
543
+ switch (_a.label) {
544
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.calculateProductFields(productCode, calculateProductFieldsRequestDto, authorization, options)];
545
+ case 1:
546
+ localVarAxiosArgs = _a.sent();
547
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
548
+ }
549
+ });
550
+ });
551
+ },
477
552
  /**
478
553
  * This will create an invoice product.
479
554
  * @summary Create the invoice product
@@ -638,6 +713,18 @@ exports.ProductsApiFp = ProductsApiFp;
638
713
  var ProductsApiFactory = function (configuration, basePath, axios) {
639
714
  var localVarFp = (0, exports.ProductsApiFp)(configuration);
640
715
  return {
716
+ /**
717
+ * This will calculate product fields.
718
+ * @summary Create the product fields
719
+ * @param {string} productCode
720
+ * @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
721
+ * @param {string} [authorization] Bearer Token
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ */
725
+ calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
726
+ return localVarFp.calculateProductFields(productCode, calculateProductFieldsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
727
+ },
641
728
  /**
642
729
  * This will create an invoice product.
643
730
  * @summary Create the invoice product
@@ -736,6 +823,18 @@ var ProductsApi = /** @class */ (function (_super) {
736
823
  function ProductsApi() {
737
824
  return _super !== null && _super.apply(this, arguments) || this;
738
825
  }
826
+ /**
827
+ * This will calculate product fields.
828
+ * @summary Create the product fields
829
+ * @param {ProductsApiCalculateProductFieldsRequest} requestParameters Request parameters.
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ * @memberof ProductsApi
833
+ */
834
+ ProductsApi.prototype.calculateProductFields = function (requestParameters, options) {
835
+ var _this = this;
836
+ return (0, exports.ProductsApiFp)(this.configuration).calculateProductFields(requestParameters.productCode, requestParameters.calculateProductFieldsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
837
+ };
739
838
  /**
740
839
  * This will create an invoice product.
741
840
  * @summary Create the invoice product
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PolicyObjectRequestDto } from './policy-object-request-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CalculateProductFieldsRequestDto
17
+ */
18
+ export interface CalculateProductFieldsRequestDto {
19
+ /**
20
+ * Unique identifier referencing the product version.
21
+ * @type {number}
22
+ * @memberof CalculateProductFieldsRequestDto
23
+ */
24
+ 'productVersionId'?: number;
25
+ /**
26
+ * The policy objects to calculate product fields by.
27
+ * @type {Array<PolicyObjectRequestDto>}
28
+ * @memberof CalculateProductFieldsRequestDto
29
+ */
30
+ 'policyObjects'?: Array<PolicyObjectRequestDto>;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PolicyObjectResponseClass } from './policy-object-response-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CalculateProductFieldsResponseClass
17
+ */
18
+ export interface CalculateProductFieldsResponseClass {
19
+ /**
20
+ * Policy objects with calculated fields.
21
+ * @type {Array<PolicyObjectResponseClass>}
22
+ * @memberof CalculateProductFieldsResponseClass
23
+ */
24
+ 'policyObjects': Array<PolicyObjectResponseClass>;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CalculateProductFieldsResponseClass } from './calculate-product-fields-response-class';
12
13
  import { InvoiceClass } from './invoice-class';
13
14
  /**
14
15
  *
@@ -23,9 +24,15 @@ export interface CreateEstimatedInvoiceResponseClass {
23
24
  */
24
25
  'invoice'?: InvoiceClass;
25
26
  /**
26
- * In some cases, custom premium calculation needs to be used. In that case, a custom object is returned. It can hold up any kind of information. For more information, check the general documentation.
27
+ * In some cases, custom premium calculation needs to be used. In that case, a custom object is returned. It can hold up any kind of information. For more information, check the general documentation.
27
28
  * @type {object}
28
29
  * @memberof CreateEstimatedInvoiceResponseClass
29
30
  */
30
31
  'custom'?: object;
32
+ /**
33
+ * Calculated policy obejcts response
34
+ * @type {CalculateProductFieldsResponseClass}
35
+ * @memberof CreateEstimatedInvoiceResponseClass
36
+ */
37
+ 'policyObjects'?: CalculateProductFieldsResponseClass;
31
38
  }
@@ -52,7 +52,7 @@ export interface CreateLeadRequestDto {
52
52
  */
53
53
  'account'?: CreateAccountRequestDto;
54
54
  /**
55
- * 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.
55
+ * 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.
56
56
  * @type {string}
57
57
  * @memberof CreateLeadRequestDto
58
58
  */
@@ -64,31 +64,31 @@ export interface CreateLeadRequestDto {
64
64
  */
65
65
  'policyObjects'?: Array<PolicyObjectRequestDto>;
66
66
  /**
67
- * 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.
67
+ * 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.
68
68
  * @type {CreateBankAccountRequestDto}
69
69
  * @memberof CreateLeadRequestDto
70
70
  */
71
71
  'bankAccount'?: CreateBankAccountRequestDto;
72
72
  /**
73
- * 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
73
+ * 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
74
74
  * @type {object}
75
75
  * @memberof CreateLeadRequestDto
76
76
  */
77
77
  'customData'?: object;
78
78
  /**
79
- * 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.
79
+ * 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.
80
80
  * @type {UploadedDocumentDto}
81
81
  * @memberof CreateLeadRequestDto
82
82
  */
83
83
  'uploadedDocument'?: UploadedDocumentDto;
84
84
  /**
85
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
85
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
86
86
  * @type {string}
87
87
  * @memberof CreateLeadRequestDto
88
88
  */
89
89
  'status'?: string;
90
90
  /**
91
- * 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.
91
+ * Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
92
92
  * @type {Array<PremiumOverrideRequestDto>}
93
93
  * @memberof CreateLeadRequestDto
94
94
  */
@@ -100,7 +100,7 @@ export interface CreateLeadRequestDto {
100
100
  */
101
101
  'paymentMethod'?: CreatePaymentMethodRequestDto;
102
102
  /**
103
- * 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.
103
+ * 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.
104
104
  * @type {boolean}
105
105
  * @memberof CreateLeadRequestDto
106
106
  */
@@ -93,6 +93,12 @@ export interface DocumentClass {
93
93
  * @memberof DocumentClass
94
94
  */
95
95
  'filename': string;
96
+ /**
97
+ * Lead
98
+ * @type {string}
99
+ * @memberof DocumentClass
100
+ */
101
+ 'leadCode': string;
96
102
  /**
97
103
  * Time at which the object was created.
98
104
  * @type {string}
@@ -1,6 +1,8 @@
1
1
  export * from './address-completion-item-class';
2
2
  export * from './address-completion-response-class';
3
3
  export * from './address-field-score-class';
4
+ export * from './calculate-product-fields-request-dto';
5
+ export * from './calculate-product-fields-response-class';
4
6
  export * from './complete-braintree-payment-setup-request-dto';
5
7
  export * from './complete-email-verification-dto';
6
8
  export * from './complete-email-verification-response-class';
@@ -51,6 +53,7 @@ export * from './list-product-documents-response-class';
51
53
  export * from './list-products-response-class';
52
54
  export * from './payment-method-class';
53
55
  export * from './policy-object-request-dto';
56
+ export * from './policy-object-response-class';
54
57
  export * from './premium-override-dto';
55
58
  export * from './premium-override-request-dto';
56
59
  export * from './product-class';
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./address-completion-item-class"), exports);
18
18
  __exportStar(require("./address-completion-response-class"), exports);
19
19
  __exportStar(require("./address-field-score-class"), exports);
20
+ __exportStar(require("./calculate-product-fields-request-dto"), exports);
21
+ __exportStar(require("./calculate-product-fields-response-class"), exports);
20
22
  __exportStar(require("./complete-braintree-payment-setup-request-dto"), exports);
21
23
  __exportStar(require("./complete-email-verification-dto"), exports);
22
24
  __exportStar(require("./complete-email-verification-response-class"), exports);
@@ -67,6 +69,7 @@ __exportStar(require("./list-product-documents-response-class"), exports);
67
69
  __exportStar(require("./list-products-response-class"), exports);
68
70
  __exportStar(require("./payment-method-class"), exports);
69
71
  __exportStar(require("./policy-object-request-dto"), exports);
72
+ __exportStar(require("./policy-object-response-class"), exports);
70
73
  __exportStar(require("./premium-override-dto"), exports);
71
74
  __exportStar(require("./premium-override-request-dto"), exports);
72
75
  __exportStar(require("./product-class"), exports);
@@ -23,32 +23,32 @@ export interface InlineResponse200 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse200
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse200
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse200
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -23,32 +23,32 @@ export interface InlineResponse503 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse503
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse503
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse503
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -22,7 +22,7 @@ export interface PolicyObjectRequestDto {
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 PolicyObjectRequestDto
28
28
  */
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PolicyObjectResponseClass
16
+ */
17
+ export interface PolicyObjectResponseClass {
18
+ /**
19
+ * The id of the insured object to be used in the policy. The insured object id will be validated if the \'validate\' flag is set to true.
20
+ * @type {number}
21
+ * @memberof PolicyObjectResponseClass
22
+ */
23
+ 'insuredObjectId': number;
24
+ /**
25
+ * Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
26
+ * @type {string}
27
+ * @memberof PolicyObjectResponseClass
28
+ */
29
+ 'insuredObjectName': string;
30
+ /**
31
+ * Insured object data. The date will be validated if the \'validate\' flag is set to true.
32
+ * @type {object}
33
+ * @memberof PolicyObjectResponseClass
34
+ */
35
+ 'data': object;
36
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -69,12 +69,6 @@ export interface ProductDocumentClass {
69
69
  * @memberof ProductDocumentClass
70
70
  */
71
71
  'productSlug': string;
72
- /**
73
- * Time at which the object was created.
74
- * @type {string}
75
- * @memberof ProductDocumentClass
76
- */
77
- 'createdAt': string;
78
72
  /**
79
73
  * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
80
74
  * @type {string}
@@ -82,11 +76,17 @@ export interface ProductDocumentClass {
82
76
  */
83
77
  'slug': string;
84
78
  /**
85
- * The current verison of a document.
79
+ * Version number of the document, incremented each time the document is updated.
86
80
  * @type {number}
87
81
  * @memberof ProductDocumentClass
88
82
  */
89
83
  'versionNumber': number;
84
+ /**
85
+ * Time at which the object was created.
86
+ * @type {string}
87
+ * @memberof ProductDocumentClass
88
+ */
89
+ 'createdAt': string;
90
90
  }
91
91
  export declare const ProductDocumentClassContentTypeEnum: {
92
92
  readonly Pdf: "pdf";
@@ -57,25 +57,25 @@ export interface UpdateLeadRequestDto {
57
57
  */
58
58
  'policyObjects'?: Array<PolicyObjectRequestDto>;
59
59
  /**
60
- * 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.
60
+ * 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.
61
61
  * @type {CreateBankAccountRequestDto}
62
62
  * @memberof UpdateLeadRequestDto
63
63
  */
64
64
  'bankAccount'?: CreateBankAccountRequestDto;
65
65
  /**
66
- * 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
66
+ * 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
67
67
  * @type {object}
68
68
  * @memberof UpdateLeadRequestDto
69
69
  */
70
70
  'customData'?: object;
71
71
  /**
72
- * 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.
72
+ * 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.
73
73
  * @type {UploadedDocumentDto}
74
74
  * @memberof UpdateLeadRequestDto
75
75
  */
76
76
  'uploadedDocument'?: UploadedDocumentDto;
77
77
  /**
78
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
78
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
79
79
  * @type {string}
80
80
  * @memberof UpdateLeadRequestDto
81
81
  */
@@ -87,7 +87,7 @@ export interface UpdateLeadRequestDto {
87
87
  */
88
88
  'paymentMethod'?: CreatePaymentMethodRequestDto;
89
89
  /**
90
- * 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.
90
+ * 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
91
  * @type {boolean}
92
92
  * @memberof UpdateLeadRequestDto
93
93
  */
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil PublicAPI
5
+ * The Emil Public API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { PolicyObjectRequestDto } from './policy-object-request-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CalculateProductFieldsRequestDto
22
+ */
23
+ export interface CalculateProductFieldsRequestDto {
24
+ /**
25
+ * Unique identifier referencing the product version.
26
+ * @type {number}
27
+ * @memberof CalculateProductFieldsRequestDto
28
+ */
29
+ 'productVersionId'?: number;
30
+ /**
31
+ * The policy objects to calculate product fields by.
32
+ * @type {Array<PolicyObjectRequestDto>}
33
+ * @memberof CalculateProductFieldsRequestDto
34
+ */
35
+ 'policyObjects'?: Array<PolicyObjectRequestDto>;
36
+ }
37
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil PublicAPI
5
+ * The Emil Public API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { PolicyObjectResponseClass } from './policy-object-response-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CalculateProductFieldsResponseClass
22
+ */
23
+ export interface CalculateProductFieldsResponseClass {
24
+ /**
25
+ * Policy objects with calculated fields.
26
+ * @type {Array<PolicyObjectResponseClass>}
27
+ * @memberof CalculateProductFieldsResponseClass
28
+ */
29
+ 'policyObjects': Array<PolicyObjectResponseClass>;
30
+ }
31
+