@emilgroup/insurance-sdk-node 1.10.0 → 1.10.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 (36) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/dist/models/create-premium-formula-request-dto.d.ts +1 -0
  4. package/dist/models/create-premium-formula-request-dto.js +1 -0
  5. package/dist/models/currency-class.d.ts +48 -0
  6. package/dist/models/currency-class.js +15 -0
  7. package/dist/models/index.d.ts +4 -0
  8. package/dist/models/index.js +4 -0
  9. package/dist/models/invoice-class.d.ts +135 -0
  10. package/dist/models/invoice-class.js +15 -0
  11. package/dist/models/invoice-item-class.d.ts +117 -0
  12. package/dist/models/invoice-item-class.js +24 -0
  13. package/dist/models/invoice-status-class.d.ts +47 -0
  14. package/dist/models/invoice-status-class.js +20 -0
  15. package/dist/models/lead-class.d.ts +4 -4
  16. package/dist/models/policy-premium-class.d.ts +0 -12
  17. package/dist/models/policy-premium-item-class.d.ts +0 -18
  18. package/dist/models/premium-override-dto.d.ts +1 -6
  19. package/dist/models/premium-override-dto.js +1 -0
  20. package/dist/models/shared-update-premium-formula-request-dto.d.ts +1 -0
  21. package/dist/models/shared-update-premium-formula-request-dto.js +1 -0
  22. package/dist/models/update-premium-formula-request-dto.d.ts +1 -0
  23. package/dist/models/update-premium-formula-request-dto.js +1 -0
  24. package/models/create-premium-formula-request-dto.ts +1 -0
  25. package/models/currency-class.ts +54 -0
  26. package/models/index.ts +4 -0
  27. package/models/invoice-class.ts +141 -0
  28. package/models/invoice-item-class.ts +126 -0
  29. package/models/invoice-status-class.ts +56 -0
  30. package/models/lead-class.ts +4 -4
  31. package/models/policy-premium-class.ts +0 -12
  32. package/models/policy-premium-item-class.ts +0 -18
  33. package/models/premium-override-dto.ts +1 -6
  34. package/models/shared-update-premium-formula-request-dto.ts +1 -0
  35. package/models/update-premium-formula-request-dto.ts +1 -0
  36. package/package.json +1 -1
@@ -40,6 +40,7 @@ models/create-product-field-response-class.ts
40
40
  models/create-product-request-dto.ts
41
41
  models/create-product-response-class.ts
42
42
  models/csv-product-factor-dto.ts
43
+ models/currency-class.ts
43
44
  models/delete-request-dto.ts
44
45
  models/delete-response-class.ts
45
46
  models/get-insured-object-response-class.ts
@@ -67,6 +68,9 @@ models/grouped-product-factors-response-class.ts
67
68
  models/index.ts
68
69
  models/insured-object-class.ts
69
70
  models/insured-object-type-class.ts
71
+ models/invoice-class.ts
72
+ models/invoice-item-class.ts
73
+ models/invoice-status-class.ts
70
74
  models/lead-bank-account-class.ts
71
75
  models/lead-class.ts
72
76
  models/lead-status-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.10.0 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.10.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.10.0
24
+ yarn add @emilgroup/insurance-sdk-node@1.10.1
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -60,6 +60,7 @@ export declare const CreatePremiumFormulaRequestDtoUnitEnum: {
60
60
  readonly Day: "day";
61
61
  readonly Week: "week";
62
62
  readonly Month: "month";
63
+ readonly Quarter: "quarter";
63
64
  readonly Year: "year";
64
65
  readonly OneTimePayment: "oneTimePayment";
65
66
  };
@@ -21,6 +21,7 @@ exports.CreatePremiumFormulaRequestDtoUnitEnum = {
21
21
  Day: 'day',
22
22
  Week: 'week',
23
23
  Month: 'month',
24
+ Quarter: 'quarter',
24
25
  Year: 'year',
25
26
  OneTimePayment: 'oneTimePayment'
26
27
  };
@@ -0,0 +1,48 @@
1
+ /**
2
+ * EMIL InsuranceService
3
+ * The EMIL InsuranceService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CurrencyClass
16
+ */
17
+ export interface CurrencyClass {
18
+ /**
19
+ * Unique identifier referencing the currency.
20
+ * @type {number}
21
+ * @memberof CurrencyClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Name of currency in English.
26
+ * @type {string}
27
+ * @memberof CurrencyClass
28
+ */
29
+ 'name': string;
30
+ /**
31
+ * Name of currency in native language.
32
+ * @type {string}
33
+ * @memberof CurrencyClass
34
+ */
35
+ 'nativeName': string;
36
+ /**
37
+ * Code defined by ISO 4217 standard.
38
+ * @type {string}
39
+ * @memberof CurrencyClass
40
+ */
41
+ 'code': string;
42
+ /**
43
+ * Currency symbols are graphical representations used to denote a particular currency in written or printed form.
44
+ * @type {string}
45
+ * @memberof CurrencyClass
46
+ */
47
+ 'symbol': string;
48
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL InsuranceService
6
+ * The EMIL InsuranceService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -20,6 +20,7 @@ export * from './create-product-field-response-class';
20
20
  export * from './create-product-request-dto';
21
21
  export * from './create-product-response-class';
22
22
  export * from './csv-product-factor-dto';
23
+ export * from './currency-class';
23
24
  export * from './delete-request-dto';
24
25
  export * from './delete-response-class';
25
26
  export * from './get-insured-object-response-class';
@@ -46,6 +47,9 @@ export * from './grouped-product-factor-value-class';
46
47
  export * from './grouped-product-factors-response-class';
47
48
  export * from './insured-object-class';
48
49
  export * from './insured-object-type-class';
50
+ export * from './invoice-class';
51
+ export * from './invoice-item-class';
52
+ export * from './invoice-status-class';
49
53
  export * from './lead-bank-account-class';
50
54
  export * from './lead-class';
51
55
  export * from './lead-status-class';
@@ -36,6 +36,7 @@ __exportStar(require("./create-product-field-response-class"), exports);
36
36
  __exportStar(require("./create-product-request-dto"), exports);
37
37
  __exportStar(require("./create-product-response-class"), exports);
38
38
  __exportStar(require("./csv-product-factor-dto"), exports);
39
+ __exportStar(require("./currency-class"), exports);
39
40
  __exportStar(require("./delete-request-dto"), exports);
40
41
  __exportStar(require("./delete-response-class"), exports);
41
42
  __exportStar(require("./get-insured-object-response-class"), exports);
@@ -62,6 +63,9 @@ __exportStar(require("./grouped-product-factor-value-class"), exports);
62
63
  __exportStar(require("./grouped-product-factors-response-class"), exports);
63
64
  __exportStar(require("./insured-object-class"), exports);
64
65
  __exportStar(require("./insured-object-type-class"), exports);
66
+ __exportStar(require("./invoice-class"), exports);
67
+ __exportStar(require("./invoice-item-class"), exports);
68
+ __exportStar(require("./invoice-status-class"), exports);
65
69
  __exportStar(require("./lead-bank-account-class"), exports);
66
70
  __exportStar(require("./lead-class"), exports);
67
71
  __exportStar(require("./lead-status-class"), exports);
@@ -0,0 +1,135 @@
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 { CurrencyClass } from './currency-class';
13
+ import { InvoiceItemClass } from './invoice-item-class';
14
+ import { InvoiceStatusClass } from './invoice-status-class';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface InvoiceClass
19
+ */
20
+ export interface InvoiceClass {
21
+ /**
22
+ * Unique identifier referencing the invoice.
23
+ * @type {number}
24
+ * @memberof InvoiceClass
25
+ */
26
+ 'id': number;
27
+ /**
28
+ * Unique identifier of the policy that this object belongs to.
29
+ * @type {string}
30
+ * @memberof InvoiceClass
31
+ */
32
+ 'policyCode': string;
33
+ /**
34
+ * Account number.
35
+ * @type {string}
36
+ * @memberof InvoiceClass
37
+ */
38
+ 'accountNumber': string;
39
+ /**
40
+ * Unique identifier of the invoice that this object belongs to.
41
+ * @type {string}
42
+ * @memberof InvoiceClass
43
+ */
44
+ 'code': string;
45
+ /**
46
+ * Invoice type.
47
+ * @type {string}
48
+ * @memberof InvoiceClass
49
+ */
50
+ 'type': string;
51
+ /**
52
+ * Invoice number.
53
+ * @type {string}
54
+ * @memberof InvoiceClass
55
+ */
56
+ 'invoiceNumber': string;
57
+ /**
58
+ * Net amount is in cents.
59
+ * @type {number}
60
+ * @memberof InvoiceClass
61
+ */
62
+ 'netAmount': number;
63
+ /**
64
+ * Tax amount is in cents.
65
+ * @type {number}
66
+ * @memberof InvoiceClass
67
+ */
68
+ 'taxAmount': number;
69
+ /**
70
+ * Credit amount.
71
+ * @type {number}
72
+ * @memberof InvoiceClass
73
+ */
74
+ 'creditAmount': number;
75
+ /**
76
+ * Gross amount. This property is sum of taxAmount and netAmount.
77
+ * @type {number}
78
+ * @memberof InvoiceClass
79
+ */
80
+ 'grossAmount': number;
81
+ /**
82
+ * Invoice status.
83
+ * @type {string}
84
+ * @memberof InvoiceClass
85
+ */
86
+ 'status': string;
87
+ /**
88
+ * Invoice due date.
89
+ * @type {string}
90
+ * @memberof InvoiceClass
91
+ */
92
+ 'dueDate': string;
93
+ /**
94
+ * Metadata contains extra information that the object would need for specific cases.
95
+ * @type {object}
96
+ * @memberof InvoiceClass
97
+ */
98
+ 'metadata': object;
99
+ /**
100
+ * Start date of billing interval.
101
+ * @type {string}
102
+ * @memberof InvoiceClass
103
+ */
104
+ 'billingIntervalFrom': string;
105
+ /**
106
+ * End date of billing interval.
107
+ * @type {string}
108
+ * @memberof InvoiceClass
109
+ */
110
+ 'billingIntervalTo': string;
111
+ /**
112
+ * Time at which the object was created.
113
+ * @type {string}
114
+ * @memberof InvoiceClass
115
+ */
116
+ 'createdAt': string;
117
+ /**
118
+ * Invoice items.
119
+ * @type {Array<InvoiceItemClass>}
120
+ * @memberof InvoiceClass
121
+ */
122
+ 'invoiceItems': Array<InvoiceItemClass>;
123
+ /**
124
+ * Invoice statuses.
125
+ * @type {Array<InvoiceStatusClass>}
126
+ * @memberof InvoiceClass
127
+ */
128
+ 'statuses': Array<InvoiceStatusClass>;
129
+ /**
130
+ * Invoice currency. EUR is used by default.
131
+ * @type {CurrencyClass}
132
+ * @memberof InvoiceClass
133
+ */
134
+ 'currency': CurrencyClass;
135
+ }
@@ -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 });
@@ -0,0 +1,117 @@
1
+ /**
2
+ * EMIL InsuranceService
3
+ * The EMIL InsuranceService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface InvoiceItemClass
16
+ */
17
+ export interface InvoiceItemClass {
18
+ /**
19
+ * Unique identifier referencing the invoice item.
20
+ * @type {number}
21
+ * @memberof InvoiceItemClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier referencing the premium formula.
26
+ * @type {number}
27
+ * @memberof InvoiceItemClass
28
+ */
29
+ 'premiumFormulaId': number;
30
+ /**
31
+ * Product name.
32
+ * @type {string}
33
+ * @memberof InvoiceItemClass
34
+ */
35
+ 'name': string;
36
+ /**
37
+ * Tax code.
38
+ * @type {string}
39
+ * @memberof InvoiceItemClass
40
+ */
41
+ 'taxCode': string;
42
+ /**
43
+ * Unit of Premium. Premium units are determined based on time or distance.
44
+ * @type {string}
45
+ * @memberof InvoiceItemClass
46
+ */
47
+ 'unit': InvoiceItemClassUnitEnum;
48
+ /**
49
+ * Invoice group.
50
+ * @type {string}
51
+ * @memberof InvoiceItemClass
52
+ */
53
+ 'group': string;
54
+ /**
55
+ * Item quantity. This property determines number of days during the billing interval.
56
+ * @type {number}
57
+ * @memberof InvoiceItemClass
58
+ */
59
+ 'quantity': number;
60
+ /**
61
+ * Item price per unit.
62
+ * @type {number}
63
+ * @memberof InvoiceItemClass
64
+ */
65
+ 'pricePerUnit': number;
66
+ /**
67
+ * Item tax rate.
68
+ * @type {number}
69
+ * @memberof InvoiceItemClass
70
+ */
71
+ 'taxRate': number;
72
+ /**
73
+ * Net amount in cents. It is the result of the multiplication of the quantity by the pricePerUnit.
74
+ * @type {number}
75
+ * @memberof InvoiceItemClass
76
+ */
77
+ 'netAmount': number;
78
+ /**
79
+ * Tax amount in cents.
80
+ * @type {number}
81
+ * @memberof InvoiceItemClass
82
+ */
83
+ 'taxAmount': number;
84
+ /**
85
+ * Gross amount in cents. It is the result of the sum of taxAmount and netAmount.
86
+ * @type {number}
87
+ * @memberof InvoiceItemClass
88
+ */
89
+ 'grossAmount': number;
90
+ /**
91
+ * Credit amount.
92
+ * @type {number}
93
+ * @memberof InvoiceItemClass
94
+ */
95
+ 'creditAmount': number;
96
+ /**
97
+ * This is the date at which the invoice item interval starts.
98
+ * @type {string}
99
+ * @memberof InvoiceItemClass
100
+ */
101
+ 'billingIntervalFrom': string;
102
+ /**
103
+ * This is the date at which the invoice item interval ends.
104
+ * @type {string}
105
+ * @memberof InvoiceItemClass
106
+ */
107
+ 'billingIntervalTo': string;
108
+ }
109
+ export declare const InvoiceItemClassUnitEnum: {
110
+ readonly Day: "day";
111
+ readonly Week: "week";
112
+ readonly Month: "month";
113
+ readonly Quarter: "quarter";
114
+ readonly Year: "year";
115
+ readonly OneTimePayment: "oneTimePayment";
116
+ };
117
+ export type InvoiceItemClassUnitEnum = typeof InvoiceItemClassUnitEnum[keyof typeof InvoiceItemClassUnitEnum];
@@ -0,0 +1,24 @@
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 });
16
+ exports.InvoiceItemClassUnitEnum = void 0;
17
+ exports.InvoiceItemClassUnitEnum = {
18
+ Day: 'day',
19
+ Week: 'week',
20
+ Month: 'month',
21
+ Quarter: 'quarter',
22
+ Year: 'year',
23
+ OneTimePayment: 'oneTimePayment'
24
+ };
@@ -0,0 +1,47 @@
1
+ /**
2
+ * EMIL InsuranceService
3
+ * The EMIL InsuranceService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface InvoiceStatusClass
16
+ */
17
+ export interface InvoiceStatusClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof InvoiceStatusClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier referencing the invoice.
26
+ * @type {number}
27
+ * @memberof InvoiceStatusClass
28
+ */
29
+ 'invoiceId': number;
30
+ /**
31
+ * Invoice type.
32
+ * @type {string}
33
+ * @memberof InvoiceStatusClass
34
+ */
35
+ 'status': InvoiceStatusClassStatusEnum;
36
+ /**
37
+ * Time at which the object was created.
38
+ * @type {string}
39
+ * @memberof InvoiceStatusClass
40
+ */
41
+ 'createdAt'?: string;
42
+ }
43
+ export declare const InvoiceStatusClassStatusEnum: {
44
+ readonly Open: "open";
45
+ readonly Paid: "paid";
46
+ };
47
+ export type InvoiceStatusClassStatusEnum = typeof InvoiceStatusClassStatusEnum[keyof typeof InvoiceStatusClassStatusEnum];
@@ -0,0 +1,20 @@
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 });
16
+ exports.InvoiceStatusClassStatusEnum = void 0;
17
+ exports.InvoiceStatusClassStatusEnum = {
18
+ Open: 'open',
19
+ Paid: 'paid'
20
+ };
@@ -11,8 +11,8 @@
11
11
  */
12
12
  import { CreateAccountRequestDto } from './create-account-request-dto';
13
13
  import { CreatePolicyRequestDto } from './create-policy-request-dto';
14
+ import { InvoiceClass } from './invoice-class';
14
15
  import { LeadBankAccountClass } from './lead-bank-account-class';
15
- import { PolicyPremiumClass } from './policy-premium-class';
16
16
  import { PremiumOverrideRequestClass } from './premium-override-request-class';
17
17
  import { UploadedDocumentDto } from './uploaded-document-dto';
18
18
  /**
@@ -94,9 +94,9 @@ export interface LeadClass {
94
94
  */
95
95
  'updatedAt': string;
96
96
  /**
97
- * Premium calculation.
98
- * @type {PolicyPremiumClass}
97
+ * Quote or price details.
98
+ * @type {InvoiceClass}
99
99
  * @memberof LeadClass
100
100
  */
101
- 'premium': PolicyPremiumClass;
101
+ 'quote': InvoiceClass;
102
102
  }
@@ -40,16 +40,4 @@ export interface PolicyPremiumClass {
40
40
  * @memberof PolicyPremiumClass
41
41
  */
42
42
  'updatedAt': string;
43
- /**
44
- * The gross total of a policy premium is the net sum of all policy premium items adding the tax rate.
45
- * @type {number}
46
- * @memberof PolicyPremiumClass
47
- */
48
- 'grossTotal': number;
49
- /**
50
- * The tax total of a policy premium is the net sum of all policy premium items multiplying the tax rate.
51
- * @type {number}
52
- * @memberof PolicyPremiumClass
53
- */
54
- 'taxTotal': number;
55
43
  }
@@ -52,22 +52,4 @@ export interface PolicyPremiumItemClass {
52
52
  * @memberof PolicyPremiumItemClass
53
53
  */
54
54
  'isOverride': boolean;
55
- /**
56
- * Gross total premium item.
57
- * @type {number}
58
- * @memberof PolicyPremiumItemClass
59
- */
60
- 'grossTotal': number;
61
- /**
62
- * Tax total premium item.
63
- * @type {number}
64
- * @memberof PolicyPremiumItemClass
65
- */
66
- 'taxTotal': number;
67
- /**
68
- * Tax rate premium item.
69
- * @type {number}
70
- * @memberof PolicyPremiumItemClass
71
- */
72
- 'taxRate': number;
73
55
  }
@@ -39,12 +39,6 @@ export interface PremiumOverrideDto {
39
39
  * @memberof PremiumOverrideDto
40
40
  */
41
41
  'netPremium': number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof PremiumOverrideDto
46
- */
47
- 'taxRate'?: number;
48
42
  }
49
43
  export declare const PremiumOverrideDtoTypeEnum: {
50
44
  readonly Time: "time";
@@ -54,6 +48,7 @@ export declare const PremiumOverrideDtoUnitEnum: {
54
48
  readonly Day: "day";
55
49
  readonly Week: "week";
56
50
  readonly Month: "month";
51
+ readonly Quarter: "quarter";
57
52
  readonly Year: "year";
58
53
  readonly OneTimePayment: "oneTimePayment";
59
54
  };
@@ -21,6 +21,7 @@ exports.PremiumOverrideDtoUnitEnum = {
21
21
  Day: 'day',
22
22
  Week: 'week',
23
23
  Month: 'month',
24
+ Quarter: 'quarter',
24
25
  Year: 'year',
25
26
  OneTimePayment: 'oneTimePayment'
26
27
  };
@@ -66,6 +66,7 @@ export declare const SharedUpdatePremiumFormulaRequestDtoUnitEnum: {
66
66
  readonly Day: "day";
67
67
  readonly Week: "week";
68
68
  readonly Month: "month";
69
+ readonly Quarter: "quarter";
69
70
  readonly Year: "year";
70
71
  readonly OneTimePayment: "oneTimePayment";
71
72
  };
@@ -21,6 +21,7 @@ exports.SharedUpdatePremiumFormulaRequestDtoUnitEnum = {
21
21
  Day: 'day',
22
22
  Week: 'week',
23
23
  Month: 'month',
24
+ Quarter: 'quarter',
24
25
  Year: 'year',
25
26
  OneTimePayment: 'oneTimePayment'
26
27
  };
@@ -60,6 +60,7 @@ export declare const UpdatePremiumFormulaRequestDtoUnitEnum: {
60
60
  readonly Day: "day";
61
61
  readonly Week: "week";
62
62
  readonly Month: "month";
63
+ readonly Quarter: "quarter";
63
64
  readonly Year: "year";
64
65
  readonly OneTimePayment: "oneTimePayment";
65
66
  };
@@ -21,6 +21,7 @@ exports.UpdatePremiumFormulaRequestDtoUnitEnum = {
21
21
  Day: 'day',
22
22
  Week: 'week',
23
23
  Month: 'month',
24
+ Quarter: 'quarter',
24
25
  Year: 'year',
25
26
  OneTimePayment: 'oneTimePayment'
26
27
  };
@@ -67,6 +67,7 @@ export const CreatePremiumFormulaRequestDtoUnitEnum = {
67
67
  Day: 'day',
68
68
  Week: 'week',
69
69
  Month: 'month',
70
+ Quarter: 'quarter',
70
71
  Year: 'year',
71
72
  OneTimePayment: 'oneTimePayment'
72
73
  } as const;
@@ -0,0 +1,54 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CurrencyClass
21
+ */
22
+ export interface CurrencyClass {
23
+ /**
24
+ * Unique identifier referencing the currency.
25
+ * @type {number}
26
+ * @memberof CurrencyClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Name of currency in English.
31
+ * @type {string}
32
+ * @memberof CurrencyClass
33
+ */
34
+ 'name': string;
35
+ /**
36
+ * Name of currency in native language.
37
+ * @type {string}
38
+ * @memberof CurrencyClass
39
+ */
40
+ 'nativeName': string;
41
+ /**
42
+ * Code defined by ISO 4217 standard.
43
+ * @type {string}
44
+ * @memberof CurrencyClass
45
+ */
46
+ 'code': string;
47
+ /**
48
+ * Currency symbols are graphical representations used to denote a particular currency in written or printed form.
49
+ * @type {string}
50
+ * @memberof CurrencyClass
51
+ */
52
+ 'symbol': string;
53
+ }
54
+
package/models/index.ts CHANGED
@@ -20,6 +20,7 @@ export * from './create-product-field-response-class';
20
20
  export * from './create-product-request-dto';
21
21
  export * from './create-product-response-class';
22
22
  export * from './csv-product-factor-dto';
23
+ export * from './currency-class';
23
24
  export * from './delete-request-dto';
24
25
  export * from './delete-response-class';
25
26
  export * from './get-insured-object-response-class';
@@ -46,6 +47,9 @@ export * from './grouped-product-factor-value-class';
46
47
  export * from './grouped-product-factors-response-class';
47
48
  export * from './insured-object-class';
48
49
  export * from './insured-object-type-class';
50
+ export * from './invoice-class';
51
+ export * from './invoice-item-class';
52
+ export * from './invoice-status-class';
49
53
  export * from './lead-bank-account-class';
50
54
  export * from './lead-class';
51
55
  export * from './lead-status-class';
@@ -0,0 +1,141 @@
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 { CurrencyClass } from './currency-class';
17
+ import { InvoiceItemClass } from './invoice-item-class';
18
+ import { InvoiceStatusClass } from './invoice-status-class';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface InvoiceClass
24
+ */
25
+ export interface InvoiceClass {
26
+ /**
27
+ * Unique identifier referencing the invoice.
28
+ * @type {number}
29
+ * @memberof InvoiceClass
30
+ */
31
+ 'id': number;
32
+ /**
33
+ * Unique identifier of the policy that this object belongs to.
34
+ * @type {string}
35
+ * @memberof InvoiceClass
36
+ */
37
+ 'policyCode': string;
38
+ /**
39
+ * Account number.
40
+ * @type {string}
41
+ * @memberof InvoiceClass
42
+ */
43
+ 'accountNumber': string;
44
+ /**
45
+ * Unique identifier of the invoice that this object belongs to.
46
+ * @type {string}
47
+ * @memberof InvoiceClass
48
+ */
49
+ 'code': string;
50
+ /**
51
+ * Invoice type.
52
+ * @type {string}
53
+ * @memberof InvoiceClass
54
+ */
55
+ 'type': string;
56
+ /**
57
+ * Invoice number.
58
+ * @type {string}
59
+ * @memberof InvoiceClass
60
+ */
61
+ 'invoiceNumber': string;
62
+ /**
63
+ * Net amount is in cents.
64
+ * @type {number}
65
+ * @memberof InvoiceClass
66
+ */
67
+ 'netAmount': number;
68
+ /**
69
+ * Tax amount is in cents.
70
+ * @type {number}
71
+ * @memberof InvoiceClass
72
+ */
73
+ 'taxAmount': number;
74
+ /**
75
+ * Credit amount.
76
+ * @type {number}
77
+ * @memberof InvoiceClass
78
+ */
79
+ 'creditAmount': number;
80
+ /**
81
+ * Gross amount. This property is sum of taxAmount and netAmount.
82
+ * @type {number}
83
+ * @memberof InvoiceClass
84
+ */
85
+ 'grossAmount': number;
86
+ /**
87
+ * Invoice status.
88
+ * @type {string}
89
+ * @memberof InvoiceClass
90
+ */
91
+ 'status': string;
92
+ /**
93
+ * Invoice due date.
94
+ * @type {string}
95
+ * @memberof InvoiceClass
96
+ */
97
+ 'dueDate': string;
98
+ /**
99
+ * Metadata contains extra information that the object would need for specific cases.
100
+ * @type {object}
101
+ * @memberof InvoiceClass
102
+ */
103
+ 'metadata': object;
104
+ /**
105
+ * Start date of billing interval.
106
+ * @type {string}
107
+ * @memberof InvoiceClass
108
+ */
109
+ 'billingIntervalFrom': string;
110
+ /**
111
+ * End date of billing interval.
112
+ * @type {string}
113
+ * @memberof InvoiceClass
114
+ */
115
+ 'billingIntervalTo': string;
116
+ /**
117
+ * Time at which the object was created.
118
+ * @type {string}
119
+ * @memberof InvoiceClass
120
+ */
121
+ 'createdAt': string;
122
+ /**
123
+ * Invoice items.
124
+ * @type {Array<InvoiceItemClass>}
125
+ * @memberof InvoiceClass
126
+ */
127
+ 'invoiceItems': Array<InvoiceItemClass>;
128
+ /**
129
+ * Invoice statuses.
130
+ * @type {Array<InvoiceStatusClass>}
131
+ * @memberof InvoiceClass
132
+ */
133
+ 'statuses': Array<InvoiceStatusClass>;
134
+ /**
135
+ * Invoice currency. EUR is used by default.
136
+ * @type {CurrencyClass}
137
+ * @memberof InvoiceClass
138
+ */
139
+ 'currency': CurrencyClass;
140
+ }
141
+
@@ -0,0 +1,126 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface InvoiceItemClass
21
+ */
22
+ export interface InvoiceItemClass {
23
+ /**
24
+ * Unique identifier referencing the invoice item.
25
+ * @type {number}
26
+ * @memberof InvoiceItemClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier referencing the premium formula.
31
+ * @type {number}
32
+ * @memberof InvoiceItemClass
33
+ */
34
+ 'premiumFormulaId': number;
35
+ /**
36
+ * Product name.
37
+ * @type {string}
38
+ * @memberof InvoiceItemClass
39
+ */
40
+ 'name': string;
41
+ /**
42
+ * Tax code.
43
+ * @type {string}
44
+ * @memberof InvoiceItemClass
45
+ */
46
+ 'taxCode': string;
47
+ /**
48
+ * Unit of Premium. Premium units are determined based on time or distance.
49
+ * @type {string}
50
+ * @memberof InvoiceItemClass
51
+ */
52
+ 'unit': InvoiceItemClassUnitEnum;
53
+ /**
54
+ * Invoice group.
55
+ * @type {string}
56
+ * @memberof InvoiceItemClass
57
+ */
58
+ 'group': string;
59
+ /**
60
+ * Item quantity. This property determines number of days during the billing interval.
61
+ * @type {number}
62
+ * @memberof InvoiceItemClass
63
+ */
64
+ 'quantity': number;
65
+ /**
66
+ * Item price per unit.
67
+ * @type {number}
68
+ * @memberof InvoiceItemClass
69
+ */
70
+ 'pricePerUnit': number;
71
+ /**
72
+ * Item tax rate.
73
+ * @type {number}
74
+ * @memberof InvoiceItemClass
75
+ */
76
+ 'taxRate': number;
77
+ /**
78
+ * Net amount in cents. It is the result of the multiplication of the quantity by the pricePerUnit.
79
+ * @type {number}
80
+ * @memberof InvoiceItemClass
81
+ */
82
+ 'netAmount': number;
83
+ /**
84
+ * Tax amount in cents.
85
+ * @type {number}
86
+ * @memberof InvoiceItemClass
87
+ */
88
+ 'taxAmount': number;
89
+ /**
90
+ * Gross amount in cents. It is the result of the sum of taxAmount and netAmount.
91
+ * @type {number}
92
+ * @memberof InvoiceItemClass
93
+ */
94
+ 'grossAmount': number;
95
+ /**
96
+ * Credit amount.
97
+ * @type {number}
98
+ * @memberof InvoiceItemClass
99
+ */
100
+ 'creditAmount': number;
101
+ /**
102
+ * This is the date at which the invoice item interval starts.
103
+ * @type {string}
104
+ * @memberof InvoiceItemClass
105
+ */
106
+ 'billingIntervalFrom': string;
107
+ /**
108
+ * This is the date at which the invoice item interval ends.
109
+ * @type {string}
110
+ * @memberof InvoiceItemClass
111
+ */
112
+ 'billingIntervalTo': string;
113
+ }
114
+
115
+ export const InvoiceItemClassUnitEnum = {
116
+ Day: 'day',
117
+ Week: 'week',
118
+ Month: 'month',
119
+ Quarter: 'quarter',
120
+ Year: 'year',
121
+ OneTimePayment: 'oneTimePayment'
122
+ } as const;
123
+
124
+ export type InvoiceItemClassUnitEnum = typeof InvoiceItemClassUnitEnum[keyof typeof InvoiceItemClassUnitEnum];
125
+
126
+
@@ -0,0 +1,56 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface InvoiceStatusClass
21
+ */
22
+ export interface InvoiceStatusClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof InvoiceStatusClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier referencing the invoice.
31
+ * @type {number}
32
+ * @memberof InvoiceStatusClass
33
+ */
34
+ 'invoiceId': number;
35
+ /**
36
+ * Invoice type.
37
+ * @type {string}
38
+ * @memberof InvoiceStatusClass
39
+ */
40
+ 'status': InvoiceStatusClassStatusEnum;
41
+ /**
42
+ * Time at which the object was created.
43
+ * @type {string}
44
+ * @memberof InvoiceStatusClass
45
+ */
46
+ 'createdAt'?: string;
47
+ }
48
+
49
+ export const InvoiceStatusClassStatusEnum = {
50
+ Open: 'open',
51
+ Paid: 'paid'
52
+ } as const;
53
+
54
+ export type InvoiceStatusClassStatusEnum = typeof InvoiceStatusClassStatusEnum[keyof typeof InvoiceStatusClassStatusEnum];
55
+
56
+
@@ -15,8 +15,8 @@
15
15
 
16
16
  import { CreateAccountRequestDto } from './create-account-request-dto';
17
17
  import { CreatePolicyRequestDto } from './create-policy-request-dto';
18
+ import { InvoiceClass } from './invoice-class';
18
19
  import { LeadBankAccountClass } from './lead-bank-account-class';
19
- import { PolicyPremiumClass } from './policy-premium-class';
20
20
  import { PremiumOverrideRequestClass } from './premium-override-request-class';
21
21
  import { UploadedDocumentDto } from './uploaded-document-dto';
22
22
 
@@ -99,10 +99,10 @@ export interface LeadClass {
99
99
  */
100
100
  'updatedAt': string;
101
101
  /**
102
- * Premium calculation.
103
- * @type {PolicyPremiumClass}
102
+ * Quote or price details.
103
+ * @type {InvoiceClass}
104
104
  * @memberof LeadClass
105
105
  */
106
- 'premium': PolicyPremiumClass;
106
+ 'quote': InvoiceClass;
107
107
  }
108
108
 
@@ -45,17 +45,5 @@ export interface PolicyPremiumClass {
45
45
  * @memberof PolicyPremiumClass
46
46
  */
47
47
  'updatedAt': string;
48
- /**
49
- * The gross total of a policy premium is the net sum of all policy premium items adding the tax rate.
50
- * @type {number}
51
- * @memberof PolicyPremiumClass
52
- */
53
- 'grossTotal': number;
54
- /**
55
- * The tax total of a policy premium is the net sum of all policy premium items multiplying the tax rate.
56
- * @type {number}
57
- * @memberof PolicyPremiumClass
58
- */
59
- 'taxTotal': number;
60
48
  }
61
49
 
@@ -57,23 +57,5 @@ export interface PolicyPremiumItemClass {
57
57
  * @memberof PolicyPremiumItemClass
58
58
  */
59
59
  'isOverride': boolean;
60
- /**
61
- * Gross total premium item.
62
- * @type {number}
63
- * @memberof PolicyPremiumItemClass
64
- */
65
- 'grossTotal': number;
66
- /**
67
- * Tax total premium item.
68
- * @type {number}
69
- * @memberof PolicyPremiumItemClass
70
- */
71
- 'taxTotal': number;
72
- /**
73
- * Tax rate premium item.
74
- * @type {number}
75
- * @memberof PolicyPremiumItemClass
76
- */
77
- 'taxRate': number;
78
60
  }
79
61
 
@@ -44,12 +44,6 @@ export interface PremiumOverrideDto {
44
44
  * @memberof PremiumOverrideDto
45
45
  */
46
46
  'netPremium': number;
47
- /**
48
- *
49
- * @type {number}
50
- * @memberof PremiumOverrideDto
51
- */
52
- 'taxRate'?: number;
53
47
  }
54
48
 
55
49
  export const PremiumOverrideDtoTypeEnum = {
@@ -61,6 +55,7 @@ export const PremiumOverrideDtoUnitEnum = {
61
55
  Day: 'day',
62
56
  Week: 'week',
63
57
  Month: 'month',
58
+ Quarter: 'quarter',
64
59
  Year: 'year',
65
60
  OneTimePayment: 'oneTimePayment'
66
61
  } as const;
@@ -73,6 +73,7 @@ export const SharedUpdatePremiumFormulaRequestDtoUnitEnum = {
73
73
  Day: 'day',
74
74
  Week: 'week',
75
75
  Month: 'month',
76
+ Quarter: 'quarter',
76
77
  Year: 'year',
77
78
  OneTimePayment: 'oneTimePayment'
78
79
  } as const;
@@ -67,6 +67,7 @@ export const UpdatePremiumFormulaRequestDtoUnitEnum = {
67
67
  Day: 'day',
68
68
  Week: 'week',
69
69
  Month: 'month',
70
+ Quarter: 'quarter',
70
71
  Year: 'year',
71
72
  OneTimePayment: 'oneTimePayment'
72
73
  } as const;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [