@emilgroup/payment-sdk-node 1.21.1-beta.9 → 1.21.1-beta.91
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 +25 -1
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +55 -13
- package/api/bank-orders-api.ts +695 -0
- package/api/bank-transaction-api.ts +63 -52
- package/api/exceeding-credits-api.ts +353 -0
- package/api/payment-methods-api.ts +59 -17
- package/api/payment-reminders-api.ts +55 -13
- package/api/payments-api.ts +188 -21
- package/api/policy-payment-methods-api.ts +169 -0
- package/api/refunds-api.ts +45 -17
- package/api/tenant-bank-account-api.ts +45 -17
- package/api.ts +6 -0
- package/base.ts +45 -3
- package/dist/api/bank-accounts-api.d.ts +35 -8
- package/dist/api/bank-accounts-api.js +29 -11
- package/dist/api/bank-orders-api.d.ts +393 -0
- package/dist/api/bank-orders-api.js +646 -0
- package/dist/api/bank-transaction-api.d.ts +43 -35
- package/dist/api/bank-transaction-api.js +39 -34
- package/dist/api/exceeding-credits-api.d.ts +206 -0
- package/dist/api/exceeding-credits-api.js +356 -0
- package/dist/api/payment-methods-api.d.ts +39 -12
- package/dist/api/payment-methods-api.js +32 -14
- package/dist/api/payment-reminders-api.d.ts +35 -8
- package/dist/api/payment-reminders-api.js +29 -11
- package/dist/api/payments-api.d.ts +112 -16
- package/dist/api/payments-api.js +141 -18
- package/dist/api/policy-payment-methods-api.d.ts +97 -0
- package/dist/api/policy-payment-methods-api.js +228 -0
- package/dist/api/refunds-api.d.ts +28 -10
- package/dist/api/refunds-api.js +24 -12
- package/dist/api/tenant-bank-account-api.d.ts +28 -10
- package/dist/api/tenant-bank-account-api.js +24 -12
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/base.d.ts +11 -2
- package/dist/base.js +42 -3
- package/dist/models/bank-order-class.d.ts +115 -0
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
- package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
- package/dist/models/bank-transaction-class.d.ts +22 -22
- package/dist/models/bank-transaction-class.js +5 -0
- package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
- package/dist/models/bank-transaction-invoice-class.js +15 -0
- package/dist/models/bank-transfer-dto.d.ts +25 -0
- package/dist/models/bank-transfer-dto.js +15 -0
- package/dist/models/billing-address-dto.d.ts +54 -0
- package/dist/models/billing-address-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
- package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
- package/dist/models/create-bank-order-request-dto.d.ts +74 -0
- package/dist/models/create-bank-order-request-dto.js +28 -0
- package/dist/models/create-bank-order-response-class.d.ts +25 -0
- package/dist/models/create-bank-order-response-class.js +15 -0
- package/dist/models/create-payment-order-dto.d.ts +48 -0
- package/dist/models/create-payment-order-dto.js +15 -0
- package/dist/models/create-payment-order-request-dto.d.ts +48 -0
- package/dist/models/create-payment-order-request-dto.js +15 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
- package/dist/models/create-policy-payment-method-request-dto.js +15 -0
- package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-policy-payment-method-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +22 -1
- package/dist/models/create-psp-payment-method-request-dto.js +3 -1
- package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
- package/dist/models/exceeding-credit-class.d.ts +116 -0
- package/dist/models/exceeding-credit-class.js +29 -0
- package/dist/models/financial-account-class.d.ts +111 -0
- package/dist/models/financial-account-class.js +24 -0
- package/dist/models/get-bank-order-response-class.d.ts +25 -0
- package/dist/models/get-bank-order-response-class.js +15 -0
- package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
- package/dist/models/get-exceeding-credit-response-class.js +15 -0
- package/dist/models/index.d.ts +22 -1
- package/dist/models/index.js +22 -1
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
- package/dist/models/invoice-allocation-dto.js +15 -0
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
- package/dist/models/list-bank-orders-response-class.d.ts +31 -0
- package/dist/models/list-bank-orders-response-class.js +15 -0
- package/dist/models/list-exceeding-credits-response-class.d.ts +31 -0
- package/dist/models/list-exceeding-credits-response-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
- package/dist/models/payment-class.d.ts +7 -1
- package/dist/models/payment-method-class.d.ts +6 -0
- package/dist/models/payment-reminder-class.d.ts +7 -1
- package/dist/models/policy-payment-method-class.d.ts +73 -0
- package/dist/models/policy-payment-method-class.js +15 -0
- package/dist/models/refund-class.d.ts +7 -1
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
- package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
- package/dist/models/update-bank-order-request-dto.d.ts +62 -0
- package/dist/models/update-bank-order-request-dto.js +23 -0
- package/dist/models/update-bank-order-response-class.d.ts +25 -0
- package/dist/models/update-bank-order-response-class.js +15 -0
- package/models/bank-order-class.ts +121 -0
- package/models/bank-transaction-class-without-expand-properties.ts +21 -18
- package/models/bank-transaction-class.ts +25 -22
- package/models/bank-transaction-invoice-class.ts +66 -0
- package/models/bank-transfer-dto.ts +31 -0
- package/models/billing-address-dto.ts +60 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
- package/models/complete-eis-payment-setup-request-dto.ts +42 -0
- package/models/complete-payment-setup-request-dto.ts +7 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
- package/models/create-bank-order-request-dto.ts +84 -0
- package/models/create-bank-order-response-class.ts +31 -0
- package/models/create-payment-order-dto.ts +54 -0
- package/models/create-payment-order-request-dto.ts +54 -0
- package/models/create-payment-reminder-request-dto.ts +7 -1
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-policy-payment-method-request-dto.ts +36 -0
- package/models/create-policy-payment-method-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +23 -2
- package/models/deactivated-payment-reminder-class.ts +7 -1
- package/models/exceeding-credit-class.ts +125 -0
- package/models/financial-account-class.ts +120 -0
- package/models/get-bank-order-response-class.ts +31 -0
- package/models/get-exceeding-credit-response-class.ts +31 -0
- package/models/index.ts +22 -1
- package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
- package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
- package/models/initiate-payment-setup-request-dto.ts +3 -2
- package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
- package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
- package/models/link-bank-transaction-request-dto-rest.ts +4 -3
- package/models/list-bank-orders-response-class.ts +37 -0
- package/models/list-exceeding-credits-response-class.ts +37 -0
- package/models/payment-class-without-expand-properties.ts +7 -1
- package/models/payment-class.ts +7 -1
- package/models/payment-method-class.ts +6 -0
- package/models/payment-reminder-class.ts +7 -1
- package/models/policy-payment-method-class.ts +79 -0
- package/models/refund-class.ts +7 -1
- package/models/unlinked-bank-transaction-response-class.ts +21 -0
- package/models/update-bank-order-request-dto.ts +71 -0
- package/models/update-bank-order-response-class.ts +31 -0
- package/package.json +1 -1
- /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → bank-order-class.js} +0 -0
|
@@ -33,8 +33,6 @@ import { LinkBankTransactionsResponseClass } from '../models';
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { ListBankTransactionsResponseClass } from '../models';
|
|
35
35
|
// @ts-ignore
|
|
36
|
-
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
37
|
-
// @ts-ignore
|
|
38
36
|
import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
39
37
|
// URLSearchParams not necessarily used
|
|
40
38
|
// @ts-ignore
|
|
@@ -96,7 +94,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
96
94
|
* @summary Retrieve the bank transaction
|
|
97
95
|
* @param {string} code
|
|
98
96
|
* @param {string} [authorization] Bearer Token
|
|
99
|
-
* @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,
|
|
97
|
+
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
100
98
|
* @param {*} [options] Override http request option.
|
|
101
99
|
* @throws {RequiredError}
|
|
102
100
|
*/
|
|
@@ -144,7 +142,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
144
142
|
/**
|
|
145
143
|
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
146
144
|
* @summary Create the bank transactions
|
|
147
|
-
* @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml
|
|
145
|
+
* @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
|
|
148
146
|
* @param {string} [authorization] Bearer Token
|
|
149
147
|
* @param {*} [options] Override http request option.
|
|
150
148
|
* @throws {RequiredError}
|
|
@@ -249,15 +247,17 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
249
247
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
250
248
|
* @summary List bank transactions
|
|
251
249
|
* @param {string} [authorization] Bearer Token
|
|
250
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
251
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
252
252
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
253
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
254
253
|
* @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>
|
|
255
254
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
|
|
256
|
-
* @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,
|
|
255
|
+
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
256
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
257
257
|
* @param {*} [options] Override http request option.
|
|
258
258
|
* @throws {RequiredError}
|
|
259
259
|
*/
|
|
260
|
-
listBankTransactions: async (authorization?: string,
|
|
260
|
+
listBankTransactions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
261
261
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions`;
|
|
262
262
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
263
263
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -276,12 +276,16 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
276
276
|
// http bearer authentication required
|
|
277
277
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
278
278
|
|
|
279
|
-
if (
|
|
280
|
-
localVarQueryParameter['
|
|
279
|
+
if (pageSize !== undefined) {
|
|
280
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
if (
|
|
284
|
-
localVarQueryParameter['
|
|
283
|
+
if (pageToken !== undefined) {
|
|
284
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (filter !== undefined) {
|
|
288
|
+
localVarQueryParameter['filter'] = filter;
|
|
285
289
|
}
|
|
286
290
|
|
|
287
291
|
if (search !== undefined) {
|
|
@@ -296,6 +300,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
296
300
|
localVarQueryParameter['expand'] = expand;
|
|
297
301
|
}
|
|
298
302
|
|
|
303
|
+
if (filters !== undefined) {
|
|
304
|
+
localVarQueryParameter['filters'] = filters;
|
|
305
|
+
}
|
|
306
|
+
|
|
299
307
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
300
308
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
301
309
|
}
|
|
@@ -315,16 +323,13 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
315
323
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
316
324
|
* @summary Unlink bank transaction
|
|
317
325
|
* @param {string} code Code of the bank transaction to unlink
|
|
318
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
319
326
|
* @param {string} [authorization] Bearer Token
|
|
320
327
|
* @param {*} [options] Override http request option.
|
|
321
328
|
* @throws {RequiredError}
|
|
322
329
|
*/
|
|
323
|
-
unlinkBankTransaction: async (code: string,
|
|
330
|
+
unlinkBankTransaction: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
324
331
|
// verify required parameter 'code' is not null or undefined
|
|
325
332
|
assertParamExists('unlinkBankTransaction', 'code', code)
|
|
326
|
-
// verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
|
|
327
|
-
assertParamExists('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest)
|
|
328
333
|
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/unlink`
|
|
329
334
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
330
335
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -350,12 +355,9 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
350
355
|
|
|
351
356
|
|
|
352
357
|
|
|
353
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
354
|
-
|
|
355
358
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
356
359
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
357
360
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
358
|
-
localVarRequestOptions.data = serializeDataIfNeeded(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration)
|
|
359
361
|
|
|
360
362
|
return {
|
|
361
363
|
url: toPathString(localVarUrlObj),
|
|
@@ -389,7 +391,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
389
391
|
* @summary Retrieve the bank transaction
|
|
390
392
|
* @param {string} code
|
|
391
393
|
* @param {string} [authorization] Bearer Token
|
|
392
|
-
* @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,
|
|
394
|
+
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
393
395
|
* @param {*} [options] Override http request option.
|
|
394
396
|
* @throws {RequiredError}
|
|
395
397
|
*/
|
|
@@ -400,7 +402,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
400
402
|
/**
|
|
401
403
|
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
402
404
|
* @summary Create the bank transactions
|
|
403
|
-
* @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml
|
|
405
|
+
* @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
|
|
404
406
|
* @param {string} [authorization] Bearer Token
|
|
405
407
|
* @param {*} [options] Override http request option.
|
|
406
408
|
* @throws {RequiredError}
|
|
@@ -426,29 +428,30 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
426
428
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
427
429
|
* @summary List bank transactions
|
|
428
430
|
* @param {string} [authorization] Bearer Token
|
|
431
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
432
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
429
433
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
430
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
431
434
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
432
435
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
|
|
433
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount,
|
|
436
|
+
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
437
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
434
438
|
* @param {*} [options] Override http request option.
|
|
435
439
|
* @throws {RequiredError}
|
|
436
440
|
*/
|
|
437
|
-
async listBankTransactions(authorization?: string,
|
|
438
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization,
|
|
441
|
+
async listBankTransactions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
|
|
442
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
439
443
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
440
444
|
},
|
|
441
445
|
/**
|
|
442
446
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
443
447
|
* @summary Unlink bank transaction
|
|
444
448
|
* @param {string} code Code of the bank transaction to unlink
|
|
445
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
446
449
|
* @param {string} [authorization] Bearer Token
|
|
447
450
|
* @param {*} [options] Override http request option.
|
|
448
451
|
* @throws {RequiredError}
|
|
449
452
|
*/
|
|
450
|
-
async unlinkBankTransaction(code: string,
|
|
451
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code,
|
|
453
|
+
async unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlinkBankTransactionsResponseClass>> {
|
|
454
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options);
|
|
452
455
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
453
456
|
},
|
|
454
457
|
}
|
|
@@ -477,7 +480,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
477
480
|
* @summary Retrieve the bank transaction
|
|
478
481
|
* @param {string} code
|
|
479
482
|
* @param {string} [authorization] Bearer Token
|
|
480
|
-
* @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,
|
|
483
|
+
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
481
484
|
* @param {*} [options] Override http request option.
|
|
482
485
|
* @throws {RequiredError}
|
|
483
486
|
*/
|
|
@@ -487,7 +490,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
487
490
|
/**
|
|
488
491
|
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
489
492
|
* @summary Create the bank transactions
|
|
490
|
-
* @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml
|
|
493
|
+
* @param {any} file MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
|
|
491
494
|
* @param {string} [authorization] Bearer Token
|
|
492
495
|
* @param {*} [options] Override http request option.
|
|
493
496
|
* @throws {RequiredError}
|
|
@@ -511,28 +514,29 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
511
514
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
512
515
|
* @summary List bank transactions
|
|
513
516
|
* @param {string} [authorization] Bearer Token
|
|
517
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
518
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
514
519
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
515
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
516
520
|
* @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>
|
|
517
521
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
|
|
518
|
-
* @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,
|
|
522
|
+
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
523
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
519
524
|
* @param {*} [options] Override http request option.
|
|
520
525
|
* @throws {RequiredError}
|
|
521
526
|
*/
|
|
522
|
-
listBankTransactions(authorization?: string,
|
|
523
|
-
return localVarFp.listBankTransactions(authorization,
|
|
527
|
+
listBankTransactions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
|
|
528
|
+
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
524
529
|
},
|
|
525
530
|
/**
|
|
526
531
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
527
532
|
* @summary Unlink bank transaction
|
|
528
533
|
* @param {string} code Code of the bank transaction to unlink
|
|
529
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
530
534
|
* @param {string} [authorization] Bearer Token
|
|
531
535
|
* @param {*} [options] Override http request option.
|
|
532
536
|
* @throws {RequiredError}
|
|
533
537
|
*/
|
|
534
|
-
unlinkBankTransaction(code: string,
|
|
535
|
-
return localVarFp.unlinkBankTransaction(code,
|
|
538
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<UnlinkBankTransactionsResponseClass> {
|
|
539
|
+
return localVarFp.unlinkBankTransaction(code, authorization, options).then((request) => request(axios, basePath));
|
|
536
540
|
},
|
|
537
541
|
};
|
|
538
542
|
};
|
|
@@ -579,7 +583,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
579
583
|
readonly authorization?: string
|
|
580
584
|
|
|
581
585
|
/**
|
|
582
|
-
* 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,
|
|
586
|
+
* 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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
583
587
|
* @type {string}
|
|
584
588
|
* @memberof BankTransactionApiGetBankTransaction
|
|
585
589
|
*/
|
|
@@ -593,7 +597,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
593
597
|
*/
|
|
594
598
|
export interface BankTransactionApiImportBankTransactionsRequest {
|
|
595
599
|
/**
|
|
596
|
-
* MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml
|
|
600
|
+
* MT940/CAMT.053 file to import bank transactions from. Extension must be .txt .sta or .xml.<br/> Allowed Content Types: text/plain, application/octet-stream, application/xml, text/xml
|
|
597
601
|
* @type {any}
|
|
598
602
|
* @memberof BankTransactionApiImportBankTransactions
|
|
599
603
|
*/
|
|
@@ -649,18 +653,25 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
649
653
|
readonly authorization?: string
|
|
650
654
|
|
|
651
655
|
/**
|
|
652
|
-
*
|
|
656
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
657
|
+
* @type {number}
|
|
658
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
659
|
+
*/
|
|
660
|
+
readonly pageSize?: number
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* 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.
|
|
653
664
|
* @type {string}
|
|
654
665
|
* @memberof BankTransactionApiListBankTransactions
|
|
655
666
|
*/
|
|
656
|
-
readonly
|
|
667
|
+
readonly pageToken?: string
|
|
657
668
|
|
|
658
669
|
/**
|
|
659
|
-
*
|
|
670
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
660
671
|
* @type {string}
|
|
661
672
|
* @memberof BankTransactionApiListBankTransactions
|
|
662
673
|
*/
|
|
663
|
-
readonly
|
|
674
|
+
readonly filter?: string
|
|
664
675
|
|
|
665
676
|
/**
|
|
666
677
|
* 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>
|
|
@@ -677,11 +688,18 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
677
688
|
readonly order?: string
|
|
678
689
|
|
|
679
690
|
/**
|
|
680
|
-
* 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,
|
|
691
|
+
* 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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
681
692
|
* @type {string}
|
|
682
693
|
* @memberof BankTransactionApiListBankTransactions
|
|
683
694
|
*/
|
|
684
695
|
readonly expand?: string
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
699
|
+
* @type {string}
|
|
700
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
701
|
+
*/
|
|
702
|
+
readonly filters?: string
|
|
685
703
|
}
|
|
686
704
|
|
|
687
705
|
/**
|
|
@@ -697,13 +715,6 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
697
715
|
*/
|
|
698
716
|
readonly code: string
|
|
699
717
|
|
|
700
|
-
/**
|
|
701
|
-
*
|
|
702
|
-
* @type {UnlinkBankTransactionRequestDtoRest}
|
|
703
|
-
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
704
|
-
*/
|
|
705
|
-
readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest
|
|
706
|
-
|
|
707
718
|
/**
|
|
708
719
|
* Bearer Token
|
|
709
720
|
* @type {string}
|
|
@@ -776,7 +787,7 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
776
787
|
* @memberof BankTransactionApi
|
|
777
788
|
*/
|
|
778
789
|
public listBankTransactions(requestParameters: BankTransactionApiListBankTransactionsRequest = {}, options?: AxiosRequestConfig) {
|
|
779
|
-
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.
|
|
790
|
+
return BankTransactionApiFp(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
780
791
|
}
|
|
781
792
|
|
|
782
793
|
/**
|
|
@@ -788,6 +799,6 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
788
799
|
* @memberof BankTransactionApi
|
|
789
800
|
*/
|
|
790
801
|
public unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig) {
|
|
791
|
-
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.
|
|
802
|
+
return BankTransactionApiFp(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
792
803
|
}
|
|
793
804
|
}
|