@emilgroup/payment-sdk 1.13.1-beta.2 → 1.13.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 +12 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +79 -37
- package/api/bank-orders-api.ts +691 -0
- package/api/bank-transaction-api.ts +187 -56
- package/api/payment-methods-api.ts +67 -25
- package/api/payment-reminders-api.ts +85 -43
- package/api/payment-setup-api.ts +8 -8
- package/api/payments-api.ts +67 -25
- package/api/refunds-api.ts +57 -29
- package/api/tenant-bank-account-api.ts +45 -17
- package/api/webhooks-api.ts +4 -4
- package/api.ts +2 -0
- package/base.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +59 -32
- package/dist/api/bank-accounts-api.js +53 -35
- package/dist/api/bank-orders-api.d.ts +393 -0
- package/dist/api/bank-orders-api.js +642 -0
- package/dist/api/bank-transaction-api.d.ts +123 -49
- package/dist/api/bank-transaction-api.js +151 -47
- package/dist/api/payment-methods-api.d.ts +47 -20
- package/dist/api/payment-methods-api.js +41 -23
- package/dist/api/payment-reminders-api.d.ts +61 -34
- package/dist/api/payment-reminders-api.js +54 -36
- package/dist/api/payment-setup-api.d.ts +8 -8
- package/dist/api/payment-setup-api.js +8 -8
- package/dist/api/payments-api.d.ts +47 -20
- package/dist/api/payments-api.js +41 -23
- package/dist/api/refunds-api.d.ts +40 -22
- package/dist/api/refunds-api.js +36 -24
- package/dist/api/tenant-bank-account-api.d.ts +28 -10
- package/dist/api/tenant-bank-account-api.js +24 -12
- package/dist/api/webhooks-api.d.ts +4 -4
- package/dist/api/webhooks-api.js +4 -4
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/bank-order-class.d.ts +115 -0
- package/dist/models/bank-order-class.js +15 -0
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +8 -2
- package/dist/models/bank-transaction-class.d.ts +22 -2
- package/dist/models/create-bank-order-request-dto.d.ts +74 -0
- package/dist/models/create-bank-order-request-dto.js +28 -0
- package/dist/models/create-bank-order-response-class.d.ts +25 -0
- package/dist/models/create-bank-order-response-class.js +15 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-psp-payment-method-request-dto.d.ts +7 -1
- package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
- package/dist/models/financial-account-class.d.ts +111 -0
- package/dist/models/financial-account-class.js +24 -0
- package/dist/models/generate-invoice-match-suggestions-response-class.d.ts +25 -0
- package/dist/models/generate-invoice-match-suggestions-response-class.js +15 -0
- package/dist/models/get-bank-order-response-class.d.ts +25 -0
- package/dist/models/get-bank-order-response-class.js +15 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/invoice-match-suggestion-class.d.ts +60 -0
- package/dist/models/invoice-match-suggestion-class.js +15 -0
- package/dist/models/list-bank-orders-response-class.d.ts +31 -0
- package/dist/models/list-bank-orders-response-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
- package/dist/models/payment-class.d.ts +7 -1
- package/dist/models/payment-reminder-class.d.ts +7 -1
- package/dist/models/refund-class.d.ts +7 -1
- package/dist/models/suggestion-generation-progress-class.d.ts +43 -0
- package/dist/models/suggestion-generation-progress-class.js +22 -0
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +8 -2
- package/dist/models/update-bank-order-request-dto.d.ts +56 -0
- package/dist/models/update-bank-order-request-dto.js +23 -0
- package/dist/models/update-bank-order-response-class.d.ts +25 -0
- package/dist/models/update-bank-order-response-class.js +15 -0
- package/models/bank-order-class.ts +121 -0
- package/models/bank-transaction-class-without-expand-properties.ts +8 -2
- package/models/bank-transaction-class.ts +22 -2
- package/models/create-bank-order-request-dto.ts +84 -0
- package/models/create-bank-order-response-class.ts +31 -0
- package/models/create-payment-reminder-request-dto.ts +7 -1
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-psp-payment-method-request-dto.ts +7 -1
- package/models/deactivated-payment-reminder-class.ts +7 -1
- package/models/financial-account-class.ts +120 -0
- package/models/generate-invoice-match-suggestions-response-class.ts +31 -0
- package/models/get-bank-order-response-class.ts +31 -0
- package/models/index.ts +11 -0
- package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
- package/models/invoice-match-suggestion-class.ts +66 -0
- package/models/list-bank-orders-response-class.ts +37 -0
- package/models/payment-class-without-expand-properties.ts +7 -1
- package/models/payment-class.ts +7 -1
- package/models/payment-reminder-class.ts +7 -1
- package/models/refund-class.ts +7 -1
- package/models/suggestion-generation-progress-class.ts +52 -0
- package/models/unlinked-bank-transaction-response-class.ts +8 -2
- package/models/update-bank-order-request-dto.ts +65 -0
- package/models/update-bank-order-response-class.ts +31 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -0
|
@@ -93,7 +93,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* This will create 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.
|
|
96
|
+
* This will create 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. **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
97
97
|
* @summary Create the bank account
|
|
98
98
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
@@ -142,7 +142,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
144
|
/**
|
|
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.
|
|
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. **Required Permissions** \"payment-management.bank-accounts.delete\"
|
|
146
146
|
* @summary Delete the bank account
|
|
147
147
|
* @param {string} code Unique identifier for the object.
|
|
148
148
|
* @param {string} [authorization] Bearer Token
|
|
@@ -190,7 +190,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
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.
|
|
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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
194
194
|
* @summary Retrieve the bank account
|
|
195
195
|
* @param {string} code
|
|
196
196
|
* @param {string} [authorization] Bearer Token
|
|
@@ -242,17 +242,20 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
242
242
|
});
|
|
243
243
|
},
|
|
244
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.
|
|
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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
246
246
|
* @summary List bank accounts
|
|
247
247
|
* @param {string} [authorization] Bearer Token
|
|
248
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
249
|
+
* @param {string} [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.
|
|
248
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>
|
|
249
|
-
* @param {string} [
|
|
251
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
250
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>
|
|
251
253
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: primaryBankAccount<i>
|
|
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>
|
|
252
255
|
* @param {*} [options] Override http request option.
|
|
253
256
|
* @throws {RequiredError}
|
|
254
257
|
*/
|
|
255
|
-
listBankAccounts: function (authorization, filter,
|
|
258
|
+
listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
256
259
|
if (options === void 0) { options = {}; }
|
|
257
260
|
return __awaiter(_this, void 0, void 0, function () {
|
|
258
261
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -275,11 +278,17 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
275
278
|
// authentication bearer required
|
|
276
279
|
// http bearer authentication required
|
|
277
280
|
_a.sent();
|
|
281
|
+
if (pageSize !== undefined) {
|
|
282
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
283
|
+
}
|
|
284
|
+
if (pageToken !== undefined) {
|
|
285
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
286
|
+
}
|
|
278
287
|
if (filter !== undefined) {
|
|
279
288
|
localVarQueryParameter['filter'] = filter;
|
|
280
289
|
}
|
|
281
|
-
if (
|
|
282
|
-
localVarQueryParameter['
|
|
290
|
+
if (search !== undefined) {
|
|
291
|
+
localVarQueryParameter['search'] = search;
|
|
283
292
|
}
|
|
284
293
|
if (order !== undefined) {
|
|
285
294
|
localVarQueryParameter['order'] = order;
|
|
@@ -287,6 +296,9 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
287
296
|
if (expand !== undefined) {
|
|
288
297
|
localVarQueryParameter['expand'] = expand;
|
|
289
298
|
}
|
|
299
|
+
if (filters !== undefined) {
|
|
300
|
+
localVarQueryParameter['filters'] = filters;
|
|
301
|
+
}
|
|
290
302
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
291
303
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
292
304
|
}
|
|
@@ -302,7 +314,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
302
314
|
});
|
|
303
315
|
},
|
|
304
316
|
/**
|
|
305
|
-
* Set the primary bank account for the specified partner/account
|
|
317
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
306
318
|
* @summary Set primary bank account
|
|
307
319
|
* @param {string} code Code of the bank account to set primary
|
|
308
320
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -355,7 +367,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
355
367
|
});
|
|
356
368
|
},
|
|
357
369
|
/**
|
|
358
|
-
* Update a bank account by code
|
|
370
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
359
371
|
* @summary Update the bank account
|
|
360
372
|
* @param {string} code Unique identifier for the object.
|
|
361
373
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
@@ -418,7 +430,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
418
430
|
var localVarAxiosParamCreator = (0, exports.BankAccountsApiAxiosParamCreator)(configuration);
|
|
419
431
|
return {
|
|
420
432
|
/**
|
|
421
|
-
* This will create 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.
|
|
433
|
+
* This will create 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. **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
422
434
|
* @summary Create the bank account
|
|
423
435
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
424
436
|
* @param {string} [authorization] Bearer Token
|
|
@@ -439,7 +451,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
439
451
|
});
|
|
440
452
|
},
|
|
441
453
|
/**
|
|
442
|
-
* 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.
|
|
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. **Required Permissions** \"payment-management.bank-accounts.delete\"
|
|
443
455
|
* @summary Delete the bank account
|
|
444
456
|
* @param {string} code Unique identifier for the object.
|
|
445
457
|
* @param {string} [authorization] Bearer Token
|
|
@@ -460,7 +472,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
460
472
|
});
|
|
461
473
|
},
|
|
462
474
|
/**
|
|
463
|
-
* 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.
|
|
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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
464
476
|
* @summary Retrieve the bank account
|
|
465
477
|
* @param {string} code
|
|
466
478
|
* @param {string} [authorization] Bearer Token
|
|
@@ -482,22 +494,25 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
482
494
|
});
|
|
483
495
|
},
|
|
484
496
|
/**
|
|
485
|
-
* 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.
|
|
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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
486
498
|
* @summary List bank accounts
|
|
487
499
|
* @param {string} [authorization] Bearer Token
|
|
500
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
501
|
+
* @param {string} [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.
|
|
488
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>
|
|
489
|
-
* @param {string} [
|
|
503
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
490
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>
|
|
491
505
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: primaryBankAccount<i>
|
|
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>
|
|
492
507
|
* @param {*} [options] Override http request option.
|
|
493
508
|
* @throws {RequiredError}
|
|
494
509
|
*/
|
|
495
|
-
listBankAccounts: function (authorization, filter,
|
|
510
|
+
listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
496
511
|
return __awaiter(this, void 0, void 0, function () {
|
|
497
512
|
var localVarAxiosArgs;
|
|
498
513
|
return __generator(this, function (_a) {
|
|
499
514
|
switch (_a.label) {
|
|
500
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankAccounts(authorization, filter,
|
|
515
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
501
516
|
case 1:
|
|
502
517
|
localVarAxiosArgs = _a.sent();
|
|
503
518
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -506,7 +521,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
506
521
|
});
|
|
507
522
|
},
|
|
508
523
|
/**
|
|
509
|
-
* Set the primary bank account for the specified partner/account
|
|
524
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
510
525
|
* @summary Set primary bank account
|
|
511
526
|
* @param {string} code Code of the bank account to set primary
|
|
512
527
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -528,7 +543,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
528
543
|
});
|
|
529
544
|
},
|
|
530
545
|
/**
|
|
531
|
-
* Update a bank account by code
|
|
546
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
532
547
|
* @summary Update the bank account
|
|
533
548
|
* @param {string} code Unique identifier for the object.
|
|
534
549
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
@@ -560,7 +575,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
560
575
|
var localVarFp = (0, exports.BankAccountsApiFp)(configuration);
|
|
561
576
|
return {
|
|
562
577
|
/**
|
|
563
|
-
* This will create 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.
|
|
578
|
+
* This will create 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. **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
564
579
|
* @summary Create the bank account
|
|
565
580
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
566
581
|
* @param {string} [authorization] Bearer Token
|
|
@@ -571,7 +586,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
571
586
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
572
587
|
},
|
|
573
588
|
/**
|
|
574
|
-
* 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.
|
|
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. **Required Permissions** \"payment-management.bank-accounts.delete\"
|
|
575
590
|
* @summary Delete the bank account
|
|
576
591
|
* @param {string} code Unique identifier for the object.
|
|
577
592
|
* @param {string} [authorization] Bearer Token
|
|
@@ -582,7 +597,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
582
597
|
return localVarFp.deleteBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
583
598
|
},
|
|
584
599
|
/**
|
|
585
|
-
* 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.
|
|
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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
586
601
|
* @summary Retrieve the bank account
|
|
587
602
|
* @param {string} code
|
|
588
603
|
* @param {string} [authorization] Bearer Token
|
|
@@ -594,21 +609,24 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
594
609
|
return localVarFp.getBankAccount(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
595
610
|
},
|
|
596
611
|
/**
|
|
597
|
-
* 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.
|
|
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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
598
613
|
* @summary List bank accounts
|
|
599
614
|
* @param {string} [authorization] Bearer Token
|
|
615
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
616
|
+
* @param {string} [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.
|
|
600
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>
|
|
601
|
-
* @param {string} [
|
|
618
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
602
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>
|
|
603
620
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: primaryBankAccount<i>
|
|
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>
|
|
604
622
|
* @param {*} [options] Override http request option.
|
|
605
623
|
* @throws {RequiredError}
|
|
606
624
|
*/
|
|
607
|
-
listBankAccounts: function (authorization, filter,
|
|
608
|
-
return localVarFp.listBankAccounts(authorization, filter,
|
|
625
|
+
listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
626
|
+
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
609
627
|
},
|
|
610
628
|
/**
|
|
611
|
-
* Set the primary bank account for the specified partner/account
|
|
629
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
612
630
|
* @summary Set primary bank account
|
|
613
631
|
* @param {string} code Code of the bank account to set primary
|
|
614
632
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -620,7 +638,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
620
638
|
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
621
639
|
},
|
|
622
640
|
/**
|
|
623
|
-
* Update a bank account by code
|
|
641
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
624
642
|
* @summary Update the bank account
|
|
625
643
|
* @param {string} code Unique identifier for the object.
|
|
626
644
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
@@ -646,7 +664,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
646
664
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
647
665
|
}
|
|
648
666
|
/**
|
|
649
|
-
* This will create 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.
|
|
667
|
+
* This will create 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. **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
650
668
|
* @summary Create the bank account
|
|
651
669
|
* @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
|
|
652
670
|
* @param {*} [options] Override http request option.
|
|
@@ -658,7 +676,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
658
676
|
return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
659
677
|
};
|
|
660
678
|
/**
|
|
661
|
-
* 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.
|
|
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. **Required Permissions** \"payment-management.bank-accounts.delete\"
|
|
662
680
|
* @summary Delete the bank account
|
|
663
681
|
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
664
682
|
* @param {*} [options] Override http request option.
|
|
@@ -670,7 +688,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
670
688
|
return (0, exports.BankAccountsApiFp)(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
671
689
|
};
|
|
672
690
|
/**
|
|
673
|
-
* 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.
|
|
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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
674
692
|
* @summary Retrieve the bank account
|
|
675
693
|
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
676
694
|
* @param {*} [options] Override http request option.
|
|
@@ -682,7 +700,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
682
700
|
return (0, exports.BankAccountsApiFp)(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
683
701
|
};
|
|
684
702
|
/**
|
|
685
|
-
* 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.
|
|
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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
686
704
|
* @summary List bank accounts
|
|
687
705
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
688
706
|
* @param {*} [options] Override http request option.
|
|
@@ -692,10 +710,10 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
692
710
|
BankAccountsApi.prototype.listBankAccounts = function (requestParameters, options) {
|
|
693
711
|
var _this = this;
|
|
694
712
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
695
|
-
return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
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); });
|
|
696
714
|
};
|
|
697
715
|
/**
|
|
698
|
-
* Set the primary bank account for the specified partner/account
|
|
716
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
699
717
|
* @summary Set primary bank account
|
|
700
718
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
701
719
|
* @param {*} [options] Override http request option.
|
|
@@ -707,7 +725,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
707
725
|
return (0, exports.BankAccountsApiFp)(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
708
726
|
};
|
|
709
727
|
/**
|
|
710
|
-
* Update a bank account by code
|
|
728
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
711
729
|
* @summary Update the bank account
|
|
712
730
|
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
713
731
|
* @param {*} [options] Override http request option.
|