@emilgroup/payment-sdk-node 1.21.1-beta.16 → 1.21.1-beta.18

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 (41) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +55 -13
  4. package/api/bank-orders-api.ts +86 -44
  5. package/api/bank-transaction-api.ts +45 -17
  6. package/api/payment-methods-api.ts +55 -13
  7. package/api/payment-reminders-api.ts +55 -13
  8. package/api/payments-api.ts +55 -13
  9. package/api/refunds-api.ts +45 -17
  10. package/api/tenant-bank-account-api.ts +45 -17
  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-orders-api.d.ts +60 -33
  14. package/dist/api/bank-orders-api.js +53 -35
  15. package/dist/api/bank-transaction-api.d.ts +28 -10
  16. package/dist/api/bank-transaction-api.js +24 -12
  17. package/dist/api/payment-methods-api.d.ts +35 -8
  18. package/dist/api/payment-methods-api.js +29 -11
  19. package/dist/api/payment-reminders-api.d.ts +35 -8
  20. package/dist/api/payment-reminders-api.js +29 -11
  21. package/dist/api/payments-api.d.ts +35 -8
  22. package/dist/api/payments-api.js +29 -11
  23. package/dist/api/refunds-api.d.ts +28 -10
  24. package/dist/api/refunds-api.js +24 -12
  25. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  26. package/dist/api/tenant-bank-account-api.js +24 -12
  27. package/dist/models/bank-order-class.d.ts +7 -7
  28. package/dist/models/create-bank-order-request-dto.d.ts +3 -9
  29. package/dist/models/financial-account-class.d.ts +111 -0
  30. package/dist/models/{update-bank-order-request-dto-rest.js → financial-account-class.js} +8 -7
  31. package/dist/models/index.d.ts +1 -1
  32. package/dist/models/index.js +1 -1
  33. package/dist/models/update-bank-order-request-dto.d.ts +0 -12
  34. package/models/bank-order-class.ts +7 -7
  35. package/models/create-bank-order-request-dto.ts +3 -9
  36. package/models/financial-account-class.ts +120 -0
  37. package/models/index.ts +1 -1
  38. package/models/update-bank-order-request-dto.ts +0 -12
  39. package/package.json +1 -1
  40. package/dist/models/update-bank-order-request-dto-rest.d.ts +0 -62
  41. package/models/update-bank-order-request-dto-rest.ts +0 -71
@@ -49,6 +49,7 @@ models/create-tenant-bank-account-response-class.ts
49
49
  models/deactivate-payment-reminder-request-dto.ts
50
50
  models/deactivate-payment-reminder-response-class.ts
51
51
  models/deactivated-payment-reminder-class.ts
52
+ models/financial-account-class.ts
52
53
  models/generate-invoice-match-suggestions-response-class.ts
53
54
  models/get-bank-account-response-class.ts
54
55
  models/get-bank-order-response-class.ts
@@ -101,7 +102,6 @@ models/unlinked-bank-transaction-response-class.ts
101
102
  models/update-bank-account-request-dto-rest.ts
102
103
  models/update-bank-account-request-dto.ts
103
104
  models/update-bank-account-response-class.ts
104
- models/update-bank-order-request-dto-rest.ts
105
105
  models/update-bank-order-request-dto.ts
106
106
  models/update-bank-order-response-class.ts
107
107
  models/update-tenant-bank-account-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk-node@1.21.1-beta.16 --save
20
+ npm install @emilgroup/payment-sdk-node@1.21.1-beta.18 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.21.1-beta.16
24
+ yarn add @emilgroup/payment-sdk-node@1.21.1-beta.18
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -190,14 +190,17 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
190
190
  * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
191
191
  * @summary List bank accounts
192
192
  * @param {string} [authorization] Bearer Token
193
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
+ * @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.
193
195
  * @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, accountCode, partnerCode</i>
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, accountCode, partnerCode</i>
196
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
195
197
  * @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</i>
196
198
  * @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: primaryBankAccount<i>
199
+ * @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, accountCode, partnerCode</i>
197
200
  * @param {*} [options] Override http request option.
198
201
  * @throws {RequiredError}
199
202
  */
200
- listBankAccounts: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
203
+ listBankAccounts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
204
  const localVarPath = `/paymentservice/v1/bank-accounts`;
202
205
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
203
206
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -216,12 +219,20 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
216
219
  // http bearer authentication required
217
220
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
218
221
 
222
+ if (pageSize !== undefined) {
223
+ localVarQueryParameter['pageSize'] = pageSize;
224
+ }
225
+
226
+ if (pageToken !== undefined) {
227
+ localVarQueryParameter['pageToken'] = pageToken;
228
+ }
229
+
219
230
  if (filter !== undefined) {
220
231
  localVarQueryParameter['filter'] = filter;
221
232
  }
222
233
 
223
- if (filters !== undefined) {
224
- localVarQueryParameter['filters'] = filters;
234
+ if (search !== undefined) {
235
+ localVarQueryParameter['search'] = search;
225
236
  }
226
237
 
227
238
  if (order !== undefined) {
@@ -232,6 +243,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
232
243
  localVarQueryParameter['expand'] = expand;
233
244
  }
234
245
 
246
+ if (filters !== undefined) {
247
+ localVarQueryParameter['filters'] = filters;
248
+ }
249
+
235
250
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
236
251
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
252
  }
@@ -400,15 +415,18 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
400
415
  * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
401
416
  * @summary List bank accounts
402
417
  * @param {string} [authorization] Bearer Token
418
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
419
+ * @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.
403
420
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
404
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
421
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
405
422
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
406
423
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: primaryBankAccount&lt;i&gt;
424
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
407
425
  * @param {*} [options] Override http request option.
408
426
  * @throws {RequiredError}
409
427
  */
410
- async listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>> {
411
- const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, filter, filters, order, expand, options);
428
+ async listBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>> {
429
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
412
430
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
413
431
  },
414
432
  /**
@@ -485,15 +503,18 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
485
503
  * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
486
504
  * @summary List bank accounts
487
505
  * @param {string} [authorization] Bearer Token
506
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
507
+ * @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.
488
508
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
489
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
509
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
490
510
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
491
511
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: primaryBankAccount&lt;i&gt;
512
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
492
513
  * @param {*} [options] Override http request option.
493
514
  * @throws {RequiredError}
494
515
  */
495
- listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
496
- return localVarFp.listBankAccounts(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
516
+ listBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
517
+ return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
497
518
  },
498
519
  /**
499
520
  * Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
@@ -605,6 +626,20 @@ export interface BankAccountsApiListBankAccountsRequest {
605
626
  */
606
627
  readonly authorization?: string
607
628
 
629
+ /**
630
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
631
+ * @type {number}
632
+ * @memberof BankAccountsApiListBankAccounts
633
+ */
634
+ readonly pageSize?: number
635
+
636
+ /**
637
+ * 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.
638
+ * @type {string}
639
+ * @memberof BankAccountsApiListBankAccounts
640
+ */
641
+ readonly pageToken?: string
642
+
608
643
  /**
609
644
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
610
645
  * @type {string}
@@ -613,11 +648,11 @@ export interface BankAccountsApiListBankAccountsRequest {
613
648
  readonly filter?: string
614
649
 
615
650
  /**
616
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
651
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
617
652
  * @type {string}
618
653
  * @memberof BankAccountsApiListBankAccounts
619
654
  */
620
- readonly filters?: string
655
+ readonly search?: string
621
656
 
622
657
  /**
623
658
  * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
@@ -632,6 +667,13 @@ export interface BankAccountsApiListBankAccountsRequest {
632
667
  * @memberof BankAccountsApiListBankAccounts
633
668
  */
634
669
  readonly expand?: string
670
+
671
+ /**
672
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, id, accountCode, partnerCode&lt;/i&gt;
673
+ * @type {string}
674
+ * @memberof BankAccountsApiListBankAccounts
675
+ */
676
+ readonly filters?: string
635
677
  }
636
678
 
637
679
  /**
@@ -742,7 +784,7 @@ export class BankAccountsApi extends BaseAPI {
742
784
  * @memberof BankAccountsApi
743
785
  */
744
786
  public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
745
- return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
787
+ return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
746
788
  }
747
789
 
748
790
  /**
@@ -29,7 +29,7 @@ import { GetBankOrderResponseClass } from '../models';
29
29
  // @ts-ignore
30
30
  import { ListBankOrdersResponseClass } from '../models';
31
31
  // @ts-ignore
32
- import { UpdateBankOrderRequestDtoRest } from '../models';
32
+ import { UpdateBankOrderRequestDto } from '../models';
33
33
  // @ts-ignore
34
34
  import { UpdateBankOrderResponseClass } from '../models';
35
35
  // URLSearchParams not necessarily used
@@ -139,7 +139,7 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
139
139
  * @summary Retrieve the bank order
140
140
  * @param {string} code
141
141
  * @param {string} [authorization] Bearer Token
142
- * @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: bankAccount&lt;i&gt;
142
+ * @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: financialAccount&lt;i&gt;
143
143
  * @param {*} [options] Override http request option.
144
144
  * @throws {RequiredError}
145
145
  */
@@ -188,14 +188,17 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
188
188
  * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
189
189
  * @summary List bank orders
190
190
  * @param {string} [authorization] Bearer Token
191
- * @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: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
192
- * @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: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
193
- * @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, executionDate, dueDate, orderNumber, bankAccountId, amount, createdAt, updatedAt&lt;/i&gt;
194
- * @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: bankAccount&lt;i&gt;
191
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
192
+ * @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.
193
+ * @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: id, code, orderNumber, status, type, financialAccountCode&lt;/i&gt;
194
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
195
+ * @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, executionDate, dueDate, orderNumber, financialAccountCode, amount, createdAt, updatedAt&lt;/i&gt;
196
+ * @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: financialAccount&lt;i&gt;
197
+ * @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: id, code, orderNumber, status, type, financialAccountCode&lt;/i&gt;
195
198
  * @param {*} [options] Override http request option.
196
199
  * @throws {RequiredError}
197
200
  */
198
- listBankOrders: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
+ listBankOrders: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
199
202
  const localVarPath = `/paymentservice/v1/bank-orders`;
200
203
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
201
204
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -214,12 +217,20 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
214
217
  // http bearer authentication required
215
218
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
216
219
 
220
+ if (pageSize !== undefined) {
221
+ localVarQueryParameter['pageSize'] = pageSize;
222
+ }
223
+
224
+ if (pageToken !== undefined) {
225
+ localVarQueryParameter['pageToken'] = pageToken;
226
+ }
227
+
217
228
  if (filter !== undefined) {
218
229
  localVarQueryParameter['filter'] = filter;
219
230
  }
220
231
 
221
- if (filters !== undefined) {
222
- localVarQueryParameter['filters'] = filters;
232
+ if (search !== undefined) {
233
+ localVarQueryParameter['search'] = search;
223
234
  }
224
235
 
225
236
  if (order !== undefined) {
@@ -230,6 +241,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
230
241
  localVarQueryParameter['expand'] = expand;
231
242
  }
232
243
 
244
+ if (filters !== undefined) {
245
+ localVarQueryParameter['filters'] = filters;
246
+ }
247
+
233
248
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
234
249
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
235
250
  }
@@ -249,16 +264,16 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
249
264
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
250
265
  * @summary Update the bank order
251
266
  * @param {string} code Unique identifier for the object.
252
- * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
267
+ * @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
253
268
  * @param {string} [authorization] Bearer Token
254
269
  * @param {*} [options] Override http request option.
255
270
  * @throws {RequiredError}
256
271
  */
257
- updateBankOrder: async (code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
272
+ updateBankOrder: async (code: string, updateBankOrderRequestDto: UpdateBankOrderRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
258
273
  // verify required parameter 'code' is not null or undefined
259
274
  assertParamExists('updateBankOrder', 'code', code)
260
- // verify required parameter 'updateBankOrderRequestDtoRest' is not null or undefined
261
- assertParamExists('updateBankOrder', 'updateBankOrderRequestDtoRest', updateBankOrderRequestDtoRest)
275
+ // verify required parameter 'updateBankOrderRequestDto' is not null or undefined
276
+ assertParamExists('updateBankOrder', 'updateBankOrderRequestDto', updateBankOrderRequestDto)
262
277
  const localVarPath = `/paymentservice/v1/bank-orders/{code}`
263
278
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
264
279
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -289,7 +304,7 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
289
304
  setSearchParams(localVarUrlObj, localVarQueryParameter);
290
305
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
291
306
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
292
- localVarRequestOptions.data = serializeDataIfNeeded(updateBankOrderRequestDtoRest, localVarRequestOptions, configuration)
307
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBankOrderRequestDto, localVarRequestOptions, configuration)
293
308
 
294
309
  return {
295
310
  url: toPathString(localVarUrlObj),
@@ -335,7 +350,7 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
335
350
  * @summary Retrieve the bank order
336
351
  * @param {string} code
337
352
  * @param {string} [authorization] Bearer Token
338
- * @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: bankAccount&lt;i&gt;
353
+ * @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: financialAccount&lt;i&gt;
339
354
  * @param {*} [options] Override http request option.
340
355
  * @throws {RequiredError}
341
356
  */
@@ -347,28 +362,31 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
347
362
  * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
348
363
  * @summary List bank orders
349
364
  * @param {string} [authorization] Bearer Token
350
- * @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: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
351
- * @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: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
352
- * @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, executionDate, dueDate, orderNumber, bankAccountId, amount, createdAt, updatedAt&lt;/i&gt;
353
- * @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: bankAccount&lt;i&gt;
365
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
366
+ * @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.
367
+ * @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: id, code, orderNumber, status, type, financialAccountCode&lt;/i&gt;
368
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
369
+ * @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, executionDate, dueDate, orderNumber, financialAccountCode, amount, createdAt, updatedAt&lt;/i&gt;
370
+ * @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: financialAccount&lt;i&gt;
371
+ * @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: id, code, orderNumber, status, type, financialAccountCode&lt;/i&gt;
354
372
  * @param {*} [options] Override http request option.
355
373
  * @throws {RequiredError}
356
374
  */
357
- async listBankOrders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankOrdersResponseClass>> {
358
- const localVarAxiosArgs = await localVarAxiosParamCreator.listBankOrders(authorization, filter, filters, order, expand, options);
375
+ async listBankOrders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankOrdersResponseClass>> {
376
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
359
377
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
360
378
  },
361
379
  /**
362
380
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
363
381
  * @summary Update the bank order
364
382
  * @param {string} code Unique identifier for the object.
365
- * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
383
+ * @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
366
384
  * @param {string} [authorization] Bearer Token
367
385
  * @param {*} [options] Override http request option.
368
386
  * @throws {RequiredError}
369
387
  */
370
- async updateBankOrder(code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
371
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDtoRest, authorization, options);
388
+ async updateBankOrder(code: string, updateBankOrderRequestDto: UpdateBankOrderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
389
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDto, authorization, options);
372
390
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
373
391
  },
374
392
  }
@@ -408,7 +426,7 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
408
426
  * @summary Retrieve the bank order
409
427
  * @param {string} code
410
428
  * @param {string} [authorization] Bearer Token
411
- * @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: bankAccount&lt;i&gt;
429
+ * @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: financialAccount&lt;i&gt;
412
430
  * @param {*} [options] Override http request option.
413
431
  * @throws {RequiredError}
414
432
  */
@@ -419,27 +437,30 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
419
437
  * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
420
438
  * @summary List bank orders
421
439
  * @param {string} [authorization] Bearer Token
422
- * @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: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
423
- * @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: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
424
- * @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, executionDate, dueDate, orderNumber, bankAccountId, amount, createdAt, updatedAt&lt;/i&gt;
425
- * @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: bankAccount&lt;i&gt;
440
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
441
+ * @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.
442
+ * @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: id, code, orderNumber, status, type, financialAccountCode&lt;/i&gt;
443
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
444
+ * @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, executionDate, dueDate, orderNumber, financialAccountCode, amount, createdAt, updatedAt&lt;/i&gt;
445
+ * @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: financialAccount&lt;i&gt;
446
+ * @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: id, code, orderNumber, status, type, financialAccountCode&lt;/i&gt;
426
447
  * @param {*} [options] Override http request option.
427
448
  * @throws {RequiredError}
428
449
  */
429
- listBankOrders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankOrdersResponseClass> {
430
- return localVarFp.listBankOrders(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
450
+ listBankOrders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBankOrdersResponseClass> {
451
+ return localVarFp.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
431
452
  },
432
453
  /**
433
454
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
434
455
  * @summary Update the bank order
435
456
  * @param {string} code Unique identifier for the object.
436
- * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
457
+ * @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
437
458
  * @param {string} [authorization] Bearer Token
438
459
  * @param {*} [options] Override http request option.
439
460
  * @throws {RequiredError}
440
461
  */
441
- updateBankOrder(code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
442
- return localVarFp.updateBankOrder(code, updateBankOrderRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
462
+ updateBankOrder(code: string, updateBankOrderRequestDto: UpdateBankOrderRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
463
+ return localVarFp.updateBankOrder(code, updateBankOrderRequestDto, authorization, options).then((request) => request(axios, basePath));
443
464
  },
444
465
  };
445
466
  };
@@ -507,7 +528,7 @@ export interface BankOrdersApiGetBankOrderRequest {
507
528
  readonly authorization?: string
508
529
 
509
530
  /**
510
- * 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: bankAccount&lt;i&gt;
531
+ * 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: financialAccount&lt;i&gt;
511
532
  * @type {string}
512
533
  * @memberof BankOrdersApiGetBankOrder
513
534
  */
@@ -528,32 +549,53 @@ export interface BankOrdersApiListBankOrdersRequest {
528
549
  readonly authorization?: string
529
550
 
530
551
  /**
531
- * 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: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
552
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
553
+ * @type {number}
554
+ * @memberof BankOrdersApiListBankOrders
555
+ */
556
+ readonly pageSize?: number
557
+
558
+ /**
559
+ * 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.
560
+ * @type {string}
561
+ * @memberof BankOrdersApiListBankOrders
562
+ */
563
+ readonly pageToken?: string
564
+
565
+ /**
566
+ * 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: id, code, orderNumber, status, type, financialAccountCode&lt;/i&gt;
532
567
  * @type {string}
533
568
  * @memberof BankOrdersApiListBankOrders
534
569
  */
535
570
  readonly filter?: string
536
571
 
537
572
  /**
538
- * 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: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
573
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
539
574
  * @type {string}
540
575
  * @memberof BankOrdersApiListBankOrders
541
576
  */
542
- readonly filters?: string
577
+ readonly search?: string
543
578
 
544
579
  /**
545
- * 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, executionDate, dueDate, orderNumber, bankAccountId, amount, createdAt, updatedAt&lt;/i&gt;
580
+ * 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, executionDate, dueDate, orderNumber, financialAccountCode, amount, createdAt, updatedAt&lt;/i&gt;
546
581
  * @type {string}
547
582
  * @memberof BankOrdersApiListBankOrders
548
583
  */
549
584
  readonly order?: string
550
585
 
551
586
  /**
552
- * 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: bankAccount&lt;i&gt;
587
+ * 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: financialAccount&lt;i&gt;
553
588
  * @type {string}
554
589
  * @memberof BankOrdersApiListBankOrders
555
590
  */
556
591
  readonly expand?: string
592
+
593
+ /**
594
+ * 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: id, code, orderNumber, status, type, financialAccountCode&lt;/i&gt;
595
+ * @type {string}
596
+ * @memberof BankOrdersApiListBankOrders
597
+ */
598
+ readonly filters?: string
557
599
  }
558
600
 
559
601
  /**
@@ -571,10 +613,10 @@ export interface BankOrdersApiUpdateBankOrderRequest {
571
613
 
572
614
  /**
573
615
  *
574
- * @type {UpdateBankOrderRequestDtoRest}
616
+ * @type {UpdateBankOrderRequestDto}
575
617
  * @memberof BankOrdersApiUpdateBankOrder
576
618
  */
577
- readonly updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest
619
+ readonly updateBankOrderRequestDto: UpdateBankOrderRequestDto
578
620
 
579
621
  /**
580
622
  * Bearer Token
@@ -636,7 +678,7 @@ export class BankOrdersApi extends BaseAPI {
636
678
  * @memberof BankOrdersApi
637
679
  */
638
680
  public listBankOrders(requestParameters: BankOrdersApiListBankOrdersRequest = {}, options?: AxiosRequestConfig) {
639
- return BankOrdersApiFp(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
681
+ return BankOrdersApiFp(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
640
682
  }
641
683
 
642
684
  /**
@@ -648,6 +690,6 @@ export class BankOrdersApi extends BaseAPI {
648
690
  * @memberof BankOrdersApi
649
691
  */
650
692
  public updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig) {
651
- return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
693
+ return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
652
694
  }
653
695
  }