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