@emilgroup/billing-sdk 1.63.1-beta.34 → 1.63.1-beta.36
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/README.md +2 -2
- package/api/correction-invoices-api.ts +12 -6
- package/api/draft-invoice-api.ts +12 -6
- package/api/estimated-invoices-api.ts +16 -8
- package/api/initial-invoices-api.ts +8 -4
- package/api/invoices-api.ts +20 -10
- package/api/policy-billing-api.ts +12 -6
- package/api/recurring-invoices-api.ts +8 -4
- package/api/termination-invoices-api.ts +8 -4
- package/api/withdraw-invoices-api.ts +8 -4
- package/base.ts +174 -41
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/correction-invoices-api.d.ts +2 -2
- package/dist/api/correction-invoices-api.js +17 -10
- package/dist/api/draft-invoice-api.d.ts +3 -3
- package/dist/api/draft-invoice-api.js +21 -12
- package/dist/api/estimated-invoices-api.d.ts +4 -4
- package/dist/api/estimated-invoices-api.js +28 -16
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/initial-invoices-api.d.ts +1 -1
- package/dist/api/initial-invoices-api.js +10 -6
- package/dist/api/invoices-api.d.ts +4 -4
- package/dist/api/invoices-api.js +22 -15
- package/dist/api/policy-billing-api.d.ts +3 -3
- package/dist/api/policy-billing-api.js +18 -11
- package/dist/api/recurring-invoices-api.d.ts +1 -1
- package/dist/api/recurring-invoices-api.js +10 -6
- package/dist/api/termination-invoices-api.d.ts +1 -1
- package/dist/api/termination-invoices-api.js +10 -6
- package/dist/api/withdraw-invoices-api.d.ts +1 -1
- package/dist/api/withdraw-invoices-api.js +10 -6
- package/dist/base.d.ts +24 -0
- package/dist/base.js +178 -59
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/invoice-item-class.d.ts +6 -0
- package/models/invoice-item-class.ts +6 -0
- package/package.json +2 -2
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/billing-sdk@1.63.1-beta.
|
|
20
|
+
npm install @emilgroup/billing-sdk@1.63.1-beta.36 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/billing-sdk@1.63.1-beta.
|
|
24
|
+
yarn add @emilgroup/billing-sdk@1.63.1-beta.36
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `InvoicesApi`.
|
|
@@ -64,12 +64,16 @@ export const CorrectionInvoicesApiAxiosParamCreator = function (configuration?:
|
|
|
64
64
|
// http bearer authentication required
|
|
65
65
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
68
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
69
|
+
if (authorizationValue) {
|
|
70
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
74
|
+
const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
|
|
75
|
+
if (idempotencyKeyValue) {
|
|
76
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
|
|
@@ -114,8 +118,10 @@ export const CorrectionInvoicesApiAxiosParamCreator = function (configuration?:
|
|
|
114
118
|
// http bearer authentication required
|
|
115
119
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
116
120
|
|
|
117
|
-
|
|
118
|
-
|
|
121
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
122
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
123
|
+
if (authorizationValue) {
|
|
124
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
119
125
|
}
|
|
120
126
|
|
|
121
127
|
|
package/api/draft-invoice-api.ts
CHANGED
|
@@ -56,8 +56,10 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
|
|
|
56
56
|
// http bearer authentication required
|
|
57
57
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
60
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
61
|
+
if (authorizationValue) {
|
|
62
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
|
|
@@ -99,8 +101,10 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
|
|
|
99
101
|
// http bearer authentication required
|
|
100
102
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
101
103
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
105
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
106
|
+
if (authorizationValue) {
|
|
107
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
|
|
@@ -142,8 +146,10 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
|
|
|
142
146
|
// http bearer authentication required
|
|
143
147
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
144
148
|
|
|
145
|
-
|
|
146
|
-
|
|
149
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
150
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
151
|
+
if (authorizationValue) {
|
|
152
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
147
153
|
}
|
|
148
154
|
|
|
149
155
|
|
|
@@ -71,8 +71,10 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
71
71
|
// http bearer authentication required
|
|
72
72
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
75
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
76
|
+
if (authorizationValue) {
|
|
77
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
|
|
@@ -118,8 +120,10 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
118
120
|
// http bearer authentication required
|
|
119
121
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
122
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
124
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
125
|
+
if (authorizationValue) {
|
|
126
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
|
|
@@ -165,8 +169,10 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
165
169
|
// http bearer authentication required
|
|
166
170
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
167
171
|
|
|
168
|
-
|
|
169
|
-
|
|
172
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
173
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
174
|
+
if (authorizationValue) {
|
|
175
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
170
176
|
}
|
|
171
177
|
|
|
172
178
|
|
|
@@ -216,8 +222,10 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
216
222
|
// http bearer authentication required
|
|
217
223
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
218
224
|
|
|
219
|
-
|
|
220
|
-
|
|
225
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
226
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
227
|
+
if (authorizationValue) {
|
|
228
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
221
229
|
}
|
|
222
230
|
|
|
223
231
|
|
|
@@ -60,12 +60,16 @@ export const InitialInvoicesApiAxiosParamCreator = function (configuration?: Con
|
|
|
60
60
|
// http bearer authentication required
|
|
61
61
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
64
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
65
|
+
if (authorizationValue) {
|
|
66
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
70
|
+
const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
|
|
71
|
+
if (idempotencyKeyValue) {
|
|
72
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
|
package/api/invoices-api.ts
CHANGED
|
@@ -66,12 +66,16 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
66
66
|
// http bearer authentication required
|
|
67
67
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
70
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
71
|
+
if (authorizationValue) {
|
|
72
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
71
73
|
}
|
|
72
74
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
76
|
+
const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
|
|
77
|
+
if (idempotencyKeyValue) {
|
|
78
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
75
79
|
}
|
|
76
80
|
|
|
77
81
|
|
|
@@ -125,8 +129,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
125
129
|
localVarQueryParameter['expand'] = expand;
|
|
126
130
|
}
|
|
127
131
|
|
|
128
|
-
|
|
129
|
-
|
|
132
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
133
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
if (authorizationValue) {
|
|
135
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
136
|
}
|
|
131
137
|
|
|
132
138
|
|
|
@@ -201,8 +207,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
201
207
|
localVarQueryParameter['filters'] = filters;
|
|
202
208
|
}
|
|
203
209
|
|
|
204
|
-
|
|
205
|
-
|
|
210
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
211
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
212
|
+
if (authorizationValue) {
|
|
213
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
206
214
|
}
|
|
207
215
|
|
|
208
216
|
|
|
@@ -278,8 +286,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
278
286
|
localVarQueryParameter['filters'] = filters;
|
|
279
287
|
}
|
|
280
288
|
|
|
281
|
-
|
|
282
|
-
|
|
289
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
290
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
291
|
+
if (authorizationValue) {
|
|
292
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
283
293
|
}
|
|
284
294
|
|
|
285
295
|
|
|
@@ -63,8 +63,10 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
63
63
|
// http bearer authentication required
|
|
64
64
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
67
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
68
|
+
if (authorizationValue) {
|
|
69
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
|
|
@@ -142,8 +144,10 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
142
144
|
localVarQueryParameter['filters'] = filters;
|
|
143
145
|
}
|
|
144
146
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
148
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
149
|
+
if (authorizationValue) {
|
|
150
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
147
151
|
}
|
|
148
152
|
|
|
149
153
|
|
|
@@ -190,8 +194,10 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
190
194
|
// http bearer authentication required
|
|
191
195
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
192
196
|
|
|
193
|
-
|
|
194
|
-
|
|
197
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
198
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
199
|
+
if (authorizationValue) {
|
|
200
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
195
201
|
}
|
|
196
202
|
|
|
197
203
|
|
|
@@ -60,12 +60,16 @@ export const RecurringInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
60
60
|
// http bearer authentication required
|
|
61
61
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
64
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
65
|
+
if (authorizationValue) {
|
|
66
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
70
|
+
const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
|
|
71
|
+
if (idempotencyKeyValue) {
|
|
72
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
|
|
@@ -60,12 +60,16 @@ export const TerminationInvoicesApiAxiosParamCreator = function (configuration?:
|
|
|
60
60
|
// http bearer authentication required
|
|
61
61
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
64
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
65
|
+
if (authorizationValue) {
|
|
66
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
70
|
+
const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
|
|
71
|
+
if (idempotencyKeyValue) {
|
|
72
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
|
|
@@ -60,12 +60,16 @@ export const WithdrawInvoicesApiAxiosParamCreator = function (configuration?: Co
|
|
|
60
60
|
// http bearer authentication required
|
|
61
61
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
64
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
65
|
+
if (authorizationValue) {
|
|
66
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
65
67
|
}
|
|
66
68
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
70
|
+
const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
|
|
71
|
+
if (idempotencyKeyValue) {
|
|
72
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
|