@emilgroup/accounting-sdk 1.34.1-beta.4 → 1.34.1-beta.41

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.
Files changed (136) hide show
  1. package/.openapi-generator/FILES +33 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +90 -0
  4. package/api/booking-entries-api.ts +214 -0
  5. package/api/commission-account-mappings-api.ts +1191 -0
  6. package/api/financial-accounts-api.ts +132 -12
  7. package/api/product-account-mappings-api.ts +1470 -0
  8. package/api.ts +4 -0
  9. package/dist/api/accounting-configs-api.d.ts +47 -0
  10. package/dist/api/accounting-configs-api.js +87 -0
  11. package/dist/api/booking-entries-api.d.ts +114 -0
  12. package/dist/api/booking-entries-api.js +186 -0
  13. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  14. package/dist/api/commission-account-mappings-api.js +1004 -0
  15. package/dist/api/financial-accounts-api.d.ts +78 -12
  16. package/dist/api/financial-accounts-api.js +109 -10
  17. package/dist/api/product-account-mappings-api.d.ts +851 -0
  18. package/dist/api/product-account-mappings-api.js +1224 -0
  19. package/dist/api.d.ts +2 -0
  20. package/dist/api.js +2 -0
  21. package/dist/models/accounting-config-class.d.ts +11 -0
  22. package/dist/models/accounting-config-class.js +5 -0
  23. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +6 -0
  24. package/dist/models/booking-entry-class.d.ts +19 -0
  25. package/dist/models/booking-entry-class.js +7 -1
  26. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  27. package/dist/models/commission-account-mapping-class.js +15 -0
  28. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  29. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  30. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  31. package/dist/models/commission-agreement-partner-class.js +15 -0
  32. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  33. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  34. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  35. package/dist/models/commission-type-account-mapping-class.js +15 -0
  36. package/dist/models/create-booking-entry-request-dto.d.ts +19 -0
  37. package/dist/models/create-booking-entry-request-dto.js +7 -0
  38. package/dist/models/create-financial-account-request-dto.d.ts +12 -0
  39. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  40. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  41. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  42. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  43. package/dist/models/financial-account-class.d.ts +30 -1
  44. package/dist/models/financial-account-class.js +5 -1
  45. package/dist/models/financial-transaction-data-dto.d.ts +1 -0
  46. package/dist/models/financial-transaction-data-dto.js +1 -0
  47. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  48. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  49. package/dist/models/index.d.ts +31 -0
  50. package/dist/models/index.js +31 -0
  51. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  52. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  53. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  54. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  55. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  56. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  57. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  58. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  59. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  60. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  61. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  62. package/dist/models/opening-balance-item-dto.js +20 -0
  63. package/dist/models/post-financial-event-request-dto.d.ts +43 -0
  64. package/dist/models/post-financial-event-request-dto.js +22 -0
  65. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  66. package/dist/models/post-financial-event-response-class.js +15 -0
  67. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  68. package/dist/models/premium-item-account-mapping-class.js +15 -0
  69. package/dist/models/product-account-mapping-class.d.ts +61 -0
  70. package/dist/models/product-account-mapping-class.js +15 -0
  71. package/dist/models/product-account-mapping-detail-class.d.ts +50 -0
  72. package/dist/models/product-account-mapping-detail-class.js +15 -0
  73. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  74. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  75. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  76. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  77. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  78. package/dist/models/product-with-account-mappings-class.js +15 -0
  79. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  80. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  81. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  82. package/dist/models/put-product-category-account-body-dto.js +15 -0
  83. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  84. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  85. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  86. package/dist/models/resolved-account-mapping-class.js +15 -0
  87. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  88. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  89. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  90. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  91. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  92. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  93. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  94. package/dist/models/update-financial-account-body-dto.js +15 -0
  95. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  96. package/dist/models/update-financial-account-response-class.js +15 -0
  97. package/models/accounting-config-class.ts +14 -0
  98. package/models/accounting-config-data-dto-default-account-mappings.ts +6 -0
  99. package/models/booking-entry-class.ts +20 -0
  100. package/models/commission-account-mapping-class.ts +55 -0
  101. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  102. package/models/commission-agreement-partner-class.ts +36 -0
  103. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  104. package/models/commission-type-account-mapping-class.ts +37 -0
  105. package/models/create-booking-entry-request-dto.ts +22 -0
  106. package/models/create-financial-account-request-dto.ts +12 -0
  107. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  108. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  109. package/models/financial-account-class.ts +31 -1
  110. package/models/financial-transaction-data-dto.ts +1 -0
  111. package/models/get-activation-snapshot-response-class.ts +31 -0
  112. package/models/index.ts +31 -0
  113. package/models/list-commission-account-mappings-response-class.ts +49 -0
  114. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  115. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  116. package/models/list-product-account-mappings-response-class.ts +49 -0
  117. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  118. package/models/opening-balance-item-dto.ts +50 -0
  119. package/models/post-financial-event-request-dto.ts +52 -0
  120. package/models/post-financial-event-response-class.ts +31 -0
  121. package/models/premium-item-account-mapping-class.ts +43 -0
  122. package/models/product-account-mapping-class.ts +67 -0
  123. package/models/product-account-mapping-detail-class.ts +56 -0
  124. package/models/product-version-account-mapping-detail-class.ts +56 -0
  125. package/models/product-version-with-account-mappings-class.ts +48 -0
  126. package/models/product-with-account-mappings-class.ts +55 -0
  127. package/models/put-premium-item-account-body-dto.ts +30 -0
  128. package/models/put-product-category-account-body-dto.ts +30 -0
  129. package/models/put-product-version-category-account-body-dto.ts +30 -0
  130. package/models/resolved-account-mapping-class.ts +37 -0
  131. package/models/resolved-commission-account-mapping-class.ts +46 -0
  132. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  133. package/models/update-commission-type-account-body-dto.ts +30 -0
  134. package/models/update-financial-account-body-dto.ts +54 -0
  135. package/models/update-financial-account-response-class.ts +31 -0
  136. package/package.json +1 -1
@@ -141,6 +141,55 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
141
141
  });
142
142
  });
143
143
  },
144
+ /**
145
+ * Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
146
+ * @summary Update the create or correct opening balance
147
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
153
+ if (options === void 0) { options = {}; }
154
+ return __awaiter(_this, void 0, void 0, function () {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
158
+ case 0:
159
+ // verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
160
+ (0, common_1.assertParamExists)('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto);
161
+ localVarPath = "/accountingservice/v1/booking-entries/opening-balances";
162
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
163
+ if (configuration) {
164
+ baseOptions = configuration.baseOptions;
165
+ baseAccessToken = configuration.accessToken;
166
+ }
167
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
168
+ localVarHeaderParameter = {};
169
+ localVarQueryParameter = {};
170
+ // authentication bearer required
171
+ // http bearer authentication required
172
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
173
+ case 1:
174
+ // authentication bearer required
175
+ // http bearer authentication required
176
+ _a.sent();
177
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
179
+ }
180
+ localVarHeaderParameter['Content-Type'] = 'application/json';
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration);
185
+ return [2 /*return*/, {
186
+ url: (0, common_1.toPathString)(localVarUrlObj),
187
+ options: localVarRequestOptions,
188
+ }];
189
+ }
190
+ });
191
+ });
192
+ },
144
193
  /**
145
194
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
146
195
  * @summary Retrieve the booking entry
@@ -267,6 +316,55 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
267
316
  });
268
317
  });
269
318
  },
319
+ /**
320
+ * This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
321
+ * @summary Create the booking entry from a source entity
322
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
323
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
328
+ if (options === void 0) { options = {}; }
329
+ return __awaiter(_this, void 0, void 0, function () {
330
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
331
+ return __generator(this, function (_a) {
332
+ switch (_a.label) {
333
+ case 0:
334
+ // verify required parameter 'postFinancialEventRequestDto' is not null or undefined
335
+ (0, common_1.assertParamExists)('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto);
336
+ localVarPath = "/accountingservice/v1/booking-entries/post-financial-event";
337
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
338
+ if (configuration) {
339
+ baseOptions = configuration.baseOptions;
340
+ baseAccessToken = configuration.accessToken;
341
+ }
342
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
343
+ localVarHeaderParameter = {};
344
+ localVarQueryParameter = {};
345
+ // authentication bearer required
346
+ // http bearer authentication required
347
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
348
+ case 1:
349
+ // authentication bearer required
350
+ // http bearer authentication required
351
+ _a.sent();
352
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
353
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
354
+ }
355
+ localVarHeaderParameter['Content-Type'] = 'application/json';
356
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
357
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
358
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
359
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postFinancialEventRequestDto, localVarRequestOptions, configuration);
360
+ return [2 /*return*/, {
361
+ url: (0, common_1.toPathString)(localVarUrlObj),
362
+ options: localVarRequestOptions,
363
+ }];
364
+ }
365
+ });
366
+ });
367
+ },
270
368
  };
271
369
  };
272
370
  exports.BookingEntriesApiAxiosParamCreator = BookingEntriesApiAxiosParamCreator;
@@ -298,6 +396,27 @@ var BookingEntriesApiFp = function (configuration) {
298
396
  });
299
397
  });
300
398
  },
399
+ /**
400
+ * Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
401
+ * @summary Update the create or correct opening balance
402
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
403
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ */
407
+ createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
408
+ return __awaiter(this, void 0, void 0, function () {
409
+ var localVarAxiosArgs;
410
+ return __generator(this, function (_a) {
411
+ switch (_a.label) {
412
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options)];
413
+ case 1:
414
+ localVarAxiosArgs = _a.sent();
415
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
416
+ }
417
+ });
418
+ });
419
+ },
301
420
  /**
302
421
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
303
422
  * @summary Retrieve the booking entry
@@ -347,6 +466,27 @@ var BookingEntriesApiFp = function (configuration) {
347
466
  });
348
467
  });
349
468
  },
469
+ /**
470
+ * This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
471
+ * @summary Create the booking entry from a source entity
472
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
473
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
478
+ return __awaiter(this, void 0, void 0, function () {
479
+ var localVarAxiosArgs;
480
+ return __generator(this, function (_a) {
481
+ switch (_a.label) {
482
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options)];
483
+ case 1:
484
+ localVarAxiosArgs = _a.sent();
485
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
486
+ }
487
+ });
488
+ });
489
+ },
350
490
  };
351
491
  };
352
492
  exports.BookingEntriesApiFp = BookingEntriesApiFp;
@@ -368,6 +508,17 @@ var BookingEntriesApiFactory = function (configuration, basePath, axios) {
368
508
  createBookingEntry: function (createBookingEntryRequestDto, authorization, options) {
369
509
  return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
370
510
  },
511
+ /**
512
+ * Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
513
+ * @summary Update the create or correct opening balance
514
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
515
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
516
+ * @param {*} [options] Override http request option.
517
+ * @throws {RequiredError}
518
+ */
519
+ createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
520
+ return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then(function (request) { return request(axios, basePath); });
521
+ },
371
522
  /**
372
523
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
373
524
  * @summary Retrieve the booking entry
@@ -397,6 +548,17 @@ var BookingEntriesApiFactory = function (configuration, basePath, axios) {
397
548
  listBookingEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
398
549
  return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
399
550
  },
551
+ /**
552
+ * This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
553
+ * @summary Create the booking entry from a source entity
554
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
555
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
556
+ * @param {*} [options] Override http request option.
557
+ * @throws {RequiredError}
558
+ */
559
+ postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
560
+ return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
561
+ },
400
562
  };
401
563
  };
402
564
  exports.BookingEntriesApiFactory = BookingEntriesApiFactory;
@@ -423,6 +585,18 @@ var BookingEntriesApi = /** @class */ (function (_super) {
423
585
  var _this = this;
424
586
  return (0, exports.BookingEntriesApiFp)(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
425
587
  };
588
+ /**
589
+ * Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
590
+ * @summary Update the create or correct opening balance
591
+ * @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ * @memberof BookingEntriesApi
595
+ */
596
+ BookingEntriesApi.prototype.createOrCorrectOpeningBalance = function (requestParameters, options) {
597
+ var _this = this;
598
+ return (0, exports.BookingEntriesApiFp)(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
599
+ };
426
600
  /**
427
601
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
428
602
  * @summary Retrieve the booking entry
@@ -448,6 +622,18 @@ var BookingEntriesApi = /** @class */ (function (_super) {
448
622
  if (requestParameters === void 0) { requestParameters = {}; }
449
623
  return (0, exports.BookingEntriesApiFp)(this.configuration).listBookingEntries(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); });
450
624
  };
625
+ /**
626
+ * This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
627
+ * @summary Create the booking entry from a source entity
628
+ * @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
629
+ * @param {*} [options] Override http request option.
630
+ * @throws {RequiredError}
631
+ * @memberof BookingEntriesApi
632
+ */
633
+ BookingEntriesApi.prototype.postFinancialEvent = function (requestParameters, options) {
634
+ var _this = this;
635
+ return (0, exports.BookingEntriesApiFp)(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
636
+ };
451
637
  return BookingEntriesApi;
452
638
  }(base_1.BaseAPI));
453
639
  exports.BookingEntriesApi = BookingEntriesApi;