@emilgroup/accounting-sdk-node 1.32.1-beta.3 → 1.32.1-beta.30

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 (122) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +97 -7
  4. package/api/booking-entries-api.ts +107 -0
  5. package/api/commission-account-mappings-api.ts +1195 -0
  6. package/api/financial-accounts-api.ts +132 -12
  7. package/api/product-account-mappings-api.ts +1474 -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 +94 -7
  11. package/dist/api/booking-entries-api.d.ts +57 -0
  12. package/dist/api/booking-entries-api.js +93 -0
  13. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  14. package/dist/api/commission-account-mappings-api.js +1008 -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 +1228 -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/booking-entry-class.d.ts +19 -0
  24. package/dist/models/booking-entry-class.js +7 -1
  25. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  26. package/dist/models/commission-account-mapping-class.js +15 -0
  27. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  28. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  29. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  30. package/dist/models/commission-agreement-partner-class.js +15 -0
  31. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  32. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  33. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  34. package/dist/models/commission-type-account-mapping-class.js +15 -0
  35. package/dist/models/create-booking-entry-request-dto.d.ts +19 -0
  36. package/dist/models/create-booking-entry-request-dto.js +7 -0
  37. package/dist/models/create-financial-account-request-dto.d.ts +12 -0
  38. package/dist/models/financial-account-class.d.ts +30 -1
  39. package/dist/models/financial-account-class.js +5 -1
  40. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  41. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  42. package/dist/models/index.d.ts +28 -0
  43. package/dist/models/index.js +28 -0
  44. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  45. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  46. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  47. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  48. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  49. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  50. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  51. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  52. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  53. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  54. package/dist/models/post-financial-event-request-dto.d.ts +43 -0
  55. package/dist/models/post-financial-event-request-dto.js +22 -0
  56. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  57. package/dist/models/post-financial-event-response-class.js +15 -0
  58. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  59. package/dist/models/premium-item-account-mapping-class.js +15 -0
  60. package/dist/models/product-account-mapping-class.d.ts +61 -0
  61. package/dist/models/product-account-mapping-class.js +15 -0
  62. package/dist/models/product-account-mapping-detail-class.d.ts +50 -0
  63. package/dist/models/product-account-mapping-detail-class.js +15 -0
  64. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  65. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  66. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  67. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  68. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  69. package/dist/models/product-with-account-mappings-class.js +15 -0
  70. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  71. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  72. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  73. package/dist/models/put-product-category-account-body-dto.js +15 -0
  74. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  75. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  76. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  77. package/dist/models/resolved-account-mapping-class.js +15 -0
  78. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  79. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  80. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  81. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  82. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  83. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  84. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  85. package/dist/models/update-financial-account-body-dto.js +15 -0
  86. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  87. package/dist/models/update-financial-account-response-class.js +15 -0
  88. package/models/accounting-config-class.ts +14 -0
  89. package/models/booking-entry-class.ts +20 -0
  90. package/models/commission-account-mapping-class.ts +55 -0
  91. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  92. package/models/commission-agreement-partner-class.ts +36 -0
  93. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  94. package/models/commission-type-account-mapping-class.ts +37 -0
  95. package/models/create-booking-entry-request-dto.ts +22 -0
  96. package/models/create-financial-account-request-dto.ts +12 -0
  97. package/models/financial-account-class.ts +31 -1
  98. package/models/get-activation-snapshot-response-class.ts +31 -0
  99. package/models/index.ts +28 -0
  100. package/models/list-commission-account-mappings-response-class.ts +49 -0
  101. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  102. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  103. package/models/list-product-account-mappings-response-class.ts +49 -0
  104. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  105. package/models/post-financial-event-request-dto.ts +52 -0
  106. package/models/post-financial-event-response-class.ts +31 -0
  107. package/models/premium-item-account-mapping-class.ts +43 -0
  108. package/models/product-account-mapping-class.ts +67 -0
  109. package/models/product-account-mapping-detail-class.ts +56 -0
  110. package/models/product-version-account-mapping-detail-class.ts +56 -0
  111. package/models/product-version-with-account-mappings-class.ts +48 -0
  112. package/models/product-with-account-mappings-class.ts +55 -0
  113. package/models/put-premium-item-account-body-dto.ts +30 -0
  114. package/models/put-product-category-account-body-dto.ts +30 -0
  115. package/models/put-product-version-category-account-body-dto.ts +30 -0
  116. package/models/resolved-account-mapping-class.ts +37 -0
  117. package/models/resolved-commission-account-mapping-class.ts +46 -0
  118. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  119. package/models/update-commission-type-account-body-dto.ts +30 -0
  120. package/models/update-financial-account-body-dto.ts +54 -0
  121. package/models/update-financial-account-response-class.ts +31 -0
  122. package/package.json +1 -1
package/api.ts CHANGED
@@ -26,18 +26,22 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
27
  import { AccountingConfigsApi } from './api';
28
28
  import { BookingEntriesApi } from './api';
29
+ import { CommissionAccountMappingsApi } from './api';
29
30
  import { FinancialAccountsApi } from './api';
30
31
  import { FinancialTransactionsApi } from './api';
31
32
  import { HealthApi } from './api';
32
33
  import { NumberRangesApi } from './api';
33
34
  import { PersonalAccountsApi } from './api';
35
+ import { ProductAccountMappingsApi } from './api';
34
36
 
35
37
 
36
38
  export * from './api/accounting-configs-api';
37
39
  export * from './api/booking-entries-api';
40
+ export * from './api/commission-account-mappings-api';
38
41
  export * from './api/financial-accounts-api';
39
42
  export * from './api/financial-transactions-api';
40
43
  export * from './api/health-api';
41
44
  export * from './api/number-ranges-api';
42
45
  export * from './api/personal-accounts-api';
46
+ export * from './api/product-account-mappings-api';
43
47
 
@@ -16,6 +16,7 @@ import { CreateAndEnableSubledgerRequestDto } from '../models';
16
16
  import { CreateAndEnableSubledgerResponseClass } from '../models';
17
17
  import { ExportAccountingConfigResponseClass } from '../models';
18
18
  import { GetAccountingCategoriesResponseClass } from '../models';
19
+ import { GetActivationSnapshotResponseClass } from '../models';
19
20
  import { ValidateAccountingConfigRequestDto } from '../models';
20
21
  import { ValidateAccountingConfigResponseClass } from '../models';
21
22
  /**
@@ -57,6 +58,14 @@ export declare const AccountingConfigsApiAxiosParamCreator: (configuration?: Con
57
58
  * @throws {RequiredError}
58
59
  */
59
60
  getAccountingCategories: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
61
+ /**
62
+ * 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\"
63
+ * @summary Retrieve the get activation snapshot
64
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ getActivationSnapshot: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
60
69
  /**
61
70
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
62
71
  * @summary Delete the reset subledger
@@ -123,6 +132,14 @@ export declare const AccountingConfigsApiFp: (configuration?: Configuration) =>
123
132
  * @throws {RequiredError}
124
133
  */
125
134
  getAccountingCategories(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountingCategoriesResponseClass>>;
135
+ /**
136
+ * 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\"
137
+ * @summary Retrieve the get activation snapshot
138
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>>;
126
143
  /**
127
144
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
128
145
  * @summary Delete the reset subledger
@@ -189,6 +206,14 @@ export declare const AccountingConfigsApiFactory: (configuration?: Configuration
189
206
  * @throws {RequiredError}
190
207
  */
191
208
  getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass>;
209
+ /**
210
+ * 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\"
211
+ * @summary Retrieve the get activation snapshot
212
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass>;
192
217
  /**
193
218
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
194
219
  * @summary Delete the reset subledger
@@ -280,6 +305,19 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
280
305
  */
281
306
  readonly authorization?: string;
282
307
  }
308
+ /**
309
+ * Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
310
+ * @export
311
+ * @interface AccountingConfigsApiGetActivationSnapshotRequest
312
+ */
313
+ export interface AccountingConfigsApiGetActivationSnapshotRequest {
314
+ /**
315
+ * Bearer Token: provided by the login endpoint under the name accessToken.
316
+ * @type {string}
317
+ * @memberof AccountingConfigsApiGetActivationSnapshot
318
+ */
319
+ readonly authorization?: string;
320
+ }
283
321
  /**
284
322
  * Request parameters for resetSubledger operation in AccountingConfigsApi.
285
323
  * @export
@@ -374,6 +412,15 @@ export declare class AccountingConfigsApi extends BaseAPI {
374
412
  * @memberof AccountingConfigsApi
375
413
  */
376
414
  getAccountingCategories(requestParameters?: AccountingConfigsApiGetAccountingCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountingCategoriesResponseClass, any, {}>>;
415
+ /**
416
+ * 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\"
417
+ * @summary Retrieve the get activation snapshot
418
+ * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ * @memberof AccountingConfigsApi
422
+ */
423
+ getActivationSnapshot(requestParameters?: AccountingConfigsApiGetActivationSnapshotRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActivationSnapshotResponseClass, any, {}>>;
377
424
  /**
378
425
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
379
426
  * @summary Delete the reset subledger
@@ -113,7 +113,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
113
113
  case 0:
114
114
  // verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
115
115
  (0, common_1.assertParamExists)('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto);
116
- localVarPath = "/accountingservice/v1/accountingconfigs";
116
+ localVarPath = "/accountingservice/v1/subledger";
117
117
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
118
  if (configuration) {
119
119
  baseOptions = configuration.baseOptions;
@@ -162,7 +162,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
162
162
  case 0:
163
163
  // verify required parameter 'file' is not null or undefined
164
164
  (0, common_1.assertParamExists)('createAndEnableSubledgerFromFile', 'file', file);
165
- localVarPath = "/accountingservice/v1/accountingconfigs/upload";
165
+ localVarPath = "/accountingservice/v1/subledger/upload";
166
166
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
167
167
  if (configuration) {
168
168
  baseOptions = configuration.baseOptions;
@@ -212,7 +212,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
212
212
  return __generator(this, function (_a) {
213
213
  switch (_a.label) {
214
214
  case 0:
215
- localVarPath = "/accountingservice/v1/accountingconfigs";
215
+ localVarPath = "/accountingservice/v1/subledger/config/export";
216
216
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
217
217
  if (configuration) {
218
218
  baseOptions = configuration.baseOptions;
@@ -256,7 +256,51 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
256
256
  return __generator(this, function (_a) {
257
257
  switch (_a.label) {
258
258
  case 0:
259
- localVarPath = "/accountingservice/v1/accountingconfigs/categories";
259
+ localVarPath = "/accountingservice/v1/subledger/categories";
260
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
261
+ if (configuration) {
262
+ baseOptions = configuration.baseOptions;
263
+ baseAccessToken = configuration.accessToken;
264
+ }
265
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
266
+ localVarHeaderParameter = {};
267
+ localVarQueryParameter = {};
268
+ // authentication bearer required
269
+ // http bearer authentication required
270
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
271
+ case 1:
272
+ // authentication bearer required
273
+ // http bearer authentication required
274
+ _a.sent();
275
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
276
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
277
+ }
278
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
279
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
280
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
281
+ return [2 /*return*/, {
282
+ url: (0, common_1.toPathString)(localVarUrlObj),
283
+ options: localVarRequestOptions,
284
+ }];
285
+ }
286
+ });
287
+ });
288
+ },
289
+ /**
290
+ * 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\"
291
+ * @summary Retrieve the get activation snapshot
292
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ getActivationSnapshot: function (authorization, options) {
297
+ if (options === void 0) { options = {}; }
298
+ return __awaiter(_this, void 0, void 0, function () {
299
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
300
+ return __generator(this, function (_a) {
301
+ switch (_a.label) {
302
+ case 0:
303
+ localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
260
304
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
261
305
  if (configuration) {
262
306
  baseOptions = configuration.baseOptions;
@@ -300,7 +344,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
300
344
  return __generator(this, function (_a) {
301
345
  switch (_a.label) {
302
346
  case 0:
303
- localVarPath = "/accountingservice/v1/accountingconfigs";
347
+ localVarPath = "/accountingservice/v1/subledger/reset";
304
348
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
305
349
  if (configuration) {
306
350
  baseOptions = configuration.baseOptions;
@@ -347,7 +391,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
347
391
  case 0:
348
392
  // verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
349
393
  (0, common_1.assertParamExists)('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto);
350
- localVarPath = "/accountingservice/v1/accountingconfigs/validate";
394
+ localVarPath = "/accountingservice/v1/subledger/config/validate";
351
395
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
352
396
  if (configuration) {
353
397
  baseOptions = configuration.baseOptions;
@@ -396,7 +440,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
396
440
  case 0:
397
441
  // verify required parameter 'file' is not null or undefined
398
442
  (0, common_1.assertParamExists)('validateAccountingConfigFromFile', 'file', file);
399
- localVarPath = "/accountingservice/v1/accountingconfigs/validate/upload";
443
+ localVarPath = "/accountingservice/v1/subledger/config/validate/upload";
400
444
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
401
445
  if (configuration) {
402
446
  baseOptions = configuration.baseOptions;
@@ -524,6 +568,26 @@ var AccountingConfigsApiFp = function (configuration) {
524
568
  });
525
569
  });
526
570
  },
571
+ /**
572
+ * 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\"
573
+ * @summary Retrieve the get activation snapshot
574
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ */
578
+ getActivationSnapshot: function (authorization, options) {
579
+ return __awaiter(this, void 0, void 0, function () {
580
+ var localVarAxiosArgs;
581
+ return __generator(this, function (_a) {
582
+ switch (_a.label) {
583
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActivationSnapshot(authorization, options)];
584
+ case 1:
585
+ localVarAxiosArgs = _a.sent();
586
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
587
+ }
588
+ });
589
+ });
590
+ },
527
591
  /**
528
592
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
529
593
  * @summary Delete the reset subledger
@@ -638,6 +702,16 @@ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
638
702
  getAccountingCategories: function (authorization, options) {
639
703
  return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
640
704
  },
705
+ /**
706
+ * 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\"
707
+ * @summary Retrieve the get activation snapshot
708
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ */
712
+ getActivationSnapshot: function (authorization, options) {
713
+ return localVarFp.getActivationSnapshot(authorization, options).then(function (request) { return request(axios, basePath); });
714
+ },
641
715
  /**
642
716
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
643
717
  * @summary Delete the reset subledger
@@ -734,6 +808,19 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
734
808
  if (requestParameters === void 0) { requestParameters = {}; }
735
809
  return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
736
810
  };
811
+ /**
812
+ * 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\"
813
+ * @summary Retrieve the get activation snapshot
814
+ * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ * @memberof AccountingConfigsApi
818
+ */
819
+ AccountingConfigsApi.prototype.getActivationSnapshot = function (requestParameters, options) {
820
+ var _this = this;
821
+ if (requestParameters === void 0) { requestParameters = {}; }
822
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
823
+ };
737
824
  /**
738
825
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
739
826
  * @summary Delete the reset subledger
@@ -16,6 +16,8 @@ import { CreateBookingEntryRequestDto } from '../models';
16
16
  import { CreateBookingEntryResponseClass } from '../models';
17
17
  import { GetBookingEntryResponseClass } from '../models';
18
18
  import { ListBookingEntriesResponseClass } from '../models';
19
+ import { PostFinancialEventRequestDto } from '../models';
20
+ import { PostFinancialEventResponseClass } from '../models';
19
21
  /**
20
22
  * BookingEntriesApi - axios parameter creator
21
23
  * @export
@@ -55,6 +57,15 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
55
57
  * @throws {RequiredError}
56
58
  */
57
59
  listBookingEntries: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
60
+ /**
61
+ * 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\"
62
+ * @summary Create the booking entry from a source entity
63
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
64
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ postFinancialEvent: (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
58
69
  };
59
70
  /**
60
71
  * BookingEntriesApi - functional programming interface
@@ -95,6 +106,15 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
95
106
  * @throws {RequiredError}
96
107
  */
97
108
  listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingEntriesResponseClass>>;
109
+ /**
110
+ * 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\"
111
+ * @summary Create the booking entry from a source entity
112
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
113
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>>;
98
118
  };
99
119
  /**
100
120
  * BookingEntriesApi - factory interface
@@ -135,6 +155,15 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
135
155
  * @throws {RequiredError}
136
156
  */
137
157
  listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass>;
158
+ /**
159
+ * 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\"
160
+ * @summary Create the booking entry from a source entity
161
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
162
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
163
+ * @param {*} [options] Override http request option.
164
+ * @throws {RequiredError}
165
+ */
166
+ postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass>;
138
167
  };
139
168
  /**
140
169
  * Request parameters for createBookingEntry operation in BookingEntriesApi.
@@ -235,6 +264,25 @@ export interface BookingEntriesApiListBookingEntriesRequest {
235
264
  */
236
265
  readonly filters?: string;
237
266
  }
267
+ /**
268
+ * Request parameters for postFinancialEvent operation in BookingEntriesApi.
269
+ * @export
270
+ * @interface BookingEntriesApiPostFinancialEventRequest
271
+ */
272
+ export interface BookingEntriesApiPostFinancialEventRequest {
273
+ /**
274
+ *
275
+ * @type {PostFinancialEventRequestDto}
276
+ * @memberof BookingEntriesApiPostFinancialEvent
277
+ */
278
+ readonly postFinancialEventRequestDto: PostFinancialEventRequestDto;
279
+ /**
280
+ * Bearer Token: provided by the login endpoint under the name accessToken.
281
+ * @type {string}
282
+ * @memberof BookingEntriesApiPostFinancialEvent
283
+ */
284
+ readonly authorization?: string;
285
+ }
238
286
  /**
239
287
  * BookingEntriesApi - object-oriented interface
240
288
  * @export
@@ -269,4 +317,13 @@ export declare class BookingEntriesApi extends BaseAPI {
269
317
  * @memberof BookingEntriesApi
270
318
  */
271
319
  listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}>>;
320
+ /**
321
+ * 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\"
322
+ * @summary Create the booking entry from a source entity
323
+ * @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ * @memberof BookingEntriesApi
327
+ */
328
+ postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PostFinancialEventResponseClass, any, {}>>;
272
329
  }
@@ -271,6 +271,55 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
271
271
  });
272
272
  });
273
273
  },
274
+ /**
275
+ * 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\"
276
+ * @summary Create the booking entry from a source entity
277
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
278
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
279
+ * @param {*} [options] Override http request option.
280
+ * @throws {RequiredError}
281
+ */
282
+ postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
283
+ if (options === void 0) { options = {}; }
284
+ return __awaiter(_this, void 0, void 0, function () {
285
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
286
+ return __generator(this, function (_a) {
287
+ switch (_a.label) {
288
+ case 0:
289
+ // verify required parameter 'postFinancialEventRequestDto' is not null or undefined
290
+ (0, common_1.assertParamExists)('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto);
291
+ localVarPath = "/accountingservice/v1/booking-entries/post-financial-event";
292
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
293
+ if (configuration) {
294
+ baseOptions = configuration.baseOptions;
295
+ baseAccessToken = configuration.accessToken;
296
+ }
297
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
298
+ localVarHeaderParameter = {};
299
+ localVarQueryParameter = {};
300
+ // authentication bearer required
301
+ // http bearer authentication required
302
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
303
+ case 1:
304
+ // authentication bearer required
305
+ // http bearer authentication required
306
+ _a.sent();
307
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
308
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
309
+ }
310
+ localVarHeaderParameter['Content-Type'] = 'application/json';
311
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
313
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
314
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postFinancialEventRequestDto, localVarRequestOptions, configuration);
315
+ return [2 /*return*/, {
316
+ url: (0, common_1.toPathString)(localVarUrlObj),
317
+ options: localVarRequestOptions,
318
+ }];
319
+ }
320
+ });
321
+ });
322
+ },
274
323
  };
275
324
  };
276
325
  exports.BookingEntriesApiAxiosParamCreator = BookingEntriesApiAxiosParamCreator;
@@ -351,6 +400,27 @@ var BookingEntriesApiFp = function (configuration) {
351
400
  });
352
401
  });
353
402
  },
403
+ /**
404
+ * 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\"
405
+ * @summary Create the booking entry from a source entity
406
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
407
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
412
+ return __awaiter(this, void 0, void 0, function () {
413
+ var localVarAxiosArgs;
414
+ return __generator(this, function (_a) {
415
+ switch (_a.label) {
416
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options)];
417
+ case 1:
418
+ localVarAxiosArgs = _a.sent();
419
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
420
+ }
421
+ });
422
+ });
423
+ },
354
424
  };
355
425
  };
356
426
  exports.BookingEntriesApiFp = BookingEntriesApiFp;
@@ -401,6 +471,17 @@ var BookingEntriesApiFactory = function (configuration, basePath, axios) {
401
471
  listBookingEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
402
472
  return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
403
473
  },
474
+ /**
475
+ * 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\"
476
+ * @summary Create the booking entry from a source entity
477
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
478
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
479
+ * @param {*} [options] Override http request option.
480
+ * @throws {RequiredError}
481
+ */
482
+ postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
483
+ return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
484
+ },
404
485
  };
405
486
  };
406
487
  exports.BookingEntriesApiFactory = BookingEntriesApiFactory;
@@ -452,6 +533,18 @@ var BookingEntriesApi = /** @class */ (function (_super) {
452
533
  if (requestParameters === void 0) { requestParameters = {}; }
453
534
  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
535
  };
536
+ /**
537
+ * 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\"
538
+ * @summary Create the booking entry from a source entity
539
+ * @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ * @memberof BookingEntriesApi
543
+ */
544
+ BookingEntriesApi.prototype.postFinancialEvent = function (requestParameters, options) {
545
+ var _this = this;
546
+ return (0, exports.BookingEntriesApiFp)(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
547
+ };
455
548
  return BookingEntriesApi;
456
549
  }(base_1.BaseAPI));
457
550
  exports.BookingEntriesApi = BookingEntriesApi;