@emilgroup/payment-sdk 1.22.1-beta.82 → 1.22.1-beta.83

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