@emilgroup/accounting-sdk-node 1.32.1-beta.56 → 1.32.1-beta.58

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