@emilgroup/payment-sdk 1.13.1-beta.4 → 1.13.1-beta.5
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 +3 -0
- package/README.md +2 -2
- package/api/bank-transaction-api.ts +111 -8
- package/dist/api/bank-transaction-api.d.ts +64 -8
- package/dist/api/bank-transaction-api.js +98 -6
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +14 -0
- package/dist/models/bank-transaction-class.d.ts +14 -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/index.d.ts +3 -0
- package/dist/models/index.js +3 -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/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 +14 -0
- package/models/bank-transaction-class-without-expand-properties.ts +14 -0
- package/models/bank-transaction-class.ts +14 -0
- package/models/generate-invoice-match-suggestions-response-class.ts +31 -0
- package/models/index.ts +3 -0
- package/models/invoice-match-suggestion-class.ts +66 -0
- package/models/suggestion-generation-progress-class.ts +52 -0
- package/models/unlinked-bank-transaction-response-class.ts +14 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -45,6 +45,7 @@ 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
|
|
48
49
|
models/get-bank-account-response-class.ts
|
|
49
50
|
models/get-bank-transactions-response-class.ts
|
|
50
51
|
models/get-payment-method-response-class.ts
|
|
@@ -64,6 +65,7 @@ models/initiate-stripe-payment-setup-request-dto.ts
|
|
|
64
65
|
models/initiate-stripe-payment-setup-response-class.ts
|
|
65
66
|
models/inline-response200.ts
|
|
66
67
|
models/inline-response503.ts
|
|
68
|
+
models/invoice-match-suggestion-class.ts
|
|
67
69
|
models/link-bank-transaction-request-dto-rest.ts
|
|
68
70
|
models/link-bank-transactions-response-class.ts
|
|
69
71
|
models/list-bank-accounts-response-class.ts
|
|
@@ -83,6 +85,7 @@ models/refund-item-class.ts
|
|
|
83
85
|
models/sepa-direct-dto.ts
|
|
84
86
|
models/set-primary-bank-account-request-dto-rest.ts
|
|
85
87
|
models/shared-transaction-class.ts
|
|
88
|
+
models/suggestion-generation-progress-class.ts
|
|
86
89
|
models/symphony-profile-limited-response-dto.ts
|
|
87
90
|
models/tenant-bank-account-class-without-expand-properties.ts
|
|
88
91
|
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.5 --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.5
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
|
@@ -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';
|
|
@@ -40,12 +42,57 @@ import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
|
40
42
|
*/
|
|
41
43
|
export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
44
|
return {
|
|
45
|
+
/**
|
|
46
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
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
|
+
},
|
|
43
90
|
/**
|
|
44
91
|
* 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
92
|
* @summary Retrieve the bank transaction
|
|
46
93
|
* @param {string} code
|
|
47
94
|
* @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>
|
|
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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
|
|
49
96
|
* @param {*} [options] Override http request option.
|
|
50
97
|
* @throws {RequiredError}
|
|
51
98
|
*/
|
|
@@ -201,7 +248,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
201
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, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
202
249
|
* @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
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, 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>
|
|
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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
|
|
205
252
|
* @param {*} [options] Override http request option.
|
|
206
253
|
* @throws {RequiredError}
|
|
207
254
|
*/
|
|
@@ -320,12 +367,24 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
320
367
|
export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
321
368
|
const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
|
|
322
369
|
return {
|
|
370
|
+
/**
|
|
371
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
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
|
+
},
|
|
323
382
|
/**
|
|
324
383
|
* 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
384
|
* @summary Retrieve the bank transaction
|
|
326
385
|
* @param {string} code
|
|
327
386
|
* @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>
|
|
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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
|
|
329
388
|
* @param {*} [options] Override http request option.
|
|
330
389
|
* @throws {RequiredError}
|
|
331
390
|
*/
|
|
@@ -366,7 +425,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
366
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, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
367
426
|
* @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
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, 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>
|
|
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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
|
|
370
429
|
* @param {*} [options] Override http request option.
|
|
371
430
|
* @throws {RequiredError}
|
|
372
431
|
*/
|
|
@@ -397,12 +456,23 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
397
456
|
export const BankTransactionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
398
457
|
const localVarFp = BankTransactionApiFp(configuration)
|
|
399
458
|
return {
|
|
459
|
+
/**
|
|
460
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
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
|
+
},
|
|
400
470
|
/**
|
|
401
471
|
* 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
472
|
* @summary Retrieve the bank transaction
|
|
403
473
|
* @param {string} code
|
|
404
474
|
* @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>
|
|
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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
|
|
406
476
|
* @param {*} [options] Override http request option.
|
|
407
477
|
* @throws {RequiredError}
|
|
408
478
|
*/
|
|
@@ -440,7 +510,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
440
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, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
441
511
|
* @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
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, 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>
|
|
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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
|
|
444
514
|
* @param {*} [options] Override http request option.
|
|
445
515
|
* @throws {RequiredError}
|
|
446
516
|
*/
|
|
@@ -462,6 +532,27 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
462
532
|
};
|
|
463
533
|
};
|
|
464
534
|
|
|
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
|
+
|
|
465
556
|
/**
|
|
466
557
|
* Request parameters for getBankTransaction operation in BankTransactionApi.
|
|
467
558
|
* @export
|
|
@@ -483,7 +574,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
483
574
|
readonly authorization?: string
|
|
484
575
|
|
|
485
576
|
/**
|
|
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>
|
|
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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
|
|
487
578
|
* @type {string}
|
|
488
579
|
* @memberof BankTransactionApiGetBankTransaction
|
|
489
580
|
*/
|
|
@@ -581,7 +672,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
581
672
|
readonly order?: string
|
|
582
673
|
|
|
583
674
|
/**
|
|
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>
|
|
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, invoiceMatchSuggestions, suggestionGenerationProgress<i>
|
|
585
676
|
* @type {string}
|
|
586
677
|
* @memberof BankTransactionApiListBankTransactions
|
|
587
678
|
*/
|
|
@@ -623,6 +714,18 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
623
714
|
* @extends {BaseAPI}
|
|
624
715
|
*/
|
|
625
716
|
export class BankTransactionApi extends BaseAPI {
|
|
717
|
+
/**
|
|
718
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
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
|
+
|
|
626
729
|
/**
|
|
627
730
|
* 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
731
|
* @summary Retrieve the bank transaction
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { GenerateInvoiceMatchSuggestionsResponseClass } from '../models';
|
|
15
16
|
import { GetBankTransactionsResponseClass } from '../models';
|
|
16
17
|
import { ImportBankTransactionsResponseClass } from '../models';
|
|
17
18
|
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
@@ -24,12 +25,21 @@ import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
26
27
|
export declare const BankTransactionApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
28
|
+
/**
|
|
29
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
30
|
+
* @summary Invoice Match Suggestion
|
|
31
|
+
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
32
|
+
* @param {string} [authorization] Bearer Token
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
generateInvoiceMatchSuggestion: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
37
|
/**
|
|
28
38
|
* 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\"
|
|
29
39
|
* @summary Retrieve the bank transaction
|
|
30
40
|
* @param {string} code
|
|
31
41
|
* @param {string} [authorization] Bearer Token
|
|
32
|
-
* @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>
|
|
42
|
+
* @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<i>
|
|
33
43
|
* @param {*} [options] Override http request option.
|
|
34
44
|
* @throws {RequiredError}
|
|
35
45
|
*/
|
|
@@ -61,7 +71,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
61
71
|
* @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>
|
|
62
72
|
* @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>
|
|
63
73
|
* @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>
|
|
64
|
-
* @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>
|
|
74
|
+
* @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<i>
|
|
65
75
|
* @param {*} [options] Override http request option.
|
|
66
76
|
* @throws {RequiredError}
|
|
67
77
|
*/
|
|
@@ -82,12 +92,21 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
82
92
|
* @export
|
|
83
93
|
*/
|
|
84
94
|
export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
95
|
+
/**
|
|
96
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
97
|
+
* @summary Invoice Match Suggestion
|
|
98
|
+
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
99
|
+
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
generateInvoiceMatchSuggestion(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenerateInvoiceMatchSuggestionsResponseClass>>;
|
|
85
104
|
/**
|
|
86
105
|
* 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\"
|
|
87
106
|
* @summary Retrieve the bank transaction
|
|
88
107
|
* @param {string} code
|
|
89
108
|
* @param {string} [authorization] Bearer Token
|
|
90
|
-
* @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>
|
|
109
|
+
* @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<i>
|
|
91
110
|
* @param {*} [options] Override http request option.
|
|
92
111
|
* @throws {RequiredError}
|
|
93
112
|
*/
|
|
@@ -119,7 +138,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
119
138
|
* @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>
|
|
120
139
|
* @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>
|
|
121
140
|
* @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>
|
|
122
|
-
* @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>
|
|
141
|
+
* @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<i>
|
|
123
142
|
* @param {*} [options] Override http request option.
|
|
124
143
|
* @throws {RequiredError}
|
|
125
144
|
*/
|
|
@@ -140,12 +159,21 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
140
159
|
* @export
|
|
141
160
|
*/
|
|
142
161
|
export declare const BankTransactionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
162
|
+
/**
|
|
163
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
164
|
+
* @summary Invoice Match Suggestion
|
|
165
|
+
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
166
|
+
* @param {string} [authorization] Bearer Token
|
|
167
|
+
* @param {*} [options] Override http request option.
|
|
168
|
+
* @throws {RequiredError}
|
|
169
|
+
*/
|
|
170
|
+
generateInvoiceMatchSuggestion(code: string, authorization?: string, options?: any): AxiosPromise<GenerateInvoiceMatchSuggestionsResponseClass>;
|
|
143
171
|
/**
|
|
144
172
|
* 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\"
|
|
145
173
|
* @summary Retrieve the bank transaction
|
|
146
174
|
* @param {string} code
|
|
147
175
|
* @param {string} [authorization] Bearer Token
|
|
148
|
-
* @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>
|
|
176
|
+
* @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<i>
|
|
149
177
|
* @param {*} [options] Override http request option.
|
|
150
178
|
* @throws {RequiredError}
|
|
151
179
|
*/
|
|
@@ -177,7 +205,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
177
205
|
* @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>
|
|
178
206
|
* @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>
|
|
179
207
|
* @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>
|
|
180
|
-
* @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>
|
|
208
|
+
* @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<i>
|
|
181
209
|
* @param {*} [options] Override http request option.
|
|
182
210
|
* @throws {RequiredError}
|
|
183
211
|
*/
|
|
@@ -193,6 +221,25 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
193
221
|
*/
|
|
194
222
|
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UnlinkBankTransactionsResponseClass>;
|
|
195
223
|
};
|
|
224
|
+
/**
|
|
225
|
+
* Request parameters for generateInvoiceMatchSuggestion operation in BankTransactionApi.
|
|
226
|
+
* @export
|
|
227
|
+
* @interface BankTransactionApiGenerateInvoiceMatchSuggestionRequest
|
|
228
|
+
*/
|
|
229
|
+
export interface BankTransactionApiGenerateInvoiceMatchSuggestionRequest {
|
|
230
|
+
/**
|
|
231
|
+
* Code of the bank transaction to generate match suggestions for
|
|
232
|
+
* @type {string}
|
|
233
|
+
* @memberof BankTransactionApiGenerateInvoiceMatchSuggestion
|
|
234
|
+
*/
|
|
235
|
+
readonly code: string;
|
|
236
|
+
/**
|
|
237
|
+
* Bearer Token
|
|
238
|
+
* @type {string}
|
|
239
|
+
* @memberof BankTransactionApiGenerateInvoiceMatchSuggestion
|
|
240
|
+
*/
|
|
241
|
+
readonly authorization?: string;
|
|
242
|
+
}
|
|
196
243
|
/**
|
|
197
244
|
* Request parameters for getBankTransaction operation in BankTransactionApi.
|
|
198
245
|
* @export
|
|
@@ -212,7 +259,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
212
259
|
*/
|
|
213
260
|
readonly authorization?: string;
|
|
214
261
|
/**
|
|
215
|
-
* 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>
|
|
262
|
+
* 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<i>
|
|
216
263
|
* @type {string}
|
|
217
264
|
* @memberof BankTransactionApiGetBankTransaction
|
|
218
265
|
*/
|
|
@@ -299,7 +346,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
299
346
|
*/
|
|
300
347
|
readonly order?: string;
|
|
301
348
|
/**
|
|
302
|
-
* 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>
|
|
349
|
+
* 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<i>
|
|
303
350
|
* @type {string}
|
|
304
351
|
* @memberof BankTransactionApiListBankTransactions
|
|
305
352
|
*/
|
|
@@ -337,6 +384,15 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
337
384
|
* @extends {BaseAPI}
|
|
338
385
|
*/
|
|
339
386
|
export declare class BankTransactionApi extends BaseAPI {
|
|
387
|
+
/**
|
|
388
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
389
|
+
* @summary Invoice Match Suggestion
|
|
390
|
+
* @param {BankTransactionApiGenerateInvoiceMatchSuggestionRequest} requestParameters Request parameters.
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
* @memberof BankTransactionApi
|
|
394
|
+
*/
|
|
395
|
+
generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateInvoiceMatchSuggestionsResponseClass, any>>;
|
|
340
396
|
/**
|
|
341
397
|
* 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\"
|
|
342
398
|
* @summary Retrieve the bank transaction
|
|
@@ -92,12 +92,60 @@ var base_1 = require("../base");
|
|
|
92
92
|
var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
+
/**
|
|
96
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
97
|
+
* @summary Invoice Match Suggestion
|
|
98
|
+
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
99
|
+
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
generateInvoiceMatchSuggestion: function (code, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'code' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('generateInvoiceMatchSuggestion', 'code', code);
|
|
112
|
+
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/generate-invoice-match-suggestion"
|
|
113
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
114
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
baseAccessToken = configuration.accessToken;
|
|
118
|
+
}
|
|
119
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
120
|
+
localVarHeaderParameter = {};
|
|
121
|
+
localVarQueryParameter = {};
|
|
122
|
+
// authentication bearer required
|
|
123
|
+
// http bearer authentication required
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
125
|
+
case 1:
|
|
126
|
+
// authentication bearer required
|
|
127
|
+
// http bearer authentication required
|
|
128
|
+
_a.sent();
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
131
|
+
}
|
|
132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
+
return [2 /*return*/, {
|
|
136
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
}];
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
},
|
|
95
143
|
/**
|
|
96
144
|
* 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\"
|
|
97
145
|
* @summary Retrieve the bank transaction
|
|
98
146
|
* @param {string} code
|
|
99
147
|
* @param {string} [authorization] Bearer Token
|
|
100
|
-
* @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>
|
|
148
|
+
* @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<i>
|
|
101
149
|
* @param {*} [options] Override http request option.
|
|
102
150
|
* @throws {RequiredError}
|
|
103
151
|
*/
|
|
@@ -257,7 +305,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
257
305
|
* @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>
|
|
258
306
|
* @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>
|
|
259
307
|
* @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>
|
|
260
|
-
* @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>
|
|
308
|
+
* @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<i>
|
|
261
309
|
* @param {*} [options] Override http request option.
|
|
262
310
|
* @throws {RequiredError}
|
|
263
311
|
*/
|
|
@@ -376,12 +424,33 @@ exports.BankTransactionApiAxiosParamCreator = BankTransactionApiAxiosParamCreato
|
|
|
376
424
|
var BankTransactionApiFp = function (configuration) {
|
|
377
425
|
var localVarAxiosParamCreator = (0, exports.BankTransactionApiAxiosParamCreator)(configuration);
|
|
378
426
|
return {
|
|
427
|
+
/**
|
|
428
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
429
|
+
* @summary Invoice Match Suggestion
|
|
430
|
+
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
431
|
+
* @param {string} [authorization] Bearer Token
|
|
432
|
+
* @param {*} [options] Override http request option.
|
|
433
|
+
* @throws {RequiredError}
|
|
434
|
+
*/
|
|
435
|
+
generateInvoiceMatchSuggestion: function (code, authorization, options) {
|
|
436
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
437
|
+
var localVarAxiosArgs;
|
|
438
|
+
return __generator(this, function (_a) {
|
|
439
|
+
switch (_a.label) {
|
|
440
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.generateInvoiceMatchSuggestion(code, authorization, options)];
|
|
441
|
+
case 1:
|
|
442
|
+
localVarAxiosArgs = _a.sent();
|
|
443
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
});
|
|
447
|
+
},
|
|
379
448
|
/**
|
|
380
449
|
* 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\"
|
|
381
450
|
* @summary Retrieve the bank transaction
|
|
382
451
|
* @param {string} code
|
|
383
452
|
* @param {string} [authorization] Bearer Token
|
|
384
|
-
* @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>
|
|
453
|
+
* @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<i>
|
|
385
454
|
* @param {*} [options] Override http request option.
|
|
386
455
|
* @throws {RequiredError}
|
|
387
456
|
*/
|
|
@@ -449,7 +518,7 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
449
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, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
450
519
|
* @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>
|
|
451
520
|
* @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>
|
|
452
|
-
* @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>
|
|
521
|
+
* @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<i>
|
|
453
522
|
* @param {*} [options] Override http request option.
|
|
454
523
|
* @throws {RequiredError}
|
|
455
524
|
*/
|
|
@@ -498,12 +567,23 @@ exports.BankTransactionApiFp = BankTransactionApiFp;
|
|
|
498
567
|
var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
499
568
|
var localVarFp = (0, exports.BankTransactionApiFp)(configuration);
|
|
500
569
|
return {
|
|
570
|
+
/**
|
|
571
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
572
|
+
* @summary Invoice Match Suggestion
|
|
573
|
+
* @param {string} code Code of the bank transaction to generate match suggestions for
|
|
574
|
+
* @param {string} [authorization] Bearer Token
|
|
575
|
+
* @param {*} [options] Override http request option.
|
|
576
|
+
* @throws {RequiredError}
|
|
577
|
+
*/
|
|
578
|
+
generateInvoiceMatchSuggestion: function (code, authorization, options) {
|
|
579
|
+
return localVarFp.generateInvoiceMatchSuggestion(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
580
|
+
},
|
|
501
581
|
/**
|
|
502
582
|
* 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\"
|
|
503
583
|
* @summary Retrieve the bank transaction
|
|
504
584
|
* @param {string} code
|
|
505
585
|
* @param {string} [authorization] Bearer Token
|
|
506
|
-
* @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>
|
|
586
|
+
* @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<i>
|
|
507
587
|
* @param {*} [options] Override http request option.
|
|
508
588
|
* @throws {RequiredError}
|
|
509
589
|
*/
|
|
@@ -541,7 +621,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
541
621
|
* @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>
|
|
542
622
|
* @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>
|
|
543
623
|
* @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>
|
|
544
|
-
* @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>
|
|
624
|
+
* @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<i>
|
|
545
625
|
* @param {*} [options] Override http request option.
|
|
546
626
|
* @throws {RequiredError}
|
|
547
627
|
*/
|
|
@@ -574,6 +654,18 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
574
654
|
function BankTransactionApi() {
|
|
575
655
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
576
656
|
}
|
|
657
|
+
/**
|
|
658
|
+
* Generate suggestion for matching a bank transaction with an Invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
659
|
+
* @summary Invoice Match Suggestion
|
|
660
|
+
* @param {BankTransactionApiGenerateInvoiceMatchSuggestionRequest} requestParameters Request parameters.
|
|
661
|
+
* @param {*} [options] Override http request option.
|
|
662
|
+
* @throws {RequiredError}
|
|
663
|
+
* @memberof BankTransactionApi
|
|
664
|
+
*/
|
|
665
|
+
BankTransactionApi.prototype.generateInvoiceMatchSuggestion = function (requestParameters, options) {
|
|
666
|
+
var _this = this;
|
|
667
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).generateInvoiceMatchSuggestion(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
668
|
+
};
|
|
577
669
|
/**
|
|
578
670
|
* 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\"
|
|
579
671
|
* @summary Retrieve the bank transaction
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
|
|
13
|
+
import { SuggestionGenerationProgressClass } from './suggestion-generation-progress-class';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -129,4 +131,16 @@ export interface BankTransactionClassWithoutExpandProperties {
|
|
|
129
131
|
* @memberof BankTransactionClassWithoutExpandProperties
|
|
130
132
|
*/
|
|
131
133
|
'updatedBy': string;
|
|
134
|
+
/**
|
|
135
|
+
* The match suggestions for invoices
|
|
136
|
+
* @type {Array<InvoiceMatchSuggestionClass>}
|
|
137
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
138
|
+
*/
|
|
139
|
+
'invoiceMatchSuggestions': Array<InvoiceMatchSuggestionClass>;
|
|
140
|
+
/**
|
|
141
|
+
* The progress of the suggestion generation
|
|
142
|
+
* @type {SuggestionGenerationProgressClass}
|
|
143
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
144
|
+
*/
|
|
145
|
+
'suggestionGenerationProgress'?: SuggestionGenerationProgressClass;
|
|
132
146
|
}
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
|
|
12
13
|
import { SharedTransactionClass } from './shared-transaction-class';
|
|
14
|
+
import { SuggestionGenerationProgressClass } from './suggestion-generation-progress-class';
|
|
13
15
|
import { TenantBankAccountClassWithoutExpandProperties } from './tenant-bank-account-class-without-expand-properties';
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
@@ -143,4 +145,16 @@ export interface BankTransactionClass {
|
|
|
143
145
|
* @memberof BankTransactionClass
|
|
144
146
|
*/
|
|
145
147
|
'updatedBy': string;
|
|
148
|
+
/**
|
|
149
|
+
* The match suggestions for invoices
|
|
150
|
+
* @type {Array<InvoiceMatchSuggestionClass>}
|
|
151
|
+
* @memberof BankTransactionClass
|
|
152
|
+
*/
|
|
153
|
+
'invoiceMatchSuggestions': Array<InvoiceMatchSuggestionClass>;
|
|
154
|
+
/**
|
|
155
|
+
* The progress of the suggestion generation
|
|
156
|
+
* @type {SuggestionGenerationProgressClass}
|
|
157
|
+
* @memberof BankTransactionClass
|
|
158
|
+
*/
|
|
159
|
+
'suggestionGenerationProgress'?: SuggestionGenerationProgressClass;
|
|
146
160
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GenerateInvoiceMatchSuggestionsResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface GenerateInvoiceMatchSuggestionsResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* List of invoice match suggestions
|
|
21
|
+
* @type {Array<InvoiceMatchSuggestionClass>}
|
|
22
|
+
* @memberof GenerateInvoiceMatchSuggestionsResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'invoiceMatchSuggestions': Array<InvoiceMatchSuggestionClass>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './create-tenant-bank-account-response-class';
|
|
|
25
25
|
export * from './deactivate-payment-reminder-request-dto';
|
|
26
26
|
export * from './deactivate-payment-reminder-response-class';
|
|
27
27
|
export * from './deactivated-payment-reminder-class';
|
|
28
|
+
export * from './generate-invoice-match-suggestions-response-class';
|
|
28
29
|
export * from './get-bank-account-response-class';
|
|
29
30
|
export * from './get-bank-transactions-response-class';
|
|
30
31
|
export * from './get-payment-method-response-class';
|
|
@@ -43,6 +44,7 @@ export * from './initiate-stripe-payment-setup-request-dto';
|
|
|
43
44
|
export * from './initiate-stripe-payment-setup-response-class';
|
|
44
45
|
export * from './inline-response200';
|
|
45
46
|
export * from './inline-response503';
|
|
47
|
+
export * from './invoice-match-suggestion-class';
|
|
46
48
|
export * from './link-bank-transaction-request-dto-rest';
|
|
47
49
|
export * from './link-bank-transactions-response-class';
|
|
48
50
|
export * from './list-bank-accounts-response-class';
|
|
@@ -62,6 +64,7 @@ export * from './refund-item-class';
|
|
|
62
64
|
export * from './sepa-direct-dto';
|
|
63
65
|
export * from './set-primary-bank-account-request-dto-rest';
|
|
64
66
|
export * from './shared-transaction-class';
|
|
67
|
+
export * from './suggestion-generation-progress-class';
|
|
65
68
|
export * from './symphony-profile-limited-response-dto';
|
|
66
69
|
export * from './tenant-bank-account-class';
|
|
67
70
|
export * from './tenant-bank-account-class-without-expand-properties';
|
package/dist/models/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __exportStar(require("./create-tenant-bank-account-response-class"), exports);
|
|
|
41
41
|
__exportStar(require("./deactivate-payment-reminder-request-dto"), exports);
|
|
42
42
|
__exportStar(require("./deactivate-payment-reminder-response-class"), exports);
|
|
43
43
|
__exportStar(require("./deactivated-payment-reminder-class"), exports);
|
|
44
|
+
__exportStar(require("./generate-invoice-match-suggestions-response-class"), exports);
|
|
44
45
|
__exportStar(require("./get-bank-account-response-class"), exports);
|
|
45
46
|
__exportStar(require("./get-bank-transactions-response-class"), exports);
|
|
46
47
|
__exportStar(require("./get-payment-method-response-class"), exports);
|
|
@@ -59,6 +60,7 @@ __exportStar(require("./initiate-stripe-payment-setup-request-dto"), exports);
|
|
|
59
60
|
__exportStar(require("./initiate-stripe-payment-setup-response-class"), exports);
|
|
60
61
|
__exportStar(require("./inline-response200"), exports);
|
|
61
62
|
__exportStar(require("./inline-response503"), exports);
|
|
63
|
+
__exportStar(require("./invoice-match-suggestion-class"), exports);
|
|
62
64
|
__exportStar(require("./link-bank-transaction-request-dto-rest"), exports);
|
|
63
65
|
__exportStar(require("./link-bank-transactions-response-class"), exports);
|
|
64
66
|
__exportStar(require("./list-bank-accounts-response-class"), exports);
|
|
@@ -78,6 +80,7 @@ __exportStar(require("./refund-item-class"), exports);
|
|
|
78
80
|
__exportStar(require("./sepa-direct-dto"), exports);
|
|
79
81
|
__exportStar(require("./set-primary-bank-account-request-dto-rest"), exports);
|
|
80
82
|
__exportStar(require("./shared-transaction-class"), exports);
|
|
83
|
+
__exportStar(require("./suggestion-generation-progress-class"), exports);
|
|
81
84
|
__exportStar(require("./symphony-profile-limited-response-dto"), exports);
|
|
82
85
|
__exportStar(require("./tenant-bank-account-class"), exports);
|
|
83
86
|
__exportStar(require("./tenant-bank-account-class-without-expand-properties"), exports);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InvoiceMatchSuggestionClass
|
|
16
|
+
*/
|
|
17
|
+
export interface InvoiceMatchSuggestionClass {
|
|
18
|
+
/**
|
|
19
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the object.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
28
|
+
*/
|
|
29
|
+
'code': string;
|
|
30
|
+
/**
|
|
31
|
+
* Invoice code of the suggested match
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
34
|
+
*/
|
|
35
|
+
'invoiceCode': string;
|
|
36
|
+
/**
|
|
37
|
+
* Invoice number of the suggested match
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
40
|
+
*/
|
|
41
|
+
'invoiceNumber': string;
|
|
42
|
+
/**
|
|
43
|
+
* Confidence score (0-100) of the suggested match
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
46
|
+
*/
|
|
47
|
+
'confidenceScore': number;
|
|
48
|
+
/**
|
|
49
|
+
* Criteria used for the match
|
|
50
|
+
* @type {object}
|
|
51
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
52
|
+
*/
|
|
53
|
+
'matchCriteria': object;
|
|
54
|
+
/**
|
|
55
|
+
* Time at which the object was created.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
58
|
+
*/
|
|
59
|
+
'createdAt': string;
|
|
60
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SuggestionGenerationProgressClass
|
|
16
|
+
*/
|
|
17
|
+
export interface SuggestionGenerationProgressClass {
|
|
18
|
+
/**
|
|
19
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SuggestionGenerationProgressClass
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
* Status of the suggestion generation process
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SuggestionGenerationProgressClass
|
|
28
|
+
*/
|
|
29
|
+
'status': SuggestionGenerationProgressClassStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Error message if suggestion generation failed
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SuggestionGenerationProgressClass
|
|
34
|
+
*/
|
|
35
|
+
'errorMessage'?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare const SuggestionGenerationProgressClassStatusEnum: {
|
|
38
|
+
readonly Pending: "pending";
|
|
39
|
+
readonly Processing: "processing";
|
|
40
|
+
readonly Completed: "completed";
|
|
41
|
+
readonly Failed: "failed";
|
|
42
|
+
};
|
|
43
|
+
export type SuggestionGenerationProgressClassStatusEnum = typeof SuggestionGenerationProgressClassStatusEnum[keyof typeof SuggestionGenerationProgressClassStatusEnum];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SuggestionGenerationProgressClassStatusEnum = void 0;
|
|
17
|
+
exports.SuggestionGenerationProgressClassStatusEnum = {
|
|
18
|
+
Pending: 'pending',
|
|
19
|
+
Processing: 'processing',
|
|
20
|
+
Completed: 'completed',
|
|
21
|
+
Failed: 'failed'
|
|
22
|
+
};
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
|
|
13
|
+
import { SuggestionGenerationProgressClass } from './suggestion-generation-progress-class';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -111,4 +113,16 @@ export interface UnlinkedBankTransactionResponseClass {
|
|
|
111
113
|
* @memberof UnlinkedBankTransactionResponseClass
|
|
112
114
|
*/
|
|
113
115
|
'updatedBy': string;
|
|
116
|
+
/**
|
|
117
|
+
* The match suggestions for invoices
|
|
118
|
+
* @type {Array<InvoiceMatchSuggestionClass>}
|
|
119
|
+
* @memberof UnlinkedBankTransactionResponseClass
|
|
120
|
+
*/
|
|
121
|
+
'invoiceMatchSuggestions': Array<InvoiceMatchSuggestionClass>;
|
|
122
|
+
/**
|
|
123
|
+
* The progress of the suggestion generation
|
|
124
|
+
* @type {SuggestionGenerationProgressClass}
|
|
125
|
+
* @memberof UnlinkedBankTransactionResponseClass
|
|
126
|
+
*/
|
|
127
|
+
'suggestionGenerationProgress'?: SuggestionGenerationProgressClass;
|
|
114
128
|
}
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
|
|
17
|
+
import { SuggestionGenerationProgressClass } from './suggestion-generation-progress-class';
|
|
16
18
|
|
|
17
19
|
/**
|
|
18
20
|
*
|
|
@@ -134,5 +136,17 @@ export interface BankTransactionClassWithoutExpandProperties {
|
|
|
134
136
|
* @memberof BankTransactionClassWithoutExpandProperties
|
|
135
137
|
*/
|
|
136
138
|
'updatedBy': string;
|
|
139
|
+
/**
|
|
140
|
+
* The match suggestions for invoices
|
|
141
|
+
* @type {Array<InvoiceMatchSuggestionClass>}
|
|
142
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
143
|
+
*/
|
|
144
|
+
'invoiceMatchSuggestions': Array<InvoiceMatchSuggestionClass>;
|
|
145
|
+
/**
|
|
146
|
+
* The progress of the suggestion generation
|
|
147
|
+
* @type {SuggestionGenerationProgressClass}
|
|
148
|
+
* @memberof BankTransactionClassWithoutExpandProperties
|
|
149
|
+
*/
|
|
150
|
+
'suggestionGenerationProgress'?: SuggestionGenerationProgressClass;
|
|
137
151
|
}
|
|
138
152
|
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
|
|
16
17
|
import { SharedTransactionClass } from './shared-transaction-class';
|
|
18
|
+
import { SuggestionGenerationProgressClass } from './suggestion-generation-progress-class';
|
|
17
19
|
import { TenantBankAccountClassWithoutExpandProperties } from './tenant-bank-account-class-without-expand-properties';
|
|
18
20
|
|
|
19
21
|
/**
|
|
@@ -148,5 +150,17 @@ export interface BankTransactionClass {
|
|
|
148
150
|
* @memberof BankTransactionClass
|
|
149
151
|
*/
|
|
150
152
|
'updatedBy': string;
|
|
153
|
+
/**
|
|
154
|
+
* The match suggestions for invoices
|
|
155
|
+
* @type {Array<InvoiceMatchSuggestionClass>}
|
|
156
|
+
* @memberof BankTransactionClass
|
|
157
|
+
*/
|
|
158
|
+
'invoiceMatchSuggestions': Array<InvoiceMatchSuggestionClass>;
|
|
159
|
+
/**
|
|
160
|
+
* The progress of the suggestion generation
|
|
161
|
+
* @type {SuggestionGenerationProgressClass}
|
|
162
|
+
* @memberof BankTransactionClass
|
|
163
|
+
*/
|
|
164
|
+
'suggestionGenerationProgress'?: SuggestionGenerationProgressClass;
|
|
151
165
|
}
|
|
152
166
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
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
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GenerateInvoiceMatchSuggestionsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GenerateInvoiceMatchSuggestionsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* List of invoice match suggestions
|
|
26
|
+
* @type {Array<InvoiceMatchSuggestionClass>}
|
|
27
|
+
* @memberof GenerateInvoiceMatchSuggestionsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'invoiceMatchSuggestions': Array<InvoiceMatchSuggestionClass>;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './create-tenant-bank-account-response-class';
|
|
|
25
25
|
export * from './deactivate-payment-reminder-request-dto';
|
|
26
26
|
export * from './deactivate-payment-reminder-response-class';
|
|
27
27
|
export * from './deactivated-payment-reminder-class';
|
|
28
|
+
export * from './generate-invoice-match-suggestions-response-class';
|
|
28
29
|
export * from './get-bank-account-response-class';
|
|
29
30
|
export * from './get-bank-transactions-response-class';
|
|
30
31
|
export * from './get-payment-method-response-class';
|
|
@@ -43,6 +44,7 @@ export * from './initiate-stripe-payment-setup-request-dto';
|
|
|
43
44
|
export * from './initiate-stripe-payment-setup-response-class';
|
|
44
45
|
export * from './inline-response200';
|
|
45
46
|
export * from './inline-response503';
|
|
47
|
+
export * from './invoice-match-suggestion-class';
|
|
46
48
|
export * from './link-bank-transaction-request-dto-rest';
|
|
47
49
|
export * from './link-bank-transactions-response-class';
|
|
48
50
|
export * from './list-bank-accounts-response-class';
|
|
@@ -62,6 +64,7 @@ export * from './refund-item-class';
|
|
|
62
64
|
export * from './sepa-direct-dto';
|
|
63
65
|
export * from './set-primary-bank-account-request-dto-rest';
|
|
64
66
|
export * from './shared-transaction-class';
|
|
67
|
+
export * from './suggestion-generation-progress-class';
|
|
65
68
|
export * from './symphony-profile-limited-response-dto';
|
|
66
69
|
export * from './tenant-bank-account-class';
|
|
67
70
|
export * from './tenant-bank-account-class-without-expand-properties';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
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
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InvoiceMatchSuggestionClass
|
|
21
|
+
*/
|
|
22
|
+
export interface InvoiceMatchSuggestionClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier for the object.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* Invoice code of the suggested match
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
39
|
+
*/
|
|
40
|
+
'invoiceCode': string;
|
|
41
|
+
/**
|
|
42
|
+
* Invoice number of the suggested match
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
45
|
+
*/
|
|
46
|
+
'invoiceNumber': string;
|
|
47
|
+
/**
|
|
48
|
+
* Confidence score (0-100) of the suggested match
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
51
|
+
*/
|
|
52
|
+
'confidenceScore': number;
|
|
53
|
+
/**
|
|
54
|
+
* Criteria used for the match
|
|
55
|
+
* @type {object}
|
|
56
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
57
|
+
*/
|
|
58
|
+
'matchCriteria': object;
|
|
59
|
+
/**
|
|
60
|
+
* Time at which the object was created.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof InvoiceMatchSuggestionClass
|
|
63
|
+
*/
|
|
64
|
+
'createdAt': string;
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
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
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SuggestionGenerationProgressClass
|
|
21
|
+
*/
|
|
22
|
+
export interface SuggestionGenerationProgressClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof SuggestionGenerationProgressClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Status of the suggestion generation process
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof SuggestionGenerationProgressClass
|
|
33
|
+
*/
|
|
34
|
+
'status': SuggestionGenerationProgressClassStatusEnum;
|
|
35
|
+
/**
|
|
36
|
+
* Error message if suggestion generation failed
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof SuggestionGenerationProgressClass
|
|
39
|
+
*/
|
|
40
|
+
'errorMessage'?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const SuggestionGenerationProgressClassStatusEnum = {
|
|
44
|
+
Pending: 'pending',
|
|
45
|
+
Processing: 'processing',
|
|
46
|
+
Completed: 'completed',
|
|
47
|
+
Failed: 'failed'
|
|
48
|
+
} as const;
|
|
49
|
+
|
|
50
|
+
export type SuggestionGenerationProgressClassStatusEnum = typeof SuggestionGenerationProgressClassStatusEnum[keyof typeof SuggestionGenerationProgressClassStatusEnum];
|
|
51
|
+
|
|
52
|
+
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
|
|
17
|
+
import { SuggestionGenerationProgressClass } from './suggestion-generation-progress-class';
|
|
16
18
|
|
|
17
19
|
/**
|
|
18
20
|
*
|
|
@@ -116,5 +118,17 @@ export interface UnlinkedBankTransactionResponseClass {
|
|
|
116
118
|
* @memberof UnlinkedBankTransactionResponseClass
|
|
117
119
|
*/
|
|
118
120
|
'updatedBy': string;
|
|
121
|
+
/**
|
|
122
|
+
* The match suggestions for invoices
|
|
123
|
+
* @type {Array<InvoiceMatchSuggestionClass>}
|
|
124
|
+
* @memberof UnlinkedBankTransactionResponseClass
|
|
125
|
+
*/
|
|
126
|
+
'invoiceMatchSuggestions': Array<InvoiceMatchSuggestionClass>;
|
|
127
|
+
/**
|
|
128
|
+
* The progress of the suggestion generation
|
|
129
|
+
* @type {SuggestionGenerationProgressClass}
|
|
130
|
+
* @memberof UnlinkedBankTransactionResponseClass
|
|
131
|
+
*/
|
|
132
|
+
'suggestionGenerationProgress'?: SuggestionGenerationProgressClass;
|
|
119
133
|
}
|
|
120
134
|
|