@emilgroup/payment-sdk 1.22.1-beta.8 → 1.22.1-beta.80
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 +4 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +48 -18
- package/api/bank-orders-api.ts +48 -23
- package/api/bank-transaction-api.ts +181 -26
- package/api/billing-addresses-api.ts +40 -15
- package/api/credit-allocation-api.ts +24 -9
- package/api/exceeding-credits-api.ts +24 -9
- package/api/health-check-api.ts +1 -1
- package/api/ibanvalidator-api.ts +8 -3
- package/api/payment-methods-api.ts +24 -9
- package/api/payment-receipts-api.ts +40 -15
- package/api/payment-reminders-api.ts +32 -12
- package/api/payment-requests-api.ts +52 -27
- package/api/payment-setup-api.ts +16 -6
- package/api/payments-api.ts +46 -16
- package/api/payout-methods-api.ts +48 -18
- package/api/policy-payment-methods-api.ts +24 -9
- package/api/refunds-api.ts +24 -9
- package/api/tenant-bank-account-api.ts +40 -15
- package/api/webhooks-api.ts +2 -2
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/bank-accounts-api.d.ts +6 -6
- package/dist/api/bank-accounts-api.js +82 -46
- package/dist/api/bank-orders-api.d.ts +13 -13
- package/dist/api/bank-orders-api.js +73 -44
- package/dist/api/bank-transaction-api.d.ts +80 -14
- package/dist/api/bank-transaction-api.js +194 -52
- package/dist/api/billing-addresses-api.d.ts +5 -5
- package/dist/api/billing-addresses-api.js +71 -39
- package/dist/api/credit-allocation-api.d.ts +3 -3
- package/dist/api/credit-allocation-api.js +41 -23
- package/dist/api/exceeding-credits-api.d.ts +3 -3
- package/dist/api/exceeding-credits-api.js +41 -23
- package/dist/api/health-check-api.d.ts +1 -1
- package/dist/api/health-check-api.js +1 -1
- package/dist/api/ibanvalidator-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.js +15 -8
- package/dist/api/payment-methods-api.d.ts +3 -3
- package/dist/api/payment-methods-api.js +41 -23
- package/dist/api/payment-receipts-api.d.ts +5 -5
- package/dist/api/payment-receipts-api.js +67 -38
- package/dist/api/payment-reminders-api.d.ts +4 -4
- package/dist/api/payment-reminders-api.js +56 -31
- package/dist/api/payment-requests-api.d.ts +17 -17
- package/dist/api/payment-requests-api.js +76 -47
- package/dist/api/payment-setup-api.d.ts +2 -2
- package/dist/api/payment-setup-api.js +30 -16
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +62 -34
- package/dist/api/payout-methods-api.d.ts +6 -6
- package/dist/api/payout-methods-api.js +82 -46
- package/dist/api/policy-payment-methods-api.d.ts +3 -3
- package/dist/api/policy-payment-methods-api.js +41 -23
- package/dist/api/refunds-api.d.ts +3 -3
- package/dist/api/refunds-api.js +37 -22
- package/dist/api/tenant-bank-account-api.d.ts +5 -5
- package/dist/api/tenant-bank-account-api.js +67 -38
- package/dist/api/webhooks-api.d.ts +2 -2
- package/dist/api/webhooks-api.js +2 -2
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/bank-order-entity.d.ts +1 -0
- package/dist/models/bank-order-entity.js +1 -0
- package/dist/models/bank-transaction-class.d.ts +7 -0
- package/dist/models/bank-transaction-entity.d.ts +7 -0
- package/dist/models/bank-transaction-invoice-entity.d.ts +24 -0
- package/dist/models/create-bank-order-request-dto.d.ts +3 -2
- package/dist/models/create-bank-order-request-dto.js +1 -0
- package/dist/models/create-payment-order-dto.d.ts +1 -1
- package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/exceeding-credit-entity.d.ts +6 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +30 -0
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +15 -0
- package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +25 -0
- package/dist/models/link-bank-transaction-payment-requests-response-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-receipt-class.d.ts +13 -1
- package/dist/models/payment-receipt-entity.d.ts +139 -0
- package/dist/models/payment-receipt-entity.js +20 -0
- package/dist/models/payment-request-class.d.ts +19 -0
- package/dist/models/payment-request-class.js +1 -0
- package/dist/models/payment-request-entity.d.ts +223 -0
- package/dist/models/payment-request-entity.js +39 -0
- package/dist/models/shared-transaction-class.d.ts +6 -0
- package/dist/models/transaction-entity.d.ts +6 -0
- package/dist/models/update-bank-order-request-dto.d.ts +2 -2
- package/models/bank-order-entity.ts +1 -0
- package/models/bank-transaction-class.ts +7 -0
- package/models/bank-transaction-entity.ts +7 -0
- package/models/bank-transaction-invoice-entity.ts +24 -0
- package/models/create-bank-order-request-dto.ts +3 -2
- package/models/create-payment-order-dto.ts +1 -1
- package/models/create-payment-receipt-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +1 -1
- package/models/exceeding-credit-entity.ts +6 -0
- package/models/index.ts +4 -0
- package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +36 -0
- package/models/link-bank-transaction-payment-requests-response-class.ts +31 -0
- package/models/payment-class-without-expand-properties.ts +1 -1
- package/models/payment-class.ts +1 -1
- package/models/payment-receipt-class.ts +13 -1
- package/models/payment-receipt-entity.ts +148 -0
- package/models/payment-request-class.ts +19 -0
- package/models/payment-request-entity.ts +233 -0
- package/models/shared-transaction-class.ts +6 -0
- package/models/transaction-entity.ts +6 -0
- package/models/update-bank-order-request-dto.ts +2 -2
- package/package.json +2 -2
|
@@ -103,9 +103,10 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createBankOrder: function (createBankOrderRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'createBankOrderRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('createBankOrder', 'createBankOrderRequestDto', createBankOrderRequestDto);
|
|
@@ -120,13 +121,19 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
120
121
|
localVarQueryParameter = {};
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
];
|
|
124
128
|
case 1:
|
|
125
129
|
// authentication bearer required
|
|
126
130
|
// http bearer authentication required
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
137
|
}
|
|
131
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,9 +159,10 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
152
159
|
deleteBankOrder: function (code, authorization, options) {
|
|
153
160
|
if (options === void 0) { options = {}; }
|
|
154
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
-
|
|
157
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
158
166
|
case 0:
|
|
159
167
|
// verify required parameter 'code' is not null or undefined
|
|
160
168
|
(0, common_1.assertParamExists)('deleteBankOrder', 'code', code);
|
|
@@ -170,13 +178,19 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
170
178
|
localVarQueryParameter = {};
|
|
171
179
|
// authentication bearer required
|
|
172
180
|
// http bearer authentication required
|
|
173
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
182
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
+
];
|
|
174
185
|
case 1:
|
|
175
186
|
// authentication bearer required
|
|
176
187
|
// http bearer authentication required
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
188
|
+
_b.sent();
|
|
189
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
190
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
193
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
180
194
|
}
|
|
181
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
196
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -201,9 +215,10 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
201
215
|
getBankOrder: function (code, authorization, expand, options) {
|
|
202
216
|
if (options === void 0) { options = {}; }
|
|
203
217
|
return __awaiter(_this, void 0, void 0, function () {
|
|
204
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
205
|
-
|
|
206
|
-
|
|
218
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
219
|
+
var _a;
|
|
220
|
+
return __generator(this, function (_b) {
|
|
221
|
+
switch (_b.label) {
|
|
207
222
|
case 0:
|
|
208
223
|
// verify required parameter 'code' is not null or undefined
|
|
209
224
|
(0, common_1.assertParamExists)('getBankOrder', 'code', code);
|
|
@@ -223,12 +238,15 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
223
238
|
case 1:
|
|
224
239
|
// authentication bearer required
|
|
225
240
|
// http bearer authentication required
|
|
226
|
-
|
|
241
|
+
_b.sent();
|
|
227
242
|
if (expand !== undefined) {
|
|
228
243
|
localVarQueryParameter['expand'] = expand;
|
|
229
244
|
}
|
|
230
|
-
|
|
231
|
-
|
|
245
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
246
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
247
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
248
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
249
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
232
250
|
}
|
|
233
251
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
252
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -247,20 +265,21 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
247
265
|
* @param {string} [authorization] Bearer Token
|
|
248
266
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
249
267
|
* @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.
|
|
250
|
-
* @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, orderNumber, status, type, tenantBankAccountCode</i>
|
|
268
|
+
* @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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
251
269
|
* @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: code, description, orderNumber, tenantBankAccountCode</i>
|
|
252
270
|
* @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, executionDate, dueDate, orderNumber, tenantBankAccountCode, amount, createdAt, updatedAt</i>
|
|
253
271
|
* @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: tenantBankAccount, xmlFile<i>
|
|
254
|
-
* @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, orderNumber, status, type, tenantBankAccountCode</i>
|
|
272
|
+
* @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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
255
273
|
* @param {*} [options] Override http request option.
|
|
256
274
|
* @throws {RequiredError}
|
|
257
275
|
*/
|
|
258
276
|
listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
259
277
|
if (options === void 0) { options = {}; }
|
|
260
278
|
return __awaiter(_this, void 0, void 0, function () {
|
|
261
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
262
|
-
|
|
263
|
-
|
|
279
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
280
|
+
var _a;
|
|
281
|
+
return __generator(this, function (_b) {
|
|
282
|
+
switch (_b.label) {
|
|
264
283
|
case 0:
|
|
265
284
|
localVarPath = "/paymentservice/v1/bank-orders";
|
|
266
285
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -277,7 +296,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
277
296
|
case 1:
|
|
278
297
|
// authentication bearer required
|
|
279
298
|
// http bearer authentication required
|
|
280
|
-
|
|
299
|
+
_b.sent();
|
|
281
300
|
if (pageSize !== undefined) {
|
|
282
301
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
283
302
|
}
|
|
@@ -299,8 +318,11 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
299
318
|
if (filters !== undefined) {
|
|
300
319
|
localVarQueryParameter['filters'] = filters;
|
|
301
320
|
}
|
|
302
|
-
|
|
303
|
-
|
|
321
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
322
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
323
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
324
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
325
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
304
326
|
}
|
|
305
327
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
306
328
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -325,9 +347,10 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
325
347
|
updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
|
|
326
348
|
if (options === void 0) { options = {}; }
|
|
327
349
|
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
|
-
|
|
330
|
-
|
|
350
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
351
|
+
var _a;
|
|
352
|
+
return __generator(this, function (_b) {
|
|
353
|
+
switch (_b.label) {
|
|
331
354
|
case 0:
|
|
332
355
|
// verify required parameter 'code' is not null or undefined
|
|
333
356
|
(0, common_1.assertParamExists)('updateBankOrder', 'code', code);
|
|
@@ -345,13 +368,19 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
345
368
|
localVarQueryParameter = {};
|
|
346
369
|
// authentication bearer required
|
|
347
370
|
// http bearer authentication required
|
|
348
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
371
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
372
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
373
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
374
|
+
];
|
|
349
375
|
case 1:
|
|
350
376
|
// authentication bearer required
|
|
351
377
|
// http bearer authentication required
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
378
|
+
_b.sent();
|
|
379
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
380
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
381
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
382
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
383
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
355
384
|
}
|
|
356
385
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
357
386
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -446,11 +475,11 @@ var BankOrdersApiFp = function (configuration) {
|
|
|
446
475
|
* @param {string} [authorization] Bearer Token
|
|
447
476
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
448
477
|
* @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.
|
|
449
|
-
* @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, orderNumber, status, type, tenantBankAccountCode</i>
|
|
478
|
+
* @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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
450
479
|
* @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: code, description, orderNumber, tenantBankAccountCode</i>
|
|
451
480
|
* @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, executionDate, dueDate, orderNumber, tenantBankAccountCode, amount, createdAt, updatedAt</i>
|
|
452
481
|
* @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: tenantBankAccount, xmlFile<i>
|
|
453
|
-
* @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, orderNumber, status, type, tenantBankAccountCode</i>
|
|
482
|
+
* @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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
454
483
|
* @param {*} [options] Override http request option.
|
|
455
484
|
* @throws {RequiredError}
|
|
456
485
|
*/
|
|
@@ -539,11 +568,11 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
539
568
|
* @param {string} [authorization] Bearer Token
|
|
540
569
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
541
570
|
* @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.
|
|
542
|
-
* @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, orderNumber, status, type, tenantBankAccountCode</i>
|
|
571
|
+
* @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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
543
572
|
* @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: code, description, orderNumber, tenantBankAccountCode</i>
|
|
544
573
|
* @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, executionDate, dueDate, orderNumber, tenantBankAccountCode, amount, createdAt, updatedAt</i>
|
|
545
574
|
* @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: tenantBankAccount, xmlFile<i>
|
|
546
|
-
* @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, orderNumber, status, type, tenantBankAccountCode</i>
|
|
575
|
+
* @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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
547
576
|
* @param {*} [options] Override http request option.
|
|
548
577
|
* @throws {RequiredError}
|
|
549
578
|
*/
|
|
@@ -586,7 +615,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
586
615
|
*/
|
|
587
616
|
BankOrdersApi.prototype.createBankOrder = function (requestParameters, options) {
|
|
588
617
|
var _this = this;
|
|
589
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
618
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
590
619
|
};
|
|
591
620
|
/**
|
|
592
621
|
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
@@ -598,7 +627,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
598
627
|
*/
|
|
599
628
|
BankOrdersApi.prototype.deleteBankOrder = function (requestParameters, options) {
|
|
600
629
|
var _this = this;
|
|
601
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
630
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
602
631
|
};
|
|
603
632
|
/**
|
|
604
633
|
* Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
@@ -610,7 +639,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
610
639
|
*/
|
|
611
640
|
BankOrdersApi.prototype.getBankOrder = function (requestParameters, options) {
|
|
612
641
|
var _this = this;
|
|
613
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
642
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
614
643
|
};
|
|
615
644
|
/**
|
|
616
645
|
* Returns a list of bank orders you have previously created. The bank orders 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-orders.view\"
|
|
@@ -623,7 +652,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
623
652
|
BankOrdersApi.prototype.listBankOrders = function (requestParameters, options) {
|
|
624
653
|
var _this = this;
|
|
625
654
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
626
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).listBankOrders(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); });
|
|
655
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
627
656
|
};
|
|
628
657
|
/**
|
|
629
658
|
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
@@ -635,7 +664,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
635
664
|
*/
|
|
636
665
|
BankOrdersApi.prototype.updateBankOrder = function (requestParameters, options) {
|
|
637
666
|
var _this = this;
|
|
638
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
667
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
639
668
|
};
|
|
640
669
|
return BankOrdersApi;
|
|
641
670
|
}(base_1.BaseAPI));
|
|
@@ -15,6 +15,8 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import { GenerateInvoiceMatchSuggestionsResponseClass } from '../models';
|
|
16
16
|
import { GetBankTransactionsResponseClass } from '../models';
|
|
17
17
|
import { ImportBankTransactionsResponseClass } from '../models';
|
|
18
|
+
import { LinkBankTransactionPaymentRequestsRequestDtoRest } from '../models';
|
|
19
|
+
import { LinkBankTransactionPaymentRequestsResponseClass } from '../models';
|
|
18
20
|
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
19
21
|
import { LinkBankTransactionsResponseClass } from '../models';
|
|
20
22
|
import { ListBankTransactionsResponseClass } from '../models';
|
|
@@ -38,7 +40,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
38
40
|
* @summary Retrieve the bank transaction
|
|
39
41
|
* @param {string} code
|
|
40
42
|
* @param {string} [authorization] Bearer Token
|
|
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
|
+
* @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, paymentReceipts<i>
|
|
42
44
|
* @param {*} [options] Override http request option.
|
|
43
45
|
* @throws {RequiredError}
|
|
44
46
|
*/
|
|
@@ -62,6 +64,16 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
62
64
|
* @throws {RequiredError}
|
|
63
65
|
*/
|
|
64
66
|
linkBankTransaction: (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
|
+
/**
|
|
68
|
+
* Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
|
|
69
|
+
* @summary Link bank transaction to payment requests
|
|
70
|
+
* @param {string} code Code of the outgoing bank transaction to link
|
|
71
|
+
* @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
|
|
72
|
+
* @param {string} [authorization] Bearer Token
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
linkBankTransactionPaymentRequests: (code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
77
|
/**
|
|
66
78
|
* 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\"
|
|
67
79
|
* @summary List bank transactions
|
|
@@ -71,7 +83,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
|
|
|
71
83
|
* @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>
|
|
72
84
|
* @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
85
|
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
86
|
+
* @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, paymentReceipts<i>
|
|
75
87
|
* @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>
|
|
76
88
|
* @param {*} [options] Override http request option.
|
|
77
89
|
* @throws {RequiredError}
|
|
@@ -106,7 +118,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
106
118
|
* @summary Retrieve the bank transaction
|
|
107
119
|
* @param {string} code
|
|
108
120
|
* @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
121
|
+
* @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, paymentReceipts<i>
|
|
110
122
|
* @param {*} [options] Override http request option.
|
|
111
123
|
* @throws {RequiredError}
|
|
112
124
|
*/
|
|
@@ -130,6 +142,16 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
130
142
|
* @throws {RequiredError}
|
|
131
143
|
*/
|
|
132
144
|
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkBankTransactionsResponseClass>>;
|
|
145
|
+
/**
|
|
146
|
+
* Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
|
|
147
|
+
* @summary Link bank transaction to payment requests
|
|
148
|
+
* @param {string} code Code of the outgoing bank transaction to link
|
|
149
|
+
* @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
|
|
150
|
+
* @param {string} [authorization] Bearer Token
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
linkBankTransactionPaymentRequests(code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkBankTransactionPaymentRequestsResponseClass>>;
|
|
133
155
|
/**
|
|
134
156
|
* 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
157
|
* @summary List bank transactions
|
|
@@ -139,7 +161,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
|
|
|
139
161
|
* @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>
|
|
140
162
|
* @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>
|
|
141
163
|
* @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>
|
|
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>
|
|
164
|
+
* @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, paymentReceipts<i>
|
|
143
165
|
* @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>
|
|
144
166
|
* @param {*} [options] Override http request option.
|
|
145
167
|
* @throws {RequiredError}
|
|
@@ -174,7 +196,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
174
196
|
* @summary Retrieve the bank transaction
|
|
175
197
|
* @param {string} code
|
|
176
198
|
* @param {string} [authorization] Bearer Token
|
|
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>
|
|
199
|
+
* @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, paymentReceipts<i>
|
|
178
200
|
* @param {*} [options] Override http request option.
|
|
179
201
|
* @throws {RequiredError}
|
|
180
202
|
*/
|
|
@@ -198,6 +220,16 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
198
220
|
* @throws {RequiredError}
|
|
199
221
|
*/
|
|
200
222
|
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionsResponseClass>;
|
|
223
|
+
/**
|
|
224
|
+
* Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
|
|
225
|
+
* @summary Link bank transaction to payment requests
|
|
226
|
+
* @param {string} code Code of the outgoing bank transaction to link
|
|
227
|
+
* @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
|
|
228
|
+
* @param {string} [authorization] Bearer Token
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
linkBankTransactionPaymentRequests(code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionPaymentRequestsResponseClass>;
|
|
201
233
|
/**
|
|
202
234
|
* 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\"
|
|
203
235
|
* @summary List bank transactions
|
|
@@ -207,7 +239,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
|
|
|
207
239
|
* @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>
|
|
208
240
|
* @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>
|
|
209
241
|
* @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>
|
|
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>
|
|
242
|
+
* @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, paymentReceipts<i>
|
|
211
243
|
* @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>
|
|
212
244
|
* @param {*} [options] Override http request option.
|
|
213
245
|
* @throws {RequiredError}
|
|
@@ -261,7 +293,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
261
293
|
*/
|
|
262
294
|
readonly authorization?: string;
|
|
263
295
|
/**
|
|
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>
|
|
296
|
+
* 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, paymentReceipts<i>
|
|
265
297
|
* @type {string}
|
|
266
298
|
* @memberof BankTransactionApiGetBankTransaction
|
|
267
299
|
*/
|
|
@@ -311,6 +343,31 @@ export interface BankTransactionApiLinkBankTransactionRequest {
|
|
|
311
343
|
*/
|
|
312
344
|
readonly authorization?: string;
|
|
313
345
|
}
|
|
346
|
+
/**
|
|
347
|
+
* Request parameters for linkBankTransactionPaymentRequests operation in BankTransactionApi.
|
|
348
|
+
* @export
|
|
349
|
+
* @interface BankTransactionApiLinkBankTransactionPaymentRequestsRequest
|
|
350
|
+
*/
|
|
351
|
+
export interface BankTransactionApiLinkBankTransactionPaymentRequestsRequest {
|
|
352
|
+
/**
|
|
353
|
+
* Code of the outgoing bank transaction to link
|
|
354
|
+
* @type {string}
|
|
355
|
+
* @memberof BankTransactionApiLinkBankTransactionPaymentRequests
|
|
356
|
+
*/
|
|
357
|
+
readonly code: string;
|
|
358
|
+
/**
|
|
359
|
+
*
|
|
360
|
+
* @type {LinkBankTransactionPaymentRequestsRequestDtoRest}
|
|
361
|
+
* @memberof BankTransactionApiLinkBankTransactionPaymentRequests
|
|
362
|
+
*/
|
|
363
|
+
readonly linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest;
|
|
364
|
+
/**
|
|
365
|
+
* Bearer Token
|
|
366
|
+
* @type {string}
|
|
367
|
+
* @memberof BankTransactionApiLinkBankTransactionPaymentRequests
|
|
368
|
+
*/
|
|
369
|
+
readonly authorization?: string;
|
|
370
|
+
}
|
|
314
371
|
/**
|
|
315
372
|
* Request parameters for listBankTransactions operation in BankTransactionApi.
|
|
316
373
|
* @export
|
|
@@ -354,7 +411,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
354
411
|
*/
|
|
355
412
|
readonly order?: string;
|
|
356
413
|
/**
|
|
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>
|
|
414
|
+
* 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, paymentReceipts<i>
|
|
358
415
|
* @type {string}
|
|
359
416
|
* @memberof BankTransactionApiListBankTransactions
|
|
360
417
|
*/
|
|
@@ -400,7 +457,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
400
457
|
* @throws {RequiredError}
|
|
401
458
|
* @memberof BankTransactionApi
|
|
402
459
|
*/
|
|
403
|
-
generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateInvoiceMatchSuggestionsResponseClass, any, {}>>;
|
|
460
|
+
generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateInvoiceMatchSuggestionsResponseClass, any, {}, any>>;
|
|
404
461
|
/**
|
|
405
462
|
* Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
406
463
|
* @summary Retrieve the bank transaction
|
|
@@ -409,7 +466,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
409
466
|
* @throws {RequiredError}
|
|
410
467
|
* @memberof BankTransactionApi
|
|
411
468
|
*/
|
|
412
|
-
getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any, {}>>;
|
|
469
|
+
getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any, {}, any>>;
|
|
413
470
|
/**
|
|
414
471
|
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
415
472
|
* @summary Create the bank transactions
|
|
@@ -418,7 +475,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
418
475
|
* @throws {RequiredError}
|
|
419
476
|
* @memberof BankTransactionApi
|
|
420
477
|
*/
|
|
421
|
-
importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportBankTransactionsResponseClass, any, {}>>;
|
|
478
|
+
importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportBankTransactionsResponseClass, any, {}, any>>;
|
|
422
479
|
/**
|
|
423
480
|
* Links a bank transaction with an invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
424
481
|
* @summary Link bank transaction
|
|
@@ -427,7 +484,16 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
427
484
|
* @throws {RequiredError}
|
|
428
485
|
* @memberof BankTransactionApi
|
|
429
486
|
*/
|
|
430
|
-
linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionsResponseClass, any, {}>>;
|
|
487
|
+
linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionsResponseClass, any, {}, any>>;
|
|
488
|
+
/**
|
|
489
|
+
* Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
|
|
490
|
+
* @summary Link bank transaction to payment requests
|
|
491
|
+
* @param {BankTransactionApiLinkBankTransactionPaymentRequestsRequest} requestParameters Request parameters.
|
|
492
|
+
* @param {*} [options] Override http request option.
|
|
493
|
+
* @throws {RequiredError}
|
|
494
|
+
* @memberof BankTransactionApi
|
|
495
|
+
*/
|
|
496
|
+
linkBankTransactionPaymentRequests(requestParameters: BankTransactionApiLinkBankTransactionPaymentRequestsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionPaymentRequestsResponseClass, any, {}, any>>;
|
|
431
497
|
/**
|
|
432
498
|
* 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\"
|
|
433
499
|
* @summary List bank transactions
|
|
@@ -436,7 +502,7 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
436
502
|
* @throws {RequiredError}
|
|
437
503
|
* @memberof BankTransactionApi
|
|
438
504
|
*/
|
|
439
|
-
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any, {}>>;
|
|
505
|
+
listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any, {}, any>>;
|
|
440
506
|
/**
|
|
441
507
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
442
508
|
* @summary Unlink bank transaction
|
|
@@ -445,5 +511,5 @@ export declare class BankTransactionApi extends BaseAPI {
|
|
|
445
511
|
* @throws {RequiredError}
|
|
446
512
|
* @memberof BankTransactionApi
|
|
447
513
|
*/
|
|
448
|
-
unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkBankTransactionsResponseClass, any, {}>>;
|
|
514
|
+
unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkBankTransactionsResponseClass, any, {}, any>>;
|
|
449
515
|
}
|