@emilgroup/payment-sdk 1.4.1-beta.22 → 1.4.1-beta.24
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 +0 -7
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +19 -461
- package/api/bank-transaction-api.ts +1 -1
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +35 -142
- package/api/payment-reminders-api.ts +1 -1
- package/api/payment-setup-api.ts +1 -1
- package/api/payments-api.ts +39 -42
- 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 +13 -255
- package/dist/api/bank-accounts-api.js +17 -399
- 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 +26 -81
- package/dist/api/payment-methods-api.js +31 -127
- 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 +30 -30
- package/dist/api/payments-api.js +35 -37
- 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 +4 -4
- 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-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- 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-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 +0 -7
- package/dist/models/index.js +0 -7
- 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/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- 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-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-transaction-response-class.ts +1 -1
- 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-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 +0 -7
- 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/refund-class.ts +1 -1
- 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-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +1 -1
- package/package.json +1 -1
- package/dist/models/bank-account-class.d.ts +0 -79
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/create-bank-account-request-dto.d.ts +0 -36
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/get-bank-account-response-class.d.ts +0 -25
- package/dist/models/get-bank-account-response-class.js +0 -15
- package/dist/models/primary-bank-account-response-class.d.ts +0 -42
- package/dist/models/primary-bank-account-response-class.js +0 -15
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +0 -24
- package/dist/models/set-primary-bank-account-request-dto-rest.js +0 -15
- package/dist/models/update-bank-account-request-dto-rest.d.ts +0 -30
- package/dist/models/update-bank-account-request-dto-rest.js +0 -15
- package/dist/models/update-bank-account-request-dto.d.ts +0 -36
- package/dist/models/update-bank-account-request-dto.js +0 -15
- package/models/bank-account-class.ts +0 -85
- package/models/create-bank-account-request-dto.ts +0 -42
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/set-primary-bank-account-request-dto-rest.ts +0 -30
- package/models/update-bank-account-request-dto-rest.ts +0 -36
- package/models/update-bank-account-request-dto.ts +0 -42
package/.openapi-generator/FILES
CHANGED
|
@@ -18,9 +18,7 @@ common.ts
|
|
|
18
18
|
configuration.ts
|
|
19
19
|
git_push.sh
|
|
20
20
|
index.ts
|
|
21
|
-
models/bank-account-class.ts
|
|
22
21
|
models/bank-transaction-response-class.ts
|
|
23
|
-
models/create-bank-account-request-dto.ts
|
|
24
22
|
models/create-payment-reminder-request-dto.ts
|
|
25
23
|
models/create-payment-request-dto.ts
|
|
26
24
|
models/create-refund-request-dto.ts
|
|
@@ -28,7 +26,6 @@ models/create-refund-response-class.ts
|
|
|
28
26
|
models/create-tenant-bank-account-request-dto.ts
|
|
29
27
|
models/create-tenant-bank-account-response-class.ts
|
|
30
28
|
models/deactivate-payment-reminder-request-dto.ts
|
|
31
|
-
models/get-bank-account-response-class.ts
|
|
32
29
|
models/get-bank-transactions-response-class.ts
|
|
33
30
|
models/get-refund-response-class.ts
|
|
34
31
|
models/get-request-dto.ts
|
|
@@ -40,14 +37,10 @@ models/link-bank-transaction-request-dto-rest.ts
|
|
|
40
37
|
models/list-bank-transactions-response-class.ts
|
|
41
38
|
models/list-refunds-response-class.ts
|
|
42
39
|
models/list-tenant-bank-account-response-class.ts
|
|
43
|
-
models/primary-bank-account-response-class.ts
|
|
44
40
|
models/refund-class.ts
|
|
45
|
-
models/set-primary-bank-account-request-dto-rest.ts
|
|
46
41
|
models/tenant-bank-account-response-class.ts
|
|
47
42
|
models/transaction-class.ts
|
|
48
43
|
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
|
|
51
44
|
models/update-tenant-bank-account-rest-request-dto.ts
|
|
52
45
|
models/validate-pspconfig-request-dto.ts
|
|
53
46
|
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.24 --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.24
|
|
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,14 +20,6 @@ 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';
|
|
31
23
|
/**
|
|
32
24
|
* BankAccountsApi - axios parameter creator
|
|
33
25
|
* @export
|
|
@@ -37,14 +29,14 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
37
29
|
/**
|
|
38
30
|
* Creates a bank account for a specified account.
|
|
39
31
|
* @summary Create a bank account
|
|
40
|
-
* @param {
|
|
32
|
+
* @param {object} body
|
|
41
33
|
* @param {string} [authorization] Bearer Token
|
|
42
34
|
* @param {*} [options] Override http request option.
|
|
43
35
|
* @throws {RequiredError}
|
|
44
36
|
*/
|
|
45
|
-
createBankAccount: async (
|
|
46
|
-
// verify required parameter '
|
|
47
|
-
assertParamExists('createBankAccount', '
|
|
37
|
+
createBankAccount: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
+
// verify required parameter 'body' is not null or undefined
|
|
39
|
+
assertParamExists('createBankAccount', 'body', body)
|
|
48
40
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
49
41
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
42
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -74,7 +66,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
74
66
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
67
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
68
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
69
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
78
70
|
|
|
79
71
|
return {
|
|
80
72
|
url: toPathString(localVarUrlObj),
|
|
@@ -82,97 +74,7 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
82
74
|
};
|
|
83
75
|
},
|
|
84
76
|
/**
|
|
85
|
-
*
|
|
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.
|
|
77
|
+
* 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
78
|
* @summary List bank accounts
|
|
177
79
|
* @param {string} [authorization] Bearer Token
|
|
178
80
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -242,108 +144,6 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
242
144
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
243
145
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
244
146
|
|
|
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
|
-
|
|
347
147
|
return {
|
|
348
148
|
url: toPathString(localVarUrlObj),
|
|
349
149
|
options: localVarRequestOptions,
|
|
@@ -362,41 +162,17 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
362
162
|
/**
|
|
363
163
|
* Creates a bank account for a specified account.
|
|
364
164
|
* @summary Create a bank account
|
|
365
|
-
* @param {
|
|
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.
|
|
165
|
+
* @param {object} body
|
|
390
166
|
* @param {string} [authorization] Bearer Token
|
|
391
167
|
* @param {*} [options] Override http request option.
|
|
392
168
|
* @throws {RequiredError}
|
|
393
169
|
*/
|
|
394
|
-
async
|
|
395
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
170
|
+
async createBankAccount(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
171
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(body, authorization, options);
|
|
396
172
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
397
173
|
},
|
|
398
174
|
/**
|
|
399
|
-
* Returns a list of bank accounts you’ve previously created.
|
|
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.
|
|
400
176
|
* @summary List bank accounts
|
|
401
177
|
* @param {string} [authorization] Bearer Token
|
|
402
178
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -413,32 +189,6 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
413
189
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
414
190
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
415
191
|
},
|
|
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
|
-
},
|
|
442
192
|
}
|
|
443
193
|
};
|
|
444
194
|
|
|
@@ -452,38 +202,16 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
452
202
|
/**
|
|
453
203
|
* Creates a bank account for a specified account.
|
|
454
204
|
* @summary Create a bank account
|
|
455
|
-
* @param {
|
|
205
|
+
* @param {object} body
|
|
456
206
|
* @param {string} [authorization] Bearer Token
|
|
457
207
|
* @param {*} [options] Override http request option.
|
|
458
208
|
* @throws {RequiredError}
|
|
459
209
|
*/
|
|
460
|
-
createBankAccount(
|
|
461
|
-
return localVarFp.createBankAccount(
|
|
210
|
+
createBankAccount(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
211
|
+
return localVarFp.createBankAccount(body, authorization, options).then((request) => request(axios, basePath));
|
|
462
212
|
},
|
|
463
213
|
/**
|
|
464
|
-
*
|
|
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.
|
|
214
|
+
* 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.
|
|
487
215
|
* @summary List bank accounts
|
|
488
216
|
* @param {string} [authorization] Bearer Token
|
|
489
217
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -499,30 +227,6 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
499
227
|
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
500
228
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
501
229
|
},
|
|
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
|
-
},
|
|
526
230
|
};
|
|
527
231
|
};
|
|
528
232
|
|
|
@@ -534,10 +238,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
534
238
|
export interface BankAccountsApiCreateBankAccountRequest {
|
|
535
239
|
/**
|
|
536
240
|
*
|
|
537
|
-
* @type {
|
|
241
|
+
* @type {object}
|
|
538
242
|
* @memberof BankAccountsApiCreateBankAccount
|
|
539
243
|
*/
|
|
540
|
-
readonly
|
|
244
|
+
readonly body: object
|
|
541
245
|
|
|
542
246
|
/**
|
|
543
247
|
* Bearer Token
|
|
@@ -547,48 +251,6 @@ export interface BankAccountsApiCreateBankAccountRequest {
|
|
|
547
251
|
readonly authorization?: string
|
|
548
252
|
}
|
|
549
253
|
|
|
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
|
-
|
|
592
254
|
/**
|
|
593
255
|
* Request parameters for listBankAccounts operation in BankAccountsApi.
|
|
594
256
|
* @export
|
|
@@ -652,62 +314,6 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
652
314
|
readonly filters?: any
|
|
653
315
|
}
|
|
654
316
|
|
|
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
|
-
|
|
711
317
|
/**
|
|
712
318
|
* BankAccountsApi - object-oriented interface
|
|
713
319
|
* @export
|
|
@@ -724,35 +330,11 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
724
330
|
* @memberof BankAccountsApi
|
|
725
331
|
*/
|
|
726
332
|
public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
727
|
-
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.
|
|
333
|
+
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
728
334
|
}
|
|
729
335
|
|
|
730
336
|
/**
|
|
731
|
-
*
|
|
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.
|
|
337
|
+
* 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.
|
|
756
338
|
* @summary List bank accounts
|
|
757
339
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
758
340
|
* @param {*} [options] Override http request option.
|
|
@@ -762,28 +344,4 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
762
344
|
public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
763
345
|
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));
|
|
764
346
|
}
|
|
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
|
-
}
|
|
789
347
|
}
|
|
@@ -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
|