@emilgroup/billing-sdk-node 1.63.1-beta.36 → 1.63.1-beta.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -3
- package/README.md +2 -2
- package/api/correction-invoices-api.ts +6 -12
- package/api/draft-invoice-api.ts +6 -12
- package/api/estimated-invoices-api.ts +8 -16
- package/api/initial-invoices-api.ts +4 -8
- package/api/invoices-api.ts +10 -20
- package/api/policy-billing-api.ts +6 -12
- package/api/recurring-invoices-api.ts +4 -8
- package/api/termination-invoices-api.ts +4 -8
- package/api.ts +0 -2
- package/common.ts +2 -3
- package/dist/api/correction-invoices-api.d.ts +2 -2
- package/dist/api/correction-invoices-api.js +10 -17
- package/dist/api/draft-invoice-api.d.ts +3 -3
- package/dist/api/draft-invoice-api.js +12 -21
- package/dist/api/estimated-invoices-api.d.ts +4 -4
- package/dist/api/estimated-invoices-api.js +16 -28
- 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 +6 -10
- package/dist/api/invoices-api.d.ts +4 -4
- package/dist/api/invoices-api.js +15 -22
- package/dist/api/policy-billing-api.d.ts +3 -3
- package/dist/api/policy-billing-api.js +11 -18
- package/dist/api/recurring-invoices-api.d.ts +1 -1
- package/dist/api/recurring-invoices-api.js +6 -10
- package/dist/api/termination-invoices-api.d.ts +1 -1
- package/dist/api/termination-invoices-api.js +6 -10
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/dist/models/invoice-item-class.d.ts +0 -12
- package/models/index.ts +0 -2
- package/models/invoice-item-class.ts +0 -12
- package/package.json +2 -2
- package/api/withdraw-invoices-api.ts +0 -187
- package/dist/api/withdraw-invoices-api.d.ts +0 -106
- package/dist/api/withdraw-invoices-api.js +0 -238
- package/dist/models/create-withdraw-invoice-request-dto-rest.d.ts +0 -50
- package/dist/models/create-withdraw-invoice-request-dto-rest.js +0 -15
- package/dist/models/create-withdraw-invoice-request-dto.d.ts +0 -50
- package/dist/models/create-withdraw-invoice-request-dto.js +0 -15
- package/models/create-withdraw-invoice-request-dto-rest.ts +0 -54
- package/models/create-withdraw-invoice-request-dto.ts +0 -54
package/.openapi-generator/FILES
CHANGED
|
@@ -12,7 +12,6 @@ api/invoices-api.ts
|
|
|
12
12
|
api/policy-billing-api.ts
|
|
13
13
|
api/recurring-invoices-api.ts
|
|
14
14
|
api/termination-invoices-api.ts
|
|
15
|
-
api/withdraw-invoices-api.ts
|
|
16
15
|
base.ts
|
|
17
16
|
common.ts
|
|
18
17
|
configuration.ts
|
|
@@ -37,8 +36,6 @@ models/create-policy-billing-response-class.ts
|
|
|
37
36
|
models/create-product-estimated-invoice-request-dto.ts
|
|
38
37
|
models/create-product-estimated-invoice-response-class.ts
|
|
39
38
|
models/create-termination-invoice-request-dto.ts
|
|
40
|
-
models/create-withdraw-invoice-request-dto-rest.ts
|
|
41
|
-
models/create-withdraw-invoice-request-dto.ts
|
|
42
39
|
models/get-invoice-response-class.ts
|
|
43
40
|
models/index.ts
|
|
44
41
|
models/inline-response200.ts
|
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.38 --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.38
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `InvoicesApi`.
|
|
@@ -68,16 +68,12 @@ export const CorrectionInvoicesApiAxiosParamCreator = function (configuration?:
|
|
|
68
68
|
// http bearer authentication required
|
|
69
69
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
if (authorizationValue) {
|
|
74
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
71
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
75
73
|
}
|
|
76
74
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if (idempotencyKeyValue) {
|
|
80
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
75
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
76
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
81
77
|
}
|
|
82
78
|
|
|
83
79
|
|
|
@@ -122,10 +118,8 @@ export const CorrectionInvoicesApiAxiosParamCreator = function (configuration?:
|
|
|
122
118
|
// http bearer authentication required
|
|
123
119
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
120
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
if (authorizationValue) {
|
|
128
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
121
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
122
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
129
123
|
}
|
|
130
124
|
|
|
131
125
|
|
package/api/draft-invoice-api.ts
CHANGED
|
@@ -60,10 +60,8 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
|
|
|
60
60
|
// http bearer authentication required
|
|
61
61
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if (authorizationValue) {
|
|
66
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
63
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
64
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
|
|
@@ -105,10 +103,8 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
|
|
|
105
103
|
// http bearer authentication required
|
|
106
104
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
107
105
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
if (authorizationValue) {
|
|
111
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
106
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
107
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
112
108
|
}
|
|
113
109
|
|
|
114
110
|
|
|
@@ -150,10 +146,8 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
|
|
|
150
146
|
// http bearer authentication required
|
|
151
147
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
152
148
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
if (authorizationValue) {
|
|
156
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
149
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
150
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
157
151
|
}
|
|
158
152
|
|
|
159
153
|
|
|
@@ -75,10 +75,8 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
75
75
|
// http bearer authentication required
|
|
76
76
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
if (authorizationValue) {
|
|
81
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
78
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
79
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
|
|
@@ -124,10 +122,8 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
124
122
|
// http bearer authentication required
|
|
125
123
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
126
124
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (authorizationValue) {
|
|
130
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
125
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
126
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
131
127
|
}
|
|
132
128
|
|
|
133
129
|
|
|
@@ -173,10 +169,8 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
173
169
|
// http bearer authentication required
|
|
174
170
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
175
171
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
if (authorizationValue) {
|
|
179
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
172
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
173
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
174
|
}
|
|
181
175
|
|
|
182
176
|
|
|
@@ -226,10 +220,8 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
226
220
|
// http bearer authentication required
|
|
227
221
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
228
222
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
if (authorizationValue) {
|
|
232
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
223
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
224
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
233
225
|
}
|
|
234
226
|
|
|
235
227
|
|
|
@@ -64,16 +64,12 @@ export const InitialInvoicesApiAxiosParamCreator = function (configuration?: Con
|
|
|
64
64
|
// http bearer authentication required
|
|
65
65
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (authorizationValue) {
|
|
70
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
67
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
68
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
71
69
|
}
|
|
72
70
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if (idempotencyKeyValue) {
|
|
76
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
71
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
|
package/api/invoices-api.ts
CHANGED
|
@@ -70,16 +70,12 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
70
70
|
// http bearer authentication required
|
|
71
71
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if (authorizationValue) {
|
|
76
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
73
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
74
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
77
75
|
}
|
|
78
76
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
if (idempotencyKeyValue) {
|
|
82
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
77
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
78
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
|
|
@@ -133,10 +129,8 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
133
129
|
localVarQueryParameter['expand'] = expand;
|
|
134
130
|
}
|
|
135
131
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
if (authorizationValue) {
|
|
139
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
140
134
|
}
|
|
141
135
|
|
|
142
136
|
|
|
@@ -211,10 +205,8 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
211
205
|
localVarQueryParameter['filters'] = filters;
|
|
212
206
|
}
|
|
213
207
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
if (authorizationValue) {
|
|
217
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
208
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
209
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
218
210
|
}
|
|
219
211
|
|
|
220
212
|
|
|
@@ -290,10 +282,8 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
290
282
|
localVarQueryParameter['filters'] = filters;
|
|
291
283
|
}
|
|
292
284
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
if (authorizationValue) {
|
|
296
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
285
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
286
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
297
287
|
}
|
|
298
288
|
|
|
299
289
|
|
|
@@ -67,10 +67,8 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (authorizationValue) {
|
|
73
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
70
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
|
|
@@ -148,10 +146,8 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
148
146
|
localVarQueryParameter['filters'] = filters;
|
|
149
147
|
}
|
|
150
148
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
if (authorizationValue) {
|
|
154
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
149
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
150
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
155
151
|
}
|
|
156
152
|
|
|
157
153
|
|
|
@@ -198,10 +194,8 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
198
194
|
// http bearer authentication required
|
|
199
195
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
200
196
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
if (authorizationValue) {
|
|
204
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
197
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
198
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
205
199
|
}
|
|
206
200
|
|
|
207
201
|
|
|
@@ -64,16 +64,12 @@ export const RecurringInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
64
64
|
// http bearer authentication required
|
|
65
65
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (authorizationValue) {
|
|
70
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
67
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
68
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
71
69
|
}
|
|
72
70
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if (idempotencyKeyValue) {
|
|
76
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
71
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
|
|
@@ -64,16 +64,12 @@ export const TerminationInvoicesApiAxiosParamCreator = function (configuration?:
|
|
|
64
64
|
// http bearer authentication required
|
|
65
65
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (authorizationValue) {
|
|
70
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
67
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
68
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
71
69
|
}
|
|
72
70
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if (idempotencyKeyValue) {
|
|
76
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
71
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
|
package/api.ts
CHANGED
|
@@ -33,7 +33,6 @@ import { InvoicesApi } from './api';
|
|
|
33
33
|
import { PolicyBillingApi } from './api';
|
|
34
34
|
import { RecurringInvoicesApi } from './api';
|
|
35
35
|
import { TerminationInvoicesApi } from './api';
|
|
36
|
-
import { WithdrawInvoicesApi } from './api';
|
|
37
36
|
|
|
38
37
|
|
|
39
38
|
export * from './api/correction-invoices-api';
|
|
@@ -45,5 +44,4 @@ export * from './api/invoices-api';
|
|
|
45
44
|
export * from './api/policy-billing-api';
|
|
46
45
|
export * from './api/recurring-invoices-api';
|
|
47
46
|
export * from './api/termination-invoices-api';
|
|
48
|
-
export * from './api/withdraw-invoices-api';
|
|
49
47
|
|
package/common.ts
CHANGED
|
@@ -131,10 +131,9 @@ 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
|
-
|
|
135
|
-
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
|
|
134
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
136
135
|
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
|
137
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
136
|
+
return axios.request<T, R>(axiosRequestArgs);
|
|
138
137
|
};
|
|
139
138
|
}
|
|
140
139
|
|
|
@@ -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, {}>>;
|
|
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, {}>>;
|
|
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,
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
112
|
return __generator(this, function (_a) {
|
|
113
113
|
switch (_a.label) {
|
|
114
114
|
case 0:
|
|
@@ -125,20 +125,16 @@ 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)
|
|
129
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
130
|
-
];
|
|
128
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
131
129
|
case 1:
|
|
132
130
|
// authentication bearer required
|
|
133
131
|
// http bearer authentication required
|
|
134
132
|
_a.sent();
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
133
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
134
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
138
135
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
136
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
137
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
142
138
|
}
|
|
143
139
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
144
140
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -163,7 +159,7 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
163
159
|
revertInvoice: function (revertInvoiceRequestDto, authorization, options) {
|
|
164
160
|
if (options === void 0) { options = {}; }
|
|
165
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
166
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
167
163
|
return __generator(this, function (_a) {
|
|
168
164
|
switch (_a.label) {
|
|
169
165
|
case 0:
|
|
@@ -180,16 +176,13 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
180
176
|
localVarQueryParameter = {};
|
|
181
177
|
// authentication bearer required
|
|
182
178
|
// http bearer authentication required
|
|
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
|
-
];
|
|
179
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
186
180
|
case 1:
|
|
187
181
|
// authentication bearer required
|
|
188
182
|
// http bearer authentication required
|
|
189
183
|
_a.sent();
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
185
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
193
186
|
}
|
|
194
187
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
195
188
|
(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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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,
|
|
109
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
110
|
return __generator(this, function (_a) {
|
|
111
111
|
switch (_a.label) {
|
|
112
112
|
case 0:
|
|
@@ -123,16 +123,13 @@ 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)
|
|
127
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
128
|
-
];
|
|
126
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
129
127
|
case 1:
|
|
130
128
|
// authentication bearer required
|
|
131
129
|
// http bearer authentication required
|
|
132
130
|
_a.sent();
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
131
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
132
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
136
133
|
}
|
|
137
134
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
138
135
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,7 +153,7 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
156
153
|
deleteAllDraftInvoices: function (authorization, options) {
|
|
157
154
|
if (options === void 0) { options = {}; }
|
|
158
155
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
156
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
157
|
return __generator(this, function (_a) {
|
|
161
158
|
switch (_a.label) {
|
|
162
159
|
case 0:
|
|
@@ -171,16 +168,13 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
171
168
|
localVarQueryParameter = {};
|
|
172
169
|
// authentication bearer required
|
|
173
170
|
// http bearer authentication required
|
|
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
|
-
];
|
|
171
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
177
172
|
case 1:
|
|
178
173
|
// authentication bearer required
|
|
179
174
|
// http bearer authentication required
|
|
180
175
|
_a.sent();
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
176
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
177
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
178
|
}
|
|
185
179
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
180
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -203,7 +197,7 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
203
197
|
deleteDraftInvoice: function (body, authorization, options) {
|
|
204
198
|
if (options === void 0) { options = {}; }
|
|
205
199
|
return __awaiter(_this, void 0, void 0, function () {
|
|
206
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
200
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
207
201
|
return __generator(this, function (_a) {
|
|
208
202
|
switch (_a.label) {
|
|
209
203
|
case 0:
|
|
@@ -220,16 +214,13 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
|
|
|
220
214
|
localVarQueryParameter = {};
|
|
221
215
|
// authentication bearer required
|
|
222
216
|
// http bearer authentication required
|
|
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
|
-
];
|
|
217
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
226
218
|
case 1:
|
|
227
219
|
// authentication bearer required
|
|
228
220
|
// http bearer authentication required
|
|
229
221
|
_a.sent();
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
222
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
223
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
233
224
|
}
|
|
234
225
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
235
226
|
(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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
277
277
|
}
|