@emilgroup/accounting-sdk 1.34.1-beta.76 → 1.34.1-beta.78

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