@emilgroup/payment-sdk 1.4.1-beta.30 → 1.4.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@1.4.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.4.1-beta.32 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.4.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.4.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
|
/**
|
|
34
30
|
* BankAccountsApi - axios parameter creator
|
|
35
31
|
* @export
|
|
@@ -37,8 +33,8 @@ import { UpdateBankAccountResponseClass } from '../models';
|
|
|
37
33
|
export const BankAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
34
|
return {
|
|
39
35
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @summary Create
|
|
36
|
+
* 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.
|
|
37
|
+
* @summary Create the bank account
|
|
42
38
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
43
39
|
* @param {string} [authorization] Bearer Token
|
|
44
40
|
* @param {*} [options] Override http request option.
|
|
@@ -133,11 +129,11 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
133
129
|
* @summary Retrieve the bank account
|
|
134
130
|
* @param {string} code Unique identifier for the object.
|
|
135
131
|
* @param {string} [authorization] Bearer Token
|
|
136
|
-
* @param {
|
|
132
|
+
* @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>
|
|
137
133
|
* @param {*} [options] Override http request option.
|
|
138
134
|
* @throws {RequiredError}
|
|
139
135
|
*/
|
|
140
|
-
getBankAccount: async (code: string, authorization?: string, expand?:
|
|
136
|
+
getBankAccount: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
141
137
|
// verify required parameter 'code' is not null or undefined
|
|
142
138
|
assertParamExists('getBankAccount', 'code', code)
|
|
143
139
|
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
@@ -187,12 +183,12 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
187
183
|
* @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>
|
|
188
184
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
189
185
|
* @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>
|
|
190
|
-
* @param {
|
|
186
|
+
* @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>
|
|
191
187
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
192
188
|
* @param {*} [options] Override http request option.
|
|
193
189
|
* @throws {RequiredError}
|
|
194
190
|
*/
|
|
195
|
-
listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
191
|
+
listBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
196
192
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
197
193
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
198
194
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -307,7 +303,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
307
303
|
},
|
|
308
304
|
/**
|
|
309
305
|
* Update a bank account by code
|
|
310
|
-
* @summary Update the
|
|
306
|
+
* @summary Update the bank account
|
|
311
307
|
* @param {string} code Unique identifier for the object.
|
|
312
308
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
313
309
|
* @param {string} [authorization] Bearer Token
|
|
@@ -367,8 +363,8 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
367
363
|
const localVarAxiosParamCreator = BankAccountsApiAxiosParamCreator(configuration)
|
|
368
364
|
return {
|
|
369
365
|
/**
|
|
370
|
-
*
|
|
371
|
-
* @summary Create
|
|
366
|
+
* 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.
|
|
367
|
+
* @summary Create the bank account
|
|
372
368
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
373
369
|
* @param {string} [authorization] Bearer Token
|
|
374
370
|
* @param {*} [options] Override http request option.
|
|
@@ -386,7 +382,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
386
382
|
* @param {*} [options] Override http request option.
|
|
387
383
|
* @throws {RequiredError}
|
|
388
384
|
*/
|
|
389
|
-
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
385
|
+
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
390
386
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankAccount(code, authorization, options);
|
|
391
387
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
392
388
|
},
|
|
@@ -395,11 +391,11 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
395
391
|
* @summary Retrieve the bank account
|
|
396
392
|
* @param {string} code Unique identifier for the object.
|
|
397
393
|
* @param {string} [authorization] Bearer Token
|
|
398
|
-
* @param {
|
|
394
|
+
* @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>
|
|
399
395
|
* @param {*} [options] Override http request option.
|
|
400
396
|
* @throws {RequiredError}
|
|
401
397
|
*/
|
|
402
|
-
async getBankAccount(code: string, authorization?: string, expand?:
|
|
398
|
+
async getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
403
399
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, expand, options);
|
|
404
400
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
405
401
|
},
|
|
@@ -412,12 +408,12 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
412
408
|
* @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>
|
|
413
409
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
414
410
|
* @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>
|
|
415
|
-
* @param {
|
|
411
|
+
* @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>
|
|
416
412
|
* @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>
|
|
417
413
|
* @param {*} [options] Override http request option.
|
|
418
414
|
* @throws {RequiredError}
|
|
419
415
|
*/
|
|
420
|
-
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
416
|
+
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>> {
|
|
421
417
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
422
418
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
423
419
|
},
|
|
@@ -436,14 +432,14 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
436
432
|
},
|
|
437
433
|
/**
|
|
438
434
|
* Update a bank account by code
|
|
439
|
-
* @summary Update the
|
|
435
|
+
* @summary Update the bank account
|
|
440
436
|
* @param {string} code Unique identifier for the object.
|
|
441
437
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
442
438
|
* @param {string} [authorization] Bearer Token
|
|
443
439
|
* @param {*} [options] Override http request option.
|
|
444
440
|
* @throws {RequiredError}
|
|
445
441
|
*/
|
|
446
|
-
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
442
|
+
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
447
443
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
|
|
448
444
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
449
445
|
},
|
|
@@ -458,8 +454,8 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
458
454
|
const localVarFp = BankAccountsApiFp(configuration)
|
|
459
455
|
return {
|
|
460
456
|
/**
|
|
461
|
-
*
|
|
462
|
-
* @summary Create
|
|
457
|
+
* 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.
|
|
458
|
+
* @summary Create the bank account
|
|
463
459
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
464
460
|
* @param {string} [authorization] Bearer Token
|
|
465
461
|
* @param {*} [options] Override http request option.
|
|
@@ -476,7 +472,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
476
472
|
* @param {*} [options] Override http request option.
|
|
477
473
|
* @throws {RequiredError}
|
|
478
474
|
*/
|
|
479
|
-
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
475
|
+
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
480
476
|
return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
481
477
|
},
|
|
482
478
|
/**
|
|
@@ -484,11 +480,11 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
484
480
|
* @summary Retrieve the bank account
|
|
485
481
|
* @param {string} code Unique identifier for the object.
|
|
486
482
|
* @param {string} [authorization] Bearer Token
|
|
487
|
-
* @param {
|
|
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>
|
|
488
484
|
* @param {*} [options] Override http request option.
|
|
489
485
|
* @throws {RequiredError}
|
|
490
486
|
*/
|
|
491
|
-
getBankAccount(code: string, authorization?: string, expand?:
|
|
487
|
+
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
492
488
|
return localVarFp.getBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
493
489
|
},
|
|
494
490
|
/**
|
|
@@ -500,12 +496,12 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
500
496
|
* @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>
|
|
501
497
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
502
498
|
* @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>
|
|
503
|
-
* @param {
|
|
499
|
+
* @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>
|
|
504
500
|
* @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>
|
|
505
501
|
* @param {*} [options] Override http request option.
|
|
506
502
|
* @throws {RequiredError}
|
|
507
503
|
*/
|
|
508
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?:
|
|
504
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
509
505
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
510
506
|
},
|
|
511
507
|
/**
|
|
@@ -522,14 +518,14 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
522
518
|
},
|
|
523
519
|
/**
|
|
524
520
|
* Update a bank account by code
|
|
525
|
-
* @summary Update the
|
|
521
|
+
* @summary Update the bank account
|
|
526
522
|
* @param {string} code Unique identifier for the object.
|
|
527
523
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
528
524
|
* @param {string} [authorization] Bearer Token
|
|
529
525
|
* @param {*} [options] Override http request option.
|
|
530
526
|
* @throws {RequiredError}
|
|
531
527
|
*/
|
|
532
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
528
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
533
529
|
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
534
530
|
},
|
|
535
531
|
};
|
|
@@ -598,11 +594,11 @@ export interface BankAccountsApiGetBankAccountRequest {
|
|
|
598
594
|
readonly authorization?: string
|
|
599
595
|
|
|
600
596
|
/**
|
|
601
|
-
* Expand
|
|
602
|
-
* @type {
|
|
597
|
+
* 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>
|
|
598
|
+
* @type {string}
|
|
603
599
|
* @memberof BankAccountsApiGetBankAccount
|
|
604
600
|
*/
|
|
605
|
-
readonly expand?:
|
|
601
|
+
readonly expand?: string
|
|
606
602
|
}
|
|
607
603
|
|
|
608
604
|
/**
|
|
@@ -654,11 +650,11 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
654
650
|
readonly order?: string
|
|
655
651
|
|
|
656
652
|
/**
|
|
657
|
-
* Expand to fetch additional information about the list items.
|
|
658
|
-
* @type {
|
|
653
|
+
* 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>
|
|
654
|
+
* @type {string}
|
|
659
655
|
* @memberof BankAccountsApiListBankAccounts
|
|
660
656
|
*/
|
|
661
|
-
readonly expand?:
|
|
657
|
+
readonly expand?: string
|
|
662
658
|
|
|
663
659
|
/**
|
|
664
660
|
* 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>
|
|
@@ -732,8 +728,8 @@ export interface BankAccountsApiUpdateBankAccountRequest {
|
|
|
732
728
|
*/
|
|
733
729
|
export class BankAccountsApi extends BaseAPI {
|
|
734
730
|
/**
|
|
735
|
-
*
|
|
736
|
-
* @summary Create
|
|
731
|
+
* 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.
|
|
732
|
+
* @summary Create the bank account
|
|
737
733
|
* @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
|
|
738
734
|
* @param {*} [options] Override http request option.
|
|
739
735
|
* @throws {RequiredError}
|
|
@@ -793,7 +789,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
793
789
|
|
|
794
790
|
/**
|
|
795
791
|
* Update a bank account by code
|
|
796
|
-
* @summary Update the
|
|
792
|
+
* @summary Update the bank account
|
|
797
793
|
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
798
794
|
* @param {*} [options] Override http request option.
|
|
799
795
|
* @throws {RequiredError}
|