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

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