@emilgroup/payment-sdk-node 1.21.1-beta.2 → 1.21.1-beta.20

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 (102) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +79 -37
  4. package/api/bank-orders-api.ts +695 -0
  5. package/api/bank-transaction-api.ts +187 -56
  6. package/api/payment-methods-api.ts +67 -25
  7. package/api/payment-reminders-api.ts +85 -43
  8. package/api/payment-setup-api.ts +8 -8
  9. package/api/payments-api.ts +67 -25
  10. package/api/refunds-api.ts +57 -29
  11. package/api/tenant-bank-account-api.ts +45 -17
  12. package/api/webhooks-api.ts +4 -4
  13. package/api.ts +2 -0
  14. package/base.ts +1 -1
  15. package/dist/api/bank-accounts-api.d.ts +59 -32
  16. package/dist/api/bank-accounts-api.js +53 -35
  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 +123 -49
  20. package/dist/api/bank-transaction-api.js +151 -47
  21. package/dist/api/payment-methods-api.d.ts +47 -20
  22. package/dist/api/payment-methods-api.js +41 -23
  23. package/dist/api/payment-reminders-api.d.ts +61 -34
  24. package/dist/api/payment-reminders-api.js +54 -36
  25. package/dist/api/payment-setup-api.d.ts +8 -8
  26. package/dist/api/payment-setup-api.js +8 -8
  27. package/dist/api/payments-api.d.ts +47 -20
  28. package/dist/api/payments-api.js +41 -23
  29. package/dist/api/refunds-api.d.ts +40 -22
  30. package/dist/api/refunds-api.js +36 -24
  31. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  32. package/dist/api/tenant-bank-account-api.js +24 -12
  33. package/dist/api/webhooks-api.d.ts +4 -4
  34. package/dist/api/webhooks-api.js +4 -4
  35. package/dist/api.d.ts +1 -0
  36. package/dist/api.js +1 -0
  37. package/dist/models/bank-order-class.d.ts +115 -0
  38. package/dist/models/bank-order-class.js +15 -0
  39. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +8 -2
  40. package/dist/models/bank-transaction-class.d.ts +22 -2
  41. package/dist/models/create-bank-order-request-dto.d.ts +74 -0
  42. package/dist/models/create-bank-order-request-dto.js +28 -0
  43. package/dist/models/create-bank-order-response-class.d.ts +25 -0
  44. package/dist/models/create-bank-order-response-class.js +15 -0
  45. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  46. package/dist/models/create-payment-request-dto.d.ts +7 -1
  47. package/dist/models/create-psp-payment-method-request-dto.d.ts +7 -1
  48. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  49. package/dist/models/financial-account-class.d.ts +111 -0
  50. package/dist/models/financial-account-class.js +24 -0
  51. package/dist/models/generate-invoice-match-suggestions-response-class.d.ts +25 -0
  52. package/dist/models/generate-invoice-match-suggestions-response-class.js +15 -0
  53. package/dist/models/get-bank-order-response-class.d.ts +25 -0
  54. package/dist/models/get-bank-order-response-class.js +15 -0
  55. package/dist/models/index.d.ts +11 -0
  56. package/dist/models/index.js +11 -0
  57. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  58. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  59. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  60. package/dist/models/invoice-match-suggestion-class.d.ts +60 -0
  61. package/dist/models/invoice-match-suggestion-class.js +15 -0
  62. package/dist/models/list-bank-orders-response-class.d.ts +31 -0
  63. package/dist/models/list-bank-orders-response-class.js +15 -0
  64. package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
  65. package/dist/models/payment-class.d.ts +7 -1
  66. package/dist/models/payment-reminder-class.d.ts +7 -1
  67. package/dist/models/refund-class.d.ts +7 -1
  68. package/dist/models/suggestion-generation-progress-class.d.ts +43 -0
  69. package/dist/models/suggestion-generation-progress-class.js +22 -0
  70. package/dist/models/unlinked-bank-transaction-response-class.d.ts +8 -2
  71. package/dist/models/update-bank-order-request-dto.d.ts +56 -0
  72. package/dist/models/update-bank-order-request-dto.js +23 -0
  73. package/dist/models/update-bank-order-response-class.d.ts +25 -0
  74. package/dist/models/update-bank-order-response-class.js +15 -0
  75. package/models/bank-order-class.ts +121 -0
  76. package/models/bank-transaction-class-without-expand-properties.ts +8 -2
  77. package/models/bank-transaction-class.ts +22 -2
  78. package/models/create-bank-order-request-dto.ts +84 -0
  79. package/models/create-bank-order-response-class.ts +31 -0
  80. package/models/create-payment-reminder-request-dto.ts +7 -1
  81. package/models/create-payment-request-dto.ts +7 -1
  82. package/models/create-psp-payment-method-request-dto.ts +7 -1
  83. package/models/deactivated-payment-reminder-class.ts +7 -1
  84. package/models/financial-account-class.ts +120 -0
  85. package/models/generate-invoice-match-suggestions-response-class.ts +31 -0
  86. package/models/get-bank-order-response-class.ts +31 -0
  87. package/models/index.ts +11 -0
  88. package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
  89. package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
  90. package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
  91. package/models/invoice-match-suggestion-class.ts +66 -0
  92. package/models/list-bank-orders-response-class.ts +37 -0
  93. package/models/payment-class-without-expand-properties.ts +7 -1
  94. package/models/payment-class.ts +7 -1
  95. package/models/payment-reminder-class.ts +7 -1
  96. package/models/refund-class.ts +7 -1
  97. package/models/suggestion-generation-progress-class.ts +52 -0
  98. package/models/unlinked-bank-transaction-response-class.ts +8 -2
  99. package/models/update-bank-order-request-dto.ts +65 -0
  100. package/models/update-bank-order-response-class.ts +31 -0
  101. package/package.json +1 -1
  102. package/tsconfig.json +1 -0
@@ -39,7 +39,7 @@ const FormData = require('form-data');
39
39
  export const PaymentSetupApiAxiosParamCreator = function (configuration?: Configuration) {
40
40
  return {
41
41
  /**
42
- * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
42
+ * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data. **Required Permissions** \"payment-management.payments.create\"
43
43
  * @summary Complete a payment setup
44
44
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
45
45
  * @param {string} [authorization] Bearer Token
@@ -86,7 +86,7 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
86
86
  };
87
87
  },
88
88
  /**
89
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
89
+ * 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\"
90
90
  * @summary Initiate a payment setup
91
91
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
92
92
  * @param {string} [authorization] Bearer Token
@@ -143,7 +143,7 @@ export const PaymentSetupApiFp = function(configuration?: Configuration) {
143
143
  const localVarAxiosParamCreator = PaymentSetupApiAxiosParamCreator(configuration)
144
144
  return {
145
145
  /**
146
- * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
146
+ * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data. **Required Permissions** \"payment-management.payments.create\"
147
147
  * @summary Complete a payment setup
148
148
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
149
149
  * @param {string} [authorization] Bearer Token
@@ -155,7 +155,7 @@ export const PaymentSetupApiFp = function(configuration?: Configuration) {
155
155
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
156
156
  },
157
157
  /**
158
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
158
+ * 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\"
159
159
  * @summary Initiate a payment setup
160
160
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
161
161
  * @param {string} [authorization] Bearer Token
@@ -177,7 +177,7 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
177
177
  const localVarFp = PaymentSetupApiFp(configuration)
178
178
  return {
179
179
  /**
180
- * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
180
+ * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data. **Required Permissions** \"payment-management.payments.create\"
181
181
  * @summary Complete a payment setup
182
182
  * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
183
183
  * @param {string} [authorization] Bearer Token
@@ -188,7 +188,7 @@ export const PaymentSetupApiFactory = function (configuration?: Configuration, b
188
188
  return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then((request) => request(axios, basePath));
189
189
  },
190
190
  /**
191
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
191
+ * 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\"
192
192
  * @summary Initiate a payment setup
193
193
  * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
194
194
  * @param {string} [authorization] Bearer Token
@@ -251,7 +251,7 @@ export interface PaymentSetupApiInitiatePaymentSetupRequest {
251
251
  */
252
252
  export class PaymentSetupApi extends BaseAPI {
253
253
  /**
254
- * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
254
+ * This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data. **Required Permissions** \"payment-management.payments.create\"
255
255
  * @summary Complete a payment setup
256
256
  * @param {PaymentSetupApiCompletePaymentSetupRequest} requestParameters Request parameters.
257
257
  * @param {*} [options] Override http request option.
@@ -263,7 +263,7 @@ export class PaymentSetupApi extends BaseAPI {
263
263
  }
264
264
 
265
265
  /**
266
- * This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
266
+ * 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\"
267
267
  * @summary Initiate a payment setup
268
268
  * @param {PaymentSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters.
269
269
  * @param {*} [options] Override http request option.
@@ -39,7 +39,7 @@ const FormData = require('form-data');
39
39
  export const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
40
40
  return {
41
41
  /**
42
- * This will create a payment for a specified account. This function is idempotent.
42
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
43
43
  * @summary Create the payment
44
44
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
45
45
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -93,7 +93,7 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
93
93
  };
94
94
  },
95
95
  /**
96
- * 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.
96
+ * 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\"
97
97
  * @summary Retrieve the payment
98
98
  * @param {string} code
99
99
  * @param {string} [authorization] Bearer Token
@@ -143,17 +143,20 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
143
143
  };
144
144
  },
145
145
  /**
146
- * 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.
146
+ * 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\"
147
147
  * @summary List payments
148
148
  * @param {string} [authorization] Bearer Token
149
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
150
+ * @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.
149
151
  * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
150
- * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
152
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
151
153
  * @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, code, amount</i>
152
154
  * @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: transactions<i>
155
+ * @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, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
153
156
  * @param {*} [options] Override http request option.
154
157
  * @throws {RequiredError}
155
158
  */
156
- listPayments: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
159
+ listPayments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
157
160
  const localVarPath = `/paymentservice/v1/payments`;
158
161
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
159
162
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -172,12 +175,20 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
172
175
  // http bearer authentication required
173
176
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
174
177
 
178
+ if (pageSize !== undefined) {
179
+ localVarQueryParameter['pageSize'] = pageSize;
180
+ }
181
+
182
+ if (pageToken !== undefined) {
183
+ localVarQueryParameter['pageToken'] = pageToken;
184
+ }
185
+
175
186
  if (filter !== undefined) {
176
187
  localVarQueryParameter['filter'] = filter;
177
188
  }
178
189
 
179
- if (filters !== undefined) {
180
- localVarQueryParameter['filters'] = filters;
190
+ if (search !== undefined) {
191
+ localVarQueryParameter['search'] = search;
181
192
  }
182
193
 
183
194
  if (order !== undefined) {
@@ -188,6 +199,10 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
188
199
  localVarQueryParameter['expand'] = expand;
189
200
  }
190
201
 
202
+ if (filters !== undefined) {
203
+ localVarQueryParameter['filters'] = filters;
204
+ }
205
+
191
206
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
192
207
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
193
208
  }
@@ -214,7 +229,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
214
229
  const localVarAxiosParamCreator = PaymentsApiAxiosParamCreator(configuration)
215
230
  return {
216
231
  /**
217
- * This will create a payment for a specified account. This function is idempotent.
232
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
218
233
  * @summary Create the payment
219
234
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
220
235
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -227,7 +242,7 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
227
242
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
228
243
  },
229
244
  /**
230
- * 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.
245
+ * 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\"
231
246
  * @summary Retrieve the payment
232
247
  * @param {string} code
233
248
  * @param {string} [authorization] Bearer Token
@@ -240,18 +255,21 @@ export const PaymentsApiFp = function(configuration?: Configuration) {
240
255
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
241
256
  },
242
257
  /**
243
- * 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.
258
+ * 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\"
244
259
  * @summary List payments
245
260
  * @param {string} [authorization] Bearer Token
261
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
262
+ * @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.
246
263
  * @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;
247
- * @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;
264
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
248
265
  * @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;
249
266
  * @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;
267
+ * @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;
250
268
  * @param {*} [options] Override http request option.
251
269
  * @throws {RequiredError}
252
270
  */
253
- async listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>> {
254
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, filter, filters, order, expand, options);
271
+ 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>> {
272
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
255
273
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
256
274
  },
257
275
  }
@@ -265,7 +283,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
265
283
  const localVarFp = PaymentsApiFp(configuration)
266
284
  return {
267
285
  /**
268
- * This will create a payment for a specified account. This function is idempotent.
286
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
269
287
  * @summary Create the payment
270
288
  * @param {string} idempotencyKey Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
271
289
  * @param {CreatePaymentRequestDto} createPaymentRequestDto
@@ -277,7 +295,7 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
277
295
  return localVarFp.createPayment(idempotencyKey, createPaymentRequestDto, authorization, options).then((request) => request(axios, basePath));
278
296
  },
279
297
  /**
280
- * 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.
298
+ * 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\"
281
299
  * @summary Retrieve the payment
282
300
  * @param {string} code
283
301
  * @param {string} [authorization] Bearer Token
@@ -289,18 +307,21 @@ export const PaymentsApiFactory = function (configuration?: Configuration, baseP
289
307
  return localVarFp.getPayment(code, authorization, expand, options).then((request) => request(axios, basePath));
290
308
  },
291
309
  /**
292
- * 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.
310
+ * 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\"
293
311
  * @summary List payments
294
312
  * @param {string} [authorization] Bearer Token
313
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
314
+ * @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.
295
315
  * @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;
296
- * @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;
316
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
297
317
  * @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;
298
318
  * @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;
319
+ * @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;
299
320
  * @param {*} [options] Override http request option.
300
321
  * @throws {RequiredError}
301
322
  */
302
- listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPaymentsResponseClass> {
303
- return localVarFp.listPayments(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
323
+ listPayments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPaymentsResponseClass> {
324
+ return localVarFp.listPayments(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
304
325
  },
305
326
  };
306
327
  };
@@ -374,6 +395,20 @@ export interface PaymentsApiListPaymentsRequest {
374
395
  */
375
396
  readonly authorization?: string
376
397
 
398
+ /**
399
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
400
+ * @type {number}
401
+ * @memberof PaymentsApiListPayments
402
+ */
403
+ readonly pageSize?: number
404
+
405
+ /**
406
+ * 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.
407
+ * @type {string}
408
+ * @memberof PaymentsApiListPayments
409
+ */
410
+ readonly pageToken?: string
411
+
377
412
  /**
378
413
  * 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;
379
414
  * @type {string}
@@ -382,11 +417,11 @@ export interface PaymentsApiListPaymentsRequest {
382
417
  readonly filter?: string
383
418
 
384
419
  /**
385
- * 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;
420
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
386
421
  * @type {string}
387
422
  * @memberof PaymentsApiListPayments
388
423
  */
389
- readonly filters?: string
424
+ readonly search?: string
390
425
 
391
426
  /**
392
427
  * 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;
@@ -401,6 +436,13 @@ export interface PaymentsApiListPaymentsRequest {
401
436
  * @memberof PaymentsApiListPayments
402
437
  */
403
438
  readonly expand?: string
439
+
440
+ /**
441
+ * 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;
442
+ * @type {string}
443
+ * @memberof PaymentsApiListPayments
444
+ */
445
+ readonly filters?: string
404
446
  }
405
447
 
406
448
  /**
@@ -411,7 +453,7 @@ export interface PaymentsApiListPaymentsRequest {
411
453
  */
412
454
  export class PaymentsApi extends BaseAPI {
413
455
  /**
414
- * This will create a payment for a specified account. This function is idempotent.
456
+ * This will create a payment for a specified account. This function is idempotent. **Required Permissions** \"payment-management.payments.create\"
415
457
  * @summary Create the payment
416
458
  * @param {PaymentsApiCreatePaymentRequest} requestParameters Request parameters.
417
459
  * @param {*} [options] Override http request option.
@@ -423,7 +465,7 @@ export class PaymentsApi extends BaseAPI {
423
465
  }
424
466
 
425
467
  /**
426
- * 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.
468
+ * 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\"
427
469
  * @summary Retrieve the payment
428
470
  * @param {PaymentsApiGetPaymentRequest} requestParameters Request parameters.
429
471
  * @param {*} [options] Override http request option.
@@ -435,7 +477,7 @@ export class PaymentsApi extends BaseAPI {
435
477
  }
436
478
 
437
479
  /**
438
- * 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.
480
+ * 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\"
439
481
  * @summary List payments
440
482
  * @param {PaymentsApiListPaymentsRequest} requestParameters Request parameters.
441
483
  * @param {*} [options] Override http request option.
@@ -443,6 +485,6 @@ export class PaymentsApi extends BaseAPI {
443
485
  * @memberof PaymentsApi
444
486
  */
445
487
  public listPayments(requestParameters: PaymentsApiListPaymentsRequest = {}, options?: AxiosRequestConfig) {
446
- return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
488
+ 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));
447
489
  }
448
490
  }
@@ -39,7 +39,7 @@ const FormData = require('form-data');
39
39
  export const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
40
40
  return {
41
41
  /**
42
- * This will create a refund in the database.
42
+ * This will create a refund in the database. **Required Permissions** \"payment-management.payments.create\"
43
43
  * @summary Create the refund
44
44
  * @param {CreateRefundRequestDto} createRefundRequestDto
45
45
  * @param {string} [authorization] Bearer Token
@@ -86,7 +86,7 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
86
86
  };
87
87
  },
88
88
  /**
89
- * Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
89
+ * Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information. **Required Permissions** \"payment-management.payments.view\"
90
90
  * @summary Retrieve the refund
91
91
  * @param {string} code
92
92
  * @param {string} [authorization] Bearer Token
@@ -136,18 +136,20 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
136
136
  };
137
137
  },
138
138
  /**
139
- * 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.
139
+ * 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\"
140
140
  * @summary List refunds
141
141
  * @param {string} [authorization] Bearer Token
142
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
143
+ * @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.
142
144
  * @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;
143
- * @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;
144
145
  * @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;
145
146
  * @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;
146
147
  * @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;
148
+ * @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;
147
149
  * @param {*} [options] Override http request option.
148
150
  * @throws {RequiredError}
149
151
  */
150
- listRefunds: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
152
+ listRefunds: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
151
153
  const localVarPath = `/paymentservice/v1/refunds`;
152
154
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
155
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -166,12 +168,16 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
166
168
  // http bearer authentication required
167
169
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
170
 
169
- if (filter !== undefined) {
170
- localVarQueryParameter['filter'] = filter;
171
+ if (pageSize !== undefined) {
172
+ localVarQueryParameter['pageSize'] = pageSize;
171
173
  }
172
174
 
173
- if (filters !== undefined) {
174
- localVarQueryParameter['filters'] = filters;
175
+ if (pageToken !== undefined) {
176
+ localVarQueryParameter['pageToken'] = pageToken;
177
+ }
178
+
179
+ if (filter !== undefined) {
180
+ localVarQueryParameter['filter'] = filter;
175
181
  }
176
182
 
177
183
  if (search !== undefined) {
@@ -186,6 +192,10 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
186
192
  localVarQueryParameter['expand'] = expand;
187
193
  }
188
194
 
195
+ if (filters !== undefined) {
196
+ localVarQueryParameter['filters'] = filters;
197
+ }
198
+
189
199
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
190
200
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
191
201
  }
@@ -212,7 +222,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
212
222
  const localVarAxiosParamCreator = RefundsApiAxiosParamCreator(configuration)
213
223
  return {
214
224
  /**
215
- * This will create a refund in the database.
225
+ * This will create a refund in the database. **Required Permissions** \"payment-management.payments.create\"
216
226
  * @summary Create the refund
217
227
  * @param {CreateRefundRequestDto} createRefundRequestDto
218
228
  * @param {string} [authorization] Bearer Token
@@ -224,7 +234,7 @@ export const RefundsApiFp = function(configuration?: Configuration) {
224
234
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
225
235
  },
226
236
  /**
227
- * Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
237
+ * Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information. **Required Permissions** \"payment-management.payments.view\"
228
238
  * @summary Retrieve the refund
229
239
  * @param {string} code
230
240
  * @param {string} [authorization] Bearer Token
@@ -237,19 +247,21 @@ export const RefundsApiFp = function(configuration?: Configuration) {
237
247
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
238
248
  },
239
249
  /**
240
- * 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.
250
+ * 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\"
241
251
  * @summary List refunds
242
252
  * @param {string} [authorization] Bearer Token
253
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
254
+ * @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.
243
255
  * @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;
244
- * @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;
245
256
  * @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;
246
257
  * @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;
247
258
  * @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;
259
+ * @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;
248
260
  * @param {*} [options] Override http request option.
249
261
  * @throws {RequiredError}
250
262
  */
251
- async listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRefundsResponseClass>> {
252
- const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, filter, filters, search, order, expand, options);
263
+ 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>> {
264
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
253
265
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
254
266
  },
255
267
  }
@@ -263,7 +275,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
263
275
  const localVarFp = RefundsApiFp(configuration)
264
276
  return {
265
277
  /**
266
- * This will create a refund in the database.
278
+ * This will create a refund in the database. **Required Permissions** \"payment-management.payments.create\"
267
279
  * @summary Create the refund
268
280
  * @param {CreateRefundRequestDto} createRefundRequestDto
269
281
  * @param {string} [authorization] Bearer Token
@@ -274,7 +286,7 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
274
286
  return localVarFp.createRefund(createRefundRequestDto, authorization, options).then((request) => request(axios, basePath));
275
287
  },
276
288
  /**
277
- * Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
289
+ * Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information. **Required Permissions** \"payment-management.payments.view\"
278
290
  * @summary Retrieve the refund
279
291
  * @param {string} code
280
292
  * @param {string} [authorization] Bearer Token
@@ -286,19 +298,21 @@ export const RefundsApiFactory = function (configuration?: Configuration, basePa
286
298
  return localVarFp.getRefund(code, authorization, expand, options).then((request) => request(axios, basePath));
287
299
  },
288
300
  /**
289
- * 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.
301
+ * 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\"
290
302
  * @summary List refunds
291
303
  * @param {string} [authorization] Bearer Token
304
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
305
+ * @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.
292
306
  * @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;
293
- * @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;
294
307
  * @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;
295
308
  * @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;
296
309
  * @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;
310
+ * @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;
297
311
  * @param {*} [options] Override http request option.
298
312
  * @throws {RequiredError}
299
313
  */
300
- listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRefundsResponseClass> {
301
- return localVarFp.listRefunds(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
314
+ listRefunds(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRefundsResponseClass> {
315
+ return localVarFp.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
302
316
  },
303
317
  };
304
318
  };
@@ -366,18 +380,25 @@ export interface RefundsApiListRefundsRequest {
366
380
  readonly authorization?: string
367
381
 
368
382
  /**
369
- * 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;
383
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
384
+ * @type {number}
385
+ * @memberof RefundsApiListRefunds
386
+ */
387
+ readonly pageSize?: number
388
+
389
+ /**
390
+ * 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.
370
391
  * @type {string}
371
392
  * @memberof RefundsApiListRefunds
372
393
  */
373
- readonly filter?: string
394
+ readonly pageToken?: string
374
395
 
375
396
  /**
376
- * 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;
397
+ * 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;
377
398
  * @type {string}
378
399
  * @memberof RefundsApiListRefunds
379
400
  */
380
- readonly filters?: string
401
+ readonly filter?: string
381
402
 
382
403
  /**
383
404
  * 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;
@@ -399,6 +420,13 @@ export interface RefundsApiListRefundsRequest {
399
420
  * @memberof RefundsApiListRefunds
400
421
  */
401
422
  readonly expand?: string
423
+
424
+ /**
425
+ * 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;
426
+ * @type {string}
427
+ * @memberof RefundsApiListRefunds
428
+ */
429
+ readonly filters?: string
402
430
  }
403
431
 
404
432
  /**
@@ -409,7 +437,7 @@ export interface RefundsApiListRefundsRequest {
409
437
  */
410
438
  export class RefundsApi extends BaseAPI {
411
439
  /**
412
- * This will create a refund in the database.
440
+ * This will create a refund in the database. **Required Permissions** \"payment-management.payments.create\"
413
441
  * @summary Create the refund
414
442
  * @param {RefundsApiCreateRefundRequest} requestParameters Request parameters.
415
443
  * @param {*} [options] Override http request option.
@@ -421,7 +449,7 @@ export class RefundsApi extends BaseAPI {
421
449
  }
422
450
 
423
451
  /**
424
- * Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
452
+ * Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information. **Required Permissions** \"payment-management.payments.view\"
425
453
  * @summary Retrieve the refund
426
454
  * @param {RefundsApiGetRefundRequest} requestParameters Request parameters.
427
455
  * @param {*} [options] Override http request option.
@@ -433,7 +461,7 @@ export class RefundsApi extends BaseAPI {
433
461
  }
434
462
 
435
463
  /**
436
- * 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.
464
+ * 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\"
437
465
  * @summary List refunds
438
466
  * @param {RefundsApiListRefundsRequest} requestParameters Request parameters.
439
467
  * @param {*} [options] Override http request option.
@@ -441,6 +469,6 @@ export class RefundsApi extends BaseAPI {
441
469
  * @memberof RefundsApi
442
470
  */
443
471
  public listRefunds(requestParameters: RefundsApiListRefundsRequest = {}, options?: AxiosRequestConfig) {
444
- 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));
472
+ 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));
445
473
  }
446
474
  }