@emilgroup/payment-sdk 1.13.1-beta.8 → 1.13.1-beta.81
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 +20 -1
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +55 -13
- package/api/bank-orders-api.ts +691 -0
- package/api/bank-transaction-api.ts +177 -63
- package/api/payment-methods-api.ts +59 -17
- package/api/payment-reminders-api.ts +55 -13
- package/api/payments-api.ts +188 -21
- package/api/refunds-api.ts +45 -17
- package/api/tenant-bank-account-api.ts +45 -17
- package/api.ts +2 -0
- package/base.ts +52 -3
- package/dist/api/bank-accounts-api.d.ts +35 -8
- package/dist/api/bank-accounts-api.js +29 -11
- package/dist/api/bank-orders-api.d.ts +393 -0
- package/dist/api/bank-orders-api.js +642 -0
- package/dist/api/bank-transaction-api.d.ts +110 -46
- package/dist/api/bank-transaction-api.js +141 -44
- package/dist/api/payment-methods-api.d.ts +39 -12
- package/dist/api/payment-methods-api.js +32 -14
- package/dist/api/payment-reminders-api.d.ts +35 -8
- package/dist/api/payment-reminders-api.js +29 -11
- package/dist/api/payments-api.d.ts +112 -16
- package/dist/api/payments-api.js +141 -18
- package/dist/api/refunds-api.d.ts +28 -10
- package/dist/api/refunds-api.js +24 -12
- package/dist/api/tenant-bank-account-api.d.ts +28 -10
- package/dist/api/tenant-bank-account-api.js +24 -12
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +10 -1
- package/dist/base.js +46 -2
- package/dist/models/bank-order-class.d.ts +115 -0
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +30 -11
- package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
- package/dist/models/bank-transaction-class.d.ts +47 -14
- package/dist/models/bank-transaction-class.js +5 -0
- package/dist/models/bank-transaction-invoice-class.d.ts +54 -0
- package/dist/models/bank-transaction-invoice-class.js +15 -0
- package/dist/models/bank-transfer-dto.d.ts +25 -0
- package/dist/models/bank-transfer-dto.js +15 -0
- package/dist/models/billing-address-dto.d.ts +48 -0
- package/dist/models/billing-address-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
- package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
- package/dist/models/create-bank-order-request-dto.d.ts +74 -0
- package/dist/models/create-bank-order-request-dto.js +28 -0
- package/dist/models/create-bank-order-response-class.d.ts +25 -0
- package/dist/models/create-bank-order-response-class.js +15 -0
- package/dist/models/create-payment-order-dto.d.ts +48 -0
- package/dist/models/create-payment-order-dto.js +15 -0
- package/dist/models/create-payment-order-request-dto.d.ts +48 -0
- package/dist/models/create-payment-order-request-dto.js +15 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-psp-payment-method-request-dto.d.ts +22 -1
- package/dist/models/create-psp-payment-method-request-dto.js +3 -1
- package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
- package/dist/models/financial-account-class.d.ts +111 -0
- package/dist/models/financial-account-class.js +24 -0
- package/dist/models/generate-invoice-match-suggestions-response-class.d.ts +25 -0
- package/dist/models/generate-invoice-match-suggestions-response-class.js +15 -0
- package/dist/models/get-bank-order-response-class.d.ts +25 -0
- package/dist/models/get-bank-order-response-class.js +15 -0
- package/dist/models/index.d.ts +19 -1
- package/dist/models/index.js +19 -1
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
- package/dist/models/invoice-allocation-dto.js +15 -0
- package/dist/models/invoice-match-suggestion-class.d.ts +60 -0
- package/dist/models/invoice-match-suggestion-class.js +15 -0
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
- package/dist/models/list-bank-orders-response-class.d.ts +31 -0
- package/dist/models/list-bank-orders-response-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
- package/dist/models/payment-class.d.ts +7 -1
- package/dist/models/payment-method-class.d.ts +6 -0
- package/dist/models/payment-reminder-class.d.ts +7 -1
- package/dist/models/refund-class.d.ts +7 -1
- package/dist/models/suggestion-generation-progress-class.d.ts +43 -0
- package/dist/models/suggestion-generation-progress-class.js +22 -0
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +33 -2
- package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
- package/dist/models/update-bank-order-request-dto.d.ts +62 -0
- package/dist/models/update-bank-order-request-dto.js +23 -0
- package/dist/models/update-bank-order-response-class.d.ts +25 -0
- package/dist/models/update-bank-order-response-class.js +15 -0
- package/models/bank-order-class.ts +121 -0
- package/models/bank-transaction-class-without-expand-properties.ts +33 -11
- package/models/bank-transaction-class.ts +50 -14
- package/models/bank-transaction-invoice-class.ts +60 -0
- package/models/bank-transfer-dto.ts +31 -0
- package/models/billing-address-dto.ts +54 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
- package/models/complete-eis-payment-setup-request-dto.ts +42 -0
- package/models/complete-payment-setup-request-dto.ts +7 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
- package/models/create-bank-order-request-dto.ts +84 -0
- package/models/create-bank-order-response-class.ts +31 -0
- package/models/create-payment-order-dto.ts +54 -0
- package/models/create-payment-order-request-dto.ts +54 -0
- package/models/create-payment-reminder-request-dto.ts +7 -1
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-psp-payment-method-request-dto.ts +23 -2
- package/models/deactivated-payment-reminder-class.ts +7 -1
- package/models/financial-account-class.ts +120 -0
- package/models/generate-invoice-match-suggestions-response-class.ts +31 -0
- package/models/get-bank-order-response-class.ts +31 -0
- package/models/index.ts +19 -1
- package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
- package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
- package/models/initiate-payment-setup-request-dto.ts +3 -2
- package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
- package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
- package/models/invoice-match-suggestion-class.ts +66 -0
- package/models/link-bank-transaction-request-dto-rest.ts +4 -3
- package/models/list-bank-orders-response-class.ts +37 -0
- package/models/payment-class-without-expand-properties.ts +7 -1
- package/models/payment-class.ts +7 -1
- package/models/payment-method-class.ts +6 -0
- package/models/payment-reminder-class.ts +7 -1
- package/models/refund-class.ts +7 -1
- package/models/suggestion-generation-progress-class.ts +52 -0
- package/models/unlinked-bank-transaction-response-class.ts +36 -2
- package/models/update-bank-order-request-dto.ts +71 -0
- package/models/update-bank-order-response-class.ts +31 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -0
- /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → bank-order-class.js} +0 -0
|
@@ -21,6 +21,8 @@ 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 { GenerateInvoiceMatchSuggestionsResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { GetBankTransactionsResponseClass } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { ImportBankTransactionsResponseClass } from '../models';
|
|
@@ -31,8 +33,6 @@ import { LinkBankTransactionsResponseClass } from '../models';
|
|
|
31
33
|
// @ts-ignore
|
|
32
34
|
import { ListBankTransactionsResponseClass } from '../models';
|
|
33
35
|
// @ts-ignore
|
|
34
|
-
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
36
|
import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
37
37
|
/**
|
|
38
38
|
* BankTransactionApi - axios parameter creator
|
|
@@ -40,12 +40,57 @@ import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
|
40
40
|
*/
|
|
41
41
|
export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
42
|
return {
|
|
43
|
+
/**
|
|
44
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
45
|
+
* @summary Invoice Match Suggestion
|
|
46
|
+
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
47
|
+
* @param {string} [authorization] Bearer Token
|
|
48
|
+
* @param {*} [options] Override http request option.
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
*/
|
|
51
|
+
generateInvoiceMatchSuggestion: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
52
|
+
// verify required parameter 'code' is not null or undefined
|
|
53
|
+
assertParamExists('generateInvoiceMatchSuggestion', 'code', code)
|
|
54
|
+
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/generate-invoice-match-suggestion`
|
|
55
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
56
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58
|
+
let baseOptions;
|
|
59
|
+
let baseAccessToken;
|
|
60
|
+
if (configuration) {
|
|
61
|
+
baseOptions = configuration.baseOptions;
|
|
62
|
+
baseAccessToken = configuration.accessToken;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
66
|
+
const localVarHeaderParameter = {} as any;
|
|
67
|
+
const localVarQueryParameter = {} as any;
|
|
68
|
+
|
|
69
|
+
// authentication bearer required
|
|
70
|
+
// http bearer authentication required
|
|
71
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
72
|
+
|
|
73
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
74
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
80
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
81
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
url: toPathString(localVarUrlObj),
|
|
85
|
+
options: localVarRequestOptions,
|
|
86
|
+
};
|
|
87
|
+
},
|
|
43
88
|
/**
|
|
44
89
|
* 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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
45
90
|
* @summary Retrieve the bank transaction
|
|
46
91
|
* @param {string} code
|
|
47
92
|
* @param {string} [authorization] Bearer Token
|
|
48
|
-
* @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>
|
|
93
|
+
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
49
94
|
* @param {*} [options] Override http request option.
|
|
50
95
|
* @throws {RequiredError}
|
|
51
96
|
*/
|
|
@@ -91,9 +136,9 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
91
136
|
};
|
|
92
137
|
},
|
|
93
138
|
/**
|
|
94
|
-
* This will import bank transactions from a
|
|
139
|
+
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
95
140
|
* @summary Create the bank transactions
|
|
96
|
-
* @param {any} file
|
|
141
|
+
* @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
|
|
97
142
|
* @param {string} [authorization] Bearer Token
|
|
98
143
|
* @param {*} [options] Override http request option.
|
|
99
144
|
* @throws {RequiredError}
|
|
@@ -197,15 +242,17 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
197
242
|
* 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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
198
243
|
* @summary List bank transactions
|
|
199
244
|
* @param {string} [authorization] Bearer Token
|
|
200
|
-
* @param {
|
|
201
|
-
* @param {string} [
|
|
245
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
246
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
247
|
+
* @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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
202
248
|
* @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>
|
|
203
|
-
* @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,
|
|
204
|
-
* @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>
|
|
249
|
+
* @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, transactionDate, entryDate</i>
|
|
250
|
+
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
251
|
+
* @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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
205
252
|
* @param {*} [options] Override http request option.
|
|
206
253
|
* @throws {RequiredError}
|
|
207
254
|
*/
|
|
208
|
-
listBankTransactions: async (authorization?: string,
|
|
255
|
+
listBankTransactions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
209
256
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions`;
|
|
210
257
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
211
258
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -224,12 +271,16 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
224
271
|
// http bearer authentication required
|
|
225
272
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
226
273
|
|
|
227
|
-
if (
|
|
228
|
-
localVarQueryParameter['
|
|
274
|
+
if (pageSize !== undefined) {
|
|
275
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
229
276
|
}
|
|
230
277
|
|
|
231
|
-
if (
|
|
232
|
-
localVarQueryParameter['
|
|
278
|
+
if (pageToken !== undefined) {
|
|
279
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
if (filter !== undefined) {
|
|
283
|
+
localVarQueryParameter['filter'] = filter;
|
|
233
284
|
}
|
|
234
285
|
|
|
235
286
|
if (search !== undefined) {
|
|
@@ -244,6 +295,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
244
295
|
localVarQueryParameter['expand'] = expand;
|
|
245
296
|
}
|
|
246
297
|
|
|
298
|
+
if (filters !== undefined) {
|
|
299
|
+
localVarQueryParameter['filters'] = filters;
|
|
300
|
+
}
|
|
301
|
+
|
|
247
302
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
248
303
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
249
304
|
}
|
|
@@ -263,16 +318,13 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
263
318
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
264
319
|
* @summary Unlink bank transaction
|
|
265
320
|
* @param {string} code Code of the bank transaction to unlink
|
|
266
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
267
321
|
* @param {string} [authorization] Bearer Token
|
|
268
322
|
* @param {*} [options] Override http request option.
|
|
269
323
|
* @throws {RequiredError}
|
|
270
324
|
*/
|
|
271
|
-
unlinkBankTransaction: async (code: string,
|
|
325
|
+
unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
272
326
|
// verify required parameter 'code' is not null or undefined
|
|
273
327
|
assertParamExists('unlinkBankTransaction', 'code', code)
|
|
274
|
-
// verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
|
|
275
|
-
assertParamExists('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest)
|
|
276
328
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
|
|
277
329
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
278
330
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -298,12 +350,9 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
298
350
|
|
|
299
351
|
|
|
300
352
|
|
|
301
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
302
|
-
|
|
303
353
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
304
354
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
305
355
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
306
|
-
localVarRequestOptions.data = serializeDataIfNeeded(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
|
|
307
356
|
|
|
308
357
|
return {
|
|
309
358
|
url: toPathString(localVarUrlObj),
|
|
@@ -320,12 +369,24 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
320
369
|
export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
321
370
|
const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
|
|
322
371
|
return {
|
|
372
|
+
/**
|
|
373
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
374
|
+
* @summary Invoice Match Suggestion
|
|
375
|
+
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
376
|
+
* @param {string} [authorization] Bearer Token
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
async generateInvoiceMatchSuggestion(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateInvoiceMatchSuggestionsResponseClass>> {
|
|
381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateInvoiceMatchSuggestion(code, authorization, options);
|
|
382
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
383
|
+
},
|
|
323
384
|
/**
|
|
324
385
|
* 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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
325
386
|
* @summary Retrieve the bank transaction
|
|
326
387
|
* @param {string} code
|
|
327
388
|
* @param {string} [authorization] Bearer Token
|
|
328
|
-
* @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>
|
|
389
|
+
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
329
390
|
* @param {*} [options] Override http request option.
|
|
330
391
|
* @throws {RequiredError}
|
|
331
392
|
*/
|
|
@@ -334,9 +395,9 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
334
395
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
335
396
|
},
|
|
336
397
|
/**
|
|
337
|
-
* This will import bank transactions from a
|
|
398
|
+
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
338
399
|
* @summary Create the bank transactions
|
|
339
|
-
* @param {any} file
|
|
400
|
+
* @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
|
|
340
401
|
* @param {string} [authorization] Bearer Token
|
|
341
402
|
* @param {*} [options] Override http request option.
|
|
342
403
|
* @throws {RequiredError}
|
|
@@ -362,29 +423,30 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
362
423
|
* 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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
363
424
|
* @summary List bank transactions
|
|
364
425
|
* @param {string} [authorization] Bearer Token
|
|
365
|
-
* @param {
|
|
366
|
-
* @param {string} [
|
|
426
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
427
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
428
|
+
* @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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
367
429
|
* @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>
|
|
368
|
-
* @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,
|
|
369
|
-
* @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>
|
|
430
|
+
* @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, transactionDate, entryDate</i>
|
|
431
|
+
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
432
|
+
* @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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
370
433
|
* @param {*} [options] Override http request option.
|
|
371
434
|
* @throws {RequiredError}
|
|
372
435
|
*/
|
|
373
|
-
async listBankTransactions(authorization?: string,
|
|
374
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization,
|
|
436
|
+
async listBankTransactions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
|
|
437
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
375
438
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
376
439
|
},
|
|
377
440
|
/**
|
|
378
441
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
379
442
|
* @summary Unlink bank transaction
|
|
380
443
|
* @param {string} code Code of the bank transaction to unlink
|
|
381
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
382
444
|
* @param {string} [authorization] Bearer Token
|
|
383
445
|
* @param {*} [options] Override http request option.
|
|
384
446
|
* @throws {RequiredError}
|
|
385
447
|
*/
|
|
386
|
-
async unlinkBankTransaction(code: string,
|
|
387
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code,
|
|
448
|
+
async unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlinkBankTransactionsResponseClass>> {
|
|
449
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options);
|
|
388
450
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
389
451
|
},
|
|
390
452
|
}
|
|
@@ -397,12 +459,23 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
397
459
|
export const BankTransactionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
398
460
|
const localVarFp = BankTransactionApiFp(configuration)
|
|
399
461
|
return {
|
|
462
|
+
/**
|
|
463
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
464
|
+
* @summary Invoice Match Suggestion
|
|
465
|
+
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
466
|
+
* @param {string} [authorization] Bearer Token
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
generateInvoiceMatchSuggestion(code: string, authorization?: string, options?: any): AxiosPromise<GenerateInvoiceMatchSuggestionsResponseClass> {
|
|
471
|
+
return localVarFp.generateInvoiceMatchSuggestion(code, authorization, options).then((request) => request(axios, basePath));
|
|
472
|
+
},
|
|
400
473
|
/**
|
|
401
474
|
* 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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
402
475
|
* @summary Retrieve the bank transaction
|
|
403
476
|
* @param {string} code
|
|
404
477
|
* @param {string} [authorization] Bearer Token
|
|
405
|
-
* @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>
|
|
478
|
+
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
406
479
|
* @param {*} [options] Override http request option.
|
|
407
480
|
* @throws {RequiredError}
|
|
408
481
|
*/
|
|
@@ -410,9 +483,9 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
410
483
|
return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
411
484
|
},
|
|
412
485
|
/**
|
|
413
|
-
* This will import bank transactions from a
|
|
486
|
+
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
414
487
|
* @summary Create the bank transactions
|
|
415
|
-
* @param {any} file
|
|
488
|
+
* @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
|
|
416
489
|
* @param {string} [authorization] Bearer Token
|
|
417
490
|
* @param {*} [options] Override http request option.
|
|
418
491
|
* @throws {RequiredError}
|
|
@@ -436,32 +509,54 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
436
509
|
* 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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
437
510
|
* @summary List bank transactions
|
|
438
511
|
* @param {string} [authorization] Bearer Token
|
|
439
|
-
* @param {
|
|
440
|
-
* @param {string} [
|
|
512
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
513
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
514
|
+
* @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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
441
515
|
* @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>
|
|
442
|
-
* @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,
|
|
443
|
-
* @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>
|
|
516
|
+
* @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, transactionDate, entryDate</i>
|
|
517
|
+
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
518
|
+
* @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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
444
519
|
* @param {*} [options] Override http request option.
|
|
445
520
|
* @throws {RequiredError}
|
|
446
521
|
*/
|
|
447
|
-
listBankTransactions(authorization?: string,
|
|
448
|
-
return localVarFp.listBankTransactions(authorization,
|
|
522
|
+
listBankTransactions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
|
|
523
|
+
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
449
524
|
},
|
|
450
525
|
/**
|
|
451
526
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
452
527
|
* @summary Unlink bank transaction
|
|
453
528
|
* @param {string} code Code of the bank transaction to unlink
|
|
454
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
455
529
|
* @param {string} [authorization] Bearer Token
|
|
456
530
|
* @param {*} [options] Override http request option.
|
|
457
531
|
* @throws {RequiredError}
|
|
458
532
|
*/
|
|
459
|
-
unlinkBankTransaction(code: string,
|
|
460
|
-
return localVarFp.unlinkBankTransaction(code,
|
|
533
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<UnlinkBankTransactionsResponseClass> {
|
|
534
|
+
return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
461
535
|
},
|
|
462
536
|
};
|
|
463
537
|
};
|
|
464
538
|
|
|
539
|
+
/**
|
|
540
|
+
* Request parameters for generateInvoiceMatchSuggestion operation in BankTransactionApi.
|
|
541
|
+
* @export
|
|
542
|
+
* @interface BankTransactionApiGenerateInvoiceMatchSuggestionRequest
|
|
543
|
+
*/
|
|
544
|
+
export interface BankTransactionApiGenerateInvoiceMatchSuggestionRequest {
|
|
545
|
+
/**
|
|
546
|
+
* Code of the bank transaction to generate match suggestions for
|
|
547
|
+
* @type {string}
|
|
548
|
+
* @memberof BankTransactionApiGenerateInvoiceMatchSuggestion
|
|
549
|
+
*/
|
|
550
|
+
readonly code: string
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Bearer Token
|
|
554
|
+
* @type {string}
|
|
555
|
+
* @memberof BankTransactionApiGenerateInvoiceMatchSuggestion
|
|
556
|
+
*/
|
|
557
|
+
readonly authorization?: string
|
|
558
|
+
}
|
|
559
|
+
|
|
465
560
|
/**
|
|
466
561
|
* Request parameters for getBankTransaction operation in BankTransactionApi.
|
|
467
562
|
* @export
|
|
@@ -483,7 +578,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
483
578
|
readonly authorization?: string
|
|
484
579
|
|
|
485
580
|
/**
|
|
486
|
-
* 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>
|
|
581
|
+
* 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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
487
582
|
* @type {string}
|
|
488
583
|
* @memberof BankTransactionApiGetBankTransaction
|
|
489
584
|
*/
|
|
@@ -497,7 +592,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
497
592
|
*/
|
|
498
593
|
export interface BankTransactionApiImportBankTransactionsRequest {
|
|
499
594
|
/**
|
|
500
|
-
*
|
|
595
|
+
* MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
|
|
501
596
|
* @type {any}
|
|
502
597
|
* @memberof BankTransactionApiImportBankTransactions
|
|
503
598
|
*/
|
|
@@ -553,18 +648,25 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
553
648
|
readonly authorization?: string
|
|
554
649
|
|
|
555
650
|
/**
|
|
556
|
-
*
|
|
651
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
652
|
+
* @type {number}
|
|
653
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
654
|
+
*/
|
|
655
|
+
readonly pageSize?: number
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* 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.
|
|
557
659
|
* @type {string}
|
|
558
660
|
* @memberof BankTransactionApiListBankTransactions
|
|
559
661
|
*/
|
|
560
|
-
readonly
|
|
662
|
+
readonly pageToken?: string
|
|
561
663
|
|
|
562
664
|
/**
|
|
563
|
-
*
|
|
665
|
+
* 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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
564
666
|
* @type {string}
|
|
565
667
|
* @memberof BankTransactionApiListBankTransactions
|
|
566
668
|
*/
|
|
567
|
-
readonly
|
|
669
|
+
readonly filter?: string
|
|
568
670
|
|
|
569
671
|
/**
|
|
570
672
|
* 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>
|
|
@@ -574,18 +676,25 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
574
676
|
readonly search?: string
|
|
575
677
|
|
|
576
678
|
/**
|
|
577
|
-
* 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,
|
|
679
|
+
* 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, transactionDate, entryDate</i>
|
|
578
680
|
* @type {string}
|
|
579
681
|
* @memberof BankTransactionApiListBankTransactions
|
|
580
682
|
*/
|
|
581
683
|
readonly order?: string
|
|
582
684
|
|
|
583
685
|
/**
|
|
584
|
-
* 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>
|
|
686
|
+
* 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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
585
687
|
* @type {string}
|
|
586
688
|
* @memberof BankTransactionApiListBankTransactions
|
|
587
689
|
*/
|
|
588
690
|
readonly expand?: string
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* 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, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
694
|
+
* @type {string}
|
|
695
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
696
|
+
*/
|
|
697
|
+
readonly filters?: string
|
|
589
698
|
}
|
|
590
699
|
|
|
591
700
|
/**
|
|
@@ -601,13 +710,6 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
601
710
|
*/
|
|
602
711
|
readonly code: string
|
|
603
712
|
|
|
604
|
-
/**
|
|
605
|
-
*
|
|
606
|
-
* @type {UnlinkBankTransactionRequestDtoRest}
|
|
607
|
-
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
608
|
-
*/
|
|
609
|
-
readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest
|
|
610
|
-
|
|
611
713
|
/**
|
|
612
714
|
* Bearer Token
|
|
613
715
|
* @type {string}
|
|
@@ -623,6 +725,18 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
623
725
|
* @extends {BaseAPI}
|
|
624
726
|
*/
|
|
625
727
|
export class BankTransactionApi extends BaseAPI {
|
|
728
|
+
/**
|
|
729
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
730
|
+
* @summary Invoice Match Suggestion
|
|
731
|
+
* @param {BankTransactionApiGenerateInvoiceMatchSuggestionRequest} requestParameters Request parameters.
|
|
732
|
+
* @param {*} [options] Override http request option.
|
|
733
|
+
* @throws {RequiredError}
|
|
734
|
+
* @memberof BankTransactionApi
|
|
735
|
+
*/
|
|
736
|
+
public generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig) {
|
|
737
|
+
return BankTransactionApiFp(this.configuration).generateInvoiceMatchSuggestion(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
738
|
+
}
|
|
739
|
+
|
|
626
740
|
/**
|
|
627
741
|
* 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. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
628
742
|
* @summary Retrieve the bank transaction
|
|
@@ -636,7 +750,7 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
636
750
|
}
|
|
637
751
|
|
|
638
752
|
/**
|
|
639
|
-
* This will import bank transactions from a
|
|
753
|
+
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
640
754
|
* @summary Create the bank transactions
|
|
641
755
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
642
756
|
* @param {*} [options] Override http request option.
|
|
@@ -668,7 +782,7 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
668
782
|
* @memberof BankTransactionApi
|
|
669
783
|
*/
|
|
670
784
|
public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
|
|
671
|
-
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.
|
|
785
|
+
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
672
786
|
}
|
|
673
787
|
|
|
674
788
|
/**
|
|
@@ -680,6 +794,6 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
680
794
|
* @memberof BankTransactionApi
|
|
681
795
|
*/
|
|
682
796
|
public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
683
|
-
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.
|
|
797
|
+
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
684
798
|
}
|
|
685
799
|
}
|