@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.30
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 +10 -27
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +497 -43
- package/api/bank-transaction-api.ts +89 -53
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +62 -173
- package/api/payment-reminders-api.ts +21 -25
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +54 -59
- package/api/refunds-api.ts +20 -18
- package/api/tenant-bank-account-api.ts +71 -61
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +6 -2
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +295 -45
- package/dist/api/bank-accounts-api.js +412 -24
- package/dist/api/bank-transaction-api.d.ts +65 -45
- package/dist/api/bank-transaction-api.js +55 -40
- 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 +48 -107
- package/dist/api/payment-methods-api.js +51 -143
- package/dist/api/payment-reminders-api.d.ts +25 -27
- package/dist/api/payment-reminders-api.js +12 -12
- 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 +46 -49
- package/dist/api/payments-api.js +43 -41
- package/dist/api/refunds-api.d.ts +15 -15
- package/dist/api/refunds-api.js +15 -13
- package/dist/api/tenant-bank-account-api.d.ts +70 -57
- package/dist/api/tenant-bank-account-api.js +56 -42
- 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 +2 -1
- package/dist/base.js +5 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-account-class.d.ts +23 -4
- package/dist/models/bank-account-class.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +7 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-bank-account-request-dto.d.ts +15 -3
- package/dist/models/create-bank-account-request-dto.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 +25 -0
- package/dist/models/{complete-payment-setup-request-dto.js → create-tenant-bank-account-response-class.js} +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-bank-account-response-class.d.ts +25 -0
- package/dist/models/{billing-profile-dto.js → get-bank-account-response-class.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 +10 -27
- package/dist/models/index.js +10 -27
- 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 +24 -0
- package/dist/models/{complete-braintree-payment-setup-request-dto.js → 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 +31 -0
- package/dist/models/{billing-profile-limited-response-dto.js → list-tenant-bank-account-response-class.js} +1 -1
- package/dist/models/primary-bank-account-response-class.d.ts +42 -0
- package/dist/models/primary-bank-account-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +2 -1
- package/dist/models/refund-class.js +3 -2
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
- package/dist/models/update-bank-account-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto.d.ts +36 -0
- package/dist/models/update-bank-account-request-dto.js +15 -0
- package/dist/models/update-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-bank-account-response-class.js +15 -0
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/bank-account-class.ts +23 -4
- package/models/bank-transaction-response-class.ts +7 -1
- package/models/create-bank-account-request-dto.ts +15 -3
- 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 +31 -0
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-account-response-class.ts +31 -0
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +10 -27
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +30 -0
- 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 +37 -0
- package/models/primary-bank-account-response-class.ts +48 -0
- package/models/refund-class.ts +3 -2
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
- package/models/update-bank-account-request-dto-rest.ts +36 -0
- package/models/update-bank-account-request-dto.ts +42 -0
- package/models/update-bank-account-response-class.ts +31 -0
- 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/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- 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-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-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/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.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/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-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-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/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Emil Payment Service
|
|
6
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
6
|
+
* 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.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
9
|
* Contact: kontakt@emil.de
|
|
@@ -93,7 +93,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* Creates a bank account for a specified account.
|
|
96
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
97
97
|
* @summary Create a bank account
|
|
98
98
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
@@ -142,16 +142,116 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
144
|
/**
|
|
145
|
-
*
|
|
145
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
146
|
+
* @summary Delete the bank account
|
|
147
|
+
* @param {string} code Unique identifier for the object.
|
|
148
|
+
* @param {string} [authorization] Bearer Token
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
deleteBankAccount: function (code, authorization, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
// verify required parameter 'code' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('deleteBankAccount', 'code', code);
|
|
161
|
+
localVarPath = "/paymentservice/v1/bank-accounts/{code}"
|
|
162
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
163
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
|
+
if (configuration) {
|
|
165
|
+
baseOptions = configuration.baseOptions;
|
|
166
|
+
baseAccessToken = configuration.accessToken;
|
|
167
|
+
}
|
|
168
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
169
|
+
localVarHeaderParameter = {};
|
|
170
|
+
localVarQueryParameter = {};
|
|
171
|
+
// authentication bearer required
|
|
172
|
+
// http bearer authentication required
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
174
|
+
case 1:
|
|
175
|
+
// authentication bearer required
|
|
176
|
+
// http bearer authentication required
|
|
177
|
+
_a.sent();
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
|
+
}
|
|
181
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
return [2 /*return*/, {
|
|
185
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
186
|
+
options: localVarRequestOptions,
|
|
187
|
+
}];
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
/**
|
|
193
|
+
* 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.
|
|
194
|
+
* @summary Retrieve the bank account
|
|
195
|
+
* @param {string} code Unique identifier for the object.
|
|
196
|
+
* @param {string} [authorization] Bearer Token
|
|
197
|
+
* @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
getBankAccount: function (code, authorization, expand, options) {
|
|
202
|
+
if (options === void 0) { options = {}; }
|
|
203
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
204
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
205
|
+
return __generator(this, function (_a) {
|
|
206
|
+
switch (_a.label) {
|
|
207
|
+
case 0:
|
|
208
|
+
// verify required parameter 'code' is not null or undefined
|
|
209
|
+
(0, common_1.assertParamExists)('getBankAccount', 'code', code);
|
|
210
|
+
localVarPath = "/paymentservice/v1/bank-accounts/{code}"
|
|
211
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
212
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
213
|
+
if (configuration) {
|
|
214
|
+
baseOptions = configuration.baseOptions;
|
|
215
|
+
baseAccessToken = configuration.accessToken;
|
|
216
|
+
}
|
|
217
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
218
|
+
localVarHeaderParameter = {};
|
|
219
|
+
localVarQueryParameter = {};
|
|
220
|
+
// authentication bearer required
|
|
221
|
+
// http bearer authentication required
|
|
222
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
223
|
+
case 1:
|
|
224
|
+
// authentication bearer required
|
|
225
|
+
// http bearer authentication required
|
|
226
|
+
_a.sent();
|
|
227
|
+
if (expand !== undefined) {
|
|
228
|
+
localVarQueryParameter['expand'] = expand;
|
|
229
|
+
}
|
|
230
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
231
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
232
|
+
}
|
|
233
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
236
|
+
return [2 /*return*/, {
|
|
237
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
238
|
+
options: localVarRequestOptions,
|
|
239
|
+
}];
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
},
|
|
244
|
+
/**
|
|
245
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
146
246
|
* @summary List bank accounts
|
|
147
247
|
* @param {string} [authorization] Bearer Token
|
|
148
248
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
149
249
|
* @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.
|
|
150
|
-
* @param {
|
|
151
|
-
* @param {any} [search]
|
|
152
|
-
* @param {
|
|
153
|
-
* @param {
|
|
154
|
-
* @param {
|
|
250
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
251
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
252
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
253
|
+
* @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
254
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
155
255
|
* @param {*} [options] Override http request option.
|
|
156
256
|
* @throws {RequiredError}
|
|
157
257
|
*/
|
|
@@ -213,6 +313,112 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
213
313
|
});
|
|
214
314
|
});
|
|
215
315
|
},
|
|
316
|
+
/**
|
|
317
|
+
* Set the primary bank account for the specified partner/account
|
|
318
|
+
* @summary Set primary bank account
|
|
319
|
+
* @param {string} code Code of the bank account to set primary
|
|
320
|
+
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
321
|
+
* @param {string} [authorization] Bearer Token
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
|
|
326
|
+
if (options === void 0) { options = {}; }
|
|
327
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
|
+
return __generator(this, function (_a) {
|
|
330
|
+
switch (_a.label) {
|
|
331
|
+
case 0:
|
|
332
|
+
// verify required parameter 'code' is not null or undefined
|
|
333
|
+
(0, common_1.assertParamExists)('setPrimaryBankAccount', 'code', code);
|
|
334
|
+
// verify required parameter 'setPrimaryBankAccountRequestDtoRest' is not null or undefined
|
|
335
|
+
(0, common_1.assertParamExists)('setPrimaryBankAccount', 'setPrimaryBankAccountRequestDtoRest', setPrimaryBankAccountRequestDtoRest);
|
|
336
|
+
localVarPath = "/paymentservice/v1/bank-accounts/{code}/primary"
|
|
337
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
338
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
339
|
+
if (configuration) {
|
|
340
|
+
baseOptions = configuration.baseOptions;
|
|
341
|
+
baseAccessToken = configuration.accessToken;
|
|
342
|
+
}
|
|
343
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
344
|
+
localVarHeaderParameter = {};
|
|
345
|
+
localVarQueryParameter = {};
|
|
346
|
+
// authentication bearer required
|
|
347
|
+
// http bearer authentication required
|
|
348
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
349
|
+
case 1:
|
|
350
|
+
// authentication bearer required
|
|
351
|
+
// http bearer authentication required
|
|
352
|
+
_a.sent();
|
|
353
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
354
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
355
|
+
}
|
|
356
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
357
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
358
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
359
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
360
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setPrimaryBankAccountRequestDtoRest, localVarRequestOptions, configuration);
|
|
361
|
+
return [2 /*return*/, {
|
|
362
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
363
|
+
options: localVarRequestOptions,
|
|
364
|
+
}];
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
});
|
|
368
|
+
},
|
|
369
|
+
/**
|
|
370
|
+
* Update a bank account by code
|
|
371
|
+
* @summary Update the Update bank account
|
|
372
|
+
* @param {string} code Unique identifier for the object.
|
|
373
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
374
|
+
* @param {string} [authorization] Bearer Token
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
|
|
379
|
+
if (options === void 0) { options = {}; }
|
|
380
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
381
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
382
|
+
return __generator(this, function (_a) {
|
|
383
|
+
switch (_a.label) {
|
|
384
|
+
case 0:
|
|
385
|
+
// verify required parameter 'code' is not null or undefined
|
|
386
|
+
(0, common_1.assertParamExists)('updateBankAccount', 'code', code);
|
|
387
|
+
// verify required parameter 'updateBankAccountRequestDtoRest' is not null or undefined
|
|
388
|
+
(0, common_1.assertParamExists)('updateBankAccount', 'updateBankAccountRequestDtoRest', updateBankAccountRequestDtoRest);
|
|
389
|
+
localVarPath = "/paymentservice/v1/bank-accounts/{code}"
|
|
390
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
391
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
392
|
+
if (configuration) {
|
|
393
|
+
baseOptions = configuration.baseOptions;
|
|
394
|
+
baseAccessToken = configuration.accessToken;
|
|
395
|
+
}
|
|
396
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
397
|
+
localVarHeaderParameter = {};
|
|
398
|
+
localVarQueryParameter = {};
|
|
399
|
+
// authentication bearer required
|
|
400
|
+
// http bearer authentication required
|
|
401
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
402
|
+
case 1:
|
|
403
|
+
// authentication bearer required
|
|
404
|
+
// http bearer authentication required
|
|
405
|
+
_a.sent();
|
|
406
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
407
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
408
|
+
}
|
|
409
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
410
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
411
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
412
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
413
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBankAccountRequestDtoRest, localVarRequestOptions, configuration);
|
|
414
|
+
return [2 /*return*/, {
|
|
415
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
416
|
+
options: localVarRequestOptions,
|
|
417
|
+
}];
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
});
|
|
421
|
+
},
|
|
216
422
|
};
|
|
217
423
|
};
|
|
218
424
|
exports.BankAccountsApiAxiosParamCreator = BankAccountsApiAxiosParamCreator;
|
|
@@ -224,7 +430,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
224
430
|
var localVarAxiosParamCreator = (0, exports.BankAccountsApiAxiosParamCreator)(configuration);
|
|
225
431
|
return {
|
|
226
432
|
/**
|
|
227
|
-
* Creates a bank account for a specified account.
|
|
433
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
228
434
|
* @summary Create a bank account
|
|
229
435
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
230
436
|
* @param {string} [authorization] Bearer Token
|
|
@@ -245,16 +451,59 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
245
451
|
});
|
|
246
452
|
},
|
|
247
453
|
/**
|
|
248
|
-
*
|
|
454
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
455
|
+
* @summary Delete the bank account
|
|
456
|
+
* @param {string} code Unique identifier for the object.
|
|
457
|
+
* @param {string} [authorization] Bearer Token
|
|
458
|
+
* @param {*} [options] Override http request option.
|
|
459
|
+
* @throws {RequiredError}
|
|
460
|
+
*/
|
|
461
|
+
deleteBankAccount: function (code, authorization, options) {
|
|
462
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
463
|
+
var localVarAxiosArgs;
|
|
464
|
+
return __generator(this, function (_a) {
|
|
465
|
+
switch (_a.label) {
|
|
466
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteBankAccount(code, authorization, options)];
|
|
467
|
+
case 1:
|
|
468
|
+
localVarAxiosArgs = _a.sent();
|
|
469
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
});
|
|
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 {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
480
|
+
* @param {*} [options] Override http request option.
|
|
481
|
+
* @throws {RequiredError}
|
|
482
|
+
*/
|
|
483
|
+
getBankAccount: function (code, authorization, expand, options) {
|
|
484
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
485
|
+
var localVarAxiosArgs;
|
|
486
|
+
return __generator(this, function (_a) {
|
|
487
|
+
switch (_a.label) {
|
|
488
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankAccount(code, authorization, expand, options)];
|
|
489
|
+
case 1:
|
|
490
|
+
localVarAxiosArgs = _a.sent();
|
|
491
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
});
|
|
495
|
+
},
|
|
496
|
+
/**
|
|
497
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
249
498
|
* @summary List bank accounts
|
|
250
499
|
* @param {string} [authorization] Bearer Token
|
|
251
500
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
252
501
|
* @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.
|
|
253
|
-
* @param {
|
|
254
|
-
* @param {any} [search]
|
|
255
|
-
* @param {
|
|
256
|
-
* @param {
|
|
257
|
-
* @param {
|
|
502
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
503
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
504
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
505
|
+
* @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
506
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
258
507
|
* @param {*} [options] Override http request option.
|
|
259
508
|
* @throws {RequiredError}
|
|
260
509
|
*/
|
|
@@ -271,6 +520,50 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
271
520
|
});
|
|
272
521
|
});
|
|
273
522
|
},
|
|
523
|
+
/**
|
|
524
|
+
* Set the primary bank account for the specified partner/account
|
|
525
|
+
* @summary Set primary bank account
|
|
526
|
+
* @param {string} code Code of the bank account to set primary
|
|
527
|
+
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
528
|
+
* @param {string} [authorization] Bearer Token
|
|
529
|
+
* @param {*} [options] Override http request option.
|
|
530
|
+
* @throws {RequiredError}
|
|
531
|
+
*/
|
|
532
|
+
setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
|
|
533
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
534
|
+
var localVarAxiosArgs;
|
|
535
|
+
return __generator(this, function (_a) {
|
|
536
|
+
switch (_a.label) {
|
|
537
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options)];
|
|
538
|
+
case 1:
|
|
539
|
+
localVarAxiosArgs = _a.sent();
|
|
540
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
});
|
|
544
|
+
},
|
|
545
|
+
/**
|
|
546
|
+
* Update a bank account by code
|
|
547
|
+
* @summary Update the Update bank account
|
|
548
|
+
* @param {string} code Unique identifier for the object.
|
|
549
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
550
|
+
* @param {string} [authorization] Bearer Token
|
|
551
|
+
* @param {*} [options] Override http request option.
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
*/
|
|
554
|
+
updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
|
|
555
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
556
|
+
var localVarAxiosArgs;
|
|
557
|
+
return __generator(this, function (_a) {
|
|
558
|
+
switch (_a.label) {
|
|
559
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options)];
|
|
560
|
+
case 1:
|
|
561
|
+
localVarAxiosArgs = _a.sent();
|
|
562
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
});
|
|
566
|
+
},
|
|
274
567
|
};
|
|
275
568
|
};
|
|
276
569
|
exports.BankAccountsApiFp = BankAccountsApiFp;
|
|
@@ -282,7 +575,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
282
575
|
var localVarFp = (0, exports.BankAccountsApiFp)(configuration);
|
|
283
576
|
return {
|
|
284
577
|
/**
|
|
285
|
-
* Creates a bank account for a specified account.
|
|
578
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
286
579
|
* @summary Create a bank account
|
|
287
580
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
288
581
|
* @param {string} [authorization] Bearer Token
|
|
@@ -293,22 +586,69 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
293
586
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
294
587
|
},
|
|
295
588
|
/**
|
|
296
|
-
*
|
|
589
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
590
|
+
* @summary Delete the bank account
|
|
591
|
+
* @param {string} code Unique identifier for the object.
|
|
592
|
+
* @param {string} [authorization] Bearer Token
|
|
593
|
+
* @param {*} [options] Override http request option.
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
*/
|
|
596
|
+
deleteBankAccount: function (code, authorization, options) {
|
|
597
|
+
return localVarFp.deleteBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
598
|
+
},
|
|
599
|
+
/**
|
|
600
|
+
* 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.
|
|
601
|
+
* @summary Retrieve the bank account
|
|
602
|
+
* @param {string} code Unique identifier for the object.
|
|
603
|
+
* @param {string} [authorization] Bearer Token
|
|
604
|
+
* @param {'primaryBankAccount'} [expand] Expand the response with additional entities. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
605
|
+
* @param {*} [options] Override http request option.
|
|
606
|
+
* @throws {RequiredError}
|
|
607
|
+
*/
|
|
608
|
+
getBankAccount: function (code, authorization, expand, options) {
|
|
609
|
+
return localVarFp.getBankAccount(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
610
|
+
},
|
|
611
|
+
/**
|
|
612
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
297
613
|
* @summary List bank accounts
|
|
298
614
|
* @param {string} [authorization] Bearer Token
|
|
299
615
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
300
616
|
* @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.
|
|
301
|
-
* @param {
|
|
302
|
-
* @param {any} [search]
|
|
303
|
-
* @param {
|
|
304
|
-
* @param {
|
|
305
|
-
* @param {
|
|
617
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
618
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
619
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
620
|
+
* @param {'primaryBankAccount'} [expand] Expand to fetch additional information about the list items. For example, using the \"primaryBankAccount\" expand, you can get information about whether a given bank account is primary.
|
|
621
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, accountCode, partnerCode</i>
|
|
306
622
|
* @param {*} [options] Override http request option.
|
|
307
623
|
* @throws {RequiredError}
|
|
308
624
|
*/
|
|
309
625
|
listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
310
626
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
311
627
|
},
|
|
628
|
+
/**
|
|
629
|
+
* Set the primary bank account for the specified partner/account
|
|
630
|
+
* @summary Set primary bank account
|
|
631
|
+
* @param {string} code Code of the bank account to set primary
|
|
632
|
+
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
633
|
+
* @param {string} [authorization] Bearer Token
|
|
634
|
+
* @param {*} [options] Override http request option.
|
|
635
|
+
* @throws {RequiredError}
|
|
636
|
+
*/
|
|
637
|
+
setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
|
|
638
|
+
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
639
|
+
},
|
|
640
|
+
/**
|
|
641
|
+
* Update a bank account by code
|
|
642
|
+
* @summary Update the Update bank account
|
|
643
|
+
* @param {string} code Unique identifier for the object.
|
|
644
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
645
|
+
* @param {string} [authorization] Bearer Token
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
*/
|
|
649
|
+
updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
|
|
650
|
+
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
651
|
+
},
|
|
312
652
|
};
|
|
313
653
|
};
|
|
314
654
|
exports.BankAccountsApiFactory = BankAccountsApiFactory;
|
|
@@ -324,7 +664,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
324
664
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
325
665
|
}
|
|
326
666
|
/**
|
|
327
|
-
* Creates a bank account for a specified account.
|
|
667
|
+
* Creates a bank account for a specified partner/account. If this is the first bank account for the specified partner/account, it will be marked as primary.
|
|
328
668
|
* @summary Create a bank account
|
|
329
669
|
* @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
|
|
330
670
|
* @param {*} [options] Override http request option.
|
|
@@ -336,7 +676,31 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
336
676
|
return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
337
677
|
};
|
|
338
678
|
/**
|
|
339
|
-
*
|
|
679
|
+
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary.
|
|
680
|
+
* @summary Delete the bank account
|
|
681
|
+
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
* @memberof BankAccountsApi
|
|
685
|
+
*/
|
|
686
|
+
BankAccountsApi.prototype.deleteBankAccount = function (requestParameters, options) {
|
|
687
|
+
var _this = this;
|
|
688
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
689
|
+
};
|
|
690
|
+
/**
|
|
691
|
+
* 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.
|
|
692
|
+
* @summary Retrieve the bank account
|
|
693
|
+
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
* @memberof BankAccountsApi
|
|
697
|
+
*/
|
|
698
|
+
BankAccountsApi.prototype.getBankAccount = function (requestParameters, options) {
|
|
699
|
+
var _this = this;
|
|
700
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
701
|
+
};
|
|
702
|
+
/**
|
|
703
|
+
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
340
704
|
* @summary List bank accounts
|
|
341
705
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
342
706
|
* @param {*} [options] Override http request option.
|
|
@@ -348,6 +712,30 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
348
712
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
349
713
|
return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
350
714
|
};
|
|
715
|
+
/**
|
|
716
|
+
* Set the primary bank account for the specified partner/account
|
|
717
|
+
* @summary Set primary bank account
|
|
718
|
+
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
719
|
+
* @param {*} [options] Override http request option.
|
|
720
|
+
* @throws {RequiredError}
|
|
721
|
+
* @memberof BankAccountsApi
|
|
722
|
+
*/
|
|
723
|
+
BankAccountsApi.prototype.setPrimaryBankAccount = function (requestParameters, options) {
|
|
724
|
+
var _this = this;
|
|
725
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
726
|
+
};
|
|
727
|
+
/**
|
|
728
|
+
* Update a bank account by code
|
|
729
|
+
* @summary Update the Update bank account
|
|
730
|
+
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
731
|
+
* @param {*} [options] Override http request option.
|
|
732
|
+
* @throws {RequiredError}
|
|
733
|
+
* @memberof BankAccountsApi
|
|
734
|
+
*/
|
|
735
|
+
BankAccountsApi.prototype.updateBankAccount = function (requestParameters, options) {
|
|
736
|
+
var _this = this;
|
|
737
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
738
|
+
};
|
|
351
739
|
return BankAccountsApi;
|
|
352
740
|
}(base_1.BaseAPI));
|
|
353
741
|
exports.BankAccountsApi = BankAccountsApi;
|