@emilgroup/payment-sdk-node 1.13.1-beta.21 → 1.13.1-beta.22
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 +7 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +461 -19
- package/api/bank-transaction-api.ts +9 -9
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +1 -1
- package/api/payment-reminders-api.ts +9 -9
- package/api/payment-setup-api.ts +1 -1
- package/api/payments-api.ts +1 -1
- package/api/refunds-api.ts +1 -1
- package/api/tenant-bank-account-api.ts +9 -9
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +255 -13
- package/dist/api/bank-accounts-api.js +399 -17
- package/dist/api/bank-transaction-api.d.ts +9 -9
- package/dist/api/bank-transaction-api.js +9 -9
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +1 -1
- package/dist/api/payment-methods-api.js +1 -1
- package/dist/api/payment-reminders-api.d.ts +9 -9
- package/dist/api/payment-reminders-api.js +9 -9
- package/dist/api/payment-setup-api.d.ts +1 -1
- package/dist/api/payment-setup-api.js +1 -1
- package/dist/api/payments-api.d.ts +1 -1
- package/dist/api/payments-api.js +1 -1
- package/dist/api/refunds-api.d.ts +1 -1
- package/dist/api/refunds-api.js +1 -1
- package/dist/api/tenant-bank-account-api.d.ts +9 -9
- package/dist/api/tenant-bank-account-api.js +9 -9
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-account-class.d.ts +79 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/bank-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-bank-account-request-dto.d.ts +36 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/create-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-response-class.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-bank-account-response-class.d.ts +25 -0
- package/dist/models/get-bank-account-response-class.js +15 -0
- package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- package/dist/models/get-refund-response-class.d.ts +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +1 -1
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.js +1 -1
- package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- package/dist/models/list-refunds-response-class.d.ts +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/list-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/list-tenant-bank-account-response-class.js +1 -1
- package/dist/models/primary-bank-account-response-class.d.ts +42 -0
- package/dist/models/primary-bank-account-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +1 -1
- package/dist/models/unlink-bank-transaction-request-dto-rest.js +1 -1
- package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
- package/dist/models/update-bank-account-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto.d.ts +36 -0
- package/dist/models/update-bank-account-request-dto.js +15 -0
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +1 -1
- package/dist/models/validate-pspconfig-request-dto.js +1 -1
- package/index.ts +1 -1
- package/models/bank-account-class.ts +85 -0
- package/models/bank-transaction-response-class.ts +1 -1
- package/models/create-bank-account-request-dto.ts +42 -0
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +1 -1
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/create-tenant-bank-account-response-class.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-account-response-class.ts +31 -0
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +1 -1
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +7 -0
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +1 -1
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/list-tenant-bank-account-response-class.ts +1 -1
- package/models/primary-bank-account-response-class.ts +48 -0
- package/models/refund-class.ts +1 -1
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/unlink-bank-transaction-request-dto-rest.ts +1 -1
- package/models/update-bank-account-request-dto-rest.ts +36 -0
- package/models/update-bank-account-request-dto.ts +42 -0
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -18,7 +18,9 @@ common.ts
|
|
|
18
18
|
configuration.ts
|
|
19
19
|
git_push.sh
|
|
20
20
|
index.ts
|
|
21
|
+
models/bank-account-class.ts
|
|
21
22
|
models/bank-transaction-response-class.ts
|
|
23
|
+
models/create-bank-account-request-dto.ts
|
|
22
24
|
models/create-payment-reminder-request-dto.ts
|
|
23
25
|
models/create-payment-request-dto.ts
|
|
24
26
|
models/create-refund-request-dto.ts
|
|
@@ -26,6 +28,7 @@ models/create-refund-response-class.ts
|
|
|
26
28
|
models/create-tenant-bank-account-request-dto.ts
|
|
27
29
|
models/create-tenant-bank-account-response-class.ts
|
|
28
30
|
models/deactivate-payment-reminder-request-dto.ts
|
|
31
|
+
models/get-bank-account-response-class.ts
|
|
29
32
|
models/get-bank-transactions-response-class.ts
|
|
30
33
|
models/get-refund-response-class.ts
|
|
31
34
|
models/get-request-dto.ts
|
|
@@ -37,10 +40,14 @@ models/link-bank-transaction-request-dto-rest.ts
|
|
|
37
40
|
models/list-bank-transactions-response-class.ts
|
|
38
41
|
models/list-refunds-response-class.ts
|
|
39
42
|
models/list-tenant-bank-account-response-class.ts
|
|
43
|
+
models/primary-bank-account-response-class.ts
|
|
40
44
|
models/refund-class.ts
|
|
45
|
+
models/set-primary-bank-account-request-dto-rest.ts
|
|
41
46
|
models/tenant-bank-account-response-class.ts
|
|
42
47
|
models/transaction-class.ts
|
|
43
48
|
models/unlink-bank-transaction-request-dto-rest.ts
|
|
49
|
+
models/update-bank-account-request-dto-rest.ts
|
|
50
|
+
models/update-bank-account-request-dto.ts
|
|
44
51
|
models/update-tenant-bank-account-rest-request-dto.ts
|
|
45
52
|
models/validate-pspconfig-request-dto.ts
|
|
46
53
|
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.22 --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.22
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -20,6 +20,14 @@ import { Configuration } from '../configuration';
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateBankAccountRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { GetBankAccountResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { SetPrimaryBankAccountRequestDtoRest } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
23
31
|
// URLSearchParams not necessarily used
|
|
24
32
|
// @ts-ignore
|
|
25
33
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -33,14 +41,14 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
33
41
|
/**
|
|
34
42
|
* Creates a bank account for a specified account.
|
|
35
43
|
* @summary Create a bank account
|
|
36
|
-
* @param {
|
|
44
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
37
45
|
* @param {string} [authorization] Bearer Token
|
|
38
46
|
* @param {*} [options] Override http request option.
|
|
39
47
|
* @throws {RequiredError}
|
|
40
48
|
*/
|
|
41
|
-
createBankAccount: async (
|
|
42
|
-
// verify required parameter '
|
|
43
|
-
assertParamExists('createBankAccount', '
|
|
49
|
+
createBankAccount: async (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
// verify required parameter 'createBankAccountRequestDto' is not null or undefined
|
|
51
|
+
assertParamExists('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto)
|
|
44
52
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
45
53
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
54
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -70,7 +78,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
70
78
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
79
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
80
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
81
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBankAccountRequestDto, localVarRequestOptions, configuration)
|
|
74
82
|
|
|
75
83
|
return {
|
|
76
84
|
url: toPathString(localVarUrlObj),
|
|
@@ -78,7 +86,97 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
78
86
|
};
|
|
79
87
|
},
|
|
80
88
|
/**
|
|
81
|
-
*
|
|
89
|
+
* Deletes a bank account by code
|
|
90
|
+
* @summary Delete the bank account
|
|
91
|
+
* @param {string} code Unique identifier for the object.
|
|
92
|
+
* @param {string} [authorization] Bearer Token
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
deleteBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
|
+
// verify required parameter 'code' is not null or undefined
|
|
98
|
+
assertParamExists('deleteBankAccount', 'code', code)
|
|
99
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
100
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
101
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
+
let baseOptions;
|
|
104
|
+
let baseAccessToken;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
baseAccessToken = configuration.accessToken;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
111
|
+
const localVarHeaderParameter = {} as any;
|
|
112
|
+
const localVarQueryParameter = {} as any;
|
|
113
|
+
|
|
114
|
+
// authentication bearer required
|
|
115
|
+
// http bearer authentication required
|
|
116
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
|
+
|
|
118
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
* 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.
|
|
135
|
+
* @summary Retrieve the Bank Account
|
|
136
|
+
* @param {string} code Unique identifier for the object.
|
|
137
|
+
* @param {string} [authorization] Bearer Token
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
getBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
142
|
+
// verify required parameter 'code' is not null or undefined
|
|
143
|
+
assertParamExists('getBankAccount', 'code', code)
|
|
144
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
145
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
146
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
147
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
148
|
+
let baseOptions;
|
|
149
|
+
let baseAccessToken;
|
|
150
|
+
if (configuration) {
|
|
151
|
+
baseOptions = configuration.baseOptions;
|
|
152
|
+
baseAccessToken = configuration.accessToken;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
156
|
+
const localVarHeaderParameter = {} as any;
|
|
157
|
+
const localVarQueryParameter = {} as any;
|
|
158
|
+
|
|
159
|
+
// authentication bearer required
|
|
160
|
+
// http bearer authentication required
|
|
161
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
162
|
+
|
|
163
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
164
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
170
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
171
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
url: toPathString(localVarUrlObj),
|
|
175
|
+
options: localVarRequestOptions,
|
|
176
|
+
};
|
|
177
|
+
},
|
|
178
|
+
/**
|
|
179
|
+
* Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
82
180
|
* @summary List bank accounts
|
|
83
181
|
* @param {string} [authorization] Bearer Token
|
|
84
182
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -148,6 +246,108 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
148
246
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
149
247
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
150
248
|
|
|
249
|
+
return {
|
|
250
|
+
url: toPathString(localVarUrlObj),
|
|
251
|
+
options: localVarRequestOptions,
|
|
252
|
+
};
|
|
253
|
+
},
|
|
254
|
+
/**
|
|
255
|
+
* Set primary bank account
|
|
256
|
+
* @summary Set primary bank account
|
|
257
|
+
* @param {string} code Code of the bank account to set primary
|
|
258
|
+
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
259
|
+
* @param {string} [authorization] Bearer Token
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
setPrimaryBankAccount: async (code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
264
|
+
// verify required parameter 'code' is not null or undefined
|
|
265
|
+
assertParamExists('setPrimaryBankAccount', 'code', code)
|
|
266
|
+
// verify required parameter 'setPrimaryBankAccountRequestDtoRest' is not null or undefined
|
|
267
|
+
assertParamExists('setPrimaryBankAccount', 'setPrimaryBankAccountRequestDtoRest', setPrimaryBankAccountRequestDtoRest)
|
|
268
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}/primary`
|
|
269
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
270
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
271
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
272
|
+
let baseOptions;
|
|
273
|
+
let baseAccessToken;
|
|
274
|
+
if (configuration) {
|
|
275
|
+
baseOptions = configuration.baseOptions;
|
|
276
|
+
baseAccessToken = configuration.accessToken;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
280
|
+
const localVarHeaderParameter = {} as any;
|
|
281
|
+
const localVarQueryParameter = {} as any;
|
|
282
|
+
|
|
283
|
+
// authentication bearer required
|
|
284
|
+
// http bearer authentication required
|
|
285
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
286
|
+
|
|
287
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
288
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
294
|
+
|
|
295
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
296
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
297
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
298
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setPrimaryBankAccountRequestDtoRest, localVarRequestOptions, configuration)
|
|
299
|
+
|
|
300
|
+
return {
|
|
301
|
+
url: toPathString(localVarUrlObj),
|
|
302
|
+
options: localVarRequestOptions,
|
|
303
|
+
};
|
|
304
|
+
},
|
|
305
|
+
/**
|
|
306
|
+
* Update a bank account by code
|
|
307
|
+
* @summary Update the Update bank account
|
|
308
|
+
* @param {string} code Unique identifier for the object.
|
|
309
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
310
|
+
* @param {string} [authorization] Bearer Token
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
*/
|
|
314
|
+
updateBankAccount: async (code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
315
|
+
// verify required parameter 'code' is not null or undefined
|
|
316
|
+
assertParamExists('updateBankAccount', 'code', code)
|
|
317
|
+
// verify required parameter 'updateBankAccountRequestDtoRest' is not null or undefined
|
|
318
|
+
assertParamExists('updateBankAccount', 'updateBankAccountRequestDtoRest', updateBankAccountRequestDtoRest)
|
|
319
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
320
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
321
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
322
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
323
|
+
let baseOptions;
|
|
324
|
+
let baseAccessToken;
|
|
325
|
+
if (configuration) {
|
|
326
|
+
baseOptions = configuration.baseOptions;
|
|
327
|
+
baseAccessToken = configuration.accessToken;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
331
|
+
const localVarHeaderParameter = {} as any;
|
|
332
|
+
const localVarQueryParameter = {} as any;
|
|
333
|
+
|
|
334
|
+
// authentication bearer required
|
|
335
|
+
// http bearer authentication required
|
|
336
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
337
|
+
|
|
338
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
339
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
345
|
+
|
|
346
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
347
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
348
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
349
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBankAccountRequestDtoRest, localVarRequestOptions, configuration)
|
|
350
|
+
|
|
151
351
|
return {
|
|
152
352
|
url: toPathString(localVarUrlObj),
|
|
153
353
|
options: localVarRequestOptions,
|
|
@@ -166,17 +366,41 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
166
366
|
/**
|
|
167
367
|
* Creates a bank account for a specified account.
|
|
168
368
|
* @summary Create a bank account
|
|
169
|
-
* @param {
|
|
369
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
370
|
+
* @param {string} [authorization] Bearer Token
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
|
|
376
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
377
|
+
},
|
|
378
|
+
/**
|
|
379
|
+
* Deletes a bank account by code
|
|
380
|
+
* @summary Delete the bank account
|
|
381
|
+
* @param {string} code Unique identifier for the object.
|
|
382
|
+
* @param {string} [authorization] Bearer Token
|
|
383
|
+
* @param {*} [options] Override http request option.
|
|
384
|
+
* @throws {RequiredError}
|
|
385
|
+
*/
|
|
386
|
+
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
387
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankAccount(code, authorization, options);
|
|
388
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
389
|
+
},
|
|
390
|
+
/**
|
|
391
|
+
* 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.
|
|
392
|
+
* @summary Retrieve the Bank Account
|
|
393
|
+
* @param {string} code Unique identifier for the object.
|
|
170
394
|
* @param {string} [authorization] Bearer Token
|
|
171
395
|
* @param {*} [options] Override http request option.
|
|
172
396
|
* @throws {RequiredError}
|
|
173
397
|
*/
|
|
174
|
-
async
|
|
175
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
398
|
+
async getBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>> {
|
|
399
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, options);
|
|
176
400
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
177
401
|
},
|
|
178
402
|
/**
|
|
179
|
-
* Returns a list of bank accounts you’ve previously created.
|
|
403
|
+
* Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
180
404
|
* @summary List bank accounts
|
|
181
405
|
* @param {string} [authorization] Bearer Token
|
|
182
406
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -193,6 +417,32 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
193
417
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
194
418
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
195
419
|
},
|
|
420
|
+
/**
|
|
421
|
+
* Set primary bank account
|
|
422
|
+
* @summary Set primary bank account
|
|
423
|
+
* @param {string} code Code of the bank account to set primary
|
|
424
|
+
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
425
|
+
* @param {string} [authorization] Bearer Token
|
|
426
|
+
* @param {*} [options] Override http request option.
|
|
427
|
+
* @throws {RequiredError}
|
|
428
|
+
*/
|
|
429
|
+
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
430
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options);
|
|
431
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
432
|
+
},
|
|
433
|
+
/**
|
|
434
|
+
* Update a bank account by code
|
|
435
|
+
* @summary Update the Update bank account
|
|
436
|
+
* @param {string} code Unique identifier for the object.
|
|
437
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
438
|
+
* @param {string} [authorization] Bearer Token
|
|
439
|
+
* @param {*} [options] Override http request option.
|
|
440
|
+
* @throws {RequiredError}
|
|
441
|
+
*/
|
|
442
|
+
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
443
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
|
|
444
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
445
|
+
},
|
|
196
446
|
}
|
|
197
447
|
};
|
|
198
448
|
|
|
@@ -206,16 +456,38 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
206
456
|
/**
|
|
207
457
|
* Creates a bank account for a specified account.
|
|
208
458
|
* @summary Create a bank account
|
|
209
|
-
* @param {
|
|
459
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
210
460
|
* @param {string} [authorization] Bearer Token
|
|
211
461
|
* @param {*} [options] Override http request option.
|
|
212
462
|
* @throws {RequiredError}
|
|
213
463
|
*/
|
|
214
|
-
createBankAccount(
|
|
215
|
-
return localVarFp.createBankAccount(
|
|
464
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
465
|
+
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
216
466
|
},
|
|
217
467
|
/**
|
|
218
|
-
*
|
|
468
|
+
* Deletes a bank account by code
|
|
469
|
+
* @summary Delete the bank account
|
|
470
|
+
* @param {string} code Unique identifier for the object.
|
|
471
|
+
* @param {string} [authorization] Bearer Token
|
|
472
|
+
* @param {*} [options] Override http request option.
|
|
473
|
+
* @throws {RequiredError}
|
|
474
|
+
*/
|
|
475
|
+
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
476
|
+
return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
477
|
+
},
|
|
478
|
+
/**
|
|
479
|
+
* 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.
|
|
480
|
+
* @summary Retrieve the Bank Account
|
|
481
|
+
* @param {string} code Unique identifier for the object.
|
|
482
|
+
* @param {string} [authorization] Bearer Token
|
|
483
|
+
* @param {*} [options] Override http request option.
|
|
484
|
+
* @throws {RequiredError}
|
|
485
|
+
*/
|
|
486
|
+
getBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<GetBankAccountResponseClass> {
|
|
487
|
+
return localVarFp.getBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
488
|
+
},
|
|
489
|
+
/**
|
|
490
|
+
* Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
219
491
|
* @summary List bank accounts
|
|
220
492
|
* @param {string} [authorization] Bearer Token
|
|
221
493
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -231,6 +503,30 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
231
503
|
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
232
504
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
233
505
|
},
|
|
506
|
+
/**
|
|
507
|
+
* Set primary bank account
|
|
508
|
+
* @summary Set primary bank account
|
|
509
|
+
* @param {string} code Code of the bank account to set primary
|
|
510
|
+
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
511
|
+
* @param {string} [authorization] Bearer Token
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
*/
|
|
515
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
516
|
+
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
517
|
+
},
|
|
518
|
+
/**
|
|
519
|
+
* Update a bank account by code
|
|
520
|
+
* @summary Update the Update bank account
|
|
521
|
+
* @param {string} code Unique identifier for the object.
|
|
522
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
523
|
+
* @param {string} [authorization] Bearer Token
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object> {
|
|
528
|
+
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
529
|
+
},
|
|
234
530
|
};
|
|
235
531
|
};
|
|
236
532
|
|
|
@@ -242,10 +538,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
242
538
|
export interface BankAccountsApiCreateBankAccountRequest {
|
|
243
539
|
/**
|
|
244
540
|
*
|
|
245
|
-
* @type {
|
|
541
|
+
* @type {CreateBankAccountRequestDto}
|
|
246
542
|
* @memberof BankAccountsApiCreateBankAccount
|
|
247
543
|
*/
|
|
248
|
-
readonly
|
|
544
|
+
readonly createBankAccountRequestDto: CreateBankAccountRequestDto
|
|
249
545
|
|
|
250
546
|
/**
|
|
251
547
|
* Bearer Token
|
|
@@ -255,6 +551,48 @@ export interface BankAccountsApiCreateBankAccountRequest {
|
|
|
255
551
|
readonly authorization?: string
|
|
256
552
|
}
|
|
257
553
|
|
|
554
|
+
/**
|
|
555
|
+
* Request parameters for deleteBankAccount operation in BankAccountsApi.
|
|
556
|
+
* @export
|
|
557
|
+
* @interface BankAccountsApiDeleteBankAccountRequest
|
|
558
|
+
*/
|
|
559
|
+
export interface BankAccountsApiDeleteBankAccountRequest {
|
|
560
|
+
/**
|
|
561
|
+
* Unique identifier for the object.
|
|
562
|
+
* @type {string}
|
|
563
|
+
* @memberof BankAccountsApiDeleteBankAccount
|
|
564
|
+
*/
|
|
565
|
+
readonly code: string
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Bearer Token
|
|
569
|
+
* @type {string}
|
|
570
|
+
* @memberof BankAccountsApiDeleteBankAccount
|
|
571
|
+
*/
|
|
572
|
+
readonly authorization?: string
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Request parameters for getBankAccount operation in BankAccountsApi.
|
|
577
|
+
* @export
|
|
578
|
+
* @interface BankAccountsApiGetBankAccountRequest
|
|
579
|
+
*/
|
|
580
|
+
export interface BankAccountsApiGetBankAccountRequest {
|
|
581
|
+
/**
|
|
582
|
+
* Unique identifier for the object.
|
|
583
|
+
* @type {string}
|
|
584
|
+
* @memberof BankAccountsApiGetBankAccount
|
|
585
|
+
*/
|
|
586
|
+
readonly code: string
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Bearer Token
|
|
590
|
+
* @type {string}
|
|
591
|
+
* @memberof BankAccountsApiGetBankAccount
|
|
592
|
+
*/
|
|
593
|
+
readonly authorization?: string
|
|
594
|
+
}
|
|
595
|
+
|
|
258
596
|
/**
|
|
259
597
|
* Request parameters for listBankAccounts operation in BankAccountsApi.
|
|
260
598
|
* @export
|
|
@@ -318,6 +656,62 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
318
656
|
readonly filters?: any
|
|
319
657
|
}
|
|
320
658
|
|
|
659
|
+
/**
|
|
660
|
+
* Request parameters for setPrimaryBankAccount operation in BankAccountsApi.
|
|
661
|
+
* @export
|
|
662
|
+
* @interface BankAccountsApiSetPrimaryBankAccountRequest
|
|
663
|
+
*/
|
|
664
|
+
export interface BankAccountsApiSetPrimaryBankAccountRequest {
|
|
665
|
+
/**
|
|
666
|
+
* Code of the bank account to set primary
|
|
667
|
+
* @type {string}
|
|
668
|
+
* @memberof BankAccountsApiSetPrimaryBankAccount
|
|
669
|
+
*/
|
|
670
|
+
readonly code: string
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
* @type {SetPrimaryBankAccountRequestDtoRest}
|
|
675
|
+
* @memberof BankAccountsApiSetPrimaryBankAccount
|
|
676
|
+
*/
|
|
677
|
+
readonly setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Bearer Token
|
|
681
|
+
* @type {string}
|
|
682
|
+
* @memberof BankAccountsApiSetPrimaryBankAccount
|
|
683
|
+
*/
|
|
684
|
+
readonly authorization?: string
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Request parameters for updateBankAccount operation in BankAccountsApi.
|
|
689
|
+
* @export
|
|
690
|
+
* @interface BankAccountsApiUpdateBankAccountRequest
|
|
691
|
+
*/
|
|
692
|
+
export interface BankAccountsApiUpdateBankAccountRequest {
|
|
693
|
+
/**
|
|
694
|
+
* Unique identifier for the object.
|
|
695
|
+
* @type {string}
|
|
696
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
697
|
+
*/
|
|
698
|
+
readonly code: string
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
*
|
|
702
|
+
* @type {UpdateBankAccountRequestDtoRest}
|
|
703
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
704
|
+
*/
|
|
705
|
+
readonly updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Bearer Token
|
|
709
|
+
* @type {string}
|
|
710
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
711
|
+
*/
|
|
712
|
+
readonly authorization?: string
|
|
713
|
+
}
|
|
714
|
+
|
|
321
715
|
/**
|
|
322
716
|
* BankAccountsApi - object-oriented interface
|
|
323
717
|
* @export
|
|
@@ -334,11 +728,35 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
334
728
|
* @memberof BankAccountsApi
|
|
335
729
|
*/
|
|
336
730
|
public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
337
|
-
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.
|
|
731
|
+
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
338
732
|
}
|
|
339
733
|
|
|
340
734
|
/**
|
|
341
|
-
*
|
|
735
|
+
* Deletes a bank account by code
|
|
736
|
+
* @summary Delete the bank account
|
|
737
|
+
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
738
|
+
* @param {*} [options] Override http request option.
|
|
739
|
+
* @throws {RequiredError}
|
|
740
|
+
* @memberof BankAccountsApi
|
|
741
|
+
*/
|
|
742
|
+
public deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig) {
|
|
743
|
+
return BankAccountsApiFp(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* 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.
|
|
748
|
+
* @summary Retrieve the Bank Account
|
|
749
|
+
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
750
|
+
* @param {*} [options] Override http request option.
|
|
751
|
+
* @throws {RequiredError}
|
|
752
|
+
* @memberof BankAccountsApi
|
|
753
|
+
*/
|
|
754
|
+
public getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig) {
|
|
755
|
+
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* Returns a list of bank accounts you’ve previously created. The bank accounts are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
342
760
|
* @summary List bank accounts
|
|
343
761
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
344
762
|
* @param {*} [options] Override http request option.
|
|
@@ -348,4 +766,28 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
348
766
|
public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
349
767
|
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));
|
|
350
768
|
}
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Set primary bank account
|
|
772
|
+
* @summary Set primary bank account
|
|
773
|
+
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
774
|
+
* @param {*} [options] Override http request option.
|
|
775
|
+
* @throws {RequiredError}
|
|
776
|
+
* @memberof BankAccountsApi
|
|
777
|
+
*/
|
|
778
|
+
public setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig) {
|
|
779
|
+
return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Update a bank account by code
|
|
784
|
+
* @summary Update the Update bank account
|
|
785
|
+
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
786
|
+
* @param {*} [options] Override http request option.
|
|
787
|
+
* @throws {RequiredError}
|
|
788
|
+
* @memberof BankAccountsApi
|
|
789
|
+
*/
|
|
790
|
+
public updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
791
|
+
return BankAccountsApiFp(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
792
|
+
}
|
|
351
793
|
}
|