@emilgroup/billing-sdk-node 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/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 +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/common.d.ts +1 -1
- package/dist/common.js +1 -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-node@1.63.1-beta.
|
|
20
|
+
npm install @emilgroup/billing-sdk-node@1.63.1-beta.36 --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.36
|
|
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
|
|
|
@@ -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
|
|
|
@@ -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
|
}
|
|
@@ -106,7 +106,7 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
106
106
|
createDraftInvoice: function (createDraftInvoiceRequestDto, authorization, options) {
|
|
107
107
|
if (options === void 0) { options = {}; }
|
|
108
108
|
return __awaiter(_this, void 0, void 0, function () {
|
|
109
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
109
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
110
110
|
return __generator(this, function (_a) {
|
|
111
111
|
switch (_a.label) {
|
|
112
112
|
case 0:
|
|
@@ -123,13 +123,16 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
123
123
|
localVarQueryParameter = {};
|
|
124
124
|
// authentication bearer required
|
|
125
125
|
// http bearer authentication required
|
|
126
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
126
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
127
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
128
|
+
];
|
|
127
129
|
case 1:
|
|
128
130
|
// authentication bearer required
|
|
129
131
|
// http bearer authentication required
|
|
130
132
|
_a.sent();
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
if (authorizationValue) {
|
|
135
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
133
136
|
}
|
|
134
137
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
138
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -153,7 +156,7 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
153
156
|
deleteAllDraftInvoices: function (authorization, options) {
|
|
154
157
|
if (options === void 0) { options = {}; }
|
|
155
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
156
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
157
160
|
return __generator(this, function (_a) {
|
|
158
161
|
switch (_a.label) {
|
|
159
162
|
case 0:
|
|
@@ -168,13 +171,16 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
168
171
|
localVarQueryParameter = {};
|
|
169
172
|
// authentication bearer required
|
|
170
173
|
// http bearer authentication required
|
|
171
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
174
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
175
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
176
|
+
];
|
|
172
177
|
case 1:
|
|
173
178
|
// authentication bearer required
|
|
174
179
|
// http bearer authentication required
|
|
175
180
|
_a.sent();
|
|
176
|
-
|
|
177
|
-
|
|
181
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
182
|
+
if (authorizationValue) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
178
184
|
}
|
|
179
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
180
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -197,7 +203,7 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
197
203
|
deleteDraftInvoice: function (body, authorization, options) {
|
|
198
204
|
if (options === void 0) { options = {}; }
|
|
199
205
|
return __awaiter(_this, void 0, void 0, function () {
|
|
200
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
206
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
201
207
|
return __generator(this, function (_a) {
|
|
202
208
|
switch (_a.label) {
|
|
203
209
|
case 0:
|
|
@@ -214,13 +220,16 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
214
220
|
localVarQueryParameter = {};
|
|
215
221
|
// authentication bearer required
|
|
216
222
|
// http bearer authentication required
|
|
217
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
223
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
224
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
225
|
+
];
|
|
218
226
|
case 1:
|
|
219
227
|
// authentication bearer required
|
|
220
228
|
// http bearer authentication required
|
|
221
229
|
_a.sent();
|
|
222
|
-
|
|
223
|
-
|
|
230
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
231
|
+
if (authorizationValue) {
|
|
232
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
224
233
|
}
|
|
225
234
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
226
235
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -246,7 +246,7 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
|
|
|
246
246
|
* @throws {RequiredError}
|
|
247
247
|
* @memberof EstimatedInvoicesApi
|
|
248
248
|
*/
|
|
249
|
-
createCustomEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomEstimatedInvoiceResponseClass, any, {}>>;
|
|
249
|
+
createCustomEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomEstimatedInvoiceResponseClass, any, {}, any>>;
|
|
250
250
|
/**
|
|
251
251
|
* This creates an estimated invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
|
|
252
252
|
* @summary Create the estimated invoice
|
|
@@ -255,7 +255,7 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
|
|
|
255
255
|
* @throws {RequiredError}
|
|
256
256
|
* @memberof EstimatedInvoicesApi
|
|
257
257
|
*/
|
|
258
|
-
createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceResponseClass, any, {}>>;
|
|
258
|
+
createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceResponseClass, any, {}, any>>;
|
|
259
259
|
/**
|
|
260
260
|
* This creates an estimated invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
|
|
261
261
|
* @summary Create the estimated invoice
|
|
@@ -264,7 +264,7 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
|
|
|
264
264
|
* @throws {RequiredError}
|
|
265
265
|
* @memberof EstimatedInvoicesApi
|
|
266
266
|
*/
|
|
267
|
-
createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceForIntervalResponseClass, any, {}>>;
|
|
267
|
+
createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceForIntervalResponseClass, any, {}, any>>;
|
|
268
268
|
/**
|
|
269
269
|
* This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
|
|
270
270
|
* @summary Create the estimated invoice
|
|
@@ -273,5 +273,5 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
|
|
|
273
273
|
* @throws {RequiredError}
|
|
274
274
|
* @memberof EstimatedInvoicesApi
|
|
275
275
|
*/
|
|
276
|
-
createProductEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateProductEstimatedInvoiceResponseClass, any, {}>>;
|
|
276
|
+
createProductEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateProductEstimatedInvoiceResponseClass, any, {}, any>>;
|
|
277
277
|
}
|