@emilgroup/payment-sdk 1.13.1-beta.6 → 1.13.1-beta.60

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 (82) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +55 -13
  4. package/api/bank-transaction-api.ts +49 -21
  5. package/api/payment-methods-api.ts +59 -17
  6. package/api/payment-reminders-api.ts +55 -13
  7. package/api/payments-api.ts +59 -17
  8. package/api/refunds-api.ts +45 -17
  9. package/api/tenant-bank-account-api.ts +45 -17
  10. package/base.ts +52 -3
  11. package/dist/api/bank-accounts-api.d.ts +35 -8
  12. package/dist/api/bank-accounts-api.js +29 -11
  13. package/dist/api/bank-transaction-api.d.ts +32 -14
  14. package/dist/api/bank-transaction-api.js +27 -15
  15. package/dist/api/payment-methods-api.d.ts +39 -12
  16. package/dist/api/payment-methods-api.js +32 -14
  17. package/dist/api/payment-reminders-api.d.ts +35 -8
  18. package/dist/api/payment-reminders-api.js +29 -11
  19. package/dist/api/payments-api.d.ts +39 -12
  20. package/dist/api/payments-api.js +32 -14
  21. package/dist/api/refunds-api.d.ts +28 -10
  22. package/dist/api/refunds-api.js +24 -12
  23. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  24. package/dist/api/tenant-bank-account-api.js +24 -12
  25. package/dist/base.d.ts +10 -1
  26. package/dist/base.js +46 -2
  27. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +0 -14
  28. package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +1 -0
  29. package/dist/models/complete-adyen-payment-setup-request-dto.js +2 -1
  30. package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
  31. package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
  32. package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
  33. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +1 -0
  34. package/dist/models/complete-stripe-payment-setup-request-dto.js +2 -1
  35. package/dist/models/create-bank-order-request-dto.d.ts +74 -0
  36. package/dist/models/create-bank-order-request-dto.js +28 -0
  37. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  38. package/dist/models/create-payment-request-dto.d.ts +7 -1
  39. package/dist/models/create-psp-payment-method-request-dto.d.ts +14 -1
  40. package/dist/models/create-psp-payment-method-request-dto.js +2 -1
  41. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  42. package/dist/models/index.d.ts +4 -0
  43. package/dist/models/index.js +4 -0
  44. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  45. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  46. package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
  47. package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
  48. package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
  49. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  50. package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
  51. package/dist/models/payment-class.d.ts +7 -1
  52. package/dist/models/payment-method-class.d.ts +6 -0
  53. package/dist/models/payment-reminder-class.d.ts +7 -1
  54. package/dist/models/refund-class.d.ts +7 -1
  55. package/dist/models/unlinked-bank-transaction-response-class.d.ts +0 -14
  56. package/dist/models/update-bank-order-request-dto.d.ts +56 -0
  57. package/dist/models/update-bank-order-request-dto.js +23 -0
  58. package/models/bank-transaction-class-without-expand-properties.ts +0 -14
  59. package/models/complete-adyen-payment-setup-request-dto.ts +2 -1
  60. package/models/complete-eis-payment-setup-request-dto.ts +42 -0
  61. package/models/complete-payment-setup-request-dto.ts +7 -0
  62. package/models/complete-stripe-payment-setup-request-dto.ts +2 -1
  63. package/models/create-bank-order-request-dto.ts +84 -0
  64. package/models/create-payment-reminder-request-dto.ts +7 -1
  65. package/models/create-payment-request-dto.ts +7 -1
  66. package/models/create-psp-payment-method-request-dto.ts +15 -2
  67. package/models/deactivated-payment-reminder-class.ts +7 -1
  68. package/models/index.ts +4 -0
  69. package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
  70. package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
  71. package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
  72. package/models/initiate-payment-setup-request-dto.ts +3 -2
  73. package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
  74. package/models/payment-class-without-expand-properties.ts +7 -1
  75. package/models/payment-class.ts +7 -1
  76. package/models/payment-method-class.ts +6 -0
  77. package/models/payment-reminder-class.ts +7 -1
  78. package/models/refund-class.ts +7 -1
  79. package/models/unlinked-bank-transaction-response-class.ts +0 -14
  80. package/models/update-bank-order-request-dto.ts +65 -0
  81. package/package.json +1 -1
  82. package/tsconfig.json +1 -0
@@ -185,14 +185,17 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
185
185
  * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.reminders.view\"
186
186
  * @summary List payment reminders
187
187
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
188
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
189
+ * @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.
188
190
  * @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: code, id, policyCode, nextReminderDate</i>
189
- * @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: code, id, policyCode, nextReminderDate</i>
191
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
190
192
  * @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, createdAt, updatedAt</i>
191
193
  * @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/>
194
+ * @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: code, id, policyCode, nextReminderDate</i>
192
195
  * @param {*} [options] Override http request option.
193
196
  * @throws {RequiredError}
194
197
  */
195
- listPaymentReminders: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
198
+ listPaymentReminders: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
196
199
  const localVarPath = `/paymentservice/v1/payment-reminders`;
197
200
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
201
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -211,12 +214,20 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
211
214
  // http bearer authentication required
212
215
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
213
216
 
217
+ if (pageSize !== undefined) {
218
+ localVarQueryParameter['pageSize'] = pageSize;
219
+ }
220
+
221
+ if (pageToken !== undefined) {
222
+ localVarQueryParameter['pageToken'] = pageToken;
223
+ }
224
+
214
225
  if (filter !== undefined) {
215
226
  localVarQueryParameter['filter'] = filter;
216
227
  }
217
228
 
218
- if (filters !== undefined) {
219
- localVarQueryParameter['filters'] = filters;
229
+ if (search !== undefined) {
230
+ localVarQueryParameter['search'] = search;
220
231
  }
221
232
 
222
233
  if (order !== undefined) {
@@ -227,6 +238,10 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
227
238
  localVarQueryParameter['expand'] = expand;
228
239
  }
229
240
 
241
+ if (filters !== undefined) {
242
+ localVarQueryParameter['filters'] = filters;
243
+ }
244
+
230
245
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
246
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
232
247
  }
@@ -293,15 +308,18 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
293
308
  * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.reminders.view\"
294
309
  * @summary List payment reminders
295
310
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
311
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
312
+ * @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.
296
313
  * @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, policyCode, nextReminderDate&lt;/i&gt;
297
- * @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, policyCode, nextReminderDate&lt;/i&gt;
314
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
298
315
  * @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, updatedAt&lt;/i&gt;
299
316
  * @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;
317
+ * @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, policyCode, nextReminderDate&lt;/i&gt;
300
318
  * @param {*} [options] Override http request option.
301
319
  * @throws {RequiredError}
302
320
  */
303
- async listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRemindersResponseClass>> {
304
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, filter, filters, order, expand, options);
321
+ async listPaymentReminders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRemindersResponseClass>> {
322
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
305
323
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
306
324
  },
307
325
  }
@@ -352,15 +370,18 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
352
370
  * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.reminders.view\"
353
371
  * @summary List payment reminders
354
372
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
373
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
374
+ * @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.
355
375
  * @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, policyCode, nextReminderDate&lt;/i&gt;
356
- * @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, policyCode, nextReminderDate&lt;/i&gt;
376
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
357
377
  * @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, updatedAt&lt;/i&gt;
358
378
  * @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;
379
+ * @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, policyCode, nextReminderDate&lt;/i&gt;
359
380
  * @param {*} [options] Override http request option.
360
381
  * @throws {RequiredError}
361
382
  */
362
- listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
363
- return localVarFp.listPaymentReminders(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
383
+ listPaymentReminders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
384
+ return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
364
385
  },
365
386
  };
366
387
  };
@@ -448,6 +469,20 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
448
469
  */
449
470
  readonly authorization?: string
450
471
 
472
+ /**
473
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
474
+ * @type {number}
475
+ * @memberof PaymentRemindersApiListPaymentReminders
476
+ */
477
+ readonly pageSize?: number
478
+
479
+ /**
480
+ * 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.
481
+ * @type {string}
482
+ * @memberof PaymentRemindersApiListPaymentReminders
483
+ */
484
+ readonly pageToken?: string
485
+
451
486
  /**
452
487
  * 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, policyCode, nextReminderDate&lt;/i&gt;
453
488
  * @type {string}
@@ -456,11 +491,11 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
456
491
  readonly filter?: string
457
492
 
458
493
  /**
459
- * 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, policyCode, nextReminderDate&lt;/i&gt;
494
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
460
495
  * @type {string}
461
496
  * @memberof PaymentRemindersApiListPaymentReminders
462
497
  */
463
- readonly filters?: string
498
+ readonly search?: string
464
499
 
465
500
  /**
466
501
  * 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, updatedAt&lt;/i&gt;
@@ -475,6 +510,13 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
475
510
  * @memberof PaymentRemindersApiListPaymentReminders
476
511
  */
477
512
  readonly expand?: string
513
+
514
+ /**
515
+ * 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, policyCode, nextReminderDate&lt;/i&gt;
516
+ * @type {string}
517
+ * @memberof PaymentRemindersApiListPaymentReminders
518
+ */
519
+ readonly filters?: string
478
520
  }
479
521
 
480
522
  /**
@@ -529,6 +571,6 @@ export class PaymentRemindersApi extends BaseAPI {
529
571
  * @memberof PaymentRemindersApi
530
572
  */
531
573
  public listPaymentReminders(requestParameters: PaymentRemindersApiListPaymentRemindersRequest = {}, options?: AxiosRequestConfig) {
532
- return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
574
+ return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
533
575
  }
534
576
  }
@@ -142,14 +142,17 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
142
142
  * 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\"
143
143
  * @summary List payments
144
144
  * @param {string} [authorization] Bearer Token
145
- * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug&lt;/i&gt;
146
- * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug&lt;/i&gt;
145
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
146
+ * @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.
147
+ * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode&lt;/i&gt;
148
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
147
149
  * @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, code, amount&lt;/i&gt;
148
150
  * @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: transactions&lt;i&gt;
151
+ * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode&lt;/i&gt;
149
152
  * @param {*} [options] Override http request option.
150
153
  * @throws {RequiredError}
151
154
  */
152
- listPayments: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
155
+ listPayments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
153
156
  const localVarPath = `/paymentservice/v1/payments`;
154
157
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
155
158
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -168,12 +171,20 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
168
171
  // http bearer authentication required
169
172
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
170
173
 
174
+ if (pageSize !== undefined) {
175
+ localVarQueryParameter['pageSize'] = pageSize;
176
+ }
177
+
178
+ if (pageToken !== undefined) {
179
+ localVarQueryParameter['pageToken'] = pageToken;
180
+ }
181
+
171
182
  if (filter !== undefined) {
172
183
  localVarQueryParameter['filter'] = filter;
173
184
  }
174
185
 
175
- if (filters !== undefined) {
176
- localVarQueryParameter['filters'] = filters;
186
+ if (search !== undefined) {
187
+ localVarQueryParameter['search'] = search;
177
188
  }
178
189
 
179
190
  if (order !== undefined) {
@@ -184,6 +195,10 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
184
195
  localVarQueryParameter['expand'] = expand;
185
196
  }
186
197
 
198
+ if (filters !== undefined) {
199
+ localVarQueryParameter['filters'] = filters;
200
+ }
201
+
187
202
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
188
203
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
189
204
  }
@@ -239,15 +254,18 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
239
254
  * 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\"
240
255
  * @summary List payments
241
256
  * @param {string} [authorization] Bearer Token
242
- * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug&lt;/i&gt;
243
- * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug&lt;/i&gt;
257
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
258
+ * @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.
259
+ * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode&lt;/i&gt;
260
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
244
261
  * @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, code, amount&lt;/i&gt;
245
262
  * @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: transactions&lt;i&gt;
263
+ * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode&lt;/i&gt;
246
264
  * @param {*} [options] Override http request option.
247
265
  * @throws {RequiredError}
248
266
  */
249
- async listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>> {
250
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, filter, filters, order, expand, options);
267
+ async listPayments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>> {
268
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
251
269
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
252
270
  },
253
271
  }
@@ -288,15 +306,18 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
288
306
  * 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\"
289
307
  * @summary List payments
290
308
  * @param {string} [authorization] Bearer Token
291
- * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug&lt;/i&gt;
292
- * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug&lt;/i&gt;
309
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
310
+ * @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.
311
+ * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode&lt;/i&gt;
312
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
293
313
  * @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, code, amount&lt;/i&gt;
294
314
  * @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: transactions&lt;i&gt;
315
+ * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode&lt;/i&gt;
295
316
  * @param {*} [options] Override http request option.
296
317
  * @throws {RequiredError}
297
318
  */
298
- listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPaymentsResponseClass> {
299
- return localVarFp.listPayments(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
319
+ listPayments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentsResponseClass> {
320
+ return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
300
321
  },
301
322
  };
302
323
  };
@@ -371,18 +392,32 @@ export interface PaymentsApiListPaymentsRequest {
371
392
  readonly authorization?: string
372
393
 
373
394
  /**
374
- * 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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug&lt;/i&gt;
395
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
396
+ * @type {number}
397
+ * @memberof PaymentsApiListPayments
398
+ */
399
+ readonly pageSize?: number
400
+
401
+ /**
402
+ * 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.
403
+ * @type {string}
404
+ * @memberof PaymentsApiListPayments
405
+ */
406
+ readonly pageToken?: string
407
+
408
+ /**
409
+ * 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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode&lt;/i&gt;
375
410
  * @type {string}
376
411
  * @memberof PaymentsApiListPayments
377
412
  */
378
413
  readonly filter?: string
379
414
 
380
415
  /**
381
- * 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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug&lt;/i&gt;
416
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
382
417
  * @type {string}
383
418
  * @memberof PaymentsApiListPayments
384
419
  */
385
- readonly filters?: string
420
+ readonly search?: string
386
421
 
387
422
  /**
388
423
  * 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, code, amount&lt;/i&gt;
@@ -397,6 +432,13 @@ export interface PaymentsApiListPaymentsRequest {
397
432
  * @memberof PaymentsApiListPayments
398
433
  */
399
434
  readonly expand?: string
435
+
436
+ /**
437
+ * 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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug, accountCode, partnerCode&lt;/i&gt;
438
+ * @type {string}
439
+ * @memberof PaymentsApiListPayments
440
+ */
441
+ readonly filters?: string
400
442
  }
401
443
 
402
444
  /**
@@ -439,6 +481,6 @@ export class PaymentsApi extends BaseAPI {
439
481
  * @memberof PaymentsApi
440
482
  */
441
483
  public listPayments(requestParameters: PaymentsApiListPaymentsRequest = {}, options?: AxiosRequestConfig) {
442
- return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
484
+ return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
443
485
  }
444
486
  }
@@ -135,15 +135,17 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
135
135
  * Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
136
136
  * @summary List refunds
137
137
  * @param {string} [authorization] Bearer Token
138
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
139
+ * @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.
138
140
  * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
139
- * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
140
141
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
141
142
  * @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, updatedAt, amount&lt;/i&gt;
142
143
  * @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: refundItems&lt;i&gt;
144
+ * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
143
145
  * @param {*} [options] Override http request option.
144
146
  * @throws {RequiredError}
145
147
  */
146
- listRefunds: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
+ listRefunds: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
147
149
  const localVarPath = `/paymentservice/v1/refunds`;
148
150
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
149
151
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -162,12 +164,16 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
162
164
  // http bearer authentication required
163
165
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
164
166
 
165
- if (filter !== undefined) {
166
- localVarQueryParameter['filter'] = filter;
167
+ if (pageSize !== undefined) {
168
+ localVarQueryParameter['pageSize'] = pageSize;
167
169
  }
168
170
 
169
- if (filters !== undefined) {
170
- localVarQueryParameter['filters'] = filters;
171
+ if (pageToken !== undefined) {
172
+ localVarQueryParameter['pageToken'] = pageToken;
173
+ }
174
+
175
+ if (filter !== undefined) {
176
+ localVarQueryParameter['filter'] = filter;
171
177
  }
172
178
 
173
179
  if (search !== undefined) {
@@ -182,6 +188,10 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
182
188
  localVarQueryParameter['expand'] = expand;
183
189
  }
184
190
 
191
+ if (filters !== undefined) {
192
+ localVarQueryParameter['filters'] = filters;
193
+ }
194
+
185
195
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
186
196
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
197
  }
@@ -236,16 +246,18 @@ export const RefundsApiFp = function(configuration?: Configuration) {
236
246
  * Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
237
247
  * @summary List refunds
238
248
  * @param {string} [authorization] Bearer Token
249
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
250
+ * @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.
239
251
  * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
240
- * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
241
252
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
242
253
  * @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, updatedAt, amount&lt;/i&gt;
243
254
  * @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: refundItems&lt;i&gt;
255
+ * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
244
256
  * @param {*} [options] Override http request option.
245
257
  * @throws {RequiredError}
246
258
  */
247
- async listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRefundsResponseClass>> {
248
- const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, filter, filters, search, order, expand, options);
259
+ async listRefunds(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRefundsResponseClass>> {
260
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
249
261
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
250
262
  },
251
263
  }
@@ -285,16 +297,18 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
285
297
  * Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
286
298
  * @summary List refunds
287
299
  * @param {string} [authorization] Bearer Token
300
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
301
+ * @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.
288
302
  * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
289
- * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
290
303
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
291
304
  * @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, updatedAt, amount&lt;/i&gt;
292
305
  * @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: refundItems&lt;i&gt;
306
+ * @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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
293
307
  * @param {*} [options] Override http request option.
294
308
  * @throws {RequiredError}
295
309
  */
296
- listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRefundsResponseClass> {
297
- return localVarFp.listRefunds(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
310
+ listRefunds(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRefundsResponseClass> {
311
+ return localVarFp.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
298
312
  },
299
313
  };
300
314
  };
@@ -362,18 +376,25 @@ export interface RefundsApiListRefundsRequest {
362
376
  readonly authorization?: string
363
377
 
364
378
  /**
365
- * 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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
379
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
380
+ * @type {number}
381
+ * @memberof RefundsApiListRefunds
382
+ */
383
+ readonly pageSize?: number
384
+
385
+ /**
386
+ * 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.
366
387
  * @type {string}
367
388
  * @memberof RefundsApiListRefunds
368
389
  */
369
- readonly filter?: string
390
+ readonly pageToken?: string
370
391
 
371
392
  /**
372
- * 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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
393
+ * 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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
373
394
  * @type {string}
374
395
  * @memberof RefundsApiListRefunds
375
396
  */
376
- readonly filters?: string
397
+ readonly filter?: string
377
398
 
378
399
  /**
379
400
  * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status&lt;/i&gt;
@@ -395,6 +416,13 @@ export interface RefundsApiListRefundsRequest {
395
416
  * @memberof RefundsApiListRefunds
396
417
  */
397
418
  readonly expand?: string
419
+
420
+ /**
421
+ * 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, status, reason, psp, accountCode, invoiceCode&lt;/i&gt;
422
+ * @type {string}
423
+ * @memberof RefundsApiListRefunds
424
+ */
425
+ readonly filters?: string
398
426
  }
399
427
 
400
428
  /**
@@ -437,6 +465,6 @@ export class RefundsApi extends BaseAPI {
437
465
  * @memberof RefundsApi
438
466
  */
439
467
  public listRefunds(requestParameters: RefundsApiListRefundsRequest = {}, options?: AxiosRequestConfig) {
440
- return RefundsApiFp(this.configuration).listRefunds(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
468
+ return RefundsApiFp(this.configuration).listRefunds(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
441
469
  }
442
470
  }