@emilgroup/payment-sdk-node 1.21.1-beta.12 → 1.21.1-beta.120

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 (177) hide show
  1. package/.openapi-generator/FILES +31 -1
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +55 -13
  4. package/api/bank-orders-api.ts +695 -0
  5. package/api/bank-transaction-api.ts +59 -48
  6. package/api/exceeding-credits-api.ts +353 -0
  7. package/api/payment-methods-api.ts +59 -17
  8. package/api/payment-reminders-api.ts +55 -13
  9. package/api/payments-api.ts +180 -17
  10. package/api/policy-payment-methods-api.ts +357 -0
  11. package/api/refunds-api.ts +45 -17
  12. package/api/tenant-bank-account-api.ts +45 -17
  13. package/api.ts +6 -0
  14. package/base.ts +45 -3
  15. package/dist/api/bank-accounts-api.d.ts +35 -8
  16. package/dist/api/bank-accounts-api.js +48 -63
  17. package/dist/api/bank-orders-api.d.ts +393 -0
  18. package/dist/api/bank-orders-api.js +646 -0
  19. package/dist/api/bank-transaction-api.d.ts +39 -31
  20. package/dist/api/bank-transaction-api.js +54 -82
  21. package/dist/api/exceeding-credits-api.d.ts +206 -0
  22. package/dist/api/exceeding-credits-api.js +356 -0
  23. package/dist/api/health-check-api.js +5 -18
  24. package/dist/api/payment-methods-api.d.ts +39 -12
  25. package/dist/api/payment-methods-api.js +42 -45
  26. package/dist/api/payment-reminders-api.d.ts +35 -8
  27. package/dist/api/payment-reminders-api.js +42 -49
  28. package/dist/api/payment-setup-api.js +8 -25
  29. package/dist/api/payments-api.d.ts +104 -12
  30. package/dist/api/payments-api.js +143 -45
  31. package/dist/api/policy-payment-methods-api.d.ts +207 -0
  32. package/dist/api/policy-payment-methods-api.js +357 -0
  33. package/dist/api/refunds-api.d.ts +28 -10
  34. package/dist/api/refunds-api.js +34 -43
  35. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  36. package/dist/api/tenant-bank-account-api.js +40 -57
  37. package/dist/api/webhooks-api.js +5 -18
  38. package/dist/api.d.ts +3 -0
  39. package/dist/api.js +3 -0
  40. package/dist/base.d.ts +11 -2
  41. package/dist/base.js +56 -27
  42. package/dist/common.d.ts +1 -1
  43. package/dist/common.js +2 -2
  44. package/dist/models/bank-order-class.d.ts +122 -0
  45. package/dist/models/bank-order-xml-file-class.d.ts +72 -0
  46. package/dist/models/bank-order-xml-file-class.js +15 -0
  47. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
  48. package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
  49. package/dist/models/bank-transaction-class.d.ts +22 -22
  50. package/dist/models/bank-transaction-class.js +5 -0
  51. package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
  52. package/dist/models/bank-transaction-invoice-class.js +15 -0
  53. package/dist/models/bank-transfer-dto.d.ts +25 -0
  54. package/dist/models/bank-transfer-dto.js +15 -0
  55. package/dist/models/billing-address-dto.d.ts +54 -0
  56. package/dist/models/billing-address-dto.js +15 -0
  57. package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
  58. package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
  59. package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
  60. package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
  61. package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
  62. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
  63. package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
  64. package/dist/models/create-bank-order-request-dto.d.ts +74 -0
  65. package/dist/models/create-bank-order-request-dto.js +28 -0
  66. package/dist/models/create-bank-order-response-class.d.ts +25 -0
  67. package/dist/models/create-bank-order-response-class.js +15 -0
  68. package/dist/models/create-payment-order-dto.d.ts +48 -0
  69. package/dist/models/create-payment-order-dto.js +15 -0
  70. package/dist/models/create-payment-order-request-dto.d.ts +48 -0
  71. package/dist/models/create-payment-order-request-dto.js +15 -0
  72. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  73. package/dist/models/create-payment-request-dto.d.ts +7 -1
  74. package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
  75. package/dist/models/create-policy-payment-method-request-dto.js +15 -0
  76. package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
  77. package/dist/models/create-policy-payment-method-response-class.js +15 -0
  78. package/dist/models/create-psp-payment-method-request-dto.d.ts +29 -1
  79. package/dist/models/create-psp-payment-method-request-dto.js +3 -1
  80. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  81. package/dist/models/eis-sepa-debit-dto.d.ts +55 -0
  82. package/dist/models/eis-sepa-debit-dto.js +15 -0
  83. package/dist/models/exceeding-credit-class.d.ts +116 -0
  84. package/dist/models/exceeding-credit-class.js +29 -0
  85. package/dist/models/financial-account-class.d.ts +111 -0
  86. package/dist/models/financial-account-class.js +24 -0
  87. package/dist/models/get-bank-order-response-class.d.ts +25 -0
  88. package/dist/models/get-bank-order-response-class.js +15 -0
  89. package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
  90. package/dist/models/get-exceeding-credit-response-class.js +15 -0
  91. package/dist/models/index.d.ts +28 -1
  92. package/dist/models/index.js +28 -1
  93. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  94. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  95. package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
  96. package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
  97. package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
  98. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  99. package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
  100. package/dist/models/invoice-allocation-dto.js +15 -0
  101. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
  102. package/dist/models/list-bank-orders-response-class.d.ts +31 -0
  103. package/dist/models/list-bank-orders-response-class.js +15 -0
  104. package/dist/models/list-exceeding-credits-response-class.d.ts +31 -0
  105. package/dist/models/list-exceeding-credits-response-class.js +15 -0
  106. package/dist/models/list-policy-payment-methods-response-class.d.ts +31 -0
  107. package/dist/models/list-policy-payment-methods-response-class.js +15 -0
  108. package/dist/models/mandate-dto.d.ts +43 -0
  109. package/dist/models/mandate-dto.js +15 -0
  110. package/dist/models/mandate-hash-data-dto.d.ts +42 -0
  111. package/dist/models/mandate-hash-data-dto.js +15 -0
  112. package/dist/models/mandate-reference-class.d.ts +90 -0
  113. package/dist/models/mandate-reference-class.js +15 -0
  114. package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
  115. package/dist/models/payment-class.d.ts +7 -1
  116. package/dist/models/payment-method-class.d.ts +6 -0
  117. package/dist/models/payment-reminder-class.d.ts +7 -1
  118. package/dist/models/policy-payment-method-class.d.ts +86 -0
  119. package/dist/models/policy-payment-method-class.js +15 -0
  120. package/dist/models/refund-class.d.ts +7 -1
  121. package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
  122. package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
  123. package/dist/models/update-bank-order-request-dto.d.ts +62 -0
  124. package/dist/models/update-bank-order-request-dto.js +23 -0
  125. package/dist/models/update-bank-order-response-class.d.ts +25 -0
  126. package/dist/models/update-bank-order-response-class.js +15 -0
  127. package/models/bank-order-class.ts +128 -0
  128. package/models/bank-order-xml-file-class.ts +78 -0
  129. package/models/bank-transaction-class-without-expand-properties.ts +21 -18
  130. package/models/bank-transaction-class.ts +25 -22
  131. package/models/bank-transaction-invoice-class.ts +66 -0
  132. package/models/bank-transfer-dto.ts +31 -0
  133. package/models/billing-address-dto.ts +60 -0
  134. package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
  135. package/models/complete-eis-payment-setup-request-dto.ts +42 -0
  136. package/models/complete-payment-setup-request-dto.ts +7 -0
  137. package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
  138. package/models/create-bank-order-request-dto.ts +84 -0
  139. package/models/create-bank-order-response-class.ts +31 -0
  140. package/models/create-payment-order-dto.ts +54 -0
  141. package/models/create-payment-order-request-dto.ts +54 -0
  142. package/models/create-payment-reminder-request-dto.ts +7 -1
  143. package/models/create-payment-request-dto.ts +7 -1
  144. package/models/create-policy-payment-method-request-dto.ts +36 -0
  145. package/models/create-policy-payment-method-response-class.ts +31 -0
  146. package/models/create-psp-payment-method-request-dto.ts +30 -2
  147. package/models/deactivated-payment-reminder-class.ts +7 -1
  148. package/models/eis-sepa-debit-dto.ts +61 -0
  149. package/models/exceeding-credit-class.ts +125 -0
  150. package/models/financial-account-class.ts +120 -0
  151. package/models/get-bank-order-response-class.ts +31 -0
  152. package/models/get-exceeding-credit-response-class.ts +31 -0
  153. package/models/index.ts +28 -1
  154. package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
  155. package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
  156. package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
  157. package/models/initiate-payment-setup-request-dto.ts +3 -2
  158. package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
  159. package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
  160. package/models/link-bank-transaction-request-dto-rest.ts +4 -3
  161. package/models/list-bank-orders-response-class.ts +37 -0
  162. package/models/list-exceeding-credits-response-class.ts +37 -0
  163. package/models/list-policy-payment-methods-response-class.ts +37 -0
  164. package/models/mandate-dto.ts +49 -0
  165. package/models/mandate-hash-data-dto.ts +48 -0
  166. package/models/mandate-reference-class.ts +96 -0
  167. package/models/payment-class-without-expand-properties.ts +7 -1
  168. package/models/payment-class.ts +7 -1
  169. package/models/payment-method-class.ts +6 -0
  170. package/models/payment-reminder-class.ts +7 -1
  171. package/models/policy-payment-method-class.ts +92 -0
  172. package/models/refund-class.ts +7 -1
  173. package/models/unlinked-bank-transaction-response-class.ts +21 -0
  174. package/models/update-bank-order-request-dto.ts +71 -0
  175. package/models/update-bank-order-response-class.ts +31 -0
  176. package/package.json +4 -4
  177. /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → bank-order-class.js} +0 -0
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
- if (ar || !(i in from)) {
80
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
- ar[i] = from[i];
82
- }
83
- }
84
- return to.concat(ar || Array.prototype.slice.call(from));
85
- };
86
77
  var __importDefault = (this && this.__importDefault) || function (mod) {
87
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
88
79
  };
@@ -113,14 +104,10 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
113
104
  * @param {*} [options] Override http request option.
114
105
  * @throws {RequiredError}
115
106
  */
116
- createBankAccount: function (createBankAccountRequestDto_1, authorization_1) {
117
- var args_1 = [];
118
- for (var _i = 2; _i < arguments.length; _i++) {
119
- args_1[_i - 2] = arguments[_i];
120
- }
121
- return __awaiter(_this, __spreadArray([createBankAccountRequestDto_1, authorization_1], args_1, true), void 0, function (createBankAccountRequestDto, authorization, options) {
107
+ createBankAccount: function (createBankAccountRequestDto, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
122
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
123
- if (options === void 0) { options = {}; }
124
111
  return __generator(this, function (_a) {
125
112
  switch (_a.label) {
126
113
  case 0:
@@ -166,14 +153,10 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
166
153
  * @param {*} [options] Override http request option.
167
154
  * @throws {RequiredError}
168
155
  */
169
- deleteBankAccount: function (code_1, authorization_1) {
170
- var args_1 = [];
171
- for (var _i = 2; _i < arguments.length; _i++) {
172
- args_1[_i - 2] = arguments[_i];
173
- }
174
- return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
156
+ deleteBankAccount: function (code, authorization, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
175
159
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
176
- if (options === void 0) { options = {}; }
177
160
  return __generator(this, function (_a) {
178
161
  switch (_a.label) {
179
162
  case 0:
@@ -219,14 +202,10 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
219
202
  * @param {*} [options] Override http request option.
220
203
  * @throws {RequiredError}
221
204
  */
222
- getBankAccount: function (code_1, authorization_1, expand_1) {
223
- var args_1 = [];
224
- for (var _i = 3; _i < arguments.length; _i++) {
225
- args_1[_i - 3] = arguments[_i];
226
- }
227
- return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
205
+ getBankAccount: function (code, authorization, expand, options) {
206
+ if (options === void 0) { options = {}; }
207
+ return __awaiter(_this, void 0, void 0, function () {
228
208
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
229
- if (options === void 0) { options = {}; }
230
209
  return __generator(this, function (_a) {
231
210
  switch (_a.label) {
232
211
  case 0:
@@ -270,21 +249,20 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
270
249
  * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
271
250
  * @summary List bank accounts
272
251
  * @param {string} [authorization] Bearer Token
252
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
253
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
273
254
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
274
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
255
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
275
256
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
276
257
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: primaryBankAccount&lt;i&gt;
258
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
277
259
  * @param {*} [options] Override http request option.
278
260
  * @throws {RequiredError}
279
261
  */
280
- listBankAccounts: function (authorization_1, filter_1, filters_1, order_1, expand_1) {
281
- var args_1 = [];
282
- for (var _i = 5; _i < arguments.length; _i++) {
283
- args_1[_i - 5] = arguments[_i];
284
- }
285
- return __awaiter(_this, __spreadArray([authorization_1, filter_1, filters_1, order_1, expand_1], args_1, true), void 0, function (authorization, filter, filters, order, expand, options) {
262
+ listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
263
+ if (options === void 0) { options = {}; }
264
+ return __awaiter(_this, void 0, void 0, function () {
286
265
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
287
- if (options === void 0) { options = {}; }
288
266
  return __generator(this, function (_a) {
289
267
  switch (_a.label) {
290
268
  case 0:
@@ -304,11 +282,17 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
304
282
  // authentication bearer required
305
283
  // http bearer authentication required
306
284
  _a.sent();
285
+ if (pageSize !== undefined) {
286
+ localVarQueryParameter['pageSize'] = pageSize;
287
+ }
288
+ if (pageToken !== undefined) {
289
+ localVarQueryParameter['pageToken'] = pageToken;
290
+ }
307
291
  if (filter !== undefined) {
308
292
  localVarQueryParameter['filter'] = filter;
309
293
  }
310
- if (filters !== undefined) {
311
- localVarQueryParameter['filters'] = filters;
294
+ if (search !== undefined) {
295
+ localVarQueryParameter['search'] = search;
312
296
  }
313
297
  if (order !== undefined) {
314
298
  localVarQueryParameter['order'] = order;
@@ -316,6 +300,9 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
316
300
  if (expand !== undefined) {
317
301
  localVarQueryParameter['expand'] = expand;
318
302
  }
303
+ if (filters !== undefined) {
304
+ localVarQueryParameter['filters'] = filters;
305
+ }
319
306
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
320
307
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
321
308
  }
@@ -339,14 +326,10 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
339
326
  * @param {*} [options] Override http request option.
340
327
  * @throws {RequiredError}
341
328
  */
342
- setPrimaryBankAccount: function (code_1, setPrimaryBankAccountRequestDtoRest_1, authorization_1) {
343
- var args_1 = [];
344
- for (var _i = 3; _i < arguments.length; _i++) {
345
- args_1[_i - 3] = arguments[_i];
346
- }
347
- return __awaiter(_this, __spreadArray([code_1, setPrimaryBankAccountRequestDtoRest_1, authorization_1], args_1, true), void 0, function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
329
+ setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
330
+ if (options === void 0) { options = {}; }
331
+ return __awaiter(_this, void 0, void 0, function () {
348
332
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
349
- if (options === void 0) { options = {}; }
350
333
  return __generator(this, function (_a) {
351
334
  switch (_a.label) {
352
335
  case 0:
@@ -396,14 +379,10 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
396
379
  * @param {*} [options] Override http request option.
397
380
  * @throws {RequiredError}
398
381
  */
399
- updateBankAccount: function (code_1, updateBankAccountRequestDtoRest_1, authorization_1) {
400
- var args_1 = [];
401
- for (var _i = 3; _i < arguments.length; _i++) {
402
- args_1[_i - 3] = arguments[_i];
403
- }
404
- return __awaiter(_this, __spreadArray([code_1, updateBankAccountRequestDtoRest_1, authorization_1], args_1, true), void 0, function (code, updateBankAccountRequestDtoRest, authorization, options) {
382
+ updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
383
+ if (options === void 0) { options = {}; }
384
+ return __awaiter(_this, void 0, void 0, function () {
405
385
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
406
- if (options === void 0) { options = {}; }
407
386
  return __generator(this, function (_a) {
408
387
  switch (_a.label) {
409
388
  case 0:
@@ -522,19 +501,22 @@ var BankAccountsApiFp = function (configuration) {
522
501
  * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
523
502
  * @summary List bank accounts
524
503
  * @param {string} [authorization] Bearer Token
504
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
505
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
525
506
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
526
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
507
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
527
508
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
528
509
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: primaryBankAccount&lt;i&gt;
510
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
529
511
  * @param {*} [options] Override http request option.
530
512
  * @throws {RequiredError}
531
513
  */
532
- listBankAccounts: function (authorization, filter, filters, order, expand, options) {
514
+ listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
533
515
  return __awaiter(this, void 0, void 0, function () {
534
516
  var localVarAxiosArgs;
535
517
  return __generator(this, function (_a) {
536
518
  switch (_a.label) {
537
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankAccounts(authorization, filter, filters, order, expand, options)];
519
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
538
520
  case 1:
539
521
  localVarAxiosArgs = _a.sent();
540
522
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -634,15 +616,18 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
634
616
  * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
635
617
  * @summary List bank accounts
636
618
  * @param {string} [authorization] Bearer Token
619
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
620
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
637
621
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
638
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
622
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
639
623
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
640
624
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: primaryBankAccount&lt;i&gt;
625
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
641
626
  * @param {*} [options] Override http request option.
642
627
  * @throws {RequiredError}
643
628
  */
644
- listBankAccounts: function (authorization, filter, filters, order, expand, options) {
645
- return localVarFp.listBankAccounts(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
629
+ listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
630
+ return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
646
631
  },
647
632
  /**
648
633
  * Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
@@ -729,7 +714,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
729
714
  BankAccountsApi.prototype.listBankAccounts = function (requestParameters, options) {
730
715
  var _this = this;
731
716
  if (requestParameters === void 0) { requestParameters = {}; }
732
- return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
717
+ return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(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); });
733
718
  };
734
719
  /**
735
720
  * Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"