@emilgroup/payment-sdk 1.22.1-beta.68 → 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 (92) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +24 -12
  4. package/api/bank-orders-api.ts +20 -10
  5. package/api/bank-transaction-api.ts +24 -12
  6. package/api/billing-addresses-api.ts +20 -10
  7. package/api/credit-allocation-api.ts +12 -6
  8. package/api/exceeding-credits-api.ts +117 -4
  9. package/api/ibanvalidator-api.ts +4 -2
  10. package/api/payment-methods-api.ts +12 -6
  11. package/api/payment-receipts-api.ts +20 -10
  12. package/api/payment-reminders-api.ts +16 -8
  13. package/api/payment-requests-api.ts +32 -22
  14. package/api/payment-setup-api.ts +8 -4
  15. package/api/payments-api.ts +24 -12
  16. package/api/payout-methods-api.ts +24 -12
  17. package/api/policy-payment-methods-api.ts +12 -6
  18. package/api/refunds-api.ts +12 -6
  19. package/api/tenant-bank-account-api.ts +20 -10
  20. package/base.ts +174 -41
  21. package/configuration.ts +20 -0
  22. package/dist/api/bank-accounts-api.js +36 -22
  23. package/dist/api/bank-orders-api.js +29 -18
  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.d.ts +57 -0
  28. package/dist/api/exceeding-credits-api.js +107 -7
  29. package/dist/api/ibanvalidator-api.js +7 -4
  30. package/dist/api/payment-methods-api.js +18 -11
  31. package/dist/api/payment-receipts-api.js +29 -18
  32. package/dist/api/payment-reminders-api.js +25 -15
  33. package/dist/api/payment-requests-api.d.ts +12 -12
  34. package/dist/api/payment-requests-api.js +38 -27
  35. package/dist/api/payment-setup-api.js +14 -8
  36. package/dist/api/payments-api.js +28 -18
  37. package/dist/api/payout-methods-api.js +36 -22
  38. package/dist/api/policy-payment-methods-api.js +18 -11
  39. package/dist/api/refunds-api.js +15 -10
  40. package/dist/api/tenant-bank-account-api.js +29 -18
  41. package/dist/base.d.ts +24 -0
  42. package/dist/base.js +178 -59
  43. package/dist/configuration.d.ts +17 -0
  44. package/dist/configuration.js +2 -0
  45. package/dist/models/create-exceeding-credit-request-dto.d.ts +48 -0
  46. package/dist/models/create-exceeding-credit-request-dto.js +15 -0
  47. package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
  48. package/dist/models/create-exceeding-credit-response-class.js +15 -0
  49. package/dist/models/create-payment-order-dto.d.ts +1 -1
  50. package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
  51. package/dist/models/create-payment-request-dto.d.ts +1 -1
  52. package/dist/models/create-payment-request-request-dto.d.ts +6 -0
  53. package/dist/models/credit-allocation-class.d.ts +6 -0
  54. package/dist/models/credit-allocation-entity.d.ts +6 -0
  55. package/dist/models/index.d.ts +2 -0
  56. package/dist/models/index.js +2 -0
  57. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  58. package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
  59. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  60. package/dist/models/list-payment-requests-response-class.d.ts +6 -18
  61. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  62. package/dist/models/list-refunds-response-class.d.ts +6 -18
  63. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  64. package/dist/models/payment-class.d.ts +2 -2
  65. package/dist/models/payment-entity.d.ts +1 -1
  66. package/dist/models/payment-receipt-class.d.ts +1 -1
  67. package/dist/models/payment-request-class.d.ts +12 -6
  68. package/dist/models/shared-transaction-class.d.ts +6 -0
  69. package/dist/models/transaction-entity.d.ts +6 -0
  70. package/models/create-exceeding-credit-request-dto.ts +54 -0
  71. package/models/create-exceeding-credit-response-class.ts +31 -0
  72. package/models/create-payment-order-dto.ts +1 -1
  73. package/models/create-payment-receipt-request-dto.ts +1 -1
  74. package/models/create-payment-request-dto.ts +1 -1
  75. package/models/create-payment-request-request-dto.ts +6 -0
  76. package/models/credit-allocation-class.ts +6 -0
  77. package/models/credit-allocation-entity.ts +6 -0
  78. package/models/index.ts +2 -0
  79. package/models/list-billing-addresses-response-class.ts +9 -9
  80. package/models/list-exceeding-credits-response-class.ts +6 -18
  81. package/models/list-payment-receipts-response-class.ts +9 -9
  82. package/models/list-payment-requests-response-class.ts +6 -18
  83. package/models/list-payout-methods-response-class.ts +9 -9
  84. package/models/list-refunds-response-class.ts +6 -18
  85. package/models/payment-class-without-expand-properties.ts +2 -2
  86. package/models/payment-class.ts +2 -2
  87. package/models/payment-entity.ts +1 -1
  88. package/models/payment-receipt-class.ts +1 -1
  89. package/models/payment-request-class.ts +12 -6
  90. package/models/shared-transaction-class.ts +6 -0
  91. package/models/transaction-entity.ts +6 -0
  92. package/package.json +1 -1
@@ -92,6 +92,58 @@ var base_1 = require("../base");
92
92
  var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
+ /**
96
+ * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
97
+ * @summary Create the exceeding credit
98
+ * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
99
+ * @param {string} [authorization] Bearer Token
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'createExceedingCreditRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createExceedingCredit', 'createExceedingCreditRequestDto', createExceedingCreditRequestDto);
112
+ localVarPath = "/paymentservice/v1/exceeding-credits";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
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
+ ];
126
+ case 1:
127
+ // authentication bearer required
128
+ // http bearer authentication required
129
+ _a.sent();
130
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
+ if (authorizationValue) {
132
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
133
+ }
134
+ localVarHeaderParameter['Content-Type'] = 'application/json';
135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createExceedingCreditRequestDto, localVarRequestOptions, configuration);
139
+ return [2 /*return*/, {
140
+ url: (0, common_1.toPathString)(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ }];
143
+ }
144
+ });
145
+ });
146
+ },
95
147
  /**
96
148
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
97
149
  * @summary Retrieve the exceeding credit
@@ -103,7 +155,7 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
103
155
  getExceedingCredit: function (code, authorization, options) {
104
156
  if (options === void 0) { options = {}; }
105
157
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
159
  return __generator(this, function (_a) {
108
160
  switch (_a.label) {
109
161
  case 0:
@@ -121,13 +173,16 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
121
173
  localVarQueryParameter = {};
122
174
  // authentication bearer required
123
175
  // http bearer authentication required
124
- 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
+ ];
125
179
  case 1:
126
180
  // authentication bearer required
127
181
  // http bearer authentication required
128
182
  _a.sent();
129
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
+ if (authorizationValue) {
185
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
131
186
  }
132
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
188
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -157,7 +212,7 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
157
212
  listExceedingCredits: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
158
213
  if (options === void 0) { options = {}; }
159
214
  return __awaiter(_this, void 0, void 0, function () {
160
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
215
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
161
216
  return __generator(this, function (_a) {
162
217
  switch (_a.label) {
163
218
  case 0:
@@ -198,8 +253,9 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
198
253
  if (filters !== undefined) {
199
254
  localVarQueryParameter['filters'] = filters;
200
255
  }
201
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
202
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
256
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
257
+ if (authorizationValue) {
258
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
203
259
  }
204
260
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
205
261
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -222,6 +278,27 @@ exports.ExceedingCreditsApiAxiosParamCreator = ExceedingCreditsApiAxiosParamCrea
222
278
  var ExceedingCreditsApiFp = function (configuration) {
223
279
  var localVarAxiosParamCreator = (0, exports.ExceedingCreditsApiAxiosParamCreator)(configuration);
224
280
  return {
281
+ /**
282
+ * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
283
+ * @summary Create the exceeding credit
284
+ * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
285
+ * @param {string} [authorization] Bearer Token
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ */
289
+ createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
290
+ return __awaiter(this, void 0, void 0, function () {
291
+ var localVarAxiosArgs;
292
+ return __generator(this, function (_a) {
293
+ switch (_a.label) {
294
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createExceedingCredit(createExceedingCreditRequestDto, authorization, options)];
295
+ case 1:
296
+ localVarAxiosArgs = _a.sent();
297
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
298
+ }
299
+ });
300
+ });
301
+ },
225
302
  /**
226
303
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
227
304
  * @summary Retrieve the exceeding credit
@@ -280,6 +357,17 @@ exports.ExceedingCreditsApiFp = ExceedingCreditsApiFp;
280
357
  var ExceedingCreditsApiFactory = function (configuration, basePath, axios) {
281
358
  var localVarFp = (0, exports.ExceedingCreditsApiFp)(configuration);
282
359
  return {
360
+ /**
361
+ * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
362
+ * @summary Create the exceeding credit
363
+ * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
364
+ * @param {string} [authorization] Bearer Token
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
369
+ return localVarFp.createExceedingCredit(createExceedingCreditRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
370
+ },
283
371
  /**
284
372
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
285
373
  * @summary Retrieve the exceeding credit
@@ -322,6 +410,18 @@ var ExceedingCreditsApi = /** @class */ (function (_super) {
322
410
  function ExceedingCreditsApi() {
323
411
  return _super !== null && _super.apply(this, arguments) || this;
324
412
  }
413
+ /**
414
+ * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
415
+ * @summary Create the exceeding credit
416
+ * @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ * @memberof ExceedingCreditsApi
420
+ */
421
+ ExceedingCreditsApi.prototype.createExceedingCredit = function (requestParameters, options) {
422
+ var _this = this;
423
+ return (0, exports.ExceedingCreditsApiFp)(this.configuration).createExceedingCredit(requestParameters.createExceedingCreditRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
424
+ };
325
425
  /**
326
426
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
327
427
  * @summary Retrieve the exceeding credit
@@ -103,7 +103,7 @@ var IBANValidatorApiAxiosParamCreator = function (configuration) {
103
103
  validateIban: function (validateIbanRequestDto, 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 IBANValidatorApiAxiosParamCreator = 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);
@@ -103,7 +103,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
103
103
  createPaymentMethod: function (createPspPaymentMethodRequestDto, 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 PaymentMethodsApiAxiosParamCreator = 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 PaymentMethodsApiAxiosParamCreator = function (configuration) {
152
155
  getPaymentMethod: 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 PaymentMethodsApiAxiosParamCreator = 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 PaymentMethodsApiAxiosParamCreator = function (configuration) {
206
212
  listPaymentMethods: 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 PaymentMethodsApiAxiosParamCreator = 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 : {};
@@ -103,7 +103,7 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
103
103
  createPaymentReceipt: function (createPaymentReceiptRequestDto, 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 PaymentReceiptsApiAxiosParamCreator = 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 PaymentReceiptsApiAxiosParamCreator = function (configuration) {
152
155
  deletePaymentReceipt: 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 PaymentReceiptsApiAxiosParamCreator = 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 PaymentReceiptsApiAxiosParamCreator = function (configuration) {
201
207
  getPaymentReceipt: 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 PaymentReceiptsApiAxiosParamCreator = 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 : {};
@@ -260,7 +267,7 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
260
267
  listPaymentReceipts: 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 PaymentReceiptsApiAxiosParamCreator = 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 : {};
@@ -326,7 +334,7 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
326
334
  updatePaymentReceipt: function (code, authorization, options) {
327
335
  if (options === void 0) { options = {}; }
328
336
  return __awaiter(_this, void 0, void 0, function () {
329
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
337
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
330
338
  return __generator(this, function (_a) {
331
339
  switch (_a.label) {
332
340
  case 0:
@@ -344,13 +352,16 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
344
352
  localVarQueryParameter = {};
345
353
  // authentication bearer required
346
354
  // http bearer authentication required
347
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
355
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
356
+ // Only Authorization falls back to the configured token; an empty value is never sent.
357
+ ];
348
358
  case 1:
349
359
  // authentication bearer required
350
360
  // http bearer authentication required
351
361
  _a.sent();
352
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
353
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
362
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
363
+ if (authorizationValue) {
364
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
354
365
  }
355
366
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
356
367
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -103,7 +103,7 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
103
103
  createPaymentReminder: function (createPaymentReminderRequestDto, 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 PaymentRemindersApiAxiosParamCreator = 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);
@@ -153,7 +156,7 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
153
156
  deactivatePaymentReminder: function (code, deactivatePaymentReminderRequestDto, authorization, options) {
154
157
  if (options === void 0) { options = {}; }
155
158
  return __awaiter(_this, void 0, void 0, function () {
156
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
157
160
  return __generator(this, function (_a) {
158
161
  switch (_a.label) {
159
162
  case 0:
@@ -173,13 +176,16 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
173
176
  localVarQueryParameter = {};
174
177
  // authentication bearer required
175
178
  // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
179
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
180
+ // Only Authorization falls back to the configured token; an empty value is never sent.
181
+ ];
177
182
  case 1:
178
183
  // authentication bearer required
179
184
  // http bearer authentication required
180
185
  _a.sent();
181
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
+ if (authorizationValue) {
188
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
183
189
  }
184
190
  localVarHeaderParameter['Content-Type'] = 'application/json';
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -205,7 +211,7 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
205
211
  getPaymentReminder: function (code, authorization, options) {
206
212
  if (options === void 0) { options = {}; }
207
213
  return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
209
215
  return __generator(this, function (_a) {
210
216
  switch (_a.label) {
211
217
  case 0:
@@ -223,13 +229,16 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
223
229
  localVarQueryParameter = {};
224
230
  // authentication bearer required
225
231
  // http bearer authentication required
226
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
232
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
233
+ // Only Authorization falls back to the configured token; an empty value is never sent.
234
+ ];
227
235
  case 1:
228
236
  // authentication bearer required
229
237
  // http bearer authentication required
230
238
  _a.sent();
231
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
232
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
239
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
240
+ if (authorizationValue) {
241
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
233
242
  }
234
243
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
235
244
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -259,7 +268,7 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
259
268
  listPaymentReminders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
260
269
  if (options === void 0) { options = {}; }
261
270
  return __awaiter(_this, void 0, void 0, function () {
262
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
271
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
263
272
  return __generator(this, function (_a) {
264
273
  switch (_a.label) {
265
274
  case 0:
@@ -300,8 +309,9 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
300
309
  if (filters !== undefined) {
301
310
  localVarQueryParameter['filters'] = filters;
302
311
  }
303
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
304
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
312
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
313
+ if (authorizationValue) {
314
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
305
315
  }
306
316
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
307
317
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};