@emilgroup/accounting-sdk-node 1.32.1-beta.5 → 1.32.1-beta.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/.openapi-generator/FILES +33 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +90 -0
  4. package/api/booking-entries-api.ts +214 -0
  5. package/api/commission-account-mappings-api.ts +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 +87 -0
  11. package/dist/api/booking-entries-api.d.ts +114 -0
  12. package/dist/api/booking-entries-api.js +186 -0
  13. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  14. package/dist/api/commission-account-mappings-api.js +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/accounting-config-data-dto-default-account-mappings.d.ts +6 -0
  24. package/dist/models/booking-entry-class.d.ts +19 -0
  25. package/dist/models/booking-entry-class.js +7 -1
  26. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  27. package/dist/models/commission-account-mapping-class.js +15 -0
  28. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  29. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  30. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  31. package/dist/models/commission-agreement-partner-class.js +15 -0
  32. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  33. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  34. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  35. package/dist/models/commission-type-account-mapping-class.js +15 -0
  36. package/dist/models/create-booking-entry-request-dto.d.ts +19 -0
  37. package/dist/models/create-booking-entry-request-dto.js +7 -0
  38. package/dist/models/create-financial-account-request-dto.d.ts +12 -0
  39. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  40. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  41. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  42. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  43. package/dist/models/financial-account-class.d.ts +30 -1
  44. package/dist/models/financial-account-class.js +5 -1
  45. package/dist/models/financial-transaction-data-dto.d.ts +1 -0
  46. package/dist/models/financial-transaction-data-dto.js +1 -0
  47. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  48. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  49. package/dist/models/index.d.ts +31 -0
  50. package/dist/models/index.js +31 -0
  51. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  52. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  53. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  54. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  55. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  56. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  57. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  58. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  59. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  60. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  61. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  62. package/dist/models/opening-balance-item-dto.js +20 -0
  63. package/dist/models/post-financial-event-request-dto.d.ts +43 -0
  64. package/dist/models/post-financial-event-request-dto.js +22 -0
  65. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  66. package/dist/models/post-financial-event-response-class.js +15 -0
  67. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  68. package/dist/models/premium-item-account-mapping-class.js +15 -0
  69. package/dist/models/product-account-mapping-class.d.ts +61 -0
  70. package/dist/models/product-account-mapping-class.js +15 -0
  71. package/dist/models/product-account-mapping-detail-class.d.ts +50 -0
  72. package/dist/models/product-account-mapping-detail-class.js +15 -0
  73. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  74. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  75. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  76. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  77. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  78. package/dist/models/product-with-account-mappings-class.js +15 -0
  79. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  80. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  81. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  82. package/dist/models/put-product-category-account-body-dto.js +15 -0
  83. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  84. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  85. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  86. package/dist/models/resolved-account-mapping-class.js +15 -0
  87. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  88. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  89. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  90. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  91. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  92. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  93. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  94. package/dist/models/update-financial-account-body-dto.js +15 -0
  95. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  96. package/dist/models/update-financial-account-response-class.js +15 -0
  97. package/models/accounting-config-class.ts +14 -0
  98. package/models/accounting-config-data-dto-default-account-mappings.ts +6 -0
  99. package/models/booking-entry-class.ts +20 -0
  100. package/models/commission-account-mapping-class.ts +55 -0
  101. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  102. package/models/commission-agreement-partner-class.ts +36 -0
  103. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  104. package/models/commission-type-account-mapping-class.ts +37 -0
  105. package/models/create-booking-entry-request-dto.ts +22 -0
  106. package/models/create-financial-account-request-dto.ts +12 -0
  107. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  108. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  109. package/models/financial-account-class.ts +31 -1
  110. package/models/financial-transaction-data-dto.ts +1 -0
  111. package/models/get-activation-snapshot-response-class.ts +31 -0
  112. package/models/index.ts +31 -0
  113. package/models/list-commission-account-mappings-response-class.ts +49 -0
  114. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  115. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  116. package/models/list-product-account-mappings-response-class.ts +49 -0
  117. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  118. package/models/opening-balance-item-dto.ts +50 -0
  119. package/models/post-financial-event-request-dto.ts +52 -0
  120. package/models/post-financial-event-response-class.ts +31 -0
  121. package/models/premium-item-account-mapping-class.ts +43 -0
  122. package/models/product-account-mapping-class.ts +67 -0
  123. package/models/product-account-mapping-detail-class.ts +56 -0
  124. package/models/product-version-account-mapping-detail-class.ts +56 -0
  125. package/models/product-version-with-account-mappings-class.ts +48 -0
  126. package/models/product-with-account-mappings-class.ts +55 -0
  127. package/models/put-premium-item-account-body-dto.ts +30 -0
  128. package/models/put-product-category-account-body-dto.ts +30 -0
  129. package/models/put-product-version-category-account-body-dto.ts +30 -0
  130. package/models/resolved-account-mapping-class.ts +37 -0
  131. package/models/resolved-commission-account-mapping-class.ts +46 -0
  132. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  133. package/models/update-commission-type-account-body-dto.ts +30 -0
  134. package/models/update-financial-account-body-dto.ts +54 -0
  135. package/models/update-financial-account-response-class.ts +31 -0
  136. package/package.json +1 -1
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
@@ -286,6 +286,50 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
286
286
  });
287
287
  });
288
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";
304
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
305
+ if (configuration) {
306
+ baseOptions = configuration.baseOptions;
307
+ baseAccessToken = configuration.accessToken;
308
+ }
309
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
310
+ localVarHeaderParameter = {};
311
+ localVarQueryParameter = {};
312
+ // authentication bearer required
313
+ // http bearer authentication required
314
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
315
+ case 1:
316
+ // authentication bearer required
317
+ // http bearer authentication required
318
+ _a.sent();
319
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
320
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
321
+ }
322
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
323
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
324
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
325
+ return [2 /*return*/, {
326
+ url: (0, common_1.toPathString)(localVarUrlObj),
327
+ options: localVarRequestOptions,
328
+ }];
329
+ }
330
+ });
331
+ });
332
+ },
289
333
  /**
290
334
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
291
335
  * @summary Delete the reset subledger
@@ -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
@@ -14,8 +14,12 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateBookingEntryRequestDto } from '../models';
16
16
  import { CreateBookingEntryResponseClass } from '../models';
17
+ import { CreateOrCorrectOpeningBalanceDto } from '../models';
18
+ import { CreateOrCorrectOpeningBalanceResponseClass } from '../models';
17
19
  import { GetBookingEntryResponseClass } from '../models';
18
20
  import { ListBookingEntriesResponseClass } from '../models';
21
+ import { PostFinancialEventRequestDto } from '../models';
22
+ import { PostFinancialEventResponseClass } from '../models';
19
23
  /**
20
24
  * BookingEntriesApi - axios parameter creator
21
25
  * @export
@@ -30,6 +34,15 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
30
34
  * @throws {RequiredError}
31
35
  */
32
36
  createBookingEntry: (createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
+ /**
38
+ * 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\"
39
+ * @summary Update the create or correct opening balance
40
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
41
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ createOrCorrectOpeningBalance: (createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
46
  /**
34
47
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
35
48
  * @summary Retrieve the booking entry
@@ -55,6 +68,15 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
55
68
  * @throws {RequiredError}
56
69
  */
57
70
  listBookingEntries: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
71
+ /**
72
+ * 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\"
73
+ * @summary Create the booking entry from a source entity
74
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
75
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ postFinancialEvent: (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
58
80
  };
59
81
  /**
60
82
  * BookingEntriesApi - functional programming interface
@@ -70,6 +92,15 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
70
92
  * @throws {RequiredError}
71
93
  */
72
94
  createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingEntryResponseClass>>;
95
+ /**
96
+ * 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\"
97
+ * @summary Update the create or correct opening balance
98
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>>;
73
104
  /**
74
105
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
75
106
  * @summary Retrieve the booking entry
@@ -95,6 +126,15 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
95
126
  * @throws {RequiredError}
96
127
  */
97
128
  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>>;
129
+ /**
130
+ * 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\"
131
+ * @summary Create the booking entry from a source entity
132
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
133
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>>;
98
138
  };
99
139
  /**
100
140
  * BookingEntriesApi - factory interface
@@ -110,6 +150,15 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
110
150
  * @throws {RequiredError}
111
151
  */
112
152
  createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass>;
153
+ /**
154
+ * 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\"
155
+ * @summary Update the create or correct opening balance
156
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
157
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: any): AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>;
113
162
  /**
114
163
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
115
164
  * @summary Retrieve the booking entry
@@ -135,6 +184,15 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
135
184
  * @throws {RequiredError}
136
185
  */
137
186
  listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass>;
187
+ /**
188
+ * 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\"
189
+ * @summary Create the booking entry from a source entity
190
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
191
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass>;
138
196
  };
139
197
  /**
140
198
  * Request parameters for createBookingEntry operation in BookingEntriesApi.
@@ -155,6 +213,25 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
155
213
  */
156
214
  readonly authorization?: string;
157
215
  }
216
+ /**
217
+ * Request parameters for createOrCorrectOpeningBalance operation in BookingEntriesApi.
218
+ * @export
219
+ * @interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest
220
+ */
221
+ export interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest {
222
+ /**
223
+ *
224
+ * @type {CreateOrCorrectOpeningBalanceDto}
225
+ * @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
226
+ */
227
+ readonly createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto;
228
+ /**
229
+ * Bearer Token: provided by the login endpoint under the name accessToken.
230
+ * @type {string}
231
+ * @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
232
+ */
233
+ readonly authorization?: string;
234
+ }
158
235
  /**
159
236
  * Request parameters for getBookingEntry operation in BookingEntriesApi.
160
237
  * @export
@@ -235,6 +312,25 @@ export interface BookingEntriesApiListBookingEntriesRequest {
235
312
  */
236
313
  readonly filters?: string;
237
314
  }
315
+ /**
316
+ * Request parameters for postFinancialEvent operation in BookingEntriesApi.
317
+ * @export
318
+ * @interface BookingEntriesApiPostFinancialEventRequest
319
+ */
320
+ export interface BookingEntriesApiPostFinancialEventRequest {
321
+ /**
322
+ *
323
+ * @type {PostFinancialEventRequestDto}
324
+ * @memberof BookingEntriesApiPostFinancialEvent
325
+ */
326
+ readonly postFinancialEventRequestDto: PostFinancialEventRequestDto;
327
+ /**
328
+ * Bearer Token: provided by the login endpoint under the name accessToken.
329
+ * @type {string}
330
+ * @memberof BookingEntriesApiPostFinancialEvent
331
+ */
332
+ readonly authorization?: string;
333
+ }
238
334
  /**
239
335
  * BookingEntriesApi - object-oriented interface
240
336
  * @export
@@ -251,6 +347,15 @@ export declare class BookingEntriesApi extends BaseAPI {
251
347
  * @memberof BookingEntriesApi
252
348
  */
253
349
  createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any, {}>>;
350
+ /**
351
+ * 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\"
352
+ * @summary Update the create or correct opening balance
353
+ * @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ * @memberof BookingEntriesApi
357
+ */
358
+ createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrCorrectOpeningBalanceResponseClass, any, {}>>;
254
359
  /**
255
360
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
256
361
  * @summary Retrieve the booking entry
@@ -269,4 +374,13 @@ export declare class BookingEntriesApi extends BaseAPI {
269
374
  * @memberof BookingEntriesApi
270
375
  */
271
376
  listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}>>;
377
+ /**
378
+ * 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\"
379
+ * @summary Create the booking entry from a source entity
380
+ * @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
381
+ * @param {*} [options] Override http request option.
382
+ * @throws {RequiredError}
383
+ * @memberof BookingEntriesApi
384
+ */
385
+ postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PostFinancialEventResponseClass, any, {}>>;
272
386
  }