@emilgroup/payment-sdk 1.13.1-beta.7 → 1.13.1-beta.8
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 +0 -3
- package/README.md +2 -2
- package/api/bank-transaction-api.ts +28 -131
- package/dist/api/bank-transaction-api.d.ts +28 -84
- package/dist/api/bank-transaction-api.js +22 -114
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +2 -8
- package/dist/models/bank-transaction-class.d.ts +2 -22
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +2 -8
- package/models/bank-transaction-class-without-expand-properties.ts +2 -8
- package/models/bank-transaction-class.ts +2 -22
- package/models/index.ts +0 -3
- package/models/unlinked-bank-transaction-response-class.ts +2 -8
- package/package.json +1 -1
- package/dist/models/generate-invoice-match-suggestions-response-class.d.ts +0 -25
- package/dist/models/generate-invoice-match-suggestions-response-class.js +0 -15
- package/dist/models/invoice-match-suggestion-class.d.ts +0 -60
- package/dist/models/invoice-match-suggestion-class.js +0 -15
- package/dist/models/suggestion-generation-progress-class.d.ts +0 -43
- package/dist/models/suggestion-generation-progress-class.js +0 -22
- package/models/generate-invoice-match-suggestions-response-class.ts +0 -31
- package/models/invoice-match-suggestion-class.ts +0 -66
- package/models/suggestion-generation-progress-class.ts +0 -52
package/.openapi-generator/FILES
CHANGED
|
@@ -45,7 +45,6 @@ models/create-tenant-bank-account-response-class.ts
|
|
|
45
45
|
models/deactivate-payment-reminder-request-dto.ts
|
|
46
46
|
models/deactivate-payment-reminder-response-class.ts
|
|
47
47
|
models/deactivated-payment-reminder-class.ts
|
|
48
|
-
models/generate-invoice-match-suggestions-response-class.ts
|
|
49
48
|
models/get-bank-account-response-class.ts
|
|
50
49
|
models/get-bank-transactions-response-class.ts
|
|
51
50
|
models/get-payment-method-response-class.ts
|
|
@@ -65,7 +64,6 @@ models/initiate-stripe-payment-setup-request-dto.ts
|
|
|
65
64
|
models/initiate-stripe-payment-setup-response-class.ts
|
|
66
65
|
models/inline-response200.ts
|
|
67
66
|
models/inline-response503.ts
|
|
68
|
-
models/invoice-match-suggestion-class.ts
|
|
69
67
|
models/link-bank-transaction-request-dto-rest.ts
|
|
70
68
|
models/link-bank-transactions-response-class.ts
|
|
71
69
|
models/list-bank-accounts-response-class.ts
|
|
@@ -85,7 +83,6 @@ models/refund-item-class.ts
|
|
|
85
83
|
models/sepa-direct-dto.ts
|
|
86
84
|
models/set-primary-bank-account-request-dto-rest.ts
|
|
87
85
|
models/shared-transaction-class.ts
|
|
88
|
-
models/suggestion-generation-progress-class.ts
|
|
89
86
|
models/symphony-profile-limited-response-dto.ts
|
|
90
87
|
models/tenant-bank-account-class-without-expand-properties.ts
|
|
91
88
|
models/tenant-bank-account-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk@1.13.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.13.1-beta.8 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.13.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.13.1-beta.8
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -21,8 +21,6 @@ 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
|
|
26
24
|
import { GetBankTransactionsResponseClass } from '../models';
|
|
27
25
|
// @ts-ignore
|
|
28
26
|
import { ImportBankTransactionsResponseClass } from '../models';
|
|
@@ -42,57 +40,12 @@ import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
|
42
40
|
*/
|
|
43
41
|
export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
42
|
return {
|
|
45
|
-
/**
|
|
46
|
-
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
47
|
-
* @summary Invoice Match Suggestion
|
|
48
|
-
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
49
|
-
* @param {string} [authorization] Bearer Token
|
|
50
|
-
* @param {*} [options] Override http request option.
|
|
51
|
-
* @throws {RequiredError}
|
|
52
|
-
*/
|
|
53
|
-
generateInvoiceMatchSuggestion: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
|
-
// verify required parameter 'code' is not null or undefined
|
|
55
|
-
assertParamExists('generateInvoiceMatchSuggestion', 'code', code)
|
|
56
|
-
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/generate-invoice-match-suggestion`
|
|
57
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
58
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
60
|
-
let baseOptions;
|
|
61
|
-
let baseAccessToken;
|
|
62
|
-
if (configuration) {
|
|
63
|
-
baseOptions = configuration.baseOptions;
|
|
64
|
-
baseAccessToken = configuration.accessToken;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
68
|
-
const localVarHeaderParameter = {} as any;
|
|
69
|
-
const localVarQueryParameter = {} as any;
|
|
70
|
-
|
|
71
|
-
// authentication bearer required
|
|
72
|
-
// http bearer authentication required
|
|
73
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
74
|
-
|
|
75
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
76
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
82
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
84
|
-
|
|
85
|
-
return {
|
|
86
|
-
url: toPathString(localVarUrlObj),
|
|
87
|
-
options: localVarRequestOptions,
|
|
88
|
-
};
|
|
89
|
-
},
|
|
90
43
|
/**
|
|
91
44
|
* 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\"
|
|
92
45
|
* @summary Retrieve the bank transaction
|
|
93
46
|
* @param {string} code
|
|
94
47
|
* @param {string} [authorization] Bearer Token
|
|
95
|
-
* @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
|
|
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>
|
|
96
49
|
* @param {*} [options] Override http request option.
|
|
97
50
|
* @throws {RequiredError}
|
|
98
51
|
*/
|
|
@@ -138,9 +91,9 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
138
91
|
};
|
|
139
92
|
},
|
|
140
93
|
/**
|
|
141
|
-
* This will import bank transactions from a MT940
|
|
94
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
142
95
|
* @summary Create the bank transactions
|
|
143
|
-
* @param {any} file MT940
|
|
96
|
+
* @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
|
|
144
97
|
* @param {string} [authorization] Bearer Token
|
|
145
98
|
* @param {*} [options] Override http request option.
|
|
146
99
|
* @throws {RequiredError}
|
|
@@ -244,11 +197,11 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
244
197
|
* 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\"
|
|
245
198
|
* @summary List bank transactions
|
|
246
199
|
* @param {string} [authorization] Bearer Token
|
|
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,
|
|
248
|
-
* @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,
|
|
200
|
+
* @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>
|
|
201
|
+
* @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>
|
|
249
202
|
* @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>
|
|
250
|
-
* @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>
|
|
251
|
-
* @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
|
|
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, amount, transactionDate, entryDate</i>
|
|
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>
|
|
252
205
|
* @param {*} [options] Override http request option.
|
|
253
206
|
* @throws {RequiredError}
|
|
254
207
|
*/
|
|
@@ -367,24 +320,12 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
367
320
|
export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
368
321
|
const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
|
|
369
322
|
return {
|
|
370
|
-
/**
|
|
371
|
-
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
372
|
-
* @summary Invoice Match Suggestion
|
|
373
|
-
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
374
|
-
* @param {string} [authorization] Bearer Token
|
|
375
|
-
* @param {*} [options] Override http request option.
|
|
376
|
-
* @throws {RequiredError}
|
|
377
|
-
*/
|
|
378
|
-
async generateInvoiceMatchSuggestion(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateInvoiceMatchSuggestionsResponseClass>> {
|
|
379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.generateInvoiceMatchSuggestion(code, authorization, options);
|
|
380
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
|
-
},
|
|
382
323
|
/**
|
|
383
324
|
* 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\"
|
|
384
325
|
* @summary Retrieve the bank transaction
|
|
385
326
|
* @param {string} code
|
|
386
327
|
* @param {string} [authorization] Bearer Token
|
|
387
|
-
* @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
|
|
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>
|
|
388
329
|
* @param {*} [options] Override http request option.
|
|
389
330
|
* @throws {RequiredError}
|
|
390
331
|
*/
|
|
@@ -393,9 +334,9 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
393
334
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
394
335
|
},
|
|
395
336
|
/**
|
|
396
|
-
* This will import bank transactions from a MT940
|
|
337
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
397
338
|
* @summary Create the bank transactions
|
|
398
|
-
* @param {any} file MT940
|
|
339
|
+
* @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
|
|
399
340
|
* @param {string} [authorization] Bearer Token
|
|
400
341
|
* @param {*} [options] Override http request option.
|
|
401
342
|
* @throws {RequiredError}
|
|
@@ -421,11 +362,11 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
421
362
|
* 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\"
|
|
422
363
|
* @summary List bank transactions
|
|
423
364
|
* @param {string} [authorization] Bearer Token
|
|
424
|
-
* @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,
|
|
425
|
-
* @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,
|
|
365
|
+
* @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>
|
|
366
|
+
* @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>
|
|
426
367
|
* @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>
|
|
427
|
-
* @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>
|
|
428
|
-
* @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
|
|
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, amount, transactionDate, entryDate</i>
|
|
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>
|
|
429
370
|
* @param {*} [options] Override http request option.
|
|
430
371
|
* @throws {RequiredError}
|
|
431
372
|
*/
|
|
@@ -456,23 +397,12 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
456
397
|
export const BankTransactionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
457
398
|
const localVarFp = BankTransactionApiFp(configuration)
|
|
458
399
|
return {
|
|
459
|
-
/**
|
|
460
|
-
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
461
|
-
* @summary Invoice Match Suggestion
|
|
462
|
-
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
463
|
-
* @param {string} [authorization] Bearer Token
|
|
464
|
-
* @param {*} [options] Override http request option.
|
|
465
|
-
* @throws {RequiredError}
|
|
466
|
-
*/
|
|
467
|
-
generateInvoiceMatchSuggestion(code: string, authorization?: string, options?: any): AxiosPromise<GenerateInvoiceMatchSuggestionsResponseClass> {
|
|
468
|
-
return localVarFp.generateInvoiceMatchSuggestion(code, authorization, options).then((request) => request(axios, basePath));
|
|
469
|
-
},
|
|
470
400
|
/**
|
|
471
401
|
* 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\"
|
|
472
402
|
* @summary Retrieve the bank transaction
|
|
473
403
|
* @param {string} code
|
|
474
404
|
* @param {string} [authorization] Bearer Token
|
|
475
|
-
* @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
|
|
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>
|
|
476
406
|
* @param {*} [options] Override http request option.
|
|
477
407
|
* @throws {RequiredError}
|
|
478
408
|
*/
|
|
@@ -480,9 +410,9 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
480
410
|
return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
481
411
|
},
|
|
482
412
|
/**
|
|
483
|
-
* This will import bank transactions from a MT940
|
|
413
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
484
414
|
* @summary Create the bank transactions
|
|
485
|
-
* @param {any} file MT940
|
|
415
|
+
* @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
|
|
486
416
|
* @param {string} [authorization] Bearer Token
|
|
487
417
|
* @param {*} [options] Override http request option.
|
|
488
418
|
* @throws {RequiredError}
|
|
@@ -506,11 +436,11 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
506
436
|
* 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\"
|
|
507
437
|
* @summary List bank transactions
|
|
508
438
|
* @param {string} [authorization] Bearer Token
|
|
509
|
-
* @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,
|
|
510
|
-
* @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,
|
|
439
|
+
* @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>
|
|
440
|
+
* @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>
|
|
511
441
|
* @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>
|
|
512
|
-
* @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>
|
|
513
|
-
* @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
|
|
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, amount, transactionDate, entryDate</i>
|
|
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>
|
|
514
444
|
* @param {*} [options] Override http request option.
|
|
515
445
|
* @throws {RequiredError}
|
|
516
446
|
*/
|
|
@@ -532,27 +462,6 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
532
462
|
};
|
|
533
463
|
};
|
|
534
464
|
|
|
535
|
-
/**
|
|
536
|
-
* Request parameters for generateInvoiceMatchSuggestion operation in BankTransactionApi.
|
|
537
|
-
* @export
|
|
538
|
-
* @interface BankTransactionApiGenerateInvoiceMatchSuggestionRequest
|
|
539
|
-
*/
|
|
540
|
-
export interface BankTransactionApiGenerateInvoiceMatchSuggestionRequest {
|
|
541
|
-
/**
|
|
542
|
-
* Code of the bank transaction to generate match suggestions for
|
|
543
|
-
* @type {string}
|
|
544
|
-
* @memberof BankTransactionApiGenerateInvoiceMatchSuggestion
|
|
545
|
-
*/
|
|
546
|
-
readonly code: string
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* Bearer Token
|
|
550
|
-
* @type {string}
|
|
551
|
-
* @memberof BankTransactionApiGenerateInvoiceMatchSuggestion
|
|
552
|
-
*/
|
|
553
|
-
readonly authorization?: string
|
|
554
|
-
}
|
|
555
|
-
|
|
556
465
|
/**
|
|
557
466
|
* Request parameters for getBankTransaction operation in BankTransactionApi.
|
|
558
467
|
* @export
|
|
@@ -574,7 +483,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
574
483
|
readonly authorization?: string
|
|
575
484
|
|
|
576
485
|
/**
|
|
577
|
-
* 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
|
|
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>
|
|
578
487
|
* @type {string}
|
|
579
488
|
* @memberof BankTransactionApiGetBankTransaction
|
|
580
489
|
*/
|
|
@@ -588,7 +497,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
588
497
|
*/
|
|
589
498
|
export interface BankTransactionApiImportBankTransactionsRequest {
|
|
590
499
|
/**
|
|
591
|
-
* MT940
|
|
500
|
+
* Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
592
501
|
* @type {any}
|
|
593
502
|
* @memberof BankTransactionApiImportBankTransactions
|
|
594
503
|
*/
|
|
@@ -644,14 +553,14 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
644
553
|
readonly authorization?: string
|
|
645
554
|
|
|
646
555
|
/**
|
|
647
|
-
* 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,
|
|
556
|
+
* 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>
|
|
648
557
|
* @type {string}
|
|
649
558
|
* @memberof BankTransactionApiListBankTransactions
|
|
650
559
|
*/
|
|
651
560
|
readonly filter?: string
|
|
652
561
|
|
|
653
562
|
/**
|
|
654
|
-
* 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,
|
|
563
|
+
* 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>
|
|
655
564
|
* @type {string}
|
|
656
565
|
* @memberof BankTransactionApiListBankTransactions
|
|
657
566
|
*/
|
|
@@ -665,14 +574,14 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
665
574
|
readonly search?: string
|
|
666
575
|
|
|
667
576
|
/**
|
|
668
|
-
* 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>
|
|
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, amount, transactionDate, entryDate</i>
|
|
669
578
|
* @type {string}
|
|
670
579
|
* @memberof BankTransactionApiListBankTransactions
|
|
671
580
|
*/
|
|
672
581
|
readonly order?: string
|
|
673
582
|
|
|
674
583
|
/**
|
|
675
|
-
* 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
|
|
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>
|
|
676
585
|
* @type {string}
|
|
677
586
|
* @memberof BankTransactionApiListBankTransactions
|
|
678
587
|
*/
|
|
@@ -714,18 +623,6 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
714
623
|
* @extends {BaseAPI}
|
|
715
624
|
*/
|
|
716
625
|
export class BankTransactionApi extends BaseAPI {
|
|
717
|
-
/**
|
|
718
|
-
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
719
|
-
* @summary Invoice Match Suggestion
|
|
720
|
-
* @param {BankTransactionApiGenerateInvoiceMatchSuggestionRequest} requestParameters Request parameters.
|
|
721
|
-
* @param {*} [options] Override http request option.
|
|
722
|
-
* @throws {RequiredError}
|
|
723
|
-
* @memberof BankTransactionApi
|
|
724
|
-
*/
|
|
725
|
-
public generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig) {
|
|
726
|
-
return BankTransactionApiFp(this.configuration).generateInvoiceMatchSuggestion(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
727
|
-
}
|
|
728
|
-
|
|
729
626
|
/**
|
|
730
627
|
* 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\"
|
|
731
628
|
* @summary Retrieve the bank transaction
|
|
@@ -739,7 +636,7 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
739
636
|
}
|
|
740
637
|
|
|
741
638
|
/**
|
|
742
|
-
* This will import bank transactions from a MT940
|
|
639
|
+
* This will import bank transactions from a swift MT940 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
743
640
|
* @summary Create the bank transactions
|
|
744
641
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
745
642
|
* @param {*} [options] Override http request option.
|