@emilgroup/billing-sdk-node 1.17.0 → 1.18.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 (104) hide show
  1. package/.openapi-generator/FILES +3 -17
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +2 -4
  4. package/api/draft-invoice-api.ts +346 -0
  5. package/api/estimated-invoices-api.ts +112 -11
  6. package/api/initial-invoices-api.ts +2 -4
  7. package/api/invoices-api.ts +110 -222
  8. package/api/recurring-invoices-api.ts +2 -4
  9. package/api.ts +2 -0
  10. package/dist/api/correction-invoices-api.d.ts +3 -4
  11. package/dist/api/draft-invoice-api.d.ts +185 -0
  12. package/dist/api/draft-invoice-api.js +396 -0
  13. package/dist/api/estimated-invoices-api.d.ts +66 -12
  14. package/dist/api/estimated-invoices-api.js +97 -4
  15. package/dist/api/initial-invoices-api.d.ts +3 -4
  16. package/dist/api/invoices-api.d.ts +97 -157
  17. package/dist/api/invoices-api.js +70 -163
  18. package/dist/api/recurring-invoices-api.d.ts +3 -4
  19. package/dist/api.d.ts +1 -0
  20. package/dist/api.js +1 -0
  21. package/dist/models/create-draft-invoice-request-dto.d.ts +89 -0
  22. package/dist/models/{invoice-class.js → create-draft-invoice-request-dto.js} +2 -7
  23. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
  24. package/dist/models/create-estimated-invoice-request-dto.d.ts +1 -7
  25. package/dist/models/create-invoice-payment-request-dto.d.ts +2 -2
  26. package/dist/models/create-invoice-request-dto.d.ts +5 -5
  27. package/dist/models/index.d.ts +2 -17
  28. package/dist/models/index.js +2 -17
  29. package/dist/models/inline-response200.d.ts +6 -6
  30. package/dist/models/inline-response503.d.ts +6 -6
  31. package/dist/models/policy-dto.d.ts +5 -19
  32. package/dist/models/policy-dto.js +0 -8
  33. package/dist/models/policy-object-dto.d.ts +14 -20
  34. package/dist/models/policy-premium-dto.d.ts +2 -2
  35. package/dist/models/policy-premium-item-dto.d.ts +2 -2
  36. package/dist/models/policy-version-dto.d.ts +9 -3
  37. package/dist/models/premium-formula-dto.d.ts +2 -2
  38. package/dist/models/timeslice-dto.d.ts +1 -1
  39. package/models/create-draft-invoice-request-dto.ts +98 -0
  40. package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
  41. package/models/create-estimated-invoice-request-dto.ts +1 -7
  42. package/models/create-invoice-payment-request-dto.ts +2 -2
  43. package/models/create-invoice-request-dto.ts +5 -5
  44. package/models/index.ts +2 -17
  45. package/models/inline-response200.ts +6 -6
  46. package/models/inline-response503.ts +6 -6
  47. package/models/policy-dto.ts +5 -22
  48. package/models/policy-object-dto.ts +14 -20
  49. package/models/policy-premium-dto.ts +2 -2
  50. package/models/policy-premium-item-dto.ts +2 -2
  51. package/models/policy-version-dto.ts +9 -3
  52. package/models/premium-formula-dto.ts +2 -2
  53. package/models/timeslice-dto.ts +1 -1
  54. package/package.json +1 -1
  55. package/dist/models/create-correction-invoices-response-class.d.ts +0 -25
  56. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +0 -24
  57. package/dist/models/create-custom-estimated-invoice-response-class.js +0 -15
  58. package/dist/models/create-estimated-invoice-response-class.d.ts +0 -31
  59. package/dist/models/create-estimated-invoice-response-class.js +0 -15
  60. package/dist/models/create-invoice-payment-response-class.d.ts +0 -25
  61. package/dist/models/create-invoice-payment-response-class.js +0 -15
  62. package/dist/models/create-invoice-response-class.d.ts +0 -25
  63. package/dist/models/create-invoice-response-class.js +0 -15
  64. package/dist/models/create-invoice-status-request-dto.d.ts +0 -36
  65. package/dist/models/create-invoice-status-request-dto.js +0 -21
  66. package/dist/models/create-termination-invoice-request-dto.d.ts +0 -54
  67. package/dist/models/create-termination-invoice-request-dto.js +0 -15
  68. package/dist/models/get-invoice-response-class.d.ts +0 -25
  69. package/dist/models/get-invoice-response-class.js +0 -15
  70. package/dist/models/invoice-class.d.ts +0 -170
  71. package/dist/models/invoice-item-class.d.ts +0 -129
  72. package/dist/models/invoice-item-class.js +0 -24
  73. package/dist/models/invoice-payment-class.d.ts +0 -102
  74. package/dist/models/invoice-payment-class.js +0 -15
  75. package/dist/models/invoice-payments-class.d.ts +0 -25
  76. package/dist/models/invoice-payments-class.js +0 -15
  77. package/dist/models/invoice-status-class.d.ts +0 -48
  78. package/dist/models/invoice-status-class.js +0 -21
  79. package/dist/models/list-invoices-response-class.d.ts +0 -31
  80. package/dist/models/list-invoices-response-class.js +0 -15
  81. package/dist/models/list-policies-billing-dates-response-class.d.ts +0 -31
  82. package/dist/models/list-policies-billing-dates-response-class.js +0 -15
  83. package/dist/models/omit-type-class.d.ts +0 -156
  84. package/dist/models/omit-type-class.js +0 -31
  85. package/dist/models/policy-billing-date-class.d.ts +0 -42
  86. package/dist/models/policy-billing-date-class.js +0 -15
  87. package/models/create-correction-invoices-response-class.ts +0 -31
  88. package/models/create-custom-estimated-invoice-response-class.ts +0 -30
  89. package/models/create-estimated-invoice-response-class.ts +0 -37
  90. package/models/create-invoice-payment-response-class.ts +0 -31
  91. package/models/create-invoice-response-class.ts +0 -31
  92. package/models/create-invoice-status-request-dto.ts +0 -45
  93. package/models/create-termination-invoice-request-dto.ts +0 -60
  94. package/models/get-invoice-response-class.ts +0 -31
  95. package/models/invoice-class.ts +0 -180
  96. package/models/invoice-item-class.ts +0 -138
  97. package/models/invoice-payment-class.ts +0 -108
  98. package/models/invoice-payments-class.ts +0 -31
  99. package/models/invoice-status-class.ts +0 -57
  100. package/models/list-invoices-response-class.ts +0 -37
  101. package/models/list-policies-billing-dates-response-class.ts +0 -37
  102. package/models/omit-type-class.ts +0 -166
  103. package/models/policy-billing-date-class.ts +0 -48
  104. /package/dist/models/{create-correction-invoices-response-class.js → create-estimated-invoice-for-interval-request-dto.js} +0 -0
@@ -1,156 +0,0 @@
1
- /**
2
- * EMIL BillingService
3
- * The EMIL BillingService 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 { InvoiceItemClass } from './invoice-item-class';
13
- /**
14
- *
15
- * @export
16
- * @interface OmitTypeClass
17
- */
18
- export interface OmitTypeClass {
19
- /**
20
- * Internal unique identifier for the object. You should not have to use this, use code instead.
21
- * @type {number}
22
- * @memberof OmitTypeClass
23
- */
24
- 'id': number;
25
- /**
26
- * Unique identifier of the policy that this object belongs to.
27
- * @type {string}
28
- * @memberof OmitTypeClass
29
- */
30
- 'policyCode': string;
31
- /**
32
- * Account number.
33
- * @type {string}
34
- * @memberof OmitTypeClass
35
- */
36
- 'accountNumber': string;
37
- /**
38
- * Policy number.
39
- * @type {string}
40
- * @memberof OmitTypeClass
41
- */
42
- 'policyNumber': string;
43
- /**
44
- * Unique identifier for the object.
45
- * @type {string}
46
- * @memberof OmitTypeClass
47
- */
48
- 'code': string;
49
- /**
50
- * Invoice type.
51
- * @type {string}
52
- * @memberof OmitTypeClass
53
- */
54
- 'type': OmitTypeClassTypeEnum;
55
- /**
56
- * Invoice number.
57
- * @type {string}
58
- * @memberof OmitTypeClass
59
- */
60
- 'invoiceNumber': string;
61
- /**
62
- * Net amount is in cents.
63
- * @type {number}
64
- * @memberof OmitTypeClass
65
- */
66
- 'netAmount': number;
67
- /**
68
- * Tax amount is in cents.
69
- * @type {number}
70
- * @memberof OmitTypeClass
71
- */
72
- 'taxAmount': number;
73
- /**
74
- * Credit amount.
75
- * @type {number}
76
- * @memberof OmitTypeClass
77
- */
78
- 'creditAmount': number;
79
- /**
80
- * Gross amount. This property is sum of taxAmount and netAmount.
81
- * @type {number}
82
- * @memberof OmitTypeClass
83
- */
84
- 'grossAmount': number;
85
- /**
86
- * Paid amount. This property is amount paid by this invoice. The amount corresponds to the sum (positives and negatives) of all payments relating to that invoice.
87
- * @type {number}
88
- * @memberof OmitTypeClass
89
- */
90
- 'paidAmount': number;
91
- /**
92
- * Invoice status.
93
- * @type {string}
94
- * @memberof OmitTypeClass
95
- */
96
- 'status': OmitTypeClassStatusEnum;
97
- /**
98
- * Invoice due date.
99
- * @type {string}
100
- * @memberof OmitTypeClass
101
- */
102
- 'dueDate': string;
103
- /**
104
- * Metadata contains extra information that the object would need for specific cases.
105
- * @type {object}
106
- * @memberof OmitTypeClass
107
- */
108
- 'metadata': object;
109
- /**
110
- * Start date of billing interval.
111
- * @type {string}
112
- * @memberof OmitTypeClass
113
- */
114
- 'billingIntervalFrom': string;
115
- /**
116
- * End date of billing interval.
117
- * @type {string}
118
- * @memberof OmitTypeClass
119
- */
120
- 'billingIntervalTo': string;
121
- /**
122
- * Time at which the object was created.
123
- * @type {string}
124
- * @memberof OmitTypeClass
125
- */
126
- 'createdAt': string;
127
- /**
128
- * Invoice items.
129
- * @type {Array<InvoiceItemClass>}
130
- * @memberof OmitTypeClass
131
- */
132
- 'invoiceItems': Array<InvoiceItemClass>;
133
- /**
134
- * Invoice currency. EUR is used by default.
135
- * @type {string}
136
- * @memberof OmitTypeClass
137
- */
138
- 'currency': string;
139
- }
140
- export declare const OmitTypeClassTypeEnum: {
141
- readonly Initial: "initial";
142
- readonly Recurring: "recurring";
143
- readonly Correction: "correction";
144
- readonly Estimated: "estimated";
145
- readonly Penalty: "penalty";
146
- readonly Other: "other";
147
- readonly Withdraw: "withdraw";
148
- readonly Final: "final";
149
- };
150
- export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof OmitTypeClassTypeEnum];
151
- export declare const OmitTypeClassStatusEnum: {
152
- readonly Open: "open";
153
- readonly Paid: "paid";
154
- readonly PartiallyPaid: "partially-paid";
155
- };
156
- export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
@@ -1,31 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL BillingService
6
- * The EMIL BillingService 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.OmitTypeClassStatusEnum = exports.OmitTypeClassTypeEnum = void 0;
17
- exports.OmitTypeClassTypeEnum = {
18
- Initial: 'initial',
19
- Recurring: 'recurring',
20
- Correction: 'correction',
21
- Estimated: 'estimated',
22
- Penalty: 'penalty',
23
- Other: 'other',
24
- Withdraw: 'withdraw',
25
- Final: 'final'
26
- };
27
- exports.OmitTypeClassStatusEnum = {
28
- Open: 'open',
29
- Paid: 'paid',
30
- PartiallyPaid: 'partially-paid'
31
- };
@@ -1,42 +0,0 @@
1
- /**
2
- * EMIL BillingService
3
- * The EMIL BillingService 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 PolicyBillingDateClass
16
- */
17
- export interface PolicyBillingDateClass {
18
- /**
19
- * Internal unique identifier for the object. You should not have to use this, use code instead.
20
- * @type {number}
21
- * @memberof PolicyBillingDateClass
22
- */
23
- 'id': number;
24
- /**
25
- * Unique identifier of the policy that this object belongs to.
26
- * @type {string}
27
- * @memberof PolicyBillingDateClass
28
- */
29
- 'policyCode': string;
30
- /**
31
- * The next billing date this policy will be invoiced.
32
- * @type {string}
33
- * @memberof PolicyBillingDateClass
34
- */
35
- 'nextBillingDate': string;
36
- /**
37
- * This field will be set to true once an invoice has been created on this specific billing date. It is there to avoid a policy being invoiced multiple times in case of retry.
38
- * @type {boolean}
39
- * @memberof PolicyBillingDateClass
40
- */
41
- 'isInvoiced': boolean;
42
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL BillingService
6
- * The EMIL BillingService 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 });
@@ -1,31 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService 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 { OmitTypeClass } from './omit-type-class';
17
-
18
- /**
19
- *
20
- * @export
21
- * @interface CreateCorrectionInvoicesResponseClass
22
- */
23
- export interface CreateCorrectionInvoicesResponseClass {
24
- /**
25
- * Correction invoices response.
26
- * @type {OmitTypeClass}
27
- * @memberof CreateCorrectionInvoicesResponseClass
28
- */
29
- 'invoices': OmitTypeClass;
30
- }
31
-
@@ -1,30 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService 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 CreateCustomEstimatedInvoiceResponseClass
21
- */
22
- export interface CreateCustomEstimatedInvoiceResponseClass {
23
- /**
24
- * Recurring invoice response
25
- * @type {object}
26
- * @memberof CreateCustomEstimatedInvoiceResponseClass
27
- */
28
- 'custom': object;
29
- }
30
-
@@ -1,37 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService 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 { InvoiceClass } from './invoice-class';
17
-
18
- /**
19
- *
20
- * @export
21
- * @interface CreateEstimatedInvoiceResponseClass
22
- */
23
- export interface CreateEstimatedInvoiceResponseClass {
24
- /**
25
- * Estimated invoice response.
26
- * @type {InvoiceClass}
27
- * @memberof CreateEstimatedInvoiceResponseClass
28
- */
29
- 'invoice': InvoiceClass;
30
- /**
31
- * 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.
32
- * @type {object}
33
- * @memberof CreateEstimatedInvoiceResponseClass
34
- */
35
- 'custom': object;
36
- }
37
-
@@ -1,31 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService 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 { OmitTypeClass } from './omit-type-class';
17
-
18
- /**
19
- *
20
- * @export
21
- * @interface CreateInvoicePaymentResponseClass
22
- */
23
- export interface CreateInvoicePaymentResponseClass {
24
- /**
25
- * Invoice updated after payment.
26
- * @type {OmitTypeClass}
27
- * @memberof CreateInvoicePaymentResponseClass
28
- */
29
- 'invoice': OmitTypeClass;
30
- }
31
-
@@ -1,31 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService 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 { OmitTypeClass } from './omit-type-class';
17
-
18
- /**
19
- *
20
- * @export
21
- * @interface CreateInvoiceResponseClass
22
- */
23
- export interface CreateInvoiceResponseClass {
24
- /**
25
- * Invoice response.
26
- * @type {OmitTypeClass}
27
- * @memberof CreateInvoiceResponseClass
28
- */
29
- 'invoice': OmitTypeClass;
30
- }
31
-
@@ -1,45 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService 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 CreateInvoiceStatusRequestDto
21
- */
22
- export interface CreateInvoiceStatusRequestDto {
23
- /**
24
- *
25
- * @type {number}
26
- * @memberof CreateInvoiceStatusRequestDto
27
- */
28
- 'invoiceId': number;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof CreateInvoiceStatusRequestDto
33
- */
34
- 'status': CreateInvoiceStatusRequestDtoStatusEnum;
35
- }
36
-
37
- export const CreateInvoiceStatusRequestDtoStatusEnum = {
38
- Open: 'open',
39
- Paid: 'paid',
40
- PartiallyPaid: 'partially-paid'
41
- } as const;
42
-
43
- export type CreateInvoiceStatusRequestDtoStatusEnum = typeof CreateInvoiceStatusRequestDtoStatusEnum[keyof typeof CreateInvoiceStatusRequestDtoStatusEnum];
44
-
45
-
@@ -1,60 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService 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 CreateTerminationInvoiceRequestDto
21
- */
22
- export interface CreateTerminationInvoiceRequestDto {
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof CreateTerminationInvoiceRequestDto
27
- */
28
- 'policyCode': string;
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof CreateTerminationInvoiceRequestDto
33
- */
34
- 'accountNumber': string;
35
- /**
36
- *
37
- * @type {object}
38
- * @memberof CreateTerminationInvoiceRequestDto
39
- */
40
- 'metadata'?: object;
41
- /**
42
- *
43
- * @type {string}
44
- * @memberof CreateTerminationInvoiceRequestDto
45
- */
46
- 'billingIntervalFrom': string;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof CreateTerminationInvoiceRequestDto
51
- */
52
- 'billingIntervalTo': string;
53
- /**
54
- *
55
- * @type {string}
56
- * @memberof CreateTerminationInvoiceRequestDto
57
- */
58
- 'policyNumber': string;
59
- }
60
-
@@ -1,31 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL BillingService
5
- * The EMIL BillingService 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 { OmitTypeClass } from './omit-type-class';
17
-
18
- /**
19
- *
20
- * @export
21
- * @interface GetInvoiceResponseClass
22
- */
23
- export interface GetInvoiceResponseClass {
24
- /**
25
- * Invoice response.
26
- * @type {OmitTypeClass}
27
- * @memberof GetInvoiceResponseClass
28
- */
29
- 'invoice': OmitTypeClass;
30
- }
31
-