@emilgroup/accounting-sdk-node 1.32.1-beta.77 → 1.32.1-beta.78

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 (204) hide show
  1. package/.openapi-generator/FILES +0 -50
  2. package/README.md +2 -2
  3. package/api/booking-entries-api.ts +10 -234
  4. package/api/financial-accounts-api.ts +24 -154
  5. package/api/financial-transactions-api.ts +4 -8
  6. package/api/number-ranges-api.ts +8 -16
  7. package/api/personal-accounts-api.ts +8 -16
  8. package/api.ts +0 -6
  9. package/common.ts +2 -3
  10. package/dist/api/booking-entries-api.d.ts +7 -121
  11. package/dist/api/booking-entries-api.js +14 -211
  12. package/dist/api/financial-accounts-api.d.ts +20 -86
  13. package/dist/api/financial-accounts-api.js +27 -137
  14. package/dist/api/financial-transactions-api.d.ts +2 -2
  15. package/dist/api/financial-transactions-api.js +6 -8
  16. package/dist/api/health-api.d.ts +1 -1
  17. package/dist/api/number-ranges-api.d.ts +4 -4
  18. package/dist/api/number-ranges-api.js +14 -22
  19. package/dist/api/personal-accounts-api.d.ts +4 -4
  20. package/dist/api/personal-accounts-api.js +14 -22
  21. package/dist/api.d.ts +0 -3
  22. package/dist/api.js +0 -3
  23. package/dist/common.d.ts +1 -1
  24. package/dist/common.js +0 -1
  25. package/dist/models/booking-entry-class.d.ts +0 -34
  26. package/dist/models/booking-entry-class.js +1 -10
  27. package/dist/models/create-booking-entry-request-dto.d.ts +2 -25
  28. package/dist/models/create-booking-entry-request-dto.js +0 -9
  29. package/dist/models/create-financial-account-request-dto.d.ts +5 -50
  30. package/dist/models/create-financial-account-request-dto.js +2 -26
  31. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  32. package/dist/models/create-number-range-request-dto.js +4 -4
  33. package/dist/models/create-personal-account-request-dto.d.ts +6 -14
  34. package/dist/models/create-personal-account-request-dto.js +3 -3
  35. package/dist/models/financial-account-class.d.ts +2 -49
  36. package/dist/models/financial-account-class.js +2 -6
  37. package/dist/models/financial-transaction-class.d.ts +0 -6
  38. package/dist/models/financial-transaction-data-dto.d.ts +2 -11
  39. package/dist/models/financial-transaction-data-dto.js +0 -1
  40. package/dist/models/index.d.ts +0 -47
  41. package/dist/models/index.js +0 -47
  42. package/dist/models/personal-account-class.d.ts +2 -8
  43. package/dist/models/personal-account-class.js +1 -1
  44. package/models/booking-entry-class.ts +0 -35
  45. package/models/create-booking-entry-request-dto.ts +2 -26
  46. package/models/create-financial-account-request-dto.ts +5 -49
  47. package/models/create-number-range-request-dto.ts +4 -4
  48. package/models/create-personal-account-request-dto.ts +6 -12
  49. package/models/financial-account-class.ts +2 -50
  50. package/models/financial-transaction-class.ts +0 -6
  51. package/models/financial-transaction-data-dto.ts +2 -9
  52. package/models/index.ts +0 -47
  53. package/models/personal-account-class.ts +2 -8
  54. package/package.json +2 -2
  55. package/api/accounting-configs-api.ts +0 -868
  56. package/api/commission-account-mappings-api.ts +0 -1211
  57. package/api/product-account-mappings-api.ts +0 -1719
  58. package/dist/api/accounting-configs-api.d.ts +0 -451
  59. package/dist/api/accounting-configs-api.js +0 -887
  60. package/dist/api/commission-account-mappings-api.d.ts +0 -685
  61. package/dist/api/commission-account-mappings-api.js +0 -1026
  62. package/dist/api/product-account-mappings-api.d.ts +0 -972
  63. package/dist/api/product-account-mappings-api.js +0 -1451
  64. package/dist/models/account-mapping-class.d.ts +0 -73
  65. package/dist/models/account-mapping-class.js +0 -40
  66. package/dist/models/accounting-category-class.d.ts +0 -45
  67. package/dist/models/accounting-category-class.js +0 -24
  68. package/dist/models/accounting-config-class.d.ts +0 -78
  69. package/dist/models/accounting-config-class.js +0 -20
  70. package/dist/models/accounting-config-data-class.d.ts +0 -38
  71. package/dist/models/accounting-config-data-class.js +0 -15
  72. package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +0 -46
  73. package/dist/models/accounting-config-data-dto-accounting-configuration.js +0 -24
  74. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -79
  75. package/dist/models/accounting-config-data-dto-default-account-mappings.js +0 -40
  76. package/dist/models/accounting-config-data-dto.d.ts +0 -38
  77. package/dist/models/accounting-config-data-dto.js +0 -15
  78. package/dist/models/accounting-configuration-class.d.ts +0 -36
  79. package/dist/models/accounting-configuration-class.js +0 -15
  80. package/dist/models/commission-account-mapping-class.d.ts +0 -49
  81. package/dist/models/commission-account-mapping-class.js +0 -15
  82. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +0 -44
  83. package/dist/models/commission-agreement-account-mapping-detail-class.js +0 -15
  84. package/dist/models/commission-agreement-partner-class.d.ts +0 -30
  85. package/dist/models/commission-agreement-partner-class.js +0 -15
  86. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +0 -43
  87. package/dist/models/commission-agreement-with-account-mapping-class.js +0 -15
  88. package/dist/models/commission-type-account-mapping-class.d.ts +0 -31
  89. package/dist/models/commission-type-account-mapping-class.js +0 -15
  90. package/dist/models/create-and-enable-subledger-request-dto.d.ts +0 -25
  91. package/dist/models/create-and-enable-subledger-request-dto.js +0 -15
  92. package/dist/models/create-and-enable-subledger-response-class.d.ts +0 -25
  93. package/dist/models/create-and-enable-subledger-response-class.js +0 -15
  94. package/dist/models/create-or-correct-opening-balance-dto.d.ts +0 -25
  95. package/dist/models/create-or-correct-opening-balance-dto.js +0 -15
  96. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +0 -25
  97. package/dist/models/create-or-correct-opening-balance-response-class.js +0 -15
  98. package/dist/models/export-accounting-config-response-class.d.ts +0 -25
  99. package/dist/models/export-accounting-config-response-class.js +0 -15
  100. package/dist/models/get-accounting-categories-response-class.d.ts +0 -25
  101. package/dist/models/get-accounting-categories-response-class.js +0 -15
  102. package/dist/models/get-activation-snapshot-response-class.d.ts +0 -25
  103. package/dist/models/get-activation-snapshot-response-class.js +0 -15
  104. package/dist/models/list-commission-account-mappings-response-class.d.ts +0 -43
  105. package/dist/models/list-commission-account-mappings-response-class.js +0 -15
  106. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +0 -43
  107. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +0 -15
  108. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +0 -43
  109. package/dist/models/list-commission-type-account-mappings-response-class.js +0 -15
  110. package/dist/models/list-product-account-mappings-response-class.d.ts +0 -43
  111. package/dist/models/list-product-account-mappings-response-class.js +0 -15
  112. package/dist/models/list-products-with-account-mappings-response-class.d.ts +0 -43
  113. package/dist/models/list-products-with-account-mappings-response-class.js +0 -15
  114. package/dist/models/opening-balance-item-dto.d.ts +0 -41
  115. package/dist/models/opening-balance-item-dto.js +0 -20
  116. package/dist/models/post-financial-event-request-dto.d.ts +0 -45
  117. package/dist/models/post-financial-event-request-dto.js +0 -24
  118. package/dist/models/post-financial-event-response-class.d.ts +0 -25
  119. package/dist/models/post-financial-event-response-class.js +0 -15
  120. package/dist/models/premium-item-account-mapping-class.d.ts +0 -37
  121. package/dist/models/premium-item-account-mapping-class.js +0 -15
  122. package/dist/models/product-account-mapping-class.d.ts +0 -61
  123. package/dist/models/product-account-mapping-class.js +0 -15
  124. package/dist/models/product-account-mapping-detail-class.d.ts +0 -56
  125. package/dist/models/product-account-mapping-detail-class.js +0 -15
  126. package/dist/models/product-risk-carrier-class.d.ts +0 -42
  127. package/dist/models/product-risk-carrier-class.js +0 -15
  128. package/dist/models/product-version-account-mapping-detail-class.d.ts +0 -50
  129. package/dist/models/product-version-account-mapping-detail-class.js +0 -15
  130. package/dist/models/product-version-with-account-mappings-class.d.ts +0 -42
  131. package/dist/models/product-version-with-account-mappings-class.js +0 -15
  132. package/dist/models/product-with-account-mappings-class.d.ts +0 -49
  133. package/dist/models/product-with-account-mappings-class.js +0 -15
  134. package/dist/models/put-premium-item-account-body-dto.d.ts +0 -24
  135. package/dist/models/put-premium-item-account-body-dto.js +0 -15
  136. package/dist/models/put-product-category-account-body-dto.d.ts +0 -24
  137. package/dist/models/put-product-category-account-body-dto.js +0 -15
  138. package/dist/models/put-product-risk-carrier-body-dto.d.ts +0 -24
  139. package/dist/models/put-product-risk-carrier-body-dto.js +0 -15
  140. package/dist/models/put-product-version-category-account-body-dto.d.ts +0 -24
  141. package/dist/models/put-product-version-category-account-body-dto.js +0 -15
  142. package/dist/models/resolved-account-mapping-class.d.ts +0 -31
  143. package/dist/models/resolved-account-mapping-class.js +0 -15
  144. package/dist/models/resolved-commission-account-mapping-class.d.ts +0 -37
  145. package/dist/models/resolved-commission-account-mapping-class.js +0 -21
  146. package/dist/models/update-commission-agreement-account-body-dto.d.ts +0 -24
  147. package/dist/models/update-commission-agreement-account-body-dto.js +0 -15
  148. package/dist/models/update-commission-type-account-body-dto.d.ts +0 -24
  149. package/dist/models/update-commission-type-account-body-dto.js +0 -15
  150. package/dist/models/update-financial-account-body-dto.d.ts +0 -48
  151. package/dist/models/update-financial-account-body-dto.js +0 -15
  152. package/dist/models/update-financial-account-response-class.d.ts +0 -25
  153. package/dist/models/update-financial-account-response-class.js +0 -15
  154. package/dist/models/validate-accounting-config-request-dto.d.ts +0 -25
  155. package/dist/models/validate-accounting-config-request-dto.js +0 -15
  156. package/dist/models/validate-accounting-config-response-class.d.ts +0 -30
  157. package/dist/models/validate-accounting-config-response-class.js +0 -15
  158. package/models/account-mapping-class.ts +0 -82
  159. package/models/accounting-category-class.ts +0 -54
  160. package/models/accounting-config-class.ts +0 -87
  161. package/models/accounting-config-data-class.ts +0 -44
  162. package/models/accounting-config-data-dto-accounting-configuration.ts +0 -56
  163. package/models/accounting-config-data-dto-default-account-mappings.ts +0 -88
  164. package/models/accounting-config-data-dto.ts +0 -44
  165. package/models/accounting-configuration-class.ts +0 -42
  166. package/models/commission-account-mapping-class.ts +0 -55
  167. package/models/commission-agreement-account-mapping-detail-class.ts +0 -50
  168. package/models/commission-agreement-partner-class.ts +0 -36
  169. package/models/commission-agreement-with-account-mapping-class.ts +0 -49
  170. package/models/commission-type-account-mapping-class.ts +0 -37
  171. package/models/create-and-enable-subledger-request-dto.ts +0 -31
  172. package/models/create-and-enable-subledger-response-class.ts +0 -31
  173. package/models/create-or-correct-opening-balance-dto.ts +0 -31
  174. package/models/create-or-correct-opening-balance-response-class.ts +0 -31
  175. package/models/export-accounting-config-response-class.ts +0 -31
  176. package/models/get-accounting-categories-response-class.ts +0 -31
  177. package/models/get-activation-snapshot-response-class.ts +0 -31
  178. package/models/list-commission-account-mappings-response-class.ts +0 -49
  179. package/models/list-commission-agreements-with-account-mappings-response-class.ts +0 -49
  180. package/models/list-commission-type-account-mappings-response-class.ts +0 -49
  181. package/models/list-product-account-mappings-response-class.ts +0 -49
  182. package/models/list-products-with-account-mappings-response-class.ts +0 -49
  183. package/models/opening-balance-item-dto.ts +0 -50
  184. package/models/post-financial-event-request-dto.ts +0 -54
  185. package/models/post-financial-event-response-class.ts +0 -31
  186. package/models/premium-item-account-mapping-class.ts +0 -43
  187. package/models/product-account-mapping-class.ts +0 -67
  188. package/models/product-account-mapping-detail-class.ts +0 -62
  189. package/models/product-risk-carrier-class.ts +0 -48
  190. package/models/product-version-account-mapping-detail-class.ts +0 -56
  191. package/models/product-version-with-account-mappings-class.ts +0 -48
  192. package/models/product-with-account-mappings-class.ts +0 -55
  193. package/models/put-premium-item-account-body-dto.ts +0 -30
  194. package/models/put-product-category-account-body-dto.ts +0 -30
  195. package/models/put-product-risk-carrier-body-dto.ts +0 -30
  196. package/models/put-product-version-category-account-body-dto.ts +0 -30
  197. package/models/resolved-account-mapping-class.ts +0 -37
  198. package/models/resolved-commission-account-mapping-class.ts +0 -46
  199. package/models/update-commission-agreement-account-body-dto.ts +0 -30
  200. package/models/update-commission-type-account-body-dto.ts +0 -30
  201. package/models/update-financial-account-body-dto.ts +0 -54
  202. package/models/update-financial-account-response-class.ts +0 -31
  203. package/models/validate-accounting-config-request-dto.ts +0 -31
  204. package/models/validate-accounting-config-response-class.ts +0 -36
@@ -14,12 +14,8 @@ 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';
19
17
  import { GetBookingEntryResponseClass } from '../models';
20
18
  import { ListBookingEntriesResponseClass } from '../models';
21
- import { PostFinancialEventRequestDto } from '../models';
22
- import { PostFinancialEventResponseClass } from '../models';
23
19
  /**
24
20
  * BookingEntriesApi - axios parameter creator
25
21
  * @export
@@ -34,15 +30,6 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
34
30
  * @throws {RequiredError}
35
31
  */
36
32
  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>;
46
33
  /**
47
34
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
48
35
  * @summary Retrieve the booking entry
@@ -54,7 +41,7 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
54
41
  */
55
42
  getBookingEntry: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
56
43
  /**
57
- * This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
44
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
58
45
  * @summary List booking entries
59
46
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
60
47
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -68,15 +55,6 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
68
55
  * @throws {RequiredError}
69
56
  */
70
57
  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>;
80
58
  };
81
59
  /**
82
60
  * BookingEntriesApi - functional programming interface
@@ -92,15 +70,6 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
92
70
  * @throws {RequiredError}
93
71
  */
94
72
  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>>;
104
73
  /**
105
74
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
106
75
  * @summary Retrieve the booking entry
@@ -112,7 +81,7 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
112
81
  */
113
82
  getBookingEntry(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingEntryResponseClass>>;
114
83
  /**
115
- * This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
84
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
116
85
  * @summary List booking entries
117
86
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
118
87
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -126,15 +95,6 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
126
95
  * @throws {RequiredError}
127
96
  */
128
97
  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>>;
138
98
  };
139
99
  /**
140
100
  * BookingEntriesApi - factory interface
@@ -150,15 +110,6 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
150
110
  * @throws {RequiredError}
151
111
  */
152
112
  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>;
162
113
  /**
163
114
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
164
115
  * @summary Retrieve the booking entry
@@ -170,7 +121,7 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
170
121
  */
171
122
  getBookingEntry(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetBookingEntryResponseClass>;
172
123
  /**
173
- * This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
124
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
174
125
  * @summary List booking entries
175
126
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
176
127
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -184,15 +135,6 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
184
135
  * @throws {RequiredError}
185
136
  */
186
137
  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>;
196
138
  };
197
139
  /**
198
140
  * Request parameters for createBookingEntry operation in BookingEntriesApi.
@@ -213,25 +155,6 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
213
155
  */
214
156
  readonly authorization?: string;
215
157
  }
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
- }
235
158
  /**
236
159
  * Request parameters for getBookingEntry operation in BookingEntriesApi.
237
160
  * @export
@@ -312,25 +235,6 @@ export interface BookingEntriesApiListBookingEntriesRequest {
312
235
  */
313
236
  readonly filters?: string;
314
237
  }
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
- }
334
238
  /**
335
239
  * BookingEntriesApi - object-oriented interface
336
240
  * @export
@@ -346,16 +250,7 @@ export declare class BookingEntriesApi extends BaseAPI {
346
250
  * @throws {RequiredError}
347
251
  * @memberof BookingEntriesApi
348
252
  */
349
- createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any, {}, 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, {}, any>>;
253
+ createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any, {}>>;
359
254
  /**
360
255
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
361
256
  * @summary Retrieve the booking entry
@@ -364,23 +259,14 @@ export declare class BookingEntriesApi extends BaseAPI {
364
259
  * @throws {RequiredError}
365
260
  * @memberof BookingEntriesApi
366
261
  */
367
- getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingEntryResponseClass, any, {}, any>>;
262
+ getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingEntryResponseClass, any, {}>>;
368
263
  /**
369
- * This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
264
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
370
265
  * @summary List booking entries
371
266
  * @param {BookingEntriesApiListBookingEntriesRequest} requestParameters Request parameters.
372
267
  * @param {*} [options] Override http request option.
373
268
  * @throws {RequiredError}
374
269
  * @memberof BookingEntriesApi
375
270
  */
376
- listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}, 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, {}, any>>;
271
+ listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}>>;
386
272
  }
@@ -107,7 +107,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
107
107
  createBookingEntry: function (createBookingEntryRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,16 +124,13 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
- // Only Authorization falls back to the configured token; an empty value is never sent.
129
- ];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
130
128
  case 1:
131
129
  // authentication bearer required
132
130
  // http bearer authentication required
133
131
  _a.sent();
134
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
- if (authorizationValue) {
136
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
134
  }
138
135
  localVarHeaderParameter['Content-Type'] = 'application/json';
139
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -148,58 +145,6 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
148
145
  });
149
146
  });
150
147
  },
151
- /**
152
- * 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\"
153
- * @summary Update the create or correct opening balance
154
- * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
155
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
156
- * @param {*} [options] Override http request option.
157
- * @throws {RequiredError}
158
- */
159
- createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
160
- if (options === void 0) { options = {}; }
161
- return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
163
- return __generator(this, function (_a) {
164
- switch (_a.label) {
165
- case 0:
166
- // verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
167
- (0, common_1.assertParamExists)('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto);
168
- localVarPath = "/accountingservice/v1/booking-entries/opening-balances";
169
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
170
- if (configuration) {
171
- baseOptions = configuration.baseOptions;
172
- baseAccessToken = configuration.accessToken;
173
- }
174
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
175
- localVarHeaderParameter = {};
176
- localVarQueryParameter = {};
177
- // authentication bearer required
178
- // http bearer authentication required
179
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
180
- // Only Authorization falls back to the configured token; an empty value is never sent.
181
- ];
182
- case 1:
183
- // authentication bearer required
184
- // http bearer authentication required
185
- _a.sent();
186
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
- if (authorizationValue) {
188
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
189
- }
190
- localVarHeaderParameter['Content-Type'] = 'application/json';
191
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
192
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
193
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
194
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration);
195
- return [2 /*return*/, {
196
- url: (0, common_1.toPathString)(localVarUrlObj),
197
- options: localVarRequestOptions,
198
- }];
199
- }
200
- });
201
- });
202
- },
203
148
  /**
204
149
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
205
150
  * @summary Retrieve the booking entry
@@ -212,7 +157,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
212
157
  getBookingEntry: function (code, expand, authorization, options) {
213
158
  if (options === void 0) { options = {}; }
214
159
  return __awaiter(_this, void 0, void 0, function () {
215
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
216
161
  return __generator(this, function (_a) {
217
162
  switch (_a.label) {
218
163
  case 0:
@@ -240,9 +185,8 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
240
185
  if (expand !== undefined) {
241
186
  localVarQueryParameter['expand'] = expand;
242
187
  }
243
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
244
- if (authorizationValue) {
245
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
188
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
189
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
246
190
  }
247
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
248
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -256,7 +200,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
256
200
  });
257
201
  },
258
202
  /**
259
- * This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
203
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
260
204
  * @summary List booking entries
261
205
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
262
206
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -272,7 +216,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
272
216
  listBookingEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
273
217
  if (options === void 0) { options = {}; }
274
218
  return __awaiter(_this, void 0, void 0, function () {
275
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
219
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
276
220
  return __generator(this, function (_a) {
277
221
  switch (_a.label) {
278
222
  case 0:
@@ -313,65 +257,12 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
313
257
  if (filters !== undefined) {
314
258
  localVarQueryParameter['filters'] = filters;
315
259
  }
316
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
317
- if (authorizationValue) {
318
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
319
- }
320
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
321
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
322
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
323
- return [2 /*return*/, {
324
- url: (0, common_1.toPathString)(localVarUrlObj),
325
- options: localVarRequestOptions,
326
- }];
327
- }
328
- });
329
- });
330
- },
331
- /**
332
- * 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\"
333
- * @summary Create the booking entry from a source entity
334
- * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
335
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
336
- * @param {*} [options] Override http request option.
337
- * @throws {RequiredError}
338
- */
339
- postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
340
- if (options === void 0) { options = {}; }
341
- return __awaiter(_this, void 0, void 0, function () {
342
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
343
- return __generator(this, function (_a) {
344
- switch (_a.label) {
345
- case 0:
346
- // verify required parameter 'postFinancialEventRequestDto' is not null or undefined
347
- (0, common_1.assertParamExists)('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto);
348
- localVarPath = "/accountingservice/v1/booking-entries/post-financial-event";
349
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
350
- if (configuration) {
351
- baseOptions = configuration.baseOptions;
352
- baseAccessToken = configuration.accessToken;
353
- }
354
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
355
- localVarHeaderParameter = {};
356
- localVarQueryParameter = {};
357
- // authentication bearer required
358
- // http bearer authentication required
359
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
360
- // Only Authorization falls back to the configured token; an empty value is never sent.
361
- ];
362
- case 1:
363
- // authentication bearer required
364
- // http bearer authentication required
365
- _a.sent();
366
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
367
- if (authorizationValue) {
368
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
260
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
261
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
369
262
  }
370
- localVarHeaderParameter['Content-Type'] = 'application/json';
371
263
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
372
264
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
373
265
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
374
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postFinancialEventRequestDto, localVarRequestOptions, configuration);
375
266
  return [2 /*return*/, {
376
267
  url: (0, common_1.toPathString)(localVarUrlObj),
377
268
  options: localVarRequestOptions,
@@ -411,27 +302,6 @@ var BookingEntriesApiFp = function (configuration) {
411
302
  });
412
303
  });
413
304
  },
414
- /**
415
- * 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\"
416
- * @summary Update the create or correct opening balance
417
- * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
418
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
419
- * @param {*} [options] Override http request option.
420
- * @throws {RequiredError}
421
- */
422
- createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
423
- return __awaiter(this, void 0, void 0, function () {
424
- var localVarAxiosArgs;
425
- return __generator(this, function (_a) {
426
- switch (_a.label) {
427
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options)];
428
- case 1:
429
- localVarAxiosArgs = _a.sent();
430
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
431
- }
432
- });
433
- });
434
- },
435
305
  /**
436
306
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
437
307
  * @summary Retrieve the booking entry
@@ -455,7 +325,7 @@ var BookingEntriesApiFp = function (configuration) {
455
325
  });
456
326
  },
457
327
  /**
458
- * This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
328
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
459
329
  * @summary List booking entries
460
330
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
461
331
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -481,27 +351,6 @@ var BookingEntriesApiFp = function (configuration) {
481
351
  });
482
352
  });
483
353
  },
484
- /**
485
- * 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\"
486
- * @summary Create the booking entry from a source entity
487
- * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
488
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
489
- * @param {*} [options] Override http request option.
490
- * @throws {RequiredError}
491
- */
492
- postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
493
- return __awaiter(this, void 0, void 0, function () {
494
- var localVarAxiosArgs;
495
- return __generator(this, function (_a) {
496
- switch (_a.label) {
497
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options)];
498
- case 1:
499
- localVarAxiosArgs = _a.sent();
500
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
501
- }
502
- });
503
- });
504
- },
505
354
  };
506
355
  };
507
356
  exports.BookingEntriesApiFp = BookingEntriesApiFp;
@@ -523,17 +372,6 @@ var BookingEntriesApiFactory = function (configuration, basePath, axios) {
523
372
  createBookingEntry: function (createBookingEntryRequestDto, authorization, options) {
524
373
  return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
525
374
  },
526
- /**
527
- * 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\"
528
- * @summary Update the create or correct opening balance
529
- * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
530
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
531
- * @param {*} [options] Override http request option.
532
- * @throws {RequiredError}
533
- */
534
- createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
535
- return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then(function (request) { return request(axios, basePath); });
536
- },
537
375
  /**
538
376
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
539
377
  * @summary Retrieve the booking entry
@@ -547,7 +385,7 @@ var BookingEntriesApiFactory = function (configuration, basePath, axios) {
547
385
  return localVarFp.getBookingEntry(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
548
386
  },
549
387
  /**
550
- * This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
388
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
551
389
  * @summary List booking entries
552
390
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
553
391
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -563,17 +401,6 @@ var BookingEntriesApiFactory = function (configuration, basePath, axios) {
563
401
  listBookingEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
564
402
  return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
565
403
  },
566
- /**
567
- * 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\"
568
- * @summary Create the booking entry from a source entity
569
- * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
570
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
571
- * @param {*} [options] Override http request option.
572
- * @throws {RequiredError}
573
- */
574
- postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
575
- return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
576
- },
577
404
  };
578
405
  };
579
406
  exports.BookingEntriesApiFactory = BookingEntriesApiFactory;
@@ -600,18 +427,6 @@ var BookingEntriesApi = /** @class */ (function (_super) {
600
427
  var _this = this;
601
428
  return (0, exports.BookingEntriesApiFp)(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
602
429
  };
603
- /**
604
- * 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\"
605
- * @summary Update the create or correct opening balance
606
- * @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
607
- * @param {*} [options] Override http request option.
608
- * @throws {RequiredError}
609
- * @memberof BookingEntriesApi
610
- */
611
- BookingEntriesApi.prototype.createOrCorrectOpeningBalance = function (requestParameters, options) {
612
- var _this = this;
613
- return (0, exports.BookingEntriesApiFp)(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
614
- };
615
430
  /**
616
431
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
617
432
  * @summary Retrieve the booking entry
@@ -625,7 +440,7 @@ var BookingEntriesApi = /** @class */ (function (_super) {
625
440
  return (0, exports.BookingEntriesApiFp)(this.configuration).getBookingEntry(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
626
441
  };
627
442
  /**
628
- * This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
443
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
629
444
  * @summary List booking entries
630
445
  * @param {BookingEntriesApiListBookingEntriesRequest} requestParameters Request parameters.
631
446
  * @param {*} [options] Override http request option.
@@ -637,18 +452,6 @@ var BookingEntriesApi = /** @class */ (function (_super) {
637
452
  if (requestParameters === void 0) { requestParameters = {}; }
638
453
  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); });
639
454
  };
640
- /**
641
- * 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\"
642
- * @summary Create the booking entry from a source entity
643
- * @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
644
- * @param {*} [options] Override http request option.
645
- * @throws {RequiredError}
646
- * @memberof BookingEntriesApi
647
- */
648
- BookingEntriesApi.prototype.postFinancialEvent = function (requestParameters, options) {
649
- var _this = this;
650
- return (0, exports.BookingEntriesApiFp)(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
651
- };
652
455
  return BookingEntriesApi;
653
456
  }(base_1.BaseAPI));
654
457
  exports.BookingEntriesApi = BookingEntriesApi;