@emilgroup/accounting-sdk-node 1.32.1-beta.57 → 1.32.1-beta.58

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 (183) hide show
  1. package/.openapi-generator/FILES +0 -48
  2. package/README.md +2 -2
  3. package/api/booking-entries-api.ts +0 -214
  4. package/api/financial-accounts-api.ts +16 -136
  5. package/api.ts +0 -6
  6. package/dist/api/booking-entries-api.d.ts +0 -114
  7. package/dist/api/booking-entries-api.js +0 -186
  8. package/dist/api/financial-accounts-api.d.ts +16 -82
  9. package/dist/api/financial-accounts-api.js +13 -112
  10. package/dist/api.d.ts +0 -3
  11. package/dist/api.js +0 -3
  12. package/dist/models/booking-entry-class.d.ts +0 -20
  13. package/dist/models/booking-entry-class.js +1 -8
  14. package/dist/models/create-booking-entry-request-dto.d.ts +2 -24
  15. package/dist/models/create-booking-entry-request-dto.js +0 -8
  16. package/dist/models/create-financial-account-request-dto.d.ts +5 -48
  17. package/dist/models/create-financial-account-request-dto.js +2 -24
  18. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  19. package/dist/models/create-number-range-request-dto.js +4 -4
  20. package/dist/models/create-personal-account-request-dto.d.ts +6 -14
  21. package/dist/models/create-personal-account-request-dto.js +3 -3
  22. package/dist/models/financial-account-class.d.ts +2 -49
  23. package/dist/models/financial-account-class.js +2 -6
  24. package/dist/models/financial-transaction-data-dto.d.ts +2 -5
  25. package/dist/models/financial-transaction-data-dto.js +0 -1
  26. package/dist/models/index.d.ts +0 -45
  27. package/dist/models/index.js +0 -45
  28. package/dist/models/personal-account-class.d.ts +2 -8
  29. package/dist/models/personal-account-class.js +1 -1
  30. package/models/booking-entry-class.ts +0 -21
  31. package/models/create-booking-entry-request-dto.ts +2 -25
  32. package/models/create-financial-account-request-dto.ts +5 -47
  33. package/models/create-number-range-request-dto.ts +4 -4
  34. package/models/create-personal-account-request-dto.ts +6 -12
  35. package/models/financial-account-class.ts +2 -50
  36. package/models/financial-transaction-data-dto.ts +2 -3
  37. package/models/index.ts +0 -45
  38. package/models/personal-account-class.ts +2 -8
  39. package/package.json +1 -1
  40. package/api/accounting-configs-api.ts +0 -852
  41. package/api/commission-account-mappings-api.ts +0 -1195
  42. package/api/product-account-mappings-api.ts +0 -1474
  43. package/dist/api/accounting-configs-api.d.ts +0 -451
  44. package/dist/api/accounting-configs-api.js +0 -863
  45. package/dist/api/commission-account-mappings-api.d.ts +0 -685
  46. package/dist/api/commission-account-mappings-api.js +0 -1008
  47. package/dist/api/product-account-mappings-api.d.ts +0 -851
  48. package/dist/api/product-account-mappings-api.js +0 -1228
  49. package/dist/models/account-mapping-class.d.ts +0 -71
  50. package/dist/models/account-mapping-class.js +0 -38
  51. package/dist/models/accounting-category-class.d.ts +0 -45
  52. package/dist/models/accounting-category-class.js +0 -24
  53. package/dist/models/accounting-config-class.d.ts +0 -78
  54. package/dist/models/accounting-config-class.js +0 -20
  55. package/dist/models/accounting-config-data-class.d.ts +0 -38
  56. package/dist/models/accounting-config-data-class.js +0 -15
  57. package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +0 -46
  58. package/dist/models/accounting-config-data-dto-accounting-configuration.js +0 -24
  59. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -77
  60. package/dist/models/accounting-config-data-dto-default-account-mappings.js +0 -38
  61. package/dist/models/accounting-config-data-dto.d.ts +0 -38
  62. package/dist/models/accounting-config-data-dto.js +0 -15
  63. package/dist/models/accounting-configuration-class.d.ts +0 -36
  64. package/dist/models/accounting-configuration-class.js +0 -15
  65. package/dist/models/commission-account-mapping-class.d.ts +0 -49
  66. package/dist/models/commission-account-mapping-class.js +0 -15
  67. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +0 -44
  68. package/dist/models/commission-agreement-account-mapping-detail-class.js +0 -15
  69. package/dist/models/commission-agreement-partner-class.d.ts +0 -30
  70. package/dist/models/commission-agreement-partner-class.js +0 -15
  71. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +0 -43
  72. package/dist/models/commission-agreement-with-account-mapping-class.js +0 -15
  73. package/dist/models/commission-type-account-mapping-class.d.ts +0 -31
  74. package/dist/models/commission-type-account-mapping-class.js +0 -15
  75. package/dist/models/create-and-enable-subledger-request-dto.d.ts +0 -25
  76. package/dist/models/create-and-enable-subledger-request-dto.js +0 -15
  77. package/dist/models/create-and-enable-subledger-response-class.d.ts +0 -25
  78. package/dist/models/create-and-enable-subledger-response-class.js +0 -15
  79. package/dist/models/create-or-correct-opening-balance-dto.d.ts +0 -25
  80. package/dist/models/create-or-correct-opening-balance-dto.js +0 -15
  81. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +0 -25
  82. package/dist/models/create-or-correct-opening-balance-response-class.js +0 -15
  83. package/dist/models/export-accounting-config-response-class.d.ts +0 -25
  84. package/dist/models/export-accounting-config-response-class.js +0 -15
  85. package/dist/models/get-accounting-categories-response-class.d.ts +0 -25
  86. package/dist/models/get-accounting-categories-response-class.js +0 -15
  87. package/dist/models/get-activation-snapshot-response-class.d.ts +0 -25
  88. package/dist/models/get-activation-snapshot-response-class.js +0 -15
  89. package/dist/models/list-commission-account-mappings-response-class.d.ts +0 -43
  90. package/dist/models/list-commission-account-mappings-response-class.js +0 -15
  91. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +0 -43
  92. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +0 -15
  93. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +0 -43
  94. package/dist/models/list-commission-type-account-mappings-response-class.js +0 -15
  95. package/dist/models/list-product-account-mappings-response-class.d.ts +0 -43
  96. package/dist/models/list-product-account-mappings-response-class.js +0 -15
  97. package/dist/models/list-products-with-account-mappings-response-class.d.ts +0 -43
  98. package/dist/models/list-products-with-account-mappings-response-class.js +0 -15
  99. package/dist/models/opening-balance-item-dto.d.ts +0 -41
  100. package/dist/models/opening-balance-item-dto.js +0 -20
  101. package/dist/models/post-financial-event-request-dto.d.ts +0 -44
  102. package/dist/models/post-financial-event-request-dto.js +0 -23
  103. package/dist/models/post-financial-event-response-class.d.ts +0 -25
  104. package/dist/models/post-financial-event-response-class.js +0 -15
  105. package/dist/models/premium-item-account-mapping-class.d.ts +0 -37
  106. package/dist/models/premium-item-account-mapping-class.js +0 -15
  107. package/dist/models/product-account-mapping-class.d.ts +0 -61
  108. package/dist/models/product-account-mapping-class.js +0 -15
  109. package/dist/models/product-account-mapping-detail-class.d.ts +0 -50
  110. package/dist/models/product-account-mapping-detail-class.js +0 -15
  111. package/dist/models/product-version-account-mapping-detail-class.d.ts +0 -50
  112. package/dist/models/product-version-account-mapping-detail-class.js +0 -15
  113. package/dist/models/product-version-with-account-mappings-class.d.ts +0 -42
  114. package/dist/models/product-version-with-account-mappings-class.js +0 -15
  115. package/dist/models/product-with-account-mappings-class.d.ts +0 -49
  116. package/dist/models/product-with-account-mappings-class.js +0 -15
  117. package/dist/models/put-premium-item-account-body-dto.d.ts +0 -24
  118. package/dist/models/put-premium-item-account-body-dto.js +0 -15
  119. package/dist/models/put-product-category-account-body-dto.d.ts +0 -24
  120. package/dist/models/put-product-category-account-body-dto.js +0 -15
  121. package/dist/models/put-product-version-category-account-body-dto.d.ts +0 -24
  122. package/dist/models/put-product-version-category-account-body-dto.js +0 -15
  123. package/dist/models/resolved-account-mapping-class.d.ts +0 -31
  124. package/dist/models/resolved-account-mapping-class.js +0 -15
  125. package/dist/models/resolved-commission-account-mapping-class.d.ts +0 -37
  126. package/dist/models/resolved-commission-account-mapping-class.js +0 -21
  127. package/dist/models/update-commission-agreement-account-body-dto.d.ts +0 -24
  128. package/dist/models/update-commission-agreement-account-body-dto.js +0 -15
  129. package/dist/models/update-commission-type-account-body-dto.d.ts +0 -24
  130. package/dist/models/update-commission-type-account-body-dto.js +0 -15
  131. package/dist/models/update-financial-account-body-dto.d.ts +0 -48
  132. package/dist/models/update-financial-account-body-dto.js +0 -15
  133. package/dist/models/update-financial-account-response-class.d.ts +0 -25
  134. package/dist/models/update-financial-account-response-class.js +0 -15
  135. package/dist/models/validate-accounting-config-request-dto.d.ts +0 -25
  136. package/dist/models/validate-accounting-config-request-dto.js +0 -15
  137. package/dist/models/validate-accounting-config-response-class.d.ts +0 -30
  138. package/dist/models/validate-accounting-config-response-class.js +0 -15
  139. package/models/account-mapping-class.ts +0 -80
  140. package/models/accounting-category-class.ts +0 -54
  141. package/models/accounting-config-class.ts +0 -87
  142. package/models/accounting-config-data-class.ts +0 -44
  143. package/models/accounting-config-data-dto-accounting-configuration.ts +0 -56
  144. package/models/accounting-config-data-dto-default-account-mappings.ts +0 -86
  145. package/models/accounting-config-data-dto.ts +0 -44
  146. package/models/accounting-configuration-class.ts +0 -42
  147. package/models/commission-account-mapping-class.ts +0 -55
  148. package/models/commission-agreement-account-mapping-detail-class.ts +0 -50
  149. package/models/commission-agreement-partner-class.ts +0 -36
  150. package/models/commission-agreement-with-account-mapping-class.ts +0 -49
  151. package/models/commission-type-account-mapping-class.ts +0 -37
  152. package/models/create-and-enable-subledger-request-dto.ts +0 -31
  153. package/models/create-and-enable-subledger-response-class.ts +0 -31
  154. package/models/create-or-correct-opening-balance-dto.ts +0 -31
  155. package/models/create-or-correct-opening-balance-response-class.ts +0 -31
  156. package/models/export-accounting-config-response-class.ts +0 -31
  157. package/models/get-accounting-categories-response-class.ts +0 -31
  158. package/models/get-activation-snapshot-response-class.ts +0 -31
  159. package/models/list-commission-account-mappings-response-class.ts +0 -49
  160. package/models/list-commission-agreements-with-account-mappings-response-class.ts +0 -49
  161. package/models/list-commission-type-account-mappings-response-class.ts +0 -49
  162. package/models/list-product-account-mappings-response-class.ts +0 -49
  163. package/models/list-products-with-account-mappings-response-class.ts +0 -49
  164. package/models/opening-balance-item-dto.ts +0 -50
  165. package/models/post-financial-event-request-dto.ts +0 -53
  166. package/models/post-financial-event-response-class.ts +0 -31
  167. package/models/premium-item-account-mapping-class.ts +0 -43
  168. package/models/product-account-mapping-class.ts +0 -67
  169. package/models/product-account-mapping-detail-class.ts +0 -56
  170. package/models/product-version-account-mapping-detail-class.ts +0 -56
  171. package/models/product-version-with-account-mappings-class.ts +0 -48
  172. package/models/product-with-account-mappings-class.ts +0 -55
  173. package/models/put-premium-item-account-body-dto.ts +0 -30
  174. package/models/put-product-category-account-body-dto.ts +0 -30
  175. package/models/put-product-version-category-account-body-dto.ts +0 -30
  176. package/models/resolved-account-mapping-class.ts +0 -37
  177. package/models/resolved-commission-account-mapping-class.ts +0 -46
  178. package/models/update-commission-agreement-account-body-dto.ts +0 -30
  179. package/models/update-commission-type-account-body-dto.ts +0 -30
  180. package/models/update-financial-account-body-dto.ts +0 -54
  181. package/models/update-financial-account-response-class.ts +0 -31
  182. package/models/validate-accounting-config-request-dto.ts +0 -31
  183. package/models/validate-accounting-config-response-class.ts +0 -36
@@ -3,52 +3,29 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  api.ts
6
- api/accounting-configs-api.ts
7
6
  api/booking-entries-api.ts
8
- api/commission-account-mappings-api.ts
9
7
  api/financial-accounts-api.ts
10
8
  api/financial-transactions-api.ts
11
9
  api/health-api.ts
12
10
  api/number-ranges-api.ts
13
11
  api/personal-accounts-api.ts
14
- api/product-account-mappings-api.ts
15
12
  base.ts
16
13
  common.ts
17
14
  configuration.ts
18
15
  git_push.sh
19
16
  index.ts
20
- models/account-mapping-class.ts
21
- models/accounting-category-class.ts
22
- models/accounting-config-class.ts
23
- models/accounting-config-data-class.ts
24
- models/accounting-config-data-dto-accounting-configuration.ts
25
- models/accounting-config-data-dto-default-account-mappings.ts
26
- models/accounting-config-data-dto.ts
27
- models/accounting-configuration-class.ts
28
17
  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
34
- models/create-and-enable-subledger-request-dto.ts
35
- models/create-and-enable-subledger-response-class.ts
36
18
  models/create-booking-entry-request-dto.ts
37
19
  models/create-booking-entry-response-class.ts
38
20
  models/create-financial-account-request-dto.ts
39
21
  models/create-financial-account-response-class.ts
40
22
  models/create-number-range-request-dto.ts
41
23
  models/create-number-range-response-class.ts
42
- models/create-or-correct-opening-balance-dto.ts
43
- models/create-or-correct-opening-balance-response-class.ts
44
24
  models/create-personal-account-request-dto.ts
45
25
  models/create-personal-account-response-class.ts
46
- models/export-accounting-config-response-class.ts
47
26
  models/financial-account-class.ts
48
27
  models/financial-transaction-class.ts
49
28
  models/financial-transaction-data-dto.ts
50
- models/get-accounting-categories-response-class.ts
51
- models/get-activation-snapshot-response-class.ts
52
29
  models/get-booking-entry-response-class.ts
53
30
  models/get-financial-account-response-class.ts
54
31
  models/get-financial-transaction-response-class.ts
@@ -58,36 +35,11 @@ models/index.ts
58
35
  models/inline-response200.ts
59
36
  models/inline-response503.ts
60
37
  models/list-booking-entries-response-class.ts
61
- models/list-commission-account-mappings-response-class.ts
62
- models/list-commission-agreements-with-account-mappings-response-class.ts
63
- models/list-commission-type-account-mappings-response-class.ts
64
38
  models/list-financial-accounts-response-class.ts
65
39
  models/list-financial-transactions-response-class.ts
66
40
  models/list-number-range-response-class.ts
67
41
  models/list-personal-accounts-response-class.ts
68
- models/list-product-account-mappings-response-class.ts
69
- models/list-products-with-account-mappings-response-class.ts
70
42
  models/number-range-class.ts
71
- models/opening-balance-item-dto.ts
72
43
  models/personal-account-class.ts
73
- models/post-financial-event-request-dto.ts
74
- models/post-financial-event-response-class.ts
75
- models/premium-item-account-mapping-class.ts
76
- models/product-account-mapping-class.ts
77
- models/product-account-mapping-detail-class.ts
78
- models/product-version-account-mapping-detail-class.ts
79
- models/product-version-with-account-mappings-class.ts
80
- models/product-with-account-mappings-class.ts
81
- models/put-premium-item-account-body-dto.ts
82
- models/put-product-category-account-body-dto.ts
83
- models/put-product-version-category-account-body-dto.ts
84
- models/resolved-account-mapping-class.ts
85
- models/resolved-commission-account-mapping-class.ts
86
- models/update-commission-agreement-account-body-dto.ts
87
- models/update-commission-type-account-body-dto.ts
88
- models/update-financial-account-body-dto.ts
89
- models/update-financial-account-response-class.ts
90
- models/validate-accounting-config-request-dto.ts
91
- models/validate-accounting-config-response-class.ts
92
44
  package.json
93
45
  tsconfig.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-node@1.32.1-beta.57 --save
20
+ npm install @emilgroup/accounting-sdk-node@1.32.1-beta.58 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.57
24
+ yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.58
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -25,17 +25,9 @@ import { CreateBookingEntryRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateBookingEntryResponseClass } from '../models';
27
27
  // @ts-ignore
28
- import { CreateOrCorrectOpeningBalanceDto } from '../models';
29
- // @ts-ignore
30
- import { CreateOrCorrectOpeningBalanceResponseClass } from '../models';
31
- // @ts-ignore
32
28
  import { GetBookingEntryResponseClass } from '../models';
33
29
  // @ts-ignore
34
30
  import { ListBookingEntriesResponseClass } from '../models';
35
- // @ts-ignore
36
- import { PostFinancialEventRequestDto } from '../models';
37
- // @ts-ignore
38
- import { PostFinancialEventResponseClass } from '../models';
39
31
  // URLSearchParams not necessarily used
40
32
  // @ts-ignore
41
33
  import { URL, URLSearchParams } from 'url';
@@ -93,53 +85,6 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
93
85
  options: localVarRequestOptions,
94
86
  };
95
87
  },
96
- /**
97
- * 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\"
98
- * @summary Update the create or correct opening balance
99
- * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
100
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- createOrCorrectOpeningBalance: async (createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
105
- // verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
106
- assertParamExists('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto)
107
- const localVarPath = `/accountingservice/v1/booking-entries/opening-balances`;
108
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
109
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
110
- let baseOptions;
111
- let baseAccessToken;
112
- if (configuration) {
113
- baseOptions = configuration.baseOptions;
114
- baseAccessToken = configuration.accessToken;
115
- }
116
-
117
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
118
- const localVarHeaderParameter = {} as any;
119
- const localVarQueryParameter = {} as any;
120
-
121
- // authentication bearer required
122
- // http bearer authentication required
123
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
124
-
125
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
126
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
127
- }
128
-
129
-
130
-
131
- localVarHeaderParameter['Content-Type'] = 'application/json';
132
-
133
- setSearchParams(localVarUrlObj, localVarQueryParameter);
134
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
135
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
136
- localVarRequestOptions.data = serializeDataIfNeeded(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration)
137
-
138
- return {
139
- url: toPathString(localVarUrlObj),
140
- options: localVarRequestOptions,
141
- };
142
- },
143
88
  /**
144
89
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
145
90
  * @summary Retrieve the booking entry
@@ -263,53 +208,6 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
263
208
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
264
209
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
265
210
 
266
- return {
267
- url: toPathString(localVarUrlObj),
268
- options: localVarRequestOptions,
269
- };
270
- },
271
- /**
272
- * 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\"
273
- * @summary Create the booking entry from a source entity
274
- * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
275
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
276
- * @param {*} [options] Override http request option.
277
- * @throws {RequiredError}
278
- */
279
- postFinancialEvent: async (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
280
- // verify required parameter 'postFinancialEventRequestDto' is not null or undefined
281
- assertParamExists('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto)
282
- const localVarPath = `/accountingservice/v1/booking-entries/post-financial-event`;
283
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
284
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
285
- let baseOptions;
286
- let baseAccessToken;
287
- if (configuration) {
288
- baseOptions = configuration.baseOptions;
289
- baseAccessToken = configuration.accessToken;
290
- }
291
-
292
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
293
- const localVarHeaderParameter = {} as any;
294
- const localVarQueryParameter = {} as any;
295
-
296
- // authentication bearer required
297
- // http bearer authentication required
298
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
299
-
300
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
301
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
302
- }
303
-
304
-
305
-
306
- localVarHeaderParameter['Content-Type'] = 'application/json';
307
-
308
- setSearchParams(localVarUrlObj, localVarQueryParameter);
309
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
310
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
311
- localVarRequestOptions.data = serializeDataIfNeeded(postFinancialEventRequestDto, localVarRequestOptions, configuration)
312
-
313
211
  return {
314
212
  url: toPathString(localVarUrlObj),
315
213
  options: localVarRequestOptions,
@@ -337,18 +235,6 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
337
235
  const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingEntry(createBookingEntryRequestDto, authorization, options);
338
236
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
339
237
  },
340
- /**
341
- * 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\"
342
- * @summary Update the create or correct opening balance
343
- * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
344
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
345
- * @param {*} [options] Override http request option.
346
- * @throws {RequiredError}
347
- */
348
- async createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>> {
349
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options);
350
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
351
- },
352
238
  /**
353
239
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
354
240
  * @summary Retrieve the booking entry
@@ -380,18 +266,6 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
380
266
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
381
267
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
382
268
  },
383
- /**
384
- * 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\"
385
- * @summary Create the booking entry from a source entity
386
- * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
387
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
388
- * @param {*} [options] Override http request option.
389
- * @throws {RequiredError}
390
- */
391
- async postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>> {
392
- const localVarAxiosArgs = await localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options);
393
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
394
- },
395
269
  }
396
270
  };
397
271
 
@@ -413,17 +287,6 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
413
287
  createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass> {
414
288
  return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then((request) => request(axios, basePath));
415
289
  },
416
- /**
417
- * 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\"
418
- * @summary Update the create or correct opening balance
419
- * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
420
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
421
- * @param {*} [options] Override http request option.
422
- * @throws {RequiredError}
423
- */
424
- createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: any): AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass> {
425
- return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then((request) => request(axios, basePath));
426
- },
427
290
  /**
428
291
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
429
292
  * @summary Retrieve the booking entry
@@ -453,17 +316,6 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
453
316
  listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass> {
454
317
  return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
455
318
  },
456
- /**
457
- * 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\"
458
- * @summary Create the booking entry from a source entity
459
- * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
460
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
461
- * @param {*} [options] Override http request option.
462
- * @throws {RequiredError}
463
- */
464
- postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass> {
465
- return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then((request) => request(axios, basePath));
466
- },
467
319
  };
468
320
  };
469
321
 
@@ -488,27 +340,6 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
488
340
  readonly authorization?: string
489
341
  }
490
342
 
491
- /**
492
- * Request parameters for createOrCorrectOpeningBalance operation in BookingEntriesApi.
493
- * @export
494
- * @interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest
495
- */
496
- export interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest {
497
- /**
498
- *
499
- * @type {CreateOrCorrectOpeningBalanceDto}
500
- * @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
501
- */
502
- readonly createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto
503
-
504
- /**
505
- * Bearer Token: provided by the login endpoint under the name accessToken.
506
- * @type {string}
507
- * @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
508
- */
509
- readonly authorization?: string
510
- }
511
-
512
343
  /**
513
344
  * Request parameters for getBookingEntry operation in BookingEntriesApi.
514
345
  * @export
@@ -600,27 +431,6 @@ export interface BookingEntriesApiListBookingEntriesRequest {
600
431
  readonly filters?: string
601
432
  }
602
433
 
603
- /**
604
- * Request parameters for postFinancialEvent operation in BookingEntriesApi.
605
- * @export
606
- * @interface BookingEntriesApiPostFinancialEventRequest
607
- */
608
- export interface BookingEntriesApiPostFinancialEventRequest {
609
- /**
610
- *
611
- * @type {PostFinancialEventRequestDto}
612
- * @memberof BookingEntriesApiPostFinancialEvent
613
- */
614
- readonly postFinancialEventRequestDto: PostFinancialEventRequestDto
615
-
616
- /**
617
- * Bearer Token: provided by the login endpoint under the name accessToken.
618
- * @type {string}
619
- * @memberof BookingEntriesApiPostFinancialEvent
620
- */
621
- readonly authorization?: string
622
- }
623
-
624
434
  /**
625
435
  * BookingEntriesApi - object-oriented interface
626
436
  * @export
@@ -640,18 +450,6 @@ export class BookingEntriesApi extends BaseAPI {
640
450
  return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
641
451
  }
642
452
 
643
- /**
644
- * 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\"
645
- * @summary Update the create or correct opening balance
646
- * @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
647
- * @param {*} [options] Override http request option.
648
- * @throws {RequiredError}
649
- * @memberof BookingEntriesApi
650
- */
651
- public createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig) {
652
- return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
653
- }
654
-
655
453
  /**
656
454
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
657
455
  * @summary Retrieve the booking entry
@@ -675,16 +473,4 @@ export class BookingEntriesApi extends BaseAPI {
675
473
  public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
676
474
  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));
677
475
  }
678
-
679
- /**
680
- * 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\"
681
- * @summary Create the booking entry from a source entity
682
- * @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
683
- * @param {*} [options] Override http request option.
684
- * @throws {RequiredError}
685
- * @memberof BookingEntriesApi
686
- */
687
- public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
688
- return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
689
- }
690
476
  }