@emilgroup/payment-sdk 1.13.1-beta.2 → 1.13.1-beta.21
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 +12 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +79 -37
- package/api/bank-orders-api.ts +691 -0
- package/api/bank-transaction-api.ts +187 -56
- package/api/payment-methods-api.ts +67 -25
- package/api/payment-reminders-api.ts +85 -43
- package/api/payment-setup-api.ts +8 -8
- package/api/payments-api.ts +67 -25
- package/api/refunds-api.ts +57 -29
- package/api/tenant-bank-account-api.ts +45 -17
- package/api/webhooks-api.ts +4 -4
- package/api.ts +2 -0
- package/base.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +59 -32
- package/dist/api/bank-accounts-api.js +53 -35
- package/dist/api/bank-orders-api.d.ts +393 -0
- package/dist/api/bank-orders-api.js +642 -0
- package/dist/api/bank-transaction-api.d.ts +123 -49
- package/dist/api/bank-transaction-api.js +151 -47
- package/dist/api/payment-methods-api.d.ts +47 -20
- package/dist/api/payment-methods-api.js +41 -23
- package/dist/api/payment-reminders-api.d.ts +61 -34
- package/dist/api/payment-reminders-api.js +54 -36
- package/dist/api/payment-setup-api.d.ts +8 -8
- package/dist/api/payment-setup-api.js +8 -8
- package/dist/api/payments-api.d.ts +47 -20
- package/dist/api/payments-api.js +41 -23
- package/dist/api/refunds-api.d.ts +40 -22
- package/dist/api/refunds-api.js +36 -24
- package/dist/api/tenant-bank-account-api.d.ts +28 -10
- package/dist/api/tenant-bank-account-api.js +24 -12
- package/dist/api/webhooks-api.d.ts +4 -4
- package/dist/api/webhooks-api.js +4 -4
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/bank-order-class.d.ts +115 -0
- package/dist/models/bank-order-class.js +15 -0
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +8 -2
- package/dist/models/bank-transaction-class.d.ts +22 -2
- package/dist/models/create-bank-order-request-dto.d.ts +74 -0
- package/dist/models/create-bank-order-request-dto.js +28 -0
- package/dist/models/create-bank-order-response-class.d.ts +25 -0
- package/dist/models/create-bank-order-response-class.js +15 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-psp-payment-method-request-dto.d.ts +7 -1
- package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
- package/dist/models/financial-account-class.d.ts +111 -0
- package/dist/models/financial-account-class.js +24 -0
- package/dist/models/generate-invoice-match-suggestions-response-class.d.ts +25 -0
- package/dist/models/generate-invoice-match-suggestions-response-class.js +15 -0
- package/dist/models/get-bank-order-response-class.d.ts +25 -0
- package/dist/models/get-bank-order-response-class.js +15 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/invoice-match-suggestion-class.d.ts +60 -0
- package/dist/models/invoice-match-suggestion-class.js +15 -0
- package/dist/models/list-bank-orders-response-class.d.ts +31 -0
- package/dist/models/list-bank-orders-response-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
- package/dist/models/payment-class.d.ts +7 -1
- package/dist/models/payment-reminder-class.d.ts +7 -1
- package/dist/models/refund-class.d.ts +7 -1
- package/dist/models/suggestion-generation-progress-class.d.ts +43 -0
- package/dist/models/suggestion-generation-progress-class.js +22 -0
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +8 -2
- package/dist/models/update-bank-order-request-dto.d.ts +56 -0
- package/dist/models/update-bank-order-request-dto.js +23 -0
- package/dist/models/update-bank-order-response-class.d.ts +25 -0
- package/dist/models/update-bank-order-response-class.js +15 -0
- package/models/bank-order-class.ts +121 -0
- package/models/bank-transaction-class-without-expand-properties.ts +8 -2
- package/models/bank-transaction-class.ts +22 -2
- package/models/create-bank-order-request-dto.ts +84 -0
- package/models/create-bank-order-response-class.ts +31 -0
- package/models/create-payment-reminder-request-dto.ts +7 -1
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-psp-payment-method-request-dto.ts +7 -1
- package/models/deactivated-payment-reminder-class.ts +7 -1
- package/models/financial-account-class.ts +120 -0
- package/models/generate-invoice-match-suggestions-response-class.ts +31 -0
- package/models/get-bank-order-response-class.ts +31 -0
- package/models/index.ts +11 -0
- package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
- package/models/invoice-match-suggestion-class.ts +66 -0
- package/models/list-bank-orders-response-class.ts +37 -0
- package/models/payment-class-without-expand-properties.ts +7 -1
- package/models/payment-class.ts +7 -1
- package/models/payment-reminder-class.ts +7 -1
- package/models/refund-class.ts +7 -1
- package/models/suggestion-generation-progress-class.ts +52 -0
- package/models/unlinked-bank-transaction-response-class.ts +8 -2
- package/models/update-bank-order-request-dto.ts +65 -0
- package/models/update-bank-order-response-class.ts +31 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -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@1.13.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.13.1-beta.21 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.13.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.13.1-beta.21
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -41,7 +41,7 @@ import { UpdateBankAccountResponseClass } from '../models';
|
|
|
41
41
|
export const BankAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
42
|
return {
|
|
43
43
|
/**
|
|
44
|
-
* 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.
|
|
44
|
+
* 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\"
|
|
45
45
|
* @summary Create the bank account
|
|
46
46
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
47
47
|
* @param {string} [authorization] Bearer Token
|
|
@@ -88,7 +88,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
88
88
|
};
|
|
89
89
|
},
|
|
90
90
|
/**
|
|
91
|
-
* 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.
|
|
91
|
+
* 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\"
|
|
92
92
|
* @summary Delete the bank account
|
|
93
93
|
* @param {string} code Unique identifier for the object.
|
|
94
94
|
* @param {string} [authorization] Bearer Token
|
|
@@ -133,7 +133,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
133
133
|
};
|
|
134
134
|
},
|
|
135
135
|
/**
|
|
136
|
-
* 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.
|
|
136
|
+
* 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\"
|
|
137
137
|
* @summary Retrieve the bank account
|
|
138
138
|
* @param {string} code
|
|
139
139
|
* @param {string} [authorization] Bearer Token
|
|
@@ -183,17 +183,20 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
183
183
|
};
|
|
184
184
|
},
|
|
185
185
|
/**
|
|
186
|
-
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
186
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
187
187
|
* @summary List bank accounts
|
|
188
188
|
* @param {string} [authorization] Bearer Token
|
|
189
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
190
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
189
191
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
190
|
-
* @param {string} [
|
|
192
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
191
193
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
192
194
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: primaryBankAccount<i>
|
|
195
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
193
196
|
* @param {*} [options] Override http request option.
|
|
194
197
|
* @throws {RequiredError}
|
|
195
198
|
*/
|
|
196
|
-
listBankAccounts: async (authorization?: string, filter?: string,
|
|
199
|
+
listBankAccounts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
200
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
198
201
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
199
202
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -212,12 +215,20 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
212
215
|
// http bearer authentication required
|
|
213
216
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
214
217
|
|
|
218
|
+
if (pageSize !== undefined) {
|
|
219
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (pageToken !== undefined) {
|
|
223
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
224
|
+
}
|
|
225
|
+
|
|
215
226
|
if (filter !== undefined) {
|
|
216
227
|
localVarQueryParameter['filter'] = filter;
|
|
217
228
|
}
|
|
218
229
|
|
|
219
|
-
if (
|
|
220
|
-
localVarQueryParameter['
|
|
230
|
+
if (search !== undefined) {
|
|
231
|
+
localVarQueryParameter['search'] = search;
|
|
221
232
|
}
|
|
222
233
|
|
|
223
234
|
if (order !== undefined) {
|
|
@@ -228,6 +239,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
228
239
|
localVarQueryParameter['expand'] = expand;
|
|
229
240
|
}
|
|
230
241
|
|
|
242
|
+
if (filters !== undefined) {
|
|
243
|
+
localVarQueryParameter['filters'] = filters;
|
|
244
|
+
}
|
|
245
|
+
|
|
231
246
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
232
247
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
233
248
|
}
|
|
@@ -244,7 +259,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
244
259
|
};
|
|
245
260
|
},
|
|
246
261
|
/**
|
|
247
|
-
* Set the primary bank account for the specified partner/account
|
|
262
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
248
263
|
* @summary Set primary bank account
|
|
249
264
|
* @param {string} code Code of the bank account to set primary
|
|
250
265
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -295,7 +310,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
295
310
|
};
|
|
296
311
|
},
|
|
297
312
|
/**
|
|
298
|
-
* Update a bank account by code
|
|
313
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
299
314
|
* @summary Update the bank account
|
|
300
315
|
* @param {string} code Unique identifier for the object.
|
|
301
316
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
@@ -356,7 +371,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
356
371
|
const localVarAxiosParamCreator = BankAccountsApiAxiosParamCreator(configuration)
|
|
357
372
|
return {
|
|
358
373
|
/**
|
|
359
|
-
* 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.
|
|
374
|
+
* 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\"
|
|
360
375
|
* @summary Create the bank account
|
|
361
376
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
362
377
|
* @param {string} [authorization] Bearer Token
|
|
@@ -368,7 +383,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
368
383
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
369
384
|
},
|
|
370
385
|
/**
|
|
371
|
-
* 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.
|
|
386
|
+
* 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\"
|
|
372
387
|
* @summary Delete the bank account
|
|
373
388
|
* @param {string} code Unique identifier for the object.
|
|
374
389
|
* @param {string} [authorization] Bearer Token
|
|
@@ -380,7 +395,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
380
395
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
396
|
},
|
|
382
397
|
/**
|
|
383
|
-
* 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.
|
|
398
|
+
* 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\"
|
|
384
399
|
* @summary Retrieve the bank account
|
|
385
400
|
* @param {string} code
|
|
386
401
|
* @param {string} [authorization] Bearer Token
|
|
@@ -393,22 +408,25 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
393
408
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
394
409
|
},
|
|
395
410
|
/**
|
|
396
|
-
* 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.
|
|
411
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
397
412
|
* @summary List bank accounts
|
|
398
413
|
* @param {string} [authorization] Bearer Token
|
|
414
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
415
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
399
416
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
400
|
-
* @param {string} [
|
|
417
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
401
418
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
402
419
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: primaryBankAccount<i>
|
|
420
|
+
* @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>
|
|
403
421
|
* @param {*} [options] Override http request option.
|
|
404
422
|
* @throws {RequiredError}
|
|
405
423
|
*/
|
|
406
|
-
async listBankAccounts(authorization?: string, filter?: string,
|
|
407
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, filter,
|
|
424
|
+
async listBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>> {
|
|
425
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
408
426
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
409
427
|
},
|
|
410
428
|
/**
|
|
411
|
-
* Set the primary bank account for the specified partner/account
|
|
429
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
412
430
|
* @summary Set primary bank account
|
|
413
431
|
* @param {string} code Code of the bank account to set primary
|
|
414
432
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -421,7 +439,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
421
439
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
422
440
|
},
|
|
423
441
|
/**
|
|
424
|
-
* Update a bank account by code
|
|
442
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
425
443
|
* @summary Update the bank account
|
|
426
444
|
* @param {string} code Unique identifier for the object.
|
|
427
445
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
@@ -444,7 +462,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
444
462
|
const localVarFp = BankAccountsApiFp(configuration)
|
|
445
463
|
return {
|
|
446
464
|
/**
|
|
447
|
-
* 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.
|
|
465
|
+
* 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\"
|
|
448
466
|
* @summary Create the bank account
|
|
449
467
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
450
468
|
* @param {string} [authorization] Bearer Token
|
|
@@ -455,7 +473,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
455
473
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
456
474
|
},
|
|
457
475
|
/**
|
|
458
|
-
* 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.
|
|
476
|
+
* 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\"
|
|
459
477
|
* @summary Delete the bank account
|
|
460
478
|
* @param {string} code Unique identifier for the object.
|
|
461
479
|
* @param {string} [authorization] Bearer Token
|
|
@@ -466,7 +484,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
466
484
|
return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
467
485
|
},
|
|
468
486
|
/**
|
|
469
|
-
* 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.
|
|
487
|
+
* 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\"
|
|
470
488
|
* @summary Retrieve the bank account
|
|
471
489
|
* @param {string} code
|
|
472
490
|
* @param {string} [authorization] Bearer Token
|
|
@@ -478,21 +496,24 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
478
496
|
return localVarFp.getBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
479
497
|
},
|
|
480
498
|
/**
|
|
481
|
-
* 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.
|
|
499
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
482
500
|
* @summary List bank accounts
|
|
483
501
|
* @param {string} [authorization] Bearer Token
|
|
502
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
503
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
484
504
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
485
|
-
* @param {string} [
|
|
505
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
486
506
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
487
507
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: primaryBankAccount<i>
|
|
508
|
+
* @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>
|
|
488
509
|
* @param {*} [options] Override http request option.
|
|
489
510
|
* @throws {RequiredError}
|
|
490
511
|
*/
|
|
491
|
-
listBankAccounts(authorization?: string, filter?: string,
|
|
492
|
-
return localVarFp.listBankAccounts(authorization, filter,
|
|
512
|
+
listBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
|
|
513
|
+
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
493
514
|
},
|
|
494
515
|
/**
|
|
495
|
-
* Set the primary bank account for the specified partner/account
|
|
516
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
496
517
|
* @summary Set primary bank account
|
|
497
518
|
* @param {string} code Code of the bank account to set primary
|
|
498
519
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -504,7 +525,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
504
525
|
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
505
526
|
},
|
|
506
527
|
/**
|
|
507
|
-
* Update a bank account by code
|
|
528
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
508
529
|
* @summary Update the bank account
|
|
509
530
|
* @param {string} code Unique identifier for the object.
|
|
510
531
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
@@ -601,6 +622,20 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
601
622
|
*/
|
|
602
623
|
readonly authorization?: string
|
|
603
624
|
|
|
625
|
+
/**
|
|
626
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
627
|
+
* @type {number}
|
|
628
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
629
|
+
*/
|
|
630
|
+
readonly pageSize?: number
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
634
|
+
* @type {string}
|
|
635
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
636
|
+
*/
|
|
637
|
+
readonly pageToken?: string
|
|
638
|
+
|
|
604
639
|
/**
|
|
605
640
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
606
641
|
* @type {string}
|
|
@@ -609,11 +644,11 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
609
644
|
readonly filter?: string
|
|
610
645
|
|
|
611
646
|
/**
|
|
612
|
-
*
|
|
647
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
613
648
|
* @type {string}
|
|
614
649
|
* @memberof BankAccountsApiListBankAccounts
|
|
615
650
|
*/
|
|
616
|
-
readonly
|
|
651
|
+
readonly search?: string
|
|
617
652
|
|
|
618
653
|
/**
|
|
619
654
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
@@ -628,6 +663,13 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
628
663
|
* @memberof BankAccountsApiListBankAccounts
|
|
629
664
|
*/
|
|
630
665
|
readonly expand?: string
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
669
|
+
* @type {string}
|
|
670
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
671
|
+
*/
|
|
672
|
+
readonly filters?: string
|
|
631
673
|
}
|
|
632
674
|
|
|
633
675
|
/**
|
|
@@ -694,7 +736,7 @@ export interface BankAccountsApiUpdateBankAccountRequest {
|
|
|
694
736
|
*/
|
|
695
737
|
export class BankAccountsApi extends BaseAPI {
|
|
696
738
|
/**
|
|
697
|
-
* 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.
|
|
739
|
+
* 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\"
|
|
698
740
|
* @summary Create the bank account
|
|
699
741
|
* @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
|
|
700
742
|
* @param {*} [options] Override http request option.
|
|
@@ -706,7 +748,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
706
748
|
}
|
|
707
749
|
|
|
708
750
|
/**
|
|
709
|
-
* 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.
|
|
751
|
+
* 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\"
|
|
710
752
|
* @summary Delete the bank account
|
|
711
753
|
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
712
754
|
* @param {*} [options] Override http request option.
|
|
@@ -718,7 +760,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
718
760
|
}
|
|
719
761
|
|
|
720
762
|
/**
|
|
721
|
-
* 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.
|
|
763
|
+
* 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\"
|
|
722
764
|
* @summary Retrieve the bank account
|
|
723
765
|
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
724
766
|
* @param {*} [options] Override http request option.
|
|
@@ -730,7 +772,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
730
772
|
}
|
|
731
773
|
|
|
732
774
|
/**
|
|
733
|
-
* 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.
|
|
775
|
+
* 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\"
|
|
734
776
|
* @summary List bank accounts
|
|
735
777
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
736
778
|
* @param {*} [options] Override http request option.
|
|
@@ -738,11 +780,11 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
738
780
|
* @memberof BankAccountsApi
|
|
739
781
|
*/
|
|
740
782
|
public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
741
|
-
return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
783
|
+
return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
742
784
|
}
|
|
743
785
|
|
|
744
786
|
/**
|
|
745
|
-
* Set the primary bank account for the specified partner/account
|
|
787
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
746
788
|
* @summary Set primary bank account
|
|
747
789
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
748
790
|
* @param {*} [options] Override http request option.
|
|
@@ -754,7 +796,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
754
796
|
}
|
|
755
797
|
|
|
756
798
|
/**
|
|
757
|
-
* Update a bank account by code
|
|
799
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
758
800
|
* @summary Update the bank account
|
|
759
801
|
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
760
802
|
* @param {*} [options] Override http request option.
|