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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +79 -37
  4. package/api/bank-orders-api.ts +695 -0
  5. package/api/bank-transaction-api.ts +187 -56
  6. package/api/payment-methods-api.ts +67 -25
  7. package/api/payment-reminders-api.ts +85 -43
  8. package/api/payment-setup-api.ts +8 -8
  9. package/api/payments-api.ts +67 -25
  10. package/api/refunds-api.ts +57 -29
  11. package/api/tenant-bank-account-api.ts +45 -17
  12. package/api/webhooks-api.ts +4 -4
  13. package/api.ts +2 -0
  14. package/base.ts +1 -1
  15. package/dist/api/bank-accounts-api.d.ts +59 -32
  16. package/dist/api/bank-accounts-api.js +53 -35
  17. package/dist/api/bank-orders-api.d.ts +393 -0
  18. package/dist/api/bank-orders-api.js +646 -0
  19. package/dist/api/bank-transaction-api.d.ts +123 -49
  20. package/dist/api/bank-transaction-api.js +151 -47
  21. package/dist/api/payment-methods-api.d.ts +47 -20
  22. package/dist/api/payment-methods-api.js +41 -23
  23. package/dist/api/payment-reminders-api.d.ts +61 -34
  24. package/dist/api/payment-reminders-api.js +54 -36
  25. package/dist/api/payment-setup-api.d.ts +8 -8
  26. package/dist/api/payment-setup-api.js +8 -8
  27. package/dist/api/payments-api.d.ts +47 -20
  28. package/dist/api/payments-api.js +41 -23
  29. package/dist/api/refunds-api.d.ts +40 -22
  30. package/dist/api/refunds-api.js +36 -24
  31. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  32. package/dist/api/tenant-bank-account-api.js +24 -12
  33. package/dist/api/webhooks-api.d.ts +4 -4
  34. package/dist/api/webhooks-api.js +4 -4
  35. package/dist/api.d.ts +1 -0
  36. package/dist/api.js +1 -0
  37. package/dist/models/bank-order-class.d.ts +115 -0
  38. package/dist/models/bank-order-class.js +15 -0
  39. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +8 -2
  40. package/dist/models/bank-transaction-class.d.ts +22 -2
  41. package/dist/models/create-bank-order-request-dto.d.ts +74 -0
  42. package/dist/models/create-bank-order-request-dto.js +28 -0
  43. package/dist/models/create-bank-order-response-class.d.ts +25 -0
  44. package/dist/models/create-bank-order-response-class.js +15 -0
  45. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  46. package/dist/models/create-payment-request-dto.d.ts +7 -1
  47. package/dist/models/create-psp-payment-method-request-dto.d.ts +7 -1
  48. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  49. package/dist/models/financial-account-class.d.ts +111 -0
  50. package/dist/models/financial-account-class.js +24 -0
  51. package/dist/models/generate-invoice-match-suggestions-response-class.d.ts +25 -0
  52. package/dist/models/generate-invoice-match-suggestions-response-class.js +15 -0
  53. package/dist/models/get-bank-order-response-class.d.ts +25 -0
  54. package/dist/models/get-bank-order-response-class.js +15 -0
  55. package/dist/models/index.d.ts +11 -0
  56. package/dist/models/index.js +11 -0
  57. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  58. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  59. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  60. package/dist/models/invoice-match-suggestion-class.d.ts +60 -0
  61. package/dist/models/invoice-match-suggestion-class.js +15 -0
  62. package/dist/models/list-bank-orders-response-class.d.ts +31 -0
  63. package/dist/models/list-bank-orders-response-class.js +15 -0
  64. package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
  65. package/dist/models/payment-class.d.ts +7 -1
  66. package/dist/models/payment-reminder-class.d.ts +7 -1
  67. package/dist/models/refund-class.d.ts +7 -1
  68. package/dist/models/suggestion-generation-progress-class.d.ts +43 -0
  69. package/dist/models/suggestion-generation-progress-class.js +22 -0
  70. package/dist/models/unlinked-bank-transaction-response-class.d.ts +8 -2
  71. package/dist/models/update-bank-order-request-dto.d.ts +56 -0
  72. package/dist/models/update-bank-order-request-dto.js +23 -0
  73. package/dist/models/update-bank-order-response-class.d.ts +25 -0
  74. package/dist/models/update-bank-order-response-class.js +15 -0
  75. package/models/bank-order-class.ts +121 -0
  76. package/models/bank-transaction-class-without-expand-properties.ts +8 -2
  77. package/models/bank-transaction-class.ts +22 -2
  78. package/models/create-bank-order-request-dto.ts +84 -0
  79. package/models/create-bank-order-response-class.ts +31 -0
  80. package/models/create-payment-reminder-request-dto.ts +7 -1
  81. package/models/create-payment-request-dto.ts +7 -1
  82. package/models/create-psp-payment-method-request-dto.ts +7 -1
  83. package/models/deactivated-payment-reminder-class.ts +7 -1
  84. package/models/financial-account-class.ts +120 -0
  85. package/models/generate-invoice-match-suggestions-response-class.ts +31 -0
  86. package/models/get-bank-order-response-class.ts +31 -0
  87. package/models/index.ts +11 -0
  88. package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
  89. package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
  90. package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
  91. package/models/invoice-match-suggestion-class.ts +66 -0
  92. package/models/list-bank-orders-response-class.ts +37 -0
  93. package/models/payment-class-without-expand-properties.ts +7 -1
  94. package/models/payment-class.ts +7 -1
  95. package/models/payment-reminder-class.ts +7 -1
  96. package/models/refund-class.ts +7 -1
  97. package/models/suggestion-generation-progress-class.ts +52 -0
  98. package/models/unlinked-bank-transaction-response-class.ts +8 -2
  99. package/models/update-bank-order-request-dto.ts +65 -0
  100. package/models/update-bank-order-response-class.ts +31 -0
  101. package/package.json +1 -1
  102. package/tsconfig.json +1 -0
@@ -4,6 +4,7 @@
4
4
  README.md
5
5
  api.ts
6
6
  api/bank-accounts-api.ts
7
+ api/bank-orders-api.ts
7
8
  api/bank-transaction-api.ts
8
9
  api/health-check-api.ts
9
10
  api/payment-methods-api.ts
@@ -20,6 +21,7 @@ git_push.sh
20
21
  index.ts
21
22
  models/bank-account-class-without-expand-properties.ts
22
23
  models/bank-account-class.ts
24
+ models/bank-order-class.ts
23
25
  models/bank-transaction-class-without-expand-properties.ts
24
26
  models/bank-transaction-class.ts
25
27
  models/billing-profile-dto.ts
@@ -32,6 +34,8 @@ models/complete-payment-setup-response-class.ts
32
34
  models/complete-stripe-payment-setup-request-dto.ts
33
35
  models/create-bank-account-request-dto.ts
34
36
  models/create-bank-account-response-class.ts
37
+ models/create-bank-order-request-dto.ts
38
+ models/create-bank-order-response-class.ts
35
39
  models/create-payment-method-response-class.ts
36
40
  models/create-payment-reminder-request-dto.ts
37
41
  models/create-payment-reminder-response-class.ts
@@ -45,7 +49,10 @@ models/create-tenant-bank-account-response-class.ts
45
49
  models/deactivate-payment-reminder-request-dto.ts
46
50
  models/deactivate-payment-reminder-response-class.ts
47
51
  models/deactivated-payment-reminder-class.ts
52
+ models/financial-account-class.ts
53
+ models/generate-invoice-match-suggestions-response-class.ts
48
54
  models/get-bank-account-response-class.ts
55
+ models/get-bank-order-response-class.ts
49
56
  models/get-bank-transactions-response-class.ts
50
57
  models/get-payment-method-response-class.ts
51
58
  models/get-payment-reminder-response-class.ts
@@ -64,9 +71,11 @@ models/initiate-stripe-payment-setup-request-dto.ts
64
71
  models/initiate-stripe-payment-setup-response-class.ts
65
72
  models/inline-response200.ts
66
73
  models/inline-response503.ts
74
+ models/invoice-match-suggestion-class.ts
67
75
  models/link-bank-transaction-request-dto-rest.ts
68
76
  models/link-bank-transactions-response-class.ts
69
77
  models/list-bank-accounts-response-class.ts
78
+ models/list-bank-orders-response-class.ts
70
79
  models/list-bank-transactions-response-class.ts
71
80
  models/list-payment-methods-response-class.ts
72
81
  models/list-payment-reminders-response-class.ts
@@ -83,6 +92,7 @@ models/refund-item-class.ts
83
92
  models/sepa-direct-dto.ts
84
93
  models/set-primary-bank-account-request-dto-rest.ts
85
94
  models/shared-transaction-class.ts
95
+ models/suggestion-generation-progress-class.ts
86
96
  models/symphony-profile-limited-response-dto.ts
87
97
  models/tenant-bank-account-class-without-expand-properties.ts
88
98
  models/tenant-bank-account-class.ts
@@ -92,6 +102,8 @@ models/unlinked-bank-transaction-response-class.ts
92
102
  models/update-bank-account-request-dto-rest.ts
93
103
  models/update-bank-account-request-dto.ts
94
104
  models/update-bank-account-response-class.ts
105
+ models/update-bank-order-request-dto.ts
106
+ models/update-bank-order-response-class.ts
95
107
  models/update-tenant-bank-account-response-class.ts
96
108
  models/update-tenant-bank-account-rest-request-dto.ts
97
109
  models/validate-pspconfig-request-dto.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.2 --save
20
+ npm install @emilgroup/payment-sdk-node@1.21.1-beta.20 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.21.1-beta.2
24
+ yarn add @emilgroup/payment-sdk-node@1.21.1-beta.20
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -45,7 +45,7 @@ const FormData = require('form-data');
45
45
  export const BankAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
46
46
  return {
47
47
  /**
48
- * This will create a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
48
+ * This will create a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary. **Required Permissions** \"payment-management.bank-accounts.create\"
49
49
  * @summary Create the bank account
50
50
  * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
51
51
  * @param {string} [authorization] Bearer Token
@@ -92,7 +92,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
92
92
  };
93
93
  },
94
94
  /**
95
- * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
95
+ * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary. **Required Permissions** \"payment-management.bank-accounts.delete\"
96
96
  * @summary Delete the bank account
97
97
  * @param {string} code Unique identifier for the object.
98
98
  * @param {string} [authorization] Bearer Token
@@ -137,7 +137,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
137
137
  };
138
138
  },
139
139
  /**
140
- * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
140
+ * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information. **Required Permissions** \"payment-management.bank-accounts.view\"
141
141
  * @summary Retrieve the bank account
142
142
  * @param {string} code
143
143
  * @param {string} [authorization] Bearer Token
@@ -187,17 +187,20 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
187
187
  };
188
188
  },
189
189
  /**
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.
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
  }
@@ -248,7 +263,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
248
263
  };
249
264
  },
250
265
  /**
251
- * Set the primary bank account for the specified partner/account
266
+ * Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
252
267
  * @summary Set primary bank account
253
268
  * @param {string} code Code of the bank account to set primary
254
269
  * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
@@ -299,7 +314,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
299
314
  };
300
315
  },
301
316
  /**
302
- * Update a bank account by code
317
+ * Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
303
318
  * @summary Update the bank account
304
319
  * @param {string} code Unique identifier for the object.
305
320
  * @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
@@ -360,7 +375,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
360
375
  const localVarAxiosParamCreator = BankAccountsApiAxiosParamCreator(configuration)
361
376
  return {
362
377
  /**
363
- * This will create a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
378
+ * This will create a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary. **Required Permissions** \"payment-management.bank-accounts.create\"
364
379
  * @summary Create the bank account
365
380
  * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
366
381
  * @param {string} [authorization] Bearer Token
@@ -372,7 +387,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
372
387
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
373
388
  },
374
389
  /**
375
- * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
390
+ * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary. **Required Permissions** \"payment-management.bank-accounts.delete\"
376
391
  * @summary Delete the bank account
377
392
  * @param {string} code Unique identifier for the object.
378
393
  * @param {string} [authorization] Bearer Token
@@ -384,7 +399,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
384
399
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
385
400
  },
386
401
  /**
387
- * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
402
+ * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information. **Required Permissions** \"payment-management.bank-accounts.view\"
388
403
  * @summary Retrieve the bank account
389
404
  * @param {string} code
390
405
  * @param {string} [authorization] Bearer Token
@@ -397,22 +412,25 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
397
412
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
398
413
  },
399
414
  /**
400
- * 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.
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
  /**
415
- * Set the primary bank account for the specified partner/account
433
+ * Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
416
434
  * @summary Set primary bank account
417
435
  * @param {string} code Code of the bank account to set primary
418
436
  * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
@@ -425,7 +443,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
425
443
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
426
444
  },
427
445
  /**
428
- * Update a bank account by code
446
+ * Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
429
447
  * @summary Update the bank account
430
448
  * @param {string} code Unique identifier for the object.
431
449
  * @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
@@ -448,7 +466,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
448
466
  const localVarFp = BankAccountsApiFp(configuration)
449
467
  return {
450
468
  /**
451
- * This will create a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
469
+ * This will create a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary. **Required Permissions** \"payment-management.bank-accounts.create\"
452
470
  * @summary Create the bank account
453
471
  * @param {CreateBankAccountRequestDto} createBankAccountRequestDto
454
472
  * @param {string} [authorization] Bearer Token
@@ -459,7 +477,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
459
477
  return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
460
478
  },
461
479
  /**
462
- * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
480
+ * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary. **Required Permissions** \"payment-management.bank-accounts.delete\"
463
481
  * @summary Delete the bank account
464
482
  * @param {string} code Unique identifier for the object.
465
483
  * @param {string} [authorization] Bearer Token
@@ -470,7 +488,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
470
488
  return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
471
489
  },
472
490
  /**
473
- * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
491
+ * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information. **Required Permissions** \"payment-management.bank-accounts.view\"
474
492
  * @summary Retrieve the bank account
475
493
  * @param {string} code
476
494
  * @param {string} [authorization] Bearer Token
@@ -482,21 +500,24 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
482
500
  return localVarFp.getBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
483
501
  },
484
502
  /**
485
- * 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.
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
- * Set the primary bank account for the specified partner/account
520
+ * Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
500
521
  * @summary Set primary bank account
501
522
  * @param {string} code Code of the bank account to set primary
502
523
  * @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
@@ -508,7 +529,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
508
529
  return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
509
530
  },
510
531
  /**
511
- * Update a bank account by code
532
+ * Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
512
533
  * @summary Update the bank account
513
534
  * @param {string} code Unique identifier for the object.
514
535
  * @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
@@ -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
  /**
@@ -698,7 +740,7 @@ export interface BankAccountsApiUpdateBankAccountRequest {
698
740
  */
699
741
  export class BankAccountsApi extends BaseAPI {
700
742
  /**
701
- * This will create a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
743
+ * This will create a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary. **Required Permissions** \"payment-management.bank-accounts.create\"
702
744
  * @summary Create the bank account
703
745
  * @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
704
746
  * @param {*} [options] Override http request option.
@@ -710,7 +752,7 @@ export class BankAccountsApi extends BaseAPI {
710
752
  }
711
753
 
712
754
  /**
713
- * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
755
+ * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary. **Required Permissions** \"payment-management.bank-accounts.delete\"
714
756
  * @summary Delete the bank account
715
757
  * @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
716
758
  * @param {*} [options] Override http request option.
@@ -722,7 +764,7 @@ export class BankAccountsApi extends BaseAPI {
722
764
  }
723
765
 
724
766
  /**
725
- * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information.
767
+ * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information. **Required Permissions** \"payment-management.bank-accounts.view\"
726
768
  * @summary Retrieve the bank account
727
769
  * @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
728
770
  * @param {*} [options] Override http request option.
@@ -734,7 +776,7 @@ export class BankAccountsApi extends BaseAPI {
734
776
  }
735
777
 
736
778
  /**
737
- * 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.
779
+ * 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\"
738
780
  * @summary List bank accounts
739
781
  * @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
740
782
  * @param {*} [options] Override http request option.
@@ -742,11 +784,11 @@ 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
  /**
749
- * Set the primary bank account for the specified partner/account
791
+ * Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
750
792
  * @summary Set primary bank account
751
793
  * @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
752
794
  * @param {*} [options] Override http request option.
@@ -758,7 +800,7 @@ export class BankAccountsApi extends BaseAPI {
758
800
  }
759
801
 
760
802
  /**
761
- * Update a bank account by code
803
+ * Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
762
804
  * @summary Update the bank account
763
805
  * @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
764
806
  * @param {*} [options] Override http request option.