@emilgroup/payment-sdk 1.4.1-beta.24 → 1.4.1-beta.25
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 +1 -1
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +1 -1
- package/api/payment-reminders-api.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/api/bank-transaction-api.js +1 -1
- 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 +1 -1
- package/dist/api/payment-reminders-api.js +1 -1
- 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 +1 -1
- package/dist/api/tenant-bank-account-api.js +1 -1
- 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@1.4.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.4.1-beta.25 --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.25
|
|
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
|
/**
|
|
24
32
|
* BankAccountsApi - axios parameter creator
|
|
25
33
|
* @export
|
|
@@ -29,14 +37,14 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
29
37
|
/**
|
|
30
38
|
* Creates a bank account for a specified account.
|
|
31
39
|
* @summary Create a bank account
|
|
32
|
-
* @param {
|
|
40
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
33
41
|
* @param {string} [authorization] Bearer Token
|
|
34
42
|
* @param {*} [options] Override http request option.
|
|
35
43
|
* @throws {RequiredError}
|
|
36
44
|
*/
|
|
37
|
-
createBankAccount: async (
|
|
38
|
-
// verify required parameter '
|
|
39
|
-
assertParamExists('createBankAccount', '
|
|
45
|
+
createBankAccount: async (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'createBankAccountRequestDto' is not null or undefined
|
|
47
|
+
assertParamExists('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto)
|
|
40
48
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
41
49
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
50
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -66,7 +74,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
66
74
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
67
75
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
76
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
69
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
77
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBankAccountRequestDto, localVarRequestOptions, configuration)
|
|
70
78
|
|
|
71
79
|
return {
|
|
72
80
|
url: toPathString(localVarUrlObj),
|
|
@@ -74,7 +82,97 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
74
82
|
};
|
|
75
83
|
},
|
|
76
84
|
/**
|
|
77
|
-
*
|
|
85
|
+
* Deletes a bank account by code
|
|
86
|
+
* @summary Delete the bank account
|
|
87
|
+
* @param {string} code Unique identifier for the object.
|
|
88
|
+
* @param {string} [authorization] Bearer Token
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
deleteBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
93
|
+
// verify required parameter 'code' is not null or undefined
|
|
94
|
+
assertParamExists('deleteBankAccount', 'code', code)
|
|
95
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
96
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
97
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
98
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
99
|
+
let baseOptions;
|
|
100
|
+
let baseAccessToken;
|
|
101
|
+
if (configuration) {
|
|
102
|
+
baseOptions = configuration.baseOptions;
|
|
103
|
+
baseAccessToken = configuration.accessToken;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
107
|
+
const localVarHeaderParameter = {} as any;
|
|
108
|
+
const localVarQueryParameter = {} as any;
|
|
109
|
+
|
|
110
|
+
// authentication bearer required
|
|
111
|
+
// http bearer authentication required
|
|
112
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
113
|
+
|
|
114
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
115
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
121
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
122
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
url: toPathString(localVarUrlObj),
|
|
126
|
+
options: localVarRequestOptions,
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
/**
|
|
130
|
+
* 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.
|
|
131
|
+
* @summary Retrieve the Bank Account
|
|
132
|
+
* @param {string} code Unique identifier for the object.
|
|
133
|
+
* @param {string} [authorization] Bearer Token
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
getBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
138
|
+
// verify required parameter 'code' is not null or undefined
|
|
139
|
+
assertParamExists('getBankAccount', 'code', code)
|
|
140
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
141
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
142
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
143
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
144
|
+
let baseOptions;
|
|
145
|
+
let baseAccessToken;
|
|
146
|
+
if (configuration) {
|
|
147
|
+
baseOptions = configuration.baseOptions;
|
|
148
|
+
baseAccessToken = configuration.accessToken;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
152
|
+
const localVarHeaderParameter = {} as any;
|
|
153
|
+
const localVarQueryParameter = {} as any;
|
|
154
|
+
|
|
155
|
+
// authentication bearer required
|
|
156
|
+
// http bearer authentication required
|
|
157
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
158
|
+
|
|
159
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
160
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
167
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
168
|
+
|
|
169
|
+
return {
|
|
170
|
+
url: toPathString(localVarUrlObj),
|
|
171
|
+
options: localVarRequestOptions,
|
|
172
|
+
};
|
|
173
|
+
},
|
|
174
|
+
/**
|
|
175
|
+
* 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.
|
|
78
176
|
* @summary List bank accounts
|
|
79
177
|
* @param {string} [authorization] Bearer Token
|
|
80
178
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -144,6 +242,108 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
144
242
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
243
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
146
244
|
|
|
245
|
+
return {
|
|
246
|
+
url: toPathString(localVarUrlObj),
|
|
247
|
+
options: localVarRequestOptions,
|
|
248
|
+
};
|
|
249
|
+
},
|
|
250
|
+
/**
|
|
251
|
+
* Set primary bank account
|
|
252
|
+
* @summary Set primary bank account
|
|
253
|
+
* @param {string} code Code of the bank account to set primary
|
|
254
|
+
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
255
|
+
* @param {string} [authorization] Bearer Token
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
*/
|
|
259
|
+
setPrimaryBankAccount: async (code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
260
|
+
// verify required parameter 'code' is not null or undefined
|
|
261
|
+
assertParamExists('setPrimaryBankAccount', 'code', code)
|
|
262
|
+
// verify required parameter 'setPrimaryBankAccountRequestDtoRest' is not null or undefined
|
|
263
|
+
assertParamExists('setPrimaryBankAccount', 'setPrimaryBankAccountRequestDtoRest', setPrimaryBankAccountRequestDtoRest)
|
|
264
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}/primary`
|
|
265
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
266
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
267
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
268
|
+
let baseOptions;
|
|
269
|
+
let baseAccessToken;
|
|
270
|
+
if (configuration) {
|
|
271
|
+
baseOptions = configuration.baseOptions;
|
|
272
|
+
baseAccessToken = configuration.accessToken;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
276
|
+
const localVarHeaderParameter = {} as any;
|
|
277
|
+
const localVarQueryParameter = {} as any;
|
|
278
|
+
|
|
279
|
+
// authentication bearer required
|
|
280
|
+
// http bearer authentication required
|
|
281
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
282
|
+
|
|
283
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
284
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
290
|
+
|
|
291
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
294
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setPrimaryBankAccountRequestDtoRest, localVarRequestOptions, configuration)
|
|
295
|
+
|
|
296
|
+
return {
|
|
297
|
+
url: toPathString(localVarUrlObj),
|
|
298
|
+
options: localVarRequestOptions,
|
|
299
|
+
};
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
* Update a bank account by code
|
|
303
|
+
* @summary Update the Update bank account
|
|
304
|
+
* @param {string} code Unique identifier for the object.
|
|
305
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
306
|
+
* @param {string} [authorization] Bearer Token
|
|
307
|
+
* @param {*} [options] Override http request option.
|
|
308
|
+
* @throws {RequiredError}
|
|
309
|
+
*/
|
|
310
|
+
updateBankAccount: async (code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
311
|
+
// verify required parameter 'code' is not null or undefined
|
|
312
|
+
assertParamExists('updateBankAccount', 'code', code)
|
|
313
|
+
// verify required parameter 'updateBankAccountRequestDtoRest' is not null or undefined
|
|
314
|
+
assertParamExists('updateBankAccount', 'updateBankAccountRequestDtoRest', updateBankAccountRequestDtoRest)
|
|
315
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
316
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
318
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
319
|
+
let baseOptions;
|
|
320
|
+
let baseAccessToken;
|
|
321
|
+
if (configuration) {
|
|
322
|
+
baseOptions = configuration.baseOptions;
|
|
323
|
+
baseAccessToken = configuration.accessToken;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
327
|
+
const localVarHeaderParameter = {} as any;
|
|
328
|
+
const localVarQueryParameter = {} as any;
|
|
329
|
+
|
|
330
|
+
// authentication bearer required
|
|
331
|
+
// http bearer authentication required
|
|
332
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
333
|
+
|
|
334
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
335
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
341
|
+
|
|
342
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
343
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
344
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
345
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBankAccountRequestDtoRest, localVarRequestOptions, configuration)
|
|
346
|
+
|
|
147
347
|
return {
|
|
148
348
|
url: toPathString(localVarUrlObj),
|
|
149
349
|
options: localVarRequestOptions,
|
|
@@ -162,17 +362,41 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
162
362
|
/**
|
|
163
363
|
* Creates a bank account for a specified account.
|
|
164
364
|
* @summary Create a bank account
|
|
165
|
-
* @param {
|
|
365
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
366
|
+
* @param {string} [authorization] Bearer Token
|
|
367
|
+
* @param {*} [options] Override http request option.
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
*/
|
|
370
|
+
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
371
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
|
|
372
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
373
|
+
},
|
|
374
|
+
/**
|
|
375
|
+
* Deletes a bank account by code
|
|
376
|
+
* @summary Delete the bank account
|
|
377
|
+
* @param {string} code Unique identifier for the object.
|
|
378
|
+
* @param {string} [authorization] Bearer Token
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
383
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankAccount(code, authorization, options);
|
|
384
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
385
|
+
},
|
|
386
|
+
/**
|
|
387
|
+
* 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.
|
|
388
|
+
* @summary Retrieve the Bank Account
|
|
389
|
+
* @param {string} code Unique identifier for the object.
|
|
166
390
|
* @param {string} [authorization] Bearer Token
|
|
167
391
|
* @param {*} [options] Override http request option.
|
|
168
392
|
* @throws {RequiredError}
|
|
169
393
|
*/
|
|
170
|
-
async
|
|
171
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
394
|
+
async getBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>> {
|
|
395
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, options);
|
|
172
396
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
173
397
|
},
|
|
174
398
|
/**
|
|
175
|
-
* Returns a list of bank accounts you’ve previously created.
|
|
399
|
+
* 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.
|
|
176
400
|
* @summary List bank accounts
|
|
177
401
|
* @param {string} [authorization] Bearer Token
|
|
178
402
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -189,6 +413,32 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
189
413
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
190
414
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
191
415
|
},
|
|
416
|
+
/**
|
|
417
|
+
* Set primary bank account
|
|
418
|
+
* @summary Set primary bank account
|
|
419
|
+
* @param {string} code Code of the bank account to set primary
|
|
420
|
+
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
421
|
+
* @param {string} [authorization] Bearer Token
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
*/
|
|
425
|
+
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
426
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options);
|
|
427
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
428
|
+
},
|
|
429
|
+
/**
|
|
430
|
+
* Update a bank account by code
|
|
431
|
+
* @summary Update the Update bank account
|
|
432
|
+
* @param {string} code Unique identifier for the object.
|
|
433
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
434
|
+
* @param {string} [authorization] Bearer Token
|
|
435
|
+
* @param {*} [options] Override http request option.
|
|
436
|
+
* @throws {RequiredError}
|
|
437
|
+
*/
|
|
438
|
+
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
439
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
|
|
440
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
441
|
+
},
|
|
192
442
|
}
|
|
193
443
|
};
|
|
194
444
|
|
|
@@ -202,16 +452,38 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
202
452
|
/**
|
|
203
453
|
* Creates a bank account for a specified account.
|
|
204
454
|
* @summary Create a bank account
|
|
205
|
-
* @param {
|
|
455
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
206
456
|
* @param {string} [authorization] Bearer Token
|
|
207
457
|
* @param {*} [options] Override http request option.
|
|
208
458
|
* @throws {RequiredError}
|
|
209
459
|
*/
|
|
210
|
-
createBankAccount(
|
|
211
|
-
return localVarFp.createBankAccount(
|
|
460
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
461
|
+
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
212
462
|
},
|
|
213
463
|
/**
|
|
214
|
-
*
|
|
464
|
+
* Deletes a bank account by code
|
|
465
|
+
* @summary Delete the bank account
|
|
466
|
+
* @param {string} code Unique identifier for the object.
|
|
467
|
+
* @param {string} [authorization] Bearer Token
|
|
468
|
+
* @param {*} [options] Override http request option.
|
|
469
|
+
* @throws {RequiredError}
|
|
470
|
+
*/
|
|
471
|
+
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
472
|
+
return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
473
|
+
},
|
|
474
|
+
/**
|
|
475
|
+
* 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.
|
|
476
|
+
* @summary Retrieve the Bank Account
|
|
477
|
+
* @param {string} code Unique identifier for the object.
|
|
478
|
+
* @param {string} [authorization] Bearer Token
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
getBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<GetBankAccountResponseClass> {
|
|
483
|
+
return localVarFp.getBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
484
|
+
},
|
|
485
|
+
/**
|
|
486
|
+
* 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.
|
|
215
487
|
* @summary List bank accounts
|
|
216
488
|
* @param {string} [authorization] Bearer Token
|
|
217
489
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -227,6 +499,30 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
227
499
|
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
228
500
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
229
501
|
},
|
|
502
|
+
/**
|
|
503
|
+
* Set primary bank account
|
|
504
|
+
* @summary Set primary bank account
|
|
505
|
+
* @param {string} code Code of the bank account to set primary
|
|
506
|
+
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
507
|
+
* @param {string} [authorization] Bearer Token
|
|
508
|
+
* @param {*} [options] Override http request option.
|
|
509
|
+
* @throws {RequiredError}
|
|
510
|
+
*/
|
|
511
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
512
|
+
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
513
|
+
},
|
|
514
|
+
/**
|
|
515
|
+
* Update a bank account by code
|
|
516
|
+
* @summary Update the Update bank account
|
|
517
|
+
* @param {string} code Unique identifier for the object.
|
|
518
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
519
|
+
* @param {string} [authorization] Bearer Token
|
|
520
|
+
* @param {*} [options] Override http request option.
|
|
521
|
+
* @throws {RequiredError}
|
|
522
|
+
*/
|
|
523
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object> {
|
|
524
|
+
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
525
|
+
},
|
|
230
526
|
};
|
|
231
527
|
};
|
|
232
528
|
|
|
@@ -238,10 +534,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
238
534
|
export interface BankAccountsApiCreateBankAccountRequest {
|
|
239
535
|
/**
|
|
240
536
|
*
|
|
241
|
-
* @type {
|
|
537
|
+
* @type {CreateBankAccountRequestDto}
|
|
242
538
|
* @memberof BankAccountsApiCreateBankAccount
|
|
243
539
|
*/
|
|
244
|
-
readonly
|
|
540
|
+
readonly createBankAccountRequestDto: CreateBankAccountRequestDto
|
|
245
541
|
|
|
246
542
|
/**
|
|
247
543
|
* Bearer Token
|
|
@@ -251,6 +547,48 @@ export interface BankAccountsApiCreateBankAccountRequest {
|
|
|
251
547
|
readonly authorization?: string
|
|
252
548
|
}
|
|
253
549
|
|
|
550
|
+
/**
|
|
551
|
+
* Request parameters for deleteBankAccount operation in BankAccountsApi.
|
|
552
|
+
* @export
|
|
553
|
+
* @interface BankAccountsApiDeleteBankAccountRequest
|
|
554
|
+
*/
|
|
555
|
+
export interface BankAccountsApiDeleteBankAccountRequest {
|
|
556
|
+
/**
|
|
557
|
+
* Unique identifier for the object.
|
|
558
|
+
* @type {string}
|
|
559
|
+
* @memberof BankAccountsApiDeleteBankAccount
|
|
560
|
+
*/
|
|
561
|
+
readonly code: string
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Bearer Token
|
|
565
|
+
* @type {string}
|
|
566
|
+
* @memberof BankAccountsApiDeleteBankAccount
|
|
567
|
+
*/
|
|
568
|
+
readonly authorization?: string
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Request parameters for getBankAccount operation in BankAccountsApi.
|
|
573
|
+
* @export
|
|
574
|
+
* @interface BankAccountsApiGetBankAccountRequest
|
|
575
|
+
*/
|
|
576
|
+
export interface BankAccountsApiGetBankAccountRequest {
|
|
577
|
+
/**
|
|
578
|
+
* Unique identifier for the object.
|
|
579
|
+
* @type {string}
|
|
580
|
+
* @memberof BankAccountsApiGetBankAccount
|
|
581
|
+
*/
|
|
582
|
+
readonly code: string
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Bearer Token
|
|
586
|
+
* @type {string}
|
|
587
|
+
* @memberof BankAccountsApiGetBankAccount
|
|
588
|
+
*/
|
|
589
|
+
readonly authorization?: string
|
|
590
|
+
}
|
|
591
|
+
|
|
254
592
|
/**
|
|
255
593
|
* Request parameters for listBankAccounts operation in BankAccountsApi.
|
|
256
594
|
* @export
|
|
@@ -314,6 +652,62 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
314
652
|
readonly filters?: any
|
|
315
653
|
}
|
|
316
654
|
|
|
655
|
+
/**
|
|
656
|
+
* Request parameters for setPrimaryBankAccount operation in BankAccountsApi.
|
|
657
|
+
* @export
|
|
658
|
+
* @interface BankAccountsApiSetPrimaryBankAccountRequest
|
|
659
|
+
*/
|
|
660
|
+
export interface BankAccountsApiSetPrimaryBankAccountRequest {
|
|
661
|
+
/**
|
|
662
|
+
* Code of the bank account to set primary
|
|
663
|
+
* @type {string}
|
|
664
|
+
* @memberof BankAccountsApiSetPrimaryBankAccount
|
|
665
|
+
*/
|
|
666
|
+
readonly code: string
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @type {SetPrimaryBankAccountRequestDtoRest}
|
|
671
|
+
* @memberof BankAccountsApiSetPrimaryBankAccount
|
|
672
|
+
*/
|
|
673
|
+
readonly setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Bearer Token
|
|
677
|
+
* @type {string}
|
|
678
|
+
* @memberof BankAccountsApiSetPrimaryBankAccount
|
|
679
|
+
*/
|
|
680
|
+
readonly authorization?: string
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Request parameters for updateBankAccount operation in BankAccountsApi.
|
|
685
|
+
* @export
|
|
686
|
+
* @interface BankAccountsApiUpdateBankAccountRequest
|
|
687
|
+
*/
|
|
688
|
+
export interface BankAccountsApiUpdateBankAccountRequest {
|
|
689
|
+
/**
|
|
690
|
+
* Unique identifier for the object.
|
|
691
|
+
* @type {string}
|
|
692
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
693
|
+
*/
|
|
694
|
+
readonly code: string
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
*
|
|
698
|
+
* @type {UpdateBankAccountRequestDtoRest}
|
|
699
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
700
|
+
*/
|
|
701
|
+
readonly updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Bearer Token
|
|
705
|
+
* @type {string}
|
|
706
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
707
|
+
*/
|
|
708
|
+
readonly authorization?: string
|
|
709
|
+
}
|
|
710
|
+
|
|
317
711
|
/**
|
|
318
712
|
* BankAccountsApi - object-oriented interface
|
|
319
713
|
* @export
|
|
@@ -330,11 +724,35 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
330
724
|
* @memberof BankAccountsApi
|
|
331
725
|
*/
|
|
332
726
|
public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
333
|
-
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.
|
|
727
|
+
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
334
728
|
}
|
|
335
729
|
|
|
336
730
|
/**
|
|
337
|
-
*
|
|
731
|
+
* Deletes a bank account by code
|
|
732
|
+
* @summary Delete the bank account
|
|
733
|
+
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
734
|
+
* @param {*} [options] Override http request option.
|
|
735
|
+
* @throws {RequiredError}
|
|
736
|
+
* @memberof BankAccountsApi
|
|
737
|
+
*/
|
|
738
|
+
public deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig) {
|
|
739
|
+
return BankAccountsApiFp(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* 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.
|
|
744
|
+
* @summary Retrieve the Bank Account
|
|
745
|
+
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
* @memberof BankAccountsApi
|
|
749
|
+
*/
|
|
750
|
+
public getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig) {
|
|
751
|
+
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* 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.
|
|
338
756
|
* @summary List bank accounts
|
|
339
757
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
340
758
|
* @param {*} [options] Override http request option.
|
|
@@ -344,4 +762,28 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
344
762
|
public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
345
763
|
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));
|
|
346
764
|
}
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Set primary bank account
|
|
768
|
+
* @summary Set primary bank account
|
|
769
|
+
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
770
|
+
* @param {*} [options] Override http request option.
|
|
771
|
+
* @throws {RequiredError}
|
|
772
|
+
* @memberof BankAccountsApi
|
|
773
|
+
*/
|
|
774
|
+
public setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig) {
|
|
775
|
+
return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Update a bank account by code
|
|
780
|
+
* @summary Update the Update bank account
|
|
781
|
+
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
782
|
+
* @param {*} [options] Override http request option.
|
|
783
|
+
* @throws {RequiredError}
|
|
784
|
+
* @memberof BankAccountsApi
|
|
785
|
+
*/
|
|
786
|
+
public updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
787
|
+
return BankAccountsApiFp(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
788
|
+
}
|
|
347
789
|
}
|
|
@@ -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
|