@emilgroup/billing-sdk 1.63.1-beta.3 → 1.63.1-beta.31
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/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 +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/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.31 --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.31
|
|
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
|
|
|
@@ -146,11 +152,11 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
146
152
|
* @param {string} [authorization] Bearer Token
|
|
147
153
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
148
154
|
* @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.
|
|
149
|
-
* @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>
|
|
155
|
+
* @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>
|
|
150
156
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
151
157
|
* @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>
|
|
152
158
|
* @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>
|
|
153
|
-
* @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>
|
|
159
|
+
* @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>
|
|
154
160
|
* @param {*} [options] Override http request option.
|
|
155
161
|
* @throws {RequiredError}
|
|
156
162
|
*/
|
|
@@ -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
|
|
|
@@ -335,11 +345,11 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
335
345
|
* @param {string} [authorization] Bearer Token
|
|
336
346
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
337
347
|
* @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.
|
|
338
|
-
* @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>
|
|
348
|
+
* @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>
|
|
339
349
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
340
350
|
* @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>
|
|
341
351
|
* @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>
|
|
342
|
-
* @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>
|
|
352
|
+
* @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>
|
|
343
353
|
* @param {*} [options] Override http request option.
|
|
344
354
|
* @throws {RequiredError}
|
|
345
355
|
*/
|
|
@@ -406,11 +416,11 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
406
416
|
* @param {string} [authorization] Bearer Token
|
|
407
417
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
408
418
|
* @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.
|
|
409
|
-
* @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>
|
|
419
|
+
* @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>
|
|
410
420
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
411
421
|
* @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>
|
|
412
422
|
* @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>
|
|
413
|
-
* @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>
|
|
423
|
+
* @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>
|
|
414
424
|
* @param {*} [options] Override http request option.
|
|
415
425
|
* @throws {RequiredError}
|
|
416
426
|
*/
|
|
@@ -522,7 +532,7 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
522
532
|
readonly pageToken?: string
|
|
523
533
|
|
|
524
534
|
/**
|
|
525
|
-
* 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>
|
|
535
|
+
* 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>
|
|
526
536
|
* @type {string}
|
|
527
537
|
* @memberof InvoicesApiListInvoices
|
|
528
538
|
*/
|
|
@@ -550,7 +560,7 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
550
560
|
readonly expand?: string
|
|
551
561
|
|
|
552
562
|
/**
|
|
553
|
-
* 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>
|
|
563
|
+
* 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>
|
|
554
564
|
* @type {string}
|
|
555
565
|
* @memberof InvoicesApiListInvoices
|
|
556
566
|
*/
|
|
@@ -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
|
|