@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.31
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 +12 -39
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +497 -47
- package/api/bank-transaction-api.ts +128 -96
- package/api/{default-api.ts → health-check-api.ts} +22 -18
- package/api/payment-methods-api.ts +74 -203
- package/api/payment-reminders-api.ts +76 -66
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +66 -89
- package/api/refunds-api.ts +74 -84
- package/api/tenant-bank-account-api.ts +88 -62
- package/api/webhooks-api.ts +17 -13
- package/api.ts +3 -3
- package/base.ts +6 -2
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +297 -49
- package/dist/api/bank-accounts-api.js +416 -28
- package/dist/api/bank-transaction-api.d.ts +109 -91
- package/dist/api/bank-transaction-api.js +83 -68
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +31 -27
- package/dist/api/payment-methods-api.d.ts +66 -134
- package/dist/api/payment-methods-api.js +55 -157
- package/dist/api/payment-reminders-api.d.ts +72 -65
- package/dist/api/payment-reminders-api.js +48 -42
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +64 -76
- package/dist/api/payments-api.js +47 -55
- package/dist/api/refunds-api.d.ts +74 -74
- package/dist/api/refunds-api.js +52 -48
- package/dist/api/tenant-bank-account-api.d.ts +89 -66
- package/dist/api/tenant-bank-account-api.js +59 -39
- package/dist/api/webhooks-api.d.ts +17 -13
- package/dist/api/webhooks-api.js +15 -11
- package/dist/api.d.ts +2 -2
- package/dist/api.js +2 -2
- package/dist/base.d.ts +2 -1
- package/dist/base.js +5 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/{bank-transaction-response-class.d.ts → bank-transaction-class-without-expand-properties.d.ts} +26 -34
- package/dist/models/{bank-account-class.js → bank-transaction-class-without-expand-properties.js} +1 -1
- package/dist/models/create-bank-account-request-dto.d.ts +15 -3
- package/dist/models/create-bank-account-request-dto.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/create-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/{bank-transaction-response-class.js → create-tenant-bank-account-response-class.js} +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +5 -5
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +11 -38
- package/dist/models/index.js +11 -38
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/{billing-profile-limited-response-dto.js → link-bank-transaction-request-dto-rest.js} +1 -1
- package/dist/models/list-tenant-bank-account-response-class.d.ts +31 -0
- package/dist/models/{billing-profile-dto.js → list-tenant-bank-account-response-class.js} +1 -1
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +24 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.js +15 -0
- package/dist/models/{tenant-bank-account-response-class.d.ts → tenant-bank-account-class-without-expand-properties.d.ts} +11 -11
- package/dist/models/tenant-bank-account-class-without-expand-properties.js +15 -0
- package/dist/models/tenant-bank-account-class.d.ts +73 -0
- package/dist/models/tenant-bank-account-class.js +15 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +24 -0
- package/dist/models/unlink-bank-transaction-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
- package/dist/models/update-bank-account-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto.d.ts +36 -0
- package/dist/models/update-bank-account-request-dto.js +15 -0
- package/dist/models/update-tenant-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-tenant-bank-account-response-class.js +15 -0
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/{bank-transaction-response-class.ts → bank-transaction-class-without-expand-properties.ts} +26 -34
- package/models/create-bank-account-request-dto.ts +15 -3
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/create-tenant-bank-account-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-tenant-bank-account-response-class.ts +5 -5
- package/models/index.ts +11 -38
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +30 -0
- package/models/list-tenant-bank-account-response-class.ts +37 -0
- package/models/set-primary-bank-account-request-dto-rest.ts +30 -0
- package/models/{tenant-bank-account-response-class.ts → tenant-bank-account-class-without-expand-properties.ts} +11 -11
- package/models/tenant-bank-account-class.ts +79 -0
- package/models/unlink-bank-transaction-request-dto-rest.ts +30 -0
- package/models/update-bank-account-request-dto-rest.ts +36 -0
- package/models/update-bank-account-request-dto.ts +42 -0
- package/models/update-tenant-bank-account-response-class.ts +31 -0
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/create-refund-response-class.d.ts +0 -25
- package/dist/models/create-refund-response-class.js +0 -15
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/get-bank-transactions-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/get-request-dto.d.ts +0 -30
- package/dist/models/get-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
- package/dist/models/list-bank-transactions-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/refund-class.d.ts +0 -104
- package/dist/models/refund-class.js +0 -28
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/dist/models/tenant-bank-account-response-class.js +0 -15
- package/dist/models/transaction-class.d.ts +0 -54
- package/dist/models/transaction-class.js +0 -15
- package/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/create-refund-response-class.ts +0 -31
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/get-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/refund-class.ts +0 -114
- package/models/sepa-direct-dto.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
- package/models/transaction-class.ts +0 -60
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -21,9 +21,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import {
|
|
24
|
+
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import {
|
|
26
|
+
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
27
27
|
/**
|
|
28
28
|
* BankTransactionApi - axios parameter creator
|
|
29
29
|
* @export
|
|
@@ -31,11 +31,11 @@ import { ListBankTransactionsResponseClass } from '../models';
|
|
|
31
31
|
export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
32
|
return {
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves the details of the
|
|
35
|
-
* @summary Retrieve the
|
|
36
|
-
* @param {string} code
|
|
34
|
+
* Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information.
|
|
35
|
+
* @summary Retrieve the bank transaction
|
|
36
|
+
* @param {string} code Unique identifier for the object.
|
|
37
37
|
* @param {string} [authorization] Bearer Token
|
|
38
|
-
* @param {string} [expand] Expand the
|
|
38
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, transaction.<i>
|
|
39
39
|
* @param {*} [options] Override http request option.
|
|
40
40
|
* @throws {RequiredError}
|
|
41
41
|
*/
|
|
@@ -81,14 +81,16 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
81
81
|
};
|
|
82
82
|
},
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* This will import bank transactions from a swift MT940 file
|
|
85
85
|
* @summary Create the bank transactions
|
|
86
|
+
* @param {any} file Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
86
87
|
* @param {string} [authorization] Bearer Token
|
|
87
|
-
* @param {any} [file]
|
|
88
88
|
* @param {*} [options] Override http request option.
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
*/
|
|
91
|
-
importBankTransactions: async (
|
|
91
|
+
importBankTransactions: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
92
|
+
// verify required parameter 'file' is not null or undefined
|
|
93
|
+
assertParamExists('importBankTransactions', 'file', file)
|
|
92
94
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/import`;
|
|
93
95
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
94
96
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -132,15 +134,18 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
132
134
|
},
|
|
133
135
|
/**
|
|
134
136
|
* Links a bank transaction with an invoice
|
|
135
|
-
* @summary Link
|
|
137
|
+
* @summary Link bank transaction
|
|
136
138
|
* @param {string} code Code of the bank transaction to link
|
|
139
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
137
140
|
* @param {string} [authorization] Bearer Token
|
|
138
141
|
* @param {*} [options] Override http request option.
|
|
139
142
|
* @throws {RequiredError}
|
|
140
143
|
*/
|
|
141
|
-
linkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
144
|
+
linkBankTransaction: async (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
142
145
|
// verify required parameter 'code' is not null or undefined
|
|
143
146
|
assertParamExists('linkBankTransaction', 'code', code)
|
|
147
|
+
// verify required parameter 'linkBankTransactionRequestDtoRest' is not null or undefined
|
|
148
|
+
assertParamExists('linkBankTransaction', 'linkBankTransactionRequestDtoRest', linkBankTransactionRequestDtoRest)
|
|
144
149
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link`
|
|
145
150
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
146
151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -166,9 +171,12 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
166
171
|
|
|
167
172
|
|
|
168
173
|
|
|
174
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
175
|
+
|
|
169
176
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
170
177
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
171
178
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
179
|
+
localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
|
|
172
180
|
|
|
173
181
|
return {
|
|
174
182
|
url: toPathString(localVarUrlObj),
|
|
@@ -176,20 +184,20 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
176
184
|
};
|
|
177
185
|
},
|
|
178
186
|
/**
|
|
179
|
-
* Returns a list of bank transactions you have previously created.
|
|
187
|
+
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
180
188
|
* @summary List bank transactions
|
|
181
189
|
* @param {string} [authorization] Bearer Token
|
|
182
190
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
183
191
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
184
|
-
* @param {
|
|
185
|
-
* @param {
|
|
186
|
-
* @param {
|
|
187
|
-
* @param {string} [expand] Expand the
|
|
188
|
-
* @param {
|
|
192
|
+
* @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>
|
|
193
|
+
* @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>
|
|
194
|
+
* @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>
|
|
195
|
+
* @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>
|
|
196
|
+
* @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>
|
|
189
197
|
* @param {*} [options] Override http request option.
|
|
190
198
|
* @throws {RequiredError}
|
|
191
199
|
*/
|
|
192
|
-
listBankTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
200
|
+
listBankTransactions: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
193
201
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions`;
|
|
194
202
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
195
203
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -253,15 +261,18 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
253
261
|
},
|
|
254
262
|
/**
|
|
255
263
|
* Unlinks an already linked bank transaction
|
|
256
|
-
* @summary Unlink
|
|
264
|
+
* @summary Unlink bank transaction
|
|
257
265
|
* @param {string} code Code of the bank transaction to unlink
|
|
266
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
258
267
|
* @param {string} [authorization] Bearer Token
|
|
259
268
|
* @param {*} [options] Override http request option.
|
|
260
269
|
* @throws {RequiredError}
|
|
261
270
|
*/
|
|
262
|
-
unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
271
|
+
unlinkBankTransaction: async (code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
263
272
|
// verify required parameter 'code' is not null or undefined
|
|
264
273
|
assertParamExists('unlinkBankTransaction', 'code', code)
|
|
274
|
+
// verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
|
|
275
|
+
assertParamExists('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest)
|
|
265
276
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
|
|
266
277
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
267
278
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -287,9 +298,12 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
287
298
|
|
|
288
299
|
|
|
289
300
|
|
|
301
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
302
|
+
|
|
290
303
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
291
304
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
292
305
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
306
|
+
localVarRequestOptions.data = serializeDataIfNeeded(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
|
|
293
307
|
|
|
294
308
|
return {
|
|
295
309
|
url: toPathString(localVarUrlObj),
|
|
@@ -307,70 +321,72 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
307
321
|
const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
|
|
308
322
|
return {
|
|
309
323
|
/**
|
|
310
|
-
* Retrieves the details of the
|
|
311
|
-
* @summary Retrieve the
|
|
312
|
-
* @param {string} code
|
|
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.
|
|
325
|
+
* @summary Retrieve the bank transaction
|
|
326
|
+
* @param {string} code Unique identifier for the object.
|
|
313
327
|
* @param {string} [authorization] Bearer Token
|
|
314
|
-
* @param {string} [expand] Expand the
|
|
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>
|
|
315
329
|
* @param {*} [options] Override http request option.
|
|
316
330
|
* @throws {RequiredError}
|
|
317
331
|
*/
|
|
318
|
-
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
332
|
+
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
319
333
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankTransaction(code, authorization, expand, options);
|
|
320
334
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
335
|
},
|
|
322
336
|
/**
|
|
323
|
-
*
|
|
337
|
+
* This will import bank transactions from a swift MT940 file
|
|
324
338
|
* @summary Create the bank transactions
|
|
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
|
|
325
340
|
* @param {string} [authorization] Bearer Token
|
|
326
|
-
* @param {any} [file]
|
|
327
341
|
* @param {*} [options] Override http request option.
|
|
328
342
|
* @throws {RequiredError}
|
|
329
343
|
*/
|
|
330
|
-
async importBankTransactions(
|
|
331
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(
|
|
344
|
+
async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
345
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(file, authorization, options);
|
|
332
346
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
333
347
|
},
|
|
334
348
|
/**
|
|
335
349
|
* Links a bank transaction with an invoice
|
|
336
|
-
* @summary Link
|
|
350
|
+
* @summary Link bank transaction
|
|
337
351
|
* @param {string} code Code of the bank transaction to link
|
|
352
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
338
353
|
* @param {string} [authorization] Bearer Token
|
|
339
354
|
* @param {*} [options] Override http request option.
|
|
340
355
|
* @throws {RequiredError}
|
|
341
356
|
*/
|
|
342
|
-
async linkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
343
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, authorization, options);
|
|
357
|
+
async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
358
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
|
|
344
359
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
345
360
|
},
|
|
346
361
|
/**
|
|
347
|
-
* Returns a list of bank transactions you have previously created.
|
|
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.
|
|
348
363
|
* @summary List bank transactions
|
|
349
364
|
* @param {string} [authorization] Bearer Token
|
|
350
365
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
351
366
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
352
|
-
* @param {
|
|
353
|
-
* @param {
|
|
354
|
-
* @param {
|
|
355
|
-
* @param {string} [expand] Expand the
|
|
356
|
-
* @param {
|
|
367
|
+
* @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>
|
|
368
|
+
* @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>
|
|
369
|
+
* @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>
|
|
370
|
+
* @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>
|
|
371
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
357
372
|
* @param {*} [options] Override http request option.
|
|
358
373
|
* @throws {RequiredError}
|
|
359
374
|
*/
|
|
360
|
-
async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
375
|
+
async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
361
376
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
362
377
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
363
378
|
},
|
|
364
379
|
/**
|
|
365
380
|
* Unlinks an already linked bank transaction
|
|
366
|
-
* @summary Unlink
|
|
381
|
+
* @summary Unlink bank transaction
|
|
367
382
|
* @param {string} code Code of the bank transaction to unlink
|
|
383
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
368
384
|
* @param {string} [authorization] Bearer Token
|
|
369
385
|
* @param {*} [options] Override http request option.
|
|
370
386
|
* @throws {RequiredError}
|
|
371
387
|
*/
|
|
372
|
-
async unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
373
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options);
|
|
388
|
+
async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options);
|
|
374
390
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
391
|
},
|
|
376
392
|
}
|
|
@@ -384,66 +400,68 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
384
400
|
const localVarFp = BankTransactionApiFp(configuration)
|
|
385
401
|
return {
|
|
386
402
|
/**
|
|
387
|
-
* Retrieves the details of the
|
|
388
|
-
* @summary Retrieve the
|
|
389
|
-
* @param {string} code
|
|
403
|
+
* 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.
|
|
404
|
+
* @summary Retrieve the bank transaction
|
|
405
|
+
* @param {string} code Unique identifier for the object.
|
|
390
406
|
* @param {string} [authorization] Bearer Token
|
|
391
|
-
* @param {string} [expand] Expand the
|
|
407
|
+
* @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>
|
|
392
408
|
* @param {*} [options] Override http request option.
|
|
393
409
|
* @throws {RequiredError}
|
|
394
410
|
*/
|
|
395
|
-
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
411
|
+
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
396
412
|
return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
397
413
|
},
|
|
398
414
|
/**
|
|
399
|
-
*
|
|
415
|
+
* This will import bank transactions from a swift MT940 file
|
|
400
416
|
* @summary Create the bank transactions
|
|
417
|
+
* @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
|
|
401
418
|
* @param {string} [authorization] Bearer Token
|
|
402
|
-
* @param {any} [file]
|
|
403
419
|
* @param {*} [options] Override http request option.
|
|
404
420
|
* @throws {RequiredError}
|
|
405
421
|
*/
|
|
406
|
-
importBankTransactions(
|
|
407
|
-
return localVarFp.importBankTransactions(
|
|
422
|
+
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<void> {
|
|
423
|
+
return localVarFp.importBankTransactions(file, authorization, options).then((request) => request(axios, basePath));
|
|
408
424
|
},
|
|
409
425
|
/**
|
|
410
426
|
* Links a bank transaction with an invoice
|
|
411
|
-
* @summary Link
|
|
427
|
+
* @summary Link bank transaction
|
|
412
428
|
* @param {string} code Code of the bank transaction to link
|
|
429
|
+
* @param {LinkBankTransactionRequestDtoRest} linkBankTransactionRequestDtoRest
|
|
413
430
|
* @param {string} [authorization] Bearer Token
|
|
414
431
|
* @param {*} [options] Override http request option.
|
|
415
432
|
* @throws {RequiredError}
|
|
416
433
|
*/
|
|
417
|
-
linkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
418
|
-
return localVarFp.linkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
434
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
435
|
+
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
419
436
|
},
|
|
420
437
|
/**
|
|
421
|
-
* Returns a list of bank transactions you have previously created.
|
|
438
|
+
* 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.
|
|
422
439
|
* @summary List bank transactions
|
|
423
440
|
* @param {string} [authorization] Bearer Token
|
|
424
441
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
425
442
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
426
|
-
* @param {
|
|
427
|
-
* @param {
|
|
428
|
-
* @param {
|
|
429
|
-
* @param {string} [expand] Expand the
|
|
430
|
-
* @param {
|
|
443
|
+
* @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>
|
|
444
|
+
* @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>
|
|
445
|
+
* @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>
|
|
446
|
+
* @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>
|
|
447
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, swiftMessageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
431
448
|
* @param {*} [options] Override http request option.
|
|
432
449
|
* @throws {RequiredError}
|
|
433
450
|
*/
|
|
434
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?:
|
|
451
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<void> {
|
|
435
452
|
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
436
453
|
},
|
|
437
454
|
/**
|
|
438
455
|
* Unlinks an already linked bank transaction
|
|
439
|
-
* @summary Unlink
|
|
456
|
+
* @summary Unlink bank transaction
|
|
440
457
|
* @param {string} code Code of the bank transaction to unlink
|
|
458
|
+
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
441
459
|
* @param {string} [authorization] Bearer Token
|
|
442
460
|
* @param {*} [options] Override http request option.
|
|
443
461
|
* @throws {RequiredError}
|
|
444
462
|
*/
|
|
445
|
-
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
446
|
-
return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
463
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
464
|
+
return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
447
465
|
},
|
|
448
466
|
};
|
|
449
467
|
};
|
|
@@ -455,7 +473,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
455
473
|
*/
|
|
456
474
|
export interface BankTransactionApiGetBankTransactionRequest {
|
|
457
475
|
/**
|
|
458
|
-
*
|
|
476
|
+
* Unique identifier for the object.
|
|
459
477
|
* @type {string}
|
|
460
478
|
* @memberof BankTransactionApiGetBankTransaction
|
|
461
479
|
*/
|
|
@@ -469,7 +487,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
469
487
|
readonly authorization?: string
|
|
470
488
|
|
|
471
489
|
/**
|
|
472
|
-
* Expand the
|
|
490
|
+
* 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>
|
|
473
491
|
* @type {string}
|
|
474
492
|
* @memberof BankTransactionApiGetBankTransaction
|
|
475
493
|
*/
|
|
@@ -483,18 +501,18 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
483
501
|
*/
|
|
484
502
|
export interface BankTransactionApiImportBankTransactionsRequest {
|
|
485
503
|
/**
|
|
486
|
-
*
|
|
487
|
-
* @type {
|
|
504
|
+
* Swift MT940 file to import bank transactions from. Extension must be .txt or .sta.<br/> Allowed Content Types: text/plain, application/octet-stream
|
|
505
|
+
* @type {any}
|
|
488
506
|
* @memberof BankTransactionApiImportBankTransactions
|
|
489
507
|
*/
|
|
490
|
-
readonly
|
|
508
|
+
readonly file: any
|
|
491
509
|
|
|
492
510
|
/**
|
|
493
|
-
*
|
|
494
|
-
* @type {
|
|
511
|
+
* Bearer Token
|
|
512
|
+
* @type {string}
|
|
495
513
|
* @memberof BankTransactionApiImportBankTransactions
|
|
496
514
|
*/
|
|
497
|
-
readonly
|
|
515
|
+
readonly authorization?: string
|
|
498
516
|
}
|
|
499
517
|
|
|
500
518
|
/**
|
|
@@ -510,6 +528,13 @@ export interface BankTransactionApiLinkBankTransactionRequest {
|
|
|
510
528
|
*/
|
|
511
529
|
readonly code: string
|
|
512
530
|
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {LinkBankTransactionRequestDtoRest}
|
|
534
|
+
* @memberof BankTransactionApiLinkBankTransaction
|
|
535
|
+
*/
|
|
536
|
+
readonly linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest
|
|
537
|
+
|
|
513
538
|
/**
|
|
514
539
|
* Bearer Token
|
|
515
540
|
* @type {string}
|
|
@@ -546,39 +571,39 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
546
571
|
readonly pageToken?: any
|
|
547
572
|
|
|
548
573
|
/**
|
|
549
|
-
* Filter the response by one or multiple fields.
|
|
550
|
-
* @type {
|
|
574
|
+
* 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>
|
|
575
|
+
* @type {string}
|
|
551
576
|
* @memberof BankTransactionApiListBankTransactions
|
|
552
577
|
*/
|
|
553
|
-
readonly filter?:
|
|
578
|
+
readonly filter?: string
|
|
554
579
|
|
|
555
580
|
/**
|
|
556
|
-
* Search the
|
|
557
|
-
* @type {
|
|
581
|
+
* 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>
|
|
582
|
+
* @type {string}
|
|
558
583
|
* @memberof BankTransactionApiListBankTransactions
|
|
559
584
|
*/
|
|
560
|
-
readonly search?:
|
|
585
|
+
readonly search?: string
|
|
561
586
|
|
|
562
587
|
/**
|
|
563
|
-
*
|
|
564
|
-
* @type {
|
|
588
|
+
* 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>
|
|
589
|
+
* @type {string}
|
|
565
590
|
* @memberof BankTransactionApiListBankTransactions
|
|
566
591
|
*/
|
|
567
|
-
readonly order?:
|
|
592
|
+
readonly order?: string
|
|
568
593
|
|
|
569
594
|
/**
|
|
570
|
-
* Expand the
|
|
595
|
+
* 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>
|
|
571
596
|
* @type {string}
|
|
572
597
|
* @memberof BankTransactionApiListBankTransactions
|
|
573
598
|
*/
|
|
574
599
|
readonly expand?: string
|
|
575
600
|
|
|
576
601
|
/**
|
|
577
|
-
* Filters the response by one or multiple fields.
|
|
578
|
-
* @type {
|
|
602
|
+
* 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>
|
|
603
|
+
* @type {string}
|
|
579
604
|
* @memberof BankTransactionApiListBankTransactions
|
|
580
605
|
*/
|
|
581
|
-
readonly filters?:
|
|
606
|
+
readonly filters?: string
|
|
582
607
|
}
|
|
583
608
|
|
|
584
609
|
/**
|
|
@@ -594,6 +619,13 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
594
619
|
*/
|
|
595
620
|
readonly code: string
|
|
596
621
|
|
|
622
|
+
/**
|
|
623
|
+
*
|
|
624
|
+
* @type {UnlinkBankTransactionRequestDtoRest}
|
|
625
|
+
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
626
|
+
*/
|
|
627
|
+
readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest
|
|
628
|
+
|
|
597
629
|
/**
|
|
598
630
|
* Bearer Token
|
|
599
631
|
* @type {string}
|
|
@@ -610,8 +642,8 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
610
642
|
*/
|
|
611
643
|
export class BankTransactionApi extends BaseAPI {
|
|
612
644
|
/**
|
|
613
|
-
* Retrieves the details of the
|
|
614
|
-
* @summary Retrieve the
|
|
645
|
+
* 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.
|
|
646
|
+
* @summary Retrieve the bank transaction
|
|
615
647
|
* @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
|
|
616
648
|
* @param {*} [options] Override http request option.
|
|
617
649
|
* @throws {RequiredError}
|
|
@@ -622,31 +654,31 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
622
654
|
}
|
|
623
655
|
|
|
624
656
|
/**
|
|
625
|
-
*
|
|
657
|
+
* This will import bank transactions from a swift MT940 file
|
|
626
658
|
* @summary Create the bank transactions
|
|
627
659
|
* @param {BankTransactionApiImportBankTransactionsRequest} requestParameters Request parameters.
|
|
628
660
|
* @param {*} [options] Override http request option.
|
|
629
661
|
* @throws {RequiredError}
|
|
630
662
|
* @memberof BankTransactionApi
|
|
631
663
|
*/
|
|
632
|
-
public importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest
|
|
633
|
-
return BankTransactionApiFp(this.configuration).importBankTransactions(requestParameters.
|
|
664
|
+
public importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig) {
|
|
665
|
+
return BankTransactionApiFp(this.configuration).importBankTransactions(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
634
666
|
}
|
|
635
667
|
|
|
636
668
|
/**
|
|
637
669
|
* Links a bank transaction with an invoice
|
|
638
|
-
* @summary Link
|
|
670
|
+
* @summary Link bank transaction
|
|
639
671
|
* @param {BankTransactionApiLinkBankTransactionRequest} requestParameters Request parameters.
|
|
640
672
|
* @param {*} [options] Override http request option.
|
|
641
673
|
* @throws {RequiredError}
|
|
642
674
|
* @memberof BankTransactionApi
|
|
643
675
|
*/
|
|
644
676
|
public linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
645
|
-
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
677
|
+
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
646
678
|
}
|
|
647
679
|
|
|
648
680
|
/**
|
|
649
|
-
* Returns a list of bank transactions you have previously created.
|
|
681
|
+
* 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.
|
|
650
682
|
* @summary List bank transactions
|
|
651
683
|
* @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
|
|
652
684
|
* @param {*} [options] Override http request option.
|
|
@@ -659,13 +691,13 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
659
691
|
|
|
660
692
|
/**
|
|
661
693
|
* Unlinks an already linked bank transaction
|
|
662
|
-
* @summary Unlink
|
|
694
|
+
* @summary Unlink bank transaction
|
|
663
695
|
* @param {BankTransactionApiUnlinkBankTransactionRequest} requestParameters Request parameters.
|
|
664
696
|
* @param {*} [options] Override http request option.
|
|
665
697
|
* @throws {RequiredError}
|
|
666
698
|
* @memberof BankTransactionApi
|
|
667
699
|
*/
|
|
668
700
|
public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
669
|
-
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
701
|
+
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.unlinkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
670
702
|
}
|
|
671
703
|
}
|