@emilgroup/payment-sdk-node 1.13.1-beta.37 → 1.13.1-beta.39
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.
- package/.openapi-generator/FILES +0 -51
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +24 -74
- package/api/bank-transaction-api.ts +26 -64
- package/api/payment-methods-api.ts +30 -80
- package/api/payment-reminders-api.ts +20 -70
- package/api/payment-setup-api.ts +28 -36
- package/api/payments-api.ts +18 -66
- package/api/refunds-api.ts +22 -56
- package/api/tenant-bank-account-api.ts +18 -46
- package/base.ts +3 -3
- package/dist/api/bank-accounts-api.d.ts +25 -56
- package/dist/api/bank-accounts-api.js +11 -29
- package/dist/api/bank-transaction-api.d.ts +24 -47
- package/dist/api/bank-transaction-api.js +12 -24
- package/dist/api/payment-methods-api.d.ts +22 -53
- package/dist/api/payment-methods-api.js +23 -41
- package/dist/api/payment-reminders-api.d.ts +19 -50
- package/dist/api/payment-reminders-api.js +11 -29
- package/dist/api/payment-setup-api.d.ts +18 -22
- package/dist/api/payment-setup-api.js +24 -24
- package/dist/api/payments-api.d.ts +16 -46
- package/dist/api/payments-api.js +11 -29
- package/dist/api/refunds-api.d.ts +18 -39
- package/dist/api/refunds-api.js +12 -24
- package/dist/api/tenant-bank-account-api.d.ts +11 -29
- package/dist/api/tenant-bank-account-api.js +12 -24
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -2
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +12 -0
- package/dist/models/create-bank-account-request-dto.d.ts +2 -2
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +0 -51
- package/dist/models/index.js +0 -51
- package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +12 -0
- package/dist/models/tenant-bank-account-class.d.ts +12 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
- package/dist/models/validate-pspconfig-request-dto.js +0 -7
- package/models/bank-transaction-class-without-expand-properties.ts +12 -0
- package/models/create-bank-account-request-dto.ts +2 -2
- package/models/create-payment-request-dto.ts +1 -1
- package/models/index.ts +0 -51
- package/models/tenant-bank-account-class-without-expand-properties.ts +12 -0
- package/models/tenant-bank-account-class.ts +12 -0
- package/models/validate-pspconfig-request-dto.ts +1 -11
- package/package.json +1 -1
- package/dist/models/bank-account-class-without-expand-properties.d.ts +0 -72
- package/dist/models/bank-account-class-without-expand-properties.js +0 -15
- package/dist/models/bank-account-class.d.ts +0 -79
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/bank-transaction-class.d.ts +0 -128
- package/dist/models/bank-transaction-class.js +0 -15
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-dto.js +0 -15
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/billing-profile-limited-response-dto.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-response-class.d.ts +0 -25
- package/dist/models/create-bank-account-response-class.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/create-payment-reminder-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/create-refund-response-class.d.ts +0 -25
- package/dist/models/create-refund-response-class.js +0 -15
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/deactivated-payment-reminder-class.d.ts +0 -90
- package/dist/models/deactivated-payment-reminder-class.js +0 -15
- package/dist/models/get-bank-account-response-class.d.ts +0 -25
- package/dist/models/get-bank-account-response-class.js +0 -15
- package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/get-bank-transactions-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/get-payment-reminder-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/import-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/import-bank-transactions-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -50
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/link-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/link-bank-transactions-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
- package/dist/models/list-bank-transactions-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/payment-class-without-expand-properties.d.ts +0 -102
- package/dist/models/payment-class-without-expand-properties.js +0 -15
- package/dist/models/payment-class.d.ts +0 -109
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -90
- package/dist/models/payment-reminder-class.js +0 -15
- package/dist/models/primary-bank-account-response-class.d.ts +0 -42
- package/dist/models/primary-bank-account-response-class.js +0 -15
- package/dist/models/refund-class-without-expand-properties.d.ts +0 -99
- package/dist/models/refund-class-without-expand-properties.js +0 -29
- package/dist/models/refund-class.d.ts +0 -106
- package/dist/models/refund-class.js +0 -29
- package/dist/models/refund-item-class.d.ts +0 -102
- package/dist/models/refund-item-class.js +0 -15
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-class.js +0 -15
- package/dist/models/unlink-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/unlink-bank-transactions-response-class.js +0 -15
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +0 -96
- package/dist/models/unlinked-bank-transaction-response-class.js +0 -15
- package/dist/models/update-bank-account-response-class.d.ts +0 -25
- package/dist/models/update-bank-account-response-class.js +0 -15
- package/models/bank-account-class-without-expand-properties.ts +0 -78
- package/models/bank-account-class.ts +0 -85
- package/models/bank-transaction-class.ts +0 -134
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-bank-account-response-class.ts +0 -31
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-reminder-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/create-refund-response-class.ts +0 -31
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/deactivated-payment-reminder-class.ts +0 -96
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/import-bank-transactions-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -56
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/link-bank-transactions-response-class.ts +0 -31
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/payment-class-without-expand-properties.ts +0 -108
- package/models/payment-class.ts +0 -115
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -96
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/refund-class-without-expand-properties.ts +0 -109
- package/models/refund-class.ts +0 -116
- package/models/refund-item-class.ts +0 -108
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
- package/models/transaction-class.ts +0 -60
- package/models/unlink-bank-transactions-response-class.ts +0 -31
- package/models/unlinked-bank-transaction-response-class.ts +0 -102
- package/models/update-bank-account-response-class.ts +0 -31
package/.openapi-generator/FILES
CHANGED
|
@@ -18,77 +18,26 @@ common.ts
|
|
|
18
18
|
configuration.ts
|
|
19
19
|
git_push.sh
|
|
20
20
|
index.ts
|
|
21
|
-
models/bank-account-class-without-expand-properties.ts
|
|
22
|
-
models/bank-account-class.ts
|
|
23
21
|
models/bank-transaction-class-without-expand-properties.ts
|
|
24
|
-
models/bank-transaction-class.ts
|
|
25
|
-
models/billing-profile-dto.ts
|
|
26
|
-
models/billing-profile-limited-response-dto.ts
|
|
27
|
-
models/complete-braintree-payment-setup-request-dto.ts
|
|
28
|
-
models/complete-payment-setup-request-dto.ts
|
|
29
|
-
models/complete-payment-setup-response-class.ts
|
|
30
|
-
models/complete-stripe-payment-setup-request-dto.ts
|
|
31
22
|
models/create-bank-account-request-dto.ts
|
|
32
|
-
models/create-bank-account-response-class.ts
|
|
33
|
-
models/create-payment-method-response-class.ts
|
|
34
23
|
models/create-payment-reminder-request-dto.ts
|
|
35
|
-
models/create-payment-reminder-response-class.ts
|
|
36
24
|
models/create-payment-request-dto.ts
|
|
37
|
-
models/create-payment-response-class.ts
|
|
38
|
-
models/create-psp-payment-method-request-dto.ts
|
|
39
25
|
models/create-refund-request-dto.ts
|
|
40
|
-
models/create-refund-response-class.ts
|
|
41
26
|
models/create-tenant-bank-account-request-dto.ts
|
|
42
27
|
models/create-tenant-bank-account-response-class.ts
|
|
43
28
|
models/deactivate-payment-reminder-request-dto.ts
|
|
44
|
-
models/deactivate-payment-reminder-response-class.ts
|
|
45
|
-
models/deactivated-payment-reminder-class.ts
|
|
46
|
-
models/get-bank-account-response-class.ts
|
|
47
|
-
models/get-bank-transactions-response-class.ts
|
|
48
|
-
models/get-payment-method-response-class.ts
|
|
49
|
-
models/get-payment-reminder-response-class.ts
|
|
50
|
-
models/get-payment-response-class.ts
|
|
51
|
-
models/get-refund-response-class.ts
|
|
52
29
|
models/get-tenant-bank-account-response-class.ts
|
|
53
|
-
models/import-bank-transactions-response-class.ts
|
|
54
30
|
models/index.ts
|
|
55
|
-
models/initiate-braintree-payment-setup-request-dto.ts
|
|
56
|
-
models/initiate-braintree-payment-setup-response-class.ts
|
|
57
|
-
models/initiate-payment-setup-request-dto.ts
|
|
58
|
-
models/initiate-payment-setup-response-class.ts
|
|
59
|
-
models/initiate-stripe-payment-setup-request-dto.ts
|
|
60
|
-
models/initiate-stripe-payment-setup-response-class.ts
|
|
61
31
|
models/inline-response200.ts
|
|
62
32
|
models/inline-response503.ts
|
|
63
33
|
models/link-bank-transaction-request-dto-rest.ts
|
|
64
|
-
models/link-bank-transactions-response-class.ts
|
|
65
|
-
models/list-bank-accounts-response-class.ts
|
|
66
|
-
models/list-bank-transactions-response-class.ts
|
|
67
|
-
models/list-payment-methods-response-class.ts
|
|
68
|
-
models/list-payment-reminders-response-class.ts
|
|
69
|
-
models/list-payments-response-class.ts
|
|
70
|
-
models/list-refunds-response-class.ts
|
|
71
34
|
models/list-tenant-bank-account-response-class.ts
|
|
72
|
-
models/payment-class-without-expand-properties.ts
|
|
73
|
-
models/payment-class.ts
|
|
74
|
-
models/payment-method-class.ts
|
|
75
|
-
models/payment-reminder-class.ts
|
|
76
|
-
models/primary-bank-account-response-class.ts
|
|
77
|
-
models/refund-class-without-expand-properties.ts
|
|
78
|
-
models/refund-class.ts
|
|
79
|
-
models/refund-item-class.ts
|
|
80
|
-
models/sepa-direct-dto.ts
|
|
81
35
|
models/set-primary-bank-account-request-dto-rest.ts
|
|
82
|
-
models/symphony-profile-limited-response-dto.ts
|
|
83
36
|
models/tenant-bank-account-class-without-expand-properties.ts
|
|
84
37
|
models/tenant-bank-account-class.ts
|
|
85
|
-
models/transaction-class.ts
|
|
86
38
|
models/unlink-bank-transaction-request-dto-rest.ts
|
|
87
|
-
models/unlink-bank-transactions-response-class.ts
|
|
88
|
-
models/unlinked-bank-transaction-response-class.ts
|
|
89
39
|
models/update-bank-account-request-dto-rest.ts
|
|
90
40
|
models/update-bank-account-request-dto.ts
|
|
91
|
-
models/update-bank-account-response-class.ts
|
|
92
41
|
models/update-tenant-bank-account-response-class.ts
|
|
93
42
|
models/update-tenant-bank-account-rest-request-dto.ts
|
|
94
43
|
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.13.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk-node@1.13.1-beta.39 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk-node@1.13.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk-node@1.13.1-beta.39
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -23,17 +23,9 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateBankAccountRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import { CreateBankAccountResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetBankAccountResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListBankAccountsResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
26
|
import { SetPrimaryBankAccountRequestDtoRest } from '../models';
|
|
33
27
|
// @ts-ignore
|
|
34
28
|
import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
import { UpdateBankAccountResponseClass } from '../models';
|
|
37
29
|
// URLSearchParams not necessarily used
|
|
38
30
|
// @ts-ignore
|
|
39
31
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -190,17 +182,14 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
190
182
|
* 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.
|
|
191
183
|
* @summary List bank accounts
|
|
192
184
|
* @param {string} [authorization] Bearer Token
|
|
193
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
194
|
-
* @param {any} [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.
|
|
195
185
|
* @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>
|
|
196
|
-
* @param {
|
|
186
|
+
* @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
187
|
* @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>
|
|
198
188
|
* @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>
|
|
200
189
|
* @param {*} [options] Override http request option.
|
|
201
190
|
* @throws {RequiredError}
|
|
202
191
|
*/
|
|
203
|
-
listBankAccounts: async (authorization?: string,
|
|
192
|
+
listBankAccounts: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
204
193
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
205
194
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
195
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -219,20 +208,12 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
219
208
|
// http bearer authentication required
|
|
220
209
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
221
210
|
|
|
222
|
-
if (pageSize !== undefined) {
|
|
223
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
if (pageToken !== undefined) {
|
|
227
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
211
|
if (filter !== undefined) {
|
|
231
212
|
localVarQueryParameter['filter'] = filter;
|
|
232
213
|
}
|
|
233
214
|
|
|
234
|
-
if (
|
|
235
|
-
localVarQueryParameter['
|
|
215
|
+
if (filters !== undefined) {
|
|
216
|
+
localVarQueryParameter['filters'] = filters;
|
|
236
217
|
}
|
|
237
218
|
|
|
238
219
|
if (order !== undefined) {
|
|
@@ -243,10 +224,6 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
243
224
|
localVarQueryParameter['expand'] = expand;
|
|
244
225
|
}
|
|
245
226
|
|
|
246
|
-
if (filters !== undefined) {
|
|
247
|
-
localVarQueryParameter['filters'] = filters;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
227
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
251
228
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
252
229
|
}
|
|
@@ -382,7 +359,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
382
359
|
* @param {*} [options] Override http request option.
|
|
383
360
|
* @throws {RequiredError}
|
|
384
361
|
*/
|
|
385
|
-
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
362
|
+
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
386
363
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
|
|
387
364
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
388
365
|
},
|
|
@@ -394,7 +371,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
394
371
|
* @param {*} [options] Override http request option.
|
|
395
372
|
* @throws {RequiredError}
|
|
396
373
|
*/
|
|
397
|
-
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
374
|
+
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
398
375
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankAccount(code, authorization, options);
|
|
399
376
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
400
377
|
},
|
|
@@ -407,7 +384,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
407
384
|
* @param {*} [options] Override http request option.
|
|
408
385
|
* @throws {RequiredError}
|
|
409
386
|
*/
|
|
410
|
-
async getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
387
|
+
async getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
411
388
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, expand, options);
|
|
412
389
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
413
390
|
},
|
|
@@ -415,18 +392,15 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
415
392
|
* 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.
|
|
416
393
|
* @summary List bank accounts
|
|
417
394
|
* @param {string} [authorization] Bearer Token
|
|
418
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
419
|
-
* @param {any} [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.
|
|
420
395
|
* @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>
|
|
421
|
-
* @param {
|
|
396
|
+
* @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>
|
|
422
397
|
* @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>
|
|
423
398
|
* @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>
|
|
424
|
-
* @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>
|
|
425
399
|
* @param {*} [options] Override http request option.
|
|
426
400
|
* @throws {RequiredError}
|
|
427
401
|
*/
|
|
428
|
-
async listBankAccounts(authorization?: string,
|
|
429
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization,
|
|
402
|
+
async listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
403
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, filter, filters, order, expand, options);
|
|
430
404
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
431
405
|
},
|
|
432
406
|
/**
|
|
@@ -438,7 +412,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
438
412
|
* @param {*} [options] Override http request option.
|
|
439
413
|
* @throws {RequiredError}
|
|
440
414
|
*/
|
|
441
|
-
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
415
|
+
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
442
416
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options);
|
|
443
417
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
444
418
|
},
|
|
@@ -451,7 +425,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
451
425
|
* @param {*} [options] Override http request option.
|
|
452
426
|
* @throws {RequiredError}
|
|
453
427
|
*/
|
|
454
|
-
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
428
|
+
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
455
429
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
|
|
456
430
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
457
431
|
},
|
|
@@ -473,7 +447,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
473
447
|
* @param {*} [options] Override http request option.
|
|
474
448
|
* @throws {RequiredError}
|
|
475
449
|
*/
|
|
476
|
-
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
450
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
477
451
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
478
452
|
},
|
|
479
453
|
/**
|
|
@@ -484,7 +458,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
484
458
|
* @param {*} [options] Override http request option.
|
|
485
459
|
* @throws {RequiredError}
|
|
486
460
|
*/
|
|
487
|
-
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
461
|
+
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
488
462
|
return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
489
463
|
},
|
|
490
464
|
/**
|
|
@@ -496,25 +470,22 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
496
470
|
* @param {*} [options] Override http request option.
|
|
497
471
|
* @throws {RequiredError}
|
|
498
472
|
*/
|
|
499
|
-
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
473
|
+
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
500
474
|
return localVarFp.getBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
501
475
|
},
|
|
502
476
|
/**
|
|
503
477
|
* 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.
|
|
504
478
|
* @summary List bank accounts
|
|
505
479
|
* @param {string} [authorization] Bearer Token
|
|
506
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
507
|
-
* @param {any} [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.
|
|
508
480
|
* @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>
|
|
509
|
-
* @param {
|
|
481
|
+
* @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>
|
|
510
482
|
* @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>
|
|
511
483
|
* @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>
|
|
512
|
-
* @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>
|
|
513
484
|
* @param {*} [options] Override http request option.
|
|
514
485
|
* @throws {RequiredError}
|
|
515
486
|
*/
|
|
516
|
-
listBankAccounts(authorization?: string,
|
|
517
|
-
return localVarFp.listBankAccounts(authorization,
|
|
487
|
+
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
488
|
+
return localVarFp.listBankAccounts(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
518
489
|
},
|
|
519
490
|
/**
|
|
520
491
|
* Set the primary bank account for the specified partner/account
|
|
@@ -525,7 +496,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
525
496
|
* @param {*} [options] Override http request option.
|
|
526
497
|
* @throws {RequiredError}
|
|
527
498
|
*/
|
|
528
|
-
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
499
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
529
500
|
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
530
501
|
},
|
|
531
502
|
/**
|
|
@@ -537,7 +508,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
537
508
|
* @param {*} [options] Override http request option.
|
|
538
509
|
* @throws {RequiredError}
|
|
539
510
|
*/
|
|
540
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
511
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
541
512
|
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
542
513
|
},
|
|
543
514
|
};
|
|
@@ -626,20 +597,6 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
626
597
|
*/
|
|
627
598
|
readonly authorization?: string
|
|
628
599
|
|
|
629
|
-
/**
|
|
630
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
631
|
-
* @type {any}
|
|
632
|
-
* @memberof BankAccountsApiListBankAccounts
|
|
633
|
-
*/
|
|
634
|
-
readonly pageSize?: any
|
|
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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
638
|
-
* @type {any}
|
|
639
|
-
* @memberof BankAccountsApiListBankAccounts
|
|
640
|
-
*/
|
|
641
|
-
readonly pageToken?: any
|
|
642
|
-
|
|
643
600
|
/**
|
|
644
601
|
* 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>
|
|
645
602
|
* @type {string}
|
|
@@ -648,11 +605,11 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
648
605
|
readonly filter?: string
|
|
649
606
|
|
|
650
607
|
/**
|
|
651
|
-
*
|
|
652
|
-
* @type {
|
|
608
|
+
* 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>
|
|
609
|
+
* @type {string}
|
|
653
610
|
* @memberof BankAccountsApiListBankAccounts
|
|
654
611
|
*/
|
|
655
|
-
readonly
|
|
612
|
+
readonly filters?: string
|
|
656
613
|
|
|
657
614
|
/**
|
|
658
615
|
* 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>
|
|
@@ -667,13 +624,6 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
667
624
|
* @memberof BankAccountsApiListBankAccounts
|
|
668
625
|
*/
|
|
669
626
|
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.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
673
|
-
* @type {string}
|
|
674
|
-
* @memberof BankAccountsApiListBankAccounts
|
|
675
|
-
*/
|
|
676
|
-
readonly filters?: string
|
|
677
627
|
}
|
|
678
628
|
|
|
679
629
|
/**
|
|
@@ -784,7 +734,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
784
734
|
* @memberof BankAccountsApi
|
|
785
735
|
*/
|
|
786
736
|
public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
787
|
-
return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.
|
|
737
|
+
return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
788
738
|
}
|
|
789
739
|
|
|
790
740
|
/**
|
|
@@ -21,19 +21,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { GetBankTransactionsResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { ImportBankTransactionsResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
24
|
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
29
25
|
// @ts-ignore
|
|
30
|
-
import { LinkBankTransactionsResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { ListBankTransactionsResponseClass } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
26
|
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
37
27
|
// URLSearchParams not necessarily used
|
|
38
28
|
// @ts-ignore
|
|
39
29
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -202,17 +192,15 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
202
192
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
203
193
|
* @summary List bank transactions
|
|
204
194
|
* @param {string} [authorization] Bearer Token
|
|
205
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
206
|
-
* @param {any} [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.
|
|
207
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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
196
|
+
* @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
208
197
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
209
198
|
* @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, amount, transactionDate, entryDate</i>
|
|
210
199
|
* @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: bankAccount, transaction<i>
|
|
211
|
-
* @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
212
200
|
* @param {*} [options] Override http request option.
|
|
213
201
|
* @throws {RequiredError}
|
|
214
202
|
*/
|
|
215
|
-
listBankTransactions: async (authorization?: string,
|
|
203
|
+
listBankTransactions: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
216
204
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions`;
|
|
217
205
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
218
206
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -231,18 +219,14 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
231
219
|
// http bearer authentication required
|
|
232
220
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
233
221
|
|
|
234
|
-
if (pageSize !== undefined) {
|
|
235
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
if (pageToken !== undefined) {
|
|
239
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
222
|
if (filter !== undefined) {
|
|
243
223
|
localVarQueryParameter['filter'] = filter;
|
|
244
224
|
}
|
|
245
225
|
|
|
226
|
+
if (filters !== undefined) {
|
|
227
|
+
localVarQueryParameter['filters'] = filters;
|
|
228
|
+
}
|
|
229
|
+
|
|
246
230
|
if (search !== undefined) {
|
|
247
231
|
localVarQueryParameter['search'] = search;
|
|
248
232
|
}
|
|
@@ -255,10 +239,6 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
255
239
|
localVarQueryParameter['expand'] = expand;
|
|
256
240
|
}
|
|
257
241
|
|
|
258
|
-
if (filters !== undefined) {
|
|
259
|
-
localVarQueryParameter['filters'] = filters;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
242
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
263
243
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
264
244
|
}
|
|
@@ -344,7 +324,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
344
324
|
* @param {*} [options] Override http request option.
|
|
345
325
|
* @throws {RequiredError}
|
|
346
326
|
*/
|
|
347
|
-
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
327
|
+
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
348
328
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankTransaction(code, authorization, expand, options);
|
|
349
329
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
350
330
|
},
|
|
@@ -356,7 +336,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
356
336
|
* @param {*} [options] Override http request option.
|
|
357
337
|
* @throws {RequiredError}
|
|
358
338
|
*/
|
|
359
|
-
async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
339
|
+
async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
360
340
|
const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(file, authorization, options);
|
|
361
341
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
362
342
|
},
|
|
@@ -369,7 +349,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
369
349
|
* @param {*} [options] Override http request option.
|
|
370
350
|
* @throws {RequiredError}
|
|
371
351
|
*/
|
|
372
|
-
async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
352
|
+
async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
373
353
|
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
|
|
374
354
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
355
|
},
|
|
@@ -377,18 +357,16 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
377
357
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
378
358
|
* @summary List bank transactions
|
|
379
359
|
* @param {string} [authorization] Bearer Token
|
|
380
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
381
|
-
* @param {any} [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.
|
|
382
360
|
* @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
361
|
+
* @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
383
362
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
384
363
|
* @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, amount, transactionDate, entryDate</i>
|
|
385
364
|
* @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: bankAccount, transaction<i>
|
|
386
|
-
* @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
387
365
|
* @param {*} [options] Override http request option.
|
|
388
366
|
* @throws {RequiredError}
|
|
389
367
|
*/
|
|
390
|
-
async listBankTransactions(authorization?: string,
|
|
391
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization,
|
|
368
|
+
async listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, filter, filters, search, order, expand, options);
|
|
392
370
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
393
371
|
},
|
|
394
372
|
/**
|
|
@@ -400,7 +378,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
400
378
|
* @param {*} [options] Override http request option.
|
|
401
379
|
* @throws {RequiredError}
|
|
402
380
|
*/
|
|
403
|
-
async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
381
|
+
async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
404
382
|
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options);
|
|
405
383
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
406
384
|
},
|
|
@@ -423,7 +401,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
423
401
|
* @param {*} [options] Override http request option.
|
|
424
402
|
* @throws {RequiredError}
|
|
425
403
|
*/
|
|
426
|
-
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
404
|
+
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
427
405
|
return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
428
406
|
},
|
|
429
407
|
/**
|
|
@@ -434,7 +412,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
434
412
|
* @param {*} [options] Override http request option.
|
|
435
413
|
* @throws {RequiredError}
|
|
436
414
|
*/
|
|
437
|
-
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<
|
|
415
|
+
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<void> {
|
|
438
416
|
return localVarFp.importBankTransactions(file, authorization, options).then((request) => request(axios, basePath));
|
|
439
417
|
},
|
|
440
418
|
/**
|
|
@@ -446,25 +424,23 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
446
424
|
* @param {*} [options] Override http request option.
|
|
447
425
|
* @throws {RequiredError}
|
|
448
426
|
*/
|
|
449
|
-
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
427
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
450
428
|
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
451
429
|
},
|
|
452
430
|
/**
|
|
453
431
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
454
432
|
* @summary List bank transactions
|
|
455
433
|
* @param {string} [authorization] Bearer Token
|
|
456
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
457
|
-
* @param {any} [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.
|
|
458
434
|
* @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
435
|
+
* @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
459
436
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
460
437
|
* @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, amount, transactionDate, entryDate</i>
|
|
461
438
|
* @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: bankAccount, transaction<i>
|
|
462
|
-
* @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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
463
439
|
* @param {*} [options] Override http request option.
|
|
464
440
|
* @throws {RequiredError}
|
|
465
441
|
*/
|
|
466
|
-
listBankTransactions(authorization?: string,
|
|
467
|
-
return localVarFp.listBankTransactions(authorization,
|
|
442
|
+
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
443
|
+
return localVarFp.listBankTransactions(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
468
444
|
},
|
|
469
445
|
/**
|
|
470
446
|
* Unlinks an already linked bank transaction
|
|
@@ -475,7 +451,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
475
451
|
* @param {*} [options] Override http request option.
|
|
476
452
|
* @throws {RequiredError}
|
|
477
453
|
*/
|
|
478
|
-
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
454
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
479
455
|
return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
480
456
|
},
|
|
481
457
|
};
|
|
@@ -572,25 +548,18 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
572
548
|
readonly authorization?: string
|
|
573
549
|
|
|
574
550
|
/**
|
|
575
|
-
*
|
|
576
|
-
* @type {
|
|
577
|
-
* @memberof BankTransactionApiListBankTransactions
|
|
578
|
-
*/
|
|
579
|
-
readonly pageSize?: any
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* 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.
|
|
583
|
-
* @type {any}
|
|
551
|
+
* 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: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
552
|
+
* @type {string}
|
|
584
553
|
* @memberof BankTransactionApiListBankTransactions
|
|
585
554
|
*/
|
|
586
|
-
readonly
|
|
555
|
+
readonly filter?: string
|
|
587
556
|
|
|
588
557
|
/**
|
|
589
|
-
*
|
|
558
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
590
559
|
* @type {string}
|
|
591
560
|
* @memberof BankTransactionApiListBankTransactions
|
|
592
561
|
*/
|
|
593
|
-
readonly
|
|
562
|
+
readonly filters?: string
|
|
594
563
|
|
|
595
564
|
/**
|
|
596
565
|
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
@@ -612,13 +581,6 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
612
581
|
* @memberof BankTransactionApiListBankTransactions
|
|
613
582
|
*/
|
|
614
583
|
readonly expand?: string
|
|
615
|
-
|
|
616
|
-
/**
|
|
617
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
618
|
-
* @type {string}
|
|
619
|
-
* @memberof BankTransactionApiListBankTransactions
|
|
620
|
-
*/
|
|
621
|
-
readonly filters?: string
|
|
622
584
|
}
|
|
623
585
|
|
|
624
586
|
/**
|
|
@@ -701,7 +663,7 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
701
663
|
* @memberof BankTransactionApi
|
|
702
664
|
*/
|
|
703
665
|
public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
|
|
704
|
-
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.
|
|
666
|
+
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
705
667
|
}
|
|
706
668
|
|
|
707
669
|
/**
|