@emilgroup/payment-sdk 1.22.1-beta.75 → 1.22.1-beta.77

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 (129) hide show
  1. package/.openapi-generator/FILES +0 -6
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +12 -24
  4. package/api/bank-orders-api.ts +10 -20
  5. package/api/bank-transaction-api.ts +20 -154
  6. package/api/billing-addresses-api.ts +10 -20
  7. package/api/credit-allocation-api.ts +6 -12
  8. package/api/exceeding-credits-api.ts +4 -117
  9. package/api/ibanvalidator-api.ts +2 -4
  10. package/api/payment-methods-api.ts +6 -12
  11. package/api/payment-receipts-api.ts +10 -20
  12. package/api/payment-reminders-api.ts +8 -16
  13. package/api/payment-requests-api.ts +22 -32
  14. package/api/payment-setup-api.ts +4 -8
  15. package/api/payments-api.ts +12 -24
  16. package/api/payout-methods-api.ts +12 -24
  17. package/api/policy-payment-methods-api.ts +6 -12
  18. package/api/refunds-api.ts +6 -12
  19. package/api/tenant-bank-account-api.ts +10 -20
  20. package/base.ts +41 -174
  21. package/common.ts +2 -3
  22. package/configuration.ts +0 -20
  23. package/dist/api/bank-accounts-api.d.ts +6 -6
  24. package/dist/api/bank-accounts-api.js +22 -36
  25. package/dist/api/bank-orders-api.d.ts +5 -5
  26. package/dist/api/bank-orders-api.js +18 -29
  27. package/dist/api/bank-transaction-api.d.ts +14 -80
  28. package/dist/api/bank-transaction-api.js +28 -144
  29. package/dist/api/billing-addresses-api.d.ts +5 -5
  30. package/dist/api/billing-addresses-api.js +19 -32
  31. package/dist/api/credit-allocation-api.d.ts +3 -3
  32. package/dist/api/credit-allocation-api.js +11 -18
  33. package/dist/api/exceeding-credits-api.d.ts +2 -59
  34. package/dist/api/exceeding-credits-api.js +7 -107
  35. package/dist/api/health-check-api.d.ts +1 -1
  36. package/dist/api/ibanvalidator-api.d.ts +1 -1
  37. package/dist/api/ibanvalidator-api.js +4 -7
  38. package/dist/api/payment-methods-api.d.ts +3 -3
  39. package/dist/api/payment-methods-api.js +11 -18
  40. package/dist/api/payment-receipts-api.d.ts +5 -5
  41. package/dist/api/payment-receipts-api.js +18 -29
  42. package/dist/api/payment-reminders-api.d.ts +4 -4
  43. package/dist/api/payment-reminders-api.js +15 -25
  44. package/dist/api/payment-requests-api.d.ts +17 -17
  45. package/dist/api/payment-requests-api.js +27 -38
  46. package/dist/api/payment-setup-api.d.ts +2 -2
  47. package/dist/api/payment-setup-api.js +8 -14
  48. package/dist/api/payments-api.d.ts +4 -4
  49. package/dist/api/payments-api.js +18 -28
  50. package/dist/api/payout-methods-api.d.ts +6 -6
  51. package/dist/api/payout-methods-api.js +22 -36
  52. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  53. package/dist/api/policy-payment-methods-api.js +11 -18
  54. package/dist/api/refunds-api.d.ts +3 -3
  55. package/dist/api/refunds-api.js +10 -15
  56. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  57. package/dist/api/tenant-bank-account-api.js +18 -29
  58. package/dist/api/webhooks-api.d.ts +2 -2
  59. package/dist/base.d.ts +0 -24
  60. package/dist/base.js +59 -178
  61. package/dist/common.d.ts +1 -1
  62. package/dist/common.js +0 -1
  63. package/dist/configuration.d.ts +0 -17
  64. package/dist/configuration.js +0 -2
  65. package/dist/models/bank-transaction-class.d.ts +0 -7
  66. package/dist/models/bank-transaction-entity.d.ts +0 -7
  67. package/dist/models/create-payment-order-dto.d.ts +1 -1
  68. package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
  69. package/dist/models/create-payment-request-dto.d.ts +1 -1
  70. package/dist/models/create-payment-request-request-dto.d.ts +0 -6
  71. package/dist/models/credit-allocation-class.d.ts +0 -6
  72. package/dist/models/credit-allocation-entity.d.ts +0 -6
  73. package/dist/models/index.d.ts +0 -6
  74. package/dist/models/index.js +0 -6
  75. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  76. package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
  77. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  78. package/dist/models/list-payment-requests-response-class.d.ts +18 -6
  79. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  80. package/dist/models/list-refunds-response-class.d.ts +18 -6
  81. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  82. package/dist/models/payment-class.d.ts +2 -2
  83. package/dist/models/payment-entity.d.ts +1 -1
  84. package/dist/models/payment-receipt-class.d.ts +1 -13
  85. package/dist/models/payment-request-class.d.ts +6 -13
  86. package/dist/models/payment-request-class.js +0 -1
  87. package/dist/models/shared-transaction-class.d.ts +0 -6
  88. package/dist/models/transaction-entity.d.ts +0 -6
  89. package/models/bank-transaction-class.ts +0 -7
  90. package/models/bank-transaction-entity.ts +0 -7
  91. package/models/create-payment-order-dto.ts +1 -1
  92. package/models/create-payment-receipt-request-dto.ts +1 -1
  93. package/models/create-payment-request-dto.ts +1 -1
  94. package/models/create-payment-request-request-dto.ts +0 -6
  95. package/models/credit-allocation-class.ts +0 -6
  96. package/models/credit-allocation-entity.ts +0 -6
  97. package/models/index.ts +0 -6
  98. package/models/list-billing-addresses-response-class.ts +9 -9
  99. package/models/list-exceeding-credits-response-class.ts +18 -6
  100. package/models/list-payment-receipts-response-class.ts +9 -9
  101. package/models/list-payment-requests-response-class.ts +18 -6
  102. package/models/list-payout-methods-response-class.ts +9 -9
  103. package/models/list-refunds-response-class.ts +18 -6
  104. package/models/payment-class-without-expand-properties.ts +2 -2
  105. package/models/payment-class.ts +2 -2
  106. package/models/payment-entity.ts +1 -1
  107. package/models/payment-receipt-class.ts +1 -13
  108. package/models/payment-request-class.ts +6 -13
  109. package/models/shared-transaction-class.ts +0 -6
  110. package/models/transaction-entity.ts +0 -6
  111. package/package.json +2 -2
  112. package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
  113. package/dist/models/create-exceeding-credit-request-dto.js +0 -15
  114. package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
  115. package/dist/models/create-exceeding-credit-response-class.js +0 -15
  116. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +0 -30
  117. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +0 -15
  118. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +0 -25
  119. package/dist/models/link-bank-transaction-payment-requests-response-class.js +0 -15
  120. package/dist/models/payment-receipt-entity.d.ts +0 -139
  121. package/dist/models/payment-receipt-entity.js +0 -20
  122. package/dist/models/payment-request-entity.d.ts +0 -223
  123. package/dist/models/payment-request-entity.js +0 -39
  124. package/models/create-exceeding-credit-request-dto.ts +0 -54
  125. package/models/create-exceeding-credit-response-class.ts +0 -31
  126. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +0 -36
  127. package/models/link-bank-transaction-payment-requests-response-class.ts +0 -31
  128. package/models/payment-receipt-entity.ts +0 -148
  129. package/models/payment-request-entity.ts +0 -233
@@ -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, authorizationValue, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -121,16 +121,13 @@ 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)
125
- // Only Authorization falls back to the configured token; an empty value is never sent.
126
- ];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
125
  case 1:
128
126
  // authentication bearer required
129
127
  // http bearer authentication required
130
128
  _a.sent();
131
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
132
- if (authorizationValue) {
133
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
129
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
131
  }
135
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
133
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -154,7 +151,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
154
151
  createPayoutMethod: function (createPayoutMethodRequestDto, authorization, options) {
155
152
  if (options === void 0) { options = {}; }
156
153
  return __awaiter(_this, void 0, void 0, function () {
157
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
154
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
155
  return __generator(this, function (_a) {
159
156
  switch (_a.label) {
160
157
  case 0:
@@ -171,16 +168,13 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
171
168
  localVarQueryParameter = {};
172
169
  // authentication bearer required
173
170
  // http bearer authentication required
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
- ];
171
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
177
172
  case 1:
178
173
  // authentication bearer required
179
174
  // http bearer authentication required
180
175
  _a.sent();
181
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
182
- if (authorizationValue) {
183
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
176
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
178
  }
185
179
  localVarHeaderParameter['Content-Type'] = 'application/json';
186
180
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -207,7 +201,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
207
201
  createPayoutMethodByBankAccount: function (code, createPayoutMethodByBankAccountRequestDto, authorization, options) {
208
202
  if (options === void 0) { options = {}; }
209
203
  return __awaiter(_this, void 0, void 0, function () {
210
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
204
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
211
205
  return __generator(this, function (_a) {
212
206
  switch (_a.label) {
213
207
  case 0:
@@ -227,16 +221,13 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
227
221
  localVarQueryParameter = {};
228
222
  // authentication bearer required
229
223
  // http bearer authentication required
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
- ];
224
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
233
225
  case 1:
234
226
  // authentication bearer required
235
227
  // http bearer authentication required
236
228
  _a.sent();
237
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
238
- if (authorizationValue) {
239
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
229
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
240
231
  }
241
232
  localVarHeaderParameter['Content-Type'] = 'application/json';
242
233
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -262,7 +253,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
262
253
  deletePayoutMethod: function (code, authorization, options) {
263
254
  if (options === void 0) { options = {}; }
264
255
  return __awaiter(_this, void 0, void 0, function () {
265
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
256
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
266
257
  return __generator(this, function (_a) {
267
258
  switch (_a.label) {
268
259
  case 0:
@@ -280,16 +271,13 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
280
271
  localVarQueryParameter = {};
281
272
  // authentication bearer required
282
273
  // http bearer authentication required
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
- ];
274
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
286
275
  case 1:
287
276
  // authentication bearer required
288
277
  // http bearer authentication required
289
278
  _a.sent();
290
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
291
- if (authorizationValue) {
292
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
279
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
280
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
293
281
  }
294
282
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
295
283
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -314,7 +302,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
314
302
  getPayoutMethod: function (code, authorization, expand, options) {
315
303
  if (options === void 0) { options = {}; }
316
304
  return __awaiter(_this, void 0, void 0, function () {
317
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
305
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
318
306
  return __generator(this, function (_a) {
319
307
  switch (_a.label) {
320
308
  case 0:
@@ -340,9 +328,8 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
340
328
  if (expand !== undefined) {
341
329
  localVarQueryParameter['expand'] = expand;
342
330
  }
343
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
344
- if (authorizationValue) {
345
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
331
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
332
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
346
333
  }
347
334
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
348
335
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -372,7 +359,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
372
359
  listPayoutMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
373
360
  if (options === void 0) { options = {}; }
374
361
  return __awaiter(_this, void 0, void 0, function () {
375
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
362
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
376
363
  return __generator(this, function (_a) {
377
364
  switch (_a.label) {
378
365
  case 0:
@@ -413,9 +400,8 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
413
400
  if (filters !== undefined) {
414
401
  localVarQueryParameter['filters'] = filters;
415
402
  }
416
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
417
- if (authorizationValue) {
418
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
403
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
404
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
419
405
  }
420
406
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
421
407
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -250,7 +250,7 @@ export declare class PolicyPaymentMethodsApi extends BaseAPI {
250
250
  * @throws {RequiredError}
251
251
  * @memberof PolicyPaymentMethodsApi
252
252
  */
253
- activatePolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
253
+ activatePolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
254
254
  /**
255
255
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
256
256
  * @summary Create the policy payment method
@@ -259,7 +259,7 @@ export declare class PolicyPaymentMethodsApi extends BaseAPI {
259
259
  * @throws {RequiredError}
260
260
  * @memberof PolicyPaymentMethodsApi
261
261
  */
262
- createPolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyPaymentMethodResponseClass, any, {}, any>>;
262
+ createPolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyPaymentMethodResponseClass, any, {}>>;
263
263
  /**
264
264
  * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
265
265
  * @summary Retrieve the policy payment methods
@@ -268,5 +268,5 @@ export declare class PolicyPaymentMethodsApi extends BaseAPI {
268
268
  * @throws {RequiredError}
269
269
  * @memberof PolicyPaymentMethodsApi
270
270
  */
271
- listPolicyPaymentMethods(requestParameters?: PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPolicyPaymentMethodsResponseClass, any, {}, any>>;
271
+ listPolicyPaymentMethods(requestParameters?: PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPolicyPaymentMethodsResponseClass, any, {}>>;
272
272
  }
@@ -104,7 +104,7 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
104
104
  activatePolicyPaymentMethod: function (code, activatePolicyPaymentMethodRequestDto, 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, authorizationValue, headersFromBaseOptions;
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
108
  return __generator(this, function (_a) {
109
109
  switch (_a.label) {
110
110
  case 0:
@@ -124,16 +124,13 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
- // Only Authorization falls back to the configured token; an empty value is never sent.
129
- ];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
130
128
  case 1:
131
129
  // authentication bearer required
132
130
  // http bearer authentication required
133
131
  _a.sent();
134
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
- if (authorizationValue) {
136
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
134
  }
138
135
  localVarHeaderParameter['Content-Type'] = 'application/json';
139
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -159,7 +156,7 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
159
156
  createPolicyPaymentMethod: function (createPolicyPaymentMethodRequestDto, authorization, options) {
160
157
  if (options === void 0) { options = {}; }
161
158
  return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
163
160
  return __generator(this, function (_a) {
164
161
  switch (_a.label) {
165
162
  case 0:
@@ -176,16 +173,13 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
176
173
  localVarQueryParameter = {};
177
174
  // authentication bearer required
178
175
  // http bearer authentication required
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
- ];
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
182
177
  case 1:
183
178
  // authentication bearer required
184
179
  // http bearer authentication required
185
180
  _a.sent();
186
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
- if (authorizationValue) {
188
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
181
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
189
183
  }
190
184
  localVarHeaderParameter['Content-Type'] = 'application/json';
191
185
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -217,7 +211,7 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
217
211
  listPolicyPaymentMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
218
212
  if (options === void 0) { options = {}; }
219
213
  return __awaiter(_this, void 0, void 0, function () {
220
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
221
215
  return __generator(this, function (_a) {
222
216
  switch (_a.label) {
223
217
  case 0:
@@ -258,9 +252,8 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
258
252
  if (filters !== undefined) {
259
253
  localVarQueryParameter['filters'] = filters;
260
254
  }
261
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
262
- if (authorizationValue) {
263
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
255
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
256
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
264
257
  }
265
258
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
266
259
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -250,7 +250,7 @@ export declare class RefundsApi extends BaseAPI {
250
250
  * @throws {RequiredError}
251
251
  * @memberof RefundsApi
252
252
  */
253
- createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRefundResponseClass, any, {}, any>>;
253
+ createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRefundResponseClass, any, {}>>;
254
254
  /**
255
255
  * Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information. **Required Permissions** \"payment-management.payments.view\"
256
256
  * @summary Retrieve the refund
@@ -259,7 +259,7 @@ export declare class RefundsApi extends BaseAPI {
259
259
  * @throws {RequiredError}
260
260
  * @memberof RefundsApi
261
261
  */
262
- getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRefundResponseClass, any, {}, any>>;
262
+ getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRefundResponseClass, any, {}>>;
263
263
  /**
264
264
  * Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
265
265
  * @summary List refunds
@@ -268,5 +268,5 @@ export declare class RefundsApi extends BaseAPI {
268
268
  * @throws {RequiredError}
269
269
  * @memberof RefundsApi
270
270
  */
271
- listRefunds(requestParameters?: RefundsApiListRefundsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRefundsResponseClass, any, {}, any>>;
271
+ listRefunds(requestParameters?: RefundsApiListRefundsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRefundsResponseClass, any, {}>>;
272
272
  }
@@ -103,7 +103,7 @@ var RefundsApiAxiosParamCreator = function (configuration) {
103
103
  createRefund: function (createRefundRequestDto, 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, authorizationValue, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,16 +120,13 @@ var RefundsApiAxiosParamCreator = 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)
124
- // Only Authorization falls back to the configured token; an empty value is never sent.
125
- ];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
126
124
  case 1:
127
125
  // authentication bearer required
128
126
  // http bearer authentication required
129
127
  _a.sent();
130
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
- if (authorizationValue) {
132
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
130
  }
134
131
  localVarHeaderParameter['Content-Type'] = 'application/json';
135
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +153,7 @@ var RefundsApiAxiosParamCreator = function (configuration) {
156
153
  getRefund: function (code, authorization, expand, options) {
157
154
  if (options === void 0) { options = {}; }
158
155
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
156
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
157
  return __generator(this, function (_a) {
161
158
  switch (_a.label) {
162
159
  case 0:
@@ -182,9 +179,8 @@ var RefundsApiAxiosParamCreator = function (configuration) {
182
179
  if (expand !== undefined) {
183
180
  localVarQueryParameter['expand'] = expand;
184
181
  }
185
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
186
- if (authorizationValue) {
187
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
184
  }
189
185
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
186
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -214,7 +210,7 @@ var RefundsApiAxiosParamCreator = function (configuration) {
214
210
  listRefunds: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
215
211
  if (options === void 0) { options = {}; }
216
212
  return __awaiter(_this, void 0, void 0, function () {
217
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
213
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
218
214
  return __generator(this, function (_a) {
219
215
  switch (_a.label) {
220
216
  case 0:
@@ -255,9 +251,8 @@ var RefundsApiAxiosParamCreator = function (configuration) {
255
251
  if (filters !== undefined) {
256
252
  localVarQueryParameter['filters'] = filters;
257
253
  }
258
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
259
- if (authorizationValue) {
260
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
254
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
255
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
261
256
  }
262
257
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
263
258
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -353,7 +353,7 @@ export declare class TenantBankAccountApi extends BaseAPI {
353
353
  * @throws {RequiredError}
354
354
  * @memberof TenantBankAccountApi
355
355
  */
356
- createTenantBankAccount(requestParameters: TenantBankAccountApiCreateTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateTenantBankAccountResponseClass, any, {}, any>>;
356
+ createTenantBankAccount(requestParameters: TenantBankAccountApiCreateTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateTenantBankAccountResponseClass, any, {}>>;
357
357
  /**
358
358
  * Deletes a tenant bank account by code
359
359
  * @summary Delete the tenant bank account
@@ -362,7 +362,7 @@ export declare class TenantBankAccountApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof TenantBankAccountApi
364
364
  */
365
- deleteTenantBankAccount(requestParameters: TenantBankAccountApiDeleteTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
365
+ deleteTenantBankAccount(requestParameters: TenantBankAccountApiDeleteTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
366
366
  /**
367
367
  * Retrieves the details of the tenant bank account that was previously created. Supply the unique tenant bank account code that was returned when you created it and Emil Api will return the corresponding tenant bank account information.
368
368
  * @summary Retrieve the tenant bank account
@@ -371,7 +371,7 @@ export declare class TenantBankAccountApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof TenantBankAccountApi
373
373
  */
374
- getTenantBankAccount(requestParameters: TenantBankAccountApiGetTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTenantBankAccountResponseClass, any, {}, any>>;
374
+ getTenantBankAccount(requestParameters: TenantBankAccountApiGetTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTenantBankAccountResponseClass, any, {}>>;
375
375
  /**
376
376
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
377
377
  * @summary List tenant bank accounts
@@ -380,7 +380,7 @@ export declare class TenantBankAccountApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof TenantBankAccountApi
382
382
  */
383
- listTenantBankAccounts(requestParameters?: TenantBankAccountApiListTenantBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTenantBankAccountResponseClass, any, {}, any>>;
383
+ listTenantBankAccounts(requestParameters?: TenantBankAccountApiListTenantBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTenantBankAccountResponseClass, any, {}>>;
384
384
  /**
385
385
  * Update a tenant bank account by code
386
386
  * @summary Update the tenant bank account
@@ -389,5 +389,5 @@ export declare class TenantBankAccountApi extends BaseAPI {
389
389
  * @throws {RequiredError}
390
390
  * @memberof TenantBankAccountApi
391
391
  */
392
- updateTenantBankAccount(requestParameters: TenantBankAccountApiUpdateTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateTenantBankAccountResponseClass, any, {}, any>>;
392
+ updateTenantBankAccount(requestParameters: TenantBankAccountApiUpdateTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateTenantBankAccountResponseClass, any, {}>>;
393
393
  }
@@ -103,7 +103,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
103
103
  createTenantBankAccount: function (createTenantBankAccountRequestDto, 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, authorizationValue, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,16 +120,13 @@ var TenantBankAccountApiAxiosParamCreator = 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)
124
- // Only Authorization falls back to the configured token; an empty value is never sent.
125
- ];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
126
124
  case 1:
127
125
  // authentication bearer required
128
126
  // http bearer authentication required
129
127
  _a.sent();
130
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
- if (authorizationValue) {
132
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
130
  }
134
131
  localVarHeaderParameter['Content-Type'] = 'application/json';
135
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -155,7 +152,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
155
152
  deleteTenantBankAccount: function (code, authorization, options) {
156
153
  if (options === void 0) { options = {}; }
157
154
  return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
156
  return __generator(this, function (_a) {
160
157
  switch (_a.label) {
161
158
  case 0:
@@ -173,16 +170,13 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
173
170
  localVarQueryParameter = {};
174
171
  // authentication bearer required
175
172
  // http bearer authentication required
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
- ];
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
179
174
  case 1:
180
175
  // authentication bearer required
181
176
  // http bearer authentication required
182
177
  _a.sent();
183
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
- if (authorizationValue) {
185
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
180
  }
187
181
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
188
182
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -207,7 +201,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
207
201
  getTenantBankAccount: function (code, authorization, expand, options) {
208
202
  if (options === void 0) { options = {}; }
209
203
  return __awaiter(_this, void 0, void 0, function () {
210
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
204
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
211
205
  return __generator(this, function (_a) {
212
206
  switch (_a.label) {
213
207
  case 0:
@@ -233,9 +227,8 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
233
227
  if (expand !== undefined) {
234
228
  localVarQueryParameter['expand'] = expand;
235
229
  }
236
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
237
- if (authorizationValue) {
238
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
239
232
  }
240
233
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
241
234
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -265,7 +258,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
265
258
  listTenantBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
266
259
  if (options === void 0) { options = {}; }
267
260
  return __awaiter(_this, void 0, void 0, function () {
268
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
261
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
269
262
  return __generator(this, function (_a) {
270
263
  switch (_a.label) {
271
264
  case 0:
@@ -306,9 +299,8 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
306
299
  if (filters !== undefined) {
307
300
  localVarQueryParameter['filters'] = filters;
308
301
  }
309
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
310
- if (authorizationValue) {
311
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
302
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
312
304
  }
313
305
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
314
306
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -333,7 +325,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
333
325
  updateTenantBankAccount: function (code, updateTenantBankAccountRestRequestDto, authorization, options) {
334
326
  if (options === void 0) { options = {}; }
335
327
  return __awaiter(_this, void 0, void 0, function () {
336
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
328
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
337
329
  return __generator(this, function (_a) {
338
330
  switch (_a.label) {
339
331
  case 0:
@@ -353,16 +345,13 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
353
345
  localVarQueryParameter = {};
354
346
  // authentication bearer required
355
347
  // http bearer authentication required
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
- ];
348
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
359
349
  case 1:
360
350
  // authentication bearer required
361
351
  // http bearer authentication required
362
352
  _a.sent();
363
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
364
- if (authorizationValue) {
365
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
353
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
366
355
  }
367
356
  localVarHeaderParameter['Content-Type'] = 'application/json';
368
357
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -164,7 +164,7 @@ export declare class WebhooksApi extends BaseAPI {
164
164
  * @throws {RequiredError}
165
165
  * @memberof WebhooksApi
166
166
  */
167
- postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
167
+ postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
168
168
  /**
169
169
  * This will processes the webhook from external payment service provider. **Required Permissions** none
170
170
  * @summary Handle the webhook from PSP
@@ -173,5 +173,5 @@ export declare class WebhooksApi extends BaseAPI {
173
173
  * @throws {RequiredError}
174
174
  * @memberof WebhooksApi
175
175
  */
176
- postWebhookWithProductSlug(requestParameters: WebhooksApiPostWebhookWithProductSlugRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
176
+ postWebhookWithProductSlug(requestParameters: WebhooksApiPostWebhookWithProductSlugRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
177
177
  }
package/dist/base.d.ts CHANGED
@@ -22,19 +22,9 @@ export declare const COLLECTION_FORMATS: {
22
22
  tsv: string;
23
23
  pipes: string;
24
24
  };
25
- export interface SessionClass {
26
- sub: string;
27
- username?: string;
28
- email?: string;
29
- tenantSlug?: string;
30
- permissions?: string;
31
- expiresAt?: number;
32
- }
33
25
  export interface LoginClass {
34
26
  accessToken: string;
35
27
  permissions: string;
36
- authMode?: string;
37
- session?: SessionClass;
38
28
  }
39
29
  export interface SwitchWorkspaceRequest {
40
30
  username: string;
@@ -43,8 +33,6 @@ export interface SwitchWorkspaceRequest {
43
33
  export interface SwitchWorkspaceResponseClass {
44
34
  accessToken: string;
45
35
  permissions: string;
46
- authMode?: string;
47
- session?: SessionClass;
48
36
  }
49
37
  export declare enum Environment {
50
38
  Production = "https://apiv2.emil.de",
@@ -75,18 +63,6 @@ export declare class BaseAPI {
75
63
  protected configuration: Configuration | undefined;
76
64
  private tokenData?;
77
65
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
78
- private sessionAccount;
79
- private authBasePath;
80
- private usesSession;
81
- private useSessionAuth;
82
- private useHeaderAuth;
83
- private applyTokenReply;
84
- private sessionHeaders;
85
- private withCurrentAuth;
86
- private canRetryWithToken;
87
- private canResend;
88
- private switchToToken;
89
- private retryWithToken;
90
66
  selectEnvironment(env: Environment): void;
91
67
  selectBasePath(path: string): void;
92
68
  getPermissions(): Array<string>;