@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
@@ -141,7 +141,7 @@ export declare class PaymentSetupApi extends BaseAPI {
141
141
  * @throws {RequiredError}
142
142
  * @memberof PaymentSetupApi
143
143
  */
144
- completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any, {}>>;
144
+ completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any, {}, any>>;
145
145
  /**
146
146
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information. **Required Permissions** \"payment-management.payments.create\"
147
147
  * @summary Initiate a payment setup
@@ -150,5 +150,5 @@ export declare class PaymentSetupApi extends BaseAPI {
150
150
  * @throws {RequiredError}
151
151
  * @memberof PaymentSetupApi
152
152
  */
153
- initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any, {}>>;
153
+ initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any, {}, any>>;
154
154
  }
@@ -103,7 +103,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
103
103
  completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,13 +120,16 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
+ // Only Authorization falls back to the configured token; an empty value is never sent.
125
+ ];
124
126
  case 1:
125
127
  // authentication bearer required
126
128
  // http bearer authentication required
127
129
  _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
+ if (authorizationValue) {
132
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
133
  }
131
134
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,7 +155,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
152
155
  initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
153
156
  if (options === void 0) { options = {}; }
154
157
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
156
159
  return __generator(this, function (_a) {
157
160
  switch (_a.label) {
158
161
  case 0:
@@ -169,13 +172,16 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
169
172
  localVarQueryParameter = {};
170
173
  // authentication bearer required
171
174
  // http bearer authentication required
172
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
175
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
176
+ // Only Authorization falls back to the configured token; an empty value is never sent.
177
+ ];
173
178
  case 1:
174
179
  // authentication bearer required
175
180
  // http bearer authentication required
176
181
  _a.sent();
177
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
182
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
183
+ if (authorizationValue) {
184
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
179
185
  }
180
186
  localVarHeaderParameter['Content-Type'] = 'application/json';
181
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -315,7 +315,7 @@ export declare class PaymentsApi extends BaseAPI {
315
315
  * @throws {RequiredError}
316
316
  * @memberof PaymentsApi
317
317
  */
318
- createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any, {}>>;
318
+ createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any, {}, any>>;
319
319
  /**
320
320
  * This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
321
321
  * @summary Create the payment
@@ -324,7 +324,7 @@ export declare class PaymentsApi extends BaseAPI {
324
324
  * @throws {RequiredError}
325
325
  * @memberof PaymentsApi
326
326
  */
327
- createPaymentOrder(requestParameters: PaymentsApiCreatePaymentOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any, {}>>;
327
+ createPaymentOrder(requestParameters: PaymentsApiCreatePaymentOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any, {}, any>>;
328
328
  /**
329
329
  * Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
330
330
  * @summary Retrieve the payment
@@ -333,7 +333,7 @@ export declare class PaymentsApi extends BaseAPI {
333
333
  * @throws {RequiredError}
334
334
  * @memberof PaymentsApi
335
335
  */
336
- getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentResponseClass, any, {}>>;
336
+ getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentResponseClass, any, {}, any>>;
337
337
  /**
338
338
  * Returns a list of payments you have previously created. The payments 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\"
339
339
  * @summary List payments
@@ -342,5 +342,5 @@ export declare class PaymentsApi extends BaseAPI {
342
342
  * @throws {RequiredError}
343
343
  * @memberof PaymentsApi
344
344
  */
345
- listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponseClass, any, {}>>;
345
+ listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponseClass, any, {}, any>>;
346
346
  }
@@ -104,7 +104,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
104
104
  createPayment: function (idempotencyKey, createPaymentRequestDto, authorization, options) {
105
105
  if (options === void 0) { options = {}; }
106
106
  return __awaiter(_this, void 0, void 0, function () {
107
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
108
108
  return __generator(this, function (_a) {
109
109
  switch (_a.label) {
110
110
  case 0:
@@ -123,16 +123,20 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
123
123
  localVarQueryParameter = {};
124
124
  // authentication bearer required
125
125
  // http bearer authentication required
126
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
126
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
127
+ // Only Authorization falls back to the configured token; an empty value is never sent.
128
+ ];
127
129
  case 1:
128
130
  // authentication bearer required
129
131
  // http bearer authentication required
130
132
  _a.sent();
131
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
134
+ if (authorizationValue) {
135
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
133
136
  }
134
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
135
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
137
+ idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
138
+ if (idempotencyKeyValue) {
139
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
136
140
  }
137
141
  localVarHeaderParameter['Content-Type'] = 'application/json';
138
142
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -159,7 +163,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
159
163
  createPaymentOrder: function (idempotencyKey, createPaymentOrderDto, authorization, options) {
160
164
  if (options === void 0) { options = {}; }
161
165
  return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
166
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
163
167
  return __generator(this, function (_a) {
164
168
  switch (_a.label) {
165
169
  case 0:
@@ -178,16 +182,20 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
178
182
  localVarQueryParameter = {};
179
183
  // authentication bearer required
180
184
  // http bearer authentication required
181
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
185
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
186
+ // Only Authorization falls back to the configured token; an empty value is never sent.
187
+ ];
182
188
  case 1:
183
189
  // authentication bearer required
184
190
  // http bearer authentication required
185
191
  _a.sent();
186
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
192
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
193
+ if (authorizationValue) {
194
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
188
195
  }
189
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
190
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
196
+ idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
197
+ if (idempotencyKeyValue) {
198
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
191
199
  }
192
200
  localVarHeaderParameter['Content-Type'] = 'application/json';
193
201
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -214,7 +222,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
214
222
  getPayment: function (code, authorization, expand, options) {
215
223
  if (options === void 0) { options = {}; }
216
224
  return __awaiter(_this, void 0, void 0, function () {
217
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
225
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
218
226
  return __generator(this, function (_a) {
219
227
  switch (_a.label) {
220
228
  case 0:
@@ -240,8 +248,9 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
240
248
  if (expand !== undefined) {
241
249
  localVarQueryParameter['expand'] = expand;
242
250
  }
243
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
244
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
251
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
252
+ if (authorizationValue) {
253
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
245
254
  }
246
255
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
247
256
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -271,7 +280,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
271
280
  listPayments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
272
281
  if (options === void 0) { options = {}; }
273
282
  return __awaiter(_this, void 0, void 0, function () {
274
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
283
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
275
284
  return __generator(this, function (_a) {
276
285
  switch (_a.label) {
277
286
  case 0:
@@ -312,8 +321,9 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
312
321
  if (filters !== undefined) {
313
322
  localVarQueryParameter['filters'] = filters;
314
323
  }
315
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
316
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
324
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
325
+ if (authorizationValue) {
326
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
317
327
  }
318
328
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
319
329
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -398,7 +398,7 @@ export declare class PayoutMethodsApi extends BaseAPI {
398
398
  * @throws {RequiredError}
399
399
  * @memberof PayoutMethodsApi
400
400
  */
401
- activatePayoutMethod(requestParameters: PayoutMethodsApiActivatePayoutMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
401
+ activatePayoutMethod(requestParameters: PayoutMethodsApiActivatePayoutMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
402
402
  /**
403
403
  * Creates a new payout method **Required Permissions** \"payment-management.payments.create\"
404
404
  * @summary Create the Payout Method
@@ -407,7 +407,7 @@ export declare class PayoutMethodsApi extends BaseAPI {
407
407
  * @throws {RequiredError}
408
408
  * @memberof PayoutMethodsApi
409
409
  */
410
- createPayoutMethod(requestParameters: PayoutMethodsApiCreatePayoutMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePayoutMethodResponseClass, any, {}>>;
410
+ createPayoutMethod(requestParameters: PayoutMethodsApiCreatePayoutMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePayoutMethodResponseClass, any, {}, any>>;
411
411
  /**
412
412
  * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
413
413
  * @summary Create the Payout Method
@@ -416,7 +416,7 @@ export declare class PayoutMethodsApi extends BaseAPI {
416
416
  * @throws {RequiredError}
417
417
  * @memberof PayoutMethodsApi
418
418
  */
419
- createPayoutMethodByBankAccount(requestParameters: PayoutMethodsApiCreatePayoutMethodByBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePayoutMethodResponseClass, any, {}>>;
419
+ createPayoutMethodByBankAccount(requestParameters: PayoutMethodsApiCreatePayoutMethodByBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePayoutMethodResponseClass, any, {}, any>>;
420
420
  /**
421
421
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
422
422
  * @summary Delete the Payout Method
@@ -425,7 +425,7 @@ export declare class PayoutMethodsApi extends BaseAPI {
425
425
  * @throws {RequiredError}
426
426
  * @memberof PayoutMethodsApi
427
427
  */
428
- deletePayoutMethod(requestParameters: PayoutMethodsApiDeletePayoutMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
428
+ deletePayoutMethod(requestParameters: PayoutMethodsApiDeletePayoutMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
429
429
  /**
430
430
  * Retrieves the details of the Payout Method that was previously created. Supply the unique Payout Method code that was returned when you created it and Emil Api will return the corresponding Payout Method information. **Required Permissions** \"payment-management.payments.view\"
431
431
  * @summary Retrieve the Payout Method
@@ -434,7 +434,7 @@ export declare class PayoutMethodsApi extends BaseAPI {
434
434
  * @throws {RequiredError}
435
435
  * @memberof PayoutMethodsApi
436
436
  */
437
- getPayoutMethod(requestParameters: PayoutMethodsApiGetPayoutMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPayoutMethodResponseClass, any, {}>>;
437
+ getPayoutMethod(requestParameters: PayoutMethodsApiGetPayoutMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPayoutMethodResponseClass, any, {}, any>>;
438
438
  /**
439
439
  * Returns a list of Payout Methods you have previously created. The Payout Methods 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\"
440
440
  * @summary List Payout Methods
@@ -443,5 +443,5 @@ export declare class PayoutMethodsApi extends BaseAPI {
443
443
  * @throws {RequiredError}
444
444
  * @memberof PayoutMethodsApi
445
445
  */
446
- listPayoutMethods(requestParameters?: PayoutMethodsApiListPayoutMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPayoutMethodsResponseClass, any, {}>>;
446
+ listPayoutMethods(requestParameters?: PayoutMethodsApiListPayoutMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPayoutMethodsResponseClass, any, {}, any>>;
447
447
  }
@@ -103,7 +103,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
103
103
  activatePayoutMethod: function (code, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -121,13 +121,16 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
121
121
  localVarQueryParameter = {};
122
122
  // authentication bearer required
123
123
  // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
+ // Only Authorization falls back to the configured token; an empty value is never sent.
126
+ ];
125
127
  case 1:
126
128
  // authentication bearer required
127
129
  // http bearer authentication required
128
130
  _a.sent();
129
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
132
+ if (authorizationValue) {
133
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
131
134
  }
132
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
136
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -151,7 +154,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
151
154
  createPayoutMethod: function (createPayoutMethodRequestDto, authorization, options) {
152
155
  if (options === void 0) { options = {}; }
153
156
  return __awaiter(_this, void 0, void 0, function () {
154
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
157
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
155
158
  return __generator(this, function (_a) {
156
159
  switch (_a.label) {
157
160
  case 0:
@@ -168,13 +171,16 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
168
171
  localVarQueryParameter = {};
169
172
  // authentication bearer required
170
173
  // http bearer authentication required
171
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
175
+ // Only Authorization falls back to the configured token; an empty value is never sent.
176
+ ];
172
177
  case 1:
173
178
  // authentication bearer required
174
179
  // http bearer authentication required
175
180
  _a.sent();
176
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
181
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
182
+ if (authorizationValue) {
183
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
178
184
  }
179
185
  localVarHeaderParameter['Content-Type'] = 'application/json';
180
186
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -201,7 +207,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
201
207
  createPayoutMethodByBankAccount: function (code, createPayoutMethodByBankAccountRequestDto, authorization, options) {
202
208
  if (options === void 0) { options = {}; }
203
209
  return __awaiter(_this, void 0, void 0, function () {
204
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
210
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
205
211
  return __generator(this, function (_a) {
206
212
  switch (_a.label) {
207
213
  case 0:
@@ -221,13 +227,16 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
221
227
  localVarQueryParameter = {};
222
228
  // authentication bearer required
223
229
  // http bearer authentication required
224
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
230
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
231
+ // Only Authorization falls back to the configured token; an empty value is never sent.
232
+ ];
225
233
  case 1:
226
234
  // authentication bearer required
227
235
  // http bearer authentication required
228
236
  _a.sent();
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
238
+ if (authorizationValue) {
239
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
231
240
  }
232
241
  localVarHeaderParameter['Content-Type'] = 'application/json';
233
242
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -253,7 +262,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
253
262
  deletePayoutMethod: function (code, authorization, options) {
254
263
  if (options === void 0) { options = {}; }
255
264
  return __awaiter(_this, void 0, void 0, function () {
256
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
265
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
257
266
  return __generator(this, function (_a) {
258
267
  switch (_a.label) {
259
268
  case 0:
@@ -271,13 +280,16 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
271
280
  localVarQueryParameter = {};
272
281
  // authentication bearer required
273
282
  // http bearer authentication required
274
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
283
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
284
+ // Only Authorization falls back to the configured token; an empty value is never sent.
285
+ ];
275
286
  case 1:
276
287
  // authentication bearer required
277
288
  // http bearer authentication required
278
289
  _a.sent();
279
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
280
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
290
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
291
+ if (authorizationValue) {
292
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
281
293
  }
282
294
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
283
295
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -302,7 +314,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
302
314
  getPayoutMethod: function (code, authorization, expand, options) {
303
315
  if (options === void 0) { options = {}; }
304
316
  return __awaiter(_this, void 0, void 0, function () {
305
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
317
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
306
318
  return __generator(this, function (_a) {
307
319
  switch (_a.label) {
308
320
  case 0:
@@ -328,8 +340,9 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
328
340
  if (expand !== undefined) {
329
341
  localVarQueryParameter['expand'] = expand;
330
342
  }
331
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
332
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
343
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
344
+ if (authorizationValue) {
345
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
333
346
  }
334
347
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
335
348
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -359,7 +372,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
359
372
  listPayoutMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
360
373
  if (options === void 0) { options = {}; }
361
374
  return __awaiter(_this, void 0, void 0, function () {
362
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
375
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
363
376
  return __generator(this, function (_a) {
364
377
  switch (_a.label) {
365
378
  case 0:
@@ -400,8 +413,9 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
400
413
  if (filters !== undefined) {
401
414
  localVarQueryParameter['filters'] = filters;
402
415
  }
403
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
404
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
416
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
417
+ if (authorizationValue) {
418
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
405
419
  }
406
420
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
407
421
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -250,7 +250,7 @@ export declare class PolicyPaymentMethodsApi extends BaseAPI {
250
250
  * @throws {RequiredError}
251
251
  * @memberof PolicyPaymentMethodsApi
252
252
  */
253
- activatePolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
253
+ activatePolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
254
254
  /**
255
255
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
256
256
  * @summary Create the policy payment method
@@ -259,7 +259,7 @@ export declare class PolicyPaymentMethodsApi extends BaseAPI {
259
259
  * @throws {RequiredError}
260
260
  * @memberof PolicyPaymentMethodsApi
261
261
  */
262
- createPolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyPaymentMethodResponseClass, any, {}>>;
262
+ createPolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyPaymentMethodResponseClass, any, {}, any>>;
263
263
  /**
264
264
  * List policy payment methods **Required Permissions** \"payment-management.payments.view\"
265
265
  * @summary Retrieve the policy payment methods
@@ -268,5 +268,5 @@ export declare class PolicyPaymentMethodsApi extends BaseAPI {
268
268
  * @throws {RequiredError}
269
269
  * @memberof PolicyPaymentMethodsApi
270
270
  */
271
- listPolicyPaymentMethods(requestParameters?: PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPolicyPaymentMethodsResponseClass, any, {}>>;
271
+ listPolicyPaymentMethods(requestParameters?: PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPolicyPaymentMethodsResponseClass, any, {}, any>>;
272
272
  }
@@ -104,7 +104,7 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
104
104
  activatePolicyPaymentMethod: function (code, activatePolicyPaymentMethodRequestDto, authorization, options) {
105
105
  if (options === void 0) { options = {}; }
106
106
  return __awaiter(_this, void 0, void 0, function () {
107
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
108
108
  return __generator(this, function (_a) {
109
109
  switch (_a.label) {
110
110
  case 0:
@@ -124,13 +124,16 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
156
159
  createPolicyPaymentMethod: function (createPolicyPaymentMethodRequestDto, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -173,13 +176,16 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
173
176
  localVarQueryParameter = {};
174
177
  // authentication bearer required
175
178
  // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
179
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
180
+ // Only Authorization falls back to the configured token; an empty value is never sent.
181
+ ];
177
182
  case 1:
178
183
  // authentication bearer required
179
184
  // http bearer authentication required
180
185
  _a.sent();
181
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
+ if (authorizationValue) {
188
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
183
189
  }
184
190
  localVarHeaderParameter['Content-Type'] = 'application/json';
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -211,7 +217,7 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
211
217
  listPolicyPaymentMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
212
218
  if (options === void 0) { options = {}; }
213
219
  return __awaiter(_this, void 0, void 0, function () {
214
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
220
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
215
221
  return __generator(this, function (_a) {
216
222
  switch (_a.label) {
217
223
  case 0:
@@ -252,8 +258,9 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
252
258
  if (filters !== undefined) {
253
259
  localVarQueryParameter['filters'] = filters;
254
260
  }
255
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
256
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
261
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
262
+ if (authorizationValue) {
263
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
257
264
  }
258
265
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
259
266
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -250,7 +250,7 @@ export declare class RefundsApi extends BaseAPI {
250
250
  * @throws {RequiredError}
251
251
  * @memberof RefundsApi
252
252
  */
253
- createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRefundResponseClass, any, {}>>;
253
+ createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRefundResponseClass, any, {}, any>>;
254
254
  /**
255
255
  * Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information. **Required Permissions** \"payment-management.payments.view\"
256
256
  * @summary Retrieve the refund
@@ -259,7 +259,7 @@ export declare class RefundsApi extends BaseAPI {
259
259
  * @throws {RequiredError}
260
260
  * @memberof RefundsApi
261
261
  */
262
- getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRefundResponseClass, any, {}>>;
262
+ getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRefundResponseClass, any, {}, any>>;
263
263
  /**
264
264
  * Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
265
265
  * @summary List refunds
@@ -268,5 +268,5 @@ export declare class RefundsApi extends BaseAPI {
268
268
  * @throws {RequiredError}
269
269
  * @memberof RefundsApi
270
270
  */
271
- listRefunds(requestParameters?: RefundsApiListRefundsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRefundsResponseClass, any, {}>>;
271
+ listRefunds(requestParameters?: RefundsApiListRefundsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRefundsResponseClass, any, {}, any>>;
272
272
  }