@emilgroup/insurance-sdk-node 1.4.0 → 1.5.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 (45) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/api/policies-api.ts +4 -4
  4. package/api/products-api.ts +4 -4
  5. package/dist/api/policies-api.d.ts +4 -4
  6. package/dist/api/policies-api.js +3 -3
  7. package/dist/api/products-api.d.ts +4 -4
  8. package/dist/api/products-api.js +3 -3
  9. package/dist/models/create-account-request-dto.d.ts +18 -1
  10. package/dist/models/create-account-request-dto.js +5 -1
  11. package/dist/models/create-product-request-dto.d.ts +1 -1
  12. package/dist/models/index.d.ts +1 -0
  13. package/dist/models/index.js +1 -0
  14. package/dist/models/insured-object-class.d.ts +1 -1
  15. package/dist/models/insured-object-type-class.d.ts +1 -1
  16. package/dist/models/lead-class.d.ts +18 -11
  17. package/dist/models/lead-class.js +7 -0
  18. package/dist/models/list-insured-object-types-response-class.d.ts +1 -1
  19. package/dist/models/list-products-response-class.d.ts +1 -1
  20. package/dist/models/omit-type-class.d.ts +1 -1
  21. package/dist/models/policy-class.d.ts +5 -5
  22. package/dist/models/premium-override-request-class.d.ts +25 -0
  23. package/dist/models/premium-override-request-class.js +15 -0
  24. package/dist/models/product-class.d.ts +1 -1
  25. package/dist/models/product-factor-class.d.ts +0 -7
  26. package/dist/models/product-field-class.d.ts +3 -3
  27. package/dist/models/shared-product-field-class.d.ts +3 -3
  28. package/dist/models/update-product-request-dto.d.ts +1 -1
  29. package/models/create-account-request-dto.ts +19 -1
  30. package/models/create-product-request-dto.ts +1 -1
  31. package/models/index.ts +1 -0
  32. package/models/insured-object-class.ts +1 -1
  33. package/models/insured-object-type-class.ts +1 -1
  34. package/models/lead-class.ts +21 -11
  35. package/models/list-insured-object-types-response-class.ts +1 -1
  36. package/models/list-products-response-class.ts +1 -1
  37. package/models/omit-type-class.ts +1 -1
  38. package/models/policy-class.ts +5 -5
  39. package/models/premium-override-request-class.ts +31 -0
  40. package/models/product-class.ts +1 -1
  41. package/models/product-factor-class.ts +0 -7
  42. package/models/product-field-class.ts +3 -3
  43. package/models/shared-product-field-class.ts +3 -3
  44. package/models/update-product-request-dto.ts +1 -1
  45. package/package.json +2 -2
@@ -83,6 +83,7 @@ models/policy-premium-item-class.ts
83
83
  models/policy-version-class.ts
84
84
  models/premium-formula-class.ts
85
85
  models/premium-override-dto.ts
86
+ models/premium-override-request-class.ts
86
87
  models/premium-override-request-dto.ts
87
88
  models/product-class.ts
88
89
  models/product-factor-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/insurance-sdk-node@1.4.0 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.5.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.4.0
24
+ yarn add @emilgroup/insurance-sdk-node@1.5.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -208,7 +208,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
208
208
  * @param {string} [filter] List filter
209
209
  * @param {string} [search] Search query.
210
210
  * @param {string} [order] Ordering criteria.
211
- * @param {string} [expand] Extra fields to fetch.
211
+ * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
212
212
  * @param {*} [options] Override http request option.
213
213
  * @throws {RequiredError}
214
214
  */
@@ -525,7 +525,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
525
525
  * @param {string} [filter] List filter
526
526
  * @param {string} [search] Search query.
527
527
  * @param {string} [order] Ordering criteria.
528
- * @param {string} [expand] Extra fields to fetch.
528
+ * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
529
529
  * @param {*} [options] Override http request option.
530
530
  * @throws {RequiredError}
531
531
  */
@@ -638,7 +638,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
638
638
  * @param {string} [filter] List filter
639
639
  * @param {string} [search] Search query.
640
640
  * @param {string} [order] Ordering criteria.
641
- * @param {string} [expand] Extra fields to fetch.
641
+ * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
642
642
  * @param {*} [options] Override http request option.
643
643
  * @throws {RequiredError}
644
644
  */
@@ -821,7 +821,7 @@ export interface PoliciesApiListPoliciesRequest {
821
821
  readonly order?: string
822
822
 
823
823
  /**
824
- * Extra fields to fetch.
824
+ * You can expand policy versions list in this endpoint. By default, versions will be an empty array.
825
825
  * @type {string}
826
826
  * @memberof PoliciesApiListPolicies
827
827
  */
@@ -202,7 +202,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
202
202
  * @param {string} [filter] List filter
203
203
  * @param {string} [search] Search query.
204
204
  * @param {string} [order] Ordering criteria.
205
- * @param {string} [expand] Extra fields to fetch.
205
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
206
206
  * @param {*} [options] Override http request option.
207
207
  * @throws {RequiredError}
208
208
  */
@@ -372,7 +372,7 @@ export const ProductsApiFp = function(configuration?: Configuration) {
372
372
  * @param {string} [filter] List filter
373
373
  * @param {string} [search] Search query.
374
374
  * @param {string} [order] Ordering criteria.
375
- * @param {string} [expand] Extra fields to fetch.
375
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
376
376
  * @param {*} [options] Override http request option.
377
377
  * @throws {RequiredError}
378
378
  */
@@ -447,7 +447,7 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
447
447
  * @param {string} [filter] List filter
448
448
  * @param {string} [search] Search query.
449
449
  * @param {string} [order] Ordering criteria.
450
- * @param {string} [expand] Extra fields to fetch.
450
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
451
451
  * @param {*} [options] Override http request option.
452
452
  * @throws {RequiredError}
453
453
  */
@@ -595,7 +595,7 @@ export interface ProductsApiListProductsRequest {
595
595
  readonly order?: string
596
596
 
597
597
  /**
598
- * Extra fields to fetch.
598
+ * You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
599
599
  * @type {string}
600
600
  * @memberof ProductsApiListProducts
601
601
  */
@@ -66,7 +66,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
66
66
  * @param {string} [filter] List filter
67
67
  * @param {string} [search] Search query.
68
68
  * @param {string} [order] Ordering criteria.
69
- * @param {string} [expand] Extra fields to fetch.
69
+ * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
70
70
  * @param {*} [options] Override http request option.
71
71
  * @throws {RequiredError}
72
72
  */
@@ -154,7 +154,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
154
154
  * @param {string} [filter] List filter
155
155
  * @param {string} [search] Search query.
156
156
  * @param {string} [order] Ordering criteria.
157
- * @param {string} [expand] Extra fields to fetch.
157
+ * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
158
158
  * @param {*} [options] Override http request option.
159
159
  * @throws {RequiredError}
160
160
  */
@@ -242,7 +242,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
242
242
  * @param {string} [filter] List filter
243
243
  * @param {string} [search] Search query.
244
244
  * @param {string} [order] Ordering criteria.
245
- * @param {string} [expand] Extra fields to fetch.
245
+ * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
246
246
  * @param {*} [options] Override http request option.
247
247
  * @throws {RequiredError}
248
248
  */
@@ -399,7 +399,7 @@ export interface PoliciesApiListPoliciesRequest {
399
399
  */
400
400
  readonly order?: string;
401
401
  /**
402
- * Extra fields to fetch.
402
+ * You can expand policy versions list in this endpoint. By default, versions will be an empty array.
403
403
  * @type {string}
404
404
  * @memberof PoliciesApiListPolicies
405
405
  */
@@ -258,7 +258,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
258
258
  * @param {string} [filter] List filter
259
259
  * @param {string} [search] Search query.
260
260
  * @param {string} [order] Ordering criteria.
261
- * @param {string} [expand] Extra fields to fetch.
261
+ * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
262
262
  * @param {*} [options] Override http request option.
263
263
  * @throws {RequiredError}
264
264
  */
@@ -608,7 +608,7 @@ var PoliciesApiFp = function (configuration) {
608
608
  * @param {string} [filter] List filter
609
609
  * @param {string} [search] Search query.
610
610
  * @param {string} [order] Ordering criteria.
611
- * @param {string} [expand] Extra fields to fetch.
611
+ * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
612
612
  * @param {*} [options] Override http request option.
613
613
  * @throws {RequiredError}
614
614
  */
@@ -766,7 +766,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
766
766
  * @param {string} [filter] List filter
767
767
  * @param {string} [search] Search query.
768
768
  * @param {string} [order] Ordering criteria.
769
- * @param {string} [expand] Extra fields to fetch.
769
+ * @param {string} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
770
770
  * @param {*} [options] Override http request option.
771
771
  * @throws {RequiredError}
772
772
  */
@@ -62,7 +62,7 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
62
62
  * @param {string} [filter] List filter
63
63
  * @param {string} [search] Search query.
64
64
  * @param {string} [order] Ordering criteria.
65
- * @param {string} [expand] Extra fields to fetch.
65
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
66
66
  * @param {*} [options] Override http request option.
67
67
  * @throws {RequiredError}
68
68
  */
@@ -121,7 +121,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
121
121
  * @param {string} [filter] List filter
122
122
  * @param {string} [search] Search query.
123
123
  * @param {string} [order] Ordering criteria.
124
- * @param {string} [expand] Extra fields to fetch.
124
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
125
125
  * @param {*} [options] Override http request option.
126
126
  * @throws {RequiredError}
127
127
  */
@@ -180,7 +180,7 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
180
180
  * @param {string} [filter] List filter
181
181
  * @param {string} [search] Search query.
182
182
  * @param {string} [order] Ordering criteria.
183
- * @param {string} [expand] Extra fields to fetch.
183
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
184
184
  * @param {*} [options] Override http request option.
185
185
  * @throws {RequiredError}
186
186
  */
@@ -308,7 +308,7 @@ export interface ProductsApiListProductsRequest {
308
308
  */
309
309
  readonly order?: string;
310
310
  /**
311
- * Extra fields to fetch.
311
+ * You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
312
312
  * @type {string}
313
313
  * @memberof ProductsApiListProducts
314
314
  */
@@ -260,7 +260,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
260
260
  * @param {string} [filter] List filter
261
261
  * @param {string} [search] Search query.
262
262
  * @param {string} [order] Ordering criteria.
263
- * @param {string} [expand] Extra fields to fetch.
263
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
264
264
  * @param {*} [options] Override http request option.
265
265
  * @throws {RequiredError}
266
266
  */
@@ -456,7 +456,7 @@ var ProductsApiFp = function (configuration) {
456
456
  * @param {string} [filter] List filter
457
457
  * @param {string} [search] Search query.
458
458
  * @param {string} [order] Ordering criteria.
459
- * @param {string} [expand] Extra fields to fetch.
459
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
460
460
  * @param {*} [options] Override http request option.
461
461
  * @throws {RequiredError}
462
462
  */
@@ -549,7 +549,7 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
549
549
  * @param {string} [filter] List filter
550
550
  * @param {string} [search] Search query.
551
551
  * @param {string} [order] Ordering criteria.
552
- * @param {string} [expand] Extra fields to fetch.
552
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
553
553
  * @param {*} [options] Override http request option.
554
554
  * @throws {RequiredError}
555
555
  */
@@ -74,13 +74,25 @@ export interface CreateAccountRequestDto {
74
74
  * @type {string}
75
75
  * @memberof CreateAccountRequestDto
76
76
  */
77
- 'birthDate': string;
77
+ 'birthDate'?: string;
78
78
  /**
79
79
  * Customer phone number.
80
80
  * @type {string}
81
81
  * @memberof CreateAccountRequestDto
82
82
  */
83
83
  'phone': string;
84
+ /**
85
+ * Optional field to enter the type of the account.
86
+ * @type {string}
87
+ * @memberof CreateAccountRequestDto
88
+ */
89
+ 'type'?: CreateAccountRequestDtoTypeEnum;
90
+ /**
91
+ * The account\'s company name (Required for account of type org).
92
+ * @type {string}
93
+ * @memberof CreateAccountRequestDto
94
+ */
95
+ 'companyName'?: string;
84
96
  /**
85
97
  * Account number.
86
98
  * @type {string}
@@ -101,3 +113,8 @@ export declare const CreateAccountRequestDtoTitleEnum: {
101
113
  readonly ProfDrMed: "Prof. Dr. med.";
102
114
  };
103
115
  export type CreateAccountRequestDtoTitleEnum = typeof CreateAccountRequestDtoTitleEnum[keyof typeof CreateAccountRequestDtoTitleEnum];
116
+ export declare const CreateAccountRequestDtoTypeEnum: {
117
+ readonly Person: "person";
118
+ readonly Org: "org";
119
+ };
120
+ export type CreateAccountRequestDtoTypeEnum = typeof CreateAccountRequestDtoTypeEnum[keyof typeof CreateAccountRequestDtoTypeEnum];
@@ -13,10 +13,14 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateAccountRequestDtoTitleEnum = void 0;
16
+ exports.CreateAccountRequestDtoTypeEnum = exports.CreateAccountRequestDtoTitleEnum = void 0;
17
17
  exports.CreateAccountRequestDtoTitleEnum = {
18
18
  Empty: '',
19
19
  Dr: 'Dr.',
20
20
  DrMed: 'Dr. med.',
21
21
  ProfDrMed: 'Prof. Dr. med.'
22
22
  };
23
+ exports.CreateAccountRequestDtoTypeEnum = {
24
+ Person: 'person',
25
+ Org: 'org'
26
+ };
@@ -34,7 +34,7 @@ export interface CreateProductRequestDto {
34
34
  */
35
35
  'contractDurationDays': number;
36
36
  /**
37
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the Product.
37
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
38
38
  * @type {string}
39
39
  * @memberof CreateProductRequestDto
40
40
  */
@@ -63,6 +63,7 @@ export * from './policy-premium-item-class';
63
63
  export * from './policy-version-class';
64
64
  export * from './premium-formula-class';
65
65
  export * from './premium-override-dto';
66
+ export * from './premium-override-request-class';
66
67
  export * from './premium-override-request-dto';
67
68
  export * from './product-class';
68
69
  export * from './product-factor-class';
@@ -79,6 +79,7 @@ __exportStar(require("./policy-premium-item-class"), exports);
79
79
  __exportStar(require("./policy-version-class"), exports);
80
80
  __exportStar(require("./premium-formula-class"), exports);
81
81
  __exportStar(require("./premium-override-dto"), exports);
82
+ __exportStar(require("./premium-override-request-class"), exports);
82
83
  __exportStar(require("./premium-override-request-dto"), exports);
83
84
  __exportStar(require("./product-class"), exports);
84
85
  __exportStar(require("./product-factor-class"), exports);
@@ -39,7 +39,7 @@ export interface InsuredObjectClass {
39
39
  * @type {string}
40
40
  * @memberof InsuredObjectClass
41
41
  */
42
- 'label': string;
42
+ 'label'?: string;
43
43
  /**
44
44
  * Unique identifier referencing the Insured object type.
45
45
  * @type {number}
@@ -28,7 +28,7 @@ export interface InsuredObjectTypeClass {
28
28
  */
29
29
  'name': string;
30
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. In this case, the template used for the Insured object type.
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
32
  * @type {string}
33
33
  * @memberof InsuredObjectTypeClass
34
34
  */
@@ -12,7 +12,7 @@
12
12
  import { CreateAccountRequestDto } from './create-account-request-dto';
13
13
  import { CreatePolicyRequestDto } from './create-policy-request-dto';
14
14
  import { LeadBankAccountClass } from './lead-bank-account-class';
15
- import { PremiumOverrideDto } from './premium-override-dto';
15
+ import { PremiumOverrideRequestClass } from './premium-override-request-class';
16
16
  import { UploadedDocumentDto } from './uploaded-document-dto';
17
17
  /**
18
18
  *
@@ -31,13 +31,13 @@ export interface LeadClass {
31
31
  * @type {string}
32
32
  * @memberof LeadClass
33
33
  */
34
- 'code': string;
34
+ 'code'?: string;
35
35
  /**
36
36
  * Lead status.
37
37
  * @type {string}
38
38
  * @memberof LeadClass
39
39
  */
40
- 'status': string;
40
+ 'status': LeadClassStatusEnum;
41
41
  /**
42
42
  * Lead account.
43
43
  * @type {CreateAccountRequestDto}
@@ -55,31 +55,31 @@ export interface LeadClass {
55
55
  * @type {LeadBankAccountClass}
56
56
  * @memberof LeadClass
57
57
  */
58
- 'bankAccount': LeadBankAccountClass;
58
+ 'bankAccount'?: LeadBankAccountClass;
59
59
  /**
60
60
  * Custom data for custom application creation.
61
61
  * @type {object}
62
62
  * @memberof LeadClass
63
63
  */
64
- 'customData': object;
64
+ 'customData'?: object;
65
65
  /**
66
66
  * List of uploaded document codes.
67
67
  * @type {UploadedDocumentDto}
68
68
  * @memberof LeadClass
69
69
  */
70
- 'uploadedDocument': UploadedDocumentDto;
70
+ 'uploadedDocument'?: UploadedDocumentDto;
71
71
  /**
72
- * Premium overrides.
73
- * @type {Array<PremiumOverrideDto>}
72
+ * Override for premium calculation. Leave null for default calculation.
73
+ * @type {PremiumOverrideRequestClass}
74
74
  * @memberof LeadClass
75
75
  */
76
- 'premiumOverrides': Array<PremiumOverrideDto>;
76
+ 'premiumOverride'?: PremiumOverrideRequestClass;
77
77
  /**
78
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the product.
78
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
79
79
  * @type {string}
80
80
  * @memberof LeadClass
81
81
  */
82
- 'productSlug': string;
82
+ 'productSlug'?: string;
83
83
  /**
84
84
  * Time at which the object was created.
85
85
  * @type {string}
@@ -93,3 +93,10 @@ export interface LeadClass {
93
93
  */
94
94
  'updatedAt': string;
95
95
  }
96
+ export declare const LeadClassStatusEnum: {
97
+ readonly Created: "created";
98
+ readonly Approved: "approved";
99
+ readonly Activated: "activated";
100
+ readonly Declined: "declined";
101
+ };
102
+ export type LeadClassStatusEnum = typeof LeadClassStatusEnum[keyof typeof LeadClassStatusEnum];
@@ -13,3 +13,10 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.LeadClassStatusEnum = void 0;
17
+ exports.LeadClassStatusEnum = {
18
+ Created: 'created',
19
+ Approved: 'approved',
20
+ Activated: 'activated',
21
+ Declined: 'declined'
22
+ };
@@ -17,7 +17,7 @@ import { InsuredObjectTypeClass } from './insured-object-type-class';
17
17
  */
18
18
  export interface ListInsuredObjectTypesResponseClass {
19
19
  /**
20
- * Insured object types.
20
+ * Products
21
21
  * @type {Array<InsuredObjectTypeClass>}
22
22
  * @memberof ListInsuredObjectTypesResponseClass
23
23
  */
@@ -21,7 +21,7 @@ export interface ListProductsResponseClass {
21
21
  * @type {Array<ProductClass>}
22
22
  * @memberof ListProductsResponseClass
23
23
  */
24
- 'products': Array<ProductClass>;
24
+ 'items': Array<ProductClass>;
25
25
  /**
26
26
  * Next page token.
27
27
  * @type {string}
@@ -38,7 +38,7 @@ export interface OmitTypeClass {
38
38
  * @type {string}
39
39
  * @memberof OmitTypeClass
40
40
  */
41
- 'label': string;
41
+ 'label'?: string;
42
42
  /**
43
43
  * Unique identifier referencing the Insured object type.
44
44
  * @type {number}
@@ -40,7 +40,7 @@ export interface PolicyClass {
40
40
  * @type {string}
41
41
  * @memberof PolicyClass
42
42
  */
43
- 'internalPolicyNumber': string;
43
+ 'internalPolicyNumber'?: string | null;
44
44
  /**
45
45
  * Unique identifier referencing the policy product version.
46
46
  * @type {number}
@@ -70,7 +70,7 @@ export interface PolicyClass {
70
70
  * @type {string}
71
71
  * @memberof PolicyClass
72
72
  */
73
- 'holder': string;
73
+ 'holder'?: string | null;
74
74
  /**
75
75
  * Policy versions.
76
76
  * @type {Array<PolicyVersionClass>}
@@ -82,13 +82,13 @@ export interface PolicyClass {
82
82
  * @type {ProductClass}
83
83
  * @memberof PolicyClass
84
84
  */
85
- 'product': ProductClass;
85
+ 'product'?: ProductClass;
86
86
  /**
87
87
  * The date the policy will get started.
88
88
  * @type {string}
89
89
  * @memberof PolicyClass
90
90
  */
91
- 'policyStartDate': string;
91
+ 'policyStartDate': string | null;
92
92
  /**
93
93
  * Time at which the object was created.
94
94
  * @type {string}
@@ -106,5 +106,5 @@ export interface PolicyClass {
106
106
  * @type {string}
107
107
  * @memberof PolicyClass
108
108
  */
109
- 'leadCode': string;
109
+ 'leadCode'?: string;
110
110
  }
@@ -0,0 +1,25 @@
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
+ import { PremiumOverrideDto } from './premium-override-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PremiumOverrideRequestClass
17
+ */
18
+ export interface PremiumOverrideRequestClass {
19
+ /**
20
+ * Various premium overrides used for calculation.
21
+ * @type {Array<PremiumOverrideDto>}
22
+ * @memberof PremiumOverrideRequestClass
23
+ */
24
+ 'premiumOverrides': Array<PremiumOverrideDto>;
25
+ }
@@ -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 });
@@ -36,7 +36,7 @@ export interface ProductClass {
36
36
  */
37
37
  'name': string;
38
38
  /**
39
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the product.
39
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
40
40
  * @type {string}
41
41
  * @memberof ProductClass
42
42
  */
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { ProductFactorValueClass } from './product-factor-value-class';
13
- import { ProductVersionClass } from './product-version-class';
14
13
  /**
15
14
  *
16
15
  * @export
@@ -47,12 +46,6 @@ export interface ProductFactorClass {
47
46
  * @memberof ProductFactorClass
48
47
  */
49
48
  'values': Array<ProductFactorValueClass>;
50
- /**
51
- * Factor product version.
52
- * @type {ProductVersionClass}
53
- * @memberof ProductFactorClass
54
- */
55
- 'productVersion': ProductVersionClass;
56
49
  /**
57
50
  * Time at which the object was created.
58
51
  * @type {string}
@@ -86,19 +86,19 @@ export interface ProductFieldClass {
86
86
  * @type {object}
87
87
  * @memberof ProductFieldClass
88
88
  */
89
- 'defaultValue': object;
89
+ 'defaultValue': object | null;
90
90
  /**
91
91
  * Minimum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
92
92
  * @type {object}
93
93
  * @memberof ProductFieldClass
94
94
  */
95
- 'minValue': object;
95
+ 'minValue': object | null;
96
96
  /**
97
97
  * Maximum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
98
98
  * @type {object}
99
99
  * @memberof ProductFieldClass
100
100
  */
101
- 'maxValue': object;
101
+ 'maxValue': object | null;
102
102
  /**
103
103
  * Time at which the object was created.
104
104
  * @type {string}
@@ -86,19 +86,19 @@ export interface SharedProductFieldClass {
86
86
  * @type {object}
87
87
  * @memberof SharedProductFieldClass
88
88
  */
89
- 'defaultValue': object;
89
+ 'defaultValue': object | null;
90
90
  /**
91
91
  * Minimum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
92
92
  * @type {object}
93
93
  * @memberof SharedProductFieldClass
94
94
  */
95
- 'minValue': object;
95
+ 'minValue': object | null;
96
96
  /**
97
97
  * Maximum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
98
98
  * @type {object}
99
99
  * @memberof SharedProductFieldClass
100
100
  */
101
- 'maxValue': object;
101
+ 'maxValue': object | null;
102
102
  /**
103
103
  * Time at which the object was created.
104
104
  * @type {string}
@@ -28,7 +28,7 @@ export interface UpdateProductRequestDto {
28
28
  */
29
29
  'contractDurationDays': number;
30
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. In this case, the template used for the Product.
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
32
  * @type {string}
33
33
  * @memberof UpdateProductRequestDto
34
34
  */
@@ -79,13 +79,25 @@ export interface CreateAccountRequestDto {
79
79
  * @type {string}
80
80
  * @memberof CreateAccountRequestDto
81
81
  */
82
- 'birthDate': string;
82
+ 'birthDate'?: string;
83
83
  /**
84
84
  * Customer phone number.
85
85
  * @type {string}
86
86
  * @memberof CreateAccountRequestDto
87
87
  */
88
88
  'phone': string;
89
+ /**
90
+ * Optional field to enter the type of the account.
91
+ * @type {string}
92
+ * @memberof CreateAccountRequestDto
93
+ */
94
+ 'type'?: CreateAccountRequestDtoTypeEnum;
95
+ /**
96
+ * The account\'s company name (Required for account of type org).
97
+ * @type {string}
98
+ * @memberof CreateAccountRequestDto
99
+ */
100
+ 'companyName'?: string;
89
101
  /**
90
102
  * Account number.
91
103
  * @type {string}
@@ -108,5 +120,11 @@ export const CreateAccountRequestDtoTitleEnum = {
108
120
  } as const;
109
121
 
110
122
  export type CreateAccountRequestDtoTitleEnum = typeof CreateAccountRequestDtoTitleEnum[keyof typeof CreateAccountRequestDtoTitleEnum];
123
+ export const CreateAccountRequestDtoTypeEnum = {
124
+ Person: 'person',
125
+ Org: 'org'
126
+ } as const;
127
+
128
+ export type CreateAccountRequestDtoTypeEnum = typeof CreateAccountRequestDtoTypeEnum[keyof typeof CreateAccountRequestDtoTypeEnum];
111
129
 
112
130
 
@@ -39,7 +39,7 @@ export interface CreateProductRequestDto {
39
39
  */
40
40
  'contractDurationDays': number;
41
41
  /**
42
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the Product.
42
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
43
43
  * @type {string}
44
44
  * @memberof CreateProductRequestDto
45
45
  */
package/models/index.ts CHANGED
@@ -63,6 +63,7 @@ export * from './policy-premium-item-class';
63
63
  export * from './policy-version-class';
64
64
  export * from './premium-formula-class';
65
65
  export * from './premium-override-dto';
66
+ export * from './premium-override-request-class';
66
67
  export * from './premium-override-request-dto';
67
68
  export * from './product-class';
68
69
  export * from './product-factor-class';
@@ -44,7 +44,7 @@ export interface InsuredObjectClass {
44
44
  * @type {string}
45
45
  * @memberof InsuredObjectClass
46
46
  */
47
- 'label': string;
47
+ 'label'?: string;
48
48
  /**
49
49
  * Unique identifier referencing the Insured object type.
50
50
  * @type {number}
@@ -33,7 +33,7 @@ export interface InsuredObjectTypeClass {
33
33
  */
34
34
  'name': string;
35
35
  /**
36
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the Insured object type.
36
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
37
37
  * @type {string}
38
38
  * @memberof InsuredObjectTypeClass
39
39
  */
@@ -16,7 +16,7 @@
16
16
  import { CreateAccountRequestDto } from './create-account-request-dto';
17
17
  import { CreatePolicyRequestDto } from './create-policy-request-dto';
18
18
  import { LeadBankAccountClass } from './lead-bank-account-class';
19
- import { PremiumOverrideDto } from './premium-override-dto';
19
+ import { PremiumOverrideRequestClass } from './premium-override-request-class';
20
20
  import { UploadedDocumentDto } from './uploaded-document-dto';
21
21
 
22
22
  /**
@@ -36,13 +36,13 @@ export interface LeadClass {
36
36
  * @type {string}
37
37
  * @memberof LeadClass
38
38
  */
39
- 'code': string;
39
+ 'code'?: string;
40
40
  /**
41
41
  * Lead status.
42
42
  * @type {string}
43
43
  * @memberof LeadClass
44
44
  */
45
- 'status': string;
45
+ 'status': LeadClassStatusEnum;
46
46
  /**
47
47
  * Lead account.
48
48
  * @type {CreateAccountRequestDto}
@@ -60,31 +60,31 @@ export interface LeadClass {
60
60
  * @type {LeadBankAccountClass}
61
61
  * @memberof LeadClass
62
62
  */
63
- 'bankAccount': LeadBankAccountClass;
63
+ 'bankAccount'?: LeadBankAccountClass;
64
64
  /**
65
65
  * Custom data for custom application creation.
66
66
  * @type {object}
67
67
  * @memberof LeadClass
68
68
  */
69
- 'customData': object;
69
+ 'customData'?: object;
70
70
  /**
71
71
  * List of uploaded document codes.
72
72
  * @type {UploadedDocumentDto}
73
73
  * @memberof LeadClass
74
74
  */
75
- 'uploadedDocument': UploadedDocumentDto;
75
+ 'uploadedDocument'?: UploadedDocumentDto;
76
76
  /**
77
- * Premium overrides.
78
- * @type {Array<PremiumOverrideDto>}
77
+ * Override for premium calculation. Leave null for default calculation.
78
+ * @type {PremiumOverrideRequestClass}
79
79
  * @memberof LeadClass
80
80
  */
81
- 'premiumOverrides': Array<PremiumOverrideDto>;
81
+ 'premiumOverride'?: PremiumOverrideRequestClass;
82
82
  /**
83
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the product.
83
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
84
84
  * @type {string}
85
85
  * @memberof LeadClass
86
86
  */
87
- 'productSlug': string;
87
+ 'productSlug'?: string;
88
88
  /**
89
89
  * Time at which the object was created.
90
90
  * @type {string}
@@ -99,3 +99,13 @@ export interface LeadClass {
99
99
  'updatedAt': string;
100
100
  }
101
101
 
102
+ export const LeadClassStatusEnum = {
103
+ Created: 'created',
104
+ Approved: 'approved',
105
+ Activated: 'activated',
106
+ Declined: 'declined'
107
+ } as const;
108
+
109
+ export type LeadClassStatusEnum = typeof LeadClassStatusEnum[keyof typeof LeadClassStatusEnum];
110
+
111
+
@@ -22,7 +22,7 @@ import { InsuredObjectTypeClass } from './insured-object-type-class';
22
22
  */
23
23
  export interface ListInsuredObjectTypesResponseClass {
24
24
  /**
25
- * Insured object types.
25
+ * Products
26
26
  * @type {Array<InsuredObjectTypeClass>}
27
27
  * @memberof ListInsuredObjectTypesResponseClass
28
28
  */
@@ -26,7 +26,7 @@ export interface ListProductsResponseClass {
26
26
  * @type {Array<ProductClass>}
27
27
  * @memberof ListProductsResponseClass
28
28
  */
29
- 'products': Array<ProductClass>;
29
+ 'items': Array<ProductClass>;
30
30
  /**
31
31
  * Next page token.
32
32
  * @type {string}
@@ -43,7 +43,7 @@ export interface OmitTypeClass {
43
43
  * @type {string}
44
44
  * @memberof OmitTypeClass
45
45
  */
46
- 'label': string;
46
+ 'label'?: string;
47
47
  /**
48
48
  * Unique identifier referencing the Insured object type.
49
49
  * @type {number}
@@ -45,7 +45,7 @@ export interface PolicyClass {
45
45
  * @type {string}
46
46
  * @memberof PolicyClass
47
47
  */
48
- 'internalPolicyNumber': string;
48
+ 'internalPolicyNumber'?: string | null;
49
49
  /**
50
50
  * Unique identifier referencing the policy product version.
51
51
  * @type {number}
@@ -75,7 +75,7 @@ export interface PolicyClass {
75
75
  * @type {string}
76
76
  * @memberof PolicyClass
77
77
  */
78
- 'holder': string;
78
+ 'holder'?: string | null;
79
79
  /**
80
80
  * Policy versions.
81
81
  * @type {Array<PolicyVersionClass>}
@@ -87,13 +87,13 @@ export interface PolicyClass {
87
87
  * @type {ProductClass}
88
88
  * @memberof PolicyClass
89
89
  */
90
- 'product': ProductClass;
90
+ 'product'?: ProductClass;
91
91
  /**
92
92
  * The date the policy will get started.
93
93
  * @type {string}
94
94
  * @memberof PolicyClass
95
95
  */
96
- 'policyStartDate': string;
96
+ 'policyStartDate': string | null;
97
97
  /**
98
98
  * Time at which the object was created.
99
99
  * @type {string}
@@ -111,6 +111,6 @@ export interface PolicyClass {
111
111
  * @type {string}
112
112
  * @memberof PolicyClass
113
113
  */
114
- 'leadCode': string;
114
+ 'leadCode'?: string;
115
115
  }
116
116
 
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL InsuranceService
5
+ * The EMIL InsuranceService 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 { PremiumOverrideDto } from './premium-override-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface PremiumOverrideRequestClass
22
+ */
23
+ export interface PremiumOverrideRequestClass {
24
+ /**
25
+ * Various premium overrides used for calculation.
26
+ * @type {Array<PremiumOverrideDto>}
27
+ * @memberof PremiumOverrideRequestClass
28
+ */
29
+ 'premiumOverrides': Array<PremiumOverrideDto>;
30
+ }
31
+
@@ -41,7 +41,7 @@ export interface ProductClass {
41
41
  */
42
42
  'name': string;
43
43
  /**
44
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the product.
44
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
45
45
  * @type {string}
46
46
  * @memberof ProductClass
47
47
  */
@@ -14,7 +14,6 @@
14
14
 
15
15
 
16
16
  import { ProductFactorValueClass } from './product-factor-value-class';
17
- import { ProductVersionClass } from './product-version-class';
18
17
 
19
18
  /**
20
19
  *
@@ -52,12 +51,6 @@ export interface ProductFactorClass {
52
51
  * @memberof ProductFactorClass
53
52
  */
54
53
  'values': Array<ProductFactorValueClass>;
55
- /**
56
- * Factor product version.
57
- * @type {ProductVersionClass}
58
- * @memberof ProductFactorClass
59
- */
60
- 'productVersion': ProductVersionClass;
61
54
  /**
62
55
  * Time at which the object was created.
63
56
  * @type {string}
@@ -91,19 +91,19 @@ export interface ProductFieldClass {
91
91
  * @type {object}
92
92
  * @memberof ProductFieldClass
93
93
  */
94
- 'defaultValue': object;
94
+ 'defaultValue': object | null;
95
95
  /**
96
96
  * Minimum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
97
97
  * @type {object}
98
98
  * @memberof ProductFieldClass
99
99
  */
100
- 'minValue': object;
100
+ 'minValue': object | null;
101
101
  /**
102
102
  * Maximum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
103
103
  * @type {object}
104
104
  * @memberof ProductFieldClass
105
105
  */
106
- 'maxValue': object;
106
+ 'maxValue': object | null;
107
107
  /**
108
108
  * Time at which the object was created.
109
109
  * @type {string}
@@ -91,19 +91,19 @@ export interface SharedProductFieldClass {
91
91
  * @type {object}
92
92
  * @memberof SharedProductFieldClass
93
93
  */
94
- 'defaultValue': object;
94
+ 'defaultValue': object | null;
95
95
  /**
96
96
  * Minimum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
97
97
  * @type {object}
98
98
  * @memberof SharedProductFieldClass
99
99
  */
100
- 'minValue': object;
100
+ 'minValue': object | null;
101
101
  /**
102
102
  * Maximum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
103
103
  * @type {object}
104
104
  * @memberof SharedProductFieldClass
105
105
  */
106
- 'maxValue': object;
106
+ 'maxValue': object | null;
107
107
  /**
108
108
  * Time at which the object was created.
109
109
  * @type {string}
@@ -33,7 +33,7 @@ export interface UpdateProductRequestDto {
33
33
  */
34
34
  'contractDurationDays': number;
35
35
  /**
36
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. In this case, the template used for the Product.
36
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
37
37
  * @type {string}
38
38
  * @memberof UpdateProductRequestDto
39
39
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "url": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^12.11.5",
26
+ "@types/node": "^12.11.5",
27
27
  "typescript": "^4.0"
28
28
  }
29
29
  }