@emilgroup/accounting-sdk 1.34.1-beta.6 → 1.34.1-beta.63

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 (168) 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 +1207 -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 +1715 -0
  11. package/api.ts +4 -0
  12. package/base.ts +174 -41
  13. package/common.ts +3 -2
  14. package/configuration.ts +20 -0
  15. package/dist/api/accounting-configs-api.d.ts +54 -7
  16. package/dist/api/accounting-configs-api.js +139 -28
  17. package/dist/api/booking-entries-api.d.ts +117 -3
  18. package/dist/api/booking-entries-api.js +207 -10
  19. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  20. package/dist/api/commission-account-mappings-api.js +1022 -0
  21. package/dist/api/financial-accounts-api.d.ts +82 -16
  22. package/dist/api/financial-accounts-api.js +134 -24
  23. package/dist/api/financial-transactions-api.d.ts +2 -2
  24. package/dist/api/financial-transactions-api.js +8 -6
  25. package/dist/api/health-api.d.ts +1 -1
  26. package/dist/api/number-ranges-api.d.ts +4 -4
  27. package/dist/api/number-ranges-api.js +22 -14
  28. package/dist/api/personal-accounts-api.d.ts +4 -4
  29. package/dist/api/personal-accounts-api.js +22 -14
  30. package/dist/api/product-account-mappings-api.d.ts +972 -0
  31. package/dist/api/product-account-mappings-api.js +1447 -0
  32. package/dist/api.d.ts +2 -0
  33. package/dist/api.js +2 -0
  34. package/dist/base.d.ts +24 -0
  35. package/dist/base.js +178 -59
  36. package/dist/common.d.ts +1 -1
  37. package/dist/common.js +1 -0
  38. package/dist/configuration.d.ts +17 -0
  39. package/dist/configuration.js +2 -0
  40. package/dist/models/account-mapping-class.d.ts +2 -0
  41. package/dist/models/account-mapping-class.js +3 -1
  42. package/dist/models/accounting-config-class.d.ts +11 -0
  43. package/dist/models/accounting-config-class.js +5 -0
  44. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
  45. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  46. package/dist/models/booking-entry-class.d.ts +21 -0
  47. package/dist/models/booking-entry-class.js +9 -1
  48. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  49. package/dist/models/commission-account-mapping-class.js +15 -0
  50. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  51. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  52. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  53. package/dist/models/commission-agreement-partner-class.js +15 -0
  54. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  55. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  56. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  57. package/dist/models/commission-type-account-mapping-class.js +15 -0
  58. package/dist/models/create-booking-entry-request-dto.d.ts +21 -0
  59. package/dist/models/create-booking-entry-request-dto.js +9 -0
  60. package/dist/models/create-financial-account-request-dto.d.ts +14 -0
  61. package/dist/models/create-financial-account-request-dto.js +3 -1
  62. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  63. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  64. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  65. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  66. package/dist/models/financial-account-class.d.ts +30 -1
  67. package/dist/models/financial-account-class.js +5 -1
  68. package/dist/models/financial-transaction-class.d.ts +6 -0
  69. package/dist/models/financial-transaction-data-dto.d.ts +7 -0
  70. package/dist/models/financial-transaction-data-dto.js +1 -0
  71. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  72. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  73. package/dist/models/index.d.ts +33 -0
  74. package/dist/models/index.js +33 -0
  75. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  76. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  77. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  78. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  79. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  80. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  81. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  82. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  83. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  84. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  85. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  86. package/dist/models/opening-balance-item-dto.js +20 -0
  87. package/dist/models/post-financial-event-request-dto.d.ts +45 -0
  88. package/dist/models/post-financial-event-request-dto.js +24 -0
  89. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  90. package/dist/models/post-financial-event-response-class.js +15 -0
  91. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  92. package/dist/models/premium-item-account-mapping-class.js +15 -0
  93. package/dist/models/product-account-mapping-class.d.ts +61 -0
  94. package/dist/models/product-account-mapping-class.js +15 -0
  95. package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
  96. package/dist/models/product-account-mapping-detail-class.js +15 -0
  97. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  98. package/dist/models/product-risk-carrier-class.js +15 -0
  99. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  100. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  101. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  102. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  103. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  104. package/dist/models/product-with-account-mappings-class.js +15 -0
  105. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  106. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  107. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  108. package/dist/models/put-product-category-account-body-dto.js +15 -0
  109. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  110. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  111. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  112. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  113. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  114. package/dist/models/resolved-account-mapping-class.js +15 -0
  115. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  116. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  117. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  118. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  119. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  120. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  121. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  122. package/dist/models/update-financial-account-body-dto.js +15 -0
  123. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  124. package/dist/models/update-financial-account-response-class.js +15 -0
  125. package/models/account-mapping-class.ts +3 -1
  126. package/models/accounting-config-class.ts +14 -0
  127. package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
  128. package/models/booking-entry-class.ts +22 -0
  129. package/models/commission-account-mapping-class.ts +55 -0
  130. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  131. package/models/commission-agreement-partner-class.ts +36 -0
  132. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  133. package/models/commission-type-account-mapping-class.ts +37 -0
  134. package/models/create-booking-entry-request-dto.ts +24 -0
  135. package/models/create-financial-account-request-dto.ts +15 -1
  136. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  137. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  138. package/models/financial-account-class.ts +31 -1
  139. package/models/financial-transaction-class.ts +6 -0
  140. package/models/financial-transaction-data-dto.ts +7 -0
  141. package/models/get-activation-snapshot-response-class.ts +31 -0
  142. package/models/index.ts +33 -0
  143. package/models/list-commission-account-mappings-response-class.ts +49 -0
  144. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  145. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  146. package/models/list-product-account-mappings-response-class.ts +49 -0
  147. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  148. package/models/opening-balance-item-dto.ts +50 -0
  149. package/models/post-financial-event-request-dto.ts +54 -0
  150. package/models/post-financial-event-response-class.ts +31 -0
  151. package/models/premium-item-account-mapping-class.ts +43 -0
  152. package/models/product-account-mapping-class.ts +67 -0
  153. package/models/product-account-mapping-detail-class.ts +62 -0
  154. package/models/product-risk-carrier-class.ts +48 -0
  155. package/models/product-version-account-mapping-detail-class.ts +56 -0
  156. package/models/product-version-with-account-mappings-class.ts +48 -0
  157. package/models/product-with-account-mappings-class.ts +55 -0
  158. package/models/put-premium-item-account-body-dto.ts +30 -0
  159. package/models/put-product-category-account-body-dto.ts +30 -0
  160. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  161. package/models/put-product-version-category-account-body-dto.ts +30 -0
  162. package/models/resolved-account-mapping-class.ts +37 -0
  163. package/models/resolved-commission-account-mapping-class.ts +46 -0
  164. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  165. package/models/update-commission-type-account-body-dto.ts +30 -0
  166. package/models/update-financial-account-body-dto.ts +54 -0
  167. package/models/update-financial-account-response-class.ts +31 -0
  168. package/package.json +2 -2
@@ -5,11 +5,13 @@ README.md
5
5
  api.ts
6
6
  api/accounting-configs-api.ts
7
7
  api/booking-entries-api.ts
8
+ api/commission-account-mappings-api.ts
8
9
  api/financial-accounts-api.ts
9
10
  api/financial-transactions-api.ts
10
11
  api/health-api.ts
11
12
  api/number-ranges-api.ts
12
13
  api/personal-accounts-api.ts
14
+ api/product-account-mappings-api.ts
13
15
  base.ts
14
16
  common.ts
15
17
  configuration.ts
@@ -24,6 +26,11 @@ models/accounting-config-data-dto-default-account-mappings.ts
24
26
  models/accounting-config-data-dto.ts
25
27
  models/accounting-configuration-class.ts
26
28
  models/booking-entry-class.ts
29
+ models/commission-account-mapping-class.ts
30
+ models/commission-agreement-account-mapping-detail-class.ts
31
+ models/commission-agreement-partner-class.ts
32
+ models/commission-agreement-with-account-mapping-class.ts
33
+ models/commission-type-account-mapping-class.ts
27
34
  models/create-and-enable-subledger-request-dto.ts
28
35
  models/create-and-enable-subledger-response-class.ts
29
36
  models/create-booking-entry-request-dto.ts
@@ -32,6 +39,8 @@ models/create-financial-account-request-dto.ts
32
39
  models/create-financial-account-response-class.ts
33
40
  models/create-number-range-request-dto.ts
34
41
  models/create-number-range-response-class.ts
42
+ models/create-or-correct-opening-balance-dto.ts
43
+ models/create-or-correct-opening-balance-response-class.ts
35
44
  models/create-personal-account-request-dto.ts
36
45
  models/create-personal-account-response-class.ts
37
46
  models/export-accounting-config-response-class.ts
@@ -39,6 +48,7 @@ models/financial-account-class.ts
39
48
  models/financial-transaction-class.ts
40
49
  models/financial-transaction-data-dto.ts
41
50
  models/get-accounting-categories-response-class.ts
51
+ models/get-activation-snapshot-response-class.ts
42
52
  models/get-booking-entry-response-class.ts
43
53
  models/get-financial-account-response-class.ts
44
54
  models/get-financial-transaction-response-class.ts
@@ -48,12 +58,37 @@ models/index.ts
48
58
  models/inline-response200.ts
49
59
  models/inline-response503.ts
50
60
  models/list-booking-entries-response-class.ts
61
+ models/list-commission-account-mappings-response-class.ts
62
+ models/list-commission-agreements-with-account-mappings-response-class.ts
63
+ models/list-commission-type-account-mappings-response-class.ts
51
64
  models/list-financial-accounts-response-class.ts
52
65
  models/list-financial-transactions-response-class.ts
53
66
  models/list-number-range-response-class.ts
54
67
  models/list-personal-accounts-response-class.ts
68
+ models/list-product-account-mappings-response-class.ts
69
+ models/list-products-with-account-mappings-response-class.ts
55
70
  models/number-range-class.ts
71
+ models/opening-balance-item-dto.ts
56
72
  models/personal-account-class.ts
73
+ models/post-financial-event-request-dto.ts
74
+ models/post-financial-event-response-class.ts
75
+ models/premium-item-account-mapping-class.ts
76
+ models/product-account-mapping-class.ts
77
+ models/product-account-mapping-detail-class.ts
78
+ models/product-risk-carrier-class.ts
79
+ models/product-version-account-mapping-detail-class.ts
80
+ models/product-version-with-account-mappings-class.ts
81
+ models/product-with-account-mappings-class.ts
82
+ models/put-premium-item-account-body-dto.ts
83
+ models/put-product-category-account-body-dto.ts
84
+ models/put-product-risk-carrier-body-dto.ts
85
+ models/put-product-version-category-account-body-dto.ts
86
+ models/resolved-account-mapping-class.ts
87
+ models/resolved-commission-account-mapping-class.ts
88
+ models/update-commission-agreement-account-body-dto.ts
89
+ models/update-commission-type-account-body-dto.ts
90
+ models/update-financial-account-body-dto.ts
91
+ models/update-financial-account-response-class.ts
57
92
  models/validate-accounting-config-request-dto.ts
58
93
  models/validate-accounting-config-response-class.ts
59
94
  package.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/accounting-sdk@1.34.1-beta.6 --save
20
+ npm install @emilgroup/accounting-sdk@1.34.1-beta.63 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk@1.34.1-beta.6
24
+ yarn add @emilgroup/accounting-sdk@1.34.1-beta.63
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -29,6 +29,8 @@ import { ExportAccountingConfigResponseClass } from '../models';
29
29
  // @ts-ignore
30
30
  import { GetAccountingCategoriesResponseClass } from '../models';
31
31
  // @ts-ignore
32
+ import { GetActivationSnapshotResponseClass } from '../models';
33
+ // @ts-ignore
32
34
  import { ValidateAccountingConfigRequestDto } from '../models';
33
35
  // @ts-ignore
34
36
  import { ValidateAccountingConfigResponseClass } from '../models';
@@ -67,8 +69,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
67
69
  // http bearer authentication required
68
70
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
71
 
70
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ // Only Authorization falls back to the configured token; an empty value is never sent.
73
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
74
+ if (authorizationValue) {
75
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
72
76
  }
73
77
 
74
78
 
@@ -115,8 +119,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
115
119
  // http bearer authentication required
116
120
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
121
 
118
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
122
+ // Only Authorization falls back to the configured token; an empty value is never sent.
123
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
124
+ if (authorizationValue) {
125
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
120
126
  }
121
127
 
122
128
 
@@ -163,8 +169,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
163
169
  // http bearer authentication required
164
170
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
165
171
 
166
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
167
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
172
+ // Only Authorization falls back to the configured token; an empty value is never sent.
173
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
174
+ if (authorizationValue) {
175
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
168
176
  }
169
177
 
170
178
 
@@ -204,8 +212,53 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
204
212
  // http bearer authentication required
205
213
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
206
214
 
207
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
208
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
215
+ // Only Authorization falls back to the configured token; an empty value is never sent.
216
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
217
+ if (authorizationValue) {
218
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
219
+ }
220
+
221
+
222
+
223
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
224
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
225
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
226
+
227
+ return {
228
+ url: toPathString(localVarUrlObj),
229
+ options: localVarRequestOptions,
230
+ };
231
+ },
232
+ /**
233
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
234
+ * @summary Retrieve the get activation snapshot
235
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
236
+ * @param {*} [options] Override http request option.
237
+ * @throws {RequiredError}
238
+ */
239
+ getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
240
+ const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
242
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
243
+ let baseOptions;
244
+ let baseAccessToken;
245
+ if (configuration) {
246
+ baseOptions = configuration.baseOptions;
247
+ baseAccessToken = configuration.accessToken;
248
+ }
249
+
250
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
251
+ const localVarHeaderParameter = {} as any;
252
+ const localVarQueryParameter = {} as any;
253
+
254
+ // authentication bearer required
255
+ // http bearer authentication required
256
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
257
+
258
+ // Only Authorization falls back to the configured token; an empty value is never sent.
259
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
260
+ if (authorizationValue) {
261
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
209
262
  }
210
263
 
211
264
 
@@ -245,8 +298,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
245
298
  // http bearer authentication required
246
299
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
247
300
 
248
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
249
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
301
+ // Only Authorization falls back to the configured token; an empty value is never sent.
302
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
303
+ if (authorizationValue) {
304
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
250
305
  }
251
306
 
252
307
 
@@ -289,8 +344,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
289
344
  // http bearer authentication required
290
345
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
291
346
 
292
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
293
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
347
+ // Only Authorization falls back to the configured token; an empty value is never sent.
348
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
349
+ if (authorizationValue) {
350
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
294
351
  }
295
352
 
296
353
 
@@ -337,8 +394,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
337
394
  // http bearer authentication required
338
395
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
339
396
 
340
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
341
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
397
+ // Only Authorization falls back to the configured token; an empty value is never sent.
398
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
399
+ if (authorizationValue) {
400
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
342
401
  }
343
402
 
344
403
 
@@ -415,6 +474,17 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
415
474
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingCategories(authorization, options);
416
475
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
417
476
  },
477
+ /**
478
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
479
+ * @summary Retrieve the get activation snapshot
480
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ async getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
485
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(authorization, options);
486
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
487
+ },
418
488
  /**
419
489
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
420
490
  * @summary Delete the reset subledger
@@ -502,6 +572,16 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
502
572
  getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass> {
503
573
  return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
504
574
  },
575
+ /**
576
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
577
+ * @summary Retrieve the get activation snapshot
578
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ */
582
+ getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
583
+ return localVarFp.getActivationSnapshot(authorization, options).then((request) => request(axios, basePath));
584
+ },
505
585
  /**
506
586
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
507
587
  * @summary Delete the reset subledger
@@ -607,6 +687,20 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
607
687
  readonly authorization?: string
608
688
  }
609
689
 
690
+ /**
691
+ * Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
692
+ * @export
693
+ * @interface AccountingConfigsApiGetActivationSnapshotRequest
694
+ */
695
+ export interface AccountingConfigsApiGetActivationSnapshotRequest {
696
+ /**
697
+ * Bearer Token: provided by the login endpoint under the name accessToken.
698
+ * @type {string}
699
+ * @memberof AccountingConfigsApiGetActivationSnapshot
700
+ */
701
+ readonly authorization?: string
702
+ }
703
+
610
704
  /**
611
705
  * Request parameters for resetSubledger operation in AccountingConfigsApi.
612
706
  * @export
@@ -718,6 +812,18 @@ export class AccountingConfigsApi extends BaseAPI {
718
812
  return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
719
813
  }
720
814
 
815
+ /**
816
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
817
+ * @summary Retrieve the get activation snapshot
818
+ * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
819
+ * @param {*} [options] Override http request option.
820
+ * @throws {RequiredError}
821
+ * @memberof AccountingConfigsApi
822
+ */
823
+ public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
824
+ return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
825
+ }
826
+
721
827
  /**
722
828
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
723
829
  * @summary Delete the reset subledger
@@ -25,9 +25,17 @@ import { CreateBookingEntryRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateBookingEntryResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { CreateOrCorrectOpeningBalanceDto } from '../models';
29
+ // @ts-ignore
30
+ import { CreateOrCorrectOpeningBalanceResponseClass } from '../models';
31
+ // @ts-ignore
28
32
  import { GetBookingEntryResponseClass } from '../models';
29
33
  // @ts-ignore
30
34
  import { ListBookingEntriesResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { PostFinancialEventRequestDto } from '../models';
37
+ // @ts-ignore
38
+ import { PostFinancialEventResponseClass } from '../models';
31
39
  /**
32
40
  * BookingEntriesApi - axios parameter creator
33
41
  * @export
@@ -63,8 +71,10 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
63
71
  // http bearer authentication required
64
72
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
73
 
66
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
74
+ // Only Authorization falls back to the configured token; an empty value is never sent.
75
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
76
+ if (authorizationValue) {
77
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
68
78
  }
69
79
 
70
80
 
@@ -81,6 +91,55 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
81
91
  options: localVarRequestOptions,
82
92
  };
83
93
  },
94
+ /**
95
+ * 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\"
96
+ * @summary Update the create or correct opening balance
97
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
98
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ createOrCorrectOpeningBalance: async (createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
+ // verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
104
+ assertParamExists('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto)
105
+ const localVarPath = `/accountingservice/v1/booking-entries/opening-balances`;
106
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
107
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
108
+ let baseOptions;
109
+ let baseAccessToken;
110
+ if (configuration) {
111
+ baseOptions = configuration.baseOptions;
112
+ baseAccessToken = configuration.accessToken;
113
+ }
114
+
115
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
116
+ const localVarHeaderParameter = {} as any;
117
+ const localVarQueryParameter = {} as any;
118
+
119
+ // authentication bearer required
120
+ // http bearer authentication required
121
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
122
+
123
+ // Only Authorization falls back to the configured token; an empty value is never sent.
124
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
125
+ if (authorizationValue) {
126
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
127
+ }
128
+
129
+
130
+
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+
133
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
135
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
136
+ localVarRequestOptions.data = serializeDataIfNeeded(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration)
137
+
138
+ return {
139
+ url: toPathString(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ };
142
+ },
84
143
  /**
85
144
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
86
145
  * @summary Retrieve the booking entry
@@ -118,8 +177,10 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
118
177
  localVarQueryParameter['expand'] = expand;
119
178
  }
120
179
 
121
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ // Only Authorization falls back to the configured token; an empty value is never sent.
181
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
182
+ if (authorizationValue) {
183
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
123
184
  }
124
185
 
125
186
 
@@ -194,8 +255,10 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
194
255
  localVarQueryParameter['filters'] = filters;
195
256
  }
196
257
 
197
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
198
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
258
+ // Only Authorization falls back to the configured token; an empty value is never sent.
259
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
260
+ if (authorizationValue) {
261
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
199
262
  }
200
263
 
201
264
 
@@ -204,6 +267,55 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
204
267
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
205
268
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
206
269
 
270
+ return {
271
+ url: toPathString(localVarUrlObj),
272
+ options: localVarRequestOptions,
273
+ };
274
+ },
275
+ /**
276
+ * 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\"
277
+ * @summary Create the booking entry from a source entity
278
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
279
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ postFinancialEvent: async (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
284
+ // verify required parameter 'postFinancialEventRequestDto' is not null or undefined
285
+ assertParamExists('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto)
286
+ const localVarPath = `/accountingservice/v1/booking-entries/post-financial-event`;
287
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
288
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
289
+ let baseOptions;
290
+ let baseAccessToken;
291
+ if (configuration) {
292
+ baseOptions = configuration.baseOptions;
293
+ baseAccessToken = configuration.accessToken;
294
+ }
295
+
296
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
297
+ const localVarHeaderParameter = {} as any;
298
+ const localVarQueryParameter = {} as any;
299
+
300
+ // authentication bearer required
301
+ // http bearer authentication required
302
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
303
+
304
+ // Only Authorization falls back to the configured token; an empty value is never sent.
305
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
306
+ if (authorizationValue) {
307
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
308
+ }
309
+
310
+
311
+
312
+ localVarHeaderParameter['Content-Type'] = 'application/json';
313
+
314
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
315
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
316
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
317
+ localVarRequestOptions.data = serializeDataIfNeeded(postFinancialEventRequestDto, localVarRequestOptions, configuration)
318
+
207
319
  return {
208
320
  url: toPathString(localVarUrlObj),
209
321
  options: localVarRequestOptions,
@@ -231,6 +343,18 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
231
343
  const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingEntry(createBookingEntryRequestDto, authorization, options);
232
344
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
233
345
  },
346
+ /**
347
+ * 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\"
348
+ * @summary Update the create or correct opening balance
349
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
350
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ */
354
+ async createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>> {
355
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options);
356
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
357
+ },
234
358
  /**
235
359
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
236
360
  * @summary Retrieve the booking entry
@@ -262,6 +386,18 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
262
386
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
263
387
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
264
388
  },
389
+ /**
390
+ * 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\"
391
+ * @summary Create the booking entry from a source entity
392
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
393
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ async postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>> {
398
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options);
399
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
400
+ },
265
401
  }
266
402
  };
267
403
 
@@ -283,6 +419,17 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
283
419
  createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass> {
284
420
  return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then((request) => request(axios, basePath));
285
421
  },
422
+ /**
423
+ * 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\"
424
+ * @summary Update the create or correct opening balance
425
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
426
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ */
430
+ createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: any): AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass> {
431
+ return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then((request) => request(axios, basePath));
432
+ },
286
433
  /**
287
434
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
288
435
  * @summary Retrieve the booking entry
@@ -312,6 +459,17 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
312
459
  listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass> {
313
460
  return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
314
461
  },
462
+ /**
463
+ * 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\"
464
+ * @summary Create the booking entry from a source entity
465
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
466
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass> {
471
+ return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then((request) => request(axios, basePath));
472
+ },
315
473
  };
316
474
  };
317
475
 
@@ -336,6 +494,27 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
336
494
  readonly authorization?: string
337
495
  }
338
496
 
497
+ /**
498
+ * Request parameters for createOrCorrectOpeningBalance operation in BookingEntriesApi.
499
+ * @export
500
+ * @interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest
501
+ */
502
+ export interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest {
503
+ /**
504
+ *
505
+ * @type {CreateOrCorrectOpeningBalanceDto}
506
+ * @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
507
+ */
508
+ readonly createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto
509
+
510
+ /**
511
+ * Bearer Token: provided by the login endpoint under the name accessToken.
512
+ * @type {string}
513
+ * @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
514
+ */
515
+ readonly authorization?: string
516
+ }
517
+
339
518
  /**
340
519
  * Request parameters for getBookingEntry operation in BookingEntriesApi.
341
520
  * @export
@@ -427,6 +606,27 @@ export interface BookingEntriesApiListBookingEntriesRequest {
427
606
  readonly filters?: string
428
607
  }
429
608
 
609
+ /**
610
+ * Request parameters for postFinancialEvent operation in BookingEntriesApi.
611
+ * @export
612
+ * @interface BookingEntriesApiPostFinancialEventRequest
613
+ */
614
+ export interface BookingEntriesApiPostFinancialEventRequest {
615
+ /**
616
+ *
617
+ * @type {PostFinancialEventRequestDto}
618
+ * @memberof BookingEntriesApiPostFinancialEvent
619
+ */
620
+ readonly postFinancialEventRequestDto: PostFinancialEventRequestDto
621
+
622
+ /**
623
+ * Bearer Token: provided by the login endpoint under the name accessToken.
624
+ * @type {string}
625
+ * @memberof BookingEntriesApiPostFinancialEvent
626
+ */
627
+ readonly authorization?: string
628
+ }
629
+
430
630
  /**
431
631
  * BookingEntriesApi - object-oriented interface
432
632
  * @export
@@ -446,6 +646,18 @@ export class BookingEntriesApi extends BaseAPI {
446
646
  return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
447
647
  }
448
648
 
649
+ /**
650
+ * 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\"
651
+ * @summary Update the create or correct opening balance
652
+ * @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ * @memberof BookingEntriesApi
656
+ */
657
+ public createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig) {
658
+ return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
659
+ }
660
+
449
661
  /**
450
662
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
451
663
  * @summary Retrieve the booking entry
@@ -469,4 +681,16 @@ export class BookingEntriesApi extends BaseAPI {
469
681
  public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
470
682
  return BookingEntriesApiFp(this.configuration).listBookingEntries(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
471
683
  }
684
+
685
+ /**
686
+ * 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\"
687
+ * @summary Create the booking entry from a source entity
688
+ * @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ * @memberof BookingEntriesApi
692
+ */
693
+ public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
694
+ return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
695
+ }
472
696
  }