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