@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
|
@@ -18,7 +18,6 @@ import { ImportBankTransactionsResponseClass } from '../models';
|
|
|
18
18
|
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
19
19
|
import { LinkBankTransactionsResponseClass } from '../models';
|
|
20
20
|
import { ListBankTransactionsResponseClass } from '../models';
|
|
21
|
-
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
22
21
|
import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
23
22
|
/**
|
|
24
23
|
* BankTransactionApi - axios parameter creator
|
|
@@ -39,7 +38,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
39
38
|
* @summary Retrieve the bank transaction
|
|
40
39
|
* @param {string} code
|
|
41
40
|
* @param {string} [authorization] Bearer Token
|
|
42
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount,
|
|
41
|
+
* @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>
|
|
43
42
|
* @param {*} [options] Override http request option.
|
|
44
43
|
* @throws {RequiredError}
|
|
45
44
|
*/
|
|
@@ -47,7 +46,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
47
46
|
/**
|
|
48
47
|
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
49
48
|
* @summary Create the bank transactions
|
|
50
|
-
* @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
|
|
49
|
+
* @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
|
|
51
50
|
* @param {string} [authorization] Bearer Token
|
|
52
51
|
* @param {*} [options] Override http request option.
|
|
53
52
|
* @throws {RequiredError}
|
|
@@ -67,25 +66,26 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
67
66
|
* 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\"
|
|
68
67
|
* @summary List bank transactions
|
|
69
68
|
* @param {string} [authorization] Bearer Token
|
|
69
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
70
|
+
* @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.
|
|
70
71
|
* @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>
|
|
71
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
72
72
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
|
|
73
73
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
|
|
74
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount,
|
|
74
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
75
|
+
* @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>
|
|
75
76
|
* @param {*} [options] Override http request option.
|
|
76
77
|
* @throws {RequiredError}
|
|
77
78
|
*/
|
|
78
|
-
listBankTransactions: (authorization?: string,
|
|
79
|
+
listBankTransactions: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
80
|
/**
|
|
80
81
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
81
82
|
* @summary Unlink bank transaction
|
|
82
83
|
* @param {string} code Code of the bank transaction to unlink
|
|
83
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
84
84
|
* @param {string} [authorization] Bearer Token
|
|
85
85
|
* @param {*} [options] Override http request option.
|
|
86
86
|
* @throws {RequiredError}
|
|
87
87
|
*/
|
|
88
|
-
unlinkBankTransaction: (code: string,
|
|
88
|
+
unlinkBankTransaction: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
89
89
|
};
|
|
90
90
|
/**
|
|
91
91
|
* BankTransactionApi - functional programming interface
|
|
@@ -106,7 +106,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
106
106
|
* @summary Retrieve the bank transaction
|
|
107
107
|
* @param {string} code
|
|
108
108
|
* @param {string} [authorization] Bearer Token
|
|
109
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount,
|
|
109
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
110
110
|
* @param {*} [options] Override http request option.
|
|
111
111
|
* @throws {RequiredError}
|
|
112
112
|
*/
|
|
@@ -114,7 +114,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
114
114
|
/**
|
|
115
115
|
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
116
116
|
* @summary Create the bank transactions
|
|
117
|
-
* @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
|
|
117
|
+
* @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
|
|
118
118
|
* @param {string} [authorization] Bearer Token
|
|
119
119
|
* @param {*} [options] Override http request option.
|
|
120
120
|
* @throws {RequiredError}
|
|
@@ -134,25 +134,26 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
134
134
|
* 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\"
|
|
135
135
|
* @summary List bank transactions
|
|
136
136
|
* @param {string} [authorization] Bearer Token
|
|
137
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
138
|
+
* @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.
|
|
137
139
|
* @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>
|
|
138
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
139
140
|
* @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>
|
|
140
141
|
* @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>
|
|
141
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount,
|
|
142
|
+
* @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>
|
|
143
|
+
* @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>
|
|
142
144
|
* @param {*} [options] Override http request option.
|
|
143
145
|
* @throws {RequiredError}
|
|
144
146
|
*/
|
|
145
|
-
listBankTransactions(authorization?: string,
|
|
147
|
+
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>>;
|
|
146
148
|
/**
|
|
147
149
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
148
150
|
* @summary Unlink bank transaction
|
|
149
151
|
* @param {string} code Code of the bank transaction to unlink
|
|
150
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
151
152
|
* @param {string} [authorization] Bearer Token
|
|
152
153
|
* @param {*} [options] Override http request option.
|
|
153
154
|
* @throws {RequiredError}
|
|
154
155
|
*/
|
|
155
|
-
unlinkBankTransaction(code: string,
|
|
156
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlinkBankTransactionsResponseClass>>;
|
|
156
157
|
};
|
|
157
158
|
/**
|
|
158
159
|
* BankTransactionApi - factory interface
|
|
@@ -173,7 +174,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
173
174
|
* @summary Retrieve the bank transaction
|
|
174
175
|
* @param {string} code
|
|
175
176
|
* @param {string} [authorization] Bearer Token
|
|
176
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount,
|
|
177
|
+
* @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>
|
|
177
178
|
* @param {*} [options] Override http request option.
|
|
178
179
|
* @throws {RequiredError}
|
|
179
180
|
*/
|
|
@@ -181,7 +182,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
181
182
|
/**
|
|
182
183
|
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
183
184
|
* @summary Create the bank transactions
|
|
184
|
-
* @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
|
|
185
|
+
* @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
|
|
185
186
|
* @param {string} [authorization] Bearer Token
|
|
186
187
|
* @param {*} [options] Override http request option.
|
|
187
188
|
* @throws {RequiredError}
|
|
@@ -201,25 +202,26 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
201
202
|
* 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\"
|
|
202
203
|
* @summary List bank transactions
|
|
203
204
|
* @param {string} [authorization] Bearer Token
|
|
205
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
206
|
+
* @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.
|
|
204
207
|
* @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>
|
|
205
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
206
208
|
* @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>
|
|
207
209
|
* @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>
|
|
208
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount,
|
|
210
|
+
* @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>
|
|
211
|
+
* @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>
|
|
209
212
|
* @param {*} [options] Override http request option.
|
|
210
213
|
* @throws {RequiredError}
|
|
211
214
|
*/
|
|
212
|
-
listBankTransactions(authorization?: string,
|
|
215
|
+
listBankTransactions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass>;
|
|
213
216
|
/**
|
|
214
217
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
215
218
|
* @summary Unlink bank transaction
|
|
216
219
|
* @param {string} code Code of the bank transaction to unlink
|
|
217
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
218
220
|
* @param {string} [authorization] Bearer Token
|
|
219
221
|
* @param {*} [options] Override http request option.
|
|
220
222
|
* @throws {RequiredError}
|
|
221
223
|
*/
|
|
222
|
-
unlinkBankTransaction(code: string,
|
|
224
|
+
unlinkBankTransaction(code: string, authorization?: string, options?: any): AxiosPromise<UnlinkBankTransactionsResponseClass>;
|
|
223
225
|
};
|
|
224
226
|
/**
|
|
225
227
|
* Request parameters for generateInvoiceMatchSuggestion operation in BankTransactionApi.
|
|
@@ -259,7 +261,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
259
261
|
*/
|
|
260
262
|
readonly authorization?: string;
|
|
261
263
|
/**
|
|
262
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount,
|
|
264
|
+
* 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>
|
|
263
265
|
* @type {string}
|
|
264
266
|
* @memberof BankTransactionApiGetBankTransaction
|
|
265
267
|
*/
|
|
@@ -272,7 +274,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
272
274
|
*/
|
|
273
275
|
export interface BankTransactionApiImportBankTransactionsRequest {
|
|
274
276
|
/**
|
|
275
|
-
* 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
|
|
277
|
+
* 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
|
|
276
278
|
* @type {any}
|
|
277
279
|
* @memberof BankTransactionApiImportBankTransactions
|
|
278
280
|
*/
|
|
@@ -322,17 +324,23 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
322
324
|
*/
|
|
323
325
|
readonly authorization?: string;
|
|
324
326
|
/**
|
|
325
|
-
*
|
|
327
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
328
|
+
* @type {number}
|
|
329
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
330
|
+
*/
|
|
331
|
+
readonly pageSize?: number;
|
|
332
|
+
/**
|
|
333
|
+
* 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.
|
|
326
334
|
* @type {string}
|
|
327
335
|
* @memberof BankTransactionApiListBankTransactions
|
|
328
336
|
*/
|
|
329
|
-
readonly
|
|
337
|
+
readonly pageToken?: string;
|
|
330
338
|
/**
|
|
331
|
-
*
|
|
339
|
+
* 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>
|
|
332
340
|
* @type {string}
|
|
333
341
|
* @memberof BankTransactionApiListBankTransactions
|
|
334
342
|
*/
|
|
335
|
-
readonly
|
|
343
|
+
readonly filter?: string;
|
|
336
344
|
/**
|
|
337
345
|
* 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>
|
|
338
346
|
* @type {string}
|
|
@@ -346,11 +354,17 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
346
354
|
*/
|
|
347
355
|
readonly order?: string;
|
|
348
356
|
/**
|
|
349
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount,
|
|
357
|
+
* 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>
|
|
350
358
|
* @type {string}
|
|
351
359
|
* @memberof BankTransactionApiListBankTransactions
|
|
352
360
|
*/
|
|
353
361
|
readonly expand?: string;
|
|
362
|
+
/**
|
|
363
|
+
* 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>
|
|
364
|
+
* @type {string}
|
|
365
|
+
* @memberof BankTransactionApiListBankTransactions
|
|
366
|
+
*/
|
|
367
|
+
readonly filters?: string;
|
|
354
368
|
}
|
|
355
369
|
/**
|
|
356
370
|
* Request parameters for unlinkBankTransaction operation in BankTransactionApi.
|
|
@@ -364,12 +378,6 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
364
378
|
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
365
379
|
*/
|
|
366
380
|
readonly code: string;
|
|
367
|
-
/**
|
|
368
|
-
*
|
|
369
|
-
* @type {UnlinkBankTransactionRequestDtoRest}
|
|
370
|
-
* @memberof BankTransactionApiUnlinkBankTransaction
|
|
371
|
-
*/
|
|
372
|
-
readonly unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest;
|
|
373
381
|
/**
|
|
374
382
|
* Bearer Token
|
|
375
383
|
* @type {string}
|
|
@@ -149,7 +149,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
149
149
|
* @summary Retrieve the bank transaction
|
|
150
150
|
* @param {string} code
|
|
151
151
|
* @param {string} [authorization] Bearer Token
|
|
152
|
-
* @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,
|
|
152
|
+
* @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>
|
|
153
153
|
* @param {*} [options] Override http request option.
|
|
154
154
|
* @throws {RequiredError}
|
|
155
155
|
*/
|
|
@@ -199,7 +199,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
199
199
|
/**
|
|
200
200
|
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
201
201
|
* @summary Create the bank transactions
|
|
202
|
-
* @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
|
|
202
|
+
* @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
|
|
203
203
|
* @param {string} [authorization] Bearer Token
|
|
204
204
|
* @param {*} [options] Override http request option.
|
|
205
205
|
* @throws {RequiredError}
|
|
@@ -306,15 +306,17 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
306
306
|
* 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\"
|
|
307
307
|
* @summary List bank transactions
|
|
308
308
|
* @param {string} [authorization] Bearer Token
|
|
309
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
310
|
+
* @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.
|
|
309
311
|
* @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>
|
|
310
|
-
* @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>
|
|
311
312
|
* @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>
|
|
312
313
|
* @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>
|
|
313
|
-
* @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,
|
|
314
|
+
* @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>
|
|
315
|
+
* @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>
|
|
314
316
|
* @param {*} [options] Override http request option.
|
|
315
317
|
* @throws {RequiredError}
|
|
316
318
|
*/
|
|
317
|
-
listBankTransactions: function (authorization,
|
|
319
|
+
listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
318
320
|
if (options === void 0) { options = {}; }
|
|
319
321
|
return __awaiter(_this, void 0, void 0, function () {
|
|
320
322
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -337,12 +339,15 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
337
339
|
// authentication bearer required
|
|
338
340
|
// http bearer authentication required
|
|
339
341
|
_a.sent();
|
|
342
|
+
if (pageSize !== undefined) {
|
|
343
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
344
|
+
}
|
|
345
|
+
if (pageToken !== undefined) {
|
|
346
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
347
|
+
}
|
|
340
348
|
if (filter !== undefined) {
|
|
341
349
|
localVarQueryParameter['filter'] = filter;
|
|
342
350
|
}
|
|
343
|
-
if (filters !== undefined) {
|
|
344
|
-
localVarQueryParameter['filters'] = filters;
|
|
345
|
-
}
|
|
346
351
|
if (search !== undefined) {
|
|
347
352
|
localVarQueryParameter['search'] = search;
|
|
348
353
|
}
|
|
@@ -352,6 +357,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
352
357
|
if (expand !== undefined) {
|
|
353
358
|
localVarQueryParameter['expand'] = expand;
|
|
354
359
|
}
|
|
360
|
+
if (filters !== undefined) {
|
|
361
|
+
localVarQueryParameter['filters'] = filters;
|
|
362
|
+
}
|
|
355
363
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
356
364
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
357
365
|
}
|
|
@@ -370,12 +378,11 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
370
378
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
371
379
|
* @summary Unlink bank transaction
|
|
372
380
|
* @param {string} code Code of the bank transaction to unlink
|
|
373
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
374
381
|
* @param {string} [authorization] Bearer Token
|
|
375
382
|
* @param {*} [options] Override http request option.
|
|
376
383
|
* @throws {RequiredError}
|
|
377
384
|
*/
|
|
378
|
-
unlinkBankTransaction: function (code,
|
|
385
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
379
386
|
if (options === void 0) { options = {}; }
|
|
380
387
|
return __awaiter(_this, void 0, void 0, function () {
|
|
381
388
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -384,8 +391,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
384
391
|
case 0:
|
|
385
392
|
// verify required parameter 'code' is not null or undefined
|
|
386
393
|
(0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
|
|
387
|
-
// verify required parameter 'unlinkBankTransactionRequestDtoRest' is not null or undefined
|
|
388
|
-
(0, common_1.assertParamExists)('unlinkBankTransaction', 'unlinkBankTransactionRequestDtoRest', unlinkBankTransactionRequestDtoRest);
|
|
389
394
|
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/unlink"
|
|
390
395
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
391
396
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -406,11 +411,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
406
411
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
407
412
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
408
413
|
}
|
|
409
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
410
414
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
411
415
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
412
416
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
413
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(unlinkBankTransactionRequestDtoRest, localVarRequestOptions, configuration);
|
|
414
417
|
return [2 /*return*/, {
|
|
415
418
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
416
419
|
options: localVarRequestOptions,
|
|
@@ -455,7 +458,7 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
455
458
|
* @summary Retrieve the bank transaction
|
|
456
459
|
* @param {string} code
|
|
457
460
|
* @param {string} [authorization] Bearer Token
|
|
458
|
-
* @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,
|
|
461
|
+
* @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>
|
|
459
462
|
* @param {*} [options] Override http request option.
|
|
460
463
|
* @throws {RequiredError}
|
|
461
464
|
*/
|
|
@@ -475,7 +478,7 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
475
478
|
/**
|
|
476
479
|
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
477
480
|
* @summary Create the bank transactions
|
|
478
|
-
* @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
|
|
481
|
+
* @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
|
|
479
482
|
* @param {string} [authorization] Bearer Token
|
|
480
483
|
* @param {*} [options] Override http request option.
|
|
481
484
|
* @throws {RequiredError}
|
|
@@ -519,20 +522,22 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
519
522
|
* 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\"
|
|
520
523
|
* @summary List bank transactions
|
|
521
524
|
* @param {string} [authorization] Bearer Token
|
|
525
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
526
|
+
* @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.
|
|
522
527
|
* @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>
|
|
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>
|
|
524
528
|
* @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>
|
|
525
529
|
* @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>
|
|
526
|
-
* @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,
|
|
530
|
+
* @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>
|
|
531
|
+
* @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>
|
|
527
532
|
* @param {*} [options] Override http request option.
|
|
528
533
|
* @throws {RequiredError}
|
|
529
534
|
*/
|
|
530
|
-
listBankTransactions: function (authorization,
|
|
535
|
+
listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
531
536
|
return __awaiter(this, void 0, void 0, function () {
|
|
532
537
|
var localVarAxiosArgs;
|
|
533
538
|
return __generator(this, function (_a) {
|
|
534
539
|
switch (_a.label) {
|
|
535
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankTransactions(authorization,
|
|
540
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
536
541
|
case 1:
|
|
537
542
|
localVarAxiosArgs = _a.sent();
|
|
538
543
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -544,17 +549,16 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
544
549
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
545
550
|
* @summary Unlink bank transaction
|
|
546
551
|
* @param {string} code Code of the bank transaction to unlink
|
|
547
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
548
552
|
* @param {string} [authorization] Bearer Token
|
|
549
553
|
* @param {*} [options] Override http request option.
|
|
550
554
|
* @throws {RequiredError}
|
|
551
555
|
*/
|
|
552
|
-
unlinkBankTransaction: function (code,
|
|
556
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
553
557
|
return __awaiter(this, void 0, void 0, function () {
|
|
554
558
|
var localVarAxiosArgs;
|
|
555
559
|
return __generator(this, function (_a) {
|
|
556
560
|
switch (_a.label) {
|
|
557
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code,
|
|
561
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.unlinkBankTransaction(code, authorization, options)];
|
|
558
562
|
case 1:
|
|
559
563
|
localVarAxiosArgs = _a.sent();
|
|
560
564
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -588,7 +592,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
588
592
|
* @summary Retrieve the bank transaction
|
|
589
593
|
* @param {string} code
|
|
590
594
|
* @param {string} [authorization] Bearer Token
|
|
591
|
-
* @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,
|
|
595
|
+
* @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>
|
|
592
596
|
* @param {*} [options] Override http request option.
|
|
593
597
|
* @throws {RequiredError}
|
|
594
598
|
*/
|
|
@@ -598,7 +602,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
598
602
|
/**
|
|
599
603
|
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
600
604
|
* @summary Create the bank transactions
|
|
601
|
-
* @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
|
|
605
|
+
* @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
|
|
602
606
|
* @param {string} [authorization] Bearer Token
|
|
603
607
|
* @param {*} [options] Override http request option.
|
|
604
608
|
* @throws {RequiredError}
|
|
@@ -622,28 +626,29 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
622
626
|
* 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\"
|
|
623
627
|
* @summary List bank transactions
|
|
624
628
|
* @param {string} [authorization] Bearer Token
|
|
629
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
630
|
+
* @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.
|
|
625
631
|
* @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>
|
|
626
|
-
* @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>
|
|
627
632
|
* @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>
|
|
628
633
|
* @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>
|
|
629
|
-
* @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,
|
|
634
|
+
* @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>
|
|
635
|
+
* @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>
|
|
630
636
|
* @param {*} [options] Override http request option.
|
|
631
637
|
* @throws {RequiredError}
|
|
632
638
|
*/
|
|
633
|
-
listBankTransactions: function (authorization,
|
|
634
|
-
return localVarFp.listBankTransactions(authorization,
|
|
639
|
+
listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
640
|
+
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
635
641
|
},
|
|
636
642
|
/**
|
|
637
643
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
638
644
|
* @summary Unlink bank transaction
|
|
639
645
|
* @param {string} code Code of the bank transaction to unlink
|
|
640
|
-
* @param {UnlinkBankTransactionRequestDtoRest} unlinkBankTransactionRequestDtoRest
|
|
641
646
|
* @param {string} [authorization] Bearer Token
|
|
642
647
|
* @param {*} [options] Override http request option.
|
|
643
648
|
* @throws {RequiredError}
|
|
644
649
|
*/
|
|
645
|
-
unlinkBankTransaction: function (code,
|
|
646
|
-
return localVarFp.unlinkBankTransaction(code,
|
|
650
|
+
unlinkBankTransaction: function (code, authorization, options) {
|
|
651
|
+
return localVarFp.unlinkBankTransaction(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
647
652
|
},
|
|
648
653
|
};
|
|
649
654
|
};
|
|
@@ -718,7 +723,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
718
723
|
BankTransactionApi.prototype.listBankTransactions = function (requestParameters, options) {
|
|
719
724
|
var _this = this;
|
|
720
725
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
721
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.
|
|
726
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
722
727
|
};
|
|
723
728
|
/**
|
|
724
729
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
@@ -730,7 +735,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
730
735
|
*/
|
|
731
736
|
BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
|
|
732
737
|
var _this = this;
|
|
733
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.
|
|
738
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
734
739
|
};
|
|
735
740
|
return BankTransactionApi;
|
|
736
741
|
}(base_1.BaseAPI));
|