@emilgroup/payment-sdk-node 1.21.1-beta.2 → 1.21.1-beta.21
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 +695 -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 +646 -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
|
@@ -97,7 +97,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* 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.
|
|
100
|
+
* 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\"
|
|
101
101
|
* @summary Create the bank account
|
|
102
102
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token
|
|
@@ -146,7 +146,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
* 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.
|
|
149
|
+
* 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\"
|
|
150
150
|
* @summary Delete the bank account
|
|
151
151
|
* @param {string} code Unique identifier for the object.
|
|
152
152
|
* @param {string} [authorization] Bearer Token
|
|
@@ -194,7 +194,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
/**
|
|
197
|
-
* 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.
|
|
197
|
+
* 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\"
|
|
198
198
|
* @summary Retrieve the bank account
|
|
199
199
|
* @param {string} code
|
|
200
200
|
* @param {string} [authorization] Bearer Token
|
|
@@ -246,17 +246,20 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
246
246
|
});
|
|
247
247
|
},
|
|
248
248
|
/**
|
|
249
|
-
* 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
|
+
* 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\"
|
|
250
250
|
* @summary List bank accounts
|
|
251
251
|
* @param {string} [authorization] Bearer Token
|
|
252
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
253
|
+
* @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.
|
|
252
254
|
* @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>
|
|
253
|
-
* @param {string} [
|
|
255
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
254
256
|
* @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>
|
|
255
257
|
* @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>
|
|
258
|
+
* @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>
|
|
256
259
|
* @param {*} [options] Override http request option.
|
|
257
260
|
* @throws {RequiredError}
|
|
258
261
|
*/
|
|
259
|
-
listBankAccounts: function (authorization, filter,
|
|
262
|
+
listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
260
263
|
if (options === void 0) { options = {}; }
|
|
261
264
|
return __awaiter(_this, void 0, void 0, function () {
|
|
262
265
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -279,11 +282,17 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
279
282
|
// authentication bearer required
|
|
280
283
|
// http bearer authentication required
|
|
281
284
|
_a.sent();
|
|
285
|
+
if (pageSize !== undefined) {
|
|
286
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
287
|
+
}
|
|
288
|
+
if (pageToken !== undefined) {
|
|
289
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
290
|
+
}
|
|
282
291
|
if (filter !== undefined) {
|
|
283
292
|
localVarQueryParameter['filter'] = filter;
|
|
284
293
|
}
|
|
285
|
-
if (
|
|
286
|
-
localVarQueryParameter['
|
|
294
|
+
if (search !== undefined) {
|
|
295
|
+
localVarQueryParameter['search'] = search;
|
|
287
296
|
}
|
|
288
297
|
if (order !== undefined) {
|
|
289
298
|
localVarQueryParameter['order'] = order;
|
|
@@ -291,6 +300,9 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
291
300
|
if (expand !== undefined) {
|
|
292
301
|
localVarQueryParameter['expand'] = expand;
|
|
293
302
|
}
|
|
303
|
+
if (filters !== undefined) {
|
|
304
|
+
localVarQueryParameter['filters'] = filters;
|
|
305
|
+
}
|
|
294
306
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
295
307
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
296
308
|
}
|
|
@@ -306,7 +318,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
306
318
|
});
|
|
307
319
|
},
|
|
308
320
|
/**
|
|
309
|
-
* Set the primary bank account for the specified partner/account
|
|
321
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
310
322
|
* @summary Set primary bank account
|
|
311
323
|
* @param {string} code Code of the bank account to set primary
|
|
312
324
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -359,7 +371,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
359
371
|
});
|
|
360
372
|
},
|
|
361
373
|
/**
|
|
362
|
-
* Update a bank account by code
|
|
374
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
363
375
|
* @summary Update the bank account
|
|
364
376
|
* @param {string} code Unique identifier for the object.
|
|
365
377
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
@@ -422,7 +434,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
422
434
|
var localVarAxiosParamCreator = (0, exports.BankAccountsApiAxiosParamCreator)(configuration);
|
|
423
435
|
return {
|
|
424
436
|
/**
|
|
425
|
-
* 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.
|
|
437
|
+
* 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\"
|
|
426
438
|
* @summary Create the bank account
|
|
427
439
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
428
440
|
* @param {string} [authorization] Bearer Token
|
|
@@ -443,7 +455,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
443
455
|
});
|
|
444
456
|
},
|
|
445
457
|
/**
|
|
446
|
-
* 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.
|
|
458
|
+
* 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\"
|
|
447
459
|
* @summary Delete the bank account
|
|
448
460
|
* @param {string} code Unique identifier for the object.
|
|
449
461
|
* @param {string} [authorization] Bearer Token
|
|
@@ -464,7 +476,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
464
476
|
});
|
|
465
477
|
},
|
|
466
478
|
/**
|
|
467
|
-
* 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.
|
|
479
|
+
* 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\"
|
|
468
480
|
* @summary Retrieve the bank account
|
|
469
481
|
* @param {string} code
|
|
470
482
|
* @param {string} [authorization] Bearer Token
|
|
@@ -486,22 +498,25 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
486
498
|
});
|
|
487
499
|
},
|
|
488
500
|
/**
|
|
489
|
-
* 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.
|
|
501
|
+
* 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\"
|
|
490
502
|
* @summary List bank accounts
|
|
491
503
|
* @param {string} [authorization] Bearer Token
|
|
504
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
505
|
+
* @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.
|
|
492
506
|
* @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>
|
|
493
|
-
* @param {string} [
|
|
507
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
494
508
|
* @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>
|
|
495
509
|
* @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>
|
|
510
|
+
* @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>
|
|
496
511
|
* @param {*} [options] Override http request option.
|
|
497
512
|
* @throws {RequiredError}
|
|
498
513
|
*/
|
|
499
|
-
listBankAccounts: function (authorization, filter,
|
|
514
|
+
listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
500
515
|
return __awaiter(this, void 0, void 0, function () {
|
|
501
516
|
var localVarAxiosArgs;
|
|
502
517
|
return __generator(this, function (_a) {
|
|
503
518
|
switch (_a.label) {
|
|
504
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankAccounts(authorization, filter,
|
|
519
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
505
520
|
case 1:
|
|
506
521
|
localVarAxiosArgs = _a.sent();
|
|
507
522
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -510,7 +525,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
510
525
|
});
|
|
511
526
|
},
|
|
512
527
|
/**
|
|
513
|
-
* Set the primary bank account for the specified partner/account
|
|
528
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
514
529
|
* @summary Set primary bank account
|
|
515
530
|
* @param {string} code Code of the bank account to set primary
|
|
516
531
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -532,7 +547,7 @@ var BankAccountsApiFp = function (configuration) {
|
|
|
532
547
|
});
|
|
533
548
|
},
|
|
534
549
|
/**
|
|
535
|
-
* Update a bank account by code
|
|
550
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
536
551
|
* @summary Update the bank account
|
|
537
552
|
* @param {string} code Unique identifier for the object.
|
|
538
553
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
@@ -564,7 +579,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
564
579
|
var localVarFp = (0, exports.BankAccountsApiFp)(configuration);
|
|
565
580
|
return {
|
|
566
581
|
/**
|
|
567
|
-
* 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.
|
|
582
|
+
* 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\"
|
|
568
583
|
* @summary Create the bank account
|
|
569
584
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
570
585
|
* @param {string} [authorization] Bearer Token
|
|
@@ -575,7 +590,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
575
590
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
576
591
|
},
|
|
577
592
|
/**
|
|
578
|
-
* 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.
|
|
593
|
+
* 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\"
|
|
579
594
|
* @summary Delete the bank account
|
|
580
595
|
* @param {string} code Unique identifier for the object.
|
|
581
596
|
* @param {string} [authorization] Bearer Token
|
|
@@ -586,7 +601,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
586
601
|
return localVarFp.deleteBankAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
587
602
|
},
|
|
588
603
|
/**
|
|
589
|
-
* 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.
|
|
604
|
+
* 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\"
|
|
590
605
|
* @summary Retrieve the bank account
|
|
591
606
|
* @param {string} code
|
|
592
607
|
* @param {string} [authorization] Bearer Token
|
|
@@ -598,21 +613,24 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
598
613
|
return localVarFp.getBankAccount(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
599
614
|
},
|
|
600
615
|
/**
|
|
601
|
-
* 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.
|
|
616
|
+
* 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\"
|
|
602
617
|
* @summary List bank accounts
|
|
603
618
|
* @param {string} [authorization] Bearer Token
|
|
619
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
620
|
+
* @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.
|
|
604
621
|
* @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>
|
|
605
|
-
* @param {string} [
|
|
622
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
606
623
|
* @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>
|
|
607
624
|
* @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>
|
|
625
|
+
* @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>
|
|
608
626
|
* @param {*} [options] Override http request option.
|
|
609
627
|
* @throws {RequiredError}
|
|
610
628
|
*/
|
|
611
|
-
listBankAccounts: function (authorization, filter,
|
|
612
|
-
return localVarFp.listBankAccounts(authorization, filter,
|
|
629
|
+
listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
630
|
+
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
613
631
|
},
|
|
614
632
|
/**
|
|
615
|
-
* Set the primary bank account for the specified partner/account
|
|
633
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
616
634
|
* @summary Set primary bank account
|
|
617
635
|
* @param {string} code Code of the bank account to set primary
|
|
618
636
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -624,7 +642,7 @@ var BankAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
624
642
|
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
625
643
|
},
|
|
626
644
|
/**
|
|
627
|
-
* Update a bank account by code
|
|
645
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
628
646
|
* @summary Update the bank account
|
|
629
647
|
* @param {string} code Unique identifier for the object.
|
|
630
648
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
@@ -650,7 +668,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
650
668
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
651
669
|
}
|
|
652
670
|
/**
|
|
653
|
-
* 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.
|
|
671
|
+
* 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\"
|
|
654
672
|
* @summary Create the bank account
|
|
655
673
|
* @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
|
|
656
674
|
* @param {*} [options] Override http request option.
|
|
@@ -662,7 +680,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
662
680
|
return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
663
681
|
};
|
|
664
682
|
/**
|
|
665
|
-
* 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.
|
|
683
|
+
* 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\"
|
|
666
684
|
* @summary Delete the bank account
|
|
667
685
|
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
668
686
|
* @param {*} [options] Override http request option.
|
|
@@ -674,7 +692,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
674
692
|
return (0, exports.BankAccountsApiFp)(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
675
693
|
};
|
|
676
694
|
/**
|
|
677
|
-
* 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.
|
|
695
|
+
* 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\"
|
|
678
696
|
* @summary Retrieve the bank account
|
|
679
697
|
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
680
698
|
* @param {*} [options] Override http request option.
|
|
@@ -686,7 +704,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
686
704
|
return (0, exports.BankAccountsApiFp)(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
687
705
|
};
|
|
688
706
|
/**
|
|
689
|
-
* 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.
|
|
707
|
+
* 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\"
|
|
690
708
|
* @summary List bank accounts
|
|
691
709
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
692
710
|
* @param {*} [options] Override http request option.
|
|
@@ -696,10 +714,10 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
696
714
|
BankAccountsApi.prototype.listBankAccounts = function (requestParameters, options) {
|
|
697
715
|
var _this = this;
|
|
698
716
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
699
|
-
return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
717
|
+
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); });
|
|
700
718
|
};
|
|
701
719
|
/**
|
|
702
|
-
* Set the primary bank account for the specified partner/account
|
|
720
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
703
721
|
* @summary Set primary bank account
|
|
704
722
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
705
723
|
* @param {*} [options] Override http request option.
|
|
@@ -711,7 +729,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
711
729
|
return (0, exports.BankAccountsApiFp)(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
712
730
|
};
|
|
713
731
|
/**
|
|
714
|
-
* Update a bank account by code
|
|
732
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
715
733
|
* @summary Update the bank account
|
|
716
734
|
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
717
735
|
* @param {*} [options] Override http request option.
|