@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.
- package/.openapi-generator/FILES +4 -1
- package/README.md +2 -2
- package/api/draft-invoice-api.ts +346 -0
- package/api/estimated-invoices-api.ts +111 -4
- package/api/invoices-api.ts +108 -214
- package/api.ts +2 -0
- package/dist/api/draft-invoice-api.d.ts +185 -0
- package/dist/api/draft-invoice-api.js +396 -0
- package/dist/api/estimated-invoices-api.d.ts +61 -4
- package/dist/api/estimated-invoices-api.js +97 -4
- package/dist/api/invoices-api.d.ts +92 -149
- package/dist/api/invoices-api.js +70 -163
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/create-draft-invoice-request-dto.d.ts +89 -0
- package/dist/models/create-draft-invoice-request-dto.js +26 -0
- package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
- package/dist/models/{create-invoice-payment-response-class.d.ts → create-estimated-invoice-for-interval-response-class.d.ts} +7 -7
- package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
- package/dist/models/create-invoice-payment-request-dto.d.ts +6 -0
- package/dist/models/create-invoice-request-dto.d.ts +3 -3
- package/dist/models/create-invoice-status-request-dto.d.ts +1 -0
- package/dist/models/create-invoice-status-request-dto.js +2 -1
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/invoice-class.d.ts +1 -0
- package/dist/models/invoice-class.js +2 -1
- package/dist/models/invoice-item-class.d.ts +12 -0
- package/dist/models/invoice-payment-class.d.ts +7 -7
- package/dist/models/invoice-status-class.d.ts +1 -0
- package/dist/models/invoice-status-class.js +2 -1
- package/dist/models/omit-type-class.d.ts +8 -0
- package/dist/models/omit-type-class.js +2 -1
- package/dist/models/policy-dto.d.ts +7 -1
- package/dist/models/policy-object-dto.d.ts +12 -12
- package/dist/models/policy-version-dto.d.ts +6 -0
- package/models/create-draft-invoice-request-dto.ts +98 -0
- package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
- package/models/{create-invoice-payment-response-class.ts → create-estimated-invoice-for-interval-response-class.ts} +7 -7
- package/models/create-invoice-payment-request-dto.ts +6 -0
- package/models/create-invoice-request-dto.ts +3 -3
- package/models/create-invoice-status-request-dto.ts +2 -1
- package/models/index.ts +3 -1
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/invoice-class.ts +2 -1
- package/models/invoice-item-class.ts +12 -0
- package/models/invoice-payment-class.ts +7 -7
- package/models/invoice-status-class.ts +2 -1
- package/models/omit-type-class.ts +9 -1
- package/models/policy-dto.ts +7 -1
- package/models/policy-object-dto.ts +12 -12
- package/models/policy-version-dto.ts +6 -0
- package/package.json +1 -1
- /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]:
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
32
32
|
* @memberof InlineResponse503
|
|
33
33
|
*/
|
|
34
|
-
'info'?: { [key: string]: { [key: string]:
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {{ [key: string]: { [key: string]:
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
38
38
|
* @memberof InlineResponse503
|
|
39
39
|
*/
|
|
40
|
-
'error'?: { [key: string]: { [key: string]:
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {{ [key: string]: { [key: string]:
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
44
44
|
* @memberof InlineResponse503
|
|
45
45
|
*/
|
|
46
|
-
'details'?: { [key: string]: { [key: string]:
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: object; }; };
|
|
47
47
|
}
|
|
48
48
|
|
package/models/invoice-class.ts
CHANGED
|
@@ -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
|
-
'
|
|
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
|
-
*
|
|
97
|
-
* @type {
|
|
96
|
+
* Id of the payment linked to the invoice.
|
|
97
|
+
* @type {number}
|
|
98
98
|
* @memberof InvoicePaymentClass
|
|
99
99
|
*/
|
|
100
|
-
'
|
|
100
|
+
'paymentId': number;
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
103
|
-
* @type {
|
|
102
|
+
* Time at which the object was created.
|
|
103
|
+
* @type {string}
|
|
104
104
|
* @memberof InvoicePaymentClass
|
|
105
105
|
*/
|
|
106
|
-
'
|
|
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];
|
package/models/policy-dto.ts
CHANGED
|
@@ -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
|
|
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
|
|
package/package.json
CHANGED