@emilgroup/payment-sdk 1.13.1-beta.13 → 1.13.1-beta.130
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 +349 -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 +471 -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 +10 -32
- 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 +352 -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 +452 -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 +2 -4
- package/dist/base.js +21 -40
- 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 +54 -0
- package/dist/models/billing-address-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
- package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
- package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
- package/dist/models/create-bank-order-request-dto.d.ts +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 +60 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
- package/models/complete-eis-payment-setup-request-dto.ts +42 -0
- package/models/complete-payment-setup-request-dto.ts +7 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
- package/models/create-bank-order-request-dto.ts +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
|
@@ -93,7 +93,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
96
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
97
97
|
* @summary Create the bank order
|
|
98
98
|
* @param {CreateBankOrderRequestDto} createBankOrderRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
@@ -142,7 +142,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
144
|
/**
|
|
145
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
145
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
146
146
|
* @summary Delete the bank order
|
|
147
147
|
* @param {string} code Unique identifier for the object.
|
|
148
148
|
* @param {string} [authorization] Bearer Token
|
|
@@ -190,14 +190,15 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
192
|
/**
|
|
193
|
-
* 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-
|
|
193
|
+
* 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\"
|
|
194
194
|
* @summary Retrieve the bank order
|
|
195
195
|
* @param {string} code
|
|
196
196
|
* @param {string} [authorization] Bearer Token
|
|
197
|
+
* @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>
|
|
197
198
|
* @param {*} [options] Override http request option.
|
|
198
199
|
* @throws {RequiredError}
|
|
199
200
|
*/
|
|
200
|
-
getBankOrder: function (code, authorization, options) {
|
|
201
|
+
getBankOrder: function (code, authorization, expand, options) {
|
|
201
202
|
if (options === void 0) { options = {}; }
|
|
202
203
|
return __awaiter(_this, void 0, void 0, function () {
|
|
203
204
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -223,6 +224,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
223
224
|
// authentication bearer required
|
|
224
225
|
// http bearer authentication required
|
|
225
226
|
_a.sent();
|
|
227
|
+
if (expand !== undefined) {
|
|
228
|
+
localVarQueryParameter['expand'] = expand;
|
|
229
|
+
}
|
|
226
230
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
231
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
228
232
|
}
|
|
@@ -238,17 +242,20 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
238
242
|
});
|
|
239
243
|
},
|
|
240
244
|
/**
|
|
241
|
-
* 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-
|
|
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-orders.view\"
|
|
242
246
|
* @summary List bank orders
|
|
243
247
|
* @param {string} [authorization] Bearer Token
|
|
244
|
-
* @param {
|
|
245
|
-
* @param {string} [
|
|
246
|
-
* @param {string} [
|
|
247
|
-
* @param {string} [
|
|
248
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
249
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
250
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
251
|
+
* @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>
|
|
252
|
+
* @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>
|
|
253
|
+
* @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>
|
|
254
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
248
255
|
* @param {*} [options] Override http request option.
|
|
249
256
|
* @throws {RequiredError}
|
|
250
257
|
*/
|
|
251
|
-
listBankOrders: function (authorization, filter,
|
|
258
|
+
listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
252
259
|
if (options === void 0) { options = {}; }
|
|
253
260
|
return __awaiter(_this, void 0, void 0, function () {
|
|
254
261
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -271,11 +278,17 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
271
278
|
// authentication bearer required
|
|
272
279
|
// http bearer authentication required
|
|
273
280
|
_a.sent();
|
|
281
|
+
if (pageSize !== undefined) {
|
|
282
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
283
|
+
}
|
|
284
|
+
if (pageToken !== undefined) {
|
|
285
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
286
|
+
}
|
|
274
287
|
if (filter !== undefined) {
|
|
275
288
|
localVarQueryParameter['filter'] = filter;
|
|
276
289
|
}
|
|
277
|
-
if (
|
|
278
|
-
localVarQueryParameter['
|
|
290
|
+
if (search !== undefined) {
|
|
291
|
+
localVarQueryParameter['search'] = search;
|
|
279
292
|
}
|
|
280
293
|
if (order !== undefined) {
|
|
281
294
|
localVarQueryParameter['order'] = order;
|
|
@@ -283,6 +296,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
283
296
|
if (expand !== undefined) {
|
|
284
297
|
localVarQueryParameter['expand'] = expand;
|
|
285
298
|
}
|
|
299
|
+
if (filters !== undefined) {
|
|
300
|
+
localVarQueryParameter['filters'] = filters;
|
|
301
|
+
}
|
|
286
302
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
287
303
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
288
304
|
}
|
|
@@ -298,14 +314,15 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
298
314
|
});
|
|
299
315
|
},
|
|
300
316
|
/**
|
|
301
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
317
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
302
318
|
* @summary Update the bank order
|
|
303
319
|
* @param {string} code Unique identifier for the object.
|
|
320
|
+
* @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
|
|
304
321
|
* @param {string} [authorization] Bearer Token
|
|
305
322
|
* @param {*} [options] Override http request option.
|
|
306
323
|
* @throws {RequiredError}
|
|
307
324
|
*/
|
|
308
|
-
updateBankOrder: function (code, authorization, options) {
|
|
325
|
+
updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
|
|
309
326
|
if (options === void 0) { options = {}; }
|
|
310
327
|
return __awaiter(_this, void 0, void 0, function () {
|
|
311
328
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -314,6 +331,8 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
314
331
|
case 0:
|
|
315
332
|
// verify required parameter 'code' is not null or undefined
|
|
316
333
|
(0, common_1.assertParamExists)('updateBankOrder', 'code', code);
|
|
334
|
+
// verify required parameter 'updateBankOrderRequestDto' is not null or undefined
|
|
335
|
+
(0, common_1.assertParamExists)('updateBankOrder', 'updateBankOrderRequestDto', updateBankOrderRequestDto);
|
|
317
336
|
localVarPath = "/paymentservice/v1/bank-orders/{code}"
|
|
318
337
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
319
338
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -334,9 +353,11 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
334
353
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
335
354
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
336
355
|
}
|
|
356
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
337
357
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
338
358
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
339
359
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
360
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBankOrderRequestDto, localVarRequestOptions, configuration);
|
|
340
361
|
return [2 /*return*/, {
|
|
341
362
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
342
363
|
options: localVarRequestOptions,
|
|
@@ -356,7 +377,7 @@ var BankOrdersApiFp = function (configuration) {
|
|
|
356
377
|
var localVarAxiosParamCreator = (0, exports.BankOrdersApiAxiosParamCreator)(configuration);
|
|
357
378
|
return {
|
|
358
379
|
/**
|
|
359
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
380
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
360
381
|
* @summary Create the bank order
|
|
361
382
|
* @param {CreateBankOrderRequestDto} createBankOrderRequestDto
|
|
362
383
|
* @param {string} [authorization] Bearer Token
|
|
@@ -377,7 +398,7 @@ var BankOrdersApiFp = function (configuration) {
|
|
|
377
398
|
});
|
|
378
399
|
},
|
|
379
400
|
/**
|
|
380
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
401
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
381
402
|
* @summary Delete the bank order
|
|
382
403
|
* @param {string} code Unique identifier for the object.
|
|
383
404
|
* @param {string} [authorization] Bearer Token
|
|
@@ -398,19 +419,20 @@ var BankOrdersApiFp = function (configuration) {
|
|
|
398
419
|
});
|
|
399
420
|
},
|
|
400
421
|
/**
|
|
401
|
-
* 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-
|
|
422
|
+
* 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\"
|
|
402
423
|
* @summary Retrieve the bank order
|
|
403
424
|
* @param {string} code
|
|
404
425
|
* @param {string} [authorization] Bearer Token
|
|
426
|
+
* @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>
|
|
405
427
|
* @param {*} [options] Override http request option.
|
|
406
428
|
* @throws {RequiredError}
|
|
407
429
|
*/
|
|
408
|
-
getBankOrder: function (code, authorization, options) {
|
|
430
|
+
getBankOrder: function (code, authorization, expand, options) {
|
|
409
431
|
return __awaiter(this, void 0, void 0, function () {
|
|
410
432
|
var localVarAxiosArgs;
|
|
411
433
|
return __generator(this, function (_a) {
|
|
412
434
|
switch (_a.label) {
|
|
413
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankOrder(code, authorization, options)];
|
|
435
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankOrder(code, authorization, expand, options)];
|
|
414
436
|
case 1:
|
|
415
437
|
localVarAxiosArgs = _a.sent();
|
|
416
438
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -419,22 +441,25 @@ var BankOrdersApiFp = function (configuration) {
|
|
|
419
441
|
});
|
|
420
442
|
},
|
|
421
443
|
/**
|
|
422
|
-
* 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-
|
|
444
|
+
* 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\"
|
|
423
445
|
* @summary List bank orders
|
|
424
446
|
* @param {string} [authorization] Bearer Token
|
|
425
|
-
* @param {
|
|
426
|
-
* @param {string} [
|
|
427
|
-
* @param {string} [
|
|
428
|
-
* @param {string} [
|
|
447
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
448
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
449
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
450
|
+
* @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>
|
|
451
|
+
* @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>
|
|
452
|
+
* @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>
|
|
453
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
429
454
|
* @param {*} [options] Override http request option.
|
|
430
455
|
* @throws {RequiredError}
|
|
431
456
|
*/
|
|
432
|
-
listBankOrders: function (authorization, filter,
|
|
457
|
+
listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
433
458
|
return __awaiter(this, void 0, void 0, function () {
|
|
434
459
|
var localVarAxiosArgs;
|
|
435
460
|
return __generator(this, function (_a) {
|
|
436
461
|
switch (_a.label) {
|
|
437
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankOrders(authorization, filter,
|
|
462
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
438
463
|
case 1:
|
|
439
464
|
localVarAxiosArgs = _a.sent();
|
|
440
465
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -443,19 +468,20 @@ var BankOrdersApiFp = function (configuration) {
|
|
|
443
468
|
});
|
|
444
469
|
},
|
|
445
470
|
/**
|
|
446
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
471
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
447
472
|
* @summary Update the bank order
|
|
448
473
|
* @param {string} code Unique identifier for the object.
|
|
474
|
+
* @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
|
|
449
475
|
* @param {string} [authorization] Bearer Token
|
|
450
476
|
* @param {*} [options] Override http request option.
|
|
451
477
|
* @throws {RequiredError}
|
|
452
478
|
*/
|
|
453
|
-
updateBankOrder: function (code, authorization, options) {
|
|
479
|
+
updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
|
|
454
480
|
return __awaiter(this, void 0, void 0, function () {
|
|
455
481
|
var localVarAxiosArgs;
|
|
456
482
|
return __generator(this, function (_a) {
|
|
457
483
|
switch (_a.label) {
|
|
458
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrder(code, authorization, options)];
|
|
484
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDto, authorization, options)];
|
|
459
485
|
case 1:
|
|
460
486
|
localVarAxiosArgs = _a.sent();
|
|
461
487
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -474,7 +500,7 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
474
500
|
var localVarFp = (0, exports.BankOrdersApiFp)(configuration);
|
|
475
501
|
return {
|
|
476
502
|
/**
|
|
477
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
503
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
478
504
|
* @summary Create the bank order
|
|
479
505
|
* @param {CreateBankOrderRequestDto} createBankOrderRequestDto
|
|
480
506
|
* @param {string} [authorization] Bearer Token
|
|
@@ -485,7 +511,7 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
485
511
|
return localVarFp.createBankOrder(createBankOrderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
486
512
|
},
|
|
487
513
|
/**
|
|
488
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
514
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
489
515
|
* @summary Delete the bank order
|
|
490
516
|
* @param {string} code Unique identifier for the object.
|
|
491
517
|
* @param {string} [authorization] Bearer Token
|
|
@@ -496,40 +522,45 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
496
522
|
return localVarFp.deleteBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
497
523
|
},
|
|
498
524
|
/**
|
|
499
|
-
* 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-
|
|
525
|
+
* 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\"
|
|
500
526
|
* @summary Retrieve the bank order
|
|
501
527
|
* @param {string} code
|
|
502
528
|
* @param {string} [authorization] Bearer Token
|
|
529
|
+
* @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>
|
|
503
530
|
* @param {*} [options] Override http request option.
|
|
504
531
|
* @throws {RequiredError}
|
|
505
532
|
*/
|
|
506
|
-
getBankOrder: function (code, authorization, options) {
|
|
507
|
-
return localVarFp.getBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
533
|
+
getBankOrder: function (code, authorization, expand, options) {
|
|
534
|
+
return localVarFp.getBankOrder(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
508
535
|
},
|
|
509
536
|
/**
|
|
510
|
-
* 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-
|
|
537
|
+
* 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\"
|
|
511
538
|
* @summary List bank orders
|
|
512
539
|
* @param {string} [authorization] Bearer Token
|
|
513
|
-
* @param {
|
|
514
|
-
* @param {string} [
|
|
515
|
-
* @param {string} [
|
|
516
|
-
* @param {string} [
|
|
540
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
541
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
542
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
543
|
+
* @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>
|
|
544
|
+
* @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>
|
|
545
|
+
* @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>
|
|
546
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
|
|
517
547
|
* @param {*} [options] Override http request option.
|
|
518
548
|
* @throws {RequiredError}
|
|
519
549
|
*/
|
|
520
|
-
listBankOrders: function (authorization, filter,
|
|
521
|
-
return localVarFp.listBankOrders(authorization, filter,
|
|
550
|
+
listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
551
|
+
return localVarFp.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
522
552
|
},
|
|
523
553
|
/**
|
|
524
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
554
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
525
555
|
* @summary Update the bank order
|
|
526
556
|
* @param {string} code Unique identifier for the object.
|
|
557
|
+
* @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
|
|
527
558
|
* @param {string} [authorization] Bearer Token
|
|
528
559
|
* @param {*} [options] Override http request option.
|
|
529
560
|
* @throws {RequiredError}
|
|
530
561
|
*/
|
|
531
|
-
updateBankOrder: function (code, authorization, options) {
|
|
532
|
-
return localVarFp.updateBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
562
|
+
updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
|
|
563
|
+
return localVarFp.updateBankOrder(code, updateBankOrderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
533
564
|
},
|
|
534
565
|
};
|
|
535
566
|
};
|
|
@@ -546,7 +577,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
546
577
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
547
578
|
}
|
|
548
579
|
/**
|
|
549
|
-
* This will create a bank order. **Required Permissions** \"payment-management.bank-
|
|
580
|
+
* This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
|
|
550
581
|
* @summary Create the bank order
|
|
551
582
|
* @param {BankOrdersApiCreateBankOrderRequest} requestParameters Request parameters.
|
|
552
583
|
* @param {*} [options] Override http request option.
|
|
@@ -558,7 +589,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
558
589
|
return (0, exports.BankOrdersApiFp)(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
559
590
|
};
|
|
560
591
|
/**
|
|
561
|
-
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-
|
|
592
|
+
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
562
593
|
* @summary Delete the bank order
|
|
563
594
|
* @param {BankOrdersApiDeleteBankOrderRequest} requestParameters Request parameters.
|
|
564
595
|
* @param {*} [options] Override http request option.
|
|
@@ -570,7 +601,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
570
601
|
return (0, exports.BankOrdersApiFp)(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
571
602
|
};
|
|
572
603
|
/**
|
|
573
|
-
* 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-
|
|
604
|
+
* 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\"
|
|
574
605
|
* @summary Retrieve the bank order
|
|
575
606
|
* @param {BankOrdersApiGetBankOrderRequest} requestParameters Request parameters.
|
|
576
607
|
* @param {*} [options] Override http request option.
|
|
@@ -579,10 +610,10 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
579
610
|
*/
|
|
580
611
|
BankOrdersApi.prototype.getBankOrder = function (requestParameters, options) {
|
|
581
612
|
var _this = this;
|
|
582
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
613
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
583
614
|
};
|
|
584
615
|
/**
|
|
585
|
-
* 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-
|
|
616
|
+
* 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\"
|
|
586
617
|
* @summary List bank orders
|
|
587
618
|
* @param {BankOrdersApiListBankOrdersRequest} requestParameters Request parameters.
|
|
588
619
|
* @param {*} [options] Override http request option.
|
|
@@ -592,10 +623,10 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
592
623
|
BankOrdersApi.prototype.listBankOrders = function (requestParameters, options) {
|
|
593
624
|
var _this = this;
|
|
594
625
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
595
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
626
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
596
627
|
};
|
|
597
628
|
/**
|
|
598
|
-
* Update a bank order by code **Required Permissions** \"payment-management.bank-
|
|
629
|
+
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
599
630
|
* @summary Update the bank order
|
|
600
631
|
* @param {BankOrdersApiUpdateBankOrderRequest} requestParameters Request parameters.
|
|
601
632
|
* @param {*} [options] Override http request option.
|
|
@@ -604,7 +635,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
604
635
|
*/
|
|
605
636
|
BankOrdersApi.prototype.updateBankOrder = function (requestParameters, options) {
|
|
606
637
|
var _this = this;
|
|
607
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
638
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
608
639
|
};
|
|
609
640
|
return BankOrdersApi;
|
|
610
641
|
}(base_1.BaseAPI));
|