@emilgroup/payment-sdk 1.22.1-beta.72 → 1.22.1-beta.74

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 (64) hide show
  1. package/README.md +2 -2
  2. package/api/bank-accounts-api.ts +12 -24
  3. package/api/bank-orders-api.ts +10 -20
  4. package/api/bank-transaction-api.ts +12 -24
  5. package/api/billing-addresses-api.ts +10 -20
  6. package/api/credit-allocation-api.ts +6 -12
  7. package/api/exceeding-credits-api.ts +6 -12
  8. package/api/ibanvalidator-api.ts +2 -4
  9. package/api/payment-methods-api.ts +6 -12
  10. package/api/payment-receipts-api.ts +10 -20
  11. package/api/payment-reminders-api.ts +8 -16
  12. package/api/payment-requests-api.ts +10 -20
  13. package/api/payment-setup-api.ts +4 -8
  14. package/api/payments-api.ts +12 -24
  15. package/api/payout-methods-api.ts +12 -24
  16. package/api/policy-payment-methods-api.ts +6 -12
  17. package/api/refunds-api.ts +6 -12
  18. package/api/tenant-bank-account-api.ts +10 -20
  19. package/base.ts +41 -174
  20. package/common.ts +2 -3
  21. package/configuration.ts +0 -20
  22. package/dist/api/bank-accounts-api.d.ts +6 -6
  23. package/dist/api/bank-accounts-api.js +22 -36
  24. package/dist/api/bank-orders-api.d.ts +5 -5
  25. package/dist/api/bank-orders-api.js +18 -29
  26. package/dist/api/bank-transaction-api.d.ts +6 -6
  27. package/dist/api/bank-transaction-api.js +22 -36
  28. package/dist/api/billing-addresses-api.d.ts +5 -5
  29. package/dist/api/billing-addresses-api.js +19 -32
  30. package/dist/api/credit-allocation-api.d.ts +3 -3
  31. package/dist/api/credit-allocation-api.js +11 -18
  32. package/dist/api/exceeding-credits-api.d.ts +3 -3
  33. package/dist/api/exceeding-credits-api.js +11 -18
  34. package/dist/api/health-check-api.d.ts +1 -1
  35. package/dist/api/ibanvalidator-api.d.ts +1 -1
  36. package/dist/api/ibanvalidator-api.js +4 -7
  37. package/dist/api/payment-methods-api.d.ts +3 -3
  38. package/dist/api/payment-methods-api.js +11 -18
  39. package/dist/api/payment-receipts-api.d.ts +5 -5
  40. package/dist/api/payment-receipts-api.js +18 -29
  41. package/dist/api/payment-reminders-api.d.ts +4 -4
  42. package/dist/api/payment-reminders-api.js +15 -25
  43. package/dist/api/payment-requests-api.d.ts +5 -5
  44. package/dist/api/payment-requests-api.js +18 -29
  45. package/dist/api/payment-setup-api.d.ts +2 -2
  46. package/dist/api/payment-setup-api.js +8 -14
  47. package/dist/api/payments-api.d.ts +4 -4
  48. package/dist/api/payments-api.js +18 -28
  49. package/dist/api/payout-methods-api.d.ts +6 -6
  50. package/dist/api/payout-methods-api.js +22 -36
  51. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  52. package/dist/api/policy-payment-methods-api.js +11 -18
  53. package/dist/api/refunds-api.d.ts +3 -3
  54. package/dist/api/refunds-api.js +10 -15
  55. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  56. package/dist/api/tenant-bank-account-api.js +18 -29
  57. package/dist/api/webhooks-api.d.ts +2 -2
  58. package/dist/base.d.ts +0 -24
  59. package/dist/base.js +59 -178
  60. package/dist/common.d.ts +1 -1
  61. package/dist/common.js +0 -1
  62. package/dist/configuration.d.ts +0 -17
  63. package/dist/configuration.js +0 -2
  64. package/package.json +2 -2
@@ -103,7 +103,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
103
103
  createBankOrder: function (createBankOrderRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, 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 BankOrdersApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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 BankOrdersApiAxiosParamCreator = function (configuration) {
155
152
  deleteBankOrder: 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 BankOrdersApiAxiosParamCreator = 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 BankOrdersApiAxiosParamCreator = function (configuration) {
207
201
  getBankOrder: 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 BankOrdersApiAxiosParamCreator = 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 BankOrdersApiAxiosParamCreator = function (configuration) {
265
258
  listBankOrders: 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 BankOrdersApiAxiosParamCreator = 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 BankOrdersApiAxiosParamCreator = function (configuration) {
333
325
  updateBankOrder: function (code, updateBankOrderRequestDto, 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 BankOrdersApiAxiosParamCreator = 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);
@@ -400,7 +400,7 @@ export declare class BankTransactionApi extends BaseAPI {
400
400
  * @throws {RequiredError}
401
401
  * @memberof BankTransactionApi
402
402
  */
403
- generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateInvoiceMatchSuggestionsResponseClass, any, {}, any>>;
403
+ generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateInvoiceMatchSuggestionsResponseClass, any, {}>>;
404
404
  /**
405
405
  * Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information. **Required Permissions** \"payment-management.bank-accounts.view\"
406
406
  * @summary Retrieve the bank transaction
@@ -409,7 +409,7 @@ export declare class BankTransactionApi extends BaseAPI {
409
409
  * @throws {RequiredError}
410
410
  * @memberof BankTransactionApi
411
411
  */
412
- getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any, {}, any>>;
412
+ getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any, {}>>;
413
413
  /**
414
414
  * This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
415
415
  * @summary Create the bank transactions
@@ -418,7 +418,7 @@ export declare class BankTransactionApi extends BaseAPI {
418
418
  * @throws {RequiredError}
419
419
  * @memberof BankTransactionApi
420
420
  */
421
- importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportBankTransactionsResponseClass, any, {}, any>>;
421
+ importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportBankTransactionsResponseClass, any, {}>>;
422
422
  /**
423
423
  * Links a bank transaction with an invoice **Required Permissions** \"payment-management.bank-accounts.create\"
424
424
  * @summary Link bank transaction
@@ -427,7 +427,7 @@ export declare class BankTransactionApi extends BaseAPI {
427
427
  * @throws {RequiredError}
428
428
  * @memberof BankTransactionApi
429
429
  */
430
- linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionsResponseClass, any, {}, any>>;
430
+ linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionsResponseClass, any, {}>>;
431
431
  /**
432
432
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
433
433
  * @summary List bank transactions
@@ -436,7 +436,7 @@ export declare class BankTransactionApi extends BaseAPI {
436
436
  * @throws {RequiredError}
437
437
  * @memberof BankTransactionApi
438
438
  */
439
- listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any, {}, any>>;
439
+ listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any, {}>>;
440
440
  /**
441
441
  * Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
442
442
  * @summary Unlink bank transaction
@@ -445,5 +445,5 @@ export declare class BankTransactionApi extends BaseAPI {
445
445
  * @throws {RequiredError}
446
446
  * @memberof BankTransactionApi
447
447
  */
448
- unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkBankTransactionsResponseClass, any, {}, any>>;
448
+ unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkBankTransactionsResponseClass, any, {}>>;
449
449
  }
@@ -103,7 +103,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
103
103
  generateInvoiceMatchSuggestion: function (code, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, 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 BankTransactionApiAxiosParamCreator = function (configuration) {
121
121
  localVarQueryParameter = {};
122
122
  // authentication bearer required
123
123
  // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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 : {};
@@ -155,7 +152,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
155
152
  getBankTransaction: function (code, authorization, expand, 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:
@@ -181,9 +178,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
181
178
  if (expand !== undefined) {
182
179
  localVarQueryParameter['expand'] = expand;
183
180
  }
184
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
185
- if (authorizationValue) {
186
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
181
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
183
  }
188
184
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
189
185
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -207,7 +203,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
207
203
  importBankTransactions: function (file, authorization, options) {
208
204
  if (options === void 0) { options = {}; }
209
205
  return __awaiter(_this, void 0, void 0, function () {
210
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
206
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
211
207
  return __generator(this, function (_a) {
212
208
  switch (_a.label) {
213
209
  case 0:
@@ -225,16 +221,13 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
225
221
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
226
222
  // authentication bearer required
227
223
  // http bearer authentication required
228
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
229
- // Only Authorization falls back to the configured token; an empty value is never sent.
230
- ];
224
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
231
225
  case 1:
232
226
  // authentication bearer required
233
227
  // http bearer authentication required
234
228
  _a.sent();
235
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
236
- if (authorizationValue) {
237
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
229
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
231
  }
239
232
  if (file !== undefined) {
240
233
  localVarFormParams.append('file', file);
@@ -263,7 +256,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
263
256
  linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
264
257
  if (options === void 0) { options = {}; }
265
258
  return __awaiter(_this, void 0, void 0, function () {
266
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
259
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
267
260
  return __generator(this, function (_a) {
268
261
  switch (_a.label) {
269
262
  case 0:
@@ -283,16 +276,13 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
283
276
  localVarQueryParameter = {};
284
277
  // authentication bearer required
285
278
  // http bearer authentication required
286
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
287
- // Only Authorization falls back to the configured token; an empty value is never sent.
288
- ];
279
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
289
280
  case 1:
290
281
  // authentication bearer required
291
282
  // http bearer authentication required
292
283
  _a.sent();
293
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
294
- if (authorizationValue) {
295
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
284
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
296
286
  }
297
287
  localVarHeaderParameter['Content-Type'] = 'application/json';
298
288
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -324,7 +314,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
324
314
  listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
325
315
  if (options === void 0) { options = {}; }
326
316
  return __awaiter(_this, void 0, void 0, function () {
327
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
317
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
328
318
  return __generator(this, function (_a) {
329
319
  switch (_a.label) {
330
320
  case 0:
@@ -365,9 +355,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
365
355
  if (filters !== undefined) {
366
356
  localVarQueryParameter['filters'] = filters;
367
357
  }
368
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
369
- if (authorizationValue) {
370
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
358
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
359
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
371
360
  }
372
361
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
373
362
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -391,7 +380,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
391
380
  unlinkBankTransaction: function (code, authorization, options) {
392
381
  if (options === void 0) { options = {}; }
393
382
  return __awaiter(_this, void 0, void 0, function () {
394
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
383
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
395
384
  return __generator(this, function (_a) {
396
385
  switch (_a.label) {
397
386
  case 0:
@@ -409,16 +398,13 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
409
398
  localVarQueryParameter = {};
410
399
  // authentication bearer required
411
400
  // http bearer authentication required
412
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
413
- // Only Authorization falls back to the configured token; an empty value is never sent.
414
- ];
401
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
415
402
  case 1:
416
403
  // authentication bearer required
417
404
  // http bearer authentication required
418
405
  _a.sent();
419
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
420
- if (authorizationValue) {
421
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
406
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
407
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
422
408
  }
423
409
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
424
410
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -344,7 +344,7 @@ export declare class BillingAddressesApi extends BaseAPI {
344
344
  * @throws {RequiredError}
345
345
  * @memberof BillingAddressesApi
346
346
  */
347
- createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBillingAddressResponseClass, any, {}, any>>;
347
+ createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBillingAddressResponseClass, any, {}>>;
348
348
  /**
349
349
  * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
350
350
  * @summary Delete the Billing Address
@@ -353,7 +353,7 @@ export declare class BillingAddressesApi extends BaseAPI {
353
353
  * @throws {RequiredError}
354
354
  * @memberof BillingAddressesApi
355
355
  */
356
- deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
356
+ deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
357
357
  /**
358
358
  * Retrieves the details of the Billing Address that was previously created. Supply the unique Billing Address code that was returned when you created it and Emil Api will return the corresponding Billing Address information. **Required Permissions** \"payment-management.payments.view\"
359
359
  * @summary Retrieve the Billing Address
@@ -362,7 +362,7 @@ export declare class BillingAddressesApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof BillingAddressesApi
364
364
  */
365
- getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBillingAddressResponseClass, any, {}, any>>;
365
+ getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBillingAddressResponseClass, any, {}>>;
366
366
  /**
367
367
  * Returns a list of Billing Addresses you have previously created. The Billing Addresses 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\"
368
368
  * @summary List Billing Addresses
@@ -371,7 +371,7 @@ export declare class BillingAddressesApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof BillingAddressesApi
373
373
  */
374
- listBillingAddresses(requestParameters?: BillingAddressesApiListBillingAddressesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBillingAddressesResponseClass, any, {}, any>>;
374
+ listBillingAddresses(requestParameters?: BillingAddressesApiListBillingAddressesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBillingAddressesResponseClass, any, {}>>;
375
375
  /**
376
376
  * Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
377
377
  * @summary Update the Billing Address
@@ -380,5 +380,5 @@ export declare class BillingAddressesApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof BillingAddressesApi
382
382
  */
383
- updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBillingAddressResponseClass, any, {}, any>>;
383
+ updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBillingAddressResponseClass, any, {}>>;
384
384
  }
@@ -103,7 +103,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
103
103
  createBillingAddress: function (createBillingAddressRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, 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 BillingAddressesApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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 BillingAddressesApiAxiosParamCreator = function (configuration) {
155
152
  deleteBillingAddress: 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 BillingAddressesApiAxiosParamCreator = 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 : {};
@@ -206,7 +200,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
206
200
  getBillingAddress: function (code, authorization, options) {
207
201
  if (options === void 0) { options = {}; }
208
202
  return __awaiter(_this, void 0, void 0, function () {
209
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
203
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
210
204
  return __generator(this, function (_a) {
211
205
  switch (_a.label) {
212
206
  case 0:
@@ -224,16 +218,13 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
224
218
  localVarQueryParameter = {};
225
219
  // authentication bearer required
226
220
  // http bearer authentication required
227
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
228
- // Only Authorization falls back to the configured token; an empty value is never sent.
229
- ];
221
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
230
222
  case 1:
231
223
  // authentication bearer required
232
224
  // http bearer authentication required
233
225
  _a.sent();
234
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
235
- if (authorizationValue) {
236
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
226
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
228
  }
238
229
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
239
230
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -263,7 +254,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
263
254
  listBillingAddresses: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
264
255
  if (options === void 0) { options = {}; }
265
256
  return __awaiter(_this, void 0, void 0, function () {
266
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
257
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
267
258
  return __generator(this, function (_a) {
268
259
  switch (_a.label) {
269
260
  case 0:
@@ -304,9 +295,8 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
304
295
  if (filters !== undefined) {
305
296
  localVarQueryParameter['filters'] = filters;
306
297
  }
307
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
308
- if (authorizationValue) {
309
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
298
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
300
  }
311
301
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
302
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -331,7 +321,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
331
321
  updateBillingAddress: function (code, updateBillingAddressRequestDto, authorization, options) {
332
322
  if (options === void 0) { options = {}; }
333
323
  return __awaiter(_this, void 0, void 0, function () {
334
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
324
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
335
325
  return __generator(this, function (_a) {
336
326
  switch (_a.label) {
337
327
  case 0:
@@ -351,16 +341,13 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
351
341
  localVarQueryParameter = {};
352
342
  // authentication bearer required
353
343
  // http bearer authentication required
354
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
355
- // Only Authorization falls back to the configured token; an empty value is never sent.
356
- ];
344
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
357
345
  case 1:
358
346
  // authentication bearer required
359
347
  // http bearer authentication required
360
348
  _a.sent();
361
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
362
- if (authorizationValue) {
363
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
349
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
350
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
364
351
  }
365
352
  localVarHeaderParameter['Content-Type'] = 'application/json';
366
353
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -241,7 +241,7 @@ export declare class CreditAllocationApi extends BaseAPI {
241
241
  * @throws {RequiredError}
242
242
  * @memberof CreditAllocationApi
243
243
  */
244
- createAllocateCredit(requestParameters: CreditAllocationApiCreateAllocateCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCreditAllocationResponseClass, any, {}, any>>;
244
+ createAllocateCredit(requestParameters: CreditAllocationApiCreateAllocateCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCreditAllocationResponseClass, any, {}>>;
245
245
  /**
246
246
  * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
247
247
  * @summary Retrieve the credit allocation entry
@@ -250,7 +250,7 @@ export declare class CreditAllocationApi extends BaseAPI {
250
250
  * @throws {RequiredError}
251
251
  * @memberof CreditAllocationApi
252
252
  */
253
- getCreditAllocation(requestParameters: CreditAllocationApiGetCreditAllocationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCreditAllocationResponseClass, any, {}, any>>;
253
+ getCreditAllocation(requestParameters: CreditAllocationApiGetCreditAllocationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCreditAllocationResponseClass, any, {}>>;
254
254
  /**
255
255
  * Returns a list of credit allocations you have previously created. The credit allocations 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\"
256
256
  * @summary List credit allocations
@@ -259,5 +259,5 @@ export declare class CreditAllocationApi extends BaseAPI {
259
259
  * @throws {RequiredError}
260
260
  * @memberof CreditAllocationApi
261
261
  */
262
- listCreditAllocations(requestParameters?: CreditAllocationApiListCreditAllocationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCreditAllocationsResponseClass, any, {}, any>>;
262
+ listCreditAllocations(requestParameters?: CreditAllocationApiListCreditAllocationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCreditAllocationsResponseClass, any, {}>>;
263
263
  }