@emilgroup/billing-sdk-node 1.17.0 → 1.17.1-beta.3

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 (57) hide show
  1. package/.openapi-generator/FILES +4 -1
  2. package/README.md +2 -2
  3. package/api/draft-invoice-api.ts +346 -0
  4. package/api/estimated-invoices-api.ts +111 -4
  5. package/api/invoices-api.ts +108 -214
  6. package/api.ts +2 -0
  7. package/dist/api/draft-invoice-api.d.ts +185 -0
  8. package/dist/api/draft-invoice-api.js +396 -0
  9. package/dist/api/estimated-invoices-api.d.ts +61 -4
  10. package/dist/api/estimated-invoices-api.js +97 -4
  11. package/dist/api/invoices-api.d.ts +92 -149
  12. package/dist/api/invoices-api.js +70 -163
  13. package/dist/api.d.ts +1 -0
  14. package/dist/api.js +1 -0
  15. package/dist/models/create-draft-invoice-request-dto.d.ts +89 -0
  16. package/dist/models/create-draft-invoice-request-dto.js +26 -0
  17. package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
  18. package/dist/models/{create-invoice-payment-response-class.d.ts → create-estimated-invoice-for-interval-response-class.d.ts} +7 -7
  19. package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
  20. package/dist/models/create-invoice-payment-request-dto.d.ts +6 -0
  21. package/dist/models/create-invoice-request-dto.d.ts +3 -3
  22. package/dist/models/create-invoice-status-request-dto.d.ts +1 -0
  23. package/dist/models/create-invoice-status-request-dto.js +2 -1
  24. package/dist/models/index.d.ts +3 -1
  25. package/dist/models/index.js +3 -1
  26. package/dist/models/inline-response200.d.ts +6 -6
  27. package/dist/models/inline-response503.d.ts +6 -6
  28. package/dist/models/invoice-class.d.ts +1 -0
  29. package/dist/models/invoice-class.js +2 -1
  30. package/dist/models/invoice-item-class.d.ts +12 -0
  31. package/dist/models/invoice-payment-class.d.ts +7 -7
  32. package/dist/models/invoice-status-class.d.ts +1 -0
  33. package/dist/models/invoice-status-class.js +2 -1
  34. package/dist/models/omit-type-class.d.ts +8 -0
  35. package/dist/models/omit-type-class.js +2 -1
  36. package/dist/models/policy-dto.d.ts +7 -1
  37. package/dist/models/policy-object-dto.d.ts +12 -12
  38. package/dist/models/policy-version-dto.d.ts +6 -0
  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-invoice-payment-response-class.ts → create-estimated-invoice-for-interval-response-class.ts} +7 -7
  42. package/models/create-invoice-payment-request-dto.ts +6 -0
  43. package/models/create-invoice-request-dto.ts +3 -3
  44. package/models/create-invoice-status-request-dto.ts +2 -1
  45. package/models/index.ts +3 -1
  46. package/models/inline-response200.ts +6 -6
  47. package/models/inline-response503.ts +6 -6
  48. package/models/invoice-class.ts +2 -1
  49. package/models/invoice-item-class.ts +12 -0
  50. package/models/invoice-payment-class.ts +7 -7
  51. package/models/invoice-status-class.ts +2 -1
  52. package/models/omit-type-class.ts +9 -1
  53. package/models/policy-dto.ts +7 -1
  54. package/models/policy-object-dto.ts +12 -12
  55. package/models/policy-version-dto.ts +6 -0
  56. package/package.json +1 -1
  57. /package/dist/models/{create-invoice-payment-response-class.js → create-estimated-invoice-for-interval-request-dto.js} +0 -0
@@ -28,21 +28,21 @@ export interface InlineResponse503 {
28
28
  'status'?: string;
29
29
  /**
30
30
  *
31
- * @type {{ [key: string]: { [key: string]: string; }; }}
31
+ * @type {{ [key: string]: { [key: string]: object; }; }}
32
32
  * @memberof InlineResponse503
33
33
  */
34
- 'info'?: { [key: string]: { [key: string]: string; }; } | null;
34
+ 'info'?: { [key: string]: { [key: string]: object; }; } | null;
35
35
  /**
36
36
  *
37
- * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @type {{ [key: string]: { [key: string]: object; }; }}
38
38
  * @memberof InlineResponse503
39
39
  */
40
- 'error'?: { [key: string]: { [key: string]: string; }; } | null;
40
+ 'error'?: { [key: string]: { [key: string]: object; }; } | null;
41
41
  /**
42
42
  *
43
- * @type {{ [key: string]: { [key: string]: string; }; }}
43
+ * @type {{ [key: string]: { [key: string]: object; }; }}
44
44
  * @memberof InlineResponse503
45
45
  */
46
- 'details'?: { [key: string]: { [key: string]: string; }; };
46
+ 'details'?: { [key: string]: { [key: string]: object; }; };
47
47
  }
48
48
 
@@ -172,7 +172,8 @@ export type InvoiceClassTypeEnum = typeof InvoiceClassTypeEnum[keyof typeof Invo
172
172
  export const InvoiceClassStatusEnum = {
173
173
  Open: 'open',
174
174
  Paid: 'paid',
175
- PartiallyPaid: 'partially-paid'
175
+ PartiallyPaid: 'partially-paid',
176
+ Refunded: 'refunded'
176
177
  } as const;
177
178
 
178
179
  export type InvoiceClassStatusEnum = typeof InvoiceClassStatusEnum[keyof typeof InvoiceClassStatusEnum];
@@ -122,6 +122,18 @@ export interface InvoiceItemClass {
122
122
  * @memberof InvoiceItemClass
123
123
  */
124
124
  'visibility'?: string;
125
+ /**
126
+ * Invoice item quantity per day.
127
+ * @type {number}
128
+ * @memberof InvoiceItemClass
129
+ */
130
+ 'quantityPerDays': number;
131
+ /**
132
+ * Invoice item price per day.
133
+ * @type {number}
134
+ * @memberof InvoiceItemClass
135
+ */
136
+ 'pricePerDay': number;
125
137
  }
126
138
 
127
139
  export const InvoiceItemClassUnitEnum = {
@@ -55,7 +55,7 @@ export interface InvoicePaymentClass {
55
55
  * @type {string}
56
56
  * @memberof InvoicePaymentClass
57
57
  */
58
- 'comment': string;
58
+ 'commment': string;
59
59
  /**
60
60
  * User who added payment.
61
61
  * @type {string}
@@ -93,16 +93,16 @@ export interface InvoicePaymentClass {
93
93
  */
94
94
  'newInvoiceStatus': string;
95
95
  /**
96
- * Time at which the object was created.
97
- * @type {string}
96
+ * Id of the payment linked to the invoice.
97
+ * @type {number}
98
98
  * @memberof InvoicePaymentClass
99
99
  */
100
- 'createdAt': string;
100
+ 'paymentId': number;
101
101
  /**
102
- * Invoice payment id.
103
- * @type {number}
102
+ * Time at which the object was created.
103
+ * @type {string}
104
104
  * @memberof InvoicePaymentClass
105
105
  */
106
- 'paymentId': number;
106
+ 'createdAt': string;
107
107
  }
108
108
 
@@ -49,7 +49,8 @@ export interface InvoiceStatusClass {
49
49
  export const InvoiceStatusClassStatusEnum = {
50
50
  Open: 'open',
51
51
  Paid: 'paid',
52
- PartiallyPaid: 'partially-paid'
52
+ PartiallyPaid: 'partially-paid',
53
+ Refunded: 'refunded'
53
54
  } as const;
54
55
 
55
56
  export type InvoiceStatusClassStatusEnum = typeof InvoiceStatusClassStatusEnum[keyof typeof InvoiceStatusClassStatusEnum];
@@ -14,6 +14,7 @@
14
14
 
15
15
 
16
16
  import { InvoiceItemClass } from './invoice-item-class';
17
+ import { InvoicePaymentsClass } from './invoice-payments-class';
17
18
 
18
19
  /**
19
20
  *
@@ -141,6 +142,12 @@ export interface OmitTypeClass {
141
142
  * @memberof OmitTypeClass
142
143
  */
143
144
  'currency': string;
145
+ /**
146
+ * Invoice payments.
147
+ * @type {InvoicePaymentsClass}
148
+ * @memberof OmitTypeClass
149
+ */
150
+ 'payments': InvoicePaymentsClass;
144
151
  }
145
152
 
146
153
  export const OmitTypeClassTypeEnum = {
@@ -158,7 +165,8 @@ export type OmitTypeClassTypeEnum = typeof OmitTypeClassTypeEnum[keyof typeof Om
158
165
  export const OmitTypeClassStatusEnum = {
159
166
  Open: 'open',
160
167
  Paid: 'paid',
161
- PartiallyPaid: 'partially-paid'
168
+ PartiallyPaid: 'partially-paid',
169
+ Refunded: 'refunded'
162
170
  } as const;
163
171
 
164
172
  export type OmitTypeClassStatusEnum = typeof OmitTypeClassStatusEnum[keyof typeof OmitTypeClassStatusEnum];
@@ -100,11 +100,17 @@ export interface PolicyDto {
100
100
  */
101
101
  'productName': string;
102
102
  /**
103
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
103
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
104
104
  * @type {string}
105
105
  * @memberof PolicyDto
106
106
  */
107
107
  'productSlug': string;
108
+ /**
109
+ * Linked partners.
110
+ * @type {Array<object>}
111
+ * @memberof PolicyDto
112
+ */
113
+ 'partnerLinks': Array<object>;
108
114
  /**
109
115
  *
110
116
  * @type {string}
@@ -32,6 +32,18 @@ export interface PolicyObjectDto {
32
32
  * @memberof PolicyObjectDto
33
33
  */
34
34
  'insuredObjectName': string;
35
+ /**
36
+ * Insured object label.
37
+ * @type {string}
38
+ * @memberof PolicyObjectDto
39
+ */
40
+ 'insuredObjectLabel': string;
41
+ /**
42
+ * A boolean value indicating whether the insured object accepts multiple objects.
43
+ * @type {boolean}
44
+ * @memberof PolicyObjectDto
45
+ */
46
+ 'isMultiInsuredObject': boolean;
35
47
  /**
36
48
  * Insured object summary.
37
49
  * @type {string}
@@ -62,17 +74,5 @@ export interface PolicyObjectDto {
62
74
  * @memberof PolicyObjectDto
63
75
  */
64
76
  'code': string;
65
- /**
66
- *
67
- * @type {string}
68
- * @memberof PolicyObjectDto
69
- */
70
- 'insuredObjectLabel': string;
71
- /**
72
- *
73
- * @type {boolean}
74
- * @memberof PolicyObjectDto
75
- */
76
- 'isMultiInsuredObject': boolean;
77
77
  }
78
78
 
@@ -57,5 +57,11 @@ export interface PolicyVersionDto {
57
57
  * @memberof PolicyVersionDto
58
58
  */
59
59
  'timeline': Array<TimesliceDto>;
60
+ /**
61
+ * Is this a draft policy version?
62
+ * @type {boolean}
63
+ * @memberof PolicyVersionDto
64
+ */
65
+ 'isDraft': boolean;
60
66
  }
61
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk-node",
3
- "version": "1.17.0",
3
+ "version": "1.17.1-beta.3",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [