@emilgroup/payment-sdk 1.4.1-beta.4 → 1.4.1-beta.40
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 -7
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +501 -89
- package/api/bank-transaction-api.ts +303 -97
- package/api/{default-api.ts → health-check-api.ts} +23 -19
- package/api/payment-methods-api.ts +62 -243
- package/api/payment-reminders-api.ts +58 -100
- package/api/payment-setup-api.ts +18 -10
- package/api/payments-api.ts +73 -136
- package/api/refunds-api.ts +436 -0
- package/api/tenant-bank-account-api.ts +100 -102
- package/api/webhooks-api.ts +18 -14
- package/api.ts +6 -4
- package/base.ts +23 -11
- package/common.ts +4 -4
- package/configuration.ts +2 -2
- package/dist/api/bank-accounts-api.d.ts +293 -70
- package/dist/api/bank-accounts-api.js +433 -63
- package/dist/api/bank-transaction-api.d.ts +193 -83
- package/dist/api/bank-transaction-api.js +253 -66
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +32 -28
- package/dist/api/payment-methods-api.d.ts +52 -152
- package/dist/api/payment-methods-api.js +49 -179
- package/dist/api/payment-reminders-api.d.ts +53 -80
- package/dist/api/payment-reminders-api.js +45 -63
- package/dist/api/payment-setup-api.d.ts +18 -10
- package/dist/api/payment-setup-api.js +18 -10
- package/dist/api/payments-api.d.ts +63 -99
- package/dist/api/payments-api.js +56 -86
- package/dist/api/refunds-api.d.ts +251 -0
- package/dist/api/refunds-api.js +439 -0
- package/dist/api/tenant-bank-account-api.d.ts +94 -89
- package/dist/api/tenant-bank-account-api.js +72 -64
- package/dist/api/webhooks-api.d.ts +18 -14
- package/dist/api/webhooks-api.js +16 -12
- package/dist/api.d.ts +4 -3
- package/dist/api.js +4 -3
- package/dist/base.d.ts +7 -4
- package/dist/base.js +32 -23
- package/dist/common.d.ts +4 -4
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/models/{bank-transaction-response-class.d.ts → bank-transaction-class-without-expand-properties.d.ts} +32 -34
- package/dist/models/{bank-transaction-response-class.js → bank-transaction-class-without-expand-properties.js} +2 -2
- package/dist/models/create-bank-account-request-dto.d.ts +42 -0
- package/dist/models/{get-request-dto.js → create-bank-account-request-dto.js} +2 -2
- package/dist/models/create-payment-reminder-request-dto.d.ts +2 -2
- package/dist/models/create-payment-reminder-request-dto.js +2 -2
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +2 -2
- package/dist/models/create-refund-request-dto.d.ts +24 -0
- package/dist/models/{get-bank-transactions-response-class.js → create-refund-request-dto.js} +2 -2
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +2 -2
- package/dist/models/create-tenant-bank-account-request-dto.js +2 -2
- package/dist/models/create-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/{list-bank-transactions-response-class.js → create-tenant-bank-account-response-class.js} +2 -2
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +2 -2
- package/dist/models/deactivate-payment-reminder-request-dto.js +2 -2
- package/dist/models/get-tenant-bank-account-response-class.d.ts +6 -6
- package/dist/models/get-tenant-bank-account-response-class.js +2 -2
- package/dist/models/index.d.ts +13 -6
- package/dist/models/index.js +13 -6
- package/dist/models/inline-response200.d.ts +2 -2
- package/dist/models/inline-response200.js +2 -2
- package/dist/models/inline-response503.d.ts +2 -2
- package/dist/models/inline-response503.js +2 -2
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/link-bank-transaction-request-dto-rest.js +15 -0
- package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
- package/dist/models/list-tenant-bank-account-response-class.js +15 -0
- 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-class-without-expand-properties.d.ts +78 -0
- package/dist/models/tenant-bank-account-class-without-expand-properties.js +15 -0
- package/dist/models/tenant-bank-account-class.d.ts +85 -0
- package/dist/models/tenant-bank-account-class.js +15 -0
- 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-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-tenant-bank-account-response-class.js +15 -0
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +2 -2
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +2 -2
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -2
- package/dist/models/validate-pspconfig-request-dto.js +2 -2
- package/index.ts +2 -2
- package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +32 -34
- package/models/create-bank-account-request-dto.ts +48 -0
- package/models/create-payment-reminder-request-dto.ts +2 -2
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-refund-request-dto.ts +30 -0
- package/models/create-tenant-bank-account-request-dto.ts +2 -2
- package/models/create-tenant-bank-account-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +6 -6
- package/models/index.ts +13 -6
- package/models/inline-response200.ts +2 -2
- package/models/inline-response503.ts +2 -2
- package/models/link-bank-transaction-request-dto-rest.ts +30 -0
- package/models/list-tenant-bank-account-response-class.ts +37 -0
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +24 -12
- package/models/tenant-bank-account-class.ts +91 -0
- 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-tenant-bank-account-response-class.ts +31 -0
- package/models/update-tenant-bank-account-rest-request-dto.ts +2 -2
- package/models/validate-pspconfig-request-dto.ts +2 -2
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
- package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/get-request-dto.d.ts +0 -30
- package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
- package/dist/models/tenant-bank-account-response-class.d.ts +0 -66
- package/dist/models/tenant-bank-account-response-class.js +0 -15
- package/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-class.js +0 -15
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-request-dto.ts +0 -36
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/transaction-class.ts +0 -60
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* 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.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact:
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -21,9 +21,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import {
|
|
24
|
+
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import {
|
|
26
|
+
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
27
27
|
/**
|
|
28
28
|
* BankTransactionApi - axios parameter creator
|
|
29
29
|
* @export
|
|
@@ -31,11 +31,11 @@ import { ListBankTransactionsResponseClass } from '../models';
|
|
|
31
31
|
export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
32
|
return {
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves the details of the
|
|
35
|
-
* @summary Retrieve the
|
|
34
|
+
* 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.
|
|
35
|
+
* @summary Retrieve the bank transaction
|
|
36
36
|
* @param {string} code
|
|
37
37
|
* @param {string} [authorization] Bearer Token
|
|
38
|
-
* @param {string} [expand] Expand the
|
|
38
|
+
* @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: bankAccount, transaction<i>
|
|
39
39
|
* @param {*} [options] Override http request option.
|
|
40
40
|
* @throws {RequiredError}
|
|
41
41
|
*/
|
|
@@ -81,14 +81,16 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
81
81
|
};
|
|
82
82
|
},
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* This will import bank transactions from a swift MT940 file
|
|
85
85
|
* @summary Create the bank transactions
|
|
86
|
+
* @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
|
|
86
87
|
* @param {string} [authorization] Bearer Token
|
|
87
|
-
* @param {any} [file]
|
|
88
88
|
* @param {*} [options] Override http request option.
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
*/
|
|
91
|
-
importBankTransactions: async (
|
|
91
|
+
importBankTransactions: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
92
|
+
// verify required parameter 'file' is not null or undefined
|
|
93
|
+
assertParamExists('importBankTransactions', 'file', file)
|
|
92
94
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/import`;
|
|
93
95
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
94
96
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -131,21 +133,21 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
131
133
|
};
|
|
132
134
|
},
|
|
133
135
|
/**
|
|
134
|
-
*
|
|
135
|
-
* @summary
|
|
136
|
+
* Links a bank transaction with an invoice
|
|
137
|
+
* @summary Link bank transaction
|
|
138
|
+
* @param {string} code Code of the bank transaction to link
|
|
139
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
136
140
|
* @param {string} [authorization] Bearer Token
|
|
137
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
138
|
-
* @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.
|
|
139
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
140
|
-
* @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.
|
|
141
|
-
* @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.
|
|
142
|
-
* @param {string} [expand] Expand the response with additional entities
|
|
143
|
-
* @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.
|
|
144
141
|
* @param {*} [options] Override http request option.
|
|
145
142
|
* @throws {RequiredError}
|
|
146
143
|
*/
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
linkBankTransaction: async (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
145
|
+
// verify required parameter 'code' is not null or undefined
|
|
146
|
+
assertParamExists('linkBankTransaction', 'code', code)
|
|
147
|
+
// verify required parameter 'linkBankTransactionRequestDtoRest' is not null or undefined
|
|
148
|
+
assertParamExists('linkBankTransaction', 'linkBankTransactionRequestDtoRest', linkBankTransactionRequestDtoRest)
|
|
149
|
+
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
|
|
150
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
149
151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
152
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
151
153
|
let baseOptions;
|
|
@@ -155,7 +157,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
155
157
|
baseAccessToken = configuration.accessToken;
|
|
156
158
|
}
|
|
157
159
|
|
|
158
|
-
const localVarRequestOptions = { method: '
|
|
160
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
159
161
|
const localVarHeaderParameter = {} as any;
|
|
160
162
|
const localVarQueryParameter = {} as any;
|
|
161
163
|
|
|
@@ -163,18 +165,63 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
163
165
|
// http bearer authentication required
|
|
164
166
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
165
167
|
|
|
166
|
-
if (
|
|
167
|
-
|
|
168
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
169
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
168
170
|
}
|
|
169
171
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
175
|
+
|
|
176
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
178
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
179
|
+
localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
|
|
180
|
+
|
|
181
|
+
return {
|
|
182
|
+
url: toPathString(localVarUrlObj),
|
|
183
|
+
options: localVarRequestOptions,
|
|
184
|
+
};
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* 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.
|
|
188
|
+
* @summary List bank transactions
|
|
189
|
+
* @param {string} [authorization] Bearer Token
|
|
190
|
+
* @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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
191
|
+
* @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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
192
|
+
* @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, createdAt, amount</i>
|
|
193
|
+
* @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, amount, transactionDate, entryDate</i>
|
|
194
|
+
* @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: bankAccount, transaction<i>
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
listBankTransactions: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
199
|
+
const localVarPath = `/paymentservice/v1/tenant/bank-transactions`;
|
|
200
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
201
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
202
|
+
let baseOptions;
|
|
203
|
+
let baseAccessToken;
|
|
204
|
+
if (configuration) {
|
|
205
|
+
baseOptions = configuration.baseOptions;
|
|
206
|
+
baseAccessToken = configuration.accessToken;
|
|
172
207
|
}
|
|
173
208
|
|
|
209
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
210
|
+
const localVarHeaderParameter = {} as any;
|
|
211
|
+
const localVarQueryParameter = {} as any;
|
|
212
|
+
|
|
213
|
+
// authentication bearer required
|
|
214
|
+
// http bearer authentication required
|
|
215
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
216
|
+
|
|
174
217
|
if (filter !== undefined) {
|
|
175
218
|
localVarQueryParameter['filter'] = filter;
|
|
176
219
|
}
|
|
177
220
|
|
|
221
|
+
if (filters !== undefined) {
|
|
222
|
+
localVarQueryParameter['filters'] = filters;
|
|
223
|
+
}
|
|
224
|
+
|
|
178
225
|
if (search !== undefined) {
|
|
179
226
|
localVarQueryParameter['search'] = search;
|
|
180
227
|
}
|
|
@@ -187,19 +234,66 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
187
234
|
localVarQueryParameter['expand'] = expand;
|
|
188
235
|
}
|
|
189
236
|
|
|
190
|
-
if (
|
|
191
|
-
|
|
237
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
238
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
244
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
245
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
246
|
+
|
|
247
|
+
return {
|
|
248
|
+
url: toPathString(localVarUrlObj),
|
|
249
|
+
options: localVarRequestOptions,
|
|
250
|
+
};
|
|
251
|
+
},
|
|
252
|
+
/**
|
|
253
|
+
* Unlinks an already linked bank transaction
|
|
254
|
+
* @summary Unlink bank transaction
|
|
255
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
256
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
257
|
+
* @param {string} [authorization] Bearer Token
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
unlinkBankTransaction: async (code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
262
|
+
// verify required parameter 'code' is not null or undefined
|
|
263
|
+
assertParamExists('unlinkBankTransaction', 'code', code)
|
|
264
|
+
// verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
|
|
265
|
+
assertParamExists('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest)
|
|
266
|
+
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
|
|
267
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
268
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
269
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
270
|
+
let baseOptions;
|
|
271
|
+
let baseAccessToken;
|
|
272
|
+
if (configuration) {
|
|
273
|
+
baseOptions = configuration.baseOptions;
|
|
274
|
+
baseAccessToken = configuration.accessToken;
|
|
192
275
|
}
|
|
193
276
|
|
|
277
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
278
|
+
const localVarHeaderParameter = {} as any;
|
|
279
|
+
const localVarQueryParameter = {} as any;
|
|
280
|
+
|
|
281
|
+
// authentication bearer required
|
|
282
|
+
// http bearer authentication required
|
|
283
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
284
|
+
|
|
194
285
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
195
286
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
196
287
|
}
|
|
197
288
|
|
|
198
289
|
|
|
199
290
|
|
|
291
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
292
|
+
|
|
200
293
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
201
294
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
202
295
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
296
|
+
localVarRequestOptions.data = serializeDataIfNeeded(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
|
|
203
297
|
|
|
204
298
|
return {
|
|
205
299
|
url: toPathString(localVarUrlObj),
|
|
@@ -217,46 +311,70 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
217
311
|
const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
|
|
218
312
|
return {
|
|
219
313
|
/**
|
|
220
|
-
* Retrieves the details of the
|
|
221
|
-
* @summary Retrieve the
|
|
314
|
+
* 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.
|
|
315
|
+
* @summary Retrieve the bank transaction
|
|
222
316
|
* @param {string} code
|
|
223
317
|
* @param {string} [authorization] Bearer Token
|
|
224
|
-
* @param {string} [expand] Expand the
|
|
318
|
+
* @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: bankAccount, transaction<i>
|
|
225
319
|
* @param {*} [options] Override http request option.
|
|
226
320
|
* @throws {RequiredError}
|
|
227
321
|
*/
|
|
228
|
-
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
322
|
+
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
229
323
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankTransaction(code, authorization, expand, options);
|
|
230
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
231
325
|
},
|
|
232
326
|
/**
|
|
233
|
-
*
|
|
327
|
+
* This will import bank transactions from a swift MT940 file
|
|
234
328
|
* @summary Create the bank transactions
|
|
329
|
+
* @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
|
|
235
330
|
* @param {string} [authorization] Bearer Token
|
|
236
|
-
* @param {any} [file]
|
|
237
331
|
* @param {*} [options] Override http request option.
|
|
238
332
|
* @throws {RequiredError}
|
|
239
333
|
*/
|
|
240
|
-
async importBankTransactions(
|
|
241
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(
|
|
334
|
+
async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
335
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(file, authorization, options);
|
|
242
336
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
243
337
|
},
|
|
244
338
|
/**
|
|
245
|
-
*
|
|
339
|
+
* Links a bank transaction with an invoice
|
|
340
|
+
* @summary Link bank transaction
|
|
341
|
+
* @param {string} code Code of the bank transaction to link
|
|
342
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
343
|
+
* @param {string} [authorization] Bearer Token
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
*/
|
|
347
|
+
async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
348
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
|
|
349
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
350
|
+
},
|
|
351
|
+
/**
|
|
352
|
+
* 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.
|
|
246
353
|
* @summary List bank transactions
|
|
247
354
|
* @param {string} [authorization] Bearer Token
|
|
248
|
-
* @param {
|
|
249
|
-
* @param {
|
|
250
|
-
* @param {
|
|
251
|
-
* @param {
|
|
252
|
-
* @param {
|
|
253
|
-
* @param {
|
|
254
|
-
* @
|
|
355
|
+
* @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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
357
|
+
* @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, createdAt, amount</i>
|
|
358
|
+
* @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, amount, transactionDate, entryDate</i>
|
|
359
|
+
* @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: bankAccount, transaction<i>
|
|
360
|
+
* @param {*} [options] Override http request option.
|
|
361
|
+
* @throws {RequiredError}
|
|
362
|
+
*/
|
|
363
|
+
async listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
364
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, filter, filters, search, order, expand, options);
|
|
365
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
366
|
+
},
|
|
367
|
+
/**
|
|
368
|
+
* Unlinks an already linked bank transaction
|
|
369
|
+
* @summary Unlink bank transaction
|
|
370
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
371
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
372
|
+
* @param {string} [authorization] Bearer Token
|
|
255
373
|
* @param {*} [options] Override http request option.
|
|
256
374
|
* @throws {RequiredError}
|
|
257
375
|
*/
|
|
258
|
-
async
|
|
259
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
376
|
+
async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
377
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options);
|
|
260
378
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
261
379
|
},
|
|
262
380
|
}
|
|
@@ -270,44 +388,66 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
270
388
|
const localVarFp = BankTransactionApiFp(configuration)
|
|
271
389
|
return {
|
|
272
390
|
/**
|
|
273
|
-
* Retrieves the details of the
|
|
274
|
-
* @summary Retrieve the
|
|
391
|
+
* 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.
|
|
392
|
+
* @summary Retrieve the bank transaction
|
|
275
393
|
* @param {string} code
|
|
276
394
|
* @param {string} [authorization] Bearer Token
|
|
277
|
-
* @param {string} [expand] Expand the
|
|
395
|
+
* @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: bankAccount, transaction<i>
|
|
278
396
|
* @param {*} [options] Override http request option.
|
|
279
397
|
* @throws {RequiredError}
|
|
280
398
|
*/
|
|
281
|
-
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
399
|
+
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
282
400
|
return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
283
401
|
},
|
|
284
402
|
/**
|
|
285
|
-
*
|
|
403
|
+
* This will import bank transactions from a swift MT940 file
|
|
286
404
|
* @summary Create the bank transactions
|
|
405
|
+
* @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
|
|
287
406
|
* @param {string} [authorization] Bearer Token
|
|
288
|
-
* @param {any} [file]
|
|
289
407
|
* @param {*} [options] Override http request option.
|
|
290
408
|
* @throws {RequiredError}
|
|
291
409
|
*/
|
|
292
|
-
importBankTransactions(
|
|
293
|
-
return localVarFp.importBankTransactions(
|
|
410
|
+
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<void> {
|
|
411
|
+
return localVarFp.importBankTransactions(file, authorization, options).then((request) => request(axios, basePath));
|
|
294
412
|
},
|
|
295
413
|
/**
|
|
296
|
-
*
|
|
414
|
+
* Links a bank transaction with an invoice
|
|
415
|
+
* @summary Link bank transaction
|
|
416
|
+
* @param {string} code Code of the bank transaction to link
|
|
417
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
418
|
+
* @param {string} [authorization] Bearer Token
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
423
|
+
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
424
|
+
},
|
|
425
|
+
/**
|
|
426
|
+
* 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.
|
|
297
427
|
* @summary List bank transactions
|
|
298
428
|
* @param {string} [authorization] Bearer Token
|
|
299
|
-
* @param {
|
|
300
|
-
* @param {
|
|
301
|
-
* @param {
|
|
302
|
-
* @param {
|
|
303
|
-
* @param {
|
|
304
|
-
* @param {
|
|
305
|
-
* @
|
|
429
|
+
* @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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
430
|
+
* @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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
431
|
+
* @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, createdAt, amount</i>
|
|
432
|
+
* @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, amount, transactionDate, entryDate</i>
|
|
433
|
+
* @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: bankAccount, transaction<i>
|
|
434
|
+
* @param {*} [options] Override http request option.
|
|
435
|
+
* @throws {RequiredError}
|
|
436
|
+
*/
|
|
437
|
+
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
438
|
+
return localVarFp.listBankTransactions(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
439
|
+
},
|
|
440
|
+
/**
|
|
441
|
+
* Unlinks an already linked bank transaction
|
|
442
|
+
* @summary Unlink bank transaction
|
|
443
|
+
* @param {string} code Code of the bank transaction to unlink
|
|
444
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
445
|
+
* @param {string} [authorization] Bearer Token
|
|
306
446
|
* @param {*} [options] Override http request option.
|
|
307
447
|
* @throws {RequiredError}
|
|
308
448
|
*/
|
|
309
|
-
|
|
310
|
-
return localVarFp.
|
|
449
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
450
|
+
return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
311
451
|
},
|
|
312
452
|
};
|
|
313
453
|
};
|
|
@@ -333,7 +473,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
333
473
|
readonly authorization?: string
|
|
334
474
|
|
|
335
475
|
/**
|
|
336
|
-
* Expand the
|
|
476
|
+
* 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: bankAccount, transaction<i>
|
|
337
477
|
* @type {string}
|
|
338
478
|
* @memberof BankTransactionApiGetBankTransaction
|
|
339
479
|
*/
|
|
@@ -346,19 +486,47 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
346
486
|
* @interface BankTransactionApiImportBankTransactionsRequest
|
|
347
487
|
*/
|
|
348
488
|
export interface BankTransactionApiImportBankTransactionsRequest {
|
|
489
|
+
/**
|
|
490
|
+
* Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
491
|
+
* @type {any}
|
|
492
|
+
* @memberof BankTransactionApiImportBankTransactions
|
|
493
|
+
*/
|
|
494
|
+
readonly file: any
|
|
495
|
+
|
|
349
496
|
/**
|
|
350
497
|
* Bearer Token
|
|
351
498
|
* @type {string}
|
|
352
499
|
* @memberof BankTransactionApiImportBankTransactions
|
|
353
500
|
*/
|
|
354
501
|
readonly authorization?: string
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Request parameters for linkBankTransaction operation in BankTransactionApi.
|
|
506
|
+
* @export
|
|
507
|
+
* @interface BankTransactionApiLinkBankTransactionRequest
|
|
508
|
+
*/
|
|
509
|
+
export interface BankTransactionApiLinkBankTransactionRequest {
|
|
510
|
+
/**
|
|
511
|
+
* Code of the bank transaction to link
|
|
512
|
+
* @type {string}
|
|
513
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
514
|
+
*/
|
|
515
|
+
readonly code: string
|
|
355
516
|
|
|
356
517
|
/**
|
|
357
518
|
*
|
|
358
|
-
* @type {
|
|
359
|
-
* @memberof
|
|
519
|
+
* @type {LinkBankTransactionRequestDtoRest}
|
|
520
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
360
521
|
*/
|
|
361
|
-
readonly
|
|
522
|
+
readonly linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Bearer Token
|
|
526
|
+
* @type {string}
|
|
527
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
528
|
+
*/
|
|
529
|
+
readonly authorization?: string
|
|
362
530
|
}
|
|
363
531
|
|
|
364
532
|
/**
|
|
@@ -375,53 +543,67 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
375
543
|
readonly authorization?: string
|
|
376
544
|
|
|
377
545
|
/**
|
|
378
|
-
*
|
|
379
|
-
* @type {
|
|
546
|
+
* 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>
|
|
547
|
+
* @type {string}
|
|
380
548
|
* @memberof BankTransactionApiListBankTransactions
|
|
381
549
|
*/
|
|
382
|
-
readonly
|
|
550
|
+
readonly filter?: string
|
|
383
551
|
|
|
384
552
|
/**
|
|
385
|
-
*
|
|
386
|
-
* @type {
|
|
553
|
+
* 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, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
554
|
+
* @type {string}
|
|
387
555
|
* @memberof BankTransactionApiListBankTransactions
|
|
388
556
|
*/
|
|
389
|
-
readonly
|
|
557
|
+
readonly filters?: string
|
|
390
558
|
|
|
391
559
|
/**
|
|
392
|
-
*
|
|
393
|
-
* @type {
|
|
560
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
561
|
+
* @type {string}
|
|
394
562
|
* @memberof BankTransactionApiListBankTransactions
|
|
395
563
|
*/
|
|
396
|
-
readonly
|
|
564
|
+
readonly search?: string
|
|
397
565
|
|
|
398
566
|
/**
|
|
399
|
-
*
|
|
400
|
-
* @type {
|
|
567
|
+
* 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, amount, transactionDate, entryDate</i>
|
|
568
|
+
* @type {string}
|
|
401
569
|
* @memberof BankTransactionApiListBankTransactions
|
|
402
570
|
*/
|
|
403
|
-
readonly
|
|
571
|
+
readonly order?: string
|
|
404
572
|
|
|
405
573
|
/**
|
|
406
|
-
*
|
|
407
|
-
* @type {
|
|
574
|
+
* 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: bankAccount, transaction<i>
|
|
575
|
+
* @type {string}
|
|
408
576
|
* @memberof BankTransactionApiListBankTransactions
|
|
409
577
|
*/
|
|
410
|
-
readonly
|
|
578
|
+
readonly expand?: string
|
|
579
|
+
}
|
|
411
580
|
|
|
581
|
+
/**
|
|
582
|
+
* Request parameters for unlinkBankTransaction operation in BankTransactionApi.
|
|
583
|
+
* @export
|
|
584
|
+
* @interface BankTransactionApiUnlinkBankTransactionRequest
|
|
585
|
+
*/
|
|
586
|
+
export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
412
587
|
/**
|
|
413
|
-
*
|
|
588
|
+
* Code of the bank transaction to unlink
|
|
414
589
|
* @type {string}
|
|
415
|
-
* @memberof
|
|
590
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
416
591
|
*/
|
|
417
|
-
readonly
|
|
592
|
+
readonly code: string
|
|
418
593
|
|
|
419
594
|
/**
|
|
420
|
-
*
|
|
421
|
-
* @type {
|
|
422
|
-
* @memberof
|
|
595
|
+
*
|
|
596
|
+
* @type {UnlinkBankTransactionRequestDtoRest}
|
|
597
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
598
|
+
*/
|
|
599
|
+
readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Bearer Token
|
|
603
|
+
* @type {string}
|
|
604
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
423
605
|
*/
|
|
424
|
-
readonly
|
|
606
|
+
readonly authorization?: string
|
|
425
607
|
}
|
|
426
608
|
|
|
427
609
|
/**
|
|
@@ -432,8 +614,8 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
432
614
|
*/
|
|
433
615
|
export class BankTransactionApi extends BaseAPI {
|
|
434
616
|
/**
|
|
435
|
-
* Retrieves the details of the
|
|
436
|
-
* @summary Retrieve the
|
|
617
|
+
* 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.
|
|
618
|
+
* @summary Retrieve the bank transaction
|
|
437
619
|
* @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
|
|
438
620
|
* @param {*} [options] Override http request option.
|
|
439
621
|
* @throws {RequiredError}
|
|
@@ -444,19 +626,31 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
444
626
|
}
|
|
445
627
|
|
|
446
628
|
/**
|
|
447
|
-
*
|
|
629
|
+
* This will import bank transactions from a swift MT940 file
|
|
448
630
|
* @summary Create the bank transactions
|
|
449
631
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
450
632
|
* @param {*} [options] Override http request option.
|
|
451
633
|
* @throws {RequiredError}
|
|
452
634
|
* @memberof BankTransactionApi
|
|
453
635
|
*/
|
|
454
|
-
public importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest
|
|
455
|
-
return BankTransactionApiFp(this.configuration).importBankTransactions(requestParameters.
|
|
636
|
+
public importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig) {
|
|
637
|
+
return BankTransactionApiFp(this.configuration).importBankTransactions(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
456
638
|
}
|
|
457
639
|
|
|
458
640
|
/**
|
|
459
|
-
*
|
|
641
|
+
* Links a bank transaction with an invoice
|
|
642
|
+
* @summary Link bank transaction
|
|
643
|
+
* @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
* @memberof BankTransactionApi
|
|
647
|
+
*/
|
|
648
|
+
public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
649
|
+
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* 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.
|
|
460
654
|
* @summary List bank transactions
|
|
461
655
|
* @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
|
|
462
656
|
* @param {*} [options] Override http request option.
|
|
@@ -464,6 +658,18 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
464
658
|
* @memberof BankTransactionApi
|
|
465
659
|
*/
|
|
466
660
|
public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
|
|
467
|
-
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.
|
|
661
|
+
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Unlinks an already linked bank transaction
|
|
666
|
+
* @summary Unlink bank transaction
|
|
667
|
+
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
* @memberof BankTransactionApi
|
|
671
|
+
*/
|
|
672
|
+
public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
673
|
+
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.unlinkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
468
674
|
}
|
|
469
675
|
}
|