@emilgroup/accounting-sdk 1.34.1-beta.3 → 1.34.1-beta.31

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 +1191 -0
  6. package/api/financial-accounts-api.ts +132 -12
  7. package/api/product-account-mappings-api.ts +1470 -0
  8. package/api.ts +4 -0
  9. package/dist/api/accounting-configs-api.d.ts +47 -0
  10. package/dist/api/accounting-configs-api.js +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 +1004 -0
  15. package/dist/api/financial-accounts-api.d.ts +78 -12
  16. package/dist/api/financial-accounts-api.js +109 -10
  17. package/dist/api/product-account-mappings-api.d.ts +851 -0
  18. package/dist/api/product-account-mappings-api.js +1224 -0
  19. package/dist/api.d.ts +2 -0
  20. package/dist/api.js +2 -0
  21. package/dist/models/accounting-config-class.d.ts +11 -0
  22. package/dist/models/accounting-config-class.js +5 -0
  23. package/dist/models/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
@@ -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
@@ -39,6 +46,7 @@ models/financial-account-class.ts
39
46
  models/financial-transaction-class.ts
40
47
  models/financial-transaction-data-dto.ts
41
48
  models/get-accounting-categories-response-class.ts
49
+ models/get-activation-snapshot-response-class.ts
42
50
  models/get-booking-entry-response-class.ts
43
51
  models/get-financial-account-response-class.ts
44
52
  models/get-financial-transaction-response-class.ts
@@ -48,12 +56,34 @@ models/index.ts
48
56
  models/inline-response200.ts
49
57
  models/inline-response503.ts
50
58
  models/list-booking-entries-response-class.ts
59
+ models/list-commission-account-mappings-response-class.ts
60
+ models/list-commission-agreements-with-account-mappings-response-class.ts
61
+ models/list-commission-type-account-mappings-response-class.ts
51
62
  models/list-financial-accounts-response-class.ts
52
63
  models/list-financial-transactions-response-class.ts
53
64
  models/list-number-range-response-class.ts
54
65
  models/list-personal-accounts-response-class.ts
66
+ models/list-product-account-mappings-response-class.ts
67
+ models/list-products-with-account-mappings-response-class.ts
55
68
  models/number-range-class.ts
56
69
  models/personal-account-class.ts
70
+ models/post-financial-event-request-dto.ts
71
+ models/post-financial-event-response-class.ts
72
+ models/premium-item-account-mapping-class.ts
73
+ models/product-account-mapping-class.ts
74
+ models/product-account-mapping-detail-class.ts
75
+ models/product-version-account-mapping-detail-class.ts
76
+ models/product-version-with-account-mappings-class.ts
77
+ models/product-with-account-mappings-class.ts
78
+ models/put-premium-item-account-body-dto.ts
79
+ models/put-product-category-account-body-dto.ts
80
+ models/put-product-version-category-account-body-dto.ts
81
+ models/resolved-account-mapping-class.ts
82
+ models/resolved-commission-account-mapping-class.ts
83
+ models/update-commission-agreement-account-body-dto.ts
84
+ models/update-commission-type-account-body-dto.ts
85
+ models/update-financial-account-body-dto.ts
86
+ models/update-financial-account-response-class.ts
57
87
  models/validate-accounting-config-request-dto.ts
58
88
  models/validate-accounting-config-response-class.ts
59
89
  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.3 --save
20
+ npm install @emilgroup/accounting-sdk@1.34.1-beta.31 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk@1.34.1-beta.3
24
+ yarn add @emilgroup/accounting-sdk@1.34.1-beta.31
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';
@@ -49,7 +51,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
49
51
  createAndEnableSubledger: async (createAndEnableSubledgerRequestDto: CreateAndEnableSubledgerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
52
  // verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
51
53
  assertParamExists('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto)
52
- const localVarPath = `/accountingservice/v1/accountingconfigs`;
54
+ const localVarPath = `/accountingservice/v1/subledger`;
53
55
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
56
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
57
  let baseOptions;
@@ -96,7 +98,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
96
98
  createAndEnableSubledgerFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
99
  // verify required parameter 'file' is not null or undefined
98
100
  assertParamExists('createAndEnableSubledgerFromFile', 'file', file)
99
- const localVarPath = `/accountingservice/v1/accountingconfigs/upload`;
101
+ const localVarPath = `/accountingservice/v1/subledger/upload`;
100
102
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
103
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
102
104
  let baseOptions;
@@ -145,7 +147,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
145
147
  * @throws {RequiredError}
146
148
  */
147
149
  exportAccountingConfig: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
- const localVarPath = `/accountingservice/v1/accountingconfigs`;
150
+ const localVarPath = `/accountingservice/v1/subledger/config/export`;
149
151
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
152
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
151
153
  let baseOptions;
@@ -186,7 +188,48 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
186
188
  * @throws {RequiredError}
187
189
  */
188
190
  getAccountingCategories: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
189
- const localVarPath = `/accountingservice/v1/accountingconfigs/categories`;
191
+ const localVarPath = `/accountingservice/v1/subledger/categories`;
192
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
193
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
194
+ let baseOptions;
195
+ let baseAccessToken;
196
+ if (configuration) {
197
+ baseOptions = configuration.baseOptions;
198
+ baseAccessToken = configuration.accessToken;
199
+ }
200
+
201
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
202
+ const localVarHeaderParameter = {} as any;
203
+ const localVarQueryParameter = {} as any;
204
+
205
+ // authentication bearer required
206
+ // http bearer authentication required
207
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
208
+
209
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
210
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
211
+ }
212
+
213
+
214
+
215
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
216
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
217
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
218
+
219
+ return {
220
+ url: toPathString(localVarUrlObj),
221
+ options: localVarRequestOptions,
222
+ };
223
+ },
224
+ /**
225
+ * 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\"
226
+ * @summary Retrieve the get activation snapshot
227
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
232
+ const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
190
233
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
191
234
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
192
235
  let baseOptions;
@@ -227,7 +270,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
227
270
  * @throws {RequiredError}
228
271
  */
229
272
  resetSubledger: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
230
- const localVarPath = `/accountingservice/v1/accountingconfigs`;
273
+ const localVarPath = `/accountingservice/v1/subledger/reset`;
231
274
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
232
275
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
233
276
  let baseOptions;
@@ -271,7 +314,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
271
314
  validateAccountingConfig: async (validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
272
315
  // verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
273
316
  assertParamExists('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto)
274
- const localVarPath = `/accountingservice/v1/accountingconfigs/validate`;
317
+ const localVarPath = `/accountingservice/v1/subledger/config/validate`;
275
318
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
276
319
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
277
320
  let baseOptions;
@@ -318,7 +361,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
318
361
  validateAccountingConfigFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
319
362
  // verify required parameter 'file' is not null or undefined
320
363
  assertParamExists('validateAccountingConfigFromFile', 'file', file)
321
- const localVarPath = `/accountingservice/v1/accountingconfigs/validate/upload`;
364
+ const localVarPath = `/accountingservice/v1/subledger/config/validate/upload`;
322
365
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
323
366
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
324
367
  let baseOptions;
@@ -415,6 +458,17 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
415
458
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingCategories(authorization, options);
416
459
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
417
460
  },
461
+ /**
462
+ * 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\"
463
+ * @summary Retrieve the get activation snapshot
464
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
468
+ async getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
469
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(authorization, options);
470
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
471
+ },
418
472
  /**
419
473
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
420
474
  * @summary Delete the reset subledger
@@ -502,6 +556,16 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
502
556
  getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass> {
503
557
  return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
504
558
  },
559
+ /**
560
+ * 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\"
561
+ * @summary Retrieve the get activation snapshot
562
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ */
566
+ getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
567
+ return localVarFp.getActivationSnapshot(authorization, options).then((request) => request(axios, basePath));
568
+ },
505
569
  /**
506
570
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
507
571
  * @summary Delete the reset subledger
@@ -607,6 +671,20 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
607
671
  readonly authorization?: string
608
672
  }
609
673
 
674
+ /**
675
+ * Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
676
+ * @export
677
+ * @interface AccountingConfigsApiGetActivationSnapshotRequest
678
+ */
679
+ export interface AccountingConfigsApiGetActivationSnapshotRequest {
680
+ /**
681
+ * Bearer Token: provided by the login endpoint under the name accessToken.
682
+ * @type {string}
683
+ * @memberof AccountingConfigsApiGetActivationSnapshot
684
+ */
685
+ readonly authorization?: string
686
+ }
687
+
610
688
  /**
611
689
  * Request parameters for resetSubledger operation in AccountingConfigsApi.
612
690
  * @export
@@ -718,6 +796,18 @@ export class AccountingConfigsApi extends BaseAPI {
718
796
  return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
719
797
  }
720
798
 
799
+ /**
800
+ * 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\"
801
+ * @summary Retrieve the get activation snapshot
802
+ * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ * @memberof AccountingConfigsApi
806
+ */
807
+ public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
808
+ return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
809
+ }
810
+
721
811
  /**
722
812
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
723
813
  * @summary Delete the reset subledger
@@ -28,6 +28,10 @@ import { CreateBookingEntryResponseClass } from '../models';
28
28
  import { GetBookingEntryResponseClass } from '../models';
29
29
  // @ts-ignore
30
30
  import { ListBookingEntriesResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { PostFinancialEventRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { PostFinancialEventResponseClass } from '../models';
31
35
  /**
32
36
  * BookingEntriesApi - axios parameter creator
33
37
  * @export
@@ -204,6 +208,53 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
204
208
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
205
209
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
206
210
 
211
+ return {
212
+ url: toPathString(localVarUrlObj),
213
+ options: localVarRequestOptions,
214
+ };
215
+ },
216
+ /**
217
+ * 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\"
218
+ * @summary Create the booking entry from a source entity
219
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
220
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
221
+ * @param {*} [options] Override http request option.
222
+ * @throws {RequiredError}
223
+ */
224
+ postFinancialEvent: async (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
225
+ // verify required parameter 'postFinancialEventRequestDto' is not null or undefined
226
+ assertParamExists('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto)
227
+ const localVarPath = `/accountingservice/v1/booking-entries/post-financial-event`;
228
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
229
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
230
+ let baseOptions;
231
+ let baseAccessToken;
232
+ if (configuration) {
233
+ baseOptions = configuration.baseOptions;
234
+ baseAccessToken = configuration.accessToken;
235
+ }
236
+
237
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
238
+ const localVarHeaderParameter = {} as any;
239
+ const localVarQueryParameter = {} as any;
240
+
241
+ // authentication bearer required
242
+ // http bearer authentication required
243
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
244
+
245
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
247
+ }
248
+
249
+
250
+
251
+ localVarHeaderParameter['Content-Type'] = 'application/json';
252
+
253
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
254
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
256
+ localVarRequestOptions.data = serializeDataIfNeeded(postFinancialEventRequestDto, localVarRequestOptions, configuration)
257
+
207
258
  return {
208
259
  url: toPathString(localVarUrlObj),
209
260
  options: localVarRequestOptions,
@@ -262,6 +313,18 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
262
313
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
263
314
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
264
315
  },
316
+ /**
317
+ * 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\"
318
+ * @summary Create the booking entry from a source entity
319
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
320
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ */
324
+ async postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>> {
325
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options);
326
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
327
+ },
265
328
  }
266
329
  };
267
330
 
@@ -312,6 +375,17 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
312
375
  listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass> {
313
376
  return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
314
377
  },
378
+ /**
379
+ * 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\"
380
+ * @summary Create the booking entry from a source entity
381
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
382
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass> {
387
+ return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then((request) => request(axios, basePath));
388
+ },
315
389
  };
316
390
  };
317
391
 
@@ -427,6 +501,27 @@ export interface BookingEntriesApiListBookingEntriesRequest {
427
501
  readonly filters?: string
428
502
  }
429
503
 
504
+ /**
505
+ * Request parameters for postFinancialEvent operation in BookingEntriesApi.
506
+ * @export
507
+ * @interface BookingEntriesApiPostFinancialEventRequest
508
+ */
509
+ export interface BookingEntriesApiPostFinancialEventRequest {
510
+ /**
511
+ *
512
+ * @type {PostFinancialEventRequestDto}
513
+ * @memberof BookingEntriesApiPostFinancialEvent
514
+ */
515
+ readonly postFinancialEventRequestDto: PostFinancialEventRequestDto
516
+
517
+ /**
518
+ * Bearer Token: provided by the login endpoint under the name accessToken.
519
+ * @type {string}
520
+ * @memberof BookingEntriesApiPostFinancialEvent
521
+ */
522
+ readonly authorization?: string
523
+ }
524
+
430
525
  /**
431
526
  * BookingEntriesApi - object-oriented interface
432
527
  * @export
@@ -469,4 +564,16 @@ export class BookingEntriesApi extends BaseAPI {
469
564
  public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
470
565
  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
566
  }
567
+
568
+ /**
569
+ * 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\"
570
+ * @summary Create the booking entry from a source entity
571
+ * @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
572
+ * @param {*} [options] Override http request option.
573
+ * @throws {RequiredError}
574
+ * @memberof BookingEntriesApi
575
+ */
576
+ public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
577
+ return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
578
+ }
472
579
  }