@emilgroup/payment-sdk 1.22.1-beta.81 → 1.22.1-beta.83
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 +0 -6
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +18 -48
- package/api/bank-orders-api.ts +15 -40
- package/api/bank-transaction-api.ts +26 -181
- package/api/billing-addresses-api.ts +15 -40
- package/api/credit-allocation-api.ts +9 -24
- package/api/exceeding-credits-api.ts +6 -128
- package/api/health-check-api.ts +1 -1
- package/api/ibanvalidator-api.ts +3 -8
- package/api/payment-methods-api.ts +9 -24
- package/api/payment-receipts-api.ts +15 -40
- package/api/payment-reminders-api.ts +12 -32
- package/api/payment-requests-api.ts +27 -52
- package/api/payment-setup-api.ts +6 -16
- package/api/payments-api.ts +16 -46
- package/api/payout-methods-api.ts +18 -48
- package/api/policy-payment-methods-api.ts +9 -24
- package/api/refunds-api.ts +9 -24
- package/api/tenant-bank-account-api.ts +15 -40
- package/api/webhooks-api.ts +2 -2
- package/base.ts +43 -239
- package/common.ts +2 -3
- package/configuration.ts +0 -20
- package/dist/api/bank-accounts-api.d.ts +6 -6
- package/dist/api/bank-accounts-api.js +46 -82
- package/dist/api/bank-orders-api.d.ts +5 -5
- package/dist/api/bank-orders-api.js +38 -67
- package/dist/api/bank-transaction-api.d.ts +14 -80
- package/dist/api/bank-transaction-api.js +52 -194
- package/dist/api/billing-addresses-api.d.ts +5 -5
- package/dist/api/billing-addresses-api.js +39 -71
- package/dist/api/credit-allocation-api.d.ts +3 -3
- package/dist/api/credit-allocation-api.js +23 -41
- package/dist/api/exceeding-credits-api.d.ts +2 -59
- package/dist/api/exceeding-credits-api.js +15 -126
- 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 +8 -15
- package/dist/api/payment-methods-api.d.ts +3 -3
- package/dist/api/payment-methods-api.js +23 -41
- package/dist/api/payment-receipts-api.d.ts +5 -5
- package/dist/api/payment-receipts-api.js +38 -67
- package/dist/api/payment-reminders-api.d.ts +4 -4
- package/dist/api/payment-reminders-api.js +31 -56
- package/dist/api/payment-requests-api.d.ts +17 -17
- package/dist/api/payment-requests-api.js +47 -76
- package/dist/api/payment-setup-api.d.ts +2 -2
- package/dist/api/payment-setup-api.js +16 -30
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +34 -62
- package/dist/api/payout-methods-api.d.ts +6 -6
- package/dist/api/payout-methods-api.js +46 -82
- package/dist/api/policy-payment-methods-api.d.ts +3 -3
- package/dist/api/policy-payment-methods-api.js +23 -41
- package/dist/api/refunds-api.d.ts +3 -3
- package/dist/api/refunds-api.js +22 -37
- package/dist/api/tenant-bank-account-api.d.ts +5 -5
- package/dist/api/tenant-bank-account-api.js +38 -67
- package/dist/api/webhooks-api.d.ts +2 -2
- package/dist/api/webhooks-api.js +2 -2
- package/dist/base.d.ts +0 -26
- package/dist/base.js +60 -243
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/dist/configuration.d.ts +0 -17
- package/dist/configuration.js +0 -2
- package/dist/models/bank-transaction-class.d.ts +0 -7
- package/dist/models/bank-transaction-entity.d.ts +0 -7
- package/dist/models/bank-transaction-invoice-entity.d.ts +0 -24
- package/dist/models/create-payment-order-dto.d.ts +1 -1
- package/dist/models/create-payment-receipt-request-dto.d.ts +3 -3
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/create-payment-request-request-dto.d.ts +0 -6
- package/dist/models/credit-allocation-class.d.ts +0 -6
- package/dist/models/credit-allocation-entity.d.ts +0 -6
- package/dist/models/exceeding-credit-entity.d.ts +0 -6
- package/dist/models/index.d.ts +0 -6
- package/dist/models/index.js +0 -6
- package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
- package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
- package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
- package/dist/models/list-payment-requests-response-class.d.ts +18 -6
- package/dist/models/list-payout-methods-response-class.d.ts +9 -9
- package/dist/models/list-refunds-response-class.d.ts +18 -6
- package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
- package/dist/models/payment-class.d.ts +2 -2
- package/dist/models/payment-entity.d.ts +1 -1
- package/dist/models/payment-receipt-class.d.ts +1 -13
- package/dist/models/payment-request-class.d.ts +6 -13
- package/dist/models/payment-request-class.js +0 -1
- package/dist/models/shared-transaction-class.d.ts +0 -6
- package/dist/models/transaction-entity.d.ts +0 -6
- package/models/bank-transaction-class.ts +0 -7
- package/models/bank-transaction-entity.ts +0 -7
- package/models/bank-transaction-invoice-entity.ts +0 -24
- package/models/create-payment-order-dto.ts +1 -1
- package/models/create-payment-receipt-request-dto.ts +3 -3
- package/models/create-payment-request-dto.ts +1 -1
- package/models/create-payment-request-request-dto.ts +0 -6
- package/models/credit-allocation-class.ts +0 -6
- package/models/credit-allocation-entity.ts +0 -6
- package/models/exceeding-credit-entity.ts +0 -6
- package/models/index.ts +0 -6
- package/models/list-billing-addresses-response-class.ts +9 -9
- package/models/list-exceeding-credits-response-class.ts +18 -6
- package/models/list-payment-receipts-response-class.ts +9 -9
- package/models/list-payment-requests-response-class.ts +18 -6
- package/models/list-payout-methods-response-class.ts +9 -9
- package/models/list-refunds-response-class.ts +18 -6
- package/models/payment-class-without-expand-properties.ts +2 -2
- package/models/payment-class.ts +2 -2
- package/models/payment-entity.ts +1 -1
- package/models/payment-receipt-class.ts +1 -13
- package/models/payment-request-class.ts +6 -13
- package/models/shared-transaction-class.ts +0 -6
- package/models/transaction-entity.ts +0 -6
- package/package.json +2 -2
- package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
- package/dist/models/create-exceeding-credit-request-dto.js +0 -15
- package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
- package/dist/models/create-exceeding-credit-response-class.js +0 -15
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +0 -30
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +0 -15
- package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +0 -25
- package/dist/models/link-bank-transaction-payment-requests-response-class.js +0 -15
- package/dist/models/payment-receipt-entity.d.ts +0 -139
- package/dist/models/payment-receipt-entity.js +0 -20
- package/dist/models/payment-request-entity.d.ts +0 -223
- package/dist/models/payment-request-entity.js +0 -39
- package/models/create-exceeding-credit-request-dto.ts +0 -54
- package/models/create-exceeding-credit-response-class.ts +0 -31
- package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +0 -36
- package/models/link-bank-transaction-payment-requests-response-class.ts +0 -31
- package/models/payment-receipt-entity.ts +0 -148
- package/models/payment-request-entity.ts +0 -233
|
@@ -103,10 +103,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
generateInvoiceMatchSuggestion: function (code, 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,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
switch (_b.label) {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
110
109
|
case 0:
|
|
111
110
|
// verify required parameter 'code' is not null or undefined
|
|
112
111
|
(0, common_1.assertParamExists)('generateInvoiceMatchSuggestion', 'code', code);
|
|
@@ -122,19 +121,13 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
122
121
|
localVarQueryParameter = {};
|
|
123
122
|
// authentication bearer required
|
|
124
123
|
// http bearer authentication required
|
|
125
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
126
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
127
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
128
|
-
];
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
129
125
|
case 1:
|
|
130
126
|
// authentication bearer required
|
|
131
127
|
// http bearer authentication required
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
136
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
137
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
128
|
+
_a.sent();
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
138
131
|
}
|
|
139
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
140
133
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -152,17 +145,16 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
152
145
|
* @summary Retrieve the bank transaction
|
|
153
146
|
* @param {string} code
|
|
154
147
|
* @param {string} [authorization] Bearer Token
|
|
155
|
-
* @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
|
|
148
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
156
149
|
* @param {*} [options] Override http request option.
|
|
157
150
|
* @throws {RequiredError}
|
|
158
151
|
*/
|
|
159
152
|
getBankTransaction: function (code, authorization, expand, options) {
|
|
160
153
|
if (options === void 0) { options = {}; }
|
|
161
154
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
switch (_b.label) {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
166
158
|
case 0:
|
|
167
159
|
// verify required parameter 'code' is not null or undefined
|
|
168
160
|
(0, common_1.assertParamExists)('getBankTransaction', 'code', code);
|
|
@@ -182,15 +174,12 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
182
174
|
case 1:
|
|
183
175
|
// authentication bearer required
|
|
184
176
|
// http bearer authentication required
|
|
185
|
-
|
|
177
|
+
_a.sent();
|
|
186
178
|
if (expand !== undefined) {
|
|
187
179
|
localVarQueryParameter['expand'] = expand;
|
|
188
180
|
}
|
|
189
|
-
|
|
190
|
-
|
|
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);
|
|
181
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
194
183
|
}
|
|
195
184
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
196
185
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -214,10 +203,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
214
203
|
importBankTransactions: function (file, authorization, options) {
|
|
215
204
|
if (options === void 0) { options = {}; }
|
|
216
205
|
return __awaiter(_this, void 0, void 0, function () {
|
|
217
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
switch (_b.label) {
|
|
206
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
207
|
+
return __generator(this, function (_a) {
|
|
208
|
+
switch (_a.label) {
|
|
221
209
|
case 0:
|
|
222
210
|
// verify required parameter 'file' is not null or undefined
|
|
223
211
|
(0, common_1.assertParamExists)('importBankTransactions', 'file', file);
|
|
@@ -233,19 +221,13 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
233
221
|
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
234
222
|
// authentication bearer required
|
|
235
223
|
// http bearer authentication required
|
|
236
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
237
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
238
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
239
|
-
];
|
|
224
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
240
225
|
case 1:
|
|
241
226
|
// authentication bearer required
|
|
242
227
|
// http bearer authentication required
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
247
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
248
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
228
|
+
_a.sent();
|
|
229
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
230
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
249
231
|
}
|
|
250
232
|
if (file !== undefined) {
|
|
251
233
|
localVarFormParams.append('file', file);
|
|
@@ -274,10 +256,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
274
256
|
linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
|
|
275
257
|
if (options === void 0) { options = {}; }
|
|
276
258
|
return __awaiter(_this, void 0, void 0, function () {
|
|
277
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
switch (_b.label) {
|
|
259
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
260
|
+
return __generator(this, function (_a) {
|
|
261
|
+
switch (_a.label) {
|
|
281
262
|
case 0:
|
|
282
263
|
// verify required parameter 'code' is not null or undefined
|
|
283
264
|
(0, common_1.assertParamExists)('linkBankTransaction', 'code', code);
|
|
@@ -295,19 +276,13 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
295
276
|
localVarQueryParameter = {};
|
|
296
277
|
// authentication bearer required
|
|
297
278
|
// http bearer authentication required
|
|
298
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
299
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
300
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
301
|
-
];
|
|
279
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
302
280
|
case 1:
|
|
303
281
|
// authentication bearer required
|
|
304
282
|
// http bearer authentication required
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
309
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
310
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
283
|
+
_a.sent();
|
|
284
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
285
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
311
286
|
}
|
|
312
287
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
313
288
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -322,66 +297,6 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
322
297
|
});
|
|
323
298
|
});
|
|
324
299
|
},
|
|
325
|
-
/**
|
|
326
|
-
* 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 that hold no received money (no receipts, or receipts that net to zero because the money came back in a collect receipt), 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\"
|
|
327
|
-
* @summary Link bank transaction to payment requests
|
|
328
|
-
* @param {string} code Code of the outgoing bank transaction to link
|
|
329
|
-
* @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
|
|
330
|
-
* @param {string} [authorization] Bearer Token
|
|
331
|
-
* @param {*} [options] Override http request option.
|
|
332
|
-
* @throws {RequiredError}
|
|
333
|
-
*/
|
|
334
|
-
linkBankTransactionPaymentRequests: function (code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options) {
|
|
335
|
-
if (options === void 0) { options = {}; }
|
|
336
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
337
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
338
|
-
var _a;
|
|
339
|
-
return __generator(this, function (_b) {
|
|
340
|
-
switch (_b.label) {
|
|
341
|
-
case 0:
|
|
342
|
-
// verify required parameter 'code' is not null or undefined
|
|
343
|
-
(0, common_1.assertParamExists)('linkBankTransactionPaymentRequests', 'code', code);
|
|
344
|
-
// verify required parameter 'linkBankTransactionPaymentRequestsRequestDtoRest' is not null or undefined
|
|
345
|
-
(0, common_1.assertParamExists)('linkBankTransactionPaymentRequests', 'linkBankTransactionPaymentRequestsRequestDtoRest', linkBankTransactionPaymentRequestsRequestDtoRest);
|
|
346
|
-
localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link-payment-requests"
|
|
347
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
348
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
349
|
-
if (configuration) {
|
|
350
|
-
baseOptions = configuration.baseOptions;
|
|
351
|
-
baseAccessToken = configuration.accessToken;
|
|
352
|
-
}
|
|
353
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
354
|
-
localVarHeaderParameter = {};
|
|
355
|
-
localVarQueryParameter = {};
|
|
356
|
-
// authentication bearer required
|
|
357
|
-
// http bearer authentication required
|
|
358
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
359
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
360
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
361
|
-
];
|
|
362
|
-
case 1:
|
|
363
|
-
// authentication bearer required
|
|
364
|
-
// http bearer authentication required
|
|
365
|
-
_b.sent();
|
|
366
|
-
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
367
|
-
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
368
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
369
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
370
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
371
|
-
}
|
|
372
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
373
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
374
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
375
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
376
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkBankTransactionPaymentRequestsRequestDtoRest, localVarRequestOptions, configuration);
|
|
377
|
-
return [2 /*return*/, {
|
|
378
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
379
|
-
options: localVarRequestOptions,
|
|
380
|
-
}];
|
|
381
|
-
}
|
|
382
|
-
});
|
|
383
|
-
});
|
|
384
|
-
},
|
|
385
300
|
/**
|
|
386
301
|
* 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\"
|
|
387
302
|
* @summary List bank transactions
|
|
@@ -391,7 +306,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
391
306
|
* @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>
|
|
392
307
|
* @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>
|
|
393
308
|
* @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>
|
|
394
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices
|
|
309
|
+
* @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>
|
|
395
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>
|
|
396
311
|
* @param {*} [options] Override http request option.
|
|
397
312
|
* @throws {RequiredError}
|
|
@@ -399,10 +314,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
399
314
|
listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
400
315
|
if (options === void 0) { options = {}; }
|
|
401
316
|
return __awaiter(_this, void 0, void 0, function () {
|
|
402
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
switch (_b.label) {
|
|
317
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
318
|
+
return __generator(this, function (_a) {
|
|
319
|
+
switch (_a.label) {
|
|
406
320
|
case 0:
|
|
407
321
|
localVarPath = "/paymentservice/v1/tenant/bank-transactions";
|
|
408
322
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -419,7 +333,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
419
333
|
case 1:
|
|
420
334
|
// authentication bearer required
|
|
421
335
|
// http bearer authentication required
|
|
422
|
-
|
|
336
|
+
_a.sent();
|
|
423
337
|
if (pageSize !== undefined) {
|
|
424
338
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
425
339
|
}
|
|
@@ -441,11 +355,8 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
441
355
|
if (filters !== undefined) {
|
|
442
356
|
localVarQueryParameter['filters'] = filters;
|
|
443
357
|
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
447
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
448
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
358
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
359
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
449
360
|
}
|
|
450
361
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
451
362
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -469,10 +380,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
469
380
|
unlinkBankTransaction: function (code, authorization, options) {
|
|
470
381
|
if (options === void 0) { options = {}; }
|
|
471
382
|
return __awaiter(_this, void 0, void 0, function () {
|
|
472
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
switch (_b.label) {
|
|
383
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
384
|
+
return __generator(this, function (_a) {
|
|
385
|
+
switch (_a.label) {
|
|
476
386
|
case 0:
|
|
477
387
|
// verify required parameter 'code' is not null or undefined
|
|
478
388
|
(0, common_1.assertParamExists)('unlinkBankTransaction', 'code', code);
|
|
@@ -488,19 +398,13 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
|
|
|
488
398
|
localVarQueryParameter = {};
|
|
489
399
|
// authentication bearer required
|
|
490
400
|
// http bearer authentication required
|
|
491
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
492
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
493
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
494
|
-
];
|
|
401
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
495
402
|
case 1:
|
|
496
403
|
// authentication bearer required
|
|
497
404
|
// http bearer authentication required
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
502
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
503
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
405
|
+
_a.sent();
|
|
406
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
407
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
504
408
|
}
|
|
505
409
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
506
410
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -549,7 +453,7 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
549
453
|
* @summary Retrieve the bank transaction
|
|
550
454
|
* @param {string} code
|
|
551
455
|
* @param {string} [authorization] Bearer Token
|
|
552
|
-
* @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
|
|
456
|
+
* @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>
|
|
553
457
|
* @param {*} [options] Override http request option.
|
|
554
458
|
* @throws {RequiredError}
|
|
555
459
|
*/
|
|
@@ -609,28 +513,6 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
609
513
|
});
|
|
610
514
|
});
|
|
611
515
|
},
|
|
612
|
-
/**
|
|
613
|
-
* 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 that hold no received money (no receipts, or receipts that net to zero because the money came back in a collect receipt), 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\"
|
|
614
|
-
* @summary Link bank transaction to payment requests
|
|
615
|
-
* @param {string} code Code of the outgoing bank transaction to link
|
|
616
|
-
* @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
|
|
617
|
-
* @param {string} [authorization] Bearer Token
|
|
618
|
-
* @param {*} [options] Override http request option.
|
|
619
|
-
* @throws {RequiredError}
|
|
620
|
-
*/
|
|
621
|
-
linkBankTransactionPaymentRequests: function (code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options) {
|
|
622
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
623
|
-
var localVarAxiosArgs;
|
|
624
|
-
return __generator(this, function (_a) {
|
|
625
|
-
switch (_a.label) {
|
|
626
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransactionPaymentRequests(code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options)];
|
|
627
|
-
case 1:
|
|
628
|
-
localVarAxiosArgs = _a.sent();
|
|
629
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
630
|
-
}
|
|
631
|
-
});
|
|
632
|
-
});
|
|
633
|
-
},
|
|
634
516
|
/**
|
|
635
517
|
* 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\"
|
|
636
518
|
* @summary List bank transactions
|
|
@@ -640,7 +522,7 @@ var BankTransactionApiFp = function (configuration) {
|
|
|
640
522
|
* @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>
|
|
641
523
|
* @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>
|
|
642
524
|
* @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>
|
|
643
|
-
* @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
|
|
525
|
+
* @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>
|
|
644
526
|
* @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>
|
|
645
527
|
* @param {*} [options] Override http request option.
|
|
646
528
|
* @throws {RequiredError}
|
|
@@ -705,7 +587,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
705
587
|
* @summary Retrieve the bank transaction
|
|
706
588
|
* @param {string} code
|
|
707
589
|
* @param {string} [authorization] Bearer Token
|
|
708
|
-
* @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
|
|
590
|
+
* @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>
|
|
709
591
|
* @param {*} [options] Override http request option.
|
|
710
592
|
* @throws {RequiredError}
|
|
711
593
|
*/
|
|
@@ -735,18 +617,6 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
735
617
|
linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
|
|
736
618
|
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
737
619
|
},
|
|
738
|
-
/**
|
|
739
|
-
* 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 that hold no received money (no receipts, or receipts that net to zero because the money came back in a collect receipt), 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\"
|
|
740
|
-
* @summary Link bank transaction to payment requests
|
|
741
|
-
* @param {string} code Code of the outgoing bank transaction to link
|
|
742
|
-
* @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
|
|
743
|
-
* @param {string} [authorization] Bearer Token
|
|
744
|
-
* @param {*} [options] Override http request option.
|
|
745
|
-
* @throws {RequiredError}
|
|
746
|
-
*/
|
|
747
|
-
linkBankTransactionPaymentRequests: function (code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options) {
|
|
748
|
-
return localVarFp.linkBankTransactionPaymentRequests(code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
749
|
-
},
|
|
750
620
|
/**
|
|
751
621
|
* 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\"
|
|
752
622
|
* @summary List bank transactions
|
|
@@ -756,7 +626,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
|
|
|
756
626
|
* @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>
|
|
757
627
|
* @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>
|
|
758
628
|
* @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>
|
|
759
|
-
* @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
|
|
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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
760
630
|
* @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>
|
|
761
631
|
* @param {*} [options] Override http request option.
|
|
762
632
|
* @throws {RequiredError}
|
|
@@ -799,7 +669,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
799
669
|
*/
|
|
800
670
|
BankTransactionApi.prototype.generateInvoiceMatchSuggestion = function (requestParameters, options) {
|
|
801
671
|
var _this = this;
|
|
802
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).generateInvoiceMatchSuggestion(requestParameters.code, requestParameters.authorization,
|
|
672
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).generateInvoiceMatchSuggestion(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
803
673
|
};
|
|
804
674
|
/**
|
|
805
675
|
* 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\"
|
|
@@ -811,7 +681,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
811
681
|
*/
|
|
812
682
|
BankTransactionApi.prototype.getBankTransaction = function (requestParameters, options) {
|
|
813
683
|
var _this = this;
|
|
814
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).getBankTransaction(requestParameters.code, requestParameters.authorization, requestParameters.expand,
|
|
684
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).getBankTransaction(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
815
685
|
};
|
|
816
686
|
/**
|
|
817
687
|
* This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
@@ -823,7 +693,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
823
693
|
*/
|
|
824
694
|
BankTransactionApi.prototype.importBankTransactions = function (requestParameters, options) {
|
|
825
695
|
var _this = this;
|
|
826
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.file, requestParameters.authorization,
|
|
696
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).importBankTransactions(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
827
697
|
};
|
|
828
698
|
/**
|
|
829
699
|
* Links a bank transaction with an invoice **Required Permissions** \"payment-management.bank-accounts.create\"
|
|
@@ -835,19 +705,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
835
705
|
*/
|
|
836
706
|
BankTransactionApi.prototype.linkBankTransaction = function (requestParameters, options) {
|
|
837
707
|
var _this = this;
|
|
838
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization,
|
|
839
|
-
};
|
|
840
|
-
/**
|
|
841
|
-
* 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 that hold no received money (no receipts, or receipts that net to zero because the money came back in a collect receipt), 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\"
|
|
842
|
-
* @summary Link bank transaction to payment requests
|
|
843
|
-
* @param {BankTransactionApiLinkBankTransactionPaymentRequestsRequest} requestParameters Request parameters.
|
|
844
|
-
* @param {*} [options] Override http request option.
|
|
845
|
-
* @throws {RequiredError}
|
|
846
|
-
* @memberof BankTransactionApi
|
|
847
|
-
*/
|
|
848
|
-
BankTransactionApi.prototype.linkBankTransactionPaymentRequests = function (requestParameters, options) {
|
|
849
|
-
var _this = this;
|
|
850
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransactionPaymentRequests(requestParameters.code, requestParameters.linkBankTransactionPaymentRequestsRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
708
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
851
709
|
};
|
|
852
710
|
/**
|
|
853
711
|
* 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\"
|
|
@@ -860,7 +718,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
860
718
|
BankTransactionApi.prototype.listBankTransactions = function (requestParameters, options) {
|
|
861
719
|
var _this = this;
|
|
862
720
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
863
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).listBankTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
721
|
+
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); });
|
|
864
722
|
};
|
|
865
723
|
/**
|
|
866
724
|
* Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
@@ -872,7 +730,7 @@ var BankTransactionApi = /** @class */ (function (_super) {
|
|
|
872
730
|
*/
|
|
873
731
|
BankTransactionApi.prototype.unlinkBankTransaction = function (requestParameters, options) {
|
|
874
732
|
var _this = this;
|
|
875
|
-
return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization,
|
|
733
|
+
return (0, exports.BankTransactionApiFp)(this.configuration).unlinkBankTransaction(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
876
734
|
};
|
|
877
735
|
return BankTransactionApi;
|
|
878
736
|
}(base_1.BaseAPI));
|
|
@@ -344,7 +344,7 @@ export declare class BillingAddressesApi extends BaseAPI {
|
|
|
344
344
|
* @throws {RequiredError}
|
|
345
345
|
* @memberof BillingAddressesApi
|
|
346
346
|
*/
|
|
347
|
-
createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBillingAddressResponseClass, any, {}
|
|
347
|
+
createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBillingAddressResponseClass, any, {}>>;
|
|
348
348
|
/**
|
|
349
349
|
* Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
|
|
350
350
|
* @summary Delete the Billing Address
|
|
@@ -353,7 +353,7 @@ export declare class BillingAddressesApi extends BaseAPI {
|
|
|
353
353
|
* @throws {RequiredError}
|
|
354
354
|
* @memberof BillingAddressesApi
|
|
355
355
|
*/
|
|
356
|
-
deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}
|
|
356
|
+
deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
357
357
|
/**
|
|
358
358
|
* Retrieves the details of the Billing Address that was previously created. Supply the unique Billing Address code that was returned when you created it and Emil Api will return the corresponding Billing Address information. **Required Permissions** \"payment-management.payments.view\"
|
|
359
359
|
* @summary Retrieve the Billing Address
|
|
@@ -362,7 +362,7 @@ export declare class BillingAddressesApi extends BaseAPI {
|
|
|
362
362
|
* @throws {RequiredError}
|
|
363
363
|
* @memberof BillingAddressesApi
|
|
364
364
|
*/
|
|
365
|
-
getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBillingAddressResponseClass, any, {}
|
|
365
|
+
getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBillingAddressResponseClass, any, {}>>;
|
|
366
366
|
/**
|
|
367
367
|
* Returns a list of Billing Addresses you have previously created. The Billing Addresses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
368
368
|
* @summary List Billing Addresses
|
|
@@ -371,7 +371,7 @@ export declare class BillingAddressesApi extends BaseAPI {
|
|
|
371
371
|
* @throws {RequiredError}
|
|
372
372
|
* @memberof BillingAddressesApi
|
|
373
373
|
*/
|
|
374
|
-
listBillingAddresses(requestParameters?: BillingAddressesApiListBillingAddressesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBillingAddressesResponseClass, any, {}
|
|
374
|
+
listBillingAddresses(requestParameters?: BillingAddressesApiListBillingAddressesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBillingAddressesResponseClass, any, {}>>;
|
|
375
375
|
/**
|
|
376
376
|
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
377
377
|
* @summary Update the Billing Address
|
|
@@ -380,5 +380,5 @@ export declare class BillingAddressesApi extends BaseAPI {
|
|
|
380
380
|
* @throws {RequiredError}
|
|
381
381
|
* @memberof BillingAddressesApi
|
|
382
382
|
*/
|
|
383
|
-
updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBillingAddressResponseClass, any, {}
|
|
383
|
+
updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBillingAddressResponseClass, any, {}>>;
|
|
384
384
|
}
|