@emilgroup/payment-sdk 1.13.1-beta.16 → 1.13.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@1.13.1-beta.16 --save
20
+ npm install @emilgroup/payment-sdk@1.13.1-beta.18 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.13.1-beta.16
24
+ yarn add @emilgroup/payment-sdk@1.13.1-beta.18
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -186,14 +186,17 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
186
186
  * 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\"
187
187
  * @summary List bank accounts
188
188
  * @param {string} [authorization] Bearer Token
189
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
190
+ * @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.
189
191
  * @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>
190
- * @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>
192
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
191
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.<br/> <br/> <i>Allowed values: id, createdAt</i>
192
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.<br/> <br/> <i>Allowed values: primaryBankAccount<i>
195
+ * @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>
193
196
  * @param {*} [options] Override http request option.
194
197
  * @throws {RequiredError}
195
198
  */
196
- listBankAccounts: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
199
+ listBankAccounts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
200
  const localVarPath = `/paymentservice/v1/bank-accounts`;
198
201
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
199
202
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -212,12 +215,20 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
212
215
  // http bearer authentication required
213
216
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
214
217
 
218
+ if (pageSize !== undefined) {
219
+ localVarQueryParameter['pageSize'] = pageSize;
220
+ }
221
+
222
+ if (pageToken !== undefined) {
223
+ localVarQueryParameter['pageToken'] = pageToken;
224
+ }
225
+
215
226
  if (filter !== undefined) {
216
227
  localVarQueryParameter['filter'] = filter;
217
228
  }
218
229
 
219
- if (filters !== undefined) {
220
- localVarQueryParameter['filters'] = filters;
230
+ if (search !== undefined) {
231
+ localVarQueryParameter['search'] = search;
221
232
  }
222
233
 
223
234
  if (order !== undefined) {
@@ -228,6 +239,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
228
239
  localVarQueryParameter['expand'] = expand;
229
240
  }
230
241
 
242
+ if (filters !== undefined) {
243
+ localVarQueryParameter['filters'] = filters;
244
+ }
245
+
231
246
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
232
247
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
233
248
  }
@@ -396,15 +411,18 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
396
411
  * 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\"
397
412
  * @summary List bank accounts
398
413
  * @param {string} [authorization] Bearer Token
414
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
415
+ * @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.
399
416
  * @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;
400
- * @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;
417
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
401
418
  * @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;
402
419
  * @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;
420
+ * @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;
403
421
  * @param {*} [options] Override http request option.
404
422
  * @throws {RequiredError}
405
423
  */
406
- async listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>> {
407
- const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, filter, filters, order, expand, options);
424
+ 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>> {
425
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
408
426
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
409
427
  },
410
428
  /**
@@ -481,15 +499,18 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
481
499
  * 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\"
482
500
  * @summary List bank accounts
483
501
  * @param {string} [authorization] Bearer Token
502
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
503
+ * @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.
484
504
  * @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;
485
- * @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;
505
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
486
506
  * @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;
487
507
  * @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;
508
+ * @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;
488
509
  * @param {*} [options] Override http request option.
489
510
  * @throws {RequiredError}
490
511
  */
491
- listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
492
- return localVarFp.listBankAccounts(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
512
+ listBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
513
+ return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
493
514
  },
494
515
  /**
495
516
  * Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
@@ -601,6 +622,20 @@ export interface BankAccountsApiListBankAccountsRequest {
601
622
  */
602
623
  readonly authorization?: string
603
624
 
625
+ /**
626
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
627
+ * @type {number}
628
+ * @memberof BankAccountsApiListBankAccounts
629
+ */
630
+ readonly pageSize?: number
631
+
632
+ /**
633
+ * 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.
634
+ * @type {string}
635
+ * @memberof BankAccountsApiListBankAccounts
636
+ */
637
+ readonly pageToken?: string
638
+
604
639
  /**
605
640
  * 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;
606
641
  * @type {string}
@@ -609,11 +644,11 @@ export interface BankAccountsApiListBankAccountsRequest {
609
644
  readonly filter?: string
610
645
 
611
646
  /**
612
- * 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;
647
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
613
648
  * @type {string}
614
649
  * @memberof BankAccountsApiListBankAccounts
615
650
  */
616
- readonly filters?: string
651
+ readonly search?: string
617
652
 
618
653
  /**
619
654
  * 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;
@@ -628,6 +663,13 @@ export interface BankAccountsApiListBankAccountsRequest {
628
663
  * @memberof BankAccountsApiListBankAccounts
629
664
  */
630
665
  readonly expand?: string
666
+
667
+ /**
668
+ * 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;
669
+ * @type {string}
670
+ * @memberof BankAccountsApiListBankAccounts
671
+ */
672
+ readonly filters?: string
631
673
  }
632
674
 
633
675
  /**
@@ -738,7 +780,7 @@ export class BankAccountsApi extends BaseAPI {
738
780
  * @memberof BankAccountsApi
739
781
  */
740
782
  public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
741
- return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
783
+ 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));
742
784
  }
743
785
 
744
786
  /**
@@ -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
  /**
@@ -135,7 +135,7 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
135
135
  * @summary Retrieve the bank order
136
136
  * @param {string} code
137
137
  * @param {string} [authorization] Bearer Token
138
- * @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;
138
+ * @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;
139
139
  * @param {*} [options] Override http request option.
140
140
  * @throws {RequiredError}
141
141
  */
@@ -184,14 +184,17 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
184
184
  * 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\"
185
185
  * @summary List bank orders
186
186
  * @param {string} [authorization] Bearer Token
187
- * @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;
188
- * @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;
189
- * @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;
190
- * @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;
187
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
188
+ * @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.
189
+ * @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;
190
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
191
+ * @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;
192
+ * @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;
193
+ * @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;
191
194
  * @param {*} [options] Override http request option.
192
195
  * @throws {RequiredError}
193
196
  */
194
- listBankOrders: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
+ listBankOrders: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
195
198
  const localVarPath = `/paymentservice/v1/bank-orders`;
196
199
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
197
200
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -210,12 +213,20 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
210
213
  // http bearer authentication required
211
214
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
212
215
 
216
+ if (pageSize !== undefined) {
217
+ localVarQueryParameter['pageSize'] = pageSize;
218
+ }
219
+
220
+ if (pageToken !== undefined) {
221
+ localVarQueryParameter['pageToken'] = pageToken;
222
+ }
223
+
213
224
  if (filter !== undefined) {
214
225
  localVarQueryParameter['filter'] = filter;
215
226
  }
216
227
 
217
- if (filters !== undefined) {
218
- localVarQueryParameter['filters'] = filters;
228
+ if (search !== undefined) {
229
+ localVarQueryParameter['search'] = search;
219
230
  }
220
231
 
221
232
  if (order !== undefined) {
@@ -226,6 +237,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
226
237
  localVarQueryParameter['expand'] = expand;
227
238
  }
228
239
 
240
+ if (filters !== undefined) {
241
+ localVarQueryParameter['filters'] = filters;
242
+ }
243
+
229
244
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
245
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
231
246
  }
@@ -245,16 +260,16 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
245
260
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
246
261
  * @summary Update the bank order
247
262
  * @param {string} code Unique identifier for the object.
248
- * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
263
+ * @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
249
264
  * @param {string} [authorization] Bearer Token
250
265
  * @param {*} [options] Override http request option.
251
266
  * @throws {RequiredError}
252
267
  */
253
- updateBankOrder: async (code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
268
+ updateBankOrder: async (code: string, updateBankOrderRequestDto: UpdateBankOrderRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
254
269
  // verify required parameter 'code' is not null or undefined
255
270
  assertParamExists('updateBankOrder', 'code', code)
256
- // verify required parameter 'updateBankOrderRequestDtoRest' is not null or undefined
257
- assertParamExists('updateBankOrder', 'updateBankOrderRequestDtoRest', updateBankOrderRequestDtoRest)
271
+ // verify required parameter 'updateBankOrderRequestDto' is not null or undefined
272
+ assertParamExists('updateBankOrder', 'updateBankOrderRequestDto', updateBankOrderRequestDto)
258
273
  const localVarPath = `/paymentservice/v1/bank-orders/{code}`
259
274
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
260
275
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -285,7 +300,7 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
285
300
  setSearchParams(localVarUrlObj, localVarQueryParameter);
286
301
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
287
302
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
288
- localVarRequestOptions.data = serializeDataIfNeeded(updateBankOrderRequestDtoRest, localVarRequestOptions, configuration)
303
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBankOrderRequestDto, localVarRequestOptions, configuration)
289
304
 
290
305
  return {
291
306
  url: toPathString(localVarUrlObj),
@@ -331,7 +346,7 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
331
346
  * @summary Retrieve the bank order
332
347
  * @param {string} code
333
348
  * @param {string} [authorization] Bearer Token
334
- * @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;
349
+ * @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;
335
350
  * @param {*} [options] Override http request option.
336
351
  * @throws {RequiredError}
337
352
  */
@@ -343,28 +358,31 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
343
358
  * 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\"
344
359
  * @summary List bank orders
345
360
  * @param {string} [authorization] Bearer Token
346
- * @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;
347
- * @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;
348
- * @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;
349
- * @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;
361
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
362
+ * @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.
363
+ * @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;
364
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
365
+ * @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;
366
+ * @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;
367
+ * @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;
350
368
  * @param {*} [options] Override http request option.
351
369
  * @throws {RequiredError}
352
370
  */
353
- async listBankOrders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankOrdersResponseClass>> {
354
- const localVarAxiosArgs = await localVarAxiosParamCreator.listBankOrders(authorization, filter, filters, order, expand, options);
371
+ 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>> {
372
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
355
373
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
356
374
  },
357
375
  /**
358
376
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
359
377
  * @summary Update the bank order
360
378
  * @param {string} code Unique identifier for the object.
361
- * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
379
+ * @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
362
380
  * @param {string} [authorization] Bearer Token
363
381
  * @param {*} [options] Override http request option.
364
382
  * @throws {RequiredError}
365
383
  */
366
- async updateBankOrder(code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
367
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDtoRest, authorization, options);
384
+ async updateBankOrder(code: string, updateBankOrderRequestDto: UpdateBankOrderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
385
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDto, authorization, options);
368
386
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
369
387
  },
370
388
  }
@@ -404,7 +422,7 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
404
422
  * @summary Retrieve the bank order
405
423
  * @param {string} code
406
424
  * @param {string} [authorization] Bearer Token
407
- * @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;
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: financialAccount&lt;i&gt;
408
426
  * @param {*} [options] Override http request option.
409
427
  * @throws {RequiredError}
410
428
  */
@@ -415,27 +433,30 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
415
433
  * 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\"
416
434
  * @summary List bank orders
417
435
  * @param {string} [authorization] Bearer Token
418
- * @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;
419
- * @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;
420
- * @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;
421
- * @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;
436
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
437
+ * @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.
438
+ * @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;
439
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
440
+ * @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;
441
+ * @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;
442
+ * @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;
422
443
  * @param {*} [options] Override http request option.
423
444
  * @throws {RequiredError}
424
445
  */
425
- listBankOrders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankOrdersResponseClass> {
426
- return localVarFp.listBankOrders(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
446
+ listBankOrders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBankOrdersResponseClass> {
447
+ return localVarFp.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
427
448
  },
428
449
  /**
429
450
  * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
430
451
  * @summary Update the bank order
431
452
  * @param {string} code Unique identifier for the object.
432
- * @param {UpdateBankOrderRequestDtoRest} updateBankOrderRequestDtoRest
453
+ * @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
433
454
  * @param {string} [authorization] Bearer Token
434
455
  * @param {*} [options] Override http request option.
435
456
  * @throws {RequiredError}
436
457
  */
437
- updateBankOrder(code: string, updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
438
- return localVarFp.updateBankOrder(code, updateBankOrderRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
458
+ updateBankOrder(code: string, updateBankOrderRequestDto: UpdateBankOrderRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
459
+ return localVarFp.updateBankOrder(code, updateBankOrderRequestDto, authorization, options).then((request) => request(axios, basePath));
439
460
  },
440
461
  };
441
462
  };
@@ -503,7 +524,7 @@ export interface BankOrdersApiGetBankOrderRequest {
503
524
  readonly authorization?: string
504
525
 
505
526
  /**
506
- * 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;
527
+ * 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;
507
528
  * @type {string}
508
529
  * @memberof BankOrdersApiGetBankOrder
509
530
  */
@@ -524,32 +545,53 @@ export interface BankOrdersApiListBankOrdersRequest {
524
545
  readonly authorization?: string
525
546
 
526
547
  /**
527
- * 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;
548
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
549
+ * @type {number}
550
+ * @memberof BankOrdersApiListBankOrders
551
+ */
552
+ readonly pageSize?: number
553
+
554
+ /**
555
+ * 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.
556
+ * @type {string}
557
+ * @memberof BankOrdersApiListBankOrders
558
+ */
559
+ readonly pageToken?: string
560
+
561
+ /**
562
+ * 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;
528
563
  * @type {string}
529
564
  * @memberof BankOrdersApiListBankOrders
530
565
  */
531
566
  readonly filter?: string
532
567
 
533
568
  /**
534
- * 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;
569
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
535
570
  * @type {string}
536
571
  * @memberof BankOrdersApiListBankOrders
537
572
  */
538
- readonly filters?: string
573
+ readonly search?: string
539
574
 
540
575
  /**
541
- * 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;
576
+ * 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;
542
577
  * @type {string}
543
578
  * @memberof BankOrdersApiListBankOrders
544
579
  */
545
580
  readonly order?: string
546
581
 
547
582
  /**
548
- * 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;
583
+ * 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;
549
584
  * @type {string}
550
585
  * @memberof BankOrdersApiListBankOrders
551
586
  */
552
587
  readonly expand?: string
588
+
589
+ /**
590
+ * 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;
591
+ * @type {string}
592
+ * @memberof BankOrdersApiListBankOrders
593
+ */
594
+ readonly filters?: string
553
595
  }
554
596
 
555
597
  /**
@@ -567,10 +609,10 @@ export interface BankOrdersApiUpdateBankOrderRequest {
567
609
 
568
610
  /**
569
611
  *
570
- * @type {UpdateBankOrderRequestDtoRest}
612
+ * @type {UpdateBankOrderRequestDto}
571
613
  * @memberof BankOrdersApiUpdateBankOrder
572
614
  */
573
- readonly updateBankOrderRequestDtoRest: UpdateBankOrderRequestDtoRest
615
+ readonly updateBankOrderRequestDto: UpdateBankOrderRequestDto
574
616
 
575
617
  /**
576
618
  * Bearer Token
@@ -632,7 +674,7 @@ export class BankOrdersApi extends BaseAPI {
632
674
  * @memberof BankOrdersApi
633
675
  */
634
676
  public listBankOrders(requestParameters: BankOrdersApiListBankOrdersRequest = {}, options?: AxiosRequestConfig) {
635
- return BankOrdersApiFp(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
677
+ 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));
636
678
  }
637
679
 
638
680
  /**
@@ -644,6 +686,6 @@ export class BankOrdersApi extends BaseAPI {
644
686
  * @memberof BankOrdersApi
645
687
  */
646
688
  public updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig) {
647
- return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
689
+ return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
648
690
  }
649
691
  }