@emilgroup/payment-sdk 1.0.0 → 1.4.1-beta.0
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 +15 -30
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +21 -25
- package/api/bank-transaction-api.ts +657 -0
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +42 -46
- package/api/payment-reminders-api.ts +17 -19
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +30 -32
- package/api/refunds-api.ts +462 -0
- package/api/tenant-bank-account-api.ts +651 -0
- package/api/webhooks-api.ts +1 -1
- package/api.ts +7 -3
- package/base.ts +2 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +17 -19
- package/dist/api/bank-accounts-api.js +16 -16
- package/dist/api/bank-transaction-api.d.ts +371 -0
- package/dist/api/bank-transaction-api.js +632 -0
- 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 +32 -36
- package/dist/api/payment-methods-api.js +32 -28
- package/dist/api/payment-reminders-api.d.ts +21 -22
- package/dist/api/payment-reminders-api.js +8 -8
- 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 +26 -29
- package/dist/api/payments-api.js +20 -16
- package/dist/api/refunds-api.d.ts +260 -0
- package/dist/api/refunds-api.js +443 -0
- package/dist/api/tenant-bank-account-api.d.ts +361 -0
- package/dist/api/tenant-bank-account-api.js +616 -0
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +4 -2
- package/dist/api.js +4 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +2 -1
- 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-transaction-response-class.d.ts +122 -0
- package/dist/models/{bank-account-class.js → bank-transaction-response-class.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 +3 -3
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/{sepa-direct-dto.d.ts → create-refund-request-dto.d.ts} +6 -6
- package/dist/models/{complete-braintree-payment-setup-request-dto.js → create-refund-request-dto.js} +1 -1
- package/dist/models/{validate-pspconfig-response-class.d.ts → create-refund-response-class.d.ts} +8 -7
- package/dist/models/{billing-profile-dto.js → create-refund-response-class.js} +1 -1
- package/dist/models/{billing-profile-limited-response-dto.d.ts → create-tenant-bank-account-request-dto.d.ts} +15 -27
- package/dist/models/{billing-profile-limited-response-dto.js → create-tenant-bank-account-request-dto.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-payment-method-response-class.d.ts → get-bank-transactions-response-class.d.ts} +8 -8
- package/dist/models/get-bank-transactions-response-class.js +15 -0
- package/dist/models/{get-payment-response-class.d.ts → get-refund-response-class.d.ts} +8 -8
- package/dist/models/get-refund-response-class.js +15 -0
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/{create-bank-account-request-dto.d.ts → get-tenant-bank-account-response-class.d.ts} +8 -13
- package/dist/models/get-tenant-bank-account-response-class.js +15 -0
- package/dist/models/index.d.ts +12 -29
- package/dist/models/index.js +12 -29
- package/dist/models/inline-response200.d.ts +7 -7
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +7 -7
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/{list-payment-methods-response-class.d.ts → list-bank-transactions-response-class.d.ts} +9 -9
- package/dist/models/list-bank-transactions-response-class.js +15 -0
- package/dist/models/{list-payments-response-class.d.ts → list-refunds-response-class.d.ts} +9 -9
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +104 -0
- package/dist/models/refund-class.js +28 -0
- package/dist/models/{payment-method-class.d.ts → tenant-bank-account-response-class.d.ts} +25 -19
- package/dist/models/tenant-bank-account-response-class.js +15 -0
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/{symphony-profile-limited-response-dto.d.ts → update-tenant-bank-account-rest-request-dto.d.ts} +12 -18
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/git_push.sh +1 -1
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +128 -0
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +3 -3
- package/models/{sepa-direct-dto.ts → create-refund-request-dto.ts} +6 -6
- package/models/{validate-pspconfig-response-class.ts → create-refund-response-class.ts} +8 -7
- package/models/{billing-profile-limited-response-dto.ts → create-tenant-bank-account-request-dto.ts} +15 -27
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/{get-payment-method-response-class.ts → get-bank-transactions-response-class.ts} +8 -8
- package/models/{get-payment-response-class.ts → get-refund-response-class.ts} +8 -8
- package/models/get-request-dto.ts +2 -2
- package/models/{create-bank-account-request-dto.ts → get-tenant-bank-account-response-class.ts} +8 -13
- package/models/index.ts +12 -29
- package/models/inline-response200.ts +7 -7
- package/models/inline-response503.ts +7 -7
- package/models/{list-payment-methods-response-class.ts → list-bank-transactions-response-class.ts} +9 -9
- package/models/{list-payments-response-class.ts → list-refunds-response-class.ts} +9 -9
- package/models/refund-class.ts +114 -0
- package/models/{payment-method-class.ts → tenant-bank-account-response-class.ts} +25 -19
- package/models/transaction-class.ts +1 -1
- package/models/{symphony-profile-limited-response-dto.ts → update-tenant-bank-account-rest-request-dto.ts} +12 -18
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -2
- package/api/payment-service-providers-api.ts +0 -161
- package/dist/api/payment-service-providers-api.d.ts +0 -93
- package/dist/api/payment-service-providers-api.js +0 -220
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/billing-profile-dto.d.ts +0 -38
- 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-request-dto.js +0 -15
- 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-bank-account-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/get-payment-method-response-class.js +0 -15
- 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.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.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.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.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/dist/models/validate-pspconfig-response-class.js +0 -15
- package/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- 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/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-reminders-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-reminder-class.ts +0 -122
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
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
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: z
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { GetBankTransactionsResponseClass } from '../models';
|
|
16
|
+
import { ListBankTransactionsResponseClass } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* BankTransactionApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const BankTransactionApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
* 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
|
+
* @summary Retrieve the Bank Transaction
|
|
25
|
+
* @param {string} code
|
|
26
|
+
* @param {string} [authorization] Bearer Token
|
|
27
|
+
* @param {string} [expand] Expand the response with additional entities
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
getBankTransaction: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
/**
|
|
33
|
+
* Import bank transactions from a swift MT940 file
|
|
34
|
+
* @summary Create the bank transactions
|
|
35
|
+
* @param {string} [authorization] Bearer Token
|
|
36
|
+
* @param {any} [file]
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
importBankTransactions: (authorization?: string, file?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
|
+
/**
|
|
42
|
+
* Links a bank transaction with an invoice
|
|
43
|
+
* @summary Link Bank Transaction
|
|
44
|
+
* @param {string} code Code of the bank transaction to link
|
|
45
|
+
* @param {string} [authorization] Bearer Token
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
linkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
|
+
/**
|
|
51
|
+
* 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
|
+
* @summary List bank transactions
|
|
53
|
+
* @param {string} [authorization] Bearer Token
|
|
54
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
55
|
+
* @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. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
57
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
58
|
+
* @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 {string} [expand] Expand the response with additional entities
|
|
60
|
+
* @param {*} [options] Override http request option.
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
*/
|
|
63
|
+
listBankTransactions: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
64
|
+
/**
|
|
65
|
+
* Unlinks an already linked bank transaction
|
|
66
|
+
* @summary Unlink Bank Transaction
|
|
67
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
68
|
+
* @param {string} [authorization] Bearer Token
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
unlinkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* BankTransactionApi - functional programming interface
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
79
|
+
/**
|
|
80
|
+
* 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.
|
|
81
|
+
* @summary Retrieve the Bank Transaction
|
|
82
|
+
* @param {string} code
|
|
83
|
+
* @param {string} [authorization] Bearer Token
|
|
84
|
+
* @param {string} [expand] Expand the response with additional entities
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
89
|
+
/**
|
|
90
|
+
* Import bank transactions from a swift MT940 file
|
|
91
|
+
* @summary Create the bank transactions
|
|
92
|
+
* @param {string} [authorization] Bearer Token
|
|
93
|
+
* @param {any} [file]
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
importBankTransactions(authorization?: string, file?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>>;
|
|
98
|
+
/**
|
|
99
|
+
* Links a bank transaction with an invoice
|
|
100
|
+
* @summary Link Bank Transaction
|
|
101
|
+
* @param {string} code Code of the bank transaction to link
|
|
102
|
+
* @param {string} [authorization] Bearer Token
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
107
|
+
/**
|
|
108
|
+
* 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.
|
|
109
|
+
* @summary List bank transactions
|
|
110
|
+
* @param {string} [authorization] Bearer Token
|
|
111
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
112
|
+
* @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.
|
|
113
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
114
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
115
|
+
* @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.
|
|
116
|
+
* @param {string} [expand] Expand the response with additional entities
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
121
|
+
/**
|
|
122
|
+
* Unlinks an already linked bank transaction
|
|
123
|
+
* @summary Unlink Bank Transaction
|
|
124
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
125
|
+
* @param {string} [authorization] Bearer Token
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>>;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* BankTransactionApi - factory interface
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
export declare const BankTransactionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
136
|
+
/**
|
|
137
|
+
* 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.
|
|
138
|
+
* @summary Retrieve the Bank Transaction
|
|
139
|
+
* @param {string} code
|
|
140
|
+
* @param {string} [authorization] Bearer Token
|
|
141
|
+
* @param {string} [expand] Expand the response with additional entities
|
|
142
|
+
* @param {*} [options] Override http request option.
|
|
143
|
+
* @throws {RequiredError}
|
|
144
|
+
*/
|
|
145
|
+
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
146
|
+
/**
|
|
147
|
+
* Import bank transactions from a swift MT940 file
|
|
148
|
+
* @summary Create the bank transactions
|
|
149
|
+
* @param {string} [authorization] Bearer Token
|
|
150
|
+
* @param {any} [file]
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
importBankTransactions(authorization?: string, file?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
|
|
155
|
+
/**
|
|
156
|
+
* Links a bank transaction with an invoice
|
|
157
|
+
* @summary Link Bank Transaction
|
|
158
|
+
* @param {string} code Code of the bank transaction to link
|
|
159
|
+
* @param {string} [authorization] Bearer Token
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
164
|
+
/**
|
|
165
|
+
* 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.
|
|
166
|
+
* @summary List bank transactions
|
|
167
|
+
* @param {string} [authorization] Bearer Token
|
|
168
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
169
|
+
* @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.
|
|
170
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
171
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
172
|
+
* @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.
|
|
173
|
+
* @param {string} [expand] Expand the response with additional entities
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: any): AxiosPromise<void>;
|
|
178
|
+
/**
|
|
179
|
+
* Unlinks an already linked bank transaction
|
|
180
|
+
* @summary Unlink Bank Transaction
|
|
181
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
182
|
+
* @param {string} [authorization] Bearer Token
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
*/
|
|
186
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass>;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Request parameters for getBankTransaction operation in BankTransactionApi.
|
|
190
|
+
* @export
|
|
191
|
+
* @interface BankTransactionApiGetBankTransactionRequest
|
|
192
|
+
*/
|
|
193
|
+
export interface BankTransactionApiGetBankTransactionRequest {
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @type {string}
|
|
197
|
+
* @memberof BankTransactionApiGetBankTransaction
|
|
198
|
+
*/
|
|
199
|
+
readonly code: string;
|
|
200
|
+
/**
|
|
201
|
+
* Bearer Token
|
|
202
|
+
* @type {string}
|
|
203
|
+
* @memberof BankTransactionApiGetBankTransaction
|
|
204
|
+
*/
|
|
205
|
+
readonly authorization?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Expand the response with additional entities
|
|
208
|
+
* @type {string}
|
|
209
|
+
* @memberof BankTransactionApiGetBankTransaction
|
|
210
|
+
*/
|
|
211
|
+
readonly expand?: string;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Request parameters for importBankTransactions operation in BankTransactionApi.
|
|
215
|
+
* @export
|
|
216
|
+
* @interface BankTransactionApiImportBankTransactionsRequest
|
|
217
|
+
*/
|
|
218
|
+
export interface BankTransactionApiImportBankTransactionsRequest {
|
|
219
|
+
/**
|
|
220
|
+
* Bearer Token
|
|
221
|
+
* @type {string}
|
|
222
|
+
* @memberof BankTransactionApiImportBankTransactions
|
|
223
|
+
*/
|
|
224
|
+
readonly authorization?: string;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {any}
|
|
228
|
+
* @memberof BankTransactionApiImportBankTransactions
|
|
229
|
+
*/
|
|
230
|
+
readonly file?: any;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Request parameters for linkBankTransaction operation in BankTransactionApi.
|
|
234
|
+
* @export
|
|
235
|
+
* @interface BankTransactionApiLinkBankTransactionRequest
|
|
236
|
+
*/
|
|
237
|
+
export interface BankTransactionApiLinkBankTransactionRequest {
|
|
238
|
+
/**
|
|
239
|
+
* Code of the bank transaction to link
|
|
240
|
+
* @type {string}
|
|
241
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
242
|
+
*/
|
|
243
|
+
readonly code: string;
|
|
244
|
+
/**
|
|
245
|
+
* Bearer Token
|
|
246
|
+
* @type {string}
|
|
247
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
248
|
+
*/
|
|
249
|
+
readonly authorization?: string;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Request parameters for listBankTransactions operation in BankTransactionApi.
|
|
253
|
+
* @export
|
|
254
|
+
* @interface BankTransactionApiListBankTransactionsRequest
|
|
255
|
+
*/
|
|
256
|
+
export interface BankTransactionApiListBankTransactionsRequest {
|
|
257
|
+
/**
|
|
258
|
+
* Bearer Token
|
|
259
|
+
* @type {string}
|
|
260
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
261
|
+
*/
|
|
262
|
+
readonly authorization?: string;
|
|
263
|
+
/**
|
|
264
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
265
|
+
* @type {any}
|
|
266
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
267
|
+
*/
|
|
268
|
+
readonly pageSize?: any;
|
|
269
|
+
/**
|
|
270
|
+
* 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.
|
|
271
|
+
* @type {any}
|
|
272
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
273
|
+
*/
|
|
274
|
+
readonly pageToken?: any;
|
|
275
|
+
/**
|
|
276
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
277
|
+
* @type {any}
|
|
278
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
279
|
+
*/
|
|
280
|
+
readonly filter?: any;
|
|
281
|
+
/**
|
|
282
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
283
|
+
* @type {any}
|
|
284
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
285
|
+
*/
|
|
286
|
+
readonly search?: any;
|
|
287
|
+
/**
|
|
288
|
+
* 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.
|
|
289
|
+
* @type {any}
|
|
290
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
291
|
+
*/
|
|
292
|
+
readonly order?: any;
|
|
293
|
+
/**
|
|
294
|
+
* Expand the response with additional entities
|
|
295
|
+
* @type {string}
|
|
296
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
297
|
+
*/
|
|
298
|
+
readonly expand?: string;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Request parameters for unlinkBankTransaction operation in BankTransactionApi.
|
|
302
|
+
* @export
|
|
303
|
+
* @interface BankTransactionApiUnlinkBankTransactionRequest
|
|
304
|
+
*/
|
|
305
|
+
export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
306
|
+
/**
|
|
307
|
+
* Code of the bank transaction to unlink
|
|
308
|
+
* @type {string}
|
|
309
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
310
|
+
*/
|
|
311
|
+
readonly code: string;
|
|
312
|
+
/**
|
|
313
|
+
* Bearer Token
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
316
|
+
*/
|
|
317
|
+
readonly authorization?: string;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* BankTransactionApi - object-oriented interface
|
|
321
|
+
* @export
|
|
322
|
+
* @class BankTransactionApi
|
|
323
|
+
* @extends {BaseAPI}
|
|
324
|
+
*/
|
|
325
|
+
export declare class BankTransactionApi extends BaseAPI {
|
|
326
|
+
/**
|
|
327
|
+
* 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.
|
|
328
|
+
* @summary Retrieve the Bank Transaction
|
|
329
|
+
* @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
* @memberof BankTransactionApi
|
|
333
|
+
*/
|
|
334
|
+
getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
335
|
+
/**
|
|
336
|
+
* Import bank transactions from a swift MT940 file
|
|
337
|
+
* @summary Create the bank transactions
|
|
338
|
+
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
* @memberof BankTransactionApi
|
|
342
|
+
*/
|
|
343
|
+
importBankTransactions(requestParameters?: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any>>;
|
|
344
|
+
/**
|
|
345
|
+
* Links a bank transaction with an invoice
|
|
346
|
+
* @summary Link Bank Transaction
|
|
347
|
+
* @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
|
|
348
|
+
* @param {*} [options] Override http request option.
|
|
349
|
+
* @throws {RequiredError}
|
|
350
|
+
* @memberof BankTransactionApi
|
|
351
|
+
*/
|
|
352
|
+
linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
353
|
+
/**
|
|
354
|
+
* 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.
|
|
355
|
+
* @summary List bank transactions
|
|
356
|
+
* @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
* @memberof BankTransactionApi
|
|
360
|
+
*/
|
|
361
|
+
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
362
|
+
/**
|
|
363
|
+
* Unlinks an already linked bank transaction
|
|
364
|
+
* @summary Unlink Bank Transaction
|
|
365
|
+
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
* @memberof BankTransactionApi
|
|
369
|
+
*/
|
|
370
|
+
unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any>>;
|
|
371
|
+
}
|