@emilgroup/billing-sdk-node 1.63.1-beta.3 → 1.63.1-beta.32
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 +28 -18
- 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/common.ts +3 -2
- 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 +12 -12
- package/dist/api/invoices-api.js +28 -21
- 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/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/models/invoice-item-class.d.ts +12 -0
- package/models/invoice-item-class.ts +12 -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-node@1.63.1-beta.
|
|
20
|
+
npm install @emilgroup/billing-sdk-node@1.63.1-beta.32 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/billing-sdk-node@1.63.1-beta.
|
|
24
|
+
yarn add @emilgroup/billing-sdk-node@1.63.1-beta.32
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `InvoicesApi`.
|
|
@@ -68,12 +68,16 @@ export const CorrectionInvoicesApiAxiosParamCreator = function (configuration?:
|
|
|
68
68
|
// http bearer authentication required
|
|
69
69
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
72
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
73
|
+
if (authorizationValue) {
|
|
74
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
78
|
+
const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
|
|
79
|
+
if (idempotencyKeyValue) {
|
|
80
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
|
|
@@ -118,8 +122,10 @@ export const CorrectionInvoicesApiAxiosParamCreator = function (configuration?:
|
|
|
118
122
|
// http bearer authentication required
|
|
119
123
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
124
|
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
126
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
127
|
+
if (authorizationValue) {
|
|
128
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
123
129
|
}
|
|
124
130
|
|
|
125
131
|
|
package/api/draft-invoice-api.ts
CHANGED
|
@@ -60,8 +60,10 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
|
|
|
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
69
|
|
|
@@ -103,8 +105,10 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
|
|
|
103
105
|
// http bearer authentication required
|
|
104
106
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
105
107
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
109
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
110
|
+
if (authorizationValue) {
|
|
111
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
108
112
|
}
|
|
109
113
|
|
|
110
114
|
|
|
@@ -146,8 +150,10 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
|
|
|
146
150
|
// http bearer authentication required
|
|
147
151
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
148
152
|
|
|
149
|
-
|
|
150
|
-
|
|
153
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
154
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
155
|
+
if (authorizationValue) {
|
|
156
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
151
157
|
}
|
|
152
158
|
|
|
153
159
|
|
|
@@ -75,8 +75,10 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
75
75
|
// http bearer authentication required
|
|
76
76
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
79
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
80
|
+
if (authorizationValue) {
|
|
81
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
|
|
@@ -122,8 +124,10 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
122
124
|
// http bearer authentication required
|
|
123
125
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
126
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
128
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
129
|
+
if (authorizationValue) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
127
131
|
}
|
|
128
132
|
|
|
129
133
|
|
|
@@ -169,8 +173,10 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
169
173
|
// http bearer authentication required
|
|
170
174
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
171
175
|
|
|
172
|
-
|
|
173
|
-
|
|
176
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
177
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
178
|
+
if (authorizationValue) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
174
180
|
}
|
|
175
181
|
|
|
176
182
|
|
|
@@ -220,8 +226,10 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
220
226
|
// http bearer authentication required
|
|
221
227
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
222
228
|
|
|
223
|
-
|
|
224
|
-
|
|
229
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
230
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
231
|
+
if (authorizationValue) {
|
|
232
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
225
233
|
}
|
|
226
234
|
|
|
227
235
|
|
|
@@ -64,12 +64,16 @@ export const InitialInvoicesApiAxiosParamCreator = function (configuration?: Con
|
|
|
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
|
|
package/api/invoices-api.ts
CHANGED
|
@@ -70,12 +70,16 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
70
70
|
// http bearer authentication required
|
|
71
71
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
74
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
75
|
+
if (authorizationValue) {
|
|
76
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
75
77
|
}
|
|
76
78
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
80
|
+
const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
|
|
81
|
+
if (idempotencyKeyValue) {
|
|
82
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
79
83
|
}
|
|
80
84
|
|
|
81
85
|
|
|
@@ -129,8 +133,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
129
133
|
localVarQueryParameter['expand'] = expand;
|
|
130
134
|
}
|
|
131
135
|
|
|
132
|
-
|
|
133
|
-
|
|
136
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
137
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
138
|
+
if (authorizationValue) {
|
|
139
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
140
|
}
|
|
135
141
|
|
|
136
142
|
|
|
@@ -150,11 +156,11 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
150
156
|
* @param {string} [authorization] Bearer Token
|
|
151
157
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
152
158
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
153
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
|
|
159
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
|
|
154
160
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
155
161
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id, paymentMethodType, paymentMethodPsp</i>
|
|
156
162
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments, invoiceItems<i>
|
|
157
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
|
|
163
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
|
|
158
164
|
* @param {*} [options] Override http request option.
|
|
159
165
|
* @throws {RequiredError}
|
|
160
166
|
*/
|
|
@@ -205,8 +211,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
205
211
|
localVarQueryParameter['filters'] = filters;
|
|
206
212
|
}
|
|
207
213
|
|
|
208
|
-
|
|
209
|
-
|
|
214
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
215
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
216
|
+
if (authorizationValue) {
|
|
217
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
210
218
|
}
|
|
211
219
|
|
|
212
220
|
|
|
@@ -282,8 +290,10 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
282
290
|
localVarQueryParameter['filters'] = filters;
|
|
283
291
|
}
|
|
284
292
|
|
|
285
|
-
|
|
286
|
-
|
|
293
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
294
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
295
|
+
if (authorizationValue) {
|
|
296
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
287
297
|
}
|
|
288
298
|
|
|
289
299
|
|
|
@@ -339,11 +349,11 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
339
349
|
* @param {string} [authorization] Bearer Token
|
|
340
350
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
341
351
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
342
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
|
|
352
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
|
|
343
353
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
344
354
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id, paymentMethodType, paymentMethodPsp</i>
|
|
345
355
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments, invoiceItems<i>
|
|
346
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
|
|
356
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
|
|
347
357
|
* @param {*} [options] Override http request option.
|
|
348
358
|
* @throws {RequiredError}
|
|
349
359
|
*/
|
|
@@ -410,11 +420,11 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
410
420
|
* @param {string} [authorization] Bearer Token
|
|
411
421
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
412
422
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
413
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
|
|
423
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
|
|
414
424
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
415
425
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id, paymentMethodType, paymentMethodPsp</i>
|
|
416
426
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments, invoiceItems<i>
|
|
417
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
|
|
427
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
|
|
418
428
|
* @param {*} [options] Override http request option.
|
|
419
429
|
* @throws {RequiredError}
|
|
420
430
|
*/
|
|
@@ -526,7 +536,7 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
526
536
|
readonly pageToken?: string
|
|
527
537
|
|
|
528
538
|
/**
|
|
529
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
|
|
539
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
|
|
530
540
|
* @type {string}
|
|
531
541
|
* @memberof InvoicesApiListInvoices
|
|
532
542
|
*/
|
|
@@ -554,7 +564,7 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
554
564
|
readonly expand?: string
|
|
555
565
|
|
|
556
566
|
/**
|
|
557
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
|
|
567
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
|
|
558
568
|
* @type {string}
|
|
559
569
|
* @memberof InvoicesApiListInvoices
|
|
560
570
|
*/
|
|
@@ -67,8 +67,10 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
71
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
72
|
+
if (authorizationValue) {
|
|
73
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
|
|
@@ -146,8 +148,10 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
146
148
|
localVarQueryParameter['filters'] = filters;
|
|
147
149
|
}
|
|
148
150
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
152
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
153
|
+
if (authorizationValue) {
|
|
154
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
151
155
|
}
|
|
152
156
|
|
|
153
157
|
|
|
@@ -194,8 +198,10 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
194
198
|
// http bearer authentication required
|
|
195
199
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
196
200
|
|
|
197
|
-
|
|
198
|
-
|
|
201
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
202
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
203
|
+
if (authorizationValue) {
|
|
204
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
199
205
|
}
|
|
200
206
|
|
|
201
207
|
|
|
@@ -64,12 +64,16 @@ export const RecurringInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
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
|
|
|
@@ -64,12 +64,16 @@ export const TerminationInvoicesApiAxiosParamCreator = 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
|
|
|
@@ -64,12 +64,16 @@ export const WithdrawInvoicesApiAxiosParamCreator = function (configuration?: Co
|
|
|
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
|
|
package/common.ts
CHANGED
|
@@ -131,9 +131,10 @@ export const toPathString = function (url: URL) {
|
|
|
131
131
|
* @export
|
|
132
132
|
*/
|
|
133
133
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
134
|
-
|
|
134
|
+
// Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
|
|
135
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
|
|
135
136
|
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
|
136
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
137
|
+
return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
|
|
137
138
|
};
|
|
138
139
|
}
|
|
139
140
|
|
|
@@ -147,7 +147,7 @@ export declare class CorrectionInvoicesApi extends BaseAPI {
|
|
|
147
147
|
* @throws {RequiredError}
|
|
148
148
|
* @memberof CorrectionInvoicesApi
|
|
149
149
|
*/
|
|
150
|
-
createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCorrectionInvoicesResponseClass, any, {}>>;
|
|
150
|
+
createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCorrectionInvoicesResponseClass, any, {}, any>>;
|
|
151
151
|
/**
|
|
152
152
|
* undefined **Required Permissions** \"billing-management.invoices.update\"
|
|
153
153
|
* @param {CorrectionInvoicesApiRevertInvoiceRequest} requestParameters Request parameters.
|
|
@@ -155,5 +155,5 @@ export declare class CorrectionInvoicesApi extends BaseAPI {
|
|
|
155
155
|
* @throws {RequiredError}
|
|
156
156
|
* @memberof CorrectionInvoicesApi
|
|
157
157
|
*/
|
|
158
|
-
revertInvoice(requestParameters: CorrectionInvoicesApiRevertInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RevertInvoiceResponseClass, any, {}>>;
|
|
158
|
+
revertInvoice(requestParameters: CorrectionInvoicesApiRevertInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RevertInvoiceResponseClass, any, {}, any>>;
|
|
159
159
|
}
|
|
@@ -108,7 +108,7 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
createCorrectionInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
|
|
109
109
|
if (options === void 0) { options = {}; }
|
|
110
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
|
|
112
112
|
return __generator(this, function (_a) {
|
|
113
113
|
switch (_a.label) {
|
|
114
114
|
case 0:
|
|
@@ -125,16 +125,20 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
125
125
|
localVarQueryParameter = {};
|
|
126
126
|
// authentication bearer required
|
|
127
127
|
// http bearer authentication required
|
|
128
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
129
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
130
|
+
];
|
|
129
131
|
case 1:
|
|
130
132
|
// authentication bearer required
|
|
131
133
|
// http bearer authentication required
|
|
132
134
|
_a.sent();
|
|
133
|
-
|
|
134
|
-
|
|
135
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
136
|
+
if (authorizationValue) {
|
|
137
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
135
138
|
}
|
|
136
|
-
|
|
137
|
-
|
|
139
|
+
idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
|
|
140
|
+
if (idempotencyKeyValue) {
|
|
141
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
138
142
|
}
|
|
139
143
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
140
144
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -159,7 +163,7 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
159
163
|
revertInvoice: function (revertInvoiceRequestDto, authorization, options) {
|
|
160
164
|
if (options === void 0) { options = {}; }
|
|
161
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
166
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
163
167
|
return __generator(this, function (_a) {
|
|
164
168
|
switch (_a.label) {
|
|
165
169
|
case 0:
|
|
@@ -176,13 +180,16 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
176
180
|
localVarQueryParameter = {};
|
|
177
181
|
// authentication bearer required
|
|
178
182
|
// http bearer authentication required
|
|
179
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
183
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
184
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
185
|
+
];
|
|
180
186
|
case 1:
|
|
181
187
|
// authentication bearer required
|
|
182
188
|
// http bearer authentication required
|
|
183
189
|
_a.sent();
|
|
184
|
-
|
|
185
|
-
|
|
190
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
if (authorizationValue) {
|
|
192
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
186
193
|
}
|
|
187
194
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
188
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -165,7 +165,7 @@ export declare class DraftInvoiceApi extends BaseAPI {
|
|
|
165
165
|
* @throws {RequiredError}
|
|
166
166
|
* @memberof DraftInvoiceApi
|
|
167
167
|
*/
|
|
168
|
-
createDraftInvoice(requestParameters: DraftInvoiceApiCreateDraftInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
168
|
+
createDraftInvoice(requestParameters: DraftInvoiceApiCreateDraftInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
169
169
|
/**
|
|
170
170
|
* undefined **Required Permissions** \"billing-management.invoices.delete\"
|
|
171
171
|
* @param {DraftInvoiceApiDeleteAllDraftInvoicesRequest} requestParameters Request parameters.
|
|
@@ -173,7 +173,7 @@ export declare class DraftInvoiceApi extends BaseAPI {
|
|
|
173
173
|
* @throws {RequiredError}
|
|
174
174
|
* @memberof DraftInvoiceApi
|
|
175
175
|
*/
|
|
176
|
-
deleteAllDraftInvoices(requestParameters?: DraftInvoiceApiDeleteAllDraftInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
176
|
+
deleteAllDraftInvoices(requestParameters?: DraftInvoiceApiDeleteAllDraftInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
177
177
|
/**
|
|
178
178
|
* undefined **Required Permissions** \"billing-management.invoices.delete\"
|
|
179
179
|
* @param {DraftInvoiceApiDeleteDraftInvoiceRequest} requestParameters Request parameters.
|
|
@@ -181,5 +181,5 @@ export declare class DraftInvoiceApi extends BaseAPI {
|
|
|
181
181
|
* @throws {RequiredError}
|
|
182
182
|
* @memberof DraftInvoiceApi
|
|
183
183
|
*/
|
|
184
|
-
deleteDraftInvoice(requestParameters: DraftInvoiceApiDeleteDraftInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
184
|
+
deleteDraftInvoice(requestParameters: DraftInvoiceApiDeleteDraftInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
185
185
|
}
|