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

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 +48 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +852 -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 +136 -16
  7. package/api/product-account-mappings-api.ts +1474 -0
  8. package/api.ts +6 -0
  9. package/dist/api/accounting-configs-api.d.ts +451 -0
  10. package/dist/api/accounting-configs-api.js +863 -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 +82 -16
  16. package/dist/api/financial-accounts-api.js +112 -13
  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 +3 -0
  20. package/dist/api.js +3 -0
  21. package/dist/models/account-mapping-class.d.ts +71 -0
  22. package/dist/models/account-mapping-class.js +38 -0
  23. package/dist/models/accounting-category-class.d.ts +45 -0
  24. package/dist/models/accounting-category-class.js +24 -0
  25. package/dist/models/accounting-config-class.d.ts +78 -0
  26. package/dist/models/accounting-config-class.js +20 -0
  27. package/dist/models/accounting-config-data-class.d.ts +38 -0
  28. package/dist/models/accounting-config-data-class.js +15 -0
  29. package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +46 -0
  30. package/dist/models/accounting-config-data-dto-accounting-configuration.js +24 -0
  31. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +77 -0
  32. package/dist/models/accounting-config-data-dto-default-account-mappings.js +38 -0
  33. package/dist/models/accounting-config-data-dto.d.ts +38 -0
  34. package/dist/models/accounting-config-data-dto.js +15 -0
  35. package/dist/models/accounting-configuration-class.d.ts +36 -0
  36. package/dist/models/accounting-configuration-class.js +15 -0
  37. package/dist/models/booking-entry-class.d.ts +20 -0
  38. package/dist/models/booking-entry-class.js +8 -1
  39. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  40. package/dist/models/commission-account-mapping-class.js +15 -0
  41. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  42. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  43. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  44. package/dist/models/commission-agreement-partner-class.js +15 -0
  45. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  46. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  47. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  48. package/dist/models/commission-type-account-mapping-class.js +15 -0
  49. package/dist/models/create-and-enable-subledger-request-dto.d.ts +25 -0
  50. package/dist/models/create-and-enable-subledger-request-dto.js +15 -0
  51. package/dist/models/create-and-enable-subledger-response-class.d.ts +25 -0
  52. package/dist/models/create-and-enable-subledger-response-class.js +15 -0
  53. package/dist/models/create-booking-entry-request-dto.d.ts +24 -2
  54. package/dist/models/create-booking-entry-request-dto.js +8 -0
  55. package/dist/models/create-financial-account-request-dto.d.ts +48 -5
  56. package/dist/models/create-financial-account-request-dto.js +24 -2
  57. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  58. package/dist/models/create-number-range-request-dto.js +4 -4
  59. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  60. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  61. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  62. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  63. package/dist/models/create-personal-account-request-dto.d.ts +14 -6
  64. package/dist/models/create-personal-account-request-dto.js +3 -3
  65. package/dist/models/export-accounting-config-response-class.d.ts +25 -0
  66. package/dist/models/export-accounting-config-response-class.js +15 -0
  67. package/dist/models/financial-account-class.d.ts +49 -2
  68. package/dist/models/financial-account-class.js +6 -2
  69. package/dist/models/financial-transaction-data-dto.d.ts +5 -2
  70. package/dist/models/financial-transaction-data-dto.js +1 -0
  71. package/dist/models/get-accounting-categories-response-class.d.ts +25 -0
  72. package/dist/models/get-accounting-categories-response-class.js +15 -0
  73. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  74. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  75. package/dist/models/index.d.ts +45 -0
  76. package/dist/models/index.js +45 -0
  77. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  78. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  79. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  80. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  81. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  82. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  83. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  84. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  85. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  86. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  87. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  88. package/dist/models/opening-balance-item-dto.js +20 -0
  89. package/dist/models/personal-account-class.d.ts +8 -2
  90. package/dist/models/personal-account-class.js +1 -1
  91. package/dist/models/post-financial-event-request-dto.d.ts +44 -0
  92. package/dist/models/post-financial-event-request-dto.js +23 -0
  93. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  94. package/dist/models/post-financial-event-response-class.js +15 -0
  95. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  96. package/dist/models/premium-item-account-mapping-class.js +15 -0
  97. package/dist/models/product-account-mapping-class.d.ts +61 -0
  98. package/dist/models/product-account-mapping-class.js +15 -0
  99. package/dist/models/product-account-mapping-detail-class.d.ts +50 -0
  100. package/dist/models/product-account-mapping-detail-class.js +15 -0
  101. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  102. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  103. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  104. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  105. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  106. package/dist/models/product-with-account-mappings-class.js +15 -0
  107. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  108. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  109. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  110. package/dist/models/put-product-category-account-body-dto.js +15 -0
  111. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  112. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  113. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  114. package/dist/models/resolved-account-mapping-class.js +15 -0
  115. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  116. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  117. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  118. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  119. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  120. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  121. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  122. package/dist/models/update-financial-account-body-dto.js +15 -0
  123. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  124. package/dist/models/update-financial-account-response-class.js +15 -0
  125. package/dist/models/validate-accounting-config-request-dto.d.ts +25 -0
  126. package/dist/models/validate-accounting-config-request-dto.js +15 -0
  127. package/dist/models/validate-accounting-config-response-class.d.ts +30 -0
  128. package/dist/models/validate-accounting-config-response-class.js +15 -0
  129. package/models/account-mapping-class.ts +80 -0
  130. package/models/accounting-category-class.ts +54 -0
  131. package/models/accounting-config-class.ts +87 -0
  132. package/models/accounting-config-data-class.ts +44 -0
  133. package/models/accounting-config-data-dto-accounting-configuration.ts +56 -0
  134. package/models/accounting-config-data-dto-default-account-mappings.ts +86 -0
  135. package/models/accounting-config-data-dto.ts +44 -0
  136. package/models/accounting-configuration-class.ts +42 -0
  137. package/models/booking-entry-class.ts +21 -0
  138. package/models/commission-account-mapping-class.ts +55 -0
  139. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  140. package/models/commission-agreement-partner-class.ts +36 -0
  141. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  142. package/models/commission-type-account-mapping-class.ts +37 -0
  143. package/models/create-and-enable-subledger-request-dto.ts +31 -0
  144. package/models/create-and-enable-subledger-response-class.ts +31 -0
  145. package/models/create-booking-entry-request-dto.ts +25 -2
  146. package/models/create-financial-account-request-dto.ts +47 -5
  147. package/models/create-number-range-request-dto.ts +4 -4
  148. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  149. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  150. package/models/create-personal-account-request-dto.ts +12 -6
  151. package/models/export-accounting-config-response-class.ts +31 -0
  152. package/models/financial-account-class.ts +50 -2
  153. package/models/financial-transaction-data-dto.ts +3 -2
  154. package/models/get-accounting-categories-response-class.ts +31 -0
  155. package/models/get-activation-snapshot-response-class.ts +31 -0
  156. package/models/index.ts +45 -0
  157. package/models/list-commission-account-mappings-response-class.ts +49 -0
  158. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  159. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  160. package/models/list-product-account-mappings-response-class.ts +49 -0
  161. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  162. package/models/opening-balance-item-dto.ts +50 -0
  163. package/models/personal-account-class.ts +8 -2
  164. package/models/post-financial-event-request-dto.ts +53 -0
  165. package/models/post-financial-event-response-class.ts +31 -0
  166. package/models/premium-item-account-mapping-class.ts +43 -0
  167. package/models/product-account-mapping-class.ts +67 -0
  168. package/models/product-account-mapping-detail-class.ts +56 -0
  169. package/models/product-version-account-mapping-detail-class.ts +56 -0
  170. package/models/product-version-with-account-mappings-class.ts +48 -0
  171. package/models/product-with-account-mappings-class.ts +55 -0
  172. package/models/put-premium-item-account-body-dto.ts +30 -0
  173. package/models/put-product-category-account-body-dto.ts +30 -0
  174. package/models/put-product-version-category-account-body-dto.ts +30 -0
  175. package/models/resolved-account-mapping-class.ts +37 -0
  176. package/models/resolved-commission-account-mapping-class.ts +46 -0
  177. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  178. package/models/update-commission-type-account-body-dto.ts +30 -0
  179. package/models/update-financial-account-body-dto.ts +54 -0
  180. package/models/update-financial-account-response-class.ts +31 -0
  181. package/models/validate-accounting-config-request-dto.ts +31 -0
  182. package/models/validate-accounting-config-response-class.ts +36 -0
  183. package/package.json +1 -1
@@ -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
  }
@@ -145,6 +145,55 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
145
145
  });
146
146
  });
147
147
  },
148
+ /**
149
+ * 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\"
150
+ * @summary Update the create or correct opening balance
151
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ // verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
164
+ (0, common_1.assertParamExists)('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto);
165
+ localVarPath = "/accountingservice/v1/booking-entries/opening-balances";
166
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
167
+ if (configuration) {
168
+ baseOptions = configuration.baseOptions;
169
+ baseAccessToken = configuration.accessToken;
170
+ }
171
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
172
+ localVarHeaderParameter = {};
173
+ localVarQueryParameter = {};
174
+ // authentication bearer required
175
+ // http bearer authentication required
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
177
+ case 1:
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ _a.sent();
181
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ }
184
+ localVarHeaderParameter['Content-Type'] = 'application/json';
185
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration);
189
+ return [2 /*return*/, {
190
+ url: (0, common_1.toPathString)(localVarUrlObj),
191
+ options: localVarRequestOptions,
192
+ }];
193
+ }
194
+ });
195
+ });
196
+ },
148
197
  /**
149
198
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
150
199
  * @summary Retrieve the booking entry
@@ -271,6 +320,55 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
271
320
  });
272
321
  });
273
322
  },
323
+ /**
324
+ * 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\"
325
+ * @summary Create the booking entry from a source entity
326
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
327
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ */
331
+ postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
332
+ if (options === void 0) { options = {}; }
333
+ return __awaiter(_this, void 0, void 0, function () {
334
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
335
+ return __generator(this, function (_a) {
336
+ switch (_a.label) {
337
+ case 0:
338
+ // verify required parameter 'postFinancialEventRequestDto' is not null or undefined
339
+ (0, common_1.assertParamExists)('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto);
340
+ localVarPath = "/accountingservice/v1/booking-entries/post-financial-event";
341
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
342
+ if (configuration) {
343
+ baseOptions = configuration.baseOptions;
344
+ baseAccessToken = configuration.accessToken;
345
+ }
346
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
347
+ localVarHeaderParameter = {};
348
+ localVarQueryParameter = {};
349
+ // authentication bearer required
350
+ // http bearer authentication required
351
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
352
+ case 1:
353
+ // authentication bearer required
354
+ // http bearer authentication required
355
+ _a.sent();
356
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
357
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
358
+ }
359
+ localVarHeaderParameter['Content-Type'] = 'application/json';
360
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
361
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
362
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
363
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postFinancialEventRequestDto, localVarRequestOptions, configuration);
364
+ return [2 /*return*/, {
365
+ url: (0, common_1.toPathString)(localVarUrlObj),
366
+ options: localVarRequestOptions,
367
+ }];
368
+ }
369
+ });
370
+ });
371
+ },
274
372
  };
275
373
  };
276
374
  exports.BookingEntriesApiAxiosParamCreator = BookingEntriesApiAxiosParamCreator;
@@ -302,6 +400,27 @@ var BookingEntriesApiFp = function (configuration) {
302
400
  });
303
401
  });
304
402
  },
403
+ /**
404
+ * 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\"
405
+ * @summary Update the create or correct opening balance
406
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
407
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
412
+ return __awaiter(this, void 0, void 0, function () {
413
+ var localVarAxiosArgs;
414
+ return __generator(this, function (_a) {
415
+ switch (_a.label) {
416
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options)];
417
+ case 1:
418
+ localVarAxiosArgs = _a.sent();
419
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
420
+ }
421
+ });
422
+ });
423
+ },
305
424
  /**
306
425
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
307
426
  * @summary Retrieve the booking entry
@@ -351,6 +470,27 @@ var BookingEntriesApiFp = function (configuration) {
351
470
  });
352
471
  });
353
472
  },
473
+ /**
474
+ * 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\"
475
+ * @summary Create the booking entry from a source entity
476
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
477
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
482
+ return __awaiter(this, void 0, void 0, function () {
483
+ var localVarAxiosArgs;
484
+ return __generator(this, function (_a) {
485
+ switch (_a.label) {
486
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options)];
487
+ case 1:
488
+ localVarAxiosArgs = _a.sent();
489
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
490
+ }
491
+ });
492
+ });
493
+ },
354
494
  };
355
495
  };
356
496
  exports.BookingEntriesApiFp = BookingEntriesApiFp;
@@ -372,6 +512,17 @@ var BookingEntriesApiFactory = function (configuration, basePath, axios) {
372
512
  createBookingEntry: function (createBookingEntryRequestDto, authorization, options) {
373
513
  return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
374
514
  },
515
+ /**
516
+ * 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\"
517
+ * @summary Update the create or correct opening balance
518
+ * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
519
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
520
+ * @param {*} [options] Override http request option.
521
+ * @throws {RequiredError}
522
+ */
523
+ createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
524
+ return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then(function (request) { return request(axios, basePath); });
525
+ },
375
526
  /**
376
527
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
377
528
  * @summary Retrieve the booking entry
@@ -401,6 +552,17 @@ var BookingEntriesApiFactory = function (configuration, basePath, axios) {
401
552
  listBookingEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
402
553
  return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
403
554
  },
555
+ /**
556
+ * 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\"
557
+ * @summary Create the booking entry from a source entity
558
+ * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
559
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
564
+ return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
565
+ },
404
566
  };
405
567
  };
406
568
  exports.BookingEntriesApiFactory = BookingEntriesApiFactory;
@@ -427,6 +589,18 @@ var BookingEntriesApi = /** @class */ (function (_super) {
427
589
  var _this = this;
428
590
  return (0, exports.BookingEntriesApiFp)(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
429
591
  };
592
+ /**
593
+ * 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\"
594
+ * @summary Update the create or correct opening balance
595
+ * @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ * @memberof BookingEntriesApi
599
+ */
600
+ BookingEntriesApi.prototype.createOrCorrectOpeningBalance = function (requestParameters, options) {
601
+ var _this = this;
602
+ return (0, exports.BookingEntriesApiFp)(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
603
+ };
430
604
  /**
431
605
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
432
606
  * @summary Retrieve the booking entry
@@ -452,6 +626,18 @@ var BookingEntriesApi = /** @class */ (function (_super) {
452
626
  if (requestParameters === void 0) { requestParameters = {}; }
453
627
  return (0, exports.BookingEntriesApiFp)(this.configuration).listBookingEntries(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
454
628
  };
629
+ /**
630
+ * 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\"
631
+ * @summary Create the booking entry from a source entity
632
+ * @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ * @memberof BookingEntriesApi
636
+ */
637
+ BookingEntriesApi.prototype.postFinancialEvent = function (requestParameters, options) {
638
+ var _this = this;
639
+ return (0, exports.BookingEntriesApiFp)(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
640
+ };
455
641
  return BookingEntriesApi;
456
642
  }(base_1.BaseAPI));
457
643
  exports.BookingEntriesApi = BookingEntriesApi;