@emilgroup/accounting-sdk 1.34.1-beta.77 → 1.34.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 (210) 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/base.ts +41 -174
  10. package/common.ts +2 -3
  11. package/configuration.ts +0 -20
  12. package/dist/api/booking-entries-api.d.ts +7 -121
  13. package/dist/api/booking-entries-api.js +14 -211
  14. package/dist/api/financial-accounts-api.d.ts +20 -86
  15. package/dist/api/financial-accounts-api.js +27 -137
  16. package/dist/api/financial-transactions-api.d.ts +2 -2
  17. package/dist/api/financial-transactions-api.js +6 -8
  18. package/dist/api/health-api.d.ts +1 -1
  19. package/dist/api/number-ranges-api.d.ts +4 -4
  20. package/dist/api/number-ranges-api.js +14 -22
  21. package/dist/api/personal-accounts-api.d.ts +4 -4
  22. package/dist/api/personal-accounts-api.js +14 -22
  23. package/dist/api.d.ts +0 -3
  24. package/dist/api.js +0 -3
  25. package/dist/base.d.ts +0 -24
  26. package/dist/base.js +59 -178
  27. package/dist/common.d.ts +1 -1
  28. package/dist/common.js +0 -1
  29. package/dist/configuration.d.ts +0 -17
  30. package/dist/configuration.js +0 -2
  31. package/dist/models/booking-entry-class.d.ts +0 -34
  32. package/dist/models/booking-entry-class.js +1 -10
  33. package/dist/models/create-booking-entry-request-dto.d.ts +2 -25
  34. package/dist/models/create-booking-entry-request-dto.js +0 -9
  35. package/dist/models/create-financial-account-request-dto.d.ts +5 -50
  36. package/dist/models/create-financial-account-request-dto.js +2 -26
  37. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  38. package/dist/models/create-number-range-request-dto.js +4 -4
  39. package/dist/models/create-personal-account-request-dto.d.ts +6 -14
  40. package/dist/models/create-personal-account-request-dto.js +3 -3
  41. package/dist/models/financial-account-class.d.ts +2 -49
  42. package/dist/models/financial-account-class.js +2 -6
  43. package/dist/models/financial-transaction-class.d.ts +0 -6
  44. package/dist/models/financial-transaction-data-dto.d.ts +2 -11
  45. package/dist/models/financial-transaction-data-dto.js +0 -1
  46. package/dist/models/index.d.ts +0 -47
  47. package/dist/models/index.js +0 -47
  48. package/dist/models/personal-account-class.d.ts +2 -8
  49. package/dist/models/personal-account-class.js +1 -1
  50. package/models/booking-entry-class.ts +0 -35
  51. package/models/create-booking-entry-request-dto.ts +2 -26
  52. package/models/create-financial-account-request-dto.ts +5 -49
  53. package/models/create-number-range-request-dto.ts +4 -4
  54. package/models/create-personal-account-request-dto.ts +6 -12
  55. package/models/financial-account-class.ts +2 -50
  56. package/models/financial-transaction-class.ts +0 -6
  57. package/models/financial-transaction-data-dto.ts +2 -9
  58. package/models/index.ts +0 -47
  59. package/models/personal-account-class.ts +2 -8
  60. package/package.json +2 -2
  61. package/api/accounting-configs-api.ts +0 -862
  62. package/api/commission-account-mappings-api.ts +0 -1207
  63. package/api/product-account-mappings-api.ts +0 -1715
  64. package/dist/api/accounting-configs-api.d.ts +0 -451
  65. package/dist/api/accounting-configs-api.js +0 -881
  66. package/dist/api/commission-account-mappings-api.d.ts +0 -685
  67. package/dist/api/commission-account-mappings-api.js +0 -1022
  68. package/dist/api/product-account-mappings-api.d.ts +0 -972
  69. package/dist/api/product-account-mappings-api.js +0 -1447
  70. package/dist/models/account-mapping-class.d.ts +0 -73
  71. package/dist/models/account-mapping-class.js +0 -40
  72. package/dist/models/accounting-category-class.d.ts +0 -45
  73. package/dist/models/accounting-category-class.js +0 -24
  74. package/dist/models/accounting-config-class.d.ts +0 -78
  75. package/dist/models/accounting-config-class.js +0 -20
  76. package/dist/models/accounting-config-data-class.d.ts +0 -38
  77. package/dist/models/accounting-config-data-class.js +0 -15
  78. package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +0 -46
  79. package/dist/models/accounting-config-data-dto-accounting-configuration.js +0 -24
  80. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -79
  81. package/dist/models/accounting-config-data-dto-default-account-mappings.js +0 -40
  82. package/dist/models/accounting-config-data-dto.d.ts +0 -38
  83. package/dist/models/accounting-config-data-dto.js +0 -15
  84. package/dist/models/accounting-configuration-class.d.ts +0 -36
  85. package/dist/models/accounting-configuration-class.js +0 -15
  86. package/dist/models/commission-account-mapping-class.d.ts +0 -49
  87. package/dist/models/commission-account-mapping-class.js +0 -15
  88. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +0 -44
  89. package/dist/models/commission-agreement-account-mapping-detail-class.js +0 -15
  90. package/dist/models/commission-agreement-partner-class.d.ts +0 -30
  91. package/dist/models/commission-agreement-partner-class.js +0 -15
  92. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +0 -43
  93. package/dist/models/commission-agreement-with-account-mapping-class.js +0 -15
  94. package/dist/models/commission-type-account-mapping-class.d.ts +0 -31
  95. package/dist/models/commission-type-account-mapping-class.js +0 -15
  96. package/dist/models/create-and-enable-subledger-request-dto.d.ts +0 -25
  97. package/dist/models/create-and-enable-subledger-request-dto.js +0 -15
  98. package/dist/models/create-and-enable-subledger-response-class.d.ts +0 -25
  99. package/dist/models/create-and-enable-subledger-response-class.js +0 -15
  100. package/dist/models/create-or-correct-opening-balance-dto.d.ts +0 -25
  101. package/dist/models/create-or-correct-opening-balance-dto.js +0 -15
  102. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +0 -25
  103. package/dist/models/create-or-correct-opening-balance-response-class.js +0 -15
  104. package/dist/models/export-accounting-config-response-class.d.ts +0 -25
  105. package/dist/models/export-accounting-config-response-class.js +0 -15
  106. package/dist/models/get-accounting-categories-response-class.d.ts +0 -25
  107. package/dist/models/get-accounting-categories-response-class.js +0 -15
  108. package/dist/models/get-activation-snapshot-response-class.d.ts +0 -25
  109. package/dist/models/get-activation-snapshot-response-class.js +0 -15
  110. package/dist/models/list-commission-account-mappings-response-class.d.ts +0 -43
  111. package/dist/models/list-commission-account-mappings-response-class.js +0 -15
  112. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +0 -43
  113. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +0 -15
  114. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +0 -43
  115. package/dist/models/list-commission-type-account-mappings-response-class.js +0 -15
  116. package/dist/models/list-product-account-mappings-response-class.d.ts +0 -43
  117. package/dist/models/list-product-account-mappings-response-class.js +0 -15
  118. package/dist/models/list-products-with-account-mappings-response-class.d.ts +0 -43
  119. package/dist/models/list-products-with-account-mappings-response-class.js +0 -15
  120. package/dist/models/opening-balance-item-dto.d.ts +0 -41
  121. package/dist/models/opening-balance-item-dto.js +0 -20
  122. package/dist/models/post-financial-event-request-dto.d.ts +0 -45
  123. package/dist/models/post-financial-event-request-dto.js +0 -24
  124. package/dist/models/post-financial-event-response-class.d.ts +0 -25
  125. package/dist/models/post-financial-event-response-class.js +0 -15
  126. package/dist/models/premium-item-account-mapping-class.d.ts +0 -37
  127. package/dist/models/premium-item-account-mapping-class.js +0 -15
  128. package/dist/models/product-account-mapping-class.d.ts +0 -61
  129. package/dist/models/product-account-mapping-class.js +0 -15
  130. package/dist/models/product-account-mapping-detail-class.d.ts +0 -56
  131. package/dist/models/product-account-mapping-detail-class.js +0 -15
  132. package/dist/models/product-risk-carrier-class.d.ts +0 -42
  133. package/dist/models/product-risk-carrier-class.js +0 -15
  134. package/dist/models/product-version-account-mapping-detail-class.d.ts +0 -50
  135. package/dist/models/product-version-account-mapping-detail-class.js +0 -15
  136. package/dist/models/product-version-with-account-mappings-class.d.ts +0 -42
  137. package/dist/models/product-version-with-account-mappings-class.js +0 -15
  138. package/dist/models/product-with-account-mappings-class.d.ts +0 -49
  139. package/dist/models/product-with-account-mappings-class.js +0 -15
  140. package/dist/models/put-premium-item-account-body-dto.d.ts +0 -24
  141. package/dist/models/put-premium-item-account-body-dto.js +0 -15
  142. package/dist/models/put-product-category-account-body-dto.d.ts +0 -24
  143. package/dist/models/put-product-category-account-body-dto.js +0 -15
  144. package/dist/models/put-product-risk-carrier-body-dto.d.ts +0 -24
  145. package/dist/models/put-product-risk-carrier-body-dto.js +0 -15
  146. package/dist/models/put-product-version-category-account-body-dto.d.ts +0 -24
  147. package/dist/models/put-product-version-category-account-body-dto.js +0 -15
  148. package/dist/models/resolved-account-mapping-class.d.ts +0 -31
  149. package/dist/models/resolved-account-mapping-class.js +0 -15
  150. package/dist/models/resolved-commission-account-mapping-class.d.ts +0 -37
  151. package/dist/models/resolved-commission-account-mapping-class.js +0 -21
  152. package/dist/models/update-commission-agreement-account-body-dto.d.ts +0 -24
  153. package/dist/models/update-commission-agreement-account-body-dto.js +0 -15
  154. package/dist/models/update-commission-type-account-body-dto.d.ts +0 -24
  155. package/dist/models/update-commission-type-account-body-dto.js +0 -15
  156. package/dist/models/update-financial-account-body-dto.d.ts +0 -48
  157. package/dist/models/update-financial-account-body-dto.js +0 -15
  158. package/dist/models/update-financial-account-response-class.d.ts +0 -25
  159. package/dist/models/update-financial-account-response-class.js +0 -15
  160. package/dist/models/validate-accounting-config-request-dto.d.ts +0 -25
  161. package/dist/models/validate-accounting-config-request-dto.js +0 -15
  162. package/dist/models/validate-accounting-config-response-class.d.ts +0 -30
  163. package/dist/models/validate-accounting-config-response-class.js +0 -15
  164. package/models/account-mapping-class.ts +0 -82
  165. package/models/accounting-category-class.ts +0 -54
  166. package/models/accounting-config-class.ts +0 -87
  167. package/models/accounting-config-data-class.ts +0 -44
  168. package/models/accounting-config-data-dto-accounting-configuration.ts +0 -56
  169. package/models/accounting-config-data-dto-default-account-mappings.ts +0 -88
  170. package/models/accounting-config-data-dto.ts +0 -44
  171. package/models/accounting-configuration-class.ts +0 -42
  172. package/models/commission-account-mapping-class.ts +0 -55
  173. package/models/commission-agreement-account-mapping-detail-class.ts +0 -50
  174. package/models/commission-agreement-partner-class.ts +0 -36
  175. package/models/commission-agreement-with-account-mapping-class.ts +0 -49
  176. package/models/commission-type-account-mapping-class.ts +0 -37
  177. package/models/create-and-enable-subledger-request-dto.ts +0 -31
  178. package/models/create-and-enable-subledger-response-class.ts +0 -31
  179. package/models/create-or-correct-opening-balance-dto.ts +0 -31
  180. package/models/create-or-correct-opening-balance-response-class.ts +0 -31
  181. package/models/export-accounting-config-response-class.ts +0 -31
  182. package/models/get-accounting-categories-response-class.ts +0 -31
  183. package/models/get-activation-snapshot-response-class.ts +0 -31
  184. package/models/list-commission-account-mappings-response-class.ts +0 -49
  185. package/models/list-commission-agreements-with-account-mappings-response-class.ts +0 -49
  186. package/models/list-commission-type-account-mappings-response-class.ts +0 -49
  187. package/models/list-product-account-mappings-response-class.ts +0 -49
  188. package/models/list-products-with-account-mappings-response-class.ts +0 -49
  189. package/models/opening-balance-item-dto.ts +0 -50
  190. package/models/post-financial-event-request-dto.ts +0 -54
  191. package/models/post-financial-event-response-class.ts +0 -31
  192. package/models/premium-item-account-mapping-class.ts +0 -43
  193. package/models/product-account-mapping-class.ts +0 -67
  194. package/models/product-account-mapping-detail-class.ts +0 -62
  195. package/models/product-risk-carrier-class.ts +0 -48
  196. package/models/product-version-account-mapping-detail-class.ts +0 -56
  197. package/models/product-version-with-account-mappings-class.ts +0 -48
  198. package/models/product-with-account-mappings-class.ts +0 -55
  199. package/models/put-premium-item-account-body-dto.ts +0 -30
  200. package/models/put-product-category-account-body-dto.ts +0 -30
  201. package/models/put-product-risk-carrier-body-dto.ts +0 -30
  202. package/models/put-product-version-category-account-body-dto.ts +0 -30
  203. package/models/resolved-account-mapping-class.ts +0 -37
  204. package/models/resolved-commission-account-mapping-class.ts +0 -46
  205. package/models/update-commission-agreement-account-body-dto.ts +0 -30
  206. package/models/update-commission-type-account-body-dto.ts +0 -30
  207. package/models/update-financial-account-body-dto.ts +0 -54
  208. package/models/update-financial-account-response-class.ts +0 -31
  209. package/models/validate-accounting-config-request-dto.ts +0 -31
  210. package/models/validate-accounting-config-response-class.ts +0 -36
@@ -3,52 +3,29 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  api.ts
6
- api/accounting-configs-api.ts
7
6
  api/booking-entries-api.ts
8
- api/commission-account-mappings-api.ts
9
7
  api/financial-accounts-api.ts
10
8
  api/financial-transactions-api.ts
11
9
  api/health-api.ts
12
10
  api/number-ranges-api.ts
13
11
  api/personal-accounts-api.ts
14
- api/product-account-mappings-api.ts
15
12
  base.ts
16
13
  common.ts
17
14
  configuration.ts
18
15
  git_push.sh
19
16
  index.ts
20
- models/account-mapping-class.ts
21
- models/accounting-category-class.ts
22
- models/accounting-config-class.ts
23
- models/accounting-config-data-class.ts
24
- models/accounting-config-data-dto-accounting-configuration.ts
25
- models/accounting-config-data-dto-default-account-mappings.ts
26
- models/accounting-config-data-dto.ts
27
- models/accounting-configuration-class.ts
28
17
  models/booking-entry-class.ts
29
- models/commission-account-mapping-class.ts
30
- models/commission-agreement-account-mapping-detail-class.ts
31
- models/commission-agreement-partner-class.ts
32
- models/commission-agreement-with-account-mapping-class.ts
33
- models/commission-type-account-mapping-class.ts
34
- models/create-and-enable-subledger-request-dto.ts
35
- models/create-and-enable-subledger-response-class.ts
36
18
  models/create-booking-entry-request-dto.ts
37
19
  models/create-booking-entry-response-class.ts
38
20
  models/create-financial-account-request-dto.ts
39
21
  models/create-financial-account-response-class.ts
40
22
  models/create-number-range-request-dto.ts
41
23
  models/create-number-range-response-class.ts
42
- models/create-or-correct-opening-balance-dto.ts
43
- models/create-or-correct-opening-balance-response-class.ts
44
24
  models/create-personal-account-request-dto.ts
45
25
  models/create-personal-account-response-class.ts
46
- models/export-accounting-config-response-class.ts
47
26
  models/financial-account-class.ts
48
27
  models/financial-transaction-class.ts
49
28
  models/financial-transaction-data-dto.ts
50
- models/get-accounting-categories-response-class.ts
51
- models/get-activation-snapshot-response-class.ts
52
29
  models/get-booking-entry-response-class.ts
53
30
  models/get-financial-account-response-class.ts
54
31
  models/get-financial-transaction-response-class.ts
@@ -58,38 +35,11 @@ models/index.ts
58
35
  models/inline-response200.ts
59
36
  models/inline-response503.ts
60
37
  models/list-booking-entries-response-class.ts
61
- models/list-commission-account-mappings-response-class.ts
62
- models/list-commission-agreements-with-account-mappings-response-class.ts
63
- models/list-commission-type-account-mappings-response-class.ts
64
38
  models/list-financial-accounts-response-class.ts
65
39
  models/list-financial-transactions-response-class.ts
66
40
  models/list-number-range-response-class.ts
67
41
  models/list-personal-accounts-response-class.ts
68
- models/list-product-account-mappings-response-class.ts
69
- models/list-products-with-account-mappings-response-class.ts
70
42
  models/number-range-class.ts
71
- models/opening-balance-item-dto.ts
72
43
  models/personal-account-class.ts
73
- models/post-financial-event-request-dto.ts
74
- models/post-financial-event-response-class.ts
75
- models/premium-item-account-mapping-class.ts
76
- models/product-account-mapping-class.ts
77
- models/product-account-mapping-detail-class.ts
78
- models/product-risk-carrier-class.ts
79
- models/product-version-account-mapping-detail-class.ts
80
- models/product-version-with-account-mappings-class.ts
81
- models/product-with-account-mappings-class.ts
82
- models/put-premium-item-account-body-dto.ts
83
- models/put-product-category-account-body-dto.ts
84
- models/put-product-risk-carrier-body-dto.ts
85
- models/put-product-version-category-account-body-dto.ts
86
- models/resolved-account-mapping-class.ts
87
- models/resolved-commission-account-mapping-class.ts
88
- models/update-commission-agreement-account-body-dto.ts
89
- models/update-commission-type-account-body-dto.ts
90
- models/update-financial-account-body-dto.ts
91
- models/update-financial-account-response-class.ts
92
- models/validate-accounting-config-request-dto.ts
93
- models/validate-accounting-config-response-class.ts
94
44
  package.json
95
45
  tsconfig.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/accounting-sdk@1.34.1-beta.77 --save
20
+ npm install @emilgroup/accounting-sdk@1.34.1-beta.78 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk@1.34.1-beta.77
24
+ yarn add @emilgroup/accounting-sdk@1.34.1-beta.78
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -25,17 +25,9 @@ import { CreateBookingEntryRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateBookingEntryResponseClass } from '../models';
27
27
  // @ts-ignore
28
- import { CreateOrCorrectOpeningBalanceDto } from '../models';
29
- // @ts-ignore
30
- import { CreateOrCorrectOpeningBalanceResponseClass } from '../models';
31
- // @ts-ignore
32
28
  import { GetBookingEntryResponseClass } from '../models';
33
29
  // @ts-ignore
34
30
  import { ListBookingEntriesResponseClass } from '../models';
35
- // @ts-ignore
36
- import { PostFinancialEventRequestDto } from '../models';
37
- // @ts-ignore
38
- import { PostFinancialEventResponseClass } from '../models';
39
31
  /**
40
32
  * BookingEntriesApi - axios parameter creator
41
33
  * @export
@@ -71,10 +63,8 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
71
63
  // http bearer authentication required
72
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
65
 
74
- // Only Authorization falls back to the configured token; an empty value is never sent.
75
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
76
- if (authorizationValue) {
77
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
66
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
68
  }
79
69
 
80
70
 
@@ -91,55 +81,6 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
91
81
  options: localVarRequestOptions,
92
82
  };
93
83
  },
94
- /**
95
- * 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\"
96
- * @summary Update the create or correct opening balance
97
- * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
98
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
- * @param {*} [options] Override http request option.
100
- * @throws {RequiredError}
101
- */
102
- createOrCorrectOpeningBalance: async (createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
103
- // verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
104
- assertParamExists('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto)
105
- const localVarPath = `/accountingservice/v1/booking-entries/opening-balances`;
106
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
107
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
108
- let baseOptions;
109
- let baseAccessToken;
110
- if (configuration) {
111
- baseOptions = configuration.baseOptions;
112
- baseAccessToken = configuration.accessToken;
113
- }
114
-
115
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
116
- const localVarHeaderParameter = {} as any;
117
- const localVarQueryParameter = {} as any;
118
-
119
- // authentication bearer required
120
- // http bearer authentication required
121
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
122
-
123
- // Only Authorization falls back to the configured token; an empty value is never sent.
124
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
125
- if (authorizationValue) {
126
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
127
- }
128
-
129
-
130
-
131
- localVarHeaderParameter['Content-Type'] = 'application/json';
132
-
133
- setSearchParams(localVarUrlObj, localVarQueryParameter);
134
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
135
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
136
- localVarRequestOptions.data = serializeDataIfNeeded(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration)
137
-
138
- return {
139
- url: toPathString(localVarUrlObj),
140
- options: localVarRequestOptions,
141
- };
142
- },
143
84
  /**
144
85
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
145
86
  * @summary Retrieve the booking entry
@@ -177,10 +118,8 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
177
118
  localVarQueryParameter['expand'] = expand;
178
119
  }
179
120
 
180
- // Only Authorization falls back to the configured token; an empty value is never sent.
181
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
182
- if (authorizationValue) {
183
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
121
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
123
  }
185
124
 
186
125
 
@@ -195,7 +134,7 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
195
134
  };
196
135
  },
197
136
  /**
198
- * 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\"
137
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
199
138
  * @summary List booking entries
200
139
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
201
140
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -255,10 +194,8 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
255
194
  localVarQueryParameter['filters'] = filters;
256
195
  }
257
196
 
258
- // Only Authorization falls back to the configured token; an empty value is never sent.
259
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
260
- if (authorizationValue) {
261
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
197
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
198
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
262
199
  }
263
200
 
264
201
 
@@ -267,55 +204,6 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
267
204
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
268
205
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
269
206
 
270
- return {
271
- url: toPathString(localVarUrlObj),
272
- options: localVarRequestOptions,
273
- };
274
- },
275
- /**
276
- * 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\"
277
- * @summary Create the booking entry from a source entity
278
- * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
279
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
280
- * @param {*} [options] Override http request option.
281
- * @throws {RequiredError}
282
- */
283
- postFinancialEvent: async (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
284
- // verify required parameter 'postFinancialEventRequestDto' is not null or undefined
285
- assertParamExists('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto)
286
- const localVarPath = `/accountingservice/v1/booking-entries/post-financial-event`;
287
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
288
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
289
- let baseOptions;
290
- let baseAccessToken;
291
- if (configuration) {
292
- baseOptions = configuration.baseOptions;
293
- baseAccessToken = configuration.accessToken;
294
- }
295
-
296
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
297
- const localVarHeaderParameter = {} as any;
298
- const localVarQueryParameter = {} as any;
299
-
300
- // authentication bearer required
301
- // http bearer authentication required
302
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
303
-
304
- // Only Authorization falls back to the configured token; an empty value is never sent.
305
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
306
- if (authorizationValue) {
307
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
308
- }
309
-
310
-
311
-
312
- localVarHeaderParameter['Content-Type'] = 'application/json';
313
-
314
- setSearchParams(localVarUrlObj, localVarQueryParameter);
315
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
316
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
317
- localVarRequestOptions.data = serializeDataIfNeeded(postFinancialEventRequestDto, localVarRequestOptions, configuration)
318
-
319
207
  return {
320
208
  url: toPathString(localVarUrlObj),
321
209
  options: localVarRequestOptions,
@@ -343,18 +231,6 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
343
231
  const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingEntry(createBookingEntryRequestDto, authorization, options);
344
232
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
345
233
  },
346
- /**
347
- * 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\"
348
- * @summary Update the create or correct opening balance
349
- * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
350
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
351
- * @param {*} [options] Override http request option.
352
- * @throws {RequiredError}
353
- */
354
- async createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>> {
355
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options);
356
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
357
- },
358
234
  /**
359
235
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
360
236
  * @summary Retrieve the booking entry
@@ -369,7 +245,7 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
369
245
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
370
246
  },
371
247
  /**
372
- * 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\"
248
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
373
249
  * @summary List booking entries
374
250
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
375
251
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -386,18 +262,6 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
386
262
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
387
263
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
388
264
  },
389
- /**
390
- * 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\"
391
- * @summary Create the booking entry from a source entity
392
- * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
393
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
394
- * @param {*} [options] Override http request option.
395
- * @throws {RequiredError}
396
- */
397
- async postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>> {
398
- const localVarAxiosArgs = await localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options);
399
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
400
- },
401
265
  }
402
266
  };
403
267
 
@@ -419,17 +283,6 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
419
283
  createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass> {
420
284
  return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then((request) => request(axios, basePath));
421
285
  },
422
- /**
423
- * 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\"
424
- * @summary Update the create or correct opening balance
425
- * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
426
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
427
- * @param {*} [options] Override http request option.
428
- * @throws {RequiredError}
429
- */
430
- createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: any): AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass> {
431
- return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then((request) => request(axios, basePath));
432
- },
433
286
  /**
434
287
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
435
288
  * @summary Retrieve the booking entry
@@ -443,7 +296,7 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
443
296
  return localVarFp.getBookingEntry(code, expand, authorization, options).then((request) => request(axios, basePath));
444
297
  },
445
298
  /**
446
- * 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\"
299
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
447
300
  * @summary List booking entries
448
301
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
449
302
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -459,17 +312,6 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
459
312
  listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass> {
460
313
  return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
461
314
  },
462
- /**
463
- * 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\"
464
- * @summary Create the booking entry from a source entity
465
- * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
466
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
467
- * @param {*} [options] Override http request option.
468
- * @throws {RequiredError}
469
- */
470
- postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass> {
471
- return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then((request) => request(axios, basePath));
472
- },
473
315
  };
474
316
  };
475
317
 
@@ -494,27 +336,6 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
494
336
  readonly authorization?: string
495
337
  }
496
338
 
497
- /**
498
- * Request parameters for createOrCorrectOpeningBalance operation in BookingEntriesApi.
499
- * @export
500
- * @interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest
501
- */
502
- export interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest {
503
- /**
504
- *
505
- * @type {CreateOrCorrectOpeningBalanceDto}
506
- * @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
507
- */
508
- readonly createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto
509
-
510
- /**
511
- * Bearer Token: provided by the login endpoint under the name accessToken.
512
- * @type {string}
513
- * @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
514
- */
515
- readonly authorization?: string
516
- }
517
-
518
339
  /**
519
340
  * Request parameters for getBookingEntry operation in BookingEntriesApi.
520
341
  * @export
@@ -606,27 +427,6 @@ export interface BookingEntriesApiListBookingEntriesRequest {
606
427
  readonly filters?: string
607
428
  }
608
429
 
609
- /**
610
- * Request parameters for postFinancialEvent operation in BookingEntriesApi.
611
- * @export
612
- * @interface BookingEntriesApiPostFinancialEventRequest
613
- */
614
- export interface BookingEntriesApiPostFinancialEventRequest {
615
- /**
616
- *
617
- * @type {PostFinancialEventRequestDto}
618
- * @memberof BookingEntriesApiPostFinancialEvent
619
- */
620
- readonly postFinancialEventRequestDto: PostFinancialEventRequestDto
621
-
622
- /**
623
- * Bearer Token: provided by the login endpoint under the name accessToken.
624
- * @type {string}
625
- * @memberof BookingEntriesApiPostFinancialEvent
626
- */
627
- readonly authorization?: string
628
- }
629
-
630
430
  /**
631
431
  * BookingEntriesApi - object-oriented interface
632
432
  * @export
@@ -646,18 +446,6 @@ export class BookingEntriesApi extends BaseAPI {
646
446
  return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
647
447
  }
648
448
 
649
- /**
650
- * 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\"
651
- * @summary Update the create or correct opening balance
652
- * @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
653
- * @param {*} [options] Override http request option.
654
- * @throws {RequiredError}
655
- * @memberof BookingEntriesApi
656
- */
657
- public createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig) {
658
- return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
659
- }
660
-
661
449
  /**
662
450
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
663
451
  * @summary Retrieve the booking entry
@@ -671,7 +459,7 @@ export class BookingEntriesApi extends BaseAPI {
671
459
  }
672
460
 
673
461
  /**
674
- * 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\"
462
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
675
463
  * @summary List booking entries
676
464
  * @param {BookingEntriesApiListBookingEntriesRequest} requestParameters Request parameters.
677
465
  * @param {*} [options] Override http request option.
@@ -681,16 +469,4 @@ export class BookingEntriesApi extends BaseAPI {
681
469
  public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
682
470
  return BookingEntriesApiFp(this.configuration).listBookingEntries(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
683
471
  }
684
-
685
- /**
686
- * 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\"
687
- * @summary Create the booking entry from a source entity
688
- * @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
689
- * @param {*} [options] Override http request option.
690
- * @throws {RequiredError}
691
- * @memberof BookingEntriesApi
692
- */
693
- public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
694
- return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
695
- }
696
472
  }