@emilgroup/payment-sdk 1.22.1-beta.81 → 1.22.1-beta.83

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 (137) hide show
  1. package/.openapi-generator/FILES +0 -6
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +18 -48
  4. package/api/bank-orders-api.ts +15 -40
  5. package/api/bank-transaction-api.ts +26 -181
  6. package/api/billing-addresses-api.ts +15 -40
  7. package/api/credit-allocation-api.ts +9 -24
  8. package/api/exceeding-credits-api.ts +6 -128
  9. package/api/health-check-api.ts +1 -1
  10. package/api/ibanvalidator-api.ts +3 -8
  11. package/api/payment-methods-api.ts +9 -24
  12. package/api/payment-receipts-api.ts +15 -40
  13. package/api/payment-reminders-api.ts +12 -32
  14. package/api/payment-requests-api.ts +27 -52
  15. package/api/payment-setup-api.ts +6 -16
  16. package/api/payments-api.ts +16 -46
  17. package/api/payout-methods-api.ts +18 -48
  18. package/api/policy-payment-methods-api.ts +9 -24
  19. package/api/refunds-api.ts +9 -24
  20. package/api/tenant-bank-account-api.ts +15 -40
  21. package/api/webhooks-api.ts +2 -2
  22. package/base.ts +43 -239
  23. package/common.ts +2 -3
  24. package/configuration.ts +0 -20
  25. package/dist/api/bank-accounts-api.d.ts +6 -6
  26. package/dist/api/bank-accounts-api.js +46 -82
  27. package/dist/api/bank-orders-api.d.ts +5 -5
  28. package/dist/api/bank-orders-api.js +38 -67
  29. package/dist/api/bank-transaction-api.d.ts +14 -80
  30. package/dist/api/bank-transaction-api.js +52 -194
  31. package/dist/api/billing-addresses-api.d.ts +5 -5
  32. package/dist/api/billing-addresses-api.js +39 -71
  33. package/dist/api/credit-allocation-api.d.ts +3 -3
  34. package/dist/api/credit-allocation-api.js +23 -41
  35. package/dist/api/exceeding-credits-api.d.ts +2 -59
  36. package/dist/api/exceeding-credits-api.js +15 -126
  37. package/dist/api/health-check-api.d.ts +1 -1
  38. package/dist/api/health-check-api.js +1 -1
  39. package/dist/api/ibanvalidator-api.d.ts +1 -1
  40. package/dist/api/ibanvalidator-api.js +8 -15
  41. package/dist/api/payment-methods-api.d.ts +3 -3
  42. package/dist/api/payment-methods-api.js +23 -41
  43. package/dist/api/payment-receipts-api.d.ts +5 -5
  44. package/dist/api/payment-receipts-api.js +38 -67
  45. package/dist/api/payment-reminders-api.d.ts +4 -4
  46. package/dist/api/payment-reminders-api.js +31 -56
  47. package/dist/api/payment-requests-api.d.ts +17 -17
  48. package/dist/api/payment-requests-api.js +47 -76
  49. package/dist/api/payment-setup-api.d.ts +2 -2
  50. package/dist/api/payment-setup-api.js +16 -30
  51. package/dist/api/payments-api.d.ts +4 -4
  52. package/dist/api/payments-api.js +34 -62
  53. package/dist/api/payout-methods-api.d.ts +6 -6
  54. package/dist/api/payout-methods-api.js +46 -82
  55. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  56. package/dist/api/policy-payment-methods-api.js +23 -41
  57. package/dist/api/refunds-api.d.ts +3 -3
  58. package/dist/api/refunds-api.js +22 -37
  59. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  60. package/dist/api/tenant-bank-account-api.js +38 -67
  61. package/dist/api/webhooks-api.d.ts +2 -2
  62. package/dist/api/webhooks-api.js +2 -2
  63. package/dist/base.d.ts +0 -26
  64. package/dist/base.js +60 -243
  65. package/dist/common.d.ts +1 -1
  66. package/dist/common.js +0 -1
  67. package/dist/configuration.d.ts +0 -17
  68. package/dist/configuration.js +0 -2
  69. package/dist/models/bank-transaction-class.d.ts +0 -7
  70. package/dist/models/bank-transaction-entity.d.ts +0 -7
  71. package/dist/models/bank-transaction-invoice-entity.d.ts +0 -24
  72. package/dist/models/create-payment-order-dto.d.ts +1 -1
  73. package/dist/models/create-payment-receipt-request-dto.d.ts +3 -3
  74. package/dist/models/create-payment-request-dto.d.ts +1 -1
  75. package/dist/models/create-payment-request-request-dto.d.ts +0 -6
  76. package/dist/models/credit-allocation-class.d.ts +0 -6
  77. package/dist/models/credit-allocation-entity.d.ts +0 -6
  78. package/dist/models/exceeding-credit-entity.d.ts +0 -6
  79. package/dist/models/index.d.ts +0 -6
  80. package/dist/models/index.js +0 -6
  81. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  82. package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
  83. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  84. package/dist/models/list-payment-requests-response-class.d.ts +18 -6
  85. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  86. package/dist/models/list-refunds-response-class.d.ts +18 -6
  87. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  88. package/dist/models/payment-class.d.ts +2 -2
  89. package/dist/models/payment-entity.d.ts +1 -1
  90. package/dist/models/payment-receipt-class.d.ts +1 -13
  91. package/dist/models/payment-request-class.d.ts +6 -13
  92. package/dist/models/payment-request-class.js +0 -1
  93. package/dist/models/shared-transaction-class.d.ts +0 -6
  94. package/dist/models/transaction-entity.d.ts +0 -6
  95. package/models/bank-transaction-class.ts +0 -7
  96. package/models/bank-transaction-entity.ts +0 -7
  97. package/models/bank-transaction-invoice-entity.ts +0 -24
  98. package/models/create-payment-order-dto.ts +1 -1
  99. package/models/create-payment-receipt-request-dto.ts +3 -3
  100. package/models/create-payment-request-dto.ts +1 -1
  101. package/models/create-payment-request-request-dto.ts +0 -6
  102. package/models/credit-allocation-class.ts +0 -6
  103. package/models/credit-allocation-entity.ts +0 -6
  104. package/models/exceeding-credit-entity.ts +0 -6
  105. package/models/index.ts +0 -6
  106. package/models/list-billing-addresses-response-class.ts +9 -9
  107. package/models/list-exceeding-credits-response-class.ts +18 -6
  108. package/models/list-payment-receipts-response-class.ts +9 -9
  109. package/models/list-payment-requests-response-class.ts +18 -6
  110. package/models/list-payout-methods-response-class.ts +9 -9
  111. package/models/list-refunds-response-class.ts +18 -6
  112. package/models/payment-class-without-expand-properties.ts +2 -2
  113. package/models/payment-class.ts +2 -2
  114. package/models/payment-entity.ts +1 -1
  115. package/models/payment-receipt-class.ts +1 -13
  116. package/models/payment-request-class.ts +6 -13
  117. package/models/shared-transaction-class.ts +0 -6
  118. package/models/transaction-entity.ts +0 -6
  119. package/package.json +2 -2
  120. package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
  121. package/dist/models/create-exceeding-credit-request-dto.js +0 -15
  122. package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
  123. package/dist/models/create-exceeding-credit-response-class.js +0 -15
  124. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +0 -30
  125. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +0 -15
  126. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +0 -25
  127. package/dist/models/link-bank-transaction-payment-requests-response-class.js +0 -15
  128. package/dist/models/payment-receipt-entity.d.ts +0 -139
  129. package/dist/models/payment-receipt-entity.js +0 -20
  130. package/dist/models/payment-request-entity.d.ts +0 -223
  131. package/dist/models/payment-request-entity.js +0 -39
  132. package/models/create-exceeding-credit-request-dto.ts +0 -54
  133. package/models/create-exceeding-credit-response-class.ts +0 -31
  134. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +0 -36
  135. package/models/link-bank-transaction-payment-requests-response-class.ts +0 -31
  136. package/models/payment-receipt-entity.ts +0 -148
  137. package/models/payment-request-entity.ts +0 -233
@@ -103,10 +103,9 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
103
103
  createBankAccount: function (createBankAccountRequestDto, 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 'createBankAccountRequestDto' is not null or undefined
112
111
  (0, common_1.assertParamExists)('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto);
@@ -121,19 +120,13 @@ var BankAccountsApiAxiosParamCreator = 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 BankAccountsApiAxiosParamCreator = function (configuration) {
159
152
  deleteBankAccount: 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)('deleteBankAccount', 'code', code);
@@ -178,19 +170,13 @@ var BankAccountsApiAxiosParamCreator = 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 BankAccountsApiAxiosParamCreator = function (configuration) {
215
201
  getBankAccount: function (code, authorization, expand, 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)('getBankAccount', 'code', code);
@@ -238,15 +223,12 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
238
223
  case 1:
239
224
  // authentication bearer required
240
225
  // http bearer authentication required
241
- _b.sent();
226
+ _a.sent();
242
227
  if (expand !== undefined) {
243
228
  localVarQueryParameter['expand'] = expand;
244
229
  }
245
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
246
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
247
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
248
- if (authorizationValue || authorizationKeepEmpty) {
249
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
250
232
  }
251
233
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
252
234
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -276,10 +258,9 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
276
258
  listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
277
259
  if (options === void 0) { options = {}; }
278
260
  return __awaiter(_this, void 0, void 0, function () {
279
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
280
- var _a;
281
- return __generator(this, function (_b) {
282
- switch (_b.label) {
261
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
262
+ return __generator(this, function (_a) {
263
+ switch (_a.label) {
283
264
  case 0:
284
265
  localVarPath = "/paymentservice/v1/bank-accounts";
285
266
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -296,7 +277,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
296
277
  case 1:
297
278
  // authentication bearer required
298
279
  // http bearer authentication required
299
- _b.sent();
280
+ _a.sent();
300
281
  if (pageSize !== undefined) {
301
282
  localVarQueryParameter['pageSize'] = pageSize;
302
283
  }
@@ -318,11 +299,8 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
318
299
  if (filters !== undefined) {
319
300
  localVarQueryParameter['filters'] = filters;
320
301
  }
321
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
322
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
323
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
324
- if (authorizationValue || authorizationKeepEmpty) {
325
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
302
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
326
304
  }
327
305
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
328
306
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -347,10 +325,9 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
347
325
  setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
348
326
  if (options === void 0) { options = {}; }
349
327
  return __awaiter(_this, void 0, void 0, function () {
350
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
351
- var _a;
352
- return __generator(this, function (_b) {
353
- switch (_b.label) {
328
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
329
+ return __generator(this, function (_a) {
330
+ switch (_a.label) {
354
331
  case 0:
355
332
  // verify required parameter 'code' is not null or undefined
356
333
  (0, common_1.assertParamExists)('setPrimaryBankAccount', 'code', code);
@@ -368,19 +345,13 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
368
345
  localVarQueryParameter = {};
369
346
  // authentication bearer required
370
347
  // http bearer authentication required
371
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
372
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
373
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
374
- ];
348
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
375
349
  case 1:
376
350
  // authentication bearer required
377
351
  // http bearer authentication required
378
- _b.sent();
379
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
380
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
381
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
382
- if (authorizationValue || authorizationKeepEmpty) {
383
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
352
+ _a.sent();
353
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
384
355
  }
385
356
  localVarHeaderParameter['Content-Type'] = 'application/json';
386
357
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -407,10 +378,9 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
407
378
  updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
408
379
  if (options === void 0) { options = {}; }
409
380
  return __awaiter(_this, void 0, void 0, function () {
410
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
411
- var _a;
412
- return __generator(this, function (_b) {
413
- switch (_b.label) {
381
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
382
+ return __generator(this, function (_a) {
383
+ switch (_a.label) {
414
384
  case 0:
415
385
  // verify required parameter 'code' is not null or undefined
416
386
  (0, common_1.assertParamExists)('updateBankAccount', 'code', code);
@@ -428,19 +398,13 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
428
398
  localVarQueryParameter = {};
429
399
  // authentication bearer required
430
400
  // http bearer authentication required
431
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
432
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
433
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
434
- ];
401
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
435
402
  case 1:
436
403
  // authentication bearer required
437
404
  // http bearer authentication required
438
- _b.sent();
439
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
440
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
441
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
442
- if (authorizationValue || authorizationKeepEmpty) {
443
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
405
+ _a.sent();
406
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
407
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
444
408
  }
445
409
  localVarHeaderParameter['Content-Type'] = 'application/json';
446
410
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -709,7 +673,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
709
673
  */
710
674
  BankAccountsApi.prototype.createBankAccount = function (requestParameters, options) {
711
675
  var _this = this;
712
- return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
676
+ return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
713
677
  };
714
678
  /**
715
679
  * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary. **Required Permissions** \"payment-management.bank-accounts.delete\"
@@ -721,7 +685,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
721
685
  */
722
686
  BankAccountsApi.prototype.deleteBankAccount = function (requestParameters, options) {
723
687
  var _this = this;
724
- return (0, exports.BankAccountsApiFp)(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
688
+ return (0, exports.BankAccountsApiFp)(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
725
689
  };
726
690
  /**
727
691
  * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information. **Required Permissions** \"payment-management.bank-accounts.view\"
@@ -733,7 +697,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
733
697
  */
734
698
  BankAccountsApi.prototype.getBankAccount = function (requestParameters, options) {
735
699
  var _this = this;
736
- return (0, exports.BankAccountsApiFp)(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
700
+ return (0, exports.BankAccountsApiFp)(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
737
701
  };
738
702
  /**
739
703
  * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
@@ -746,7 +710,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
746
710
  BankAccountsApi.prototype.listBankAccounts = function (requestParameters, options) {
747
711
  var _this = this;
748
712
  if (requestParameters === void 0) { requestParameters = {}; }
749
- return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(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); });
713
+ return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(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); });
750
714
  };
751
715
  /**
752
716
  * Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
@@ -758,7 +722,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
758
722
  */
759
723
  BankAccountsApi.prototype.setPrimaryBankAccount = function (requestParameters, options) {
760
724
  var _this = this;
761
- return (0, exports.BankAccountsApiFp)(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
725
+ return (0, exports.BankAccountsApiFp)(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
762
726
  };
763
727
  /**
764
728
  * Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
@@ -770,7 +734,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
770
734
  */
771
735
  BankAccountsApi.prototype.updateBankAccount = function (requestParameters, options) {
772
736
  var _this = this;
773
- return (0, exports.BankAccountsApiFp)(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
737
+ return (0, exports.BankAccountsApiFp)(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
774
738
  };
775
739
  return BankAccountsApi;
776
740
  }(base_1.BaseAPI));
@@ -353,7 +353,7 @@ export declare class BankOrdersApi extends BaseAPI {
353
353
  * @throws {RequiredError}
354
354
  * @memberof BankOrdersApi
355
355
  */
356
- createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankOrderResponseClass, any, {}, any>>;
356
+ createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankOrderResponseClass, any, {}>>;
357
357
  /**
358
358
  * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
359
359
  * @summary Delete the bank order
@@ -362,7 +362,7 @@ export declare class BankOrdersApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof BankOrdersApi
364
364
  */
365
- deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
365
+ deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
366
366
  /**
367
367
  * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
368
368
  * @summary Retrieve the bank order
@@ -371,7 +371,7 @@ export declare class BankOrdersApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof BankOrdersApi
373
373
  */
374
- getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankOrderResponseClass, any, {}, any>>;
374
+ getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankOrderResponseClass, any, {}>>;
375
375
  /**
376
376
  * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
377
377
  * @summary List bank orders
@@ -380,7 +380,7 @@ export declare class BankOrdersApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof BankOrdersApi
382
382
  */
383
- listBankOrders(requestParameters?: BankOrdersApiListBankOrdersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankOrdersResponseClass, any, {}, any>>;
383
+ listBankOrders(requestParameters?: BankOrdersApiListBankOrdersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankOrdersResponseClass, any, {}>>;
384
384
  /**
385
385
  * Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
386
386
  * @summary Update the bank order
@@ -389,5 +389,5 @@ export declare class BankOrdersApi extends BaseAPI {
389
389
  * @throws {RequiredError}
390
390
  * @memberof BankOrdersApi
391
391
  */
392
- updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankOrderResponseClass, any, {}, any>>;
392
+ updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankOrderResponseClass, any, {}>>;
393
393
  }
@@ -103,10 +103,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
103
103
  createBankOrder: function (createBankOrderRequestDto, 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 'createBankOrderRequestDto' is not null or undefined
112
111
  (0, common_1.assertParamExists)('createBankOrder', 'createBankOrderRequestDto', createBankOrderRequestDto);
@@ -121,19 +120,13 @@ var BankOrdersApiAxiosParamCreator = 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 BankOrdersApiAxiosParamCreator = function (configuration) {
159
152
  deleteBankOrder: 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)('deleteBankOrder', 'code', code);
@@ -178,19 +170,13 @@ var BankOrdersApiAxiosParamCreator = 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 BankOrdersApiAxiosParamCreator = function (configuration) {
215
201
  getBankOrder: function (code, authorization, expand, 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)('getBankOrder', 'code', code);
@@ -238,15 +223,12 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
238
223
  case 1:
239
224
  // authentication bearer required
240
225
  // http bearer authentication required
241
- _b.sent();
226
+ _a.sent();
242
227
  if (expand !== undefined) {
243
228
  localVarQueryParameter['expand'] = expand;
244
229
  }
245
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
246
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
247
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
248
- if (authorizationValue || authorizationKeepEmpty) {
249
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
250
232
  }
251
233
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
252
234
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -276,10 +258,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
276
258
  listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
277
259
  if (options === void 0) { options = {}; }
278
260
  return __awaiter(_this, void 0, void 0, function () {
279
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
280
- var _a;
281
- return __generator(this, function (_b) {
282
- switch (_b.label) {
261
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
262
+ return __generator(this, function (_a) {
263
+ switch (_a.label) {
283
264
  case 0:
284
265
  localVarPath = "/paymentservice/v1/bank-orders";
285
266
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -296,7 +277,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
296
277
  case 1:
297
278
  // authentication bearer required
298
279
  // http bearer authentication required
299
- _b.sent();
280
+ _a.sent();
300
281
  if (pageSize !== undefined) {
301
282
  localVarQueryParameter['pageSize'] = pageSize;
302
283
  }
@@ -318,11 +299,8 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
318
299
  if (filters !== undefined) {
319
300
  localVarQueryParameter['filters'] = filters;
320
301
  }
321
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
322
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
323
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
324
- if (authorizationValue || authorizationKeepEmpty) {
325
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
302
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
326
304
  }
327
305
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
328
306
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -347,10 +325,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
347
325
  updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
348
326
  if (options === void 0) { options = {}; }
349
327
  return __awaiter(_this, void 0, void 0, function () {
350
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
351
- var _a;
352
- return __generator(this, function (_b) {
353
- switch (_b.label) {
328
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
329
+ return __generator(this, function (_a) {
330
+ switch (_a.label) {
354
331
  case 0:
355
332
  // verify required parameter 'code' is not null or undefined
356
333
  (0, common_1.assertParamExists)('updateBankOrder', 'code', code);
@@ -368,19 +345,13 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
368
345
  localVarQueryParameter = {};
369
346
  // authentication bearer required
370
347
  // http bearer authentication required
371
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
372
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
373
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
374
- ];
348
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
375
349
  case 1:
376
350
  // authentication bearer required
377
351
  // http bearer authentication required
378
- _b.sent();
379
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
380
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
381
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
382
- if (authorizationValue || authorizationKeepEmpty) {
383
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
352
+ _a.sent();
353
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
384
355
  }
385
356
  localVarHeaderParameter['Content-Type'] = 'application/json';
386
357
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -615,7 +586,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
615
586
  */
616
587
  BankOrdersApi.prototype.createBankOrder = function (requestParameters, options) {
617
588
  var _this = this;
618
- return (0, exports.BankOrdersApiFp)(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
589
+ return (0, exports.BankOrdersApiFp)(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
619
590
  };
620
591
  /**
621
592
  * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
@@ -627,7 +598,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
627
598
  */
628
599
  BankOrdersApi.prototype.deleteBankOrder = function (requestParameters, options) {
629
600
  var _this = this;
630
- return (0, exports.BankOrdersApiFp)(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
601
+ return (0, exports.BankOrdersApiFp)(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
631
602
  };
632
603
  /**
633
604
  * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
@@ -639,7 +610,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
639
610
  */
640
611
  BankOrdersApi.prototype.getBankOrder = function (requestParameters, options) {
641
612
  var _this = this;
642
- return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
613
+ return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
643
614
  };
644
615
  /**
645
616
  * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
@@ -652,7 +623,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
652
623
  BankOrdersApi.prototype.listBankOrders = function (requestParameters, options) {
653
624
  var _this = this;
654
625
  if (requestParameters === void 0) { requestParameters = {}; }
655
- return (0, exports.BankOrdersApiFp)(this.configuration).listBankOrders(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); });
626
+ return (0, exports.BankOrdersApiFp)(this.configuration).listBankOrders(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); });
656
627
  };
657
628
  /**
658
629
  * Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
@@ -664,7 +635,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
664
635
  */
665
636
  BankOrdersApi.prototype.updateBankOrder = function (requestParameters, options) {
666
637
  var _this = this;
667
- return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
638
+ return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
668
639
  };
669
640
  return BankOrdersApi;
670
641
  }(base_1.BaseAPI));