@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +10 -27
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +497 -43
- package/api/bank-transaction-api.ts +89 -53
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +62 -173
- package/api/payment-reminders-api.ts +21 -25
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +54 -59
- package/api/refunds-api.ts +20 -18
- package/api/tenant-bank-account-api.ts +71 -61
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +6 -2
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +295 -45
- package/dist/api/bank-accounts-api.js +412 -24
- package/dist/api/bank-transaction-api.d.ts +65 -45
- package/dist/api/bank-transaction-api.js +55 -40
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +48 -107
- package/dist/api/payment-methods-api.js +51 -143
- package/dist/api/payment-reminders-api.d.ts +25 -27
- package/dist/api/payment-reminders-api.js +12 -12
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +46 -49
- package/dist/api/payments-api.js +43 -41
- package/dist/api/refunds-api.d.ts +15 -15
- package/dist/api/refunds-api.js +15 -13
- package/dist/api/tenant-bank-account-api.d.ts +70 -57
- package/dist/api/tenant-bank-account-api.js +56 -42
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +2 -1
- package/dist/base.js +5 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-account-class.d.ts +23 -4
- package/dist/models/bank-account-class.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +7 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-bank-account-request-dto.d.ts +15 -3
- package/dist/models/create-bank-account-request-dto.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/create-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/{complete-payment-setup-request-dto.js → create-tenant-bank-account-response-class.js} +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-bank-account-response-class.d.ts +25 -0
- package/dist/models/{billing-profile-dto.js → get-bank-account-response-class.js} +1 -1
- package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- package/dist/models/get-refund-response-class.d.ts +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +10 -27
- package/dist/models/index.js +10 -27
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/{complete-braintree-payment-setup-request-dto.js → link-bank-transaction-request-dto-rest.js} +1 -1
- package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- package/dist/models/list-refunds-response-class.d.ts +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
- package/dist/models/{billing-profile-limited-response-dto.js → list-tenant-bank-account-response-class.js} +1 -1
- package/dist/models/primary-bank-account-response-class.d.ts +42 -0
- package/dist/models/primary-bank-account-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +2 -1
- package/dist/models/refund-class.js +3 -2
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
- package/dist/models/update-bank-account-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto.d.ts +36 -0
- package/dist/models/update-bank-account-request-dto.js +15 -0
- package/dist/models/update-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-bank-account-response-class.js +15 -0
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/bank-account-class.ts +23 -4
- package/models/bank-transaction-response-class.ts +7 -1
- package/models/create-bank-account-request-dto.ts +15 -3
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/create-tenant-bank-account-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-account-response-class.ts +31 -0
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +10 -27
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +30 -0
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/list-tenant-bank-account-response-class.ts +37 -0
- package/models/primary-bank-account-response-class.ts +48 -0
- package/models/refund-class.ts +3 -2
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
- package/models/update-bank-account-request-dto-rest.ts +36 -0
- package/models/update-bank-account-request-dto.ts +42 -0
- package/models/update-bank-account-response-class.ts +31 -0
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -1
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Emil Payment Service
|
|
3
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
6
|
* Contact: kontakt@emil.de
|
|
@@ -13,14 +13,16 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { GetBankTransactionsResponseClass } from '../models';
|
|
16
|
+
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
16
17
|
import { ListBankTransactionsResponseClass } from '../models';
|
|
18
|
+
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
17
19
|
/**
|
|
18
20
|
* BankTransactionApi - axios parameter creator
|
|
19
21
|
* @export
|
|
20
22
|
*/
|
|
21
23
|
export declare const BankTransactionApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
24
|
/**
|
|
23
|
-
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code
|
|
25
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
24
26
|
* @summary Retrieve the Bank Transaction
|
|
25
27
|
* @param {string} code
|
|
26
28
|
* @param {string} [authorization] Bearer Token
|
|
@@ -32,45 +34,47 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
32
34
|
/**
|
|
33
35
|
* Import bank transactions from a swift MT940 file
|
|
34
36
|
* @summary Create the bank transactions
|
|
37
|
+
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
35
38
|
* @param {string} [authorization] Bearer Token
|
|
36
|
-
* @param {any} [file]
|
|
37
39
|
* @param {*} [options] Override http request option.
|
|
38
40
|
* @throws {RequiredError}
|
|
39
41
|
*/
|
|
40
|
-
importBankTransactions: (
|
|
42
|
+
importBankTransactions: (file: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
43
|
/**
|
|
42
44
|
* Links a bank transaction with an invoice
|
|
43
45
|
* @summary Link Bank Transaction
|
|
44
46
|
* @param {string} code Code of the bank transaction to link
|
|
47
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
45
48
|
* @param {string} [authorization] Bearer Token
|
|
46
49
|
* @param {*} [options] Override http request option.
|
|
47
50
|
* @throws {RequiredError}
|
|
48
51
|
*/
|
|
49
|
-
linkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
|
+
linkBankTransaction: (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
53
|
/**
|
|
51
|
-
* Returns a list of bank transactions you have previously created.
|
|
54
|
+
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
52
55
|
* @summary List bank transactions
|
|
53
56
|
* @param {string} [authorization] Bearer Token
|
|
54
57
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
55
58
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
56
|
-
* @param {any} [filter] Filter the response by one or multiple fields.
|
|
57
|
-
* @param {any} [search]
|
|
59
|
+
* @param {any} [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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
60
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
58
61
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
59
|
-
* @param {
|
|
62
|
+
* @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
|
|
60
63
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
61
64
|
* @param {*} [options] Override http request option.
|
|
62
65
|
* @throws {RequiredError}
|
|
63
66
|
*/
|
|
64
|
-
listBankTransactions: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?:
|
|
67
|
+
listBankTransactions: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
68
|
/**
|
|
66
69
|
* Unlinks an already linked bank transaction
|
|
67
70
|
* @summary Unlink Bank Transaction
|
|
68
71
|
* @param {string} code Code of the bank transaction to unlink
|
|
72
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
69
73
|
* @param {string} [authorization] Bearer Token
|
|
70
74
|
* @param {*} [options] Override http request option.
|
|
71
75
|
* @throws {RequiredError}
|
|
72
76
|
*/
|
|
73
|
-
unlinkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
77
|
+
unlinkBankTransaction: (code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
78
|
};
|
|
75
79
|
/**
|
|
76
80
|
* BankTransactionApi - functional programming interface
|
|
@@ -78,7 +82,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
78
82
|
*/
|
|
79
83
|
export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
80
84
|
/**
|
|
81
|
-
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code
|
|
85
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
82
86
|
* @summary Retrieve the Bank Transaction
|
|
83
87
|
* @param {string} code
|
|
84
88
|
* @param {string} [authorization] Bearer Token
|
|
@@ -90,45 +94,47 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
90
94
|
/**
|
|
91
95
|
* Import bank transactions from a swift MT940 file
|
|
92
96
|
* @summary Create the bank transactions
|
|
97
|
+
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
93
98
|
* @param {string} [authorization] Bearer Token
|
|
94
|
-
* @param {any} [file]
|
|
95
99
|
* @param {*} [options] Override http request option.
|
|
96
100
|
* @throws {RequiredError}
|
|
97
101
|
*/
|
|
98
|
-
importBankTransactions(
|
|
102
|
+
importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>>;
|
|
99
103
|
/**
|
|
100
104
|
* Links a bank transaction with an invoice
|
|
101
105
|
* @summary Link Bank Transaction
|
|
102
106
|
* @param {string} code Code of the bank transaction to link
|
|
107
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
103
108
|
* @param {string} [authorization] Bearer Token
|
|
104
109
|
* @param {*} [options] Override http request option.
|
|
105
110
|
* @throws {RequiredError}
|
|
106
111
|
*/
|
|
107
|
-
linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
112
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
108
113
|
/**
|
|
109
|
-
* Returns a list of bank transactions you have previously created.
|
|
114
|
+
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
110
115
|
* @summary List bank transactions
|
|
111
116
|
* @param {string} [authorization] Bearer Token
|
|
112
117
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
113
118
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
114
|
-
* @param {any} [filter] Filter the response by one or multiple fields.
|
|
115
|
-
* @param {any} [search]
|
|
119
|
+
* @param {any} [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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
120
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
116
121
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
117
|
-
* @param {
|
|
122
|
+
* @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
|
|
118
123
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
119
124
|
* @param {*} [options] Override http request option.
|
|
120
125
|
* @throws {RequiredError}
|
|
121
126
|
*/
|
|
122
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?:
|
|
127
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
123
128
|
/**
|
|
124
129
|
* Unlinks an already linked bank transaction
|
|
125
130
|
* @summary Unlink Bank Transaction
|
|
126
131
|
* @param {string} code Code of the bank transaction to unlink
|
|
132
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
127
133
|
* @param {string} [authorization] Bearer Token
|
|
128
134
|
* @param {*} [options] Override http request option.
|
|
129
135
|
* @throws {RequiredError}
|
|
130
136
|
*/
|
|
131
|
-
unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
137
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
132
138
|
};
|
|
133
139
|
/**
|
|
134
140
|
* BankTransactionApi - factory interface
|
|
@@ -136,7 +142,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
136
142
|
*/
|
|
137
143
|
export declare const BankTransactionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
138
144
|
/**
|
|
139
|
-
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code
|
|
145
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
140
146
|
* @summary Retrieve the Bank Transaction
|
|
141
147
|
* @param {string} code
|
|
142
148
|
* @param {string} [authorization] Bearer Token
|
|
@@ -148,45 +154,47 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
148
154
|
/**
|
|
149
155
|
* Import bank transactions from a swift MT940 file
|
|
150
156
|
* @summary Create the bank transactions
|
|
157
|
+
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
151
158
|
* @param {string} [authorization] Bearer Token
|
|
152
|
-
* @param {any} [file]
|
|
153
159
|
* @param {*} [options] Override http request option.
|
|
154
160
|
* @throws {RequiredError}
|
|
155
161
|
*/
|
|
156
|
-
importBankTransactions(
|
|
162
|
+
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
|
|
157
163
|
/**
|
|
158
164
|
* Links a bank transaction with an invoice
|
|
159
165
|
* @summary Link Bank Transaction
|
|
160
166
|
* @param {string} code Code of the bank transaction to link
|
|
167
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
161
168
|
* @param {string} [authorization] Bearer Token
|
|
162
169
|
* @param {*} [options] Override http request option.
|
|
163
170
|
* @throws {RequiredError}
|
|
164
171
|
*/
|
|
165
|
-
linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
172
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
166
173
|
/**
|
|
167
|
-
* Returns a list of bank transactions you have previously created.
|
|
174
|
+
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
168
175
|
* @summary List bank transactions
|
|
169
176
|
* @param {string} [authorization] Bearer Token
|
|
170
177
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
171
178
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
172
|
-
* @param {any} [filter] Filter the response by one or multiple fields.
|
|
173
|
-
* @param {any} [search]
|
|
179
|
+
* @param {any} [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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
180
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
174
181
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
175
|
-
* @param {
|
|
182
|
+
* @param {'bankAccount' | 'transaction'} [expand] Expand the response with additional entities
|
|
176
183
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
177
184
|
* @param {*} [options] Override http request option.
|
|
178
185
|
* @throws {RequiredError}
|
|
179
186
|
*/
|
|
180
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?:
|
|
187
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<void>;
|
|
181
188
|
/**
|
|
182
189
|
* Unlinks an already linked bank transaction
|
|
183
190
|
* @summary Unlink Bank Transaction
|
|
184
191
|
* @param {string} code Code of the bank transaction to unlink
|
|
192
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
185
193
|
* @param {string} [authorization] Bearer Token
|
|
186
194
|
* @param {*} [options] Override http request option.
|
|
187
195
|
* @throws {RequiredError}
|
|
188
196
|
*/
|
|
189
|
-
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
197
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
190
198
|
};
|
|
191
199
|
/**
|
|
192
200
|
* Request parameters for getBankTransaction operation in BankTransactionApi.
|
|
@@ -220,17 +228,17 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
220
228
|
*/
|
|
221
229
|
export interface BankTransactionApiImportBankTransactionsRequest {
|
|
222
230
|
/**
|
|
223
|
-
*
|
|
224
|
-
* @type {
|
|
231
|
+
* Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
232
|
+
* @type {any}
|
|
225
233
|
* @memberof BankTransactionApiImportBankTransactions
|
|
226
234
|
*/
|
|
227
|
-
readonly
|
|
235
|
+
readonly file: any;
|
|
228
236
|
/**
|
|
229
|
-
*
|
|
230
|
-
* @type {
|
|
237
|
+
* Bearer Token
|
|
238
|
+
* @type {string}
|
|
231
239
|
* @memberof BankTransactionApiImportBankTransactions
|
|
232
240
|
*/
|
|
233
|
-
readonly
|
|
241
|
+
readonly authorization?: string;
|
|
234
242
|
}
|
|
235
243
|
/**
|
|
236
244
|
* Request parameters for linkBankTransaction operation in BankTransactionApi.
|
|
@@ -244,6 +252,12 @@ export interface BankTransactionApiLinkBankTransactionRequest {
|
|
|
244
252
|
* @memberof BankTransactionApiLinkBankTransaction
|
|
245
253
|
*/
|
|
246
254
|
readonly code: string;
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @type {LinkBankTransactionRequestDtoRest}
|
|
258
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
259
|
+
*/
|
|
260
|
+
readonly linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest;
|
|
247
261
|
/**
|
|
248
262
|
* Bearer Token
|
|
249
263
|
* @type {string}
|
|
@@ -276,13 +290,13 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
276
290
|
*/
|
|
277
291
|
readonly pageToken?: any;
|
|
278
292
|
/**
|
|
279
|
-
* Filter the response by one or multiple fields.
|
|
293
|
+
* 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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
280
294
|
* @type {any}
|
|
281
295
|
* @memberof BankTransactionApiListBankTransactions
|
|
282
296
|
*/
|
|
283
297
|
readonly filter?: any;
|
|
284
298
|
/**
|
|
285
|
-
*
|
|
299
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
286
300
|
* @type {any}
|
|
287
301
|
* @memberof BankTransactionApiListBankTransactions
|
|
288
302
|
*/
|
|
@@ -295,10 +309,10 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
295
309
|
readonly order?: any;
|
|
296
310
|
/**
|
|
297
311
|
* Expand the response with additional entities
|
|
298
|
-
* @type {
|
|
312
|
+
* @type {'bankAccount' | 'transaction'}
|
|
299
313
|
* @memberof BankTransactionApiListBankTransactions
|
|
300
314
|
*/
|
|
301
|
-
readonly expand?:
|
|
315
|
+
readonly expand?: 'bankAccount' | 'transaction';
|
|
302
316
|
/**
|
|
303
317
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
304
318
|
* @type {any}
|
|
@@ -318,6 +332,12 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
318
332
|
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
319
333
|
*/
|
|
320
334
|
readonly code: string;
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @type {UnlinkBankTransactionRequestDtoRest}
|
|
338
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
339
|
+
*/
|
|
340
|
+
readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest;
|
|
321
341
|
/**
|
|
322
342
|
* Bearer Token
|
|
323
343
|
* @type {string}
|
|
@@ -333,7 +353,7 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
333
353
|
*/
|
|
334
354
|
export declare class BankTransactionApi extends BaseAPI {
|
|
335
355
|
/**
|
|
336
|
-
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code
|
|
356
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
337
357
|
* @summary Retrieve the Bank Transaction
|
|
338
358
|
* @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
|
|
339
359
|
* @param {*} [options] Override http request option.
|
|
@@ -349,7 +369,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
349
369
|
* @throws {RequiredError}
|
|
350
370
|
* @memberof BankTransactionApi
|
|
351
371
|
*/
|
|
352
|
-
importBankTransactions(requestParameters
|
|
372
|
+
importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
|
|
353
373
|
/**
|
|
354
374
|
* Links a bank transaction with an invoice
|
|
355
375
|
* @summary Link Bank Transaction
|
|
@@ -360,14 +380,14 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
360
380
|
*/
|
|
361
381
|
linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
362
382
|
/**
|
|
363
|
-
* Returns a list of bank transactions you have previously created.
|
|
383
|
+
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
364
384
|
* @summary List bank transactions
|
|
365
385
|
* @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
|
|
366
386
|
* @param {*} [options] Override http request option.
|
|
367
387
|
* @throws {RequiredError}
|
|
368
388
|
* @memberof BankTransactionApi
|
|
369
389
|
*/
|
|
370
|
-
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
390
|
+
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
371
391
|
/**
|
|
372
392
|
* Unlinks an already linked bank transaction
|
|
373
393
|
* @summary Unlink Bank Transaction
|