@emilgroup/billing-sdk 1.62.0 → 1.63.1-beta.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 +4 -1
  2. package/README.md +2 -2
  3. package/api/withdraw-invoices-api.ts +179 -0
  4. package/api.ts +2 -0
  5. package/dist/api/withdraw-invoices-api.d.ts +106 -0
  6. package/dist/api/withdraw-invoices-api.js +230 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/models/create-correction-invoices-response-class.d.ts +3 -3
  10. package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +4 -2
  11. package/dist/models/create-draft-invoice-request-dto.d.ts +4 -2
  12. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +4 -2
  13. package/dist/models/create-estimated-invoice-request-dto.d.ts +4 -2
  14. package/dist/models/create-invoice-for-policy-request-dto.d.ts +4 -2
  15. package/dist/models/create-invoice-request-dto.d.ts +4 -2
  16. package/dist/models/create-invoice-response-class.d.ts +3 -3
  17. package/dist/models/create-termination-invoice-request-dto.d.ts +4 -2
  18. package/dist/models/create-withdraw-invoice-request-dto-rest.d.ts +50 -0
  19. package/dist/models/create-withdraw-invoice-request-dto-rest.js +15 -0
  20. package/dist/models/create-withdraw-invoice-request-dto.d.ts +50 -0
  21. package/dist/models/create-withdraw-invoice-request-dto.js +15 -0
  22. package/dist/models/get-invoice-response-class.d.ts +3 -3
  23. package/dist/models/index.d.ts +3 -1
  24. package/dist/models/index.js +3 -1
  25. package/dist/models/{omit-type-class.d.ts → omit-invoice-class-statuses.d.ts} +37 -37
  26. package/dist/models/{omit-type-class.js → omit-invoice-class-statuses.js} +3 -3
  27. package/dist/models/policy-object-dto.d.ts +4 -2
  28. package/dist/models/policy-version-dto.d.ts +4 -2
  29. package/models/create-correction-invoices-response-class.ts +3 -3
  30. package/models/create-custom-estimated-invoice-request-dto.ts +2 -2
  31. package/models/create-draft-invoice-request-dto.ts +2 -2
  32. package/models/create-estimated-invoice-for-interval-request-dto.ts +2 -2
  33. package/models/create-estimated-invoice-request-dto.ts +2 -2
  34. package/models/create-invoice-for-policy-request-dto.ts +2 -2
  35. package/models/create-invoice-request-dto.ts +2 -2
  36. package/models/create-invoice-response-class.ts +3 -3
  37. package/models/create-termination-invoice-request-dto.ts +2 -2
  38. package/models/create-withdraw-invoice-request-dto-rest.ts +54 -0
  39. package/models/create-withdraw-invoice-request-dto.ts +54 -0
  40. package/models/get-invoice-response-class.ts +3 -3
  41. package/models/index.ts +3 -1
  42. package/models/{omit-type-class.ts → omit-invoice-class-statuses.ts} +37 -37
  43. package/models/policy-object-dto.ts +2 -2
  44. package/models/policy-version-dto.ts +2 -2
  45. package/package.json +1 -1
@@ -41,10 +41,10 @@ export interface CreateInvoiceRequestDto {
41
41
  'type': CreateInvoiceRequestDtoTypeEnum;
42
42
  /**
43
43
  * Metadata contains extra information that the object would need for specific cases.
44
- * @type {object}
44
+ * @type {{ [key: string]: object; }}
45
45
  * @memberof CreateInvoiceRequestDto
46
46
  */
47
- 'metadata': object;
47
+ 'metadata'?: { [key: string]: object; };
48
48
  /**
49
49
  * This is the date from which the invoice interval starts.
50
50
  * @type {string}
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- import { OmitTypeClass } from './omit-type-class';
16
+ import { OmitInvoiceClassStatuses } from './omit-invoice-class-statuses';
17
17
 
18
18
  /**
19
19
  *
@@ -23,9 +23,9 @@ import { OmitTypeClass } from './omit-type-class';
23
23
  export interface CreateInvoiceResponseClass {
24
24
  /**
25
25
  * Invoice response.
26
- * @type {OmitTypeClass}
26
+ * @type {OmitInvoiceClassStatuses}
27
27
  * @memberof CreateInvoiceResponseClass
28
28
  */
29
- 'invoice': OmitTypeClass;
29
+ 'invoice': OmitInvoiceClassStatuses;
30
30
  }
31
31
 
@@ -34,10 +34,10 @@ export interface CreateTerminationInvoiceRequestDto {
34
34
  'accountNumber': string;
35
35
  /**
36
36
  *
37
- * @type {object}
37
+ * @type {{ [key: string]: object; }}
38
38
  * @memberof CreateTerminationInvoiceRequestDto
39
39
  */
40
- 'metadata'?: object;
40
+ 'metadata'?: { [key: string]: object; };
41
41
  /**
42
42
  *
43
43
  * @type {string}
@@ -0,0 +1,54 @@
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 CreateWithdrawInvoiceRequestDtoRest
21
+ */
22
+ export interface CreateWithdrawInvoiceRequestDtoRest {
23
+ /**
24
+ * Unique identifier of the policy that this object belongs to.
25
+ * @type {string}
26
+ * @memberof CreateWithdrawInvoiceRequestDtoRest
27
+ */
28
+ 'policyCode': string;
29
+ /**
30
+ * Account number.
31
+ * @type {string}
32
+ * @memberof CreateWithdrawInvoiceRequestDtoRest
33
+ */
34
+ 'accountNumber': string;
35
+ /**
36
+ * Policy number.
37
+ * @type {string}
38
+ * @memberof CreateWithdrawInvoiceRequestDtoRest
39
+ */
40
+ 'policyNumber': string;
41
+ /**
42
+ * This is the date from which the invoice interval starts.
43
+ * @type {string}
44
+ * @memberof CreateWithdrawInvoiceRequestDtoRest
45
+ */
46
+ 'billingIntervalFrom': string;
47
+ /**
48
+ * Metadata contains extra information that the object would need for specific cases.
49
+ * @type {{ [key: string]: object; }}
50
+ * @memberof CreateWithdrawInvoiceRequestDtoRest
51
+ */
52
+ 'metadata'?: { [key: string]: object; };
53
+ }
54
+
@@ -0,0 +1,54 @@
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 CreateWithdrawInvoiceRequestDto
21
+ */
22
+ export interface CreateWithdrawInvoiceRequestDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof CreateWithdrawInvoiceRequestDto
27
+ */
28
+ 'policyCode': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof CreateWithdrawInvoiceRequestDto
33
+ */
34
+ 'accountNumber': string;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: object; }}
38
+ * @memberof CreateWithdrawInvoiceRequestDto
39
+ */
40
+ 'metadata'?: { [key: string]: object; };
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof CreateWithdrawInvoiceRequestDto
45
+ */
46
+ 'billingIntervalFrom': string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof CreateWithdrawInvoiceRequestDto
51
+ */
52
+ 'policyNumber': string;
53
+ }
54
+
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- import { OmitTypeClass } from './omit-type-class';
16
+ import { OmitInvoiceClassStatuses } from './omit-invoice-class-statuses';
17
17
 
18
18
  /**
19
19
  *
@@ -23,9 +23,9 @@ import { OmitTypeClass } from './omit-type-class';
23
23
  export interface GetInvoiceResponseClass {
24
24
  /**
25
25
  * Invoice response.
26
- * @type {OmitTypeClass}
26
+ * @type {OmitInvoiceClassStatuses}
27
27
  * @memberof GetInvoiceResponseClass
28
28
  */
29
- 'invoice': OmitTypeClass;
29
+ 'invoice': OmitInvoiceClassStatuses;
30
30
  }
31
31
 
package/models/index.ts CHANGED
@@ -17,6 +17,8 @@ export * from './create-policy-billing-response-class';
17
17
  export * from './create-product-estimated-invoice-request-dto';
18
18
  export * from './create-product-estimated-invoice-response-class';
19
19
  export * from './create-termination-invoice-request-dto';
20
+ export * from './create-withdraw-invoice-request-dto';
21
+ export * from './create-withdraw-invoice-request-dto-rest';
20
22
  export * from './get-invoice-response-class';
21
23
  export * from './inline-response200';
22
24
  export * from './inline-response503';
@@ -28,7 +30,7 @@ export * from './invoice-status-class';
28
30
  export * from './list-invoices-response-class';
29
31
  export * from './list-policies-billings-response-class';
30
32
  export * from './list-request-dto';
31
- export * from './omit-type-class';
33
+ export * from './omit-invoice-class-statuses';
32
34
  export * from './policy-billing-class';
33
35
  export * from './policy-dto';
34
36
  export * from './policy-object-dto';
@@ -19,186 +19,186 @@ import { InvoicePaymentsClass } from './invoice-payments-class';
19
19
  /**
20
20
  *
21
21
  * @export
22
- * @interface OmitTypeClass
22
+ * @interface OmitInvoiceClassStatuses
23
23
  */
24
- export interface OmitTypeClass {
24
+ export interface OmitInvoiceClassStatuses {
25
25
  /**
26
26
  * Internal unique identifier for the object. You should not have to use this, use code instead.
27
27
  * @type {number}
28
- * @memberof OmitTypeClass
28
+ * @memberof OmitInvoiceClassStatuses
29
29
  */
30
30
  'id': number;
31
31
  /**
32
32
  * Unique identifier of the policy that this object belongs to.
33
33
  * @type {string}
34
- * @memberof OmitTypeClass
34
+ * @memberof OmitInvoiceClassStatuses
35
35
  */
36
36
  'policyCode': string;
37
37
  /**
38
38
  * Account number.
39
39
  * @type {string}
40
- * @memberof OmitTypeClass
40
+ * @memberof OmitInvoiceClassStatuses
41
41
  */
42
42
  'accountNumber': string;
43
43
  /**
44
44
  * Policy number.
45
45
  * @type {string}
46
- * @memberof OmitTypeClass
46
+ * @memberof OmitInvoiceClassStatuses
47
47
  */
48
48
  'policyNumber': string;
49
49
  /**
50
50
  * Unique identifier for the object.
51
51
  * @type {string}
52
- * @memberof OmitTypeClass
52
+ * @memberof OmitInvoiceClassStatuses
53
53
  */
54
54
  'code': string;
55
55
  /**
56
56
  * Invoice type.
57
57
  * @type {string}
58
- * @memberof OmitTypeClass
58
+ * @memberof OmitInvoiceClassStatuses
59
59
  */
60
- 'type': OmitTypeClassTypeEnum;
60
+ 'type': OmitInvoiceClassStatusesTypeEnum;
61
61
  /**
62
62
  * Invoice number.
63
63
  * @type {string}
64
- * @memberof OmitTypeClass
64
+ * @memberof OmitInvoiceClassStatuses
65
65
  */
66
66
  'invoiceNumber': string;
67
67
  /**
68
68
  * Net amount is in cents.
69
69
  * @type {number}
70
- * @memberof OmitTypeClass
70
+ * @memberof OmitInvoiceClassStatuses
71
71
  */
72
72
  'netAmount': number;
73
73
  /**
74
74
  * Tax amount is in cents.
75
75
  * @type {number}
76
- * @memberof OmitTypeClass
76
+ * @memberof OmitInvoiceClassStatuses
77
77
  */
78
78
  'taxAmount': number;
79
79
  /**
80
80
  * Credit amount.
81
81
  * @type {number}
82
- * @memberof OmitTypeClass
82
+ * @memberof OmitInvoiceClassStatuses
83
83
  */
84
84
  'creditAmount': number;
85
85
  /**
86
86
  * Gross amount. This property is sum of taxAmount and netAmount.
87
87
  * @type {number}
88
- * @memberof OmitTypeClass
88
+ * @memberof OmitInvoiceClassStatuses
89
89
  */
90
90
  'grossAmount': number;
91
91
  /**
92
92
  * 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.
93
93
  * @type {number}
94
- * @memberof OmitTypeClass
94
+ * @memberof OmitInvoiceClassStatuses
95
95
  */
96
96
  'paidAmount': number;
97
97
  /**
98
98
  * Invoice status.
99
99
  * @type {string}
100
- * @memberof OmitTypeClass
100
+ * @memberof OmitInvoiceClassStatuses
101
101
  */
102
- 'status': OmitTypeClassStatusEnum;
102
+ 'status': OmitInvoiceClassStatusesStatusEnum;
103
103
  /**
104
104
  * Invoice due date.
105
105
  * @type {string}
106
- * @memberof OmitTypeClass
106
+ * @memberof OmitInvoiceClassStatuses
107
107
  */
108
108
  'dueDate': string;
109
109
  /**
110
110
  * Metadata contains extra information that the object would need for specific cases.
111
111
  * @type {object}
112
- * @memberof OmitTypeClass
112
+ * @memberof OmitInvoiceClassStatuses
113
113
  */
114
114
  'metadata': object;
115
115
  /**
116
116
  * Start date of billing interval.
117
117
  * @type {string}
118
- * @memberof OmitTypeClass
118
+ * @memberof OmitInvoiceClassStatuses
119
119
  */
120
120
  'billingIntervalFrom': string;
121
121
  /**
122
122
  * End date of billing interval.
123
123
  * @type {string}
124
- * @memberof OmitTypeClass
124
+ * @memberof OmitInvoiceClassStatuses
125
125
  */
126
126
  'billingIntervalTo': string;
127
127
  /**
128
128
  * Time at which the object was created.
129
129
  * @type {string}
130
- * @memberof OmitTypeClass
130
+ * @memberof OmitInvoiceClassStatuses
131
131
  */
132
132
  'createdAt': string;
133
133
  /**
134
134
  * Invoice items.
135
135
  * @type {Array<InvoiceItemClass>}
136
- * @memberof OmitTypeClass
136
+ * @memberof OmitInvoiceClassStatuses
137
137
  */
138
138
  'invoiceItems': Array<InvoiceItemClass>;
139
139
  /**
140
140
  * Invoice currency. EUR is used by default.
141
141
  * @type {string}
142
- * @memberof OmitTypeClass
142
+ * @memberof OmitInvoiceClassStatuses
143
143
  */
144
144
  'currency': string;
145
145
  /**
146
146
  * Invoice payments.
147
147
  * @type {InvoicePaymentsClass}
148
- * @memberof OmitTypeClass
148
+ * @memberof OmitInvoiceClassStatuses
149
149
  */
150
150
  'payments': InvoicePaymentsClass;
151
151
  /**
152
152
  * Identifier of the user who created the record.
153
153
  * @type {string}
154
- * @memberof OmitTypeClass
154
+ * @memberof OmitInvoiceClassStatuses
155
155
  */
156
156
  'createdBy': string;
157
157
  /**
158
158
  * Identifier of the user who last updated the record.
159
159
  * @type {string}
160
- * @memberof OmitTypeClass
160
+ * @memberof OmitInvoiceClassStatuses
161
161
  */
162
162
  'updatedBy': string;
163
163
  /**
164
164
  * Invoice payment method code.
165
165
  * @type {string}
166
- * @memberof OmitTypeClass
166
+ * @memberof OmitInvoiceClassStatuses
167
167
  */
168
168
  'paymentMethodCode': string;
169
169
  /**
170
170
  * Invoice payment method Payment Service Provider.
171
171
  * @type {string}
172
- * @memberof OmitTypeClass
172
+ * @memberof OmitInvoiceClassStatuses
173
173
  */
174
174
  'paymentMethodPsp': string;
175
175
  /**
176
176
  * Invoice payment method type (e.g. card, bank transfer, etc.).
177
177
  * @type {string}
178
- * @memberof OmitTypeClass
178
+ * @memberof OmitInvoiceClassStatuses
179
179
  */
180
180
  'paymentMethodType': string;
181
181
  /**
182
182
  * Dunning fees.
183
183
  * @type {number}
184
- * @memberof OmitTypeClass
184
+ * @memberof OmitInvoiceClassStatuses
185
185
  */
186
186
  'dunningFees': number;
187
187
  /**
188
188
  * Total amount.
189
189
  * @type {number}
190
- * @memberof OmitTypeClass
190
+ * @memberof OmitInvoiceClassStatuses
191
191
  */
192
192
  'totalAmount': number;
193
193
  /**
194
194
  * Open amount.
195
195
  * @type {number}
196
- * @memberof OmitTypeClass
196
+ * @memberof OmitInvoiceClassStatuses
197
197
  */
198
198
  'openAmount': number;
199
199
  }
200
200
 
201
- export const OmitTypeClassTypeEnum = {
201
+ export const OmitInvoiceClassStatusesTypeEnum = {
202
202
  Initial: 'initial',
203
203
  Recurring: 'recurring',
204
204
  Correction: 'correction',
@@ -209,14 +209,14 @@ export const OmitTypeClassTypeEnum = {
209
209
  Final: 'final'
210
210
  } as const;
211
211
 
212
- export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof OmitTypeClassTypeEnum];
213
- export const OmitTypeClassStatusEnum = {
212
+ export type OmitInvoiceClassStatusesTypeEnum = typeof OmitInvoiceClassStatusesTypeEnum[keyof typeof OmitInvoiceClassStatusesTypeEnum];
213
+ export const OmitInvoiceClassStatusesStatusEnum = {
214
214
  Open: 'open',
215
215
  Paid: 'paid',
216
216
  PartiallyPaid: 'partially-paid',
217
217
  Refunded: 'refunded'
218
218
  } as const;
219
219
 
220
- export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
220
+ export type OmitInvoiceClassStatusesStatusEnum = typeof OmitInvoiceClassStatusesStatusEnum[keyof typeof OmitInvoiceClassStatusesStatusEnum];
221
221
 
222
222
 
@@ -52,10 +52,10 @@ export interface PolicyObjectDto {
52
52
  'summary': string;
53
53
  /**
54
54
  * Insured object data.
55
- * @type {object}
55
+ * @type {{ [key: string]: object; }}
56
56
  * @memberof PolicyObjectDto
57
57
  */
58
- 'data': object;
58
+ 'data': { [key: string]: object; };
59
59
  /**
60
60
  * Time at which the object was created.
61
61
  * @type {string}
@@ -35,10 +35,10 @@ export interface PolicyVersionDto {
35
35
  'isCurrent': boolean;
36
36
  /**
37
37
  * Metadata contains extra information that the object would need for specific cases.
38
- * @type {object}
38
+ * @type {{ [key: string]: object; }}
39
39
  * @memberof PolicyVersionDto
40
40
  */
41
- 'metadata'?: object;
41
+ 'metadata'?: { [key: string]: object; };
42
42
  /**
43
43
  * Time at which the object was created.
44
44
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk",
3
- "version": "1.62.0",
3
+ "version": "1.63.1-beta.0",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [