@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.
Files changed (54) hide show
  1. package/.openapi-generator/FILES +0 -3
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +6 -12
  4. package/api/draft-invoice-api.ts +6 -12
  5. package/api/estimated-invoices-api.ts +8 -16
  6. package/api/initial-invoices-api.ts +4 -8
  7. package/api/invoices-api.ts +10 -20
  8. package/api/policy-billing-api.ts +6 -12
  9. package/api/recurring-invoices-api.ts +4 -8
  10. package/api/termination-invoices-api.ts +4 -8
  11. package/api.ts +0 -2
  12. package/base.ts +41 -174
  13. package/common.ts +2 -3
  14. package/configuration.ts +0 -20
  15. package/dist/api/correction-invoices-api.d.ts +2 -2
  16. package/dist/api/correction-invoices-api.js +10 -17
  17. package/dist/api/draft-invoice-api.d.ts +3 -3
  18. package/dist/api/draft-invoice-api.js +12 -21
  19. package/dist/api/estimated-invoices-api.d.ts +4 -4
  20. package/dist/api/estimated-invoices-api.js +16 -28
  21. package/dist/api/health-api.d.ts +1 -1
  22. package/dist/api/initial-invoices-api.d.ts +1 -1
  23. package/dist/api/initial-invoices-api.js +6 -10
  24. package/dist/api/invoices-api.d.ts +4 -4
  25. package/dist/api/invoices-api.js +15 -22
  26. package/dist/api/policy-billing-api.d.ts +3 -3
  27. package/dist/api/policy-billing-api.js +11 -18
  28. package/dist/api/recurring-invoices-api.d.ts +1 -1
  29. package/dist/api/recurring-invoices-api.js +6 -10
  30. package/dist/api/termination-invoices-api.d.ts +1 -1
  31. package/dist/api/termination-invoices-api.js +6 -10
  32. package/dist/api.d.ts +0 -1
  33. package/dist/api.js +0 -1
  34. package/dist/base.d.ts +0 -24
  35. package/dist/base.js +59 -178
  36. package/dist/common.d.ts +1 -1
  37. package/dist/common.js +0 -1
  38. package/dist/configuration.d.ts +0 -17
  39. package/dist/configuration.js +0 -2
  40. package/dist/models/index.d.ts +0 -2
  41. package/dist/models/index.js +0 -2
  42. package/dist/models/invoice-item-class.d.ts +0 -12
  43. package/models/index.ts +0 -2
  44. package/models/invoice-item-class.ts +0 -12
  45. package/package.json +2 -2
  46. package/api/withdraw-invoices-api.ts +0 -183
  47. package/dist/api/withdraw-invoices-api.d.ts +0 -106
  48. package/dist/api/withdraw-invoices-api.js +0 -234
  49. package/dist/models/create-withdraw-invoice-request-dto-rest.d.ts +0 -50
  50. package/dist/models/create-withdraw-invoice-request-dto-rest.js +0 -15
  51. package/dist/models/create-withdraw-invoice-request-dto.d.ts +0 -50
  52. package/dist/models/create-withdraw-invoice-request-dto.js +0 -15
  53. package/models/create-withdraw-invoice-request-dto-rest.ts +0 -54
  54. package/models/create-withdraw-invoice-request-dto.ts +0 -54
@@ -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.36 --save
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.36
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
- // 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);
67
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
71
69
  }
72
70
 
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);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
122
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
123
- if (authorizationValue) {
124
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
117
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
118
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
125
119
  }
126
120
 
127
121
 
@@ -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
- // Only Authorization falls back to the configured token; an empty value is never sent.
60
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
61
- if (authorizationValue) {
62
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
105
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
106
- if (authorizationValue) {
107
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
150
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
151
- if (authorizationValue) {
152
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
75
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
76
- if (authorizationValue) {
77
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
124
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
125
- if (authorizationValue) {
126
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
173
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
174
- if (authorizationValue) {
175
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
226
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
227
- if (authorizationValue) {
228
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // 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);
63
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
67
65
  }
68
66
 
69
- // Only Authorization falls back to the configured token; an empty value is never sent.
70
- const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
71
- if (idempotencyKeyValue) {
72
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
67
+ if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
73
69
  }
74
70
 
75
71
 
@@ -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
- // Only Authorization falls back to the configured token; an empty value is never sent.
70
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
71
- if (authorizationValue) {
72
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
69
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
70
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
73
71
  }
74
72
 
75
- // Only Authorization falls back to the configured token; an empty value is never sent.
76
- const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
77
- if (idempotencyKeyValue) {
78
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
133
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
134
- if (authorizationValue) {
135
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
211
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
212
- if (authorizationValue) {
213
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
290
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
291
- if (authorizationValue) {
292
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
67
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
68
- if (authorizationValue) {
69
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
148
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
149
- if (authorizationValue) {
150
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // Only Authorization falls back to the configured token; an empty value is never sent.
198
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
199
- if (authorizationValue) {
200
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
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
- // 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);
63
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
67
65
  }
68
66
 
69
- // Only Authorization falls back to the configured token; an empty value is never sent.
70
- const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
71
- if (idempotencyKeyValue) {
72
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
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
- // 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);
63
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
67
65
  }
68
66
 
69
- // Only Authorization falls back to the configured token; an empty value is never sent.
70
- const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
71
- if (idempotencyKeyValue) {
72
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
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