@emilgroup/billing-sdk-node 1.63.1-beta.4 → 1.63.1-beta.41

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 (40) hide show
  1. package/README.md +2 -2
  2. package/api/correction-invoices-api.ts +23 -8
  3. package/api/draft-invoice-api.ts +24 -9
  4. package/api/estimated-invoices-api.ts +32 -12
  5. package/api/health-api.ts +1 -1
  6. package/api/initial-invoices-api.ts +15 -5
  7. package/api/invoices-api.ts +47 -22
  8. package/api/policy-billing-api.ts +24 -9
  9. package/api/recurring-invoices-api.ts +15 -5
  10. package/api/termination-invoices-api.ts +15 -5
  11. package/api/withdraw-invoices-api.ts +15 -5
  12. package/base.ts +4 -0
  13. package/common.ts +3 -2
  14. package/dist/api/correction-invoices-api.d.ts +2 -2
  15. package/dist/api/correction-invoices-api.js +35 -18
  16. package/dist/api/draft-invoice-api.d.ts +3 -3
  17. package/dist/api/draft-invoice-api.js +45 -24
  18. package/dist/api/estimated-invoices-api.d.ts +4 -4
  19. package/dist/api/estimated-invoices-api.js +60 -32
  20. package/dist/api/health-api.d.ts +1 -1
  21. package/dist/api/health-api.js +1 -1
  22. package/dist/api/initial-invoices-api.d.ts +1 -1
  23. package/dist/api/initial-invoices-api.js +20 -10
  24. package/dist/api/invoices-api.d.ts +12 -12
  25. package/dist/api/invoices-api.js +59 -37
  26. package/dist/api/policy-billing-api.d.ts +3 -3
  27. package/dist/api/policy-billing-api.js +41 -23
  28. package/dist/api/recurring-invoices-api.d.ts +1 -1
  29. package/dist/api/recurring-invoices-api.js +20 -10
  30. package/dist/api/termination-invoices-api.d.ts +1 -1
  31. package/dist/api/termination-invoices-api.js +20 -10
  32. package/dist/api/withdraw-invoices-api.d.ts +1 -1
  33. package/dist/api/withdraw-invoices-api.js +20 -10
  34. package/dist/base.d.ts +1 -0
  35. package/dist/base.js +3 -0
  36. package/dist/common.d.ts +1 -1
  37. package/dist/common.js +1 -0
  38. package/dist/models/invoice-item-class.d.ts +12 -0
  39. package/models/invoice-item-class.ts +12 -0
  40. 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.4 --save
20
+ npm install @emilgroup/billing-sdk-node@1.63.1-beta.41 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk-node@1.63.1-beta.4
24
+ yarn add @emilgroup/billing-sdk-node@1.63.1-beta.41
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
@@ -68,12 +68,22 @@ export const CorrectionInvoicesApiAxiosParamCreator = function (configuration?:
68
68
  // http bearer authentication required
69
69
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
70
70
 
71
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
72
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
71
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
72
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
73
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
74
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
75
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
76
+ if (authorizationValue || authorizationKeepEmpty) {
77
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
73
78
  }
74
79
 
75
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
76
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
80
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
81
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
82
+ const idempotencyKeyIsAuth = 'Idempotency-Key'.toLowerCase() === 'authorization';
83
+ const idempotencyKeyValue = idempotencyKeyIsAuth ? (idempotencyKey || baseAccessToken) : idempotencyKey;
84
+ const idempotencyKeyKeepEmpty = idempotencyKeyIsAuth && idempotencyKeyValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
85
+ if (idempotencyKeyValue || idempotencyKeyKeepEmpty) {
86
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
77
87
  }
78
88
 
79
89
 
@@ -118,8 +128,13 @@ export const CorrectionInvoicesApiAxiosParamCreator = function (configuration?:
118
128
  // http bearer authentication required
119
129
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
120
130
 
121
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
132
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
133
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
134
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
135
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
136
+ if (authorizationValue || authorizationKeepEmpty) {
137
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
123
138
  }
124
139
 
125
140
 
@@ -270,7 +285,7 @@ export class CorrectionInvoicesApi extends BaseAPI {
270
285
  * @memberof CorrectionInvoicesApi
271
286
  */
272
287
  public createCorrectionInvoice(requestParameters: CorrectionInvoicesApiCreateCorrectionInvoiceRequest, options?: AxiosRequestConfig) {
273
- return CorrectionInvoicesApiFp(this.configuration).createCorrectionInvoice(requestParameters.createInvoiceForPolicyRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
288
+ return CorrectionInvoicesApiFp(this.configuration).createCorrectionInvoice(requestParameters.createInvoiceForPolicyRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
274
289
  }
275
290
 
276
291
  /**
@@ -281,6 +296,6 @@ export class CorrectionInvoicesApi extends BaseAPI {
281
296
  * @memberof CorrectionInvoicesApi
282
297
  */
283
298
  public revertInvoice(requestParameters: CorrectionInvoicesApiRevertInvoiceRequest, options?: AxiosRequestConfig) {
284
- return CorrectionInvoicesApiFp(this.configuration).revertInvoice(requestParameters.revertInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
299
+ return CorrectionInvoicesApiFp(this.configuration).revertInvoice(requestParameters.revertInvoiceRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
285
300
  }
286
301
  }
@@ -60,8 +60,13 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
60
60
  // http bearer authentication required
61
61
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
62
62
 
63
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
63
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
64
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
65
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
66
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
67
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
68
+ if (authorizationValue || authorizationKeepEmpty) {
69
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
65
70
  }
66
71
 
67
72
 
@@ -103,8 +108,13 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
103
108
  // http bearer authentication required
104
109
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
105
110
 
106
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
107
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
111
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
112
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
113
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
114
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
115
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
116
+ if (authorizationValue || authorizationKeepEmpty) {
117
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
108
118
  }
109
119
 
110
120
 
@@ -146,8 +156,13 @@ export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Config
146
156
  // http bearer authentication required
147
157
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
148
158
 
149
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
150
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
159
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
160
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
161
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
162
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
163
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
164
+ if (authorizationValue || authorizationKeepEmpty) {
165
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
151
166
  }
152
167
 
153
168
 
@@ -319,7 +334,7 @@ export class DraftInvoiceApi extends BaseAPI {
319
334
  * @memberof DraftInvoiceApi
320
335
  */
321
336
  public createDraftInvoice(requestParameters: DraftInvoiceApiCreateDraftInvoiceRequest, options?: AxiosRequestConfig) {
322
- return DraftInvoiceApiFp(this.configuration).createDraftInvoice(requestParameters.createDraftInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
337
+ return DraftInvoiceApiFp(this.configuration).createDraftInvoice(requestParameters.createDraftInvoiceRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
323
338
  }
324
339
 
325
340
  /**
@@ -330,7 +345,7 @@ export class DraftInvoiceApi extends BaseAPI {
330
345
  * @memberof DraftInvoiceApi
331
346
  */
332
347
  public deleteAllDraftInvoices(requestParameters: DraftInvoiceApiDeleteAllDraftInvoicesRequest = {}, options?: AxiosRequestConfig) {
333
- return DraftInvoiceApiFp(this.configuration).deleteAllDraftInvoices(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
348
+ return DraftInvoiceApiFp(this.configuration).deleteAllDraftInvoices(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
334
349
  }
335
350
 
336
351
  /**
@@ -341,6 +356,6 @@ export class DraftInvoiceApi extends BaseAPI {
341
356
  * @memberof DraftInvoiceApi
342
357
  */
343
358
  public deleteDraftInvoice(requestParameters: DraftInvoiceApiDeleteDraftInvoiceRequest, options?: AxiosRequestConfig) {
344
- return DraftInvoiceApiFp(this.configuration).deleteDraftInvoice(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
359
+ return DraftInvoiceApiFp(this.configuration).deleteDraftInvoice(requestParameters.body, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
345
360
  }
346
361
  }
@@ -75,8 +75,13 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
75
75
  // http bearer authentication required
76
76
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
77
77
 
78
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
79
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
79
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
80
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
81
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
82
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
83
+ if (authorizationValue || authorizationKeepEmpty) {
84
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
80
85
  }
81
86
 
82
87
 
@@ -122,8 +127,13 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
122
127
  // http bearer authentication required
123
128
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
124
129
 
125
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
126
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
131
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
132
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
135
+ if (authorizationValue || authorizationKeepEmpty) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
127
137
  }
128
138
 
129
139
 
@@ -169,8 +179,13 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
169
179
  // http bearer authentication required
170
180
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
171
181
 
172
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
173
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
182
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
183
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
184
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
185
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
186
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
187
+ if (authorizationValue || authorizationKeepEmpty) {
188
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
174
189
  }
175
190
 
176
191
 
@@ -220,8 +235,13 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
220
235
  // http bearer authentication required
221
236
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
222
237
 
223
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
224
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
239
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
240
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
241
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
242
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
243
+ if (authorizationValue || authorizationKeepEmpty) {
244
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
225
245
  }
226
246
 
227
247
 
@@ -462,7 +482,7 @@ export class EstimatedInvoicesApi extends BaseAPI {
462
482
  * @memberof EstimatedInvoicesApi
463
483
  */
464
484
  public createCustomEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest, options?: AxiosRequestConfig) {
465
- return EstimatedInvoicesApiFp(this.configuration).createCustomEstimatedInvoice(requestParameters.createCustomEstimatedInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
485
+ return EstimatedInvoicesApiFp(this.configuration).createCustomEstimatedInvoice(requestParameters.createCustomEstimatedInvoiceRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
466
486
  }
467
487
 
468
488
  /**
@@ -474,7 +494,7 @@ export class EstimatedInvoicesApi extends BaseAPI {
474
494
  * @memberof EstimatedInvoicesApi
475
495
  */
476
496
  public createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig) {
477
- return EstimatedInvoicesApiFp(this.configuration).createEstimatedInvoice(requestParameters.createEstimatedInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
497
+ return EstimatedInvoicesApiFp(this.configuration).createEstimatedInvoice(requestParameters.createEstimatedInvoiceRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
478
498
  }
479
499
 
480
500
  /**
@@ -486,7 +506,7 @@ export class EstimatedInvoicesApi extends BaseAPI {
486
506
  * @memberof EstimatedInvoicesApi
487
507
  */
488
508
  public createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig) {
489
- return EstimatedInvoicesApiFp(this.configuration).createEstimatedInvoiceFromInterval(requestParameters.createEstimatedInvoiceForIntervalRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
509
+ return EstimatedInvoicesApiFp(this.configuration).createEstimatedInvoiceFromInterval(requestParameters.createEstimatedInvoiceForIntervalRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
490
510
  }
491
511
 
492
512
  /**
@@ -498,6 +518,6 @@ export class EstimatedInvoicesApi extends BaseAPI {
498
518
  * @memberof EstimatedInvoicesApi
499
519
  */
500
520
  public createProductEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest, options?: AxiosRequestConfig) {
501
- return EstimatedInvoicesApiFp(this.configuration).createProductEstimatedInvoice(requestParameters.productSlug, requestParameters.createProductEstimatedInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
521
+ return EstimatedInvoicesApiFp(this.configuration).createProductEstimatedInvoice(requestParameters.productSlug, requestParameters.createProductEstimatedInvoiceRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
502
522
  }
503
523
  }
package/api/health-api.ts CHANGED
@@ -119,6 +119,6 @@ export class HealthApi extends BaseAPI {
119
119
  * @memberof HealthApi
120
120
  */
121
121
  public check(options?: AxiosRequestConfig) {
122
- return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
122
+ return HealthApiFp(this.configuration).check(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
123
123
  }
124
124
  }
@@ -64,12 +64,22 @@ export const InitialInvoicesApiAxiosParamCreator = function (configuration?: Con
64
64
  // http bearer authentication required
65
65
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
66
66
 
67
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
67
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
68
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
69
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
70
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
71
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
72
+ if (authorizationValue || authorizationKeepEmpty) {
73
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
69
74
  }
70
75
 
71
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
72
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
76
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
77
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
78
+ const idempotencyKeyIsAuth = 'Idempotency-Key'.toLowerCase() === 'authorization';
79
+ const idempotencyKeyValue = idempotencyKeyIsAuth ? (idempotencyKey || baseAccessToken) : idempotencyKey;
80
+ const idempotencyKeyKeepEmpty = idempotencyKeyIsAuth && idempotencyKeyValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
81
+ if (idempotencyKeyValue || idempotencyKeyKeepEmpty) {
82
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
73
83
  }
74
84
 
75
85
 
@@ -178,6 +188,6 @@ export class InitialInvoicesApi extends BaseAPI {
178
188
  * @memberof InitialInvoicesApi
179
189
  */
180
190
  public createInitialInvoice(requestParameters: InitialInvoicesApiCreateInitialInvoiceRequest, options?: AxiosRequestConfig) {
181
- return InitialInvoicesApiFp(this.configuration).createInitialInvoice(requestParameters.createInvoiceForPolicyRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
191
+ return InitialInvoicesApiFp(this.configuration).createInitialInvoice(requestParameters.createInvoiceForPolicyRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
182
192
  }
183
193
  }
@@ -70,12 +70,22 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
70
70
  // http bearer authentication required
71
71
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
72
72
 
73
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
74
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
73
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
74
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
75
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
76
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
77
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
78
+ if (authorizationValue || authorizationKeepEmpty) {
79
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
75
80
  }
76
81
 
77
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
78
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
82
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
83
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
84
+ const idempotencyKeyIsAuth = 'Idempotency-Key'.toLowerCase() === 'authorization';
85
+ const idempotencyKeyValue = idempotencyKeyIsAuth ? (idempotencyKey || baseAccessToken) : idempotencyKey;
86
+ const idempotencyKeyKeepEmpty = idempotencyKeyIsAuth && idempotencyKeyValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
87
+ if (idempotencyKeyValue || idempotencyKeyKeepEmpty) {
88
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
79
89
  }
80
90
 
81
91
 
@@ -129,8 +139,13 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
129
139
  localVarQueryParameter['expand'] = expand;
130
140
  }
131
141
 
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
142
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
143
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
144
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
145
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
146
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
147
+ if (authorizationValue || authorizationKeepEmpty) {
148
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
149
  }
135
150
 
136
151
 
@@ -150,11 +165,11 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
150
165
  * @param {string} [authorization] Bearer Token
151
166
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
152
167
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
153
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
168
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
154
169
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
155
170
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id, paymentMethodType, paymentMethodPsp</i>
156
171
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments, invoiceItems<i>
157
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
172
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
158
173
  * @param {*} [options] Override http request option.
159
174
  * @throws {RequiredError}
160
175
  */
@@ -205,8 +220,13 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
205
220
  localVarQueryParameter['filters'] = filters;
206
221
  }
207
222
 
208
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
209
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
223
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
224
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
225
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
226
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
227
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
228
+ if (authorizationValue || authorizationKeepEmpty) {
229
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
210
230
  }
211
231
 
212
232
 
@@ -282,8 +302,13 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
282
302
  localVarQueryParameter['filters'] = filters;
283
303
  }
284
304
 
285
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
286
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
305
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
306
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
307
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
308
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
309
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
310
+ if (authorizationValue || authorizationKeepEmpty) {
311
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
287
312
  }
288
313
 
289
314
 
@@ -339,11 +364,11 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
339
364
  * @param {string} [authorization] Bearer Token
340
365
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
341
366
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
342
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
367
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
343
368
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
344
369
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id, paymentMethodType, paymentMethodPsp</i>
345
370
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments, invoiceItems<i>
346
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
371
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
347
372
  * @param {*} [options] Override http request option.
348
373
  * @throws {RequiredError}
349
374
  */
@@ -410,11 +435,11 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
410
435
  * @param {string} [authorization] Bearer Token
411
436
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
412
437
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
413
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
438
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
414
439
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
415
440
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: invoiceNumber, status, netAmount, grossAmount, createdAt, dueDate, id, paymentMethodType, paymentMethodPsp</i>
416
441
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: statuses, payments, invoiceItems<i>
417
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
442
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
418
443
  * @param {*} [options] Override http request option.
419
444
  * @throws {RequiredError}
420
445
  */
@@ -526,7 +551,7 @@ export interface InvoicesApiListInvoicesRequest {
526
551
  readonly pageToken?: string
527
552
 
528
553
  /**
529
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
554
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
530
555
  * @type {string}
531
556
  * @memberof InvoicesApiListInvoices
532
557
  */
@@ -554,7 +579,7 @@ export interface InvoicesApiListInvoicesRequest {
554
579
  readonly expand?: string
555
580
 
556
581
  /**
557
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, paymentMethodType, paymentMethodPsp</i>
582
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, policyCode, invoiceNumber, id, type, accountNumber, status, billingIntervalFrom, billingIntervalTo, createdAt, dueDate, grossAmount, paymentMethodType, paymentMethodPsp</i>
558
583
  * @type {string}
559
584
  * @memberof InvoicesApiListInvoices
560
585
  */
@@ -640,7 +665,7 @@ export class InvoicesApi extends BaseAPI {
640
665
  * @memberof InvoicesApi
641
666
  */
642
667
  public createInvoice(requestParameters: InvoicesApiCreateInvoiceRequest, options?: AxiosRequestConfig) {
643
- return InvoicesApiFp(this.configuration).createInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then((request) => request(this.axios, this.basePath));
668
+ return InvoicesApiFp(this.configuration).createInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
644
669
  }
645
670
 
646
671
  /**
@@ -652,7 +677,7 @@ export class InvoicesApi extends BaseAPI {
652
677
  * @memberof InvoicesApi
653
678
  */
654
679
  public getInvoice(requestParameters: InvoicesApiGetInvoiceRequest, options?: AxiosRequestConfig) {
655
- return InvoicesApiFp(this.configuration).getInvoice(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
680
+ return InvoicesApiFp(this.configuration).getInvoice(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
656
681
  }
657
682
 
658
683
  /**
@@ -664,7 +689,7 @@ export class InvoicesApi extends BaseAPI {
664
689
  * @memberof InvoicesApi
665
690
  */
666
691
  public listInvoices(requestParameters: InvoicesApiListInvoicesRequest = {}, options?: AxiosRequestConfig) {
667
- return InvoicesApiFp(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
692
+ return InvoicesApiFp(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
668
693
  }
669
694
 
670
695
  /**
@@ -677,6 +702,6 @@ export class InvoicesApi extends BaseAPI {
677
702
  * @memberof InvoicesApi
678
703
  */
679
704
  public listPoliciesBillingDates(requestParameters: InvoicesApiListPoliciesBillingDatesRequest = {}, options?: AxiosRequestConfig) {
680
- return InvoicesApiFp(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
705
+ return InvoicesApiFp(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
681
706
  }
682
707
  }
@@ -67,8 +67,13 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
69
 
70
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
71
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
72
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
73
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
74
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
75
+ if (authorizationValue || authorizationKeepEmpty) {
76
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
72
77
  }
73
78
 
74
79
 
@@ -146,8 +151,13 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
146
151
  localVarQueryParameter['filters'] = filters;
147
152
  }
148
153
 
149
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
150
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
154
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
155
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
156
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
157
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
158
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
159
+ if (authorizationValue || authorizationKeepEmpty) {
160
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
151
161
  }
152
162
 
153
163
 
@@ -194,8 +204,13 @@ export const PolicyBillingApiAxiosParamCreator = function (configuration?: Confi
194
204
  // http bearer authentication required
195
205
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
196
206
 
197
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
198
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
207
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
208
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
209
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
210
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
211
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
212
+ if (authorizationValue || authorizationKeepEmpty) {
213
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
199
214
  }
200
215
 
201
216
 
@@ -446,7 +461,7 @@ export class PolicyBillingApi extends BaseAPI {
446
461
  * @memberof PolicyBillingApi
447
462
  */
448
463
  public createPolicyBilling(requestParameters: PolicyBillingApiCreatePolicyBillingRequest, options?: AxiosRequestConfig) {
449
- return PolicyBillingApiFp(this.configuration).createPolicyBilling(requestParameters.createPolicyBillingRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
464
+ return PolicyBillingApiFp(this.configuration).createPolicyBilling(requestParameters.createPolicyBillingRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
450
465
  }
451
466
 
452
467
  /**
@@ -458,7 +473,7 @@ export class PolicyBillingApi extends BaseAPI {
458
473
  * @memberof PolicyBillingApi
459
474
  */
460
475
  public listPoliciesBillings(requestParameters: PolicyBillingApiListPoliciesBillingsRequest = {}, options?: AxiosRequestConfig) {
461
- return PolicyBillingApiFp(this.configuration).listPoliciesBillings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
476
+ return PolicyBillingApiFp(this.configuration).listPoliciesBillings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
462
477
  }
463
478
 
464
479
  /**
@@ -470,6 +485,6 @@ export class PolicyBillingApi extends BaseAPI {
470
485
  * @memberof PolicyBillingApi
471
486
  */
472
487
  public updatePolicyBilling(requestParameters: PolicyBillingApiUpdatePolicyBillingRequest, options?: AxiosRequestConfig) {
473
- return PolicyBillingApiFp(this.configuration).updatePolicyBilling(requestParameters.code, requestParameters.updatePolicyBillingRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
488
+ return PolicyBillingApiFp(this.configuration).updatePolicyBilling(requestParameters.code, requestParameters.updatePolicyBillingRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
474
489
  }
475
490
  }