@emilgroup/accounting-sdk-node 1.32.1-beta.6 → 1.32.1-beta.62

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 (155) hide show
  1. package/.openapi-generator/FILES +35 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +120 -14
  4. package/api/booking-entries-api.ts +230 -6
  5. package/api/commission-account-mappings-api.ts +1211 -0
  6. package/api/financial-accounts-api.ts +150 -20
  7. package/api/financial-transactions-api.ts +8 -4
  8. package/api/number-ranges-api.ts +16 -8
  9. package/api/personal-accounts-api.ts +16 -8
  10. package/api/product-account-mappings-api.ts +1719 -0
  11. package/api.ts +4 -0
  12. package/dist/api/accounting-configs-api.d.ts +47 -0
  13. package/dist/api/accounting-configs-api.js +139 -28
  14. package/dist/api/booking-entries-api.d.ts +114 -0
  15. package/dist/api/booking-entries-api.js +207 -10
  16. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  17. package/dist/api/commission-account-mappings-api.js +1026 -0
  18. package/dist/api/financial-accounts-api.d.ts +78 -12
  19. package/dist/api/financial-accounts-api.js +134 -24
  20. package/dist/api/financial-transactions-api.js +8 -6
  21. package/dist/api/number-ranges-api.js +22 -14
  22. package/dist/api/personal-accounts-api.js +22 -14
  23. package/dist/api/product-account-mappings-api.d.ts +972 -0
  24. package/dist/api/product-account-mappings-api.js +1451 -0
  25. package/dist/api.d.ts +2 -0
  26. package/dist/api.js +2 -0
  27. package/dist/models/account-mapping-class.d.ts +2 -0
  28. package/dist/models/account-mapping-class.js +3 -1
  29. package/dist/models/accounting-config-class.d.ts +11 -0
  30. package/dist/models/accounting-config-class.js +5 -0
  31. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
  32. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  33. package/dist/models/booking-entry-class.d.ts +21 -0
  34. package/dist/models/booking-entry-class.js +9 -1
  35. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  36. package/dist/models/commission-account-mapping-class.js +15 -0
  37. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  38. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  39. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  40. package/dist/models/commission-agreement-partner-class.js +15 -0
  41. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  42. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  43. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  44. package/dist/models/commission-type-account-mapping-class.js +15 -0
  45. package/dist/models/create-booking-entry-request-dto.d.ts +21 -0
  46. package/dist/models/create-booking-entry-request-dto.js +9 -0
  47. package/dist/models/create-financial-account-request-dto.d.ts +14 -0
  48. package/dist/models/create-financial-account-request-dto.js +3 -1
  49. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  50. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  51. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  52. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  53. package/dist/models/financial-account-class.d.ts +30 -1
  54. package/dist/models/financial-account-class.js +5 -1
  55. package/dist/models/financial-transaction-class.d.ts +6 -0
  56. package/dist/models/financial-transaction-data-dto.d.ts +7 -0
  57. package/dist/models/financial-transaction-data-dto.js +1 -0
  58. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  59. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  60. package/dist/models/index.d.ts +33 -0
  61. package/dist/models/index.js +33 -0
  62. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  63. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  64. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  65. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  66. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  67. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  68. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  69. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  70. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  71. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  72. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  73. package/dist/models/opening-balance-item-dto.js +20 -0
  74. package/dist/models/post-financial-event-request-dto.d.ts +45 -0
  75. package/dist/models/post-financial-event-request-dto.js +24 -0
  76. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  77. package/dist/models/post-financial-event-response-class.js +15 -0
  78. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  79. package/dist/models/premium-item-account-mapping-class.js +15 -0
  80. package/dist/models/product-account-mapping-class.d.ts +61 -0
  81. package/dist/models/product-account-mapping-class.js +15 -0
  82. package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
  83. package/dist/models/product-account-mapping-detail-class.js +15 -0
  84. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  85. package/dist/models/product-risk-carrier-class.js +15 -0
  86. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  87. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  88. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  89. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  90. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  91. package/dist/models/product-with-account-mappings-class.js +15 -0
  92. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  93. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  94. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  95. package/dist/models/put-product-category-account-body-dto.js +15 -0
  96. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  97. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  98. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  99. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  100. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  101. package/dist/models/resolved-account-mapping-class.js +15 -0
  102. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  103. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  104. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  105. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  106. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  107. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  108. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  109. package/dist/models/update-financial-account-body-dto.js +15 -0
  110. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  111. package/dist/models/update-financial-account-response-class.js +15 -0
  112. package/models/account-mapping-class.ts +3 -1
  113. package/models/accounting-config-class.ts +14 -0
  114. package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
  115. package/models/booking-entry-class.ts +22 -0
  116. package/models/commission-account-mapping-class.ts +55 -0
  117. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  118. package/models/commission-agreement-partner-class.ts +36 -0
  119. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  120. package/models/commission-type-account-mapping-class.ts +37 -0
  121. package/models/create-booking-entry-request-dto.ts +24 -0
  122. package/models/create-financial-account-request-dto.ts +15 -1
  123. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  124. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  125. package/models/financial-account-class.ts +31 -1
  126. package/models/financial-transaction-class.ts +6 -0
  127. package/models/financial-transaction-data-dto.ts +7 -0
  128. package/models/get-activation-snapshot-response-class.ts +31 -0
  129. package/models/index.ts +33 -0
  130. package/models/list-commission-account-mappings-response-class.ts +49 -0
  131. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  132. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  133. package/models/list-product-account-mappings-response-class.ts +49 -0
  134. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  135. package/models/opening-balance-item-dto.ts +50 -0
  136. package/models/post-financial-event-request-dto.ts +54 -0
  137. package/models/post-financial-event-response-class.ts +31 -0
  138. package/models/premium-item-account-mapping-class.ts +43 -0
  139. package/models/product-account-mapping-class.ts +67 -0
  140. package/models/product-account-mapping-detail-class.ts +62 -0
  141. package/models/product-risk-carrier-class.ts +48 -0
  142. package/models/product-version-account-mapping-detail-class.ts +56 -0
  143. package/models/product-version-with-account-mappings-class.ts +48 -0
  144. package/models/product-with-account-mappings-class.ts +55 -0
  145. package/models/put-premium-item-account-body-dto.ts +30 -0
  146. package/models/put-product-category-account-body-dto.ts +30 -0
  147. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  148. package/models/put-product-version-category-account-body-dto.ts +30 -0
  149. package/models/resolved-account-mapping-class.ts +37 -0
  150. package/models/resolved-commission-account-mapping-class.ts +46 -0
  151. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  152. package/models/update-commission-type-account-body-dto.ts +30 -0
  153. package/models/update-financial-account-body-dto.ts +54 -0
  154. package/models/update-financial-account-response-class.ts +31 -0
  155. package/package.json +1 -1
@@ -107,7 +107,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
107
107
  createBookingEntry: function (createBookingEntryRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -145,6 +148,58 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
145
148
  });
146
149
  });
147
150
  },
151
+ /**
152
+ * 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\"
153
+ * @summary Update the create or correct opening balance
154
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
155
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
160
+ if (options === void 0) { options = {}; }
161
+ return __awaiter(_this, void 0, void 0, function () {
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
163
+ return __generator(this, function (_a) {
164
+ switch (_a.label) {
165
+ case 0:
166
+ // verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
167
+ (0, common_1.assertParamExists)('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto);
168
+ localVarPath = "/accountingservice/v1/booking-entries/opening-balances";
169
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
170
+ if (configuration) {
171
+ baseOptions = configuration.baseOptions;
172
+ baseAccessToken = configuration.accessToken;
173
+ }
174
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
175
+ localVarHeaderParameter = {};
176
+ localVarQueryParameter = {};
177
+ // authentication bearer required
178
+ // http bearer authentication required
179
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
180
+ // Only Authorization falls back to the configured token; an empty value is never sent.
181
+ ];
182
+ case 1:
183
+ // authentication bearer required
184
+ // http bearer authentication required
185
+ _a.sent();
186
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
+ if (authorizationValue) {
188
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
189
+ }
190
+ localVarHeaderParameter['Content-Type'] = 'application/json';
191
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
192
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
193
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
194
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration);
195
+ return [2 /*return*/, {
196
+ url: (0, common_1.toPathString)(localVarUrlObj),
197
+ options: localVarRequestOptions,
198
+ }];
199
+ }
200
+ });
201
+ });
202
+ },
148
203
  /**
149
204
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
150
205
  * @summary Retrieve the booking entry
@@ -157,7 +212,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
157
212
  getBookingEntry: function (code, expand, authorization, options) {
158
213
  if (options === void 0) { options = {}; }
159
214
  return __awaiter(_this, void 0, void 0, function () {
160
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
215
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
161
216
  return __generator(this, function (_a) {
162
217
  switch (_a.label) {
163
218
  case 0:
@@ -185,8 +240,9 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
185
240
  if (expand !== undefined) {
186
241
  localVarQueryParameter['expand'] = expand;
187
242
  }
188
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
189
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
243
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
244
+ if (authorizationValue) {
245
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
190
246
  }
191
247
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
192
248
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -216,7 +272,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
216
272
  listBookingEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
217
273
  if (options === void 0) { options = {}; }
218
274
  return __awaiter(_this, void 0, void 0, function () {
219
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
275
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
220
276
  return __generator(this, function (_a) {
221
277
  switch (_a.label) {
222
278
  case 0:
@@ -257,12 +313,65 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
257
313
  if (filters !== undefined) {
258
314
  localVarQueryParameter['filters'] = filters;
259
315
  }
260
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
261
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
316
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
317
+ if (authorizationValue) {
318
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
319
+ }
320
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
321
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
322
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
323
+ return [2 /*return*/, {
324
+ url: (0, common_1.toPathString)(localVarUrlObj),
325
+ options: localVarRequestOptions,
326
+ }];
327
+ }
328
+ });
329
+ });
330
+ },
331
+ /**
332
+ * 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\"
333
+ * @summary Create the booking entry from a source entity
334
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
335
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
340
+ if (options === void 0) { options = {}; }
341
+ return __awaiter(_this, void 0, void 0, function () {
342
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
343
+ return __generator(this, function (_a) {
344
+ switch (_a.label) {
345
+ case 0:
346
+ // verify required parameter 'postFinancialEventRequestDto' is not null or undefined
347
+ (0, common_1.assertParamExists)('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto);
348
+ localVarPath = "/accountingservice/v1/booking-entries/post-financial-event";
349
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
350
+ if (configuration) {
351
+ baseOptions = configuration.baseOptions;
352
+ baseAccessToken = configuration.accessToken;
353
+ }
354
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
355
+ localVarHeaderParameter = {};
356
+ localVarQueryParameter = {};
357
+ // authentication bearer required
358
+ // http bearer authentication required
359
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
360
+ // Only Authorization falls back to the configured token; an empty value is never sent.
361
+ ];
362
+ case 1:
363
+ // authentication bearer required
364
+ // http bearer authentication required
365
+ _a.sent();
366
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
367
+ if (authorizationValue) {
368
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
262
369
  }
370
+ localVarHeaderParameter['Content-Type'] = 'application/json';
263
371
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
264
372
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
265
373
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
374
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postFinancialEventRequestDto, localVarRequestOptions, configuration);
266
375
  return [2 /*return*/, {
267
376
  url: (0, common_1.toPathString)(localVarUrlObj),
268
377
  options: localVarRequestOptions,
@@ -302,6 +411,27 @@ var BookingEntriesApiFp = function (configuration) {
302
411
  });
303
412
  });
304
413
  },
414
+ /**
415
+ * 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\"
416
+ * @summary Update the create or correct opening balance
417
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
418
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ */
422
+ createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
423
+ return __awaiter(this, void 0, void 0, function () {
424
+ var localVarAxiosArgs;
425
+ return __generator(this, function (_a) {
426
+ switch (_a.label) {
427
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options)];
428
+ case 1:
429
+ localVarAxiosArgs = _a.sent();
430
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
431
+ }
432
+ });
433
+ });
434
+ },
305
435
  /**
306
436
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
307
437
  * @summary Retrieve the booking entry
@@ -351,6 +481,27 @@ var BookingEntriesApiFp = function (configuration) {
351
481
  });
352
482
  });
353
483
  },
484
+ /**
485
+ * 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\"
486
+ * @summary Create the booking entry from a source entity
487
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
488
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
493
+ return __awaiter(this, void 0, void 0, function () {
494
+ var localVarAxiosArgs;
495
+ return __generator(this, function (_a) {
496
+ switch (_a.label) {
497
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options)];
498
+ case 1:
499
+ localVarAxiosArgs = _a.sent();
500
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
501
+ }
502
+ });
503
+ });
504
+ },
354
505
  };
355
506
  };
356
507
  exports.BookingEntriesApiFp = BookingEntriesApiFp;
@@ -372,6 +523,17 @@ var BookingEntriesApiFactory = function (configuration, basePath, axios) {
372
523
  createBookingEntry: function (createBookingEntryRequestDto, authorization, options) {
373
524
  return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
374
525
  },
526
+ /**
527
+ * 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\"
528
+ * @summary Update the create or correct opening balance
529
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
530
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
535
+ return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then(function (request) { return request(axios, basePath); });
536
+ },
375
537
  /**
376
538
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
377
539
  * @summary Retrieve the booking entry
@@ -401,6 +563,17 @@ var BookingEntriesApiFactory = function (configuration, basePath, axios) {
401
563
  listBookingEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
402
564
  return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
403
565
  },
566
+ /**
567
+ * 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\"
568
+ * @summary Create the booking entry from a source entity
569
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
570
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
571
+ * @param {*} [options] Override http request option.
572
+ * @throws {RequiredError}
573
+ */
574
+ postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
575
+ return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
576
+ },
404
577
  };
405
578
  };
406
579
  exports.BookingEntriesApiFactory = BookingEntriesApiFactory;
@@ -427,6 +600,18 @@ var BookingEntriesApi = /** @class */ (function (_super) {
427
600
  var _this = this;
428
601
  return (0, exports.BookingEntriesApiFp)(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
429
602
  };
603
+ /**
604
+ * 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\"
605
+ * @summary Update the create or correct opening balance
606
+ * @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ * @memberof BookingEntriesApi
610
+ */
611
+ BookingEntriesApi.prototype.createOrCorrectOpeningBalance = function (requestParameters, options) {
612
+ var _this = this;
613
+ return (0, exports.BookingEntriesApiFp)(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
614
+ };
430
615
  /**
431
616
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
432
617
  * @summary Retrieve the booking entry
@@ -452,6 +637,18 @@ var BookingEntriesApi = /** @class */ (function (_super) {
452
637
  if (requestParameters === void 0) { requestParameters = {}; }
453
638
  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); });
454
639
  };
640
+ /**
641
+ * 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\"
642
+ * @summary Create the booking entry from a source entity
643
+ * @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ * @memberof BookingEntriesApi
647
+ */
648
+ BookingEntriesApi.prototype.postFinancialEvent = function (requestParameters, options) {
649
+ var _this = this;
650
+ return (0, exports.BookingEntriesApiFp)(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
651
+ };
455
652
  return BookingEntriesApi;
456
653
  }(base_1.BaseAPI));
457
654
  exports.BookingEntriesApi = BookingEntriesApi;