@emilgroup/payment-sdk 1.22.1-beta.7 → 1.22.1-beta.71

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 (70) hide show
  1. package/README.md +2 -2
  2. package/api/bank-accounts-api.ts +24 -12
  3. package/api/bank-orders-api.ts +28 -18
  4. package/api/bank-transaction-api.ts +24 -12
  5. package/api/billing-addresses-api.ts +20 -10
  6. package/api/credit-allocation-api.ts +12 -6
  7. package/api/exceeding-credits-api.ts +12 -6
  8. package/api/ibanvalidator-api.ts +4 -2
  9. package/api/payment-methods-api.ts +12 -6
  10. package/api/payment-receipts-api.ts +20 -10
  11. package/api/payment-reminders-api.ts +16 -8
  12. package/api/payment-requests-api.ts +32 -22
  13. package/api/payment-setup-api.ts +8 -4
  14. package/api/payments-api.ts +24 -12
  15. package/api/payout-methods-api.ts +24 -12
  16. package/api/policy-payment-methods-api.ts +12 -6
  17. package/api/refunds-api.ts +12 -6
  18. package/api/tenant-bank-account-api.ts +20 -10
  19. package/base.ts +174 -41
  20. package/configuration.ts +20 -0
  21. package/dist/api/bank-accounts-api.js +36 -22
  22. package/dist/api/bank-orders-api.d.ts +8 -8
  23. package/dist/api/bank-orders-api.js +35 -24
  24. package/dist/api/bank-transaction-api.js +36 -22
  25. package/dist/api/billing-addresses-api.js +32 -19
  26. package/dist/api/credit-allocation-api.js +18 -11
  27. package/dist/api/exceeding-credits-api.js +18 -11
  28. package/dist/api/ibanvalidator-api.js +7 -4
  29. package/dist/api/payment-methods-api.js +18 -11
  30. package/dist/api/payment-receipts-api.js +29 -18
  31. package/dist/api/payment-reminders-api.js +25 -15
  32. package/dist/api/payment-requests-api.d.ts +12 -12
  33. package/dist/api/payment-requests-api.js +38 -27
  34. package/dist/api/payment-setup-api.js +14 -8
  35. package/dist/api/payments-api.js +28 -18
  36. package/dist/api/payout-methods-api.js +36 -22
  37. package/dist/api/policy-payment-methods-api.js +18 -11
  38. package/dist/api/refunds-api.js +15 -10
  39. package/dist/api/tenant-bank-account-api.js +29 -18
  40. package/dist/base.d.ts +24 -0
  41. package/dist/base.js +178 -59
  42. package/dist/configuration.d.ts +17 -0
  43. package/dist/configuration.js +2 -0
  44. package/dist/models/bank-order-entity.d.ts +1 -0
  45. package/dist/models/bank-order-entity.js +1 -0
  46. package/dist/models/create-bank-order-request-dto.d.ts +3 -2
  47. package/dist/models/create-bank-order-request-dto.js +1 -0
  48. package/dist/models/create-payment-order-dto.d.ts +1 -1
  49. package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
  50. package/dist/models/create-payment-request-dto.d.ts +1 -1
  51. package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
  52. package/dist/models/payment-class.d.ts +1 -1
  53. package/dist/models/payment-receipt-class.d.ts +1 -1
  54. package/dist/models/payment-request-class.d.ts +18 -0
  55. package/dist/models/shared-transaction-class.d.ts +6 -0
  56. package/dist/models/transaction-entity.d.ts +6 -0
  57. package/dist/models/update-bank-order-request-dto.d.ts +2 -2
  58. package/models/bank-order-entity.ts +1 -0
  59. package/models/create-bank-order-request-dto.ts +3 -2
  60. package/models/create-payment-order-dto.ts +1 -1
  61. package/models/create-payment-receipt-request-dto.ts +1 -1
  62. package/models/create-payment-request-dto.ts +1 -1
  63. package/models/payment-class-without-expand-properties.ts +1 -1
  64. package/models/payment-class.ts +1 -1
  65. package/models/payment-receipt-class.ts +1 -1
  66. package/models/payment-request-class.ts +18 -0
  67. package/models/shared-transaction-class.ts +6 -0
  68. package/models/transaction-entity.ts +6 -0
  69. package/models/update-bank-order-request-dto.ts +2 -2
  70. package/package.json +1 -1
@@ -103,7 +103,7 @@ 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, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,13 +120,16 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
+ // Only Authorization falls back to the configured token; an empty value is never sent.
125
+ ];
124
126
  case 1:
125
127
  // authentication bearer required
126
128
  // http bearer authentication required
127
129
  _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
+ if (authorizationValue) {
132
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
133
  }
131
134
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,7 +155,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
152
155
  deleteBankOrder: function (code, authorization, options) {
153
156
  if (options === void 0) { options = {}; }
154
157
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
156
159
  return __generator(this, function (_a) {
157
160
  switch (_a.label) {
158
161
  case 0:
@@ -170,13 +173,16 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
170
173
  localVarQueryParameter = {};
171
174
  // authentication bearer required
172
175
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
177
+ // Only Authorization falls back to the configured token; an empty value is never sent.
178
+ ];
174
179
  case 1:
175
180
  // authentication bearer required
176
181
  // http bearer authentication required
177
182
  _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
+ if (authorizationValue) {
185
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
186
  }
181
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
188
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -201,7 +207,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
201
207
  getBankOrder: function (code, authorization, expand, options) {
202
208
  if (options === void 0) { options = {}; }
203
209
  return __awaiter(_this, void 0, void 0, function () {
204
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
210
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
205
211
  return __generator(this, function (_a) {
206
212
  switch (_a.label) {
207
213
  case 0:
@@ -227,8 +233,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
227
233
  if (expand !== undefined) {
228
234
  localVarQueryParameter['expand'] = expand;
229
235
  }
230
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
236
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
237
+ if (authorizationValue) {
238
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
232
239
  }
233
240
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
241
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -247,18 +254,18 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
247
254
  * @param {string} [authorization] Bearer Token
248
255
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
249
256
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
250
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
257
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
251
258
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, tenantBankAccountCode</i>
252
259
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, tenantBankAccountCode, amount, createdAt, updatedAt</i>
253
260
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: tenantBankAccount, xmlFile<i>
254
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
261
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
255
262
  * @param {*} [options] Override http request option.
256
263
  * @throws {RequiredError}
257
264
  */
258
265
  listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
259
266
  if (options === void 0) { options = {}; }
260
267
  return __awaiter(_this, void 0, void 0, function () {
261
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
268
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
262
269
  return __generator(this, function (_a) {
263
270
  switch (_a.label) {
264
271
  case 0:
@@ -299,8 +306,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
299
306
  if (filters !== undefined) {
300
307
  localVarQueryParameter['filters'] = filters;
301
308
  }
302
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
309
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
310
+ if (authorizationValue) {
311
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
312
  }
305
313
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
306
314
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -325,7 +333,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
325
333
  updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
326
334
  if (options === void 0) { options = {}; }
327
335
  return __awaiter(_this, void 0, void 0, function () {
328
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
336
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
329
337
  return __generator(this, function (_a) {
330
338
  switch (_a.label) {
331
339
  case 0:
@@ -345,13 +353,16 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
345
353
  localVarQueryParameter = {};
346
354
  // authentication bearer required
347
355
  // http bearer authentication required
348
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
356
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
357
+ // Only Authorization falls back to the configured token; an empty value is never sent.
358
+ ];
349
359
  case 1:
350
360
  // authentication bearer required
351
361
  // http bearer authentication required
352
362
  _a.sent();
353
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
363
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
364
+ if (authorizationValue) {
365
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
355
366
  }
356
367
  localVarHeaderParameter['Content-Type'] = 'application/json';
357
368
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -446,11 +457,11 @@ var BankOrdersApiFp = function (configuration) {
446
457
  * @param {string} [authorization] Bearer Token
447
458
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
448
459
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
449
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
460
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
450
461
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, tenantBankAccountCode</i>
451
462
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, tenantBankAccountCode, amount, createdAt, updatedAt</i>
452
463
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: tenantBankAccount, xmlFile<i>
453
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
464
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
454
465
  * @param {*} [options] Override http request option.
455
466
  * @throws {RequiredError}
456
467
  */
@@ -539,11 +550,11 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
539
550
  * @param {string} [authorization] Bearer Token
540
551
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
541
552
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
542
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
553
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
543
554
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, tenantBankAccountCode</i>
544
555
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, tenantBankAccountCode, amount, createdAt, updatedAt</i>
545
556
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: tenantBankAccount, xmlFile<i>
546
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
557
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
547
558
  * @param {*} [options] Override http request option.
548
559
  * @throws {RequiredError}
549
560
  */
@@ -103,7 +103,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
103
103
  generateInvoiceMatchSuggestion: function (code, 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, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -121,13 +121,16 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
121
121
  localVarQueryParameter = {};
122
122
  // authentication bearer required
123
123
  // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
+ // Only Authorization falls back to the configured token; an empty value is never sent.
126
+ ];
125
127
  case 1:
126
128
  // authentication bearer required
127
129
  // http bearer authentication required
128
130
  _a.sent();
129
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
132
+ if (authorizationValue) {
133
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
131
134
  }
132
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
136
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -152,7 +155,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
152
155
  getBankTransaction: function (code, authorization, expand, options) {
153
156
  if (options === void 0) { options = {}; }
154
157
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
156
159
  return __generator(this, function (_a) {
157
160
  switch (_a.label) {
158
161
  case 0:
@@ -178,8 +181,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
178
181
  if (expand !== undefined) {
179
182
  localVarQueryParameter['expand'] = expand;
180
183
  }
181
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
185
+ if (authorizationValue) {
186
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
183
187
  }
184
188
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
185
189
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -203,7 +207,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
203
207
  importBankTransactions: function (file, authorization, options) {
204
208
  if (options === void 0) { options = {}; }
205
209
  return __awaiter(_this, void 0, void 0, function () {
206
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
210
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
207
211
  return __generator(this, function (_a) {
208
212
  switch (_a.label) {
209
213
  case 0:
@@ -221,13 +225,16 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
221
225
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
222
226
  // authentication bearer required
223
227
  // http bearer authentication required
224
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
228
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
229
+ // Only Authorization falls back to the configured token; an empty value is never sent.
230
+ ];
225
231
  case 1:
226
232
  // authentication bearer required
227
233
  // http bearer authentication required
228
234
  _a.sent();
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
235
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
236
+ if (authorizationValue) {
237
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
231
238
  }
232
239
  if (file !== undefined) {
233
240
  localVarFormParams.append('file', file);
@@ -256,7 +263,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
256
263
  linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
257
264
  if (options === void 0) { options = {}; }
258
265
  return __awaiter(_this, void 0, void 0, function () {
259
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
266
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
260
267
  return __generator(this, function (_a) {
261
268
  switch (_a.label) {
262
269
  case 0:
@@ -276,13 +283,16 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
276
283
  localVarQueryParameter = {};
277
284
  // authentication bearer required
278
285
  // http bearer authentication required
279
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
286
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
287
+ // Only Authorization falls back to the configured token; an empty value is never sent.
288
+ ];
280
289
  case 1:
281
290
  // authentication bearer required
282
291
  // http bearer authentication required
283
292
  _a.sent();
284
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
293
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
294
+ if (authorizationValue) {
295
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
286
296
  }
287
297
  localVarHeaderParameter['Content-Type'] = 'application/json';
288
298
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -314,7 +324,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
314
324
  listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
315
325
  if (options === void 0) { options = {}; }
316
326
  return __awaiter(_this, void 0, void 0, function () {
317
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
327
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
318
328
  return __generator(this, function (_a) {
319
329
  switch (_a.label) {
320
330
  case 0:
@@ -355,8 +365,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
355
365
  if (filters !== undefined) {
356
366
  localVarQueryParameter['filters'] = filters;
357
367
  }
358
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
359
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
368
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
369
+ if (authorizationValue) {
370
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
360
371
  }
361
372
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
362
373
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -380,7 +391,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
380
391
  unlinkBankTransaction: function (code, authorization, options) {
381
392
  if (options === void 0) { options = {}; }
382
393
  return __awaiter(_this, void 0, void 0, function () {
383
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
394
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
384
395
  return __generator(this, function (_a) {
385
396
  switch (_a.label) {
386
397
  case 0:
@@ -398,13 +409,16 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
398
409
  localVarQueryParameter = {};
399
410
  // authentication bearer required
400
411
  // http bearer authentication required
401
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
412
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
413
+ // Only Authorization falls back to the configured token; an empty value is never sent.
414
+ ];
402
415
  case 1:
403
416
  // authentication bearer required
404
417
  // http bearer authentication required
405
418
  _a.sent();
406
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
407
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
419
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
420
+ if (authorizationValue) {
421
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
408
422
  }
409
423
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
410
424
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -103,7 +103,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
103
103
  createBillingAddress: function (createBillingAddressRequestDto, 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, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,13 +120,16 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
+ // Only Authorization falls back to the configured token; an empty value is never sent.
125
+ ];
124
126
  case 1:
125
127
  // authentication bearer required
126
128
  // http bearer authentication required
127
129
  _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
+ if (authorizationValue) {
132
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
133
  }
131
134
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,7 +155,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
152
155
  deleteBillingAddress: function (code, authorization, options) {
153
156
  if (options === void 0) { options = {}; }
154
157
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
156
159
  return __generator(this, function (_a) {
157
160
  switch (_a.label) {
158
161
  case 0:
@@ -170,13 +173,16 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
170
173
  localVarQueryParameter = {};
171
174
  // authentication bearer required
172
175
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
177
+ // Only Authorization falls back to the configured token; an empty value is never sent.
178
+ ];
174
179
  case 1:
175
180
  // authentication bearer required
176
181
  // http bearer authentication required
177
182
  _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
+ if (authorizationValue) {
185
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
186
  }
181
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
188
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -200,7 +206,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
200
206
  getBillingAddress: function (code, authorization, options) {
201
207
  if (options === void 0) { options = {}; }
202
208
  return __awaiter(_this, void 0, void 0, function () {
203
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
209
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
204
210
  return __generator(this, function (_a) {
205
211
  switch (_a.label) {
206
212
  case 0:
@@ -218,13 +224,16 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
218
224
  localVarQueryParameter = {};
219
225
  // authentication bearer required
220
226
  // http bearer authentication required
221
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
227
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
228
+ // Only Authorization falls back to the configured token; an empty value is never sent.
229
+ ];
222
230
  case 1:
223
231
  // authentication bearer required
224
232
  // http bearer authentication required
225
233
  _a.sent();
226
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
235
+ if (authorizationValue) {
236
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
228
237
  }
229
238
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
239
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -254,7 +263,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
254
263
  listBillingAddresses: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
255
264
  if (options === void 0) { options = {}; }
256
265
  return __awaiter(_this, void 0, void 0, function () {
257
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
266
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
258
267
  return __generator(this, function (_a) {
259
268
  switch (_a.label) {
260
269
  case 0:
@@ -295,8 +304,9 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
295
304
  if (filters !== undefined) {
296
305
  localVarQueryParameter['filters'] = filters;
297
306
  }
298
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
307
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
308
+ if (authorizationValue) {
309
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
300
310
  }
301
311
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
302
312
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -321,7 +331,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
321
331
  updateBillingAddress: function (code, updateBillingAddressRequestDto, authorization, options) {
322
332
  if (options === void 0) { options = {}; }
323
333
  return __awaiter(_this, void 0, void 0, function () {
324
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
334
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
325
335
  return __generator(this, function (_a) {
326
336
  switch (_a.label) {
327
337
  case 0:
@@ -341,13 +351,16 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
341
351
  localVarQueryParameter = {};
342
352
  // authentication bearer required
343
353
  // http bearer authentication required
344
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
354
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
355
+ // Only Authorization falls back to the configured token; an empty value is never sent.
356
+ ];
345
357
  case 1:
346
358
  // authentication bearer required
347
359
  // http bearer authentication required
348
360
  _a.sent();
349
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
350
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
361
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
362
+ if (authorizationValue) {
363
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
351
364
  }
352
365
  localVarHeaderParameter['Content-Type'] = 'application/json';
353
366
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -103,7 +103,7 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
103
103
  createAllocateCredit: function (createCreditAllocationRequestDto, 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, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,13 +120,16 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
+ // Only Authorization falls back to the configured token; an empty value is never sent.
125
+ ];
124
126
  case 1:
125
127
  // authentication bearer required
126
128
  // http bearer authentication required
127
129
  _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
+ if (authorizationValue) {
132
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
133
  }
131
134
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,7 +155,7 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
152
155
  getCreditAllocation: function (code, authorization, options) {
153
156
  if (options === void 0) { options = {}; }
154
157
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
156
159
  return __generator(this, function (_a) {
157
160
  switch (_a.label) {
158
161
  case 0:
@@ -170,13 +173,16 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
170
173
  localVarQueryParameter = {};
171
174
  // authentication bearer required
172
175
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
177
+ // Only Authorization falls back to the configured token; an empty value is never sent.
178
+ ];
174
179
  case 1:
175
180
  // authentication bearer required
176
181
  // http bearer authentication required
177
182
  _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
+ if (authorizationValue) {
185
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
186
  }
181
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
188
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -206,7 +212,7 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
206
212
  listCreditAllocations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
207
213
  if (options === void 0) { options = {}; }
208
214
  return __awaiter(_this, void 0, void 0, function () {
209
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
215
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
210
216
  return __generator(this, function (_a) {
211
217
  switch (_a.label) {
212
218
  case 0:
@@ -247,8 +253,9 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
247
253
  if (filters !== undefined) {
248
254
  localVarQueryParameter['filters'] = filters;
249
255
  }
250
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
256
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
257
+ if (authorizationValue) {
258
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
252
259
  }
253
260
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
261
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};