@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
@@ -1,868 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL AccountingService
5
- * The EMIL AccountingService API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { CreateAndEnableSubledgerRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateAndEnableSubledgerResponseClass } from '../models';
27
- // @ts-ignore
28
- import { ExportAccountingConfigResponseClass } from '../models';
29
- // @ts-ignore
30
- import { GetAccountingCategoriesResponseClass } from '../models';
31
- // @ts-ignore
32
- import { GetActivationSnapshotResponseClass } from '../models';
33
- // @ts-ignore
34
- import { ValidateAccountingConfigRequestDto } from '../models';
35
- // @ts-ignore
36
- import { ValidateAccountingConfigResponseClass } from '../models';
37
- // URLSearchParams not necessarily used
38
- // @ts-ignore
39
- import { URL, URLSearchParams } from 'url';
40
- const FormData = require('form-data');
41
- /**
42
- * AccountingConfigsApi - axios parameter creator
43
- * @export
44
- */
45
- export const AccountingConfigsApiAxiosParamCreator = function (configuration?: Configuration) {
46
- return {
47
- /**
48
- * This will create and enable the subledger, using an accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
49
- * @summary Create the create and enable subledger
50
- * @param {CreateAndEnableSubledgerRequestDto} createAndEnableSubledgerRequestDto
51
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
52
- * @param {*} [options] Override http request option.
53
- * @throws {RequiredError}
54
- */
55
- createAndEnableSubledger: async (createAndEnableSubledgerRequestDto: CreateAndEnableSubledgerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
56
- // verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
57
- assertParamExists('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto)
58
- const localVarPath = `/accountingservice/v1/subledger`;
59
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
60
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
61
- let baseOptions;
62
- let baseAccessToken;
63
- if (configuration) {
64
- baseOptions = configuration.baseOptions;
65
- baseAccessToken = configuration.accessToken;
66
- }
67
-
68
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
69
- const localVarHeaderParameter = {} as any;
70
- const localVarQueryParameter = {} as any;
71
-
72
- // authentication bearer required
73
- // http bearer authentication required
74
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
-
76
- // Only Authorization falls back to the configured token; an empty value is never sent.
77
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
78
- if (authorizationValue) {
79
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
80
- }
81
-
82
-
83
-
84
- localVarHeaderParameter['Content-Type'] = 'application/json';
85
-
86
- setSearchParams(localVarUrlObj, localVarQueryParameter);
87
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
89
- localVarRequestOptions.data = serializeDataIfNeeded(createAndEnableSubledgerRequestDto, localVarRequestOptions, configuration)
90
-
91
- return {
92
- url: toPathString(localVarUrlObj),
93
- options: localVarRequestOptions,
94
- };
95
- },
96
- /**
97
- * This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
98
- * @summary Create the create and enable subledger from file
99
- * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
100
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- createAndEnableSubledgerFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
105
- // verify required parameter 'file' is not null or undefined
106
- assertParamExists('createAndEnableSubledgerFromFile', 'file', file)
107
- const localVarPath = `/accountingservice/v1/subledger/upload`;
108
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
109
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
110
- let baseOptions;
111
- let baseAccessToken;
112
- if (configuration) {
113
- baseOptions = configuration.baseOptions;
114
- baseAccessToken = configuration.accessToken;
115
- }
116
-
117
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
118
- const localVarHeaderParameter = {} as any;
119
- const localVarQueryParameter = {} as any;
120
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
121
-
122
- // authentication bearer required
123
- // http bearer authentication required
124
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
125
-
126
- // Only Authorization falls back to the configured token; an empty value is never sent.
127
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
128
- if (authorizationValue) {
129
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
- }
131
-
132
-
133
- if (file !== undefined) {
134
- localVarFormParams.append('file', file as any);
135
- }
136
-
137
-
138
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
139
-
140
-
141
- setSearchParams(localVarUrlObj, localVarQueryParameter);
142
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
144
- localVarRequestOptions.data = localVarFormParams;
145
-
146
- return {
147
- url: toPathString(localVarUrlObj),
148
- options: localVarRequestOptions,
149
- };
150
- },
151
- /**
152
- * This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
153
- * @summary Retrieve the export accounting config
154
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
155
- * @param {*} [options] Override http request option.
156
- * @throws {RequiredError}
157
- */
158
- exportAccountingConfig: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
159
- const localVarPath = `/accountingservice/v1/subledger/config/export`;
160
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
161
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
162
- let baseOptions;
163
- let baseAccessToken;
164
- if (configuration) {
165
- baseOptions = configuration.baseOptions;
166
- baseAccessToken = configuration.accessToken;
167
- }
168
-
169
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
170
- const localVarHeaderParameter = {} as any;
171
- const localVarQueryParameter = {} as any;
172
-
173
- // authentication bearer required
174
- // http bearer authentication required
175
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
176
-
177
- // Only Authorization falls back to the configured token; an empty value is never sent.
178
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
179
- if (authorizationValue) {
180
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
181
- }
182
-
183
-
184
-
185
- setSearchParams(localVarUrlObj, localVarQueryParameter);
186
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
188
-
189
- return {
190
- url: toPathString(localVarUrlObj),
191
- options: localVarRequestOptions,
192
- };
193
- },
194
- /**
195
- * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
196
- * @summary Retrieve the accounting categories
197
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
198
- * @param {*} [options] Override http request option.
199
- * @throws {RequiredError}
200
- */
201
- getAccountingCategories: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
202
- const localVarPath = `/accountingservice/v1/subledger/categories`;
203
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
205
- let baseOptions;
206
- let baseAccessToken;
207
- if (configuration) {
208
- baseOptions = configuration.baseOptions;
209
- baseAccessToken = configuration.accessToken;
210
- }
211
-
212
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
213
- const localVarHeaderParameter = {} as any;
214
- const localVarQueryParameter = {} as any;
215
-
216
- // authentication bearer required
217
- // http bearer authentication required
218
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
219
-
220
- // Only Authorization falls back to the configured token; an empty value is never sent.
221
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
222
- if (authorizationValue) {
223
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
224
- }
225
-
226
-
227
-
228
- setSearchParams(localVarUrlObj, localVarQueryParameter);
229
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
230
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
231
-
232
- return {
233
- url: toPathString(localVarUrlObj),
234
- options: localVarRequestOptions,
235
- };
236
- },
237
- /**
238
- * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
239
- * @summary Retrieve the get activation snapshot
240
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
241
- * @param {*} [options] Override http request option.
242
- * @throws {RequiredError}
243
- */
244
- getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
245
- const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
246
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
247
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
248
- let baseOptions;
249
- let baseAccessToken;
250
- if (configuration) {
251
- baseOptions = configuration.baseOptions;
252
- baseAccessToken = configuration.accessToken;
253
- }
254
-
255
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
256
- const localVarHeaderParameter = {} as any;
257
- const localVarQueryParameter = {} as any;
258
-
259
- // authentication bearer required
260
- // http bearer authentication required
261
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
262
-
263
- // Only Authorization falls back to the configured token; an empty value is never sent.
264
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
265
- if (authorizationValue) {
266
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
267
- }
268
-
269
-
270
-
271
- setSearchParams(localVarUrlObj, localVarQueryParameter);
272
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
273
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
274
-
275
- return {
276
- url: toPathString(localVarUrlObj),
277
- options: localVarRequestOptions,
278
- };
279
- },
280
- /**
281
- * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
282
- * @summary Delete the reset subledger
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
- resetSubledger: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
288
- const localVarPath = `/accountingservice/v1/subledger/reset`;
289
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
290
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
291
- let baseOptions;
292
- let baseAccessToken;
293
- if (configuration) {
294
- baseOptions = configuration.baseOptions;
295
- baseAccessToken = configuration.accessToken;
296
- }
297
-
298
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
299
- const localVarHeaderParameter = {} as any;
300
- const localVarQueryParameter = {} as any;
301
-
302
- // authentication bearer required
303
- // http bearer authentication required
304
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
305
-
306
- // Only Authorization falls back to the configured token; an empty value is never sent.
307
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
308
- if (authorizationValue) {
309
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
310
- }
311
-
312
-
313
-
314
- setSearchParams(localVarUrlObj, localVarQueryParameter);
315
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
316
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
317
-
318
- return {
319
- url: toPathString(localVarUrlObj),
320
- options: localVarRequestOptions,
321
- };
322
- },
323
- /**
324
- * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
325
- * @summary Create the validate accounting config
326
- * @param {ValidateAccountingConfigRequestDto} validateAccountingConfigRequestDto
327
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
328
- * @param {*} [options] Override http request option.
329
- * @throws {RequiredError}
330
- */
331
- validateAccountingConfig: async (validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
332
- // verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
333
- assertParamExists('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto)
334
- const localVarPath = `/accountingservice/v1/subledger/config/validate`;
335
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
336
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
337
- let baseOptions;
338
- let baseAccessToken;
339
- if (configuration) {
340
- baseOptions = configuration.baseOptions;
341
- baseAccessToken = configuration.accessToken;
342
- }
343
-
344
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
345
- const localVarHeaderParameter = {} as any;
346
- const localVarQueryParameter = {} as any;
347
-
348
- // authentication bearer required
349
- // http bearer authentication required
350
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
351
-
352
- // Only Authorization falls back to the configured token; an empty value is never sent.
353
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
354
- if (authorizationValue) {
355
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
356
- }
357
-
358
-
359
-
360
- localVarHeaderParameter['Content-Type'] = 'application/json';
361
-
362
- setSearchParams(localVarUrlObj, localVarQueryParameter);
363
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
364
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
365
- localVarRequestOptions.data = serializeDataIfNeeded(validateAccountingConfigRequestDto, localVarRequestOptions, configuration)
366
-
367
- return {
368
- url: toPathString(localVarUrlObj),
369
- options: localVarRequestOptions,
370
- };
371
- },
372
- /**
373
- * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
374
- * @summary Create the validate accounting config from file
375
- * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
376
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
377
- * @param {*} [options] Override http request option.
378
- * @throws {RequiredError}
379
- */
380
- validateAccountingConfigFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
381
- // verify required parameter 'file' is not null or undefined
382
- assertParamExists('validateAccountingConfigFromFile', 'file', file)
383
- const localVarPath = `/accountingservice/v1/subledger/config/validate/upload`;
384
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
385
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
386
- let baseOptions;
387
- let baseAccessToken;
388
- if (configuration) {
389
- baseOptions = configuration.baseOptions;
390
- baseAccessToken = configuration.accessToken;
391
- }
392
-
393
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
394
- const localVarHeaderParameter = {} as any;
395
- const localVarQueryParameter = {} as any;
396
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
397
-
398
- // authentication bearer required
399
- // http bearer authentication required
400
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
401
-
402
- // Only Authorization falls back to the configured token; an empty value is never sent.
403
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
404
- if (authorizationValue) {
405
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
406
- }
407
-
408
-
409
- if (file !== undefined) {
410
- localVarFormParams.append('file', file as any);
411
- }
412
-
413
-
414
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
415
-
416
-
417
- setSearchParams(localVarUrlObj, localVarQueryParameter);
418
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
419
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
420
- localVarRequestOptions.data = localVarFormParams;
421
-
422
- return {
423
- url: toPathString(localVarUrlObj),
424
- options: localVarRequestOptions,
425
- };
426
- },
427
- }
428
- };
429
-
430
- /**
431
- * AccountingConfigsApi - functional programming interface
432
- * @export
433
- */
434
- export const AccountingConfigsApiFp = function(configuration?: Configuration) {
435
- const localVarAxiosParamCreator = AccountingConfigsApiAxiosParamCreator(configuration)
436
- return {
437
- /**
438
- * This will create and enable the subledger, using an accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
439
- * @summary Create the create and enable subledger
440
- * @param {CreateAndEnableSubledgerRequestDto} createAndEnableSubledgerRequestDto
441
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
- * @param {*} [options] Override http request option.
443
- * @throws {RequiredError}
444
- */
445
- async createAndEnableSubledger(createAndEnableSubledgerRequestDto: CreateAndEnableSubledgerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAndEnableSubledgerResponseClass>> {
446
- const localVarAxiosArgs = await localVarAxiosParamCreator.createAndEnableSubledger(createAndEnableSubledgerRequestDto, authorization, options);
447
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
448
- },
449
- /**
450
- * This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
451
- * @summary Create the create and enable subledger from file
452
- * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
453
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
454
- * @param {*} [options] Override http request option.
455
- * @throws {RequiredError}
456
- */
457
- async createAndEnableSubledgerFromFile(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAndEnableSubledgerResponseClass>> {
458
- const localVarAxiosArgs = await localVarAxiosParamCreator.createAndEnableSubledgerFromFile(file, authorization, options);
459
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
460
- },
461
- /**
462
- * This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
463
- * @summary Retrieve the export accounting config
464
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
465
- * @param {*} [options] Override http request option.
466
- * @throws {RequiredError}
467
- */
468
- async exportAccountingConfig(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExportAccountingConfigResponseClass>> {
469
- const localVarAxiosArgs = await localVarAxiosParamCreator.exportAccountingConfig(authorization, options);
470
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
471
- },
472
- /**
473
- * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
474
- * @summary Retrieve the accounting categories
475
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
476
- * @param {*} [options] Override http request option.
477
- * @throws {RequiredError}
478
- */
479
- async getAccountingCategories(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountingCategoriesResponseClass>> {
480
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingCategories(authorization, options);
481
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
482
- },
483
- /**
484
- * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
485
- * @summary Retrieve the get activation snapshot
486
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
487
- * @param {*} [options] Override http request option.
488
- * @throws {RequiredError}
489
- */
490
- async getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
491
- const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(authorization, options);
492
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
493
- },
494
- /**
495
- * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
496
- * @summary Delete the reset subledger
497
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
498
- * @param {*} [options] Override http request option.
499
- * @throws {RequiredError}
500
- */
501
- async resetSubledger(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
502
- const localVarAxiosArgs = await localVarAxiosParamCreator.resetSubledger(authorization, options);
503
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
504
- },
505
- /**
506
- * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
507
- * @summary Create the validate accounting config
508
- * @param {ValidateAccountingConfigRequestDto} validateAccountingConfigRequestDto
509
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
510
- * @param {*} [options] Override http request option.
511
- * @throws {RequiredError}
512
- */
513
- async validateAccountingConfig(validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccountingConfigResponseClass>> {
514
- const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccountingConfig(validateAccountingConfigRequestDto, authorization, options);
515
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
516
- },
517
- /**
518
- * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
519
- * @summary Create the validate accounting config from file
520
- * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
521
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
522
- * @param {*} [options] Override http request option.
523
- * @throws {RequiredError}
524
- */
525
- async validateAccountingConfigFromFile(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccountingConfigResponseClass>> {
526
- const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccountingConfigFromFile(file, authorization, options);
527
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
528
- },
529
- }
530
- };
531
-
532
- /**
533
- * AccountingConfigsApi - factory interface
534
- * @export
535
- */
536
- export const AccountingConfigsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
537
- const localVarFp = AccountingConfigsApiFp(configuration)
538
- return {
539
- /**
540
- * This will create and enable the subledger, using an accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
541
- * @summary Create the create and enable subledger
542
- * @param {CreateAndEnableSubledgerRequestDto} createAndEnableSubledgerRequestDto
543
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
544
- * @param {*} [options] Override http request option.
545
- * @throws {RequiredError}
546
- */
547
- createAndEnableSubledger(createAndEnableSubledgerRequestDto: CreateAndEnableSubledgerRequestDto, authorization?: string, options?: any): AxiosPromise<CreateAndEnableSubledgerResponseClass> {
548
- return localVarFp.createAndEnableSubledger(createAndEnableSubledgerRequestDto, authorization, options).then((request) => request(axios, basePath));
549
- },
550
- /**
551
- * This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
552
- * @summary Create the create and enable subledger from file
553
- * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
554
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
555
- * @param {*} [options] Override http request option.
556
- * @throws {RequiredError}
557
- */
558
- createAndEnableSubledgerFromFile(file: any, authorization?: string, options?: any): AxiosPromise<CreateAndEnableSubledgerResponseClass> {
559
- return localVarFp.createAndEnableSubledgerFromFile(file, authorization, options).then((request) => request(axios, basePath));
560
- },
561
- /**
562
- * This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
563
- * @summary Retrieve the export accounting config
564
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
565
- * @param {*} [options] Override http request option.
566
- * @throws {RequiredError}
567
- */
568
- exportAccountingConfig(authorization?: string, options?: any): AxiosPromise<ExportAccountingConfigResponseClass> {
569
- return localVarFp.exportAccountingConfig(authorization, options).then((request) => request(axios, basePath));
570
- },
571
- /**
572
- * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
573
- * @summary Retrieve the accounting categories
574
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
575
- * @param {*} [options] Override http request option.
576
- * @throws {RequiredError}
577
- */
578
- getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass> {
579
- return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
580
- },
581
- /**
582
- * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
583
- * @summary Retrieve the get activation snapshot
584
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
585
- * @param {*} [options] Override http request option.
586
- * @throws {RequiredError}
587
- */
588
- getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
589
- return localVarFp.getActivationSnapshot(authorization, options).then((request) => request(axios, basePath));
590
- },
591
- /**
592
- * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
593
- * @summary Delete the reset subledger
594
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
595
- * @param {*} [options] Override http request option.
596
- * @throws {RequiredError}
597
- */
598
- resetSubledger(authorization?: string, options?: any): AxiosPromise<void> {
599
- return localVarFp.resetSubledger(authorization, options).then((request) => request(axios, basePath));
600
- },
601
- /**
602
- * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
603
- * @summary Create the validate accounting config
604
- * @param {ValidateAccountingConfigRequestDto} validateAccountingConfigRequestDto
605
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
606
- * @param {*} [options] Override http request option.
607
- * @throws {RequiredError}
608
- */
609
- validateAccountingConfig(validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto, authorization?: string, options?: any): AxiosPromise<ValidateAccountingConfigResponseClass> {
610
- return localVarFp.validateAccountingConfig(validateAccountingConfigRequestDto, authorization, options).then((request) => request(axios, basePath));
611
- },
612
- /**
613
- * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
614
- * @summary Create the validate accounting config from file
615
- * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
616
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
617
- * @param {*} [options] Override http request option.
618
- * @throws {RequiredError}
619
- */
620
- validateAccountingConfigFromFile(file: any, authorization?: string, options?: any): AxiosPromise<ValidateAccountingConfigResponseClass> {
621
- return localVarFp.validateAccountingConfigFromFile(file, authorization, options).then((request) => request(axios, basePath));
622
- },
623
- };
624
- };
625
-
626
- /**
627
- * Request parameters for createAndEnableSubledger operation in AccountingConfigsApi.
628
- * @export
629
- * @interface AccountingConfigsApiCreateAndEnableSubledgerRequest
630
- */
631
- export interface AccountingConfigsApiCreateAndEnableSubledgerRequest {
632
- /**
633
- *
634
- * @type {CreateAndEnableSubledgerRequestDto}
635
- * @memberof AccountingConfigsApiCreateAndEnableSubledger
636
- */
637
- readonly createAndEnableSubledgerRequestDto: CreateAndEnableSubledgerRequestDto
638
-
639
- /**
640
- * Bearer Token: provided by the login endpoint under the name accessToken.
641
- * @type {string}
642
- * @memberof AccountingConfigsApiCreateAndEnableSubledger
643
- */
644
- readonly authorization?: string
645
- }
646
-
647
- /**
648
- * Request parameters for createAndEnableSubledgerFromFile operation in AccountingConfigsApi.
649
- * @export
650
- * @interface AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest
651
- */
652
- export interface AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest {
653
- /**
654
- * JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
655
- * @type {any}
656
- * @memberof AccountingConfigsApiCreateAndEnableSubledgerFromFile
657
- */
658
- readonly file: any
659
-
660
- /**
661
- * Bearer Token: provided by the login endpoint under the name accessToken.
662
- * @type {string}
663
- * @memberof AccountingConfigsApiCreateAndEnableSubledgerFromFile
664
- */
665
- readonly authorization?: string
666
- }
667
-
668
- /**
669
- * Request parameters for exportAccountingConfig operation in AccountingConfigsApi.
670
- * @export
671
- * @interface AccountingConfigsApiExportAccountingConfigRequest
672
- */
673
- export interface AccountingConfigsApiExportAccountingConfigRequest {
674
- /**
675
- * Bearer Token: provided by the login endpoint under the name accessToken.
676
- * @type {string}
677
- * @memberof AccountingConfigsApiExportAccountingConfig
678
- */
679
- readonly authorization?: string
680
- }
681
-
682
- /**
683
- * Request parameters for getAccountingCategories operation in AccountingConfigsApi.
684
- * @export
685
- * @interface AccountingConfigsApiGetAccountingCategoriesRequest
686
- */
687
- export interface AccountingConfigsApiGetAccountingCategoriesRequest {
688
- /**
689
- * Bearer Token: provided by the login endpoint under the name accessToken.
690
- * @type {string}
691
- * @memberof AccountingConfigsApiGetAccountingCategories
692
- */
693
- readonly authorization?: string
694
- }
695
-
696
- /**
697
- * Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
698
- * @export
699
- * @interface AccountingConfigsApiGetActivationSnapshotRequest
700
- */
701
- export interface AccountingConfigsApiGetActivationSnapshotRequest {
702
- /**
703
- * Bearer Token: provided by the login endpoint under the name accessToken.
704
- * @type {string}
705
- * @memberof AccountingConfigsApiGetActivationSnapshot
706
- */
707
- readonly authorization?: string
708
- }
709
-
710
- /**
711
- * Request parameters for resetSubledger operation in AccountingConfigsApi.
712
- * @export
713
- * @interface AccountingConfigsApiResetSubledgerRequest
714
- */
715
- export interface AccountingConfigsApiResetSubledgerRequest {
716
- /**
717
- * Bearer Token: provided by the login endpoint under the name accessToken.
718
- * @type {string}
719
- * @memberof AccountingConfigsApiResetSubledger
720
- */
721
- readonly authorization?: string
722
- }
723
-
724
- /**
725
- * Request parameters for validateAccountingConfig operation in AccountingConfigsApi.
726
- * @export
727
- * @interface AccountingConfigsApiValidateAccountingConfigRequest
728
- */
729
- export interface AccountingConfigsApiValidateAccountingConfigRequest {
730
- /**
731
- *
732
- * @type {ValidateAccountingConfigRequestDto}
733
- * @memberof AccountingConfigsApiValidateAccountingConfig
734
- */
735
- readonly validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto
736
-
737
- /**
738
- * Bearer Token: provided by the login endpoint under the name accessToken.
739
- * @type {string}
740
- * @memberof AccountingConfigsApiValidateAccountingConfig
741
- */
742
- readonly authorization?: string
743
- }
744
-
745
- /**
746
- * Request parameters for validateAccountingConfigFromFile operation in AccountingConfigsApi.
747
- * @export
748
- * @interface AccountingConfigsApiValidateAccountingConfigFromFileRequest
749
- */
750
- export interface AccountingConfigsApiValidateAccountingConfigFromFileRequest {
751
- /**
752
- * JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
753
- * @type {any}
754
- * @memberof AccountingConfigsApiValidateAccountingConfigFromFile
755
- */
756
- readonly file: any
757
-
758
- /**
759
- * Bearer Token: provided by the login endpoint under the name accessToken.
760
- * @type {string}
761
- * @memberof AccountingConfigsApiValidateAccountingConfigFromFile
762
- */
763
- readonly authorization?: string
764
- }
765
-
766
- /**
767
- * AccountingConfigsApi - object-oriented interface
768
- * @export
769
- * @class AccountingConfigsApi
770
- * @extends {BaseAPI}
771
- */
772
- export class AccountingConfigsApi extends BaseAPI {
773
- /**
774
- * This will create and enable the subledger, using an accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
775
- * @summary Create the create and enable subledger
776
- * @param {AccountingConfigsApiCreateAndEnableSubledgerRequest} requestParameters Request parameters.
777
- * @param {*} [options] Override http request option.
778
- * @throws {RequiredError}
779
- * @memberof AccountingConfigsApi
780
- */
781
- public createAndEnableSubledger(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerRequest, options?: AxiosRequestConfig) {
782
- return AccountingConfigsApiFp(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
783
- }
784
-
785
- /**
786
- * This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
787
- * @summary Create the create and enable subledger from file
788
- * @param {AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest} requestParameters Request parameters.
789
- * @param {*} [options] Override http request option.
790
- * @throws {RequiredError}
791
- * @memberof AccountingConfigsApi
792
- */
793
- public createAndEnableSubledgerFromFile(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest, options?: AxiosRequestConfig) {
794
- return AccountingConfigsApiFp(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
795
- }
796
-
797
- /**
798
- * This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
799
- * @summary Retrieve the export accounting config
800
- * @param {AccountingConfigsApiExportAccountingConfigRequest} requestParameters Request parameters.
801
- * @param {*} [options] Override http request option.
802
- * @throws {RequiredError}
803
- * @memberof AccountingConfigsApi
804
- */
805
- public exportAccountingConfig(requestParameters: AccountingConfigsApiExportAccountingConfigRequest = {}, options?: AxiosRequestConfig) {
806
- return AccountingConfigsApiFp(this.configuration).exportAccountingConfig(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
807
- }
808
-
809
- /**
810
- * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
811
- * @summary Retrieve the accounting categories
812
- * @param {AccountingConfigsApiGetAccountingCategoriesRequest} requestParameters Request parameters.
813
- * @param {*} [options] Override http request option.
814
- * @throws {RequiredError}
815
- * @memberof AccountingConfigsApi
816
- */
817
- public getAccountingCategories(requestParameters: AccountingConfigsApiGetAccountingCategoriesRequest = {}, options?: AxiosRequestConfig) {
818
- return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
819
- }
820
-
821
- /**
822
- * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
823
- * @summary Retrieve the get activation snapshot
824
- * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
825
- * @param {*} [options] Override http request option.
826
- * @throws {RequiredError}
827
- * @memberof AccountingConfigsApi
828
- */
829
- public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
830
- return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
831
- }
832
-
833
- /**
834
- * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
835
- * @summary Delete the reset subledger
836
- * @param {AccountingConfigsApiResetSubledgerRequest} requestParameters Request parameters.
837
- * @param {*} [options] Override http request option.
838
- * @throws {RequiredError}
839
- * @memberof AccountingConfigsApi
840
- */
841
- public resetSubledger(requestParameters: AccountingConfigsApiResetSubledgerRequest = {}, options?: AxiosRequestConfig) {
842
- return AccountingConfigsApiFp(this.configuration).resetSubledger(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
843
- }
844
-
845
- /**
846
- * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
847
- * @summary Create the validate accounting config
848
- * @param {AccountingConfigsApiValidateAccountingConfigRequest} requestParameters Request parameters.
849
- * @param {*} [options] Override http request option.
850
- * @throws {RequiredError}
851
- * @memberof AccountingConfigsApi
852
- */
853
- public validateAccountingConfig(requestParameters: AccountingConfigsApiValidateAccountingConfigRequest, options?: AxiosRequestConfig) {
854
- return AccountingConfigsApiFp(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
855
- }
856
-
857
- /**
858
- * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
859
- * @summary Create the validate accounting config from file
860
- * @param {AccountingConfigsApiValidateAccountingConfigFromFileRequest} requestParameters Request parameters.
861
- * @param {*} [options] Override http request option.
862
- * @throws {RequiredError}
863
- * @memberof AccountingConfigsApi
864
- */
865
- public validateAccountingConfigFromFile(requestParameters: AccountingConfigsApiValidateAccountingConfigFromFileRequest, options?: AxiosRequestConfig) {
866
- return AccountingConfigsApiFp(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
867
- }
868
- }