@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
@@ -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-node@1.32.1-beta.77 --save
20
+ npm install @emilgroup/accounting-sdk-node@1.32.1-beta.78 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.77
24
+ yarn add @emilgroup/accounting-sdk-node@1.32.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
  // URLSearchParams not necessarily used
40
32
  // @ts-ignore
41
33
  import { URL, URLSearchParams } from 'url';
@@ -75,10 +67,8 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
75
67
  // http bearer authentication required
76
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
77
69
 
78
- // Only Authorization falls back to the configured token; an empty value is never sent.
79
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
80
- if (authorizationValue) {
81
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
82
72
  }
83
73
 
84
74
 
@@ -95,55 +85,6 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
95
85
  options: localVarRequestOptions,
96
86
  };
97
87
  },
98
- /**
99
- * 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\"
100
- * @summary Update the create or correct opening balance
101
- * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
102
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
- * @param {*} [options] Override http request option.
104
- * @throws {RequiredError}
105
- */
106
- createOrCorrectOpeningBalance: async (createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
107
- // verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
108
- assertParamExists('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto)
109
- const localVarPath = `/accountingservice/v1/booking-entries/opening-balances`;
110
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
111
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
112
- let baseOptions;
113
- let baseAccessToken;
114
- if (configuration) {
115
- baseOptions = configuration.baseOptions;
116
- baseAccessToken = configuration.accessToken;
117
- }
118
-
119
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
120
- const localVarHeaderParameter = {} as any;
121
- const localVarQueryParameter = {} as any;
122
-
123
- // authentication bearer required
124
- // http bearer authentication required
125
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
126
-
127
- // Only Authorization falls back to the configured token; an empty value is never sent.
128
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
129
- if (authorizationValue) {
130
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
131
- }
132
-
133
-
134
-
135
- localVarHeaderParameter['Content-Type'] = 'application/json';
136
-
137
- setSearchParams(localVarUrlObj, localVarQueryParameter);
138
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
139
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
140
- localVarRequestOptions.data = serializeDataIfNeeded(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration)
141
-
142
- return {
143
- url: toPathString(localVarUrlObj),
144
- options: localVarRequestOptions,
145
- };
146
- },
147
88
  /**
148
89
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
149
90
  * @summary Retrieve the booking entry
@@ -181,10 +122,8 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
181
122
  localVarQueryParameter['expand'] = expand;
182
123
  }
183
124
 
184
- // Only Authorization falls back to the configured token; an empty value is never sent.
185
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
186
- if (authorizationValue) {
187
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
125
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
126
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
127
  }
189
128
 
190
129
 
@@ -199,7 +138,7 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
199
138
  };
200
139
  },
201
140
  /**
202
- * 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\"
141
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
203
142
  * @summary List booking entries
204
143
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
205
144
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -259,10 +198,8 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
259
198
  localVarQueryParameter['filters'] = filters;
260
199
  }
261
200
 
262
- // Only Authorization falls back to the configured token; an empty value is never sent.
263
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
264
- if (authorizationValue) {
265
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
201
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
202
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
266
203
  }
267
204
 
268
205
 
@@ -271,55 +208,6 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
271
208
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
272
209
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
273
210
 
274
- return {
275
- url: toPathString(localVarUrlObj),
276
- options: localVarRequestOptions,
277
- };
278
- },
279
- /**
280
- * 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\"
281
- * @summary Create the booking entry from a source entity
282
- * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
283
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
284
- * @param {*} [options] Override http request option.
285
- * @throws {RequiredError}
286
- */
287
- postFinancialEvent: async (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
288
- // verify required parameter 'postFinancialEventRequestDto' is not null or undefined
289
- assertParamExists('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto)
290
- const localVarPath = `/accountingservice/v1/booking-entries/post-financial-event`;
291
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
292
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
293
- let baseOptions;
294
- let baseAccessToken;
295
- if (configuration) {
296
- baseOptions = configuration.baseOptions;
297
- baseAccessToken = configuration.accessToken;
298
- }
299
-
300
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
301
- const localVarHeaderParameter = {} as any;
302
- const localVarQueryParameter = {} as any;
303
-
304
- // authentication bearer required
305
- // http bearer authentication required
306
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
307
-
308
- // Only Authorization falls back to the configured token; an empty value is never sent.
309
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
310
- if (authorizationValue) {
311
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
312
- }
313
-
314
-
315
-
316
- localVarHeaderParameter['Content-Type'] = 'application/json';
317
-
318
- setSearchParams(localVarUrlObj, localVarQueryParameter);
319
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
320
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
321
- localVarRequestOptions.data = serializeDataIfNeeded(postFinancialEventRequestDto, localVarRequestOptions, configuration)
322
-
323
211
  return {
324
212
  url: toPathString(localVarUrlObj),
325
213
  options: localVarRequestOptions,
@@ -347,18 +235,6 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
347
235
  const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingEntry(createBookingEntryRequestDto, authorization, options);
348
236
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
349
237
  },
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 {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
354
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
355
- * @param {*} [options] Override http request option.
356
- * @throws {RequiredError}
357
- */
358
- async createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>> {
359
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options);
360
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
361
- },
362
238
  /**
363
239
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
364
240
  * @summary Retrieve the booking entry
@@ -373,7 +249,7 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
373
249
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
374
250
  },
375
251
  /**
376
- * 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\"
252
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
377
253
  * @summary List booking entries
378
254
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
379
255
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -390,18 +266,6 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
390
266
  const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
391
267
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
392
268
  },
393
- /**
394
- * 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\"
395
- * @summary Create the booking entry from a source entity
396
- * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
397
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
398
- * @param {*} [options] Override http request option.
399
- * @throws {RequiredError}
400
- */
401
- async postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>> {
402
- const localVarAxiosArgs = await localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options);
403
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
404
- },
405
269
  }
406
270
  };
407
271
 
@@ -423,17 +287,6 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
423
287
  createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass> {
424
288
  return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then((request) => request(axios, basePath));
425
289
  },
426
- /**
427
- * 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\"
428
- * @summary Update the create or correct opening balance
429
- * @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
430
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
431
- * @param {*} [options] Override http request option.
432
- * @throws {RequiredError}
433
- */
434
- createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: any): AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass> {
435
- return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then((request) => request(axios, basePath));
436
- },
437
290
  /**
438
291
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
439
292
  * @summary Retrieve the booking entry
@@ -447,7 +300,7 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
447
300
  return localVarFp.getBookingEntry(code, expand, authorization, options).then((request) => request(axios, basePath));
448
301
  },
449
302
  /**
450
- * 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\"
303
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
451
304
  * @summary List booking entries
452
305
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
453
306
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -463,17 +316,6 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
463
316
  listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass> {
464
317
  return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
465
318
  },
466
- /**
467
- * 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\"
468
- * @summary Create the booking entry from a source entity
469
- * @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
470
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
- * @param {*} [options] Override http request option.
472
- * @throws {RequiredError}
473
- */
474
- postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass> {
475
- return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then((request) => request(axios, basePath));
476
- },
477
319
  };
478
320
  };
479
321
 
@@ -498,27 +340,6 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
498
340
  readonly authorization?: string
499
341
  }
500
342
 
501
- /**
502
- * Request parameters for createOrCorrectOpeningBalance operation in BookingEntriesApi.
503
- * @export
504
- * @interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest
505
- */
506
- export interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest {
507
- /**
508
- *
509
- * @type {CreateOrCorrectOpeningBalanceDto}
510
- * @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
511
- */
512
- readonly createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto
513
-
514
- /**
515
- * Bearer Token: provided by the login endpoint under the name accessToken.
516
- * @type {string}
517
- * @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
518
- */
519
- readonly authorization?: string
520
- }
521
-
522
343
  /**
523
344
  * Request parameters for getBookingEntry operation in BookingEntriesApi.
524
345
  * @export
@@ -610,27 +431,6 @@ export interface BookingEntriesApiListBookingEntriesRequest {
610
431
  readonly filters?: string
611
432
  }
612
433
 
613
- /**
614
- * Request parameters for postFinancialEvent operation in BookingEntriesApi.
615
- * @export
616
- * @interface BookingEntriesApiPostFinancialEventRequest
617
- */
618
- export interface BookingEntriesApiPostFinancialEventRequest {
619
- /**
620
- *
621
- * @type {PostFinancialEventRequestDto}
622
- * @memberof BookingEntriesApiPostFinancialEvent
623
- */
624
- readonly postFinancialEventRequestDto: PostFinancialEventRequestDto
625
-
626
- /**
627
- * Bearer Token: provided by the login endpoint under the name accessToken.
628
- * @type {string}
629
- * @memberof BookingEntriesApiPostFinancialEvent
630
- */
631
- readonly authorization?: string
632
- }
633
-
634
434
  /**
635
435
  * BookingEntriesApi - object-oriented interface
636
436
  * @export
@@ -650,18 +450,6 @@ export class BookingEntriesApi extends BaseAPI {
650
450
  return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
651
451
  }
652
452
 
653
- /**
654
- * 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\"
655
- * @summary Update the create or correct opening balance
656
- * @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
657
- * @param {*} [options] Override http request option.
658
- * @throws {RequiredError}
659
- * @memberof BookingEntriesApi
660
- */
661
- public createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig) {
662
- return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
663
- }
664
-
665
453
  /**
666
454
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
667
455
  * @summary Retrieve the booking entry
@@ -675,7 +463,7 @@ export class BookingEntriesApi extends BaseAPI {
675
463
  }
676
464
 
677
465
  /**
678
- * 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\"
466
+ * This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
679
467
  * @summary List booking entries
680
468
  * @param {BookingEntriesApiListBookingEntriesRequest} requestParameters Request parameters.
681
469
  * @param {*} [options] Override http request option.
@@ -685,16 +473,4 @@ export class BookingEntriesApi extends BaseAPI {
685
473
  public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
686
474
  return BookingEntriesApiFp(this.configuration).listBookingEntries(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
687
475
  }
688
-
689
- /**
690
- * 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\"
691
- * @summary Create the booking entry from a source entity
692
- * @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
693
- * @param {*} [options] Override http request option.
694
- * @throws {RequiredError}
695
- * @memberof BookingEntriesApi
696
- */
697
- public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
698
- return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
699
- }
700
476
  }