@emilgroup/payment-sdk-node 1.13.1-beta.30 → 1.13.1-beta.32
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 +5 -15
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +34 -38
- package/api/bank-transaction-api.ts +73 -77
- package/api/{default-api.ts → health-check-api.ts} +21 -17
- package/api/payment-methods-api.ts +52 -70
- package/api/payment-reminders-api.ts +63 -49
- package/api/payment-setup-api.ts +16 -8
- package/api/payments-api.ts +52 -70
- package/api/refunds-api.ts +76 -88
- package/api/tenant-bank-account-api.ts +79 -63
- package/api/webhooks-api.ts +16 -12
- package/api.ts +2 -2
- package/base.ts +15 -7
- package/dist/api/bank-accounts-api.d.ts +37 -39
- package/dist/api/bank-accounts-api.js +18 -18
- package/dist/api/bank-transaction-api.d.ts +77 -79
- package/dist/api/bank-transaction-api.js +45 -45
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +30 -26
- package/dist/api/payment-methods-api.d.ts +49 -58
- package/dist/api/payment-methods-api.js +32 -42
- package/dist/api/payment-reminders-api.d.ts +55 -46
- package/dist/api/payment-reminders-api.js +40 -34
- package/dist/api/payment-setup-api.d.ts +16 -8
- package/dist/api/payment-setup-api.js +16 -8
- package/dist/api/payments-api.d.ts +49 -58
- package/dist/api/payments-api.js +32 -42
- package/dist/api/refunds-api.d.ts +76 -76
- package/dist/api/refunds-api.js +51 -49
- package/dist/api/tenant-bank-account-api.d.ts +71 -61
- package/dist/api/tenant-bank-account-api.js +51 -45
- package/dist/api/webhooks-api.d.ts +16 -12
- package/dist/api/webhooks-api.js +14 -10
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +3 -1
- package/dist/base.js +27 -20
- package/dist/models/{bank-transaction-response-class.d.ts → bank-transaction-class-without-expand-properties.d.ts} +20 -34
- package/dist/models/create-tenant-bank-account-response-class.d.ts +4 -4
- package/dist/models/get-tenant-bank-account-response-class.d.ts +4 -4
- package/dist/models/index.d.ts +4 -14
- package/dist/models/index.js +4 -14
- package/dist/models/list-tenant-bank-account-response-class.d.ts +5 -5
- package/dist/models/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +10 -10
- package/dist/models/tenant-bank-account-class.d.ts +73 -0
- package/dist/models/{get-bank-account-response-class.d.ts → update-tenant-bank-account-response-class.d.ts} +7 -7
- package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +20 -34
- package/models/create-tenant-bank-account-response-class.ts +4 -4
- package/models/get-tenant-bank-account-response-class.ts +4 -4
- package/models/index.ts +4 -14
- package/models/list-tenant-bank-account-response-class.ts +5 -5
- package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +10 -10
- package/models/tenant-bank-account-class.ts +79 -0
- package/models/{create-refund-response-class.ts → update-tenant-bank-account-response-class.ts} +7 -7
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
- package/dist/models/bank-account-class.d.ts +0 -73
- package/dist/models/create-refund-response-class.d.ts +0 -25
- 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-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/get-request-dto.d.ts +0 -30
- package/dist/models/get-request-dto.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-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-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.d.ts +0 -105
- package/dist/models/refund-class.js +0 -29
- package/dist/models/tenant-bank-account-response-class.js +0 -15
- package/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-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.ts +0 -79
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/get-request-dto.ts +0 -36
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/refund-class.ts +0 -115
- package/models/transaction-class.ts +0 -60
- package/models/update-bank-account-response-class.ts +0 -31
- /package/dist/models/{bank-account-class.js → bank-transaction-class-without-expand-properties.js} +0 -0
- /package/dist/models/{bank-transaction-response-class.js → tenant-bank-account-class-without-expand-properties.js} +0 -0
- /package/dist/models/{create-refund-response-class.js → tenant-bank-account-class.js} +0 -0
- /package/dist/models/{get-bank-account-response-class.js → update-tenant-bank-account-response-class.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -5,7 +5,7 @@ README.md
|
|
|
5
5
|
api.ts
|
|
6
6
|
api/bank-accounts-api.ts
|
|
7
7
|
api/bank-transaction-api.ts
|
|
8
|
-
api/
|
|
8
|
+
api/health-check-api.ts
|
|
9
9
|
api/payment-methods-api.ts
|
|
10
10
|
api/payment-reminders-api.ts
|
|
11
11
|
api/payment-setup-api.ts
|
|
@@ -18,37 +18,27 @@ common.ts
|
|
|
18
18
|
configuration.ts
|
|
19
19
|
git_push.sh
|
|
20
20
|
index.ts
|
|
21
|
-
models/bank-
|
|
22
|
-
models/bank-transaction-response-class.ts
|
|
21
|
+
models/bank-transaction-class-without-expand-properties.ts
|
|
23
22
|
models/create-bank-account-request-dto.ts
|
|
24
23
|
models/create-payment-reminder-request-dto.ts
|
|
25
24
|
models/create-payment-request-dto.ts
|
|
26
25
|
models/create-refund-request-dto.ts
|
|
27
|
-
models/create-refund-response-class.ts
|
|
28
26
|
models/create-tenant-bank-account-request-dto.ts
|
|
29
27
|
models/create-tenant-bank-account-response-class.ts
|
|
30
28
|
models/deactivate-payment-reminder-request-dto.ts
|
|
31
|
-
models/get-bank-account-response-class.ts
|
|
32
|
-
models/get-bank-transactions-response-class.ts
|
|
33
|
-
models/get-refund-response-class.ts
|
|
34
|
-
models/get-request-dto.ts
|
|
35
29
|
models/get-tenant-bank-account-response-class.ts
|
|
36
30
|
models/index.ts
|
|
37
31
|
models/inline-response200.ts
|
|
38
32
|
models/inline-response503.ts
|
|
39
33
|
models/link-bank-transaction-request-dto-rest.ts
|
|
40
|
-
models/list-bank-transactions-response-class.ts
|
|
41
|
-
models/list-refunds-response-class.ts
|
|
42
34
|
models/list-tenant-bank-account-response-class.ts
|
|
43
|
-
models/primary-bank-account-response-class.ts
|
|
44
|
-
models/refund-class.ts
|
|
45
35
|
models/set-primary-bank-account-request-dto-rest.ts
|
|
46
|
-
models/tenant-bank-account-
|
|
47
|
-
models/
|
|
36
|
+
models/tenant-bank-account-class-without-expand-properties.ts
|
|
37
|
+
models/tenant-bank-account-class.ts
|
|
48
38
|
models/unlink-bank-transaction-request-dto-rest.ts
|
|
49
39
|
models/update-bank-account-request-dto-rest.ts
|
|
50
40
|
models/update-bank-account-request-dto.ts
|
|
51
|
-
models/update-bank-account-response-class.ts
|
|
41
|
+
models/update-tenant-bank-account-response-class.ts
|
|
52
42
|
models/update-tenant-bank-account-rest-request-dto.ts
|
|
53
43
|
models/validate-pspconfig-request-dto.ts
|
|
54
44
|
package.json
|
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.32 --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.32
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -23,13 +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 { GetBankAccountResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
26
|
import { SetPrimaryBankAccountRequestDtoRest } from '../models';
|
|
29
27
|
// @ts-ignore
|
|
30
28
|
import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { UpdateBankAccountResponseClass } from '../models';
|
|
33
29
|
// URLSearchParams not necessarily used
|
|
34
30
|
// @ts-ignore
|
|
35
31
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -41,8 +37,8 @@ const FormData = require('form-data');
|
|
|
41
37
|
export const BankAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
38
|
return {
|
|
43
39
|
/**
|
|
44
|
-
*
|
|
45
|
-
* @summary Create
|
|
40
|
+
* 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.
|
|
41
|
+
* @summary Create the bank account
|
|
46
42
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
47
43
|
* @param {string} [authorization] Bearer Token
|
|
48
44
|
* @param {*} [options] Override http request option.
|
|
@@ -137,11 +133,11 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
137
133
|
* @summary Retrieve the bank account
|
|
138
134
|
* @param {string} code Unique identifier for the object.
|
|
139
135
|
* @param {string} [authorization] Bearer Token
|
|
140
|
-
* @param {
|
|
136
|
+
* @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>
|
|
141
137
|
* @param {*} [options] Override http request option.
|
|
142
138
|
* @throws {RequiredError}
|
|
143
139
|
*/
|
|
144
|
-
getBankAccount: async (code: string, authorization?: string, expand?:
|
|
140
|
+
getBankAccount: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
145
141
|
// verify required parameter 'code' is not null or undefined
|
|
146
142
|
assertParamExists('getBankAccount', 'code', code)
|
|
147
143
|
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
@@ -191,12 +187,12 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
191
187
|
* @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>
|
|
192
188
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
193
189
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
194
|
-
* @param {
|
|
190
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: primaryBankAccount.<i>
|
|
195
191
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
196
192
|
* @param {*} [options] Override http request option.
|
|
197
193
|
* @throws {RequiredError}
|
|
198
194
|
*/
|
|
199
|
-
listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
195
|
+
listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
200
196
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
201
197
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
198
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -311,7 +307,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
311
307
|
},
|
|
312
308
|
/**
|
|
313
309
|
* Update a bank account by code
|
|
314
|
-
* @summary Update the
|
|
310
|
+
* @summary Update the bank account
|
|
315
311
|
* @param {string} code Unique identifier for the object.
|
|
316
312
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
317
313
|
* @param {string} [authorization] Bearer Token
|
|
@@ -371,8 +367,8 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
371
367
|
const localVarAxiosParamCreator = BankAccountsApiAxiosParamCreator(configuration)
|
|
372
368
|
return {
|
|
373
369
|
/**
|
|
374
|
-
*
|
|
375
|
-
* @summary Create
|
|
370
|
+
* 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.
|
|
371
|
+
* @summary Create the bank account
|
|
376
372
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
377
373
|
* @param {string} [authorization] Bearer Token
|
|
378
374
|
* @param {*} [options] Override http request option.
|
|
@@ -390,7 +386,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
390
386
|
* @param {*} [options] Override http request option.
|
|
391
387
|
* @throws {RequiredError}
|
|
392
388
|
*/
|
|
393
|
-
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
389
|
+
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
394
390
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankAccount(code, authorization, options);
|
|
395
391
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
396
392
|
},
|
|
@@ -399,11 +395,11 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
399
395
|
* @summary Retrieve the bank account
|
|
400
396
|
* @param {string} code Unique identifier for the object.
|
|
401
397
|
* @param {string} [authorization] Bearer Token
|
|
402
|
-
* @param {
|
|
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>
|
|
403
399
|
* @param {*} [options] Override http request option.
|
|
404
400
|
* @throws {RequiredError}
|
|
405
401
|
*/
|
|
406
|
-
async getBankAccount(code: string, authorization?: string, expand?:
|
|
402
|
+
async getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
407
403
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, expand, options);
|
|
408
404
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
409
405
|
},
|
|
@@ -416,12 +412,12 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
416
412
|
* @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>
|
|
417
413
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
418
414
|
* @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>
|
|
419
|
-
* @param {
|
|
415
|
+
* @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
416
|
* @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>
|
|
421
417
|
* @param {*} [options] Override http request option.
|
|
422
418
|
* @throws {RequiredError}
|
|
423
419
|
*/
|
|
424
|
-
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
420
|
+
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
425
421
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
426
422
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
427
423
|
},
|
|
@@ -440,14 +436,14 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
440
436
|
},
|
|
441
437
|
/**
|
|
442
438
|
* Update a bank account by code
|
|
443
|
-
* @summary Update the
|
|
439
|
+
* @summary Update the bank account
|
|
444
440
|
* @param {string} code Unique identifier for the object.
|
|
445
441
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
446
442
|
* @param {string} [authorization] Bearer Token
|
|
447
443
|
* @param {*} [options] Override http request option.
|
|
448
444
|
* @throws {RequiredError}
|
|
449
445
|
*/
|
|
450
|
-
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
446
|
+
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
451
447
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
|
|
452
448
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
453
449
|
},
|
|
@@ -462,8 +458,8 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
462
458
|
const localVarFp = BankAccountsApiFp(configuration)
|
|
463
459
|
return {
|
|
464
460
|
/**
|
|
465
|
-
*
|
|
466
|
-
* @summary Create
|
|
461
|
+
* 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.
|
|
462
|
+
* @summary Create the bank account
|
|
467
463
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
468
464
|
* @param {string} [authorization] Bearer Token
|
|
469
465
|
* @param {*} [options] Override http request option.
|
|
@@ -480,7 +476,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
480
476
|
* @param {*} [options] Override http request option.
|
|
481
477
|
* @throws {RequiredError}
|
|
482
478
|
*/
|
|
483
|
-
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
479
|
+
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
484
480
|
return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
485
481
|
},
|
|
486
482
|
/**
|
|
@@ -488,11 +484,11 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
488
484
|
* @summary Retrieve the bank account
|
|
489
485
|
* @param {string} code Unique identifier for the object.
|
|
490
486
|
* @param {string} [authorization] Bearer Token
|
|
491
|
-
* @param {
|
|
487
|
+
* @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>
|
|
492
488
|
* @param {*} [options] Override http request option.
|
|
493
489
|
* @throws {RequiredError}
|
|
494
490
|
*/
|
|
495
|
-
getBankAccount(code: string, authorization?: string, expand?:
|
|
491
|
+
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
496
492
|
return localVarFp.getBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
497
493
|
},
|
|
498
494
|
/**
|
|
@@ -504,12 +500,12 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
504
500
|
* @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>
|
|
505
501
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
506
502
|
* @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>
|
|
507
|
-
* @param {
|
|
503
|
+
* @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
504
|
* @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>
|
|
509
505
|
* @param {*} [options] Override http request option.
|
|
510
506
|
* @throws {RequiredError}
|
|
511
507
|
*/
|
|
512
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
508
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
513
509
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
514
510
|
},
|
|
515
511
|
/**
|
|
@@ -526,14 +522,14 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
526
522
|
},
|
|
527
523
|
/**
|
|
528
524
|
* Update a bank account by code
|
|
529
|
-
* @summary Update the
|
|
525
|
+
* @summary Update the bank account
|
|
530
526
|
* @param {string} code Unique identifier for the object.
|
|
531
527
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
532
528
|
* @param {string} [authorization] Bearer Token
|
|
533
529
|
* @param {*} [options] Override http request option.
|
|
534
530
|
* @throws {RequiredError}
|
|
535
531
|
*/
|
|
536
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
532
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
537
533
|
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
538
534
|
},
|
|
539
535
|
};
|
|
@@ -602,11 +598,11 @@ export interface BankAccountsApiGetBankAccountRequest {
|
|
|
602
598
|
readonly authorization?: string
|
|
603
599
|
|
|
604
600
|
/**
|
|
605
|
-
* Expand
|
|
606
|
-
* @type {
|
|
601
|
+
* 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>
|
|
602
|
+
* @type {string}
|
|
607
603
|
* @memberof BankAccountsApiGetBankAccount
|
|
608
604
|
*/
|
|
609
|
-
readonly expand?:
|
|
605
|
+
readonly expand?: string
|
|
610
606
|
}
|
|
611
607
|
|
|
612
608
|
/**
|
|
@@ -658,11 +654,11 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
658
654
|
readonly order?: string
|
|
659
655
|
|
|
660
656
|
/**
|
|
661
|
-
* Expand to fetch additional information about the list items.
|
|
662
|
-
* @type {
|
|
657
|
+
* 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>
|
|
658
|
+
* @type {string}
|
|
663
659
|
* @memberof BankAccountsApiListBankAccounts
|
|
664
660
|
*/
|
|
665
|
-
readonly expand?:
|
|
661
|
+
readonly expand?: string
|
|
666
662
|
|
|
667
663
|
/**
|
|
668
664
|
* 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>
|
|
@@ -736,8 +732,8 @@ export interface BankAccountsApiUpdateBankAccountRequest {
|
|
|
736
732
|
*/
|
|
737
733
|
export class BankAccountsApi extends BaseAPI {
|
|
738
734
|
/**
|
|
739
|
-
*
|
|
740
|
-
* @summary Create
|
|
735
|
+
* 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.
|
|
736
|
+
* @summary Create the bank account
|
|
741
737
|
* @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
|
|
742
738
|
* @param {*} [options] Override http request option.
|
|
743
739
|
* @throws {RequiredError}
|
|
@@ -797,7 +793,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
797
793
|
|
|
798
794
|
/**
|
|
799
795
|
* Update a bank account by code
|
|
800
|
-
* @summary Update the
|
|
796
|
+
* @summary Update the bank account
|
|
801
797
|
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
802
798
|
* @param {*} [options] Override http request option.
|
|
803
799
|
* @throws {RequiredError}
|