@emilgroup/payment-sdk 1.4.1-beta.15 → 1.4.1-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +346 -22
- package/api/bank-transaction-api.ts +12 -12
- package/api/payment-methods-api.ts +38 -145
- package/api/payment-reminders-api.ts +12 -12
- package/api/payments-api.ts +42 -45
- package/api/refunds-api.ts +4 -4
- package/api/tenant-bank-account-api.ts +20 -20
- package/dist/api/bank-accounts-api.d.ts +193 -16
- package/dist/api/bank-accounts-api.js +302 -19
- package/dist/api/bank-transaction-api.d.ts +12 -12
- package/dist/api/bank-transaction-api.js +11 -11
- package/dist/api/payment-methods-api.d.ts +29 -84
- package/dist/api/payment-methods-api.js +33 -129
- package/dist/api/payment-reminders-api.d.ts +12 -12
- package/dist/api/payment-reminders-api.js +11 -11
- package/dist/api/payments-api.d.ts +33 -33
- package/dist/api/payments-api.js +37 -39
- package/dist/api/refunds-api.d.ts +4 -4
- package/dist/api/refunds-api.js +3 -3
- package/dist/api/tenant-bank-account-api.d.ts +20 -20
- package/dist/api/tenant-bank-account-api.js +14 -14
- package/dist/models/bank-account-class.d.ts +67 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/create-bank-account-request-dto.d.ts +30 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- 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/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- 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/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/models/bank-account-class.ts +73 -0
- package/models/create-bank-account-request-dto.ts +36 -0
- package/models/get-bank-account-response-class.ts +31 -0
- package/models/index.ts +5 -0
- package/models/primary-bank-account-response-class.ts +48 -0
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- 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,7 +40,9 @@ 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
|
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.17 --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.17
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -20,6 +20,12 @@ 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';
|
|
23
29
|
/**
|
|
24
30
|
* BankAccountsApi - axios parameter creator
|
|
25
31
|
* @export
|
|
@@ -29,14 +35,14 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
29
35
|
/**
|
|
30
36
|
* Creates a bank account for a specified account.
|
|
31
37
|
* @summary Create a bank account
|
|
32
|
-
* @param {
|
|
38
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
33
39
|
* @param {string} [authorization] Bearer Token
|
|
34
40
|
* @param {*} [options] Override http request option.
|
|
35
41
|
* @throws {RequiredError}
|
|
36
42
|
*/
|
|
37
|
-
createBankAccount: async (
|
|
38
|
-
// verify required parameter '
|
|
39
|
-
assertParamExists('createBankAccount', '
|
|
43
|
+
createBankAccount: async (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
// verify required parameter 'createBankAccountRequestDto' is not null or undefined
|
|
45
|
+
assertParamExists('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto)
|
|
40
46
|
const localVarPath = `/paymentservice/v1/bank-accounts`;
|
|
41
47
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
48
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -66,7 +72,52 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
66
72
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
67
73
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
74
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
69
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
75
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBankAccountRequestDto, localVarRequestOptions, configuration)
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
url: toPathString(localVarUrlObj),
|
|
79
|
+
options: localVarRequestOptions,
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* Deletes a bank account by code
|
|
84
|
+
* @summary Delete the bank account
|
|
85
|
+
* @param {string} code Unique identifier for the object.
|
|
86
|
+
* @param {string} [authorization] Bearer Token
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
deleteBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
91
|
+
// verify required parameter 'code' is not null or undefined
|
|
92
|
+
assertParamExists('deleteBankAccount', 'code', code)
|
|
93
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
94
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
95
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
96
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
97
|
+
let baseOptions;
|
|
98
|
+
let baseAccessToken;
|
|
99
|
+
if (configuration) {
|
|
100
|
+
baseOptions = configuration.baseOptions;
|
|
101
|
+
baseAccessToken = configuration.accessToken;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
105
|
+
const localVarHeaderParameter = {} as any;
|
|
106
|
+
const localVarQueryParameter = {} as any;
|
|
107
|
+
|
|
108
|
+
// authentication bearer required
|
|
109
|
+
// http bearer authentication required
|
|
110
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
111
|
+
|
|
112
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
113
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
119
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
70
121
|
|
|
71
122
|
return {
|
|
72
123
|
url: toPathString(localVarUrlObj),
|
|
@@ -74,13 +125,58 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
74
125
|
};
|
|
75
126
|
},
|
|
76
127
|
/**
|
|
77
|
-
*
|
|
128
|
+
* 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.
|
|
129
|
+
* @summary Retrieve the Bank Account
|
|
130
|
+
* @param {string} code Unique identifier for the object.
|
|
131
|
+
* @param {string} [authorization] Bearer Token
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
135
|
+
getBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
136
|
+
// verify required parameter 'code' is not null or undefined
|
|
137
|
+
assertParamExists('getBankAccount', 'code', code)
|
|
138
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
139
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
140
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
142
|
+
let baseOptions;
|
|
143
|
+
let baseAccessToken;
|
|
144
|
+
if (configuration) {
|
|
145
|
+
baseOptions = configuration.baseOptions;
|
|
146
|
+
baseAccessToken = configuration.accessToken;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
150
|
+
const localVarHeaderParameter = {} as any;
|
|
151
|
+
const localVarQueryParameter = {} as any;
|
|
152
|
+
|
|
153
|
+
// authentication bearer required
|
|
154
|
+
// http bearer authentication required
|
|
155
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
156
|
+
|
|
157
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
158
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
164
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
165
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
166
|
+
|
|
167
|
+
return {
|
|
168
|
+
url: toPathString(localVarUrlObj),
|
|
169
|
+
options: localVarRequestOptions,
|
|
170
|
+
};
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
* 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
174
|
* @summary List bank accounts
|
|
79
175
|
* @param {string} [authorization] Bearer Token
|
|
80
176
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
81
177
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
82
178
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
83
|
-
* @param {any} [search]
|
|
179
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
84
180
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
85
181
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
86
182
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -144,6 +240,57 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
144
240
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
241
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
146
242
|
|
|
243
|
+
return {
|
|
244
|
+
url: toPathString(localVarUrlObj),
|
|
245
|
+
options: localVarRequestOptions,
|
|
246
|
+
};
|
|
247
|
+
},
|
|
248
|
+
/**
|
|
249
|
+
* Set Primary Bank account
|
|
250
|
+
* @summary Set Primary Bank account
|
|
251
|
+
* @param {string} code Code of the bank account to set primary
|
|
252
|
+
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
253
|
+
* @param {string} [authorization] Bearer Token
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
*/
|
|
257
|
+
setPrimaryBankAccount: async (code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
258
|
+
// verify required parameter 'code' is not null or undefined
|
|
259
|
+
assertParamExists('setPrimaryBankAccount', 'code', code)
|
|
260
|
+
// verify required parameter 'setPrimaryBankAccountRequestDtoRest' is not null or undefined
|
|
261
|
+
assertParamExists('setPrimaryBankAccount', 'setPrimaryBankAccountRequestDtoRest', setPrimaryBankAccountRequestDtoRest)
|
|
262
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}/primary`
|
|
263
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
264
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
265
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
266
|
+
let baseOptions;
|
|
267
|
+
let baseAccessToken;
|
|
268
|
+
if (configuration) {
|
|
269
|
+
baseOptions = configuration.baseOptions;
|
|
270
|
+
baseAccessToken = configuration.accessToken;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
274
|
+
const localVarHeaderParameter = {} as any;
|
|
275
|
+
const localVarQueryParameter = {} as any;
|
|
276
|
+
|
|
277
|
+
// authentication bearer required
|
|
278
|
+
// http bearer authentication required
|
|
279
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
280
|
+
|
|
281
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
282
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
288
|
+
|
|
289
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
290
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
291
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
292
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setPrimaryBankAccountRequestDtoRest, localVarRequestOptions, configuration)
|
|
293
|
+
|
|
147
294
|
return {
|
|
148
295
|
url: toPathString(localVarUrlObj),
|
|
149
296
|
options: localVarRequestOptions,
|
|
@@ -162,23 +309,47 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
162
309
|
/**
|
|
163
310
|
* Creates a bank account for a specified account.
|
|
164
311
|
* @summary Create a bank account
|
|
165
|
-
* @param {
|
|
312
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
313
|
+
* @param {string} [authorization] Bearer Token
|
|
314
|
+
* @param {*} [options] Override http request option.
|
|
315
|
+
* @throws {RequiredError}
|
|
316
|
+
*/
|
|
317
|
+
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
318
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
|
|
319
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
320
|
+
},
|
|
321
|
+
/**
|
|
322
|
+
* Deletes a bank account by code
|
|
323
|
+
* @summary Delete the bank account
|
|
324
|
+
* @param {string} code Unique identifier for the object.
|
|
325
|
+
* @param {string} [authorization] Bearer Token
|
|
326
|
+
* @param {*} [options] Override http request option.
|
|
327
|
+
* @throws {RequiredError}
|
|
328
|
+
*/
|
|
329
|
+
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
330
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankAccount(code, authorization, options);
|
|
331
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
332
|
+
},
|
|
333
|
+
/**
|
|
334
|
+
* 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.
|
|
335
|
+
* @summary Retrieve the Bank Account
|
|
336
|
+
* @param {string} code Unique identifier for the object.
|
|
166
337
|
* @param {string} [authorization] Bearer Token
|
|
167
338
|
* @param {*} [options] Override http request option.
|
|
168
339
|
* @throws {RequiredError}
|
|
169
340
|
*/
|
|
170
|
-
async
|
|
171
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
341
|
+
async getBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>> {
|
|
342
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, options);
|
|
172
343
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
173
344
|
},
|
|
174
345
|
/**
|
|
175
|
-
* Returns a list of bank accounts you’ve previously created.
|
|
346
|
+
* 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
347
|
* @summary List bank accounts
|
|
177
348
|
* @param {string} [authorization] Bearer Token
|
|
178
349
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
179
350
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
180
351
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
181
|
-
* @param {any} [search]
|
|
352
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
182
353
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
183
354
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
184
355
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -189,6 +360,19 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
189
360
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
190
361
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
191
362
|
},
|
|
363
|
+
/**
|
|
364
|
+
* Set Primary Bank account
|
|
365
|
+
* @summary Set Primary Bank account
|
|
366
|
+
* @param {string} code Code of the bank account to set primary
|
|
367
|
+
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
368
|
+
* @param {string} [authorization] Bearer Token
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
373
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options);
|
|
374
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
|
+
},
|
|
192
376
|
}
|
|
193
377
|
};
|
|
194
378
|
|
|
@@ -202,22 +386,44 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
202
386
|
/**
|
|
203
387
|
* Creates a bank account for a specified account.
|
|
204
388
|
* @summary Create a bank account
|
|
205
|
-
* @param {
|
|
389
|
+
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
206
390
|
* @param {string} [authorization] Bearer Token
|
|
207
391
|
* @param {*} [options] Override http request option.
|
|
208
392
|
* @throws {RequiredError}
|
|
209
393
|
*/
|
|
210
|
-
createBankAccount(
|
|
211
|
-
return localVarFp.createBankAccount(
|
|
394
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
395
|
+
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
212
396
|
},
|
|
213
397
|
/**
|
|
214
|
-
*
|
|
398
|
+
* Deletes a bank account by code
|
|
399
|
+
* @summary Delete the bank account
|
|
400
|
+
* @param {string} code Unique identifier for the object.
|
|
401
|
+
* @param {string} [authorization] Bearer Token
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
*/
|
|
405
|
+
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
406
|
+
return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
407
|
+
},
|
|
408
|
+
/**
|
|
409
|
+
* 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.
|
|
410
|
+
* @summary Retrieve the Bank Account
|
|
411
|
+
* @param {string} code Unique identifier for the object.
|
|
412
|
+
* @param {string} [authorization] Bearer Token
|
|
413
|
+
* @param {*} [options] Override http request option.
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
*/
|
|
416
|
+
getBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<GetBankAccountResponseClass> {
|
|
417
|
+
return localVarFp.getBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
418
|
+
},
|
|
419
|
+
/**
|
|
420
|
+
* 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
421
|
* @summary List bank accounts
|
|
216
422
|
* @param {string} [authorization] Bearer Token
|
|
217
423
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
218
424
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
219
425
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
220
|
-
* @param {any} [search]
|
|
426
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
221
427
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
222
428
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
223
429
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -227,6 +433,18 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
227
433
|
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
228
434
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
229
435
|
},
|
|
436
|
+
/**
|
|
437
|
+
* Set Primary Bank account
|
|
438
|
+
* @summary Set Primary Bank account
|
|
439
|
+
* @param {string} code Code of the bank account to set primary
|
|
440
|
+
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
441
|
+
* @param {string} [authorization] Bearer Token
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
446
|
+
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
447
|
+
},
|
|
230
448
|
};
|
|
231
449
|
};
|
|
232
450
|
|
|
@@ -238,10 +456,10 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
238
456
|
export interface BankAccountsApiCreateBankAccountRequest {
|
|
239
457
|
/**
|
|
240
458
|
*
|
|
241
|
-
* @type {
|
|
459
|
+
* @type {CreateBankAccountRequestDto}
|
|
242
460
|
* @memberof BankAccountsApiCreateBankAccount
|
|
243
461
|
*/
|
|
244
|
-
readonly
|
|
462
|
+
readonly createBankAccountRequestDto: CreateBankAccountRequestDto
|
|
245
463
|
|
|
246
464
|
/**
|
|
247
465
|
* Bearer Token
|
|
@@ -251,6 +469,48 @@ export interface BankAccountsApiCreateBankAccountRequest {
|
|
|
251
469
|
readonly authorization?: string
|
|
252
470
|
}
|
|
253
471
|
|
|
472
|
+
/**
|
|
473
|
+
* Request parameters for deleteBankAccount operation in BankAccountsApi.
|
|
474
|
+
* @export
|
|
475
|
+
* @interface BankAccountsApiDeleteBankAccountRequest
|
|
476
|
+
*/
|
|
477
|
+
export interface BankAccountsApiDeleteBankAccountRequest {
|
|
478
|
+
/**
|
|
479
|
+
* Unique identifier for the object.
|
|
480
|
+
* @type {string}
|
|
481
|
+
* @memberof BankAccountsApiDeleteBankAccount
|
|
482
|
+
*/
|
|
483
|
+
readonly code: string
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Bearer Token
|
|
487
|
+
* @type {string}
|
|
488
|
+
* @memberof BankAccountsApiDeleteBankAccount
|
|
489
|
+
*/
|
|
490
|
+
readonly authorization?: string
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Request parameters for getBankAccount operation in BankAccountsApi.
|
|
495
|
+
* @export
|
|
496
|
+
* @interface BankAccountsApiGetBankAccountRequest
|
|
497
|
+
*/
|
|
498
|
+
export interface BankAccountsApiGetBankAccountRequest {
|
|
499
|
+
/**
|
|
500
|
+
* Unique identifier for the object.
|
|
501
|
+
* @type {string}
|
|
502
|
+
* @memberof BankAccountsApiGetBankAccount
|
|
503
|
+
*/
|
|
504
|
+
readonly code: string
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Bearer Token
|
|
508
|
+
* @type {string}
|
|
509
|
+
* @memberof BankAccountsApiGetBankAccount
|
|
510
|
+
*/
|
|
511
|
+
readonly authorization?: string
|
|
512
|
+
}
|
|
513
|
+
|
|
254
514
|
/**
|
|
255
515
|
* Request parameters for listBankAccounts operation in BankAccountsApi.
|
|
256
516
|
* @export
|
|
@@ -286,7 +546,7 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
286
546
|
readonly filter?: any
|
|
287
547
|
|
|
288
548
|
/**
|
|
289
|
-
*
|
|
549
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
290
550
|
* @type {any}
|
|
291
551
|
* @memberof BankAccountsApiListBankAccounts
|
|
292
552
|
*/
|
|
@@ -314,6 +574,34 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
314
574
|
readonly filters?: any
|
|
315
575
|
}
|
|
316
576
|
|
|
577
|
+
/**
|
|
578
|
+
* Request parameters for setPrimaryBankAccount operation in BankAccountsApi.
|
|
579
|
+
* @export
|
|
580
|
+
* @interface BankAccountsApiSetPrimaryBankAccountRequest
|
|
581
|
+
*/
|
|
582
|
+
export interface BankAccountsApiSetPrimaryBankAccountRequest {
|
|
583
|
+
/**
|
|
584
|
+
* Code of the bank account to set primary
|
|
585
|
+
* @type {string}
|
|
586
|
+
* @memberof BankAccountsApiSetPrimaryBankAccount
|
|
587
|
+
*/
|
|
588
|
+
readonly code: string
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @type {SetPrimaryBankAccountRequestDtoRest}
|
|
593
|
+
* @memberof BankAccountsApiSetPrimaryBankAccount
|
|
594
|
+
*/
|
|
595
|
+
readonly setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Bearer Token
|
|
599
|
+
* @type {string}
|
|
600
|
+
* @memberof BankAccountsApiSetPrimaryBankAccount
|
|
601
|
+
*/
|
|
602
|
+
readonly authorization?: string
|
|
603
|
+
}
|
|
604
|
+
|
|
317
605
|
/**
|
|
318
606
|
* BankAccountsApi - object-oriented interface
|
|
319
607
|
* @export
|
|
@@ -330,11 +618,35 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
330
618
|
* @memberof BankAccountsApi
|
|
331
619
|
*/
|
|
332
620
|
public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
333
|
-
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.
|
|
621
|
+
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Deletes a bank account by code
|
|
626
|
+
* @summary Delete the bank account
|
|
627
|
+
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
628
|
+
* @param {*} [options] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
* @memberof BankAccountsApi
|
|
631
|
+
*/
|
|
632
|
+
public deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig) {
|
|
633
|
+
return BankAccountsApiFp(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
334
634
|
}
|
|
335
635
|
|
|
336
636
|
/**
|
|
337
|
-
*
|
|
637
|
+
* 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.
|
|
638
|
+
* @summary Retrieve the Bank Account
|
|
639
|
+
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
640
|
+
* @param {*} [options] Override http request option.
|
|
641
|
+
* @throws {RequiredError}
|
|
642
|
+
* @memberof BankAccountsApi
|
|
643
|
+
*/
|
|
644
|
+
public getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig) {
|
|
645
|
+
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* 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
650
|
* @summary List bank accounts
|
|
339
651
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
340
652
|
* @param {*} [options] Override http request option.
|
|
@@ -344,4 +656,16 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
344
656
|
public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
345
657
|
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
658
|
}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Set Primary Bank account
|
|
662
|
+
* @summary Set Primary Bank account
|
|
663
|
+
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
664
|
+
* @param {*} [options] Override http request option.
|
|
665
|
+
* @throws {RequiredError}
|
|
666
|
+
* @memberof BankAccountsApi
|
|
667
|
+
*/
|
|
668
|
+
public setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig) {
|
|
669
|
+
return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
670
|
+
}
|
|
347
671
|
}
|