@emilgroup/accounting-sdk 1.34.1-beta.111 → 1.34.1-beta.113

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 (52) hide show
  1. package/README.md +2 -2
  2. package/api/accounting-configs-api.ts +24 -64
  3. package/api/booking-entries-api.ts +15 -40
  4. package/api/commission-account-mappings-api.ts +24 -64
  5. package/api/financial-accounts-api.ts +15 -40
  6. package/api/financial-transactions-api.ts +6 -16
  7. package/api/health-api.ts +1 -1
  8. package/api/number-ranges-api.ts +12 -32
  9. package/api/personal-accounts-api.ts +12 -32
  10. package/api/product-account-mappings-api.ts +36 -96
  11. package/base.ts +43 -239
  12. package/common.ts +2 -3
  13. package/configuration.ts +0 -20
  14. package/dist/api/accounting-configs-api.d.ts +8 -8
  15. package/dist/api/accounting-configs-api.js +64 -120
  16. package/dist/api/booking-entries-api.d.ts +5 -5
  17. package/dist/api/booking-entries-api.js +38 -67
  18. package/dist/api/commission-account-mappings-api.d.ts +8 -8
  19. package/dist/api/commission-account-mappings-api.js +61 -108
  20. package/dist/api/financial-accounts-api.d.ts +5 -5
  21. package/dist/api/financial-accounts-api.js +38 -67
  22. package/dist/api/financial-transactions-api.d.ts +2 -2
  23. package/dist/api/financial-transactions-api.js +14 -22
  24. package/dist/api/health-api.d.ts +1 -1
  25. package/dist/api/health-api.js +1 -1
  26. package/dist/api/number-ranges-api.d.ts +4 -4
  27. package/dist/api/number-ranges-api.js +30 -52
  28. package/dist/api/personal-accounts-api.d.ts +4 -4
  29. package/dist/api/personal-accounts-api.js +30 -52
  30. package/dist/api/product-account-mappings-api.d.ts +12 -12
  31. package/dist/api/product-account-mappings-api.js +94 -172
  32. package/dist/base.d.ts +0 -26
  33. package/dist/base.js +60 -243
  34. package/dist/common.d.ts +1 -1
  35. package/dist/common.js +0 -1
  36. package/dist/configuration.d.ts +0 -17
  37. package/dist/configuration.js +0 -2
  38. package/dist/models/account-mapping-class.d.ts +2 -3
  39. package/dist/models/account-mapping-class.js +3 -4
  40. package/dist/models/accounting-category-class.d.ts +0 -12
  41. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +2 -3
  42. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -4
  43. package/dist/models/create-booking-entry-request-dto.d.ts +7 -1
  44. package/dist/models/create-booking-entry-request-dto.js +6 -0
  45. package/dist/models/create-financial-account-request-dto.d.ts +2 -3
  46. package/dist/models/create-financial-account-request-dto.js +3 -4
  47. package/models/account-mapping-class.ts +3 -4
  48. package/models/accounting-category-class.ts +0 -12
  49. package/models/accounting-config-data-dto-default-account-mappings.ts +3 -4
  50. package/models/create-booking-entry-request-dto.ts +7 -1
  51. package/models/create-financial-account-request-dto.ts +3 -4
  52. package/package.json +2 -2
@@ -103,10 +103,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
103
103
  createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
- var _a;
108
- return __generator(this, function (_b) {
109
- switch (_b.label) {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
110
109
  case 0:
111
110
  // verify required parameter 'createFinancialAccountRequestDto' is not null or undefined
112
111
  (0, common_1.assertParamExists)('createFinancialAccount', 'createFinancialAccountRequestDto', createFinancialAccountRequestDto);
@@ -121,19 +120,13 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
121
120
  localVarQueryParameter = {};
122
121
  // authentication bearer required
123
122
  // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
127
- ];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
124
  case 1:
129
125
  // authentication bearer required
130
126
  // http bearer authentication required
131
- _b.sent();
132
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
135
- if (authorizationValue || authorizationKeepEmpty) {
136
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
130
  }
138
131
  localVarHeaderParameter['Content-Type'] = 'application/json';
139
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -159,10 +152,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
159
152
  deleteFinancialAccount: function (code, authorization, options) {
160
153
  if (options === void 0) { options = {}; }
161
154
  return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
163
- var _a;
164
- return __generator(this, function (_b) {
165
- switch (_b.label) {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
166
158
  case 0:
167
159
  // verify required parameter 'code' is not null or undefined
168
160
  (0, common_1.assertParamExists)('deleteFinancialAccount', 'code', code);
@@ -178,19 +170,13 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
178
170
  localVarQueryParameter = {};
179
171
  // authentication bearer required
180
172
  // http bearer authentication required
181
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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
- ];
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
185
174
  case 1:
186
175
  // authentication bearer required
187
176
  // http bearer authentication required
188
- _b.sent();
189
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
190
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
191
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
192
- if (authorizationValue || authorizationKeepEmpty) {
193
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
177
+ _a.sent();
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
194
180
  }
195
181
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
196
182
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -215,10 +201,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
215
201
  getFinancialAccount: function (code, expand, authorization, options) {
216
202
  if (options === void 0) { options = {}; }
217
203
  return __awaiter(_this, void 0, void 0, function () {
218
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
219
- var _a;
220
- return __generator(this, function (_b) {
221
- switch (_b.label) {
204
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
+ return __generator(this, function (_a) {
206
+ switch (_a.label) {
222
207
  case 0:
223
208
  // verify required parameter 'code' is not null or undefined
224
209
  (0, common_1.assertParamExists)('getFinancialAccount', 'code', code);
@@ -240,15 +225,12 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
240
225
  case 1:
241
226
  // authentication bearer required
242
227
  // http bearer authentication required
243
- _b.sent();
228
+ _a.sent();
244
229
  if (expand !== undefined) {
245
230
  localVarQueryParameter['expand'] = expand;
246
231
  }
247
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
248
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
249
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
250
- if (authorizationValue || authorizationKeepEmpty) {
251
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
232
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
234
  }
253
235
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
236
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -278,10 +260,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
278
260
  listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
279
261
  if (options === void 0) { options = {}; }
280
262
  return __awaiter(_this, void 0, void 0, function () {
281
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
282
- var _a;
283
- return __generator(this, function (_b) {
284
- switch (_b.label) {
263
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
264
+ return __generator(this, function (_a) {
265
+ switch (_a.label) {
285
266
  case 0:
286
267
  localVarPath = "/accountingservice/v1/financial-accounts";
287
268
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -298,7 +279,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
298
279
  case 1:
299
280
  // authentication bearer required
300
281
  // http bearer authentication required
301
- _b.sent();
282
+ _a.sent();
302
283
  if (pageSize !== undefined) {
303
284
  localVarQueryParameter['pageSize'] = pageSize;
304
285
  }
@@ -320,11 +301,8 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
320
301
  if (filters !== undefined) {
321
302
  localVarQueryParameter['filters'] = filters;
322
303
  }
323
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
324
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
325
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
326
- if (authorizationValue || authorizationKeepEmpty) {
327
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
328
306
  }
329
307
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
330
308
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -349,10 +327,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
349
327
  updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
350
328
  if (options === void 0) { options = {}; }
351
329
  return __awaiter(_this, void 0, void 0, function () {
352
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
353
- var _a;
354
- return __generator(this, function (_b) {
355
- switch (_b.label) {
330
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
331
+ return __generator(this, function (_a) {
332
+ switch (_a.label) {
356
333
  case 0:
357
334
  // verify required parameter 'code' is not null or undefined
358
335
  (0, common_1.assertParamExists)('updateFinancialAccount', 'code', code);
@@ -370,19 +347,13 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
370
347
  localVarQueryParameter = {};
371
348
  // authentication bearer required
372
349
  // http bearer authentication required
373
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
374
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
375
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
376
- ];
350
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
377
351
  case 1:
378
352
  // authentication bearer required
379
353
  // http bearer authentication required
380
- _b.sent();
381
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
382
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
383
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
384
- if (authorizationValue || authorizationKeepEmpty) {
385
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
354
+ _a.sent();
355
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
356
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
386
357
  }
387
358
  localVarHeaderParameter['Content-Type'] = 'application/json';
388
359
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -617,7 +588,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
617
588
  */
618
589
  FinancialAccountsApi.prototype.createFinancialAccount = function (requestParameters, options) {
619
590
  var _this = this;
620
- return (0, exports.FinancialAccountsApiFp)(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
591
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
621
592
  };
622
593
  /**
623
594
  * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
@@ -629,7 +600,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
629
600
  */
630
601
  FinancialAccountsApi.prototype.deleteFinancialAccount = function (requestParameters, options) {
631
602
  var _this = this;
632
- return (0, exports.FinancialAccountsApiFp)(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
603
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
633
604
  };
634
605
  /**
635
606
  * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.financial-accounts.view\"
@@ -641,7 +612,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
641
612
  */
642
613
  FinancialAccountsApi.prototype.getFinancialAccount = function (requestParameters, options) {
643
614
  var _this = this;
644
- return (0, exports.FinancialAccountsApiFp)(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
615
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
645
616
  };
646
617
  /**
647
618
  * Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.financial-accounts.view\"
@@ -654,7 +625,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
654
625
  FinancialAccountsApi.prototype.listFinancialAccounts = function (requestParameters, options) {
655
626
  var _this = this;
656
627
  if (requestParameters === void 0) { requestParameters = {}; }
657
- return (0, exports.FinancialAccountsApiFp)(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
628
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
658
629
  };
659
630
  /**
660
631
  * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), isDefault (pool-category accounts only; cannot be unset), and linkedBankAccountCode (bank-category accounts only; send an empty string to unlink, omit to leave the link untouched). Linking stays editable once the account is locked, and applies to later postings only. **Required Permissions** \"accounting-management.financial-accounts.update\"
@@ -666,7 +637,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
666
637
  */
667
638
  FinancialAccountsApi.prototype.updateFinancialAccount = function (requestParameters, options) {
668
639
  var _this = this;
669
- return (0, exports.FinancialAccountsApiFp)(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
640
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
670
641
  };
671
642
  return FinancialAccountsApi;
672
643
  }(base_1.BaseAPI));
@@ -202,7 +202,7 @@ export declare class FinancialTransactionsApi extends BaseAPI {
202
202
  * @throws {RequiredError}
203
203
  * @memberof FinancialTransactionsApi
204
204
  */
205
- getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialTransactionResponseClass, any, {}, any>>;
205
+ getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialTransactionResponseClass, any, {}>>;
206
206
  /**
207
207
  * This endpoint list financial transactions. **Required Permissions** \"accounting-management.transactions.view\"
208
208
  * @summary List financial transactions
@@ -211,5 +211,5 @@ export declare class FinancialTransactionsApi extends BaseAPI {
211
211
  * @throws {RequiredError}
212
212
  * @memberof FinancialTransactionsApi
213
213
  */
214
- listFinancialTransactions(requestParameters?: FinancialTransactionsApiListFinancialTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialTransactionsResponseClass, any, {}, any>>;
214
+ listFinancialTransactions(requestParameters?: FinancialTransactionsApiListFinancialTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialTransactionsResponseClass, any, {}>>;
215
215
  }
@@ -104,10 +104,9 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
104
104
  getFinancialTransaction: function (code, expand, authorization, options) {
105
105
  if (options === void 0) { options = {}; }
106
106
  return __awaiter(_this, void 0, void 0, function () {
107
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
108
- var _a;
109
- return __generator(this, function (_b) {
110
- switch (_b.label) {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
111
110
  case 0:
112
111
  // verify required parameter 'code' is not null or undefined
113
112
  (0, common_1.assertParamExists)('getFinancialTransaction', 'code', code);
@@ -129,15 +128,12 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
129
128
  case 1:
130
129
  // authentication bearer required
131
130
  // http bearer authentication required
132
- _b.sent();
131
+ _a.sent();
133
132
  if (expand !== undefined) {
134
133
  localVarQueryParameter['expand'] = expand;
135
134
  }
136
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
137
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
138
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
139
- if (authorizationValue || authorizationKeepEmpty) {
140
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
135
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
136
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
141
137
  }
142
138
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
143
139
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -167,10 +163,9 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
167
163
  listFinancialTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
168
164
  if (options === void 0) { options = {}; }
169
165
  return __awaiter(_this, void 0, void 0, function () {
170
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
171
- var _a;
172
- return __generator(this, function (_b) {
173
- switch (_b.label) {
166
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
167
+ return __generator(this, function (_a) {
168
+ switch (_a.label) {
174
169
  case 0:
175
170
  localVarPath = "/accountingservice/v1/financial-transactions";
176
171
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -187,7 +182,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
187
182
  case 1:
188
183
  // authentication bearer required
189
184
  // http bearer authentication required
190
- _b.sent();
185
+ _a.sent();
191
186
  if (pageSize !== undefined) {
192
187
  localVarQueryParameter['pageSize'] = pageSize;
193
188
  }
@@ -209,11 +204,8 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
209
204
  if (filters !== undefined) {
210
205
  localVarQueryParameter['filters'] = filters;
211
206
  }
212
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
213
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
214
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
215
- if (authorizationValue || authorizationKeepEmpty) {
216
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
207
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
208
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
217
209
  }
218
210
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
219
211
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -348,7 +340,7 @@ var FinancialTransactionsApi = /** @class */ (function (_super) {
348
340
  */
349
341
  FinancialTransactionsApi.prototype.getFinancialTransaction = function (requestParameters, options) {
350
342
  var _this = this;
351
- return (0, exports.FinancialTransactionsApiFp)(this.configuration).getFinancialTransaction(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
343
+ return (0, exports.FinancialTransactionsApiFp)(this.configuration).getFinancialTransaction(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
352
344
  };
353
345
  /**
354
346
  * This endpoint list financial transactions. **Required Permissions** \"accounting-management.transactions.view\"
@@ -361,7 +353,7 @@ var FinancialTransactionsApi = /** @class */ (function (_super) {
361
353
  FinancialTransactionsApi.prototype.listFinancialTransactions = function (requestParameters, options) {
362
354
  var _this = this;
363
355
  if (requestParameters === void 0) { requestParameters = {}; }
364
- return (0, exports.FinancialTransactionsApiFp)(this.configuration).listFinancialTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
356
+ return (0, exports.FinancialTransactionsApiFp)(this.configuration).listFinancialTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
365
357
  };
366
358
  return FinancialTransactionsApi;
367
359
  }(base_1.BaseAPI));
@@ -66,5 +66,5 @@ export declare class HealthApi extends BaseAPI {
66
66
  * @throws {RequiredError}
67
67
  * @memberof HealthApi
68
68
  */
69
- check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
69
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
70
70
  }
@@ -193,7 +193,7 @@ var HealthApi = /** @class */ (function (_super) {
193
193
  */
194
194
  HealthApi.prototype.check = function (options) {
195
195
  var _this = this;
196
- return (0, exports.HealthApiFp)(this.configuration).check(this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
196
+ return (0, exports.HealthApiFp)(this.configuration).check(options).then(function (request) { return request(_this.axios, _this.basePath); });
197
197
  };
198
198
  return HealthApi;
199
199
  }(base_1.BaseAPI));
@@ -296,7 +296,7 @@ export declare class NumberRangesApi extends BaseAPI {
296
296
  * @throws {RequiredError}
297
297
  * @memberof NumberRangesApi
298
298
  */
299
- createNumberRange(requestParameters: NumberRangesApiCreateNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberRangeResponseClass, any, {}, any>>;
299
+ createNumberRange(requestParameters: NumberRangesApiCreateNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberRangeResponseClass, any, {}>>;
300
300
  /**
301
301
  * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.transactions.delete\"
302
302
  * @summary Delete the Personal Account
@@ -305,7 +305,7 @@ export declare class NumberRangesApi extends BaseAPI {
305
305
  * @throws {RequiredError}
306
306
  * @memberof NumberRangesApi
307
307
  */
308
- deleteNumberRange(requestParameters: NumberRangesApiDeleteNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
308
+ deleteNumberRange(requestParameters: NumberRangesApiDeleteNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
309
309
  /**
310
310
  * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.transactions.view\"
311
311
  * @summary Retrieve the Financial Account
@@ -314,7 +314,7 @@ export declare class NumberRangesApi extends BaseAPI {
314
314
  * @throws {RequiredError}
315
315
  * @memberof NumberRangesApi
316
316
  */
317
- getNumberRange(requestParameters: NumberRangesApiGetNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberRangeResponseClass, any, {}, any>>;
317
+ getNumberRange(requestParameters: NumberRangesApiGetNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberRangeResponseClass, any, {}>>;
318
318
  /**
319
319
  * Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.transactions.view\"
320
320
  * @summary List Financial Accounts
@@ -323,5 +323,5 @@ export declare class NumberRangesApi extends BaseAPI {
323
323
  * @throws {RequiredError}
324
324
  * @memberof NumberRangesApi
325
325
  */
326
- listNumberRanges(requestParameters?: NumberRangesApiListNumberRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumberRangeResponseClass, any, {}, any>>;
326
+ listNumberRanges(requestParameters?: NumberRangesApiListNumberRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumberRangeResponseClass, any, {}>>;
327
327
  }
@@ -103,10 +103,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
103
103
  createNumberRange: function (createNumberRangeRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
- var _a;
108
- return __generator(this, function (_b) {
109
- switch (_b.label) {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
110
109
  case 0:
111
110
  // verify required parameter 'createNumberRangeRequestDto' is not null or undefined
112
111
  (0, common_1.assertParamExists)('createNumberRange', 'createNumberRangeRequestDto', createNumberRangeRequestDto);
@@ -121,19 +120,13 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
121
120
  localVarQueryParameter = {};
122
121
  // authentication bearer required
123
122
  // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
127
- ];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
124
  case 1:
129
125
  // authentication bearer required
130
126
  // http bearer authentication required
131
- _b.sent();
132
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
135
- if (authorizationValue || authorizationKeepEmpty) {
136
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
130
  }
138
131
  localVarHeaderParameter['Content-Type'] = 'application/json';
139
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -159,10 +152,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
159
152
  deleteNumberRange: function (code, authorization, options) {
160
153
  if (options === void 0) { options = {}; }
161
154
  return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
163
- var _a;
164
- return __generator(this, function (_b) {
165
- switch (_b.label) {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
166
158
  case 0:
167
159
  // verify required parameter 'code' is not null or undefined
168
160
  (0, common_1.assertParamExists)('deleteNumberRange', 'code', code);
@@ -178,19 +170,13 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
178
170
  localVarQueryParameter = {};
179
171
  // authentication bearer required
180
172
  // http bearer authentication required
181
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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
- ];
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
185
174
  case 1:
186
175
  // authentication bearer required
187
176
  // http bearer authentication required
188
- _b.sent();
189
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
190
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
191
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
192
- if (authorizationValue || authorizationKeepEmpty) {
193
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
177
+ _a.sent();
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
194
180
  }
195
181
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
196
182
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -215,10 +201,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
215
201
  getNumberRange: function (code, expand, authorization, options) {
216
202
  if (options === void 0) { options = {}; }
217
203
  return __awaiter(_this, void 0, void 0, function () {
218
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
219
- var _a;
220
- return __generator(this, function (_b) {
221
- switch (_b.label) {
204
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
+ return __generator(this, function (_a) {
206
+ switch (_a.label) {
222
207
  case 0:
223
208
  // verify required parameter 'code' is not null or undefined
224
209
  (0, common_1.assertParamExists)('getNumberRange', 'code', code);
@@ -240,15 +225,12 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
240
225
  case 1:
241
226
  // authentication bearer required
242
227
  // http bearer authentication required
243
- _b.sent();
228
+ _a.sent();
244
229
  if (expand !== undefined) {
245
230
  localVarQueryParameter['expand'] = expand;
246
231
  }
247
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
248
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
249
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
250
- if (authorizationValue || authorizationKeepEmpty) {
251
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
232
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
234
  }
253
235
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
236
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -278,10 +260,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
278
260
  listNumberRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
279
261
  if (options === void 0) { options = {}; }
280
262
  return __awaiter(_this, void 0, void 0, function () {
281
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
282
- var _a;
283
- return __generator(this, function (_b) {
284
- switch (_b.label) {
263
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
264
+ return __generator(this, function (_a) {
265
+ switch (_a.label) {
285
266
  case 0:
286
267
  localVarPath = "/accountingservice/v1/number-ranges";
287
268
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -298,7 +279,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
298
279
  case 1:
299
280
  // authentication bearer required
300
281
  // http bearer authentication required
301
- _b.sent();
282
+ _a.sent();
302
283
  if (pageSize !== undefined) {
303
284
  localVarQueryParameter['pageSize'] = pageSize;
304
285
  }
@@ -320,11 +301,8 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
320
301
  if (filters !== undefined) {
321
302
  localVarQueryParameter['filters'] = filters;
322
303
  }
323
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
324
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
325
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
326
- if (authorizationValue || authorizationKeepEmpty) {
327
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
328
306
  }
329
307
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
330
308
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -523,7 +501,7 @@ var NumberRangesApi = /** @class */ (function (_super) {
523
501
  */
524
502
  NumberRangesApi.prototype.createNumberRange = function (requestParameters, options) {
525
503
  var _this = this;
526
- return (0, exports.NumberRangesApiFp)(this.configuration).createNumberRange(requestParameters.createNumberRangeRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
504
+ return (0, exports.NumberRangesApiFp)(this.configuration).createNumberRange(requestParameters.createNumberRangeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
527
505
  };
528
506
  /**
529
507
  * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.transactions.delete\"
@@ -535,7 +513,7 @@ var NumberRangesApi = /** @class */ (function (_super) {
535
513
  */
536
514
  NumberRangesApi.prototype.deleteNumberRange = function (requestParameters, options) {
537
515
  var _this = this;
538
- return (0, exports.NumberRangesApiFp)(this.configuration).deleteNumberRange(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
516
+ return (0, exports.NumberRangesApiFp)(this.configuration).deleteNumberRange(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
539
517
  };
540
518
  /**
541
519
  * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.transactions.view\"
@@ -547,7 +525,7 @@ var NumberRangesApi = /** @class */ (function (_super) {
547
525
  */
548
526
  NumberRangesApi.prototype.getNumberRange = function (requestParameters, options) {
549
527
  var _this = this;
550
- return (0, exports.NumberRangesApiFp)(this.configuration).getNumberRange(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
528
+ return (0, exports.NumberRangesApiFp)(this.configuration).getNumberRange(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
551
529
  };
552
530
  /**
553
531
  * Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.transactions.view\"
@@ -560,7 +538,7 @@ var NumberRangesApi = /** @class */ (function (_super) {
560
538
  NumberRangesApi.prototype.listNumberRanges = function (requestParameters, options) {
561
539
  var _this = this;
562
540
  if (requestParameters === void 0) { requestParameters = {}; }
563
- return (0, exports.NumberRangesApiFp)(this.configuration).listNumberRanges(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
541
+ return (0, exports.NumberRangesApiFp)(this.configuration).listNumberRanges(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
564
542
  };
565
543
  return NumberRangesApi;
566
544
  }(base_1.BaseAPI));