@emilgroup/payment-sdk-node 1.21.1-beta.2 → 1.21.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 +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
|
@@ -188,15 +188,17 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
188
188
|
* Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
189
189
|
* @summary List tenant bank accounts
|
|
190
190
|
* @param {string} [authorization] Bearer Token
|
|
191
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
192
|
+
* @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.
|
|
191
193
|
* @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: id, code, iban, bankName, accountName</i>
|
|
192
|
-
* @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: id, code, iban, bankName, accountName</i>
|
|
193
194
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, iban, bankName, accountName</i>
|
|
194
195
|
* @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>
|
|
195
196
|
* @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: bankTransactions<i>
|
|
197
|
+
* @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: id, code, iban, bankName, accountName</i>
|
|
196
198
|
* @param {*} [options] Override http request option.
|
|
197
199
|
* @throws {RequiredError}
|
|
198
200
|
*/
|
|
199
|
-
listTenantBankAccounts: async (authorization?: string,
|
|
201
|
+
listTenantBankAccounts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
200
202
|
const localVarPath = `/paymentservice/v1/tenant/bank-accounts`;
|
|
201
203
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
204
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -215,12 +217,16 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
215
217
|
// http bearer authentication required
|
|
216
218
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
217
219
|
|
|
218
|
-
if (
|
|
219
|
-
localVarQueryParameter['
|
|
220
|
+
if (pageSize !== undefined) {
|
|
221
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
220
222
|
}
|
|
221
223
|
|
|
222
|
-
if (
|
|
223
|
-
localVarQueryParameter['
|
|
224
|
+
if (pageToken !== undefined) {
|
|
225
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (filter !== undefined) {
|
|
229
|
+
localVarQueryParameter['filter'] = filter;
|
|
224
230
|
}
|
|
225
231
|
|
|
226
232
|
if (search !== undefined) {
|
|
@@ -235,6 +241,10 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
|
|
|
235
241
|
localVarQueryParameter['expand'] = expand;
|
|
236
242
|
}
|
|
237
243
|
|
|
244
|
+
if (filters !== undefined) {
|
|
245
|
+
localVarQueryParameter['filters'] = filters;
|
|
246
|
+
}
|
|
247
|
+
|
|
238
248
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
239
249
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
240
250
|
}
|
|
@@ -352,16 +362,18 @@ export const TenantBankAccountApiFp = function(configuration?: Configuration) {
|
|
|
352
362
|
* Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
353
363
|
* @summary List tenant bank accounts
|
|
354
364
|
* @param {string} [authorization] Bearer Token
|
|
365
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
366
|
+
* @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.
|
|
355
367
|
* @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: id, code, iban, bankName, accountName</i>
|
|
356
|
-
* @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: id, code, iban, bankName, accountName</i>
|
|
357
368
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, iban, bankName, accountName</i>
|
|
358
369
|
* @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>
|
|
359
370
|
* @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: bankTransactions<i>
|
|
371
|
+
* @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: id, code, iban, bankName, accountName</i>
|
|
360
372
|
* @param {*} [options] Override http request option.
|
|
361
373
|
* @throws {RequiredError}
|
|
362
374
|
*/
|
|
363
|
-
async listTenantBankAccounts(authorization?: string,
|
|
364
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTenantBankAccounts(authorization,
|
|
375
|
+
async listTenantBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTenantBankAccountResponseClass>> {
|
|
376
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
365
377
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
366
378
|
},
|
|
367
379
|
/**
|
|
@@ -425,16 +437,18 @@ export const TenantBankAccountApiFactory = function (configuration?: Configurati
|
|
|
425
437
|
* Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
426
438
|
* @summary List tenant bank accounts
|
|
427
439
|
* @param {string} [authorization] Bearer Token
|
|
440
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
441
|
+
* @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.
|
|
428
442
|
* @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: id, code, iban, bankName, accountName</i>
|
|
429
|
-
* @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: id, code, iban, bankName, accountName</i>
|
|
430
443
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, iban, bankName, accountName</i>
|
|
431
444
|
* @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>
|
|
432
445
|
* @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: bankTransactions<i>
|
|
446
|
+
* @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: id, code, iban, bankName, accountName</i>
|
|
433
447
|
* @param {*} [options] Override http request option.
|
|
434
448
|
* @throws {RequiredError}
|
|
435
449
|
*/
|
|
436
|
-
listTenantBankAccounts(authorization?: string,
|
|
437
|
-
return localVarFp.listTenantBankAccounts(authorization,
|
|
450
|
+
listTenantBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTenantBankAccountResponseClass> {
|
|
451
|
+
return localVarFp.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
438
452
|
},
|
|
439
453
|
/**
|
|
440
454
|
* Update a tenant bank account by code
|
|
@@ -535,18 +549,25 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
|
|
|
535
549
|
readonly authorization?: string
|
|
536
550
|
|
|
537
551
|
/**
|
|
538
|
-
*
|
|
552
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
553
|
+
* @type {number}
|
|
554
|
+
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
555
|
+
*/
|
|
556
|
+
readonly pageSize?: number
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* 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.
|
|
539
560
|
* @type {string}
|
|
540
561
|
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
541
562
|
*/
|
|
542
|
-
readonly
|
|
563
|
+
readonly pageToken?: string
|
|
543
564
|
|
|
544
565
|
/**
|
|
545
|
-
*
|
|
566
|
+
* 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: id, code, iban, bankName, accountName</i>
|
|
546
567
|
* @type {string}
|
|
547
568
|
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
548
569
|
*/
|
|
549
|
-
readonly
|
|
570
|
+
readonly filter?: string
|
|
550
571
|
|
|
551
572
|
/**
|
|
552
573
|
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, iban, bankName, accountName</i>
|
|
@@ -568,6 +589,13 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
|
|
|
568
589
|
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
569
590
|
*/
|
|
570
591
|
readonly expand?: string
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, iban, bankName, accountName</i>
|
|
595
|
+
* @type {string}
|
|
596
|
+
* @memberof TenantBankAccountApiListTenantBankAccounts
|
|
597
|
+
*/
|
|
598
|
+
readonly filters?: string
|
|
571
599
|
}
|
|
572
600
|
|
|
573
601
|
/**
|
|
@@ -650,7 +678,7 @@ export class TenantBankAccountApi extends BaseAPI {
|
|
|
650
678
|
* @memberof TenantBankAccountApi
|
|
651
679
|
*/
|
|
652
680
|
public listTenantBankAccounts(requestParameters: TenantBankAccountApiListTenantBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
653
|
-
return TenantBankAccountApiFp(this.configuration).listTenantBankAccounts(requestParameters.authorization, requestParameters.
|
|
681
|
+
return TenantBankAccountApiFp(this.configuration).listTenantBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
654
682
|
}
|
|
655
683
|
|
|
656
684
|
/**
|
package/api/webhooks-api.ts
CHANGED
|
@@ -31,7 +31,7 @@ const FormData = require('form-data');
|
|
|
31
31
|
export const WebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
32
|
return {
|
|
33
33
|
/**
|
|
34
|
-
* This will processes the webhook from external payment service provider.
|
|
34
|
+
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
35
35
|
* @summary Handle the webhook from PSP
|
|
36
36
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
37
37
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
@@ -91,7 +91,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) {
|
|
|
91
91
|
const localVarAxiosParamCreator = WebhooksApiAxiosParamCreator(configuration)
|
|
92
92
|
return {
|
|
93
93
|
/**
|
|
94
|
-
* This will processes the webhook from external payment service provider.
|
|
94
|
+
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
95
95
|
* @summary Handle the webhook from PSP
|
|
96
96
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
97
97
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
@@ -115,7 +115,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
|
|
|
115
115
|
const localVarFp = WebhooksApiFp(configuration)
|
|
116
116
|
return {
|
|
117
117
|
/**
|
|
118
|
-
* This will processes the webhook from external payment service provider.
|
|
118
|
+
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
119
119
|
* @summary Handle the webhook from PSP
|
|
120
120
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
121
121
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
@@ -173,7 +173,7 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
173
173
|
*/
|
|
174
174
|
export class WebhooksApi extends BaseAPI {
|
|
175
175
|
/**
|
|
176
|
-
* This will processes the webhook from external payment service provider.
|
|
176
|
+
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
177
177
|
* @summary Handle the webhook from PSP
|
|
178
178
|
* @param {WebhooksApiPostWebhookRequest} requestParameters Request parameters.
|
|
179
179
|
* @param {*} [options] Override http request option.
|
package/api.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { BankAccountsApi } from './api';
|
|
28
|
+
import { BankOrdersApi } from './api';
|
|
28
29
|
import { BankTransactionApi } from './api';
|
|
29
30
|
import { HealthCheckApi } from './api';
|
|
30
31
|
import { PaymentMethodsApi } from './api';
|
|
@@ -37,6 +38,7 @@ import { WebhooksApi } from './api';
|
|
|
37
38
|
|
|
38
39
|
|
|
39
40
|
export * from './api/bank-accounts-api';
|
|
41
|
+
export * from './api/bank-orders-api';
|
|
40
42
|
export * from './api/bank-transaction-api';
|
|
41
43
|
export * from './api/health-check-api';
|
|
42
44
|
export * from './api/payment-methods-api';
|
package/base.ts
CHANGED
|
@@ -278,7 +278,7 @@ export class BaseAPI {
|
|
|
278
278
|
* @extends {Error}
|
|
279
279
|
*/
|
|
280
280
|
export class RequiredError extends Error {
|
|
281
|
-
name: "RequiredError" = "RequiredError";
|
|
281
|
+
override name: "RequiredError" = "RequiredError";
|
|
282
282
|
constructor(public field: string, msg?: string) {
|
|
283
283
|
super(msg);
|
|
284
284
|
}
|
|
@@ -25,7 +25,7 @@ import { UpdateBankAccountResponseClass } from '../models';
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
27
27
|
/**
|
|
28
|
-
* 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.
|
|
28
|
+
* 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\"
|
|
29
29
|
* @summary Create the bank account
|
|
30
30
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
31
31
|
* @param {string} [authorization] Bearer Token
|
|
@@ -34,7 +34,7 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
34
34
|
*/
|
|
35
35
|
createBankAccount: (createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
36
|
/**
|
|
37
|
-
* 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.
|
|
37
|
+
* 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\"
|
|
38
38
|
* @summary Delete the bank account
|
|
39
39
|
* @param {string} code Unique identifier for the object.
|
|
40
40
|
* @param {string} [authorization] Bearer Token
|
|
@@ -43,7 +43,7 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
43
43
|
*/
|
|
44
44
|
deleteBankAccount: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
45
|
/**
|
|
46
|
-
* 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.
|
|
46
|
+
* 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\"
|
|
47
47
|
* @summary Retrieve the bank account
|
|
48
48
|
* @param {string} code
|
|
49
49
|
* @param {string} [authorization] Bearer Token
|
|
@@ -53,19 +53,22 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
53
53
|
*/
|
|
54
54
|
getBankAccount: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
55
|
/**
|
|
56
|
-
* 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.
|
|
56
|
+
* 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\"
|
|
57
57
|
* @summary List bank accounts
|
|
58
58
|
* @param {string} [authorization] Bearer Token
|
|
59
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
60
|
+
* @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.
|
|
59
61
|
* @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>
|
|
60
|
-
* @param {string} [
|
|
62
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
61
63
|
* @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>
|
|
62
64
|
* @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>
|
|
65
|
+
* @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>
|
|
63
66
|
* @param {*} [options] Override http request option.
|
|
64
67
|
* @throws {RequiredError}
|
|
65
68
|
*/
|
|
66
|
-
listBankAccounts: (authorization?: string, filter?: string,
|
|
69
|
+
listBankAccounts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
70
|
/**
|
|
68
|
-
* Set the primary bank account for the specified partner/account
|
|
71
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
69
72
|
* @summary Set primary bank account
|
|
70
73
|
* @param {string} code Code of the bank account to set primary
|
|
71
74
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -75,7 +78,7 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
75
78
|
*/
|
|
76
79
|
setPrimaryBankAccount: (code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
77
80
|
/**
|
|
78
|
-
* Update a bank account by code
|
|
81
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
79
82
|
* @summary Update the bank account
|
|
80
83
|
* @param {string} code Unique identifier for the object.
|
|
81
84
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
@@ -91,7 +94,7 @@ export declare const BankAccountsApiAxiosParamCreator: (configuration?: Configur
|
|
|
91
94
|
*/
|
|
92
95
|
export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
93
96
|
/**
|
|
94
|
-
* 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.
|
|
97
|
+
* 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\"
|
|
95
98
|
* @summary Create the bank account
|
|
96
99
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
97
100
|
* @param {string} [authorization] Bearer Token
|
|
@@ -100,7 +103,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
100
103
|
*/
|
|
101
104
|
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBankAccountResponseClass>>;
|
|
102
105
|
/**
|
|
103
|
-
* 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.
|
|
106
|
+
* 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\"
|
|
104
107
|
* @summary Delete the bank account
|
|
105
108
|
* @param {string} code Unique identifier for the object.
|
|
106
109
|
* @param {string} [authorization] Bearer Token
|
|
@@ -109,7 +112,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
109
112
|
*/
|
|
110
113
|
deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
111
114
|
/**
|
|
112
|
-
* 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.
|
|
115
|
+
* 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\"
|
|
113
116
|
* @summary Retrieve the bank account
|
|
114
117
|
* @param {string} code
|
|
115
118
|
* @param {string} [authorization] Bearer Token
|
|
@@ -119,19 +122,22 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
119
122
|
*/
|
|
120
123
|
getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>>;
|
|
121
124
|
/**
|
|
122
|
-
* 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.
|
|
125
|
+
* 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\"
|
|
123
126
|
* @summary List bank accounts
|
|
124
127
|
* @param {string} [authorization] Bearer Token
|
|
128
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
129
|
+
* @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.
|
|
125
130
|
* @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>
|
|
126
|
-
* @param {string} [
|
|
131
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
127
132
|
* @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>
|
|
128
133
|
* @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>
|
|
134
|
+
* @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>
|
|
129
135
|
* @param {*} [options] Override http request option.
|
|
130
136
|
* @throws {RequiredError}
|
|
131
137
|
*/
|
|
132
|
-
listBankAccounts(authorization?: string, filter?: string,
|
|
138
|
+
listBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>>;
|
|
133
139
|
/**
|
|
134
|
-
* Set the primary bank account for the specified partner/account
|
|
140
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
135
141
|
* @summary Set primary bank account
|
|
136
142
|
* @param {string} code Code of the bank account to set primary
|
|
137
143
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -141,7 +147,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
141
147
|
*/
|
|
142
148
|
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
143
149
|
/**
|
|
144
|
-
* Update a bank account by code
|
|
150
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
145
151
|
* @summary Update the bank account
|
|
146
152
|
* @param {string} code Unique identifier for the object.
|
|
147
153
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
@@ -157,7 +163,7 @@ export declare const BankAccountsApiFp: (configuration?: Configuration) => {
|
|
|
157
163
|
*/
|
|
158
164
|
export declare const BankAccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
159
165
|
/**
|
|
160
|
-
* 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.
|
|
166
|
+
* 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\"
|
|
161
167
|
* @summary Create the bank account
|
|
162
168
|
* @param {CreateBankAccountRequestDto} createBankAccountRequestDto
|
|
163
169
|
* @param {string} [authorization] Bearer Token
|
|
@@ -166,7 +172,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
166
172
|
*/
|
|
167
173
|
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBankAccountResponseClass>;
|
|
168
174
|
/**
|
|
169
|
-
* 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.
|
|
175
|
+
* 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\"
|
|
170
176
|
* @summary Delete the bank account
|
|
171
177
|
* @param {string} code Unique identifier for the object.
|
|
172
178
|
* @param {string} [authorization] Bearer Token
|
|
@@ -175,7 +181,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
175
181
|
*/
|
|
176
182
|
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object>;
|
|
177
183
|
/**
|
|
178
|
-
* 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.
|
|
184
|
+
* 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\"
|
|
179
185
|
* @summary Retrieve the bank account
|
|
180
186
|
* @param {string} code
|
|
181
187
|
* @param {string} [authorization] Bearer Token
|
|
@@ -185,19 +191,22 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
185
191
|
*/
|
|
186
192
|
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankAccountResponseClass>;
|
|
187
193
|
/**
|
|
188
|
-
* 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.
|
|
194
|
+
* 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\"
|
|
189
195
|
* @summary List bank accounts
|
|
190
196
|
* @param {string} [authorization] Bearer Token
|
|
197
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
198
|
+
* @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.
|
|
191
199
|
* @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>
|
|
192
|
-
* @param {string} [
|
|
200
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
193
201
|
* @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>
|
|
194
202
|
* @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>
|
|
203
|
+
* @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>
|
|
195
204
|
* @param {*} [options] Override http request option.
|
|
196
205
|
* @throws {RequiredError}
|
|
197
206
|
*/
|
|
198
|
-
listBankAccounts(authorization?: string, filter?: string,
|
|
207
|
+
listBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBankAccountsResponseClass>;
|
|
199
208
|
/**
|
|
200
|
-
* Set the primary bank account for the specified partner/account
|
|
209
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
201
210
|
* @summary Set primary bank account
|
|
202
211
|
* @param {string} code Code of the bank account to set primary
|
|
203
212
|
* @param {SetPrimaryBankAccountRequestDtoRest} setPrimaryBankAccountRequestDtoRest
|
|
@@ -207,7 +216,7 @@ export declare const BankAccountsApiFactory: (configuration?: Configuration, bas
|
|
|
207
216
|
*/
|
|
208
217
|
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object>;
|
|
209
218
|
/**
|
|
210
|
-
* Update a bank account by code
|
|
219
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
211
220
|
* @summary Update the bank account
|
|
212
221
|
* @param {string} code Unique identifier for the object.
|
|
213
222
|
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
@@ -292,6 +301,18 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
292
301
|
* @memberof BankAccountsApiListBankAccounts
|
|
293
302
|
*/
|
|
294
303
|
readonly authorization?: string;
|
|
304
|
+
/**
|
|
305
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
306
|
+
* @type {number}
|
|
307
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
308
|
+
*/
|
|
309
|
+
readonly pageSize?: number;
|
|
310
|
+
/**
|
|
311
|
+
* 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.
|
|
312
|
+
* @type {string}
|
|
313
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
314
|
+
*/
|
|
315
|
+
readonly pageToken?: string;
|
|
295
316
|
/**
|
|
296
317
|
* 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>
|
|
297
318
|
* @type {string}
|
|
@@ -299,11 +320,11 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
299
320
|
*/
|
|
300
321
|
readonly filter?: string;
|
|
301
322
|
/**
|
|
302
|
-
*
|
|
323
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
303
324
|
* @type {string}
|
|
304
325
|
* @memberof BankAccountsApiListBankAccounts
|
|
305
326
|
*/
|
|
306
|
-
readonly
|
|
327
|
+
readonly search?: string;
|
|
307
328
|
/**
|
|
308
329
|
* 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>
|
|
309
330
|
* @type {string}
|
|
@@ -316,6 +337,12 @@ export interface BankAccountsApiListBankAccountsRequest {
|
|
|
316
337
|
* @memberof BankAccountsApiListBankAccounts
|
|
317
338
|
*/
|
|
318
339
|
readonly expand?: string;
|
|
340
|
+
/**
|
|
341
|
+
* 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>
|
|
342
|
+
* @type {string}
|
|
343
|
+
* @memberof BankAccountsApiListBankAccounts
|
|
344
|
+
*/
|
|
345
|
+
readonly filters?: string;
|
|
319
346
|
}
|
|
320
347
|
/**
|
|
321
348
|
* Request parameters for setPrimaryBankAccount operation in BankAccountsApi.
|
|
@@ -375,7 +402,7 @@ export interface BankAccountsApiUpdateBankAccountRequest {
|
|
|
375
402
|
*/
|
|
376
403
|
export declare class BankAccountsApi extends BaseAPI {
|
|
377
404
|
/**
|
|
378
|
-
* 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.
|
|
405
|
+
* 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\"
|
|
379
406
|
* @summary Create the bank account
|
|
380
407
|
* @param {BankAccountsApiCreateBankAccountRequest} requestParameters Request parameters.
|
|
381
408
|
* @param {*} [options] Override http request option.
|
|
@@ -384,7 +411,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
384
411
|
*/
|
|
385
412
|
createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankAccountResponseClass, any>>;
|
|
386
413
|
/**
|
|
387
|
-
* 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.
|
|
414
|
+
* 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\"
|
|
388
415
|
* @summary Delete the bank account
|
|
389
416
|
* @param {BankAccountsApiDeleteBankAccountRequest} requestParameters Request parameters.
|
|
390
417
|
* @param {*} [options] Override http request option.
|
|
@@ -393,7 +420,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
393
420
|
*/
|
|
394
421
|
deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
395
422
|
/**
|
|
396
|
-
* 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.
|
|
423
|
+
* 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\"
|
|
397
424
|
* @summary Retrieve the bank account
|
|
398
425
|
* @param {BankAccountsApiGetBankAccountRequest} requestParameters Request parameters.
|
|
399
426
|
* @param {*} [options] Override http request option.
|
|
@@ -402,7 +429,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
402
429
|
*/
|
|
403
430
|
getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankAccountResponseClass, any>>;
|
|
404
431
|
/**
|
|
405
|
-
* 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.
|
|
432
|
+
* 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\"
|
|
406
433
|
* @summary List bank accounts
|
|
407
434
|
* @param {BankAccountsApiListBankAccountsRequest} requestParameters Request parameters.
|
|
408
435
|
* @param {*} [options] Override http request option.
|
|
@@ -411,7 +438,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
411
438
|
*/
|
|
412
439
|
listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any>>;
|
|
413
440
|
/**
|
|
414
|
-
* Set the primary bank account for the specified partner/account
|
|
441
|
+
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
415
442
|
* @summary Set primary bank account
|
|
416
443
|
* @param {BankAccountsApiSetPrimaryBankAccountRequest} requestParameters Request parameters.
|
|
417
444
|
* @param {*} [options] Override http request option.
|
|
@@ -420,7 +447,7 @@ export declare class BankAccountsApi extends BaseAPI {
|
|
|
420
447
|
*/
|
|
421
448
|
setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
422
449
|
/**
|
|
423
|
-
* Update a bank account by code
|
|
450
|
+
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
424
451
|
* @summary Update the bank account
|
|
425
452
|
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
426
453
|
* @param {*} [options] Override http request option.
|