@emilgroup/payment-sdk-node 1.21.1-beta.13 → 1.21.1-beta.131
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 +24 -1
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +55 -13
- package/api/bank-orders-api.ts +130 -57
- package/api/bank-transaction-api.ts +59 -48
- package/api/exceeding-credits-api.ts +353 -0
- package/api/payment-methods-api.ts +59 -17
- package/api/payment-reminders-api.ts +55 -13
- package/api/payments-api.ts +180 -17
- package/api/policy-payment-methods-api.ts +475 -0
- package/api/refunds-api.ts +45 -17
- package/api/tenant-bank-account-api.ts +45 -17
- package/api.ts +4 -0
- package/base.ts +3 -4
- package/common.ts +2 -2
- package/configuration.ts +0 -9
- package/dist/api/bank-accounts-api.d.ts +35 -8
- package/dist/api/bank-accounts-api.js +29 -11
- package/dist/api/bank-orders-api.d.ts +92 -46
- package/dist/api/bank-orders-api.js +83 -52
- package/dist/api/bank-transaction-api.d.ts +39 -31
- package/dist/api/bank-transaction-api.js +36 -31
- package/dist/api/exceeding-credits-api.d.ts +206 -0
- package/dist/api/exceeding-credits-api.js +356 -0
- package/dist/api/payment-methods-api.d.ts +39 -12
- package/dist/api/payment-methods-api.js +32 -14
- package/dist/api/payment-reminders-api.d.ts +35 -8
- package/dist/api/payment-reminders-api.js +29 -11
- package/dist/api/payments-api.d.ts +104 -12
- package/dist/api/payments-api.js +133 -14
- package/dist/api/policy-payment-methods-api.d.ts +272 -0
- package/dist/api/policy-payment-methods-api.js +456 -0
- package/dist/api/refunds-api.d.ts +28 -10
- package/dist/api/refunds-api.js +24 -12
- package/dist/api/tenant-bank-account-api.d.ts +28 -10
- package/dist/api/tenant-bank-account-api.js +24 -12
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +1 -2
- package/dist/base.js +1 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +0 -6
- package/dist/configuration.js +0 -8
- package/dist/models/activate-policy-payment-method-request-dto.d.ts +24 -0
- package/dist/models/bank-order-class.d.ts +23 -3
- package/dist/models/bank-order-xml-file-class.d.ts +72 -0
- package/dist/models/bank-order-xml-file-class.js +15 -0
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
- package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
- package/dist/models/bank-transaction-class.d.ts +22 -22
- package/dist/models/bank-transaction-class.js +5 -0
- package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
- package/dist/models/bank-transaction-invoice-class.js +15 -0
- package/dist/models/bank-transfer-dto.d.ts +25 -0
- package/dist/models/bank-transfer-dto.js +15 -0
- package/dist/models/billing-address-dto.d.ts +60 -0
- package/dist/models/billing-address-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
- package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
- package/dist/models/create-bank-order-request-dto.d.ts +9 -9
- package/dist/models/create-payment-order-dto.d.ts +48 -0
- package/dist/models/create-payment-order-dto.js +15 -0
- package/dist/models/create-payment-order-request-dto.d.ts +48 -0
- package/dist/models/create-payment-order-request-dto.js +15 -0
- package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
- package/dist/models/create-payment-request-dto.d.ts +7 -1
- package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
- package/dist/models/create-policy-payment-method-request-dto.js +15 -0
- package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-policy-payment-method-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +29 -1
- package/dist/models/create-psp-payment-method-request-dto.js +3 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +30 -0
- package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
- package/dist/models/eis-sepa-debit-dto.d.ts +55 -0
- package/dist/models/eis-sepa-debit-dto.js +15 -0
- package/dist/models/exceeding-credit-class.d.ts +116 -0
- package/dist/models/exceeding-credit-class.js +29 -0
- package/dist/models/financial-account-class.d.ts +111 -0
- package/dist/models/financial-account-class.js +24 -0
- package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
- package/dist/models/get-exceeding-credit-response-class.js +15 -0
- package/dist/models/index.d.ts +22 -1
- package/dist/models/index.js +22 -1
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
- package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
- package/dist/models/invoice-allocation-dto.js +15 -0
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
- package/dist/models/list-exceeding-credits-response-class.d.ts +31 -0
- package/dist/models/list-exceeding-credits-response-class.js +15 -0
- package/dist/models/list-policy-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-policy-payment-methods-response-class.js +15 -0
- package/dist/models/mandate-dto.d.ts +43 -0
- package/dist/models/mandate-dto.js +15 -0
- package/dist/models/mandate-hash-data-dto.d.ts +42 -0
- package/dist/models/mandate-hash-data-dto.js +15 -0
- package/dist/models/mandate-reference-class.d.ts +90 -0
- package/dist/models/mandate-reference-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
- package/dist/models/payment-class.d.ts +7 -1
- package/dist/models/payment-method-class.d.ts +6 -0
- package/dist/models/payment-reminder-class.d.ts +7 -1
- package/dist/models/policy-payment-method-class.d.ts +86 -0
- package/dist/models/policy-payment-method-class.js +15 -0
- package/dist/models/refund-class.d.ts +7 -1
- package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +30 -0
- package/dist/models/tenant-bank-account-class.d.ts +30 -0
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
- package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
- package/dist/models/update-bank-order-request-dto.d.ts +12 -12
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +30 -0
- package/models/activate-policy-payment-method-request-dto.ts +30 -0
- package/models/bank-order-class.ts +23 -3
- package/models/bank-order-xml-file-class.ts +78 -0
- package/models/bank-transaction-class-without-expand-properties.ts +21 -18
- package/models/bank-transaction-class.ts +25 -22
- package/models/bank-transaction-invoice-class.ts +66 -0
- package/models/bank-transfer-dto.ts +31 -0
- package/models/billing-address-dto.ts +66 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
- package/models/complete-eis-payment-setup-request-dto.ts +42 -0
- package/models/complete-payment-setup-request-dto.ts +7 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
- package/models/create-bank-order-request-dto.ts +9 -9
- package/models/create-payment-order-dto.ts +54 -0
- package/models/create-payment-order-request-dto.ts +54 -0
- package/models/create-payment-reminder-request-dto.ts +7 -1
- package/models/create-payment-request-dto.ts +7 -1
- package/models/create-policy-payment-method-request-dto.ts +36 -0
- package/models/create-policy-payment-method-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +30 -2
- package/models/create-tenant-bank-account-request-dto.ts +30 -0
- package/models/deactivated-payment-reminder-class.ts +7 -1
- package/models/eis-sepa-debit-dto.ts +61 -0
- package/models/exceeding-credit-class.ts +125 -0
- package/models/financial-account-class.ts +120 -0
- package/models/get-exceeding-credit-response-class.ts +31 -0
- package/models/index.ts +22 -1
- package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
- package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
- package/models/initiate-payment-setup-request-dto.ts +3 -2
- package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
- package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
- package/models/link-bank-transaction-request-dto-rest.ts +4 -3
- package/models/list-exceeding-credits-response-class.ts +37 -0
- package/models/list-policy-payment-methods-response-class.ts +37 -0
- package/models/mandate-dto.ts +49 -0
- package/models/mandate-hash-data-dto.ts +48 -0
- package/models/mandate-reference-class.ts +96 -0
- package/models/payment-class-without-expand-properties.ts +7 -1
- package/models/payment-class.ts +7 -1
- package/models/payment-method-class.ts +6 -0
- package/models/payment-reminder-class.ts +7 -1
- package/models/policy-payment-method-class.ts +92 -0
- package/models/refund-class.ts +7 -1
- package/models/tenant-bank-account-class-without-expand-properties.ts +30 -0
- package/models/tenant-bank-account-class.ts +30 -0
- package/models/unlinked-bank-transaction-response-class.ts +21 -0
- package/models/update-bank-order-request-dto.ts +12 -12
- package/models/update-tenant-bank-account-rest-request-dto.ts +30 -0
- package/package.json +1 -1
- package/tsconfig.json +0 -1
- /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → activate-policy-payment-method-request-dto.js} +0 -0
|
@@ -97,7 +97,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
100
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
101
101
|
* @summary Create the bank order
|
|
102
102
|
* @param {CreateBankOrderRequestDto} createBankOrderRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token
|
|
@@ -146,7 +146,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
149
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
150
150
|
* @summary Delete the bank order
|
|
151
151
|
* @param {string} code Unique identifier for the object.
|
|
152
152
|
* @param {string} [authorization] Bearer Token
|
|
@@ -194,14 +194,15 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
/**
|
|
197
|
-
* 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-
|
|
197
|
+
* 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\"
|
|
198
198
|
* @summary Retrieve the bank order
|
|
199
199
|
* @param {string} code
|
|
200
200
|
* @param {string} [authorization] Bearer Token
|
|
201
|
+
* @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: financialAccount, xmlFile<i>
|
|
201
202
|
* @param {*} [options] Override http request option.
|
|
202
203
|
* @throws {RequiredError}
|
|
203
204
|
*/
|
|
204
|
-
getBankOrder: function (code, authorization, options) {
|
|
205
|
+
getBankOrder: function (code, authorization, expand, options) {
|
|
205
206
|
if (options === void 0) { options = {}; }
|
|
206
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
207
208
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -227,6 +228,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
227
228
|
// authentication bearer required
|
|
228
229
|
// http bearer authentication required
|
|
229
230
|
_a.sent();
|
|
231
|
+
if (expand !== undefined) {
|
|
232
|
+
localVarQueryParameter['expand'] = expand;
|
|
233
|
+
}
|
|
230
234
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
231
235
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
232
236
|
}
|
|
@@ -242,17 +246,20 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
242
246
|
});
|
|
243
247
|
},
|
|
244
248
|
/**
|
|
245
|
-
* 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-
|
|
249
|
+
* 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\"
|
|
246
250
|
* @summary List bank orders
|
|
247
251
|
* @param {string} [authorization] Bearer Token
|
|
248
|
-
* @param {
|
|
249
|
-
* @param {string} [
|
|
250
|
-
* @param {string} [
|
|
251
|
-
* @param {string} [
|
|
252
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
253
|
+
* @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.
|
|
254
|
+
* @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, financialAccountCode</i>
|
|
255
|
+
* @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, financialAccountCode</i>
|
|
256
|
+
* @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, financialAccountCode, amount, createdAt, updatedAt</i>
|
|
257
|
+
* @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: financialAccount, xmlFile<i>
|
|
258
|
+
* @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, financialAccountCode</i>
|
|
252
259
|
* @param {*} [options] Override http request option.
|
|
253
260
|
* @throws {RequiredError}
|
|
254
261
|
*/
|
|
255
|
-
listBankOrders: function (authorization, filter,
|
|
262
|
+
listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
256
263
|
if (options === void 0) { options = {}; }
|
|
257
264
|
return __awaiter(_this, void 0, void 0, function () {
|
|
258
265
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -275,11 +282,17 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
275
282
|
// authentication bearer required
|
|
276
283
|
// http bearer authentication required
|
|
277
284
|
_a.sent();
|
|
285
|
+
if (pageSize !== undefined) {
|
|
286
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
287
|
+
}
|
|
288
|
+
if (pageToken !== undefined) {
|
|
289
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
290
|
+
}
|
|
278
291
|
if (filter !== undefined) {
|
|
279
292
|
localVarQueryParameter['filter'] = filter;
|
|
280
293
|
}
|
|
281
|
-
if (
|
|
282
|
-
localVarQueryParameter['
|
|
294
|
+
if (search !== undefined) {
|
|
295
|
+
localVarQueryParameter['search'] = search;
|
|
283
296
|
}
|
|
284
297
|
if (order !== undefined) {
|
|
285
298
|
localVarQueryParameter['order'] = order;
|
|
@@ -287,6 +300,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
287
300
|
if (expand !== undefined) {
|
|
288
301
|
localVarQueryParameter['expand'] = expand;
|
|
289
302
|
}
|
|
303
|
+
if (filters !== undefined) {
|
|
304
|
+
localVarQueryParameter['filters'] = filters;
|
|
305
|
+
}
|
|
290
306
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
291
307
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
292
308
|
}
|
|
@@ -302,14 +318,15 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
302
318
|
});
|
|
303
319
|
},
|
|
304
320
|
/**
|
|
305
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
321
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
306
322
|
* @summary Update the bank order
|
|
307
323
|
* @param {string} code Unique identifier for the object.
|
|
324
|
+
* @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
|
|
308
325
|
* @param {string} [authorization] Bearer Token
|
|
309
326
|
* @param {*} [options] Override http request option.
|
|
310
327
|
* @throws {RequiredError}
|
|
311
328
|
*/
|
|
312
|
-
updateBankOrder: function (code, authorization, options) {
|
|
329
|
+
updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
|
|
313
330
|
if (options === void 0) { options = {}; }
|
|
314
331
|
return __awaiter(_this, void 0, void 0, function () {
|
|
315
332
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -318,6 +335,8 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
318
335
|
case 0:
|
|
319
336
|
// verify required parameter 'code' is not null or undefined
|
|
320
337
|
(0, common_1.assertParamExists)('updateBankOrder', 'code', code);
|
|
338
|
+
// verify required parameter 'updateBankOrderRequestDto' is not null or undefined
|
|
339
|
+
(0, common_1.assertParamExists)('updateBankOrder', 'updateBankOrderRequestDto', updateBankOrderRequestDto);
|
|
321
340
|
localVarPath = "/paymentservice/v1/bank-orders/{code}"
|
|
322
341
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
323
342
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -338,9 +357,11 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
338
357
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
339
358
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
340
359
|
}
|
|
360
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
341
361
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
342
362
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
343
363
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
364
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBankOrderRequestDto, localVarRequestOptions, configuration);
|
|
344
365
|
return [2 /*return*/, {
|
|
345
366
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
346
367
|
options: localVarRequestOptions,
|
|
@@ -360,7 +381,7 @@ var BankOrdersApiFp = function (configuration) {
|
|
|
360
381
|
var localVarAxiosParamCreator = (0, exports.BankOrdersApiAxiosParamCreator)(configuration);
|
|
361
382
|
return {
|
|
362
383
|
/**
|
|
363
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
384
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
364
385
|
* @summary Create the bank order
|
|
365
386
|
* @param {CreateBankOrderRequestDto} createBankOrderRequestDto
|
|
366
387
|
* @param {string} [authorization] Bearer Token
|
|
@@ -381,7 +402,7 @@ var BankOrdersApiFp = function (configuration) {
|
|
|
381
402
|
});
|
|
382
403
|
},
|
|
383
404
|
/**
|
|
384
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
405
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
385
406
|
* @summary Delete the bank order
|
|
386
407
|
* @param {string} code Unique identifier for the object.
|
|
387
408
|
* @param {string} [authorization] Bearer Token
|
|
@@ -402,19 +423,20 @@ var BankOrdersApiFp = function (configuration) {
|
|
|
402
423
|
});
|
|
403
424
|
},
|
|
404
425
|
/**
|
|
405
|
-
* 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-
|
|
426
|
+
* 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\"
|
|
406
427
|
* @summary Retrieve the bank order
|
|
407
428
|
* @param {string} code
|
|
408
429
|
* @param {string} [authorization] Bearer Token
|
|
430
|
+
* @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: financialAccount, xmlFile<i>
|
|
409
431
|
* @param {*} [options] Override http request option.
|
|
410
432
|
* @throws {RequiredError}
|
|
411
433
|
*/
|
|
412
|
-
getBankOrder: function (code, authorization, options) {
|
|
434
|
+
getBankOrder: function (code, authorization, expand, options) {
|
|
413
435
|
return __awaiter(this, void 0, void 0, function () {
|
|
414
436
|
var localVarAxiosArgs;
|
|
415
437
|
return __generator(this, function (_a) {
|
|
416
438
|
switch (_a.label) {
|
|
417
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankOrder(code, authorization, options)];
|
|
439
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankOrder(code, authorization, expand, options)];
|
|
418
440
|
case 1:
|
|
419
441
|
localVarAxiosArgs = _a.sent();
|
|
420
442
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -423,22 +445,25 @@ var BankOrdersApiFp = function (configuration) {
|
|
|
423
445
|
});
|
|
424
446
|
},
|
|
425
447
|
/**
|
|
426
|
-
* 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-
|
|
448
|
+
* 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\"
|
|
427
449
|
* @summary List bank orders
|
|
428
450
|
* @param {string} [authorization] Bearer Token
|
|
429
|
-
* @param {
|
|
430
|
-
* @param {string} [
|
|
431
|
-
* @param {string} [
|
|
432
|
-
* @param {string} [
|
|
451
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
452
|
+
* @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.
|
|
453
|
+
* @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, financialAccountCode</i>
|
|
454
|
+
* @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, financialAccountCode</i>
|
|
455
|
+
* @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, financialAccountCode, amount, createdAt, updatedAt</i>
|
|
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: financialAccount, xmlFile<i>
|
|
457
|
+
* @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, financialAccountCode</i>
|
|
433
458
|
* @param {*} [options] Override http request option.
|
|
434
459
|
* @throws {RequiredError}
|
|
435
460
|
*/
|
|
436
|
-
listBankOrders: function (authorization, filter,
|
|
461
|
+
listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
437
462
|
return __awaiter(this, void 0, void 0, function () {
|
|
438
463
|
var localVarAxiosArgs;
|
|
439
464
|
return __generator(this, function (_a) {
|
|
440
465
|
switch (_a.label) {
|
|
441
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankOrders(authorization, filter,
|
|
466
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
442
467
|
case 1:
|
|
443
468
|
localVarAxiosArgs = _a.sent();
|
|
444
469
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -447,19 +472,20 @@ var BankOrdersApiFp = function (configuration) {
|
|
|
447
472
|
});
|
|
448
473
|
},
|
|
449
474
|
/**
|
|
450
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
475
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
451
476
|
* @summary Update the bank order
|
|
452
477
|
* @param {string} code Unique identifier for the object.
|
|
478
|
+
* @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
|
|
453
479
|
* @param {string} [authorization] Bearer Token
|
|
454
480
|
* @param {*} [options] Override http request option.
|
|
455
481
|
* @throws {RequiredError}
|
|
456
482
|
*/
|
|
457
|
-
updateBankOrder: function (code, authorization, options) {
|
|
483
|
+
updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
|
|
458
484
|
return __awaiter(this, void 0, void 0, function () {
|
|
459
485
|
var localVarAxiosArgs;
|
|
460
486
|
return __generator(this, function (_a) {
|
|
461
487
|
switch (_a.label) {
|
|
462
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrder(code, authorization, options)];
|
|
488
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDto, authorization, options)];
|
|
463
489
|
case 1:
|
|
464
490
|
localVarAxiosArgs = _a.sent();
|
|
465
491
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -478,7 +504,7 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
478
504
|
var localVarFp = (0, exports.BankOrdersApiFp)(configuration);
|
|
479
505
|
return {
|
|
480
506
|
/**
|
|
481
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
507
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
482
508
|
* @summary Create the bank order
|
|
483
509
|
* @param {CreateBankOrderRequestDto} createBankOrderRequestDto
|
|
484
510
|
* @param {string} [authorization] Bearer Token
|
|
@@ -489,7 +515,7 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
489
515
|
return localVarFp.createBankOrder(createBankOrderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
490
516
|
},
|
|
491
517
|
/**
|
|
492
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
518
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
493
519
|
* @summary Delete the bank order
|
|
494
520
|
* @param {string} code Unique identifier for the object.
|
|
495
521
|
* @param {string} [authorization] Bearer Token
|
|
@@ -500,40 +526,45 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
500
526
|
return localVarFp.deleteBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
501
527
|
},
|
|
502
528
|
/**
|
|
503
|
-
* 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-
|
|
529
|
+
* 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\"
|
|
504
530
|
* @summary Retrieve the bank order
|
|
505
531
|
* @param {string} code
|
|
506
532
|
* @param {string} [authorization] Bearer Token
|
|
533
|
+
* @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: financialAccount, xmlFile<i>
|
|
507
534
|
* @param {*} [options] Override http request option.
|
|
508
535
|
* @throws {RequiredError}
|
|
509
536
|
*/
|
|
510
|
-
getBankOrder: function (code, authorization, options) {
|
|
511
|
-
return localVarFp.getBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
537
|
+
getBankOrder: function (code, authorization, expand, options) {
|
|
538
|
+
return localVarFp.getBankOrder(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
512
539
|
},
|
|
513
540
|
/**
|
|
514
|
-
* 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-
|
|
541
|
+
* 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\"
|
|
515
542
|
* @summary List bank orders
|
|
516
543
|
* @param {string} [authorization] Bearer Token
|
|
517
|
-
* @param {
|
|
518
|
-
* @param {string} [
|
|
519
|
-
* @param {string} [
|
|
520
|
-
* @param {string} [
|
|
544
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
545
|
+
* @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.
|
|
546
|
+
* @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, financialAccountCode</i>
|
|
547
|
+
* @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, financialAccountCode</i>
|
|
548
|
+
* @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, financialAccountCode, amount, createdAt, updatedAt</i>
|
|
549
|
+
* @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: financialAccount, xmlFile<i>
|
|
550
|
+
* @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, financialAccountCode</i>
|
|
521
551
|
* @param {*} [options] Override http request option.
|
|
522
552
|
* @throws {RequiredError}
|
|
523
553
|
*/
|
|
524
|
-
listBankOrders: function (authorization, filter,
|
|
525
|
-
return localVarFp.listBankOrders(authorization, filter,
|
|
554
|
+
listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
555
|
+
return localVarFp.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
526
556
|
},
|
|
527
557
|
/**
|
|
528
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
558
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
529
559
|
* @summary Update the bank order
|
|
530
560
|
* @param {string} code Unique identifier for the object.
|
|
561
|
+
* @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
|
|
531
562
|
* @param {string} [authorization] Bearer Token
|
|
532
563
|
* @param {*} [options] Override http request option.
|
|
533
564
|
* @throws {RequiredError}
|
|
534
565
|
*/
|
|
535
|
-
updateBankOrder: function (code, authorization, options) {
|
|
536
|
-
return localVarFp.updateBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
566
|
+
updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
|
|
567
|
+
return localVarFp.updateBankOrder(code, updateBankOrderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
537
568
|
},
|
|
538
569
|
};
|
|
539
570
|
};
|
|
@@ -550,7 +581,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
550
581
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
551
582
|
}
|
|
552
583
|
/**
|
|
553
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
584
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
554
585
|
* @summary Create the bank order
|
|
555
586
|
* @param {BankOrdersApiCreateBankOrderRequest} requestParameters Request parameters.
|
|
556
587
|
* @param {*} [options] Override http request option.
|
|
@@ -562,7 +593,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
562
593
|
return (0, exports.BankOrdersApiFp)(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
563
594
|
};
|
|
564
595
|
/**
|
|
565
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
596
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
566
597
|
* @summary Delete the bank order
|
|
567
598
|
* @param {BankOrdersApiDeleteBankOrderRequest} requestParameters Request parameters.
|
|
568
599
|
* @param {*} [options] Override http request option.
|
|
@@ -574,7 +605,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
574
605
|
return (0, exports.BankOrdersApiFp)(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
575
606
|
};
|
|
576
607
|
/**
|
|
577
|
-
* 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-
|
|
608
|
+
* 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\"
|
|
578
609
|
* @summary Retrieve the bank order
|
|
579
610
|
* @param {BankOrdersApiGetBankOrderRequest} requestParameters Request parameters.
|
|
580
611
|
* @param {*} [options] Override http request option.
|
|
@@ -583,10 +614,10 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
583
614
|
*/
|
|
584
615
|
BankOrdersApi.prototype.getBankOrder = function (requestParameters, options) {
|
|
585
616
|
var _this = this;
|
|
586
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
617
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
587
618
|
};
|
|
588
619
|
/**
|
|
589
|
-
* 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-
|
|
620
|
+
* 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\"
|
|
590
621
|
* @summary List bank orders
|
|
591
622
|
* @param {BankOrdersApiListBankOrdersRequest} requestParameters Request parameters.
|
|
592
623
|
* @param {*} [options] Override http request option.
|
|
@@ -596,10 +627,10 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
596
627
|
BankOrdersApi.prototype.listBankOrders = function (requestParameters, options) {
|
|
597
628
|
var _this = this;
|
|
598
629
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
599
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
630
|
+
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); });
|
|
600
631
|
};
|
|
601
632
|
/**
|
|
602
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
633
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
603
634
|
* @summary Update the bank order
|
|
604
635
|
* @param {BankOrdersApiUpdateBankOrderRequest} requestParameters Request parameters.
|
|
605
636
|
* @param {*} [options] Override http request option.
|
|
@@ -608,7 +639,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
608
639
|
*/
|
|
609
640
|
BankOrdersApi.prototype.updateBankOrder = function (requestParameters, options) {
|
|
610
641
|
var _this = this;
|
|
611
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
642
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
612
643
|
};
|
|
613
644
|
return BankOrdersApi;
|
|
614
645
|
}(base_1.BaseAPI));
|