@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 PaymentRequestsApiAxiosParamCreator = function (configuration) {
103
103
  createPaymentRequest: function (createPaymentRequestRequestDto, 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 PaymentRequestsApiAxiosParamCreator = 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 PaymentRequestsApiAxiosParamCreator = function (configuration) {
152
155
  deletePaymentRequest: 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 PaymentRequestsApiAxiosParamCreator = 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 PaymentRequestsApiAxiosParamCreator = function (configuration) {
201
207
  getPaymentRequest: function (code, expand, authorization, 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:
@@ -229,8 +235,9 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
229
235
  if (expand !== undefined) {
230
236
  localVarQueryParameter['expand'] = expand;
231
237
  }
232
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
239
+ if (authorizationValue) {
240
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
234
241
  }
235
242
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
243
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -249,18 +256,18 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
249
256
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
257
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
251
258
  * @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.
252
- * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
253
- * @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, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
259
+ * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
260
+ * @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, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode, bankOrderNumber</i>
254
261
  * @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, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</i>
255
262
  * @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: paymentReceipts<i>
256
- * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
263
+ * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
257
264
  * @param {*} [options] Override http request option.
258
265
  * @throws {RequiredError}
259
266
  */
260
267
  listPaymentRequests: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
261
268
  if (options === void 0) { options = {}; }
262
269
  return __awaiter(_this, void 0, void 0, function () {
263
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
270
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
264
271
  return __generator(this, function (_a) {
265
272
  switch (_a.label) {
266
273
  case 0:
@@ -301,8 +308,9 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
301
308
  if (filters !== undefined) {
302
309
  localVarQueryParameter['filters'] = filters;
303
310
  }
304
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
311
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
312
+ if (authorizationValue) {
313
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
306
314
  }
307
315
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
308
316
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -327,7 +335,7 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
327
335
  updatePaymentRequest: function (code, updatePaymentRequestRequestDto, authorization, options) {
328
336
  if (options === void 0) { options = {}; }
329
337
  return __awaiter(_this, void 0, void 0, function () {
330
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
338
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
331
339
  return __generator(this, function (_a) {
332
340
  switch (_a.label) {
333
341
  case 0:
@@ -347,13 +355,16 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
347
355
  localVarQueryParameter = {};
348
356
  // authentication bearer required
349
357
  // http bearer authentication required
350
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
358
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
359
+ // Only Authorization falls back to the configured token; an empty value is never sent.
360
+ ];
351
361
  case 1:
352
362
  // authentication bearer required
353
363
  // http bearer authentication required
354
364
  _a.sent();
355
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
356
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
365
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
366
+ if (authorizationValue) {
367
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
357
368
  }
358
369
  localVarHeaderParameter['Content-Type'] = 'application/json';
359
370
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -448,11 +459,11 @@ var PaymentRequestsApiFp = function (configuration) {
448
459
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
449
460
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
450
461
  * @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.
451
- * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
452
- * @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, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
462
+ * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
463
+ * @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, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode, bankOrderNumber</i>
453
464
  * @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, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</i>
454
465
  * @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: paymentReceipts<i>
455
- * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
466
+ * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
456
467
  * @param {*} [options] Override http request option.
457
468
  * @throws {RequiredError}
458
469
  */
@@ -541,11 +552,11 @@ var PaymentRequestsApiFactory = function (configuration, basePath, axios) {
541
552
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
542
553
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
543
554
  * @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.
544
- * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
545
- * @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, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
555
+ * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
556
+ * @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, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode, bankOrderNumber</i>
546
557
  * @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, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</i>
547
558
  * @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: paymentReceipts<i>
548
- * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
559
+ * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
549
560
  * @param {*} [options] Override http request option.
550
561
  * @throws {RequiredError}
551
562
  */
@@ -103,7 +103,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
103
103
  completePaymentSetup: function (completePaymentSetupRequestDto, 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 PaymentSetupApiAxiosParamCreator = 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 PaymentSetupApiAxiosParamCreator = function (configuration) {
152
155
  initiatePaymentSetup: function (initiatePaymentSetupRequestDto, 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:
@@ -169,13 +172,16 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
169
172
  localVarQueryParameter = {};
170
173
  // authentication bearer required
171
174
  // http bearer authentication required
172
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
175
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
176
+ // Only Authorization falls back to the configured token; an empty value is never sent.
177
+ ];
173
178
  case 1:
174
179
  // authentication bearer required
175
180
  // http bearer authentication required
176
181
  _a.sent();
177
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
182
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
183
+ if (authorizationValue) {
184
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
179
185
  }
180
186
  localVarHeaderParameter['Content-Type'] = 'application/json';
181
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -104,7 +104,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
104
104
  createPayment: function (idempotencyKey, createPaymentRequestDto, authorization, options) {
105
105
  if (options === void 0) { options = {}; }
106
106
  return __awaiter(_this, void 0, void 0, function () {
107
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
108
108
  return __generator(this, function (_a) {
109
109
  switch (_a.label) {
110
110
  case 0:
@@ -123,16 +123,20 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
123
123
  localVarQueryParameter = {};
124
124
  // authentication bearer required
125
125
  // http bearer authentication required
126
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
126
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
127
+ // Only Authorization falls back to the configured token; an empty value is never sent.
128
+ ];
127
129
  case 1:
128
130
  // authentication bearer required
129
131
  // http bearer authentication required
130
132
  _a.sent();
131
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
134
+ if (authorizationValue) {
135
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
133
136
  }
134
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
135
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
137
+ idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
138
+ if (idempotencyKeyValue) {
139
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
136
140
  }
137
141
  localVarHeaderParameter['Content-Type'] = 'application/json';
138
142
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -159,7 +163,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
159
163
  createPaymentOrder: function (idempotencyKey, createPaymentOrderDto, authorization, options) {
160
164
  if (options === void 0) { options = {}; }
161
165
  return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
166
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
163
167
  return __generator(this, function (_a) {
164
168
  switch (_a.label) {
165
169
  case 0:
@@ -178,16 +182,20 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
178
182
  localVarQueryParameter = {};
179
183
  // authentication bearer required
180
184
  // http bearer authentication required
181
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
185
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
186
+ // Only Authorization falls back to the configured token; an empty value is never sent.
187
+ ];
182
188
  case 1:
183
189
  // authentication bearer required
184
190
  // http bearer authentication required
185
191
  _a.sent();
186
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
192
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
193
+ if (authorizationValue) {
194
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
188
195
  }
189
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
190
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
196
+ idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
197
+ if (idempotencyKeyValue) {
198
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
191
199
  }
192
200
  localVarHeaderParameter['Content-Type'] = 'application/json';
193
201
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -214,7 +222,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
214
222
  getPayment: function (code, authorization, expand, options) {
215
223
  if (options === void 0) { options = {}; }
216
224
  return __awaiter(_this, void 0, void 0, function () {
217
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
225
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
218
226
  return __generator(this, function (_a) {
219
227
  switch (_a.label) {
220
228
  case 0:
@@ -240,8 +248,9 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
240
248
  if (expand !== undefined) {
241
249
  localVarQueryParameter['expand'] = expand;
242
250
  }
243
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
244
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
251
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
252
+ if (authorizationValue) {
253
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
245
254
  }
246
255
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
247
256
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -271,7 +280,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
271
280
  listPayments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
272
281
  if (options === void 0) { options = {}; }
273
282
  return __awaiter(_this, void 0, void 0, function () {
274
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
283
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
275
284
  return __generator(this, function (_a) {
276
285
  switch (_a.label) {
277
286
  case 0:
@@ -312,8 +321,9 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
312
321
  if (filters !== undefined) {
313
322
  localVarQueryParameter['filters'] = filters;
314
323
  }
315
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
316
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
324
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
325
+ if (authorizationValue) {
326
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
317
327
  }
318
328
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
319
329
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -103,7 +103,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
103
103
  activatePayoutMethod: 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 PayoutMethodsApiAxiosParamCreator = 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 : {};
@@ -151,7 +154,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
151
154
  createPayoutMethod: function (createPayoutMethodRequestDto, authorization, options) {
152
155
  if (options === void 0) { options = {}; }
153
156
  return __awaiter(_this, void 0, void 0, function () {
154
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
157
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
155
158
  return __generator(this, function (_a) {
156
159
  switch (_a.label) {
157
160
  case 0:
@@ -168,13 +171,16 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
168
171
  localVarQueryParameter = {};
169
172
  // authentication bearer required
170
173
  // http bearer authentication required
171
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
175
+ // Only Authorization falls back to the configured token; an empty value is never sent.
176
+ ];
172
177
  case 1:
173
178
  // authentication bearer required
174
179
  // http bearer authentication required
175
180
  _a.sent();
176
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
181
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
182
+ if (authorizationValue) {
183
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
178
184
  }
179
185
  localVarHeaderParameter['Content-Type'] = 'application/json';
180
186
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -201,7 +207,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
201
207
  createPayoutMethodByBankAccount: function (code, createPayoutMethodByBankAccountRequestDto, authorization, 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:
@@ -221,13 +227,16 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
221
227
  localVarQueryParameter = {};
222
228
  // authentication bearer required
223
229
  // http bearer authentication required
224
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
230
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
231
+ // Only Authorization falls back to the configured token; an empty value is never sent.
232
+ ];
225
233
  case 1:
226
234
  // authentication bearer required
227
235
  // http bearer authentication required
228
236
  _a.sent();
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
238
+ if (authorizationValue) {
239
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
231
240
  }
232
241
  localVarHeaderParameter['Content-Type'] = 'application/json';
233
242
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -253,7 +262,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
253
262
  deletePayoutMethod: function (code, authorization, options) {
254
263
  if (options === void 0) { options = {}; }
255
264
  return __awaiter(_this, void 0, void 0, function () {
256
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
265
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
257
266
  return __generator(this, function (_a) {
258
267
  switch (_a.label) {
259
268
  case 0:
@@ -271,13 +280,16 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
271
280
  localVarQueryParameter = {};
272
281
  // authentication bearer required
273
282
  // http bearer authentication required
274
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
283
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
284
+ // Only Authorization falls back to the configured token; an empty value is never sent.
285
+ ];
275
286
  case 1:
276
287
  // authentication bearer required
277
288
  // http bearer authentication required
278
289
  _a.sent();
279
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
280
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
290
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
291
+ if (authorizationValue) {
292
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
281
293
  }
282
294
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
283
295
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -302,7 +314,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
302
314
  getPayoutMethod: function (code, authorization, expand, options) {
303
315
  if (options === void 0) { options = {}; }
304
316
  return __awaiter(_this, void 0, void 0, function () {
305
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
317
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
306
318
  return __generator(this, function (_a) {
307
319
  switch (_a.label) {
308
320
  case 0:
@@ -328,8 +340,9 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
328
340
  if (expand !== undefined) {
329
341
  localVarQueryParameter['expand'] = expand;
330
342
  }
331
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
332
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
343
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
344
+ if (authorizationValue) {
345
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
333
346
  }
334
347
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
335
348
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -359,7 +372,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
359
372
  listPayoutMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
360
373
  if (options === void 0) { options = {}; }
361
374
  return __awaiter(_this, void 0, void 0, function () {
362
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
375
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
363
376
  return __generator(this, function (_a) {
364
377
  switch (_a.label) {
365
378
  case 0:
@@ -400,8 +413,9 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
400
413
  if (filters !== undefined) {
401
414
  localVarQueryParameter['filters'] = filters;
402
415
  }
403
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
404
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
416
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
417
+ if (authorizationValue) {
418
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
405
419
  }
406
420
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
407
421
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};