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

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 +8 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +48 -18
  4. package/api/bank-orders-api.ts +40 -15
  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 +240 -6
  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 +5 -5
  28. package/dist/api/bank-orders-api.js +67 -38
  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 +116 -2
  36. package/dist/api/exceeding-credits-api.js +226 -15
  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-transaction-class.d.ts +7 -0
  70. package/dist/models/bank-transaction-entity.d.ts +7 -0
  71. package/dist/models/bank-transaction-invoice-entity.d.ts +24 -0
  72. package/dist/models/create-exceeding-credit-request-dto.d.ts +48 -0
  73. package/dist/models/create-exceeding-credit-request-dto.js +15 -0
  74. package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
  75. package/dist/models/create-exceeding-credit-response-class.js +15 -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/create-payment-request-request-dto.d.ts +6 -0
  80. package/dist/models/create-return-premium-credits-request-dto.d.ts +24 -0
  81. package/dist/models/create-return-premium-credits-request-dto.js +15 -0
  82. package/dist/models/create-return-premium-credits-response-class.d.ts +25 -0
  83. package/dist/models/create-return-premium-credits-response-class.js +15 -0
  84. package/dist/models/credit-allocation-class.d.ts +6 -0
  85. package/dist/models/credit-allocation-entity.d.ts +6 -0
  86. package/dist/models/exceeding-credit-class.d.ts +25 -2
  87. package/dist/models/exceeding-credit-class.js +5 -1
  88. package/dist/models/exceeding-credit-entity.d.ts +31 -2
  89. package/dist/models/exceeding-credit-entity.js +5 -1
  90. package/dist/models/index.d.ts +8 -0
  91. package/dist/models/index.js +8 -0
  92. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +30 -0
  93. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +15 -0
  94. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +25 -0
  95. package/dist/models/link-bank-transaction-payment-requests-response-class.js +15 -0
  96. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  97. package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
  98. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  99. package/dist/models/list-payment-requests-response-class.d.ts +6 -18
  100. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  101. package/dist/models/list-refunds-response-class.d.ts +6 -18
  102. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  103. package/dist/models/payment-class.d.ts +2 -2
  104. package/dist/models/payment-entity.d.ts +1 -1
  105. package/dist/models/payment-receipt-class.d.ts +13 -1
  106. package/dist/models/payment-receipt-entity.d.ts +139 -0
  107. package/dist/models/payment-receipt-entity.js +20 -0
  108. package/dist/models/payment-request-class.d.ts +13 -6
  109. package/dist/models/payment-request-class.js +1 -0
  110. package/dist/models/payment-request-entity.d.ts +223 -0
  111. package/dist/models/payment-request-entity.js +39 -0
  112. package/dist/models/shared-transaction-class.d.ts +6 -0
  113. package/dist/models/transaction-entity.d.ts +6 -0
  114. package/models/bank-transaction-class.ts +7 -0
  115. package/models/bank-transaction-entity.ts +7 -0
  116. package/models/bank-transaction-invoice-entity.ts +24 -0
  117. package/models/create-exceeding-credit-request-dto.ts +54 -0
  118. package/models/create-exceeding-credit-response-class.ts +31 -0
  119. package/models/create-payment-order-dto.ts +1 -1
  120. package/models/create-payment-receipt-request-dto.ts +3 -3
  121. package/models/create-payment-request-dto.ts +1 -1
  122. package/models/create-payment-request-request-dto.ts +6 -0
  123. package/models/create-return-premium-credits-request-dto.ts +30 -0
  124. package/models/create-return-premium-credits-response-class.ts +31 -0
  125. package/models/credit-allocation-class.ts +6 -0
  126. package/models/credit-allocation-entity.ts +6 -0
  127. package/models/exceeding-credit-class.ts +26 -2
  128. package/models/exceeding-credit-entity.ts +32 -2
  129. package/models/index.ts +8 -0
  130. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +36 -0
  131. package/models/link-bank-transaction-payment-requests-response-class.ts +31 -0
  132. package/models/list-billing-addresses-response-class.ts +9 -9
  133. package/models/list-exceeding-credits-response-class.ts +6 -18
  134. package/models/list-payment-receipts-response-class.ts +9 -9
  135. package/models/list-payment-requests-response-class.ts +6 -18
  136. package/models/list-payout-methods-response-class.ts +9 -9
  137. package/models/list-refunds-response-class.ts +6 -18
  138. package/models/payment-class-without-expand-properties.ts +2 -2
  139. package/models/payment-class.ts +2 -2
  140. package/models/payment-entity.ts +1 -1
  141. package/models/payment-receipt-class.ts +13 -1
  142. package/models/payment-receipt-entity.ts +148 -0
  143. package/models/payment-request-class.ts +13 -6
  144. package/models/payment-request-entity.ts +233 -0
  145. package/models/shared-transaction-class.ts +6 -0
  146. package/models/transaction-entity.ts +6 -0
  147. package/package.json +2 -2
@@ -103,9 +103,10 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
103
103
  createPaymentRequest: function (createPaymentRequestRequestDto, 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 'createPaymentRequestRequestDto' is not null or undefined
111
112
  (0, common_1.assertParamExists)('createPaymentRequest', 'createPaymentRequestRequestDto', createPaymentRequestRequestDto);
@@ -120,13 +121,19 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
120
121
  localVarQueryParameter = {};
121
122
  // authentication bearer required
122
123
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
127
+ ];
124
128
  case 1:
125
129
  // authentication bearer required
126
130
  // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ _b.sent();
132
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
135
+ if (authorizationValue || authorizationKeepEmpty) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
137
  }
131
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,9 +159,10 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
152
159
  deletePaymentRequest: function (code, authorization, options) {
153
160
  if (options === void 0) { options = {}; }
154
161
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
163
+ var _a;
164
+ return __generator(this, function (_b) {
165
+ switch (_b.label) {
158
166
  case 0:
159
167
  // verify required parameter 'code' is not null or undefined
160
168
  (0, common_1.assertParamExists)('deletePaymentRequest', 'code', code);
@@ -170,13 +178,19 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
170
178
  localVarQueryParameter = {};
171
179
  // authentication bearer required
172
180
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
182
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
183
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
184
+ ];
174
185
  case 1:
175
186
  // authentication bearer required
176
187
  // http bearer authentication required
177
- _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
+ _b.sent();
189
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
190
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
191
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
192
+ if (authorizationValue || authorizationKeepEmpty) {
193
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
194
  }
181
195
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
196
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -201,9 +215,10 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
201
215
  getPaymentRequest: function (code, expand, 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)('getPaymentRequest', 'code', code);
@@ -225,12 +240,15 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
225
240
  case 1:
226
241
  // authentication bearer required
227
242
  // http bearer authentication required
228
- _a.sent();
243
+ _b.sent();
229
244
  if (expand !== undefined) {
230
245
  localVarQueryParameter['expand'] = expand;
231
246
  }
232
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
234
252
  }
235
253
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
254
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -249,20 +267,21 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
249
267
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
268
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
251
269
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
252
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
253
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, bankOrderNumber</i>
270
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
271
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode, bankOrderNumber</i>
254
272
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</i>
255
273
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: paymentReceipts<i>
256
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
274
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
257
275
  * @param {*} [options] Override http request option.
258
276
  * @throws {RequiredError}
259
277
  */
260
278
  listPaymentRequests: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
261
279
  if (options === void 0) { options = {}; }
262
280
  return __awaiter(_this, void 0, void 0, function () {
263
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
264
- return __generator(this, function (_a) {
265
- switch (_a.label) {
281
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
282
+ var _a;
283
+ return __generator(this, function (_b) {
284
+ switch (_b.label) {
266
285
  case 0:
267
286
  localVarPath = "/paymentservice/v1/payment-requests";
268
287
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -279,7 +298,7 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
279
298
  case 1:
280
299
  // authentication bearer required
281
300
  // http bearer authentication required
282
- _a.sent();
301
+ _b.sent();
283
302
  if (pageSize !== undefined) {
284
303
  localVarQueryParameter['pageSize'] = pageSize;
285
304
  }
@@ -301,8 +320,11 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
301
320
  if (filters !== undefined) {
302
321
  localVarQueryParameter['filters'] = filters;
303
322
  }
304
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
323
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
324
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
325
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
326
+ if (authorizationValue || authorizationKeepEmpty) {
327
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
306
328
  }
307
329
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
308
330
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -327,9 +349,10 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
327
349
  updatePaymentRequest: function (code, updatePaymentRequestRequestDto, authorization, options) {
328
350
  if (options === void 0) { options = {}; }
329
351
  return __awaiter(_this, void 0, void 0, function () {
330
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
331
- return __generator(this, function (_a) {
332
- switch (_a.label) {
352
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
353
+ var _a;
354
+ return __generator(this, function (_b) {
355
+ switch (_b.label) {
333
356
  case 0:
334
357
  // verify required parameter 'code' is not null or undefined
335
358
  (0, common_1.assertParamExists)('updatePaymentRequest', 'code', code);
@@ -347,13 +370,19 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
347
370
  localVarQueryParameter = {};
348
371
  // authentication bearer required
349
372
  // http bearer authentication required
350
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
373
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
374
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
375
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
376
+ ];
351
377
  case 1:
352
378
  // authentication bearer required
353
379
  // http bearer authentication required
354
- _a.sent();
355
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
356
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
380
+ _b.sent();
381
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
382
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
383
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
384
+ if (authorizationValue || authorizationKeepEmpty) {
385
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
357
386
  }
358
387
  localVarHeaderParameter['Content-Type'] = 'application/json';
359
388
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -448,11 +477,11 @@ var PaymentRequestsApiFp = function (configuration) {
448
477
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
449
478
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
450
479
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
451
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
452
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, bankOrderNumber</i>
480
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
481
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode, bankOrderNumber</i>
453
482
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</i>
454
483
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: paymentReceipts<i>
455
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
484
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
456
485
  * @param {*} [options] Override http request option.
457
486
  * @throws {RequiredError}
458
487
  */
@@ -541,11 +570,11 @@ var PaymentRequestsApiFactory = function (configuration, basePath, axios) {
541
570
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
542
571
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
543
572
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
544
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
545
- * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, bankOrderNumber</i>
573
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
574
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode, bankOrderNumber</i>
546
575
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</i>
547
576
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: paymentReceipts<i>
548
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
577
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
549
578
  * @param {*} [options] Override http request option.
550
579
  * @throws {RequiredError}
551
580
  */
@@ -588,7 +617,7 @@ var PaymentRequestsApi = /** @class */ (function (_super) {
588
617
  */
589
618
  PaymentRequestsApi.prototype.createPaymentRequest = function (requestParameters, options) {
590
619
  var _this = this;
591
- return (0, exports.PaymentRequestsApiFp)(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
620
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
592
621
  };
593
622
  /**
594
623
  * This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
@@ -600,7 +629,7 @@ var PaymentRequestsApi = /** @class */ (function (_super) {
600
629
  */
601
630
  PaymentRequestsApi.prototype.deletePaymentRequest = function (requestParameters, options) {
602
631
  var _this = this;
603
- return (0, exports.PaymentRequestsApiFp)(this.configuration).deletePaymentRequest(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
632
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).deletePaymentRequest(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
604
633
  };
605
634
  /**
606
635
  * This will get payment request. **Required Permissions** \"payment-management.payments.view\"
@@ -612,7 +641,7 @@ var PaymentRequestsApi = /** @class */ (function (_super) {
612
641
  */
613
642
  PaymentRequestsApi.prototype.getPaymentRequest = function (requestParameters, options) {
614
643
  var _this = this;
615
- return (0, exports.PaymentRequestsApiFp)(this.configuration).getPaymentRequest(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
644
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).getPaymentRequest(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
616
645
  };
617
646
  /**
618
647
  * Retrieves a list of paymentrequests. **Required Permissions** \"payment-management.payments.view\"
@@ -625,7 +654,7 @@ var PaymentRequestsApi = /** @class */ (function (_super) {
625
654
  PaymentRequestsApi.prototype.listPaymentRequests = function (requestParameters, options) {
626
655
  var _this = this;
627
656
  if (requestParameters === void 0) { requestParameters = {}; }
628
- return (0, exports.PaymentRequestsApiFp)(this.configuration).listPaymentRequests(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); });
657
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).listPaymentRequests(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); });
629
658
  };
630
659
  /**
631
660
  * This will update payment request. **Required Permissions** \"payment-management.payments.update\"
@@ -637,7 +666,7 @@ var PaymentRequestsApi = /** @class */ (function (_super) {
637
666
  */
638
667
  PaymentRequestsApi.prototype.updatePaymentRequest = function (requestParameters, options) {
639
668
  var _this = this;
640
- return (0, exports.PaymentRequestsApiFp)(this.configuration).updatePaymentRequest(requestParameters.code, requestParameters.updatePaymentRequestRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
669
+ return (0, exports.PaymentRequestsApiFp)(this.configuration).updatePaymentRequest(requestParameters.code, requestParameters.updatePaymentRequestRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
641
670
  };
642
671
  return PaymentRequestsApi;
643
672
  }(base_1.BaseAPI));
@@ -141,7 +141,7 @@ export declare class PaymentSetupApi extends BaseAPI {
141
141
  * @throws {RequiredError}
142
142
  * @memberof PaymentSetupApi
143
143
  */
144
- completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any, {}>>;
144
+ completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletePaymentSetupResponseClass, any, {}, any>>;
145
145
  /**
146
146
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information. **Required Permissions** \"payment-management.payments.create\"
147
147
  * @summary Initiate a payment setup
@@ -150,5 +150,5 @@ export declare class PaymentSetupApi extends BaseAPI {
150
150
  * @throws {RequiredError}
151
151
  * @memberof PaymentSetupApi
152
152
  */
153
- initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any, {}>>;
153
+ initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiatePaymentSetupResponseClass, any, {}, any>>;
154
154
  }
@@ -103,9 +103,10 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
103
103
  completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
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 'completePaymentSetupRequestDto' is not null or undefined
111
112
  (0, common_1.assertParamExists)('completePaymentSetup', 'completePaymentSetupRequestDto', completePaymentSetupRequestDto);
@@ -120,13 +121,19 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
120
121
  localVarQueryParameter = {};
121
122
  // authentication bearer required
122
123
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
127
+ ];
124
128
  case 1:
125
129
  // authentication bearer required
126
130
  // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ _b.sent();
132
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
135
+ if (authorizationValue || authorizationKeepEmpty) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
137
  }
131
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,9 +159,10 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
152
159
  initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
153
160
  if (options === void 0) { options = {}; }
154
161
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
163
+ var _a;
164
+ return __generator(this, function (_b) {
165
+ switch (_b.label) {
158
166
  case 0:
159
167
  // verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
160
168
  (0, common_1.assertParamExists)('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto);
@@ -169,13 +177,19 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
169
177
  localVarQueryParameter = {};
170
178
  // authentication bearer required
171
179
  // http bearer authentication required
172
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
182
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
183
+ ];
173
184
  case 1:
174
185
  // authentication bearer required
175
186
  // http bearer authentication required
176
- _a.sent();
177
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ _b.sent();
188
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
189
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
190
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
191
+ if (authorizationValue || authorizationKeepEmpty) {
192
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
179
193
  }
180
194
  localVarHeaderParameter['Content-Type'] = 'application/json';
181
195
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -298,7 +312,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
298
312
  */
299
313
  PaymentSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
300
314
  var _this = this;
301
- return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
315
+ return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
302
316
  };
303
317
  /**
304
318
  * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information. **Required Permissions** \"payment-management.payments.create\"
@@ -310,7 +324,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
310
324
  */
311
325
  PaymentSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
312
326
  var _this = this;
313
- return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
327
+ return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
314
328
  };
315
329
  return PaymentSetupApi;
316
330
  }(base_1.BaseAPI));
@@ -315,7 +315,7 @@ export declare class PaymentsApi extends BaseAPI {
315
315
  * @throws {RequiredError}
316
316
  * @memberof PaymentsApi
317
317
  */
318
- createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any, {}>>;
318
+ createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any, {}, any>>;
319
319
  /**
320
320
  * This will create a payment order for a specified invoice. **Required Permissions** \"payment-management.payments.create\"
321
321
  * @summary Create the payment
@@ -324,7 +324,7 @@ export declare class PaymentsApi extends BaseAPI {
324
324
  * @throws {RequiredError}
325
325
  * @memberof PaymentsApi
326
326
  */
327
- createPaymentOrder(requestParameters: PaymentsApiCreatePaymentOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any, {}>>;
327
+ createPaymentOrder(requestParameters: PaymentsApiCreatePaymentOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any, {}, any>>;
328
328
  /**
329
329
  * Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information. **Required Permissions** \"payment-management.payments.view\"
330
330
  * @summary Retrieve the payment
@@ -333,7 +333,7 @@ export declare class PaymentsApi extends BaseAPI {
333
333
  * @throws {RequiredError}
334
334
  * @memberof PaymentsApi
335
335
  */
336
- getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentResponseClass, any, {}>>;
336
+ getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentResponseClass, any, {}, any>>;
337
337
  /**
338
338
  * Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
339
339
  * @summary List payments
@@ -342,5 +342,5 @@ export declare class PaymentsApi extends BaseAPI {
342
342
  * @throws {RequiredError}
343
343
  * @memberof PaymentsApi
344
344
  */
345
- listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponseClass, any, {}>>;
345
+ listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponseClass, any, {}, any>>;
346
346
  }