@emilgroup/payment-sdk 1.22.1-beta.8 → 1.22.1-beta.81

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 (119) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +48 -18
  4. package/api/bank-orders-api.ts +48 -23
  5. package/api/bank-transaction-api.ts +181 -26
  6. package/api/billing-addresses-api.ts +40 -15
  7. package/api/credit-allocation-api.ts +24 -9
  8. package/api/exceeding-credits-api.ts +24 -9
  9. package/api/health-check-api.ts +1 -1
  10. package/api/ibanvalidator-api.ts +8 -3
  11. package/api/payment-methods-api.ts +24 -9
  12. package/api/payment-receipts-api.ts +40 -15
  13. package/api/payment-reminders-api.ts +32 -12
  14. package/api/payment-requests-api.ts +52 -27
  15. package/api/payment-setup-api.ts +16 -6
  16. package/api/payments-api.ts +46 -16
  17. package/api/payout-methods-api.ts +48 -18
  18. package/api/policy-payment-methods-api.ts +24 -9
  19. package/api/refunds-api.ts +24 -9
  20. package/api/tenant-bank-account-api.ts +40 -15
  21. package/api/webhooks-api.ts +2 -2
  22. package/base.ts +239 -43
  23. package/common.ts +3 -2
  24. package/configuration.ts +20 -0
  25. package/dist/api/bank-accounts-api.d.ts +6 -6
  26. package/dist/api/bank-accounts-api.js +82 -46
  27. package/dist/api/bank-orders-api.d.ts +13 -13
  28. package/dist/api/bank-orders-api.js +73 -44
  29. package/dist/api/bank-transaction-api.d.ts +80 -14
  30. package/dist/api/bank-transaction-api.js +194 -52
  31. package/dist/api/billing-addresses-api.d.ts +5 -5
  32. package/dist/api/billing-addresses-api.js +71 -39
  33. package/dist/api/credit-allocation-api.d.ts +3 -3
  34. package/dist/api/credit-allocation-api.js +41 -23
  35. package/dist/api/exceeding-credits-api.d.ts +3 -3
  36. package/dist/api/exceeding-credits-api.js +41 -23
  37. package/dist/api/health-check-api.d.ts +1 -1
  38. package/dist/api/health-check-api.js +1 -1
  39. package/dist/api/ibanvalidator-api.d.ts +1 -1
  40. package/dist/api/ibanvalidator-api.js +15 -8
  41. package/dist/api/payment-methods-api.d.ts +3 -3
  42. package/dist/api/payment-methods-api.js +41 -23
  43. package/dist/api/payment-receipts-api.d.ts +5 -5
  44. package/dist/api/payment-receipts-api.js +67 -38
  45. package/dist/api/payment-reminders-api.d.ts +4 -4
  46. package/dist/api/payment-reminders-api.js +56 -31
  47. package/dist/api/payment-requests-api.d.ts +17 -17
  48. package/dist/api/payment-requests-api.js +76 -47
  49. package/dist/api/payment-setup-api.d.ts +2 -2
  50. package/dist/api/payment-setup-api.js +30 -16
  51. package/dist/api/payments-api.d.ts +4 -4
  52. package/dist/api/payments-api.js +62 -34
  53. package/dist/api/payout-methods-api.d.ts +6 -6
  54. package/dist/api/payout-methods-api.js +82 -46
  55. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  56. package/dist/api/policy-payment-methods-api.js +41 -23
  57. package/dist/api/refunds-api.d.ts +3 -3
  58. package/dist/api/refunds-api.js +37 -22
  59. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  60. package/dist/api/tenant-bank-account-api.js +67 -38
  61. package/dist/api/webhooks-api.d.ts +2 -2
  62. package/dist/api/webhooks-api.js +2 -2
  63. package/dist/base.d.ts +26 -0
  64. package/dist/base.js +243 -60
  65. package/dist/common.d.ts +1 -1
  66. package/dist/common.js +1 -0
  67. package/dist/configuration.d.ts +17 -0
  68. package/dist/configuration.js +2 -0
  69. package/dist/models/bank-order-entity.d.ts +1 -0
  70. package/dist/models/bank-order-entity.js +1 -0
  71. package/dist/models/bank-transaction-class.d.ts +7 -0
  72. package/dist/models/bank-transaction-entity.d.ts +7 -0
  73. package/dist/models/bank-transaction-invoice-entity.d.ts +24 -0
  74. package/dist/models/create-bank-order-request-dto.d.ts +3 -2
  75. package/dist/models/create-bank-order-request-dto.js +1 -0
  76. package/dist/models/create-payment-order-dto.d.ts +1 -1
  77. package/dist/models/create-payment-receipt-request-dto.d.ts +3 -3
  78. package/dist/models/create-payment-request-dto.d.ts +1 -1
  79. package/dist/models/exceeding-credit-entity.d.ts +6 -0
  80. package/dist/models/index.d.ts +4 -0
  81. package/dist/models/index.js +4 -0
  82. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +30 -0
  83. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +15 -0
  84. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +25 -0
  85. package/dist/models/link-bank-transaction-payment-requests-response-class.js +15 -0
  86. package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
  87. package/dist/models/payment-class.d.ts +1 -1
  88. package/dist/models/payment-receipt-class.d.ts +13 -1
  89. package/dist/models/payment-receipt-entity.d.ts +139 -0
  90. package/dist/models/payment-receipt-entity.js +20 -0
  91. package/dist/models/payment-request-class.d.ts +19 -0
  92. package/dist/models/payment-request-class.js +1 -0
  93. package/dist/models/payment-request-entity.d.ts +223 -0
  94. package/dist/models/payment-request-entity.js +39 -0
  95. package/dist/models/shared-transaction-class.d.ts +6 -0
  96. package/dist/models/transaction-entity.d.ts +6 -0
  97. package/dist/models/update-bank-order-request-dto.d.ts +2 -2
  98. package/models/bank-order-entity.ts +1 -0
  99. package/models/bank-transaction-class.ts +7 -0
  100. package/models/bank-transaction-entity.ts +7 -0
  101. package/models/bank-transaction-invoice-entity.ts +24 -0
  102. package/models/create-bank-order-request-dto.ts +3 -2
  103. package/models/create-payment-order-dto.ts +1 -1
  104. package/models/create-payment-receipt-request-dto.ts +3 -3
  105. package/models/create-payment-request-dto.ts +1 -1
  106. package/models/exceeding-credit-entity.ts +6 -0
  107. package/models/index.ts +4 -0
  108. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +36 -0
  109. package/models/link-bank-transaction-payment-requests-response-class.ts +31 -0
  110. package/models/payment-class-without-expand-properties.ts +1 -1
  111. package/models/payment-class.ts +1 -1
  112. package/models/payment-receipt-class.ts +13 -1
  113. package/models/payment-receipt-entity.ts +148 -0
  114. package/models/payment-request-class.ts +19 -0
  115. package/models/payment-request-entity.ts +233 -0
  116. package/models/shared-transaction-class.ts +6 -0
  117. package/models/transaction-entity.ts +6 -0
  118. package/models/update-bank-order-request-dto.ts +2 -2
  119. package/package.json +2 -2
@@ -104,9 +104,10 @@ 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;
108
- return __generator(this, function (_a) {
109
- switch (_a.label) {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, idempotencyKeyIsAuth, idempotencyKeyValue, idempotencyKeyKeepEmpty, headersFromBaseOptions;
108
+ var _a, _b;
109
+ return __generator(this, function (_c) {
110
+ switch (_c.label) {
110
111
  case 0:
111
112
  // verify required parameter 'idempotencyKey' is not null or undefined
112
113
  (0, common_1.assertParamExists)('createPayment', 'idempotencyKey', idempotencyKey);
@@ -123,16 +124,25 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
123
124
  localVarQueryParameter = {};
124
125
  // authentication bearer required
125
126
  // http bearer authentication required
126
- 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. Without a session it is sent as before, empty when
129
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
130
+ ];
127
131
  case 1:
128
132
  // authentication bearer required
129
133
  // http bearer authentication required
130
- _a.sent();
131
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ _c.sent();
135
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
136
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
137
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
138
+ if (authorizationValue || authorizationKeepEmpty) {
139
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
133
140
  }
134
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
135
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
141
+ idempotencyKeyIsAuth = 'Idempotency-Key'.toLowerCase() === 'authorization';
142
+ idempotencyKeyValue = idempotencyKeyIsAuth ? (idempotencyKey || baseAccessToken) : idempotencyKey;
143
+ idempotencyKeyKeepEmpty = idempotencyKeyIsAuth && idempotencyKeyValue === '' && !((_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _b === void 0 ? void 0 : _b['X-Emil-Account']);
144
+ if (idempotencyKeyValue || idempotencyKeyKeepEmpty) {
145
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
136
146
  }
137
147
  localVarHeaderParameter['Content-Type'] = 'application/json';
138
148
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -159,9 +169,10 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
159
169
  createPaymentOrder: function (idempotencyKey, createPaymentOrderDto, authorization, options) {
160
170
  if (options === void 0) { options = {}; }
161
171
  return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
163
- return __generator(this, function (_a) {
164
- switch (_a.label) {
172
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, idempotencyKeyIsAuth, idempotencyKeyValue, idempotencyKeyKeepEmpty, headersFromBaseOptions;
173
+ var _a, _b;
174
+ return __generator(this, function (_c) {
175
+ switch (_c.label) {
165
176
  case 0:
166
177
  // verify required parameter 'idempotencyKey' is not null or undefined
167
178
  (0, common_1.assertParamExists)('createPaymentOrder', 'idempotencyKey', idempotencyKey);
@@ -178,16 +189,25 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
178
189
  localVarQueryParameter = {};
179
190
  // authentication bearer required
180
191
  // http bearer authentication required
181
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
192
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
193
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
194
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
195
+ ];
182
196
  case 1:
183
197
  // authentication bearer required
184
198
  // http bearer authentication required
185
- _a.sent();
186
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
199
+ _c.sent();
200
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
201
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
202
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
203
+ if (authorizationValue || authorizationKeepEmpty) {
204
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
188
205
  }
189
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
190
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
206
+ idempotencyKeyIsAuth = 'Idempotency-Key'.toLowerCase() === 'authorization';
207
+ idempotencyKeyValue = idempotencyKeyIsAuth ? (idempotencyKey || baseAccessToken) : idempotencyKey;
208
+ idempotencyKeyKeepEmpty = idempotencyKeyIsAuth && idempotencyKeyValue === '' && !((_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _b === void 0 ? void 0 : _b['X-Emil-Account']);
209
+ if (idempotencyKeyValue || idempotencyKeyKeepEmpty) {
210
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
191
211
  }
192
212
  localVarHeaderParameter['Content-Type'] = 'application/json';
193
213
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -214,9 +234,10 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
214
234
  getPayment: function (code, authorization, expand, options) {
215
235
  if (options === void 0) { options = {}; }
216
236
  return __awaiter(_this, void 0, void 0, function () {
217
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
218
- return __generator(this, function (_a) {
219
- switch (_a.label) {
237
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
238
+ var _a;
239
+ return __generator(this, function (_b) {
240
+ switch (_b.label) {
220
241
  case 0:
221
242
  // verify required parameter 'code' is not null or undefined
222
243
  (0, common_1.assertParamExists)('getPayment', 'code', code);
@@ -236,12 +257,15 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
236
257
  case 1:
237
258
  // authentication bearer required
238
259
  // http bearer authentication required
239
- _a.sent();
260
+ _b.sent();
240
261
  if (expand !== undefined) {
241
262
  localVarQueryParameter['expand'] = expand;
242
263
  }
243
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
244
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
264
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
265
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
266
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
267
+ if (authorizationValue || authorizationKeepEmpty) {
268
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
245
269
  }
246
270
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
247
271
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -271,9 +295,10 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
271
295
  listPayments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
272
296
  if (options === void 0) { options = {}; }
273
297
  return __awaiter(_this, void 0, void 0, function () {
274
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
275
- return __generator(this, function (_a) {
276
- switch (_a.label) {
298
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
299
+ var _a;
300
+ return __generator(this, function (_b) {
301
+ switch (_b.label) {
277
302
  case 0:
278
303
  localVarPath = "/paymentservice/v1/payments";
279
304
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -290,7 +315,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
290
315
  case 1:
291
316
  // authentication bearer required
292
317
  // http bearer authentication required
293
- _a.sent();
318
+ _b.sent();
294
319
  if (pageSize !== undefined) {
295
320
  localVarQueryParameter['pageSize'] = pageSize;
296
321
  }
@@ -312,8 +337,11 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
312
337
  if (filters !== undefined) {
313
338
  localVarQueryParameter['filters'] = filters;
314
339
  }
315
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
316
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
340
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
341
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
342
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
343
+ if (authorizationValue || authorizationKeepEmpty) {
344
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
317
345
  }
318
346
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
319
347
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -516,7 +544,7 @@ var PaymentsApi = /** @class */ (function (_super) {
516
544
  */
517
545
  PaymentsApi.prototype.createPayment = function (requestParameters, options) {
518
546
  var _this = this;
519
- return (0, exports.PaymentsApiFp)(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
547
+ return (0, exports.PaymentsApiFp)(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
520
548
  };
521
549
  /**
522
550
  * This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
@@ -528,7 +556,7 @@ var PaymentsApi = /** @class */ (function (_super) {
528
556
  */
529
557
  PaymentsApi.prototype.createPaymentOrder = function (requestParameters, options) {
530
558
  var _this = this;
531
- return (0, exports.PaymentsApiFp)(this.configuration).createPaymentOrder(requestParameters.idempotencyKey, requestParameters.createPaymentOrderDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
559
+ return (0, exports.PaymentsApiFp)(this.configuration).createPaymentOrder(requestParameters.idempotencyKey, requestParameters.createPaymentOrderDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
532
560
  };
533
561
  /**
534
562
  * 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\"
@@ -540,7 +568,7 @@ var PaymentsApi = /** @class */ (function (_super) {
540
568
  */
541
569
  PaymentsApi.prototype.getPayment = function (requestParameters, options) {
542
570
  var _this = this;
543
- return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
571
+ return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
544
572
  };
545
573
  /**
546
574
  * 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\"
@@ -553,7 +581,7 @@ var PaymentsApi = /** @class */ (function (_super) {
553
581
  PaymentsApi.prototype.listPayments = function (requestParameters, options) {
554
582
  var _this = this;
555
583
  if (requestParameters === void 0) { requestParameters = {}; }
556
- return (0, exports.PaymentsApiFp)(this.configuration).listPayments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
584
+ return (0, exports.PaymentsApiFp)(this.configuration).listPayments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
557
585
  };
558
586
  return PaymentsApi;
559
587
  }(base_1.BaseAPI));
@@ -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,9 +103,10 @@ 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;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
+ var _a;
108
+ return __generator(this, function (_b) {
109
+ switch (_b.label) {
109
110
  case 0:
110
111
  // verify required parameter 'code' is not null or undefined
111
112
  (0, common_1.assertParamExists)('activatePayoutMethod', 'code', code);
@@ -121,13 +122,19 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
121
122
  localVarQueryParameter = {};
122
123
  // authentication bearer required
123
124
  // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
125
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
126
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
127
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
128
+ ];
125
129
  case 1:
126
130
  // authentication bearer required
127
131
  // http bearer authentication required
128
- _a.sent();
129
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
132
+ _b.sent();
133
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
134
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
135
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
136
+ if (authorizationValue || authorizationKeepEmpty) {
137
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
131
138
  }
132
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
140
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -151,9 +158,10 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
151
158
  createPayoutMethod: function (createPayoutMethodRequestDto, authorization, options) {
152
159
  if (options === void 0) { options = {}; }
153
160
  return __awaiter(_this, void 0, void 0, function () {
154
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
155
- return __generator(this, function (_a) {
156
- switch (_a.label) {
161
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
162
+ var _a;
163
+ return __generator(this, function (_b) {
164
+ switch (_b.label) {
157
165
  case 0:
158
166
  // verify required parameter 'createPayoutMethodRequestDto' is not null or undefined
159
167
  (0, common_1.assertParamExists)('createPayoutMethod', 'createPayoutMethodRequestDto', createPayoutMethodRequestDto);
@@ -168,13 +176,19 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
168
176
  localVarQueryParameter = {};
169
177
  // authentication bearer required
170
178
  // http bearer authentication required
171
- 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. Without a session it is sent as before, empty when
181
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
182
+ ];
172
183
  case 1:
173
184
  // authentication bearer required
174
185
  // http bearer authentication required
175
- _a.sent();
176
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ _b.sent();
187
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
188
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
189
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
190
+ if (authorizationValue || authorizationKeepEmpty) {
191
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
178
192
  }
179
193
  localVarHeaderParameter['Content-Type'] = 'application/json';
180
194
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -201,9 +215,10 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
201
215
  createPayoutMethodByBankAccount: function (code, createPayoutMethodByBankAccountRequestDto, authorization, options) {
202
216
  if (options === void 0) { options = {}; }
203
217
  return __awaiter(_this, void 0, void 0, function () {
204
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
- return __generator(this, function (_a) {
206
- switch (_a.label) {
218
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
219
+ var _a;
220
+ return __generator(this, function (_b) {
221
+ switch (_b.label) {
207
222
  case 0:
208
223
  // verify required parameter 'code' is not null or undefined
209
224
  (0, common_1.assertParamExists)('createPayoutMethodByBankAccount', 'code', code);
@@ -221,13 +236,19 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
221
236
  localVarQueryParameter = {};
222
237
  // authentication bearer required
223
238
  // http bearer authentication required
224
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
239
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
240
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
241
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
242
+ ];
225
243
  case 1:
226
244
  // authentication bearer required
227
245
  // http bearer authentication required
228
- _a.sent();
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
246
+ _b.sent();
247
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
248
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
249
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
250
+ if (authorizationValue || authorizationKeepEmpty) {
251
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
231
252
  }
232
253
  localVarHeaderParameter['Content-Type'] = 'application/json';
233
254
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -253,9 +274,10 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
253
274
  deletePayoutMethod: function (code, authorization, options) {
254
275
  if (options === void 0) { options = {}; }
255
276
  return __awaiter(_this, void 0, void 0, function () {
256
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
257
- return __generator(this, function (_a) {
258
- switch (_a.label) {
277
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
278
+ var _a;
279
+ return __generator(this, function (_b) {
280
+ switch (_b.label) {
259
281
  case 0:
260
282
  // verify required parameter 'code' is not null or undefined
261
283
  (0, common_1.assertParamExists)('deletePayoutMethod', 'code', code);
@@ -271,13 +293,19 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
271
293
  localVarQueryParameter = {};
272
294
  // authentication bearer required
273
295
  // http bearer authentication required
274
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
296
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
297
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
298
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
299
+ ];
275
300
  case 1:
276
301
  // authentication bearer required
277
302
  // http bearer authentication required
278
- _a.sent();
279
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
280
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
303
+ _b.sent();
304
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
305
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
306
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
307
+ if (authorizationValue || authorizationKeepEmpty) {
308
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
281
309
  }
282
310
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
283
311
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -302,9 +330,10 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
302
330
  getPayoutMethod: function (code, authorization, expand, options) {
303
331
  if (options === void 0) { options = {}; }
304
332
  return __awaiter(_this, void 0, void 0, function () {
305
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
306
- return __generator(this, function (_a) {
307
- switch (_a.label) {
333
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
334
+ var _a;
335
+ return __generator(this, function (_b) {
336
+ switch (_b.label) {
308
337
  case 0:
309
338
  // verify required parameter 'code' is not null or undefined
310
339
  (0, common_1.assertParamExists)('getPayoutMethod', 'code', code);
@@ -324,12 +353,15 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
324
353
  case 1:
325
354
  // authentication bearer required
326
355
  // http bearer authentication required
327
- _a.sent();
356
+ _b.sent();
328
357
  if (expand !== undefined) {
329
358
  localVarQueryParameter['expand'] = expand;
330
359
  }
331
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
332
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
360
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
361
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
362
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
363
+ if (authorizationValue || authorizationKeepEmpty) {
364
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
333
365
  }
334
366
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
335
367
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -359,9 +391,10 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
359
391
  listPayoutMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
360
392
  if (options === void 0) { options = {}; }
361
393
  return __awaiter(_this, void 0, void 0, function () {
362
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
363
- return __generator(this, function (_a) {
364
- switch (_a.label) {
394
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
395
+ var _a;
396
+ return __generator(this, function (_b) {
397
+ switch (_b.label) {
365
398
  case 0:
366
399
  localVarPath = "/paymentservice/v1/payout-methods";
367
400
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -378,7 +411,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
378
411
  case 1:
379
412
  // authentication bearer required
380
413
  // http bearer authentication required
381
- _a.sent();
414
+ _b.sent();
382
415
  if (pageSize !== undefined) {
383
416
  localVarQueryParameter['pageSize'] = pageSize;
384
417
  }
@@ -400,8 +433,11 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
400
433
  if (filters !== undefined) {
401
434
  localVarQueryParameter['filters'] = filters;
402
435
  }
403
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
404
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
436
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
437
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
438
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
439
+ if (authorizationValue || authorizationKeepEmpty) {
440
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
405
441
  }
406
442
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
407
443
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -666,7 +702,7 @@ var PayoutMethodsApi = /** @class */ (function (_super) {
666
702
  */
667
703
  PayoutMethodsApi.prototype.activatePayoutMethod = function (requestParameters, options) {
668
704
  var _this = this;
669
- return (0, exports.PayoutMethodsApiFp)(this.configuration).activatePayoutMethod(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
705
+ return (0, exports.PayoutMethodsApiFp)(this.configuration).activatePayoutMethod(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
670
706
  };
671
707
  /**
672
708
  * Creates a new payout method **Required Permissions** \"payment-management.payments.create\"
@@ -678,7 +714,7 @@ var PayoutMethodsApi = /** @class */ (function (_super) {
678
714
  */
679
715
  PayoutMethodsApi.prototype.createPayoutMethod = function (requestParameters, options) {
680
716
  var _this = this;
681
- return (0, exports.PayoutMethodsApiFp)(this.configuration).createPayoutMethod(requestParameters.createPayoutMethodRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
717
+ return (0, exports.PayoutMethodsApiFp)(this.configuration).createPayoutMethod(requestParameters.createPayoutMethodRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
682
718
  };
683
719
  /**
684
720
  * Creates a new payout method fromm existing bank account **Required Permissions** \"payment-management.payments.create\"
@@ -690,7 +726,7 @@ var PayoutMethodsApi = /** @class */ (function (_super) {
690
726
  */
691
727
  PayoutMethodsApi.prototype.createPayoutMethodByBankAccount = function (requestParameters, options) {
692
728
  var _this = this;
693
- return (0, exports.PayoutMethodsApiFp)(this.configuration).createPayoutMethodByBankAccount(requestParameters.code, requestParameters.createPayoutMethodByBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
729
+ return (0, exports.PayoutMethodsApiFp)(this.configuration).createPayoutMethodByBankAccount(requestParameters.code, requestParameters.createPayoutMethodByBankAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
694
730
  };
695
731
  /**
696
732
  * Deletes a payout method by its code **Required Permissions** \"payment-management.payments.delete\"
@@ -702,7 +738,7 @@ var PayoutMethodsApi = /** @class */ (function (_super) {
702
738
  */
703
739
  PayoutMethodsApi.prototype.deletePayoutMethod = function (requestParameters, options) {
704
740
  var _this = this;
705
- return (0, exports.PayoutMethodsApiFp)(this.configuration).deletePayoutMethod(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
741
+ return (0, exports.PayoutMethodsApiFp)(this.configuration).deletePayoutMethod(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
706
742
  };
707
743
  /**
708
744
  * 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\"
@@ -714,7 +750,7 @@ var PayoutMethodsApi = /** @class */ (function (_super) {
714
750
  */
715
751
  PayoutMethodsApi.prototype.getPayoutMethod = function (requestParameters, options) {
716
752
  var _this = this;
717
- return (0, exports.PayoutMethodsApiFp)(this.configuration).getPayoutMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
753
+ return (0, exports.PayoutMethodsApiFp)(this.configuration).getPayoutMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
718
754
  };
719
755
  /**
720
756
  * 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\"
@@ -727,7 +763,7 @@ var PayoutMethodsApi = /** @class */ (function (_super) {
727
763
  PayoutMethodsApi.prototype.listPayoutMethods = function (requestParameters, options) {
728
764
  var _this = this;
729
765
  if (requestParameters === void 0) { requestParameters = {}; }
730
- return (0, exports.PayoutMethodsApiFp)(this.configuration).listPayoutMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
766
+ return (0, exports.PayoutMethodsApiFp)(this.configuration).listPayoutMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
731
767
  };
732
768
  return PayoutMethodsApi;
733
769
  }(base_1.BaseAPI));
@@ -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
  }