@emilgroup/accounting-sdk-node 1.27.1-beta.3 → 1.27.1-beta.30

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 (102) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +1234 -0
  4. package/api/financial-accounts-api.ts +12 -12
  5. package/api.ts +2 -0
  6. package/base.ts +1 -0
  7. package/dist/api/accounting-configs-api.d.ts +671 -0
  8. package/dist/api/accounting-configs-api.js +1125 -0
  9. package/dist/api/financial-accounts-api.d.ts +12 -12
  10. package/dist/api/financial-accounts-api.js +9 -9
  11. package/dist/api.d.ts +1 -0
  12. package/dist/api.js +1 -0
  13. package/dist/base.d.ts +2 -1
  14. package/dist/base.js +1 -0
  15. package/dist/models/accounting-category-class.d.ts +45 -0
  16. package/dist/models/accounting-category-class.js +24 -0
  17. package/dist/models/accounting-config-class.d.ts +67 -0
  18. package/dist/models/accounting-config-class.js +15 -0
  19. package/dist/models/accounting-config-data-class.d.ts +45 -0
  20. package/dist/models/accounting-config-data-class.js +15 -0
  21. package/dist/models/accounting-configuration-class.d.ts +36 -0
  22. package/dist/models/accounting-configuration-class.js +15 -0
  23. package/dist/models/chart-of-accounts-config-class.d.ts +25 -0
  24. package/dist/models/chart-of-accounts-config-class.js +15 -0
  25. package/dist/models/chart-of-accounts-item-class.d.ts +71 -0
  26. package/dist/models/chart-of-accounts-item-class.js +38 -0
  27. package/dist/models/create-accounting-config-data-dto-accounting-configuration.d.ts +46 -0
  28. package/dist/models/create-accounting-config-data-dto-accounting-configuration.js +24 -0
  29. package/dist/models/create-accounting-config-data-dto-chart-of-accounts-config-items.d.ts +59 -0
  30. package/dist/models/create-accounting-config-data-dto-chart-of-accounts-config-items.js +38 -0
  31. package/dist/models/create-accounting-config-data-dto-chart-of-accounts-config.d.ts +25 -0
  32. package/dist/models/create-accounting-config-data-dto-chart-of-accounts-config.js +15 -0
  33. package/dist/models/create-accounting-config-data-dto-opening-balances-opening-balances.d.ts +65 -0
  34. package/dist/models/create-accounting-config-data-dto-opening-balances-opening-balances.js +38 -0
  35. package/dist/models/create-accounting-config-data-dto-opening-balances.d.ts +25 -0
  36. package/dist/models/create-accounting-config-data-dto-opening-balances.js +15 -0
  37. package/dist/models/create-accounting-config-data-dto.d.ts +45 -0
  38. package/dist/models/create-accounting-config-data-dto.js +15 -0
  39. package/dist/models/create-accounting-config-request-dto.d.ts +31 -0
  40. package/dist/models/create-accounting-config-request-dto.js +15 -0
  41. package/dist/models/create-accounting-config-response-class.d.ts +25 -0
  42. package/dist/models/create-accounting-config-response-class.js +15 -0
  43. package/dist/models/create-financial-account-request-dto.d.ts +36 -1
  44. package/dist/models/create-financial-account-request-dto.js +24 -2
  45. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  46. package/dist/models/create-number-range-request-dto.js +4 -4
  47. package/dist/models/create-personal-account-request-dto.d.ts +10 -4
  48. package/dist/models/create-personal-account-request-dto.js +3 -3
  49. package/dist/models/financial-account-class.d.ts +20 -2
  50. package/dist/models/financial-account-class.js +1 -1
  51. package/dist/models/get-accounting-categories-response-class.d.ts +25 -0
  52. package/dist/models/get-accounting-categories-response-class.js +15 -0
  53. package/dist/models/get-accounting-config-response-class.d.ts +25 -0
  54. package/dist/models/get-accounting-config-response-class.js +15 -0
  55. package/dist/models/index.d.ts +23 -0
  56. package/dist/models/index.js +23 -0
  57. package/dist/models/inline-object2.d.ts +24 -0
  58. package/dist/models/inline-object2.js +15 -0
  59. package/dist/models/list-accounting-configs-response-class.d.ts +43 -0
  60. package/dist/models/list-accounting-configs-response-class.js +15 -0
  61. package/dist/models/opening-balance-class.d.ts +65 -0
  62. package/dist/models/opening-balance-class.js +38 -0
  63. package/dist/models/opening-balances-class.d.ts +25 -0
  64. package/dist/models/opening-balances-class.js +15 -0
  65. package/dist/models/personal-account-class.d.ts +8 -2
  66. package/dist/models/personal-account-class.js +1 -1
  67. package/dist/models/update-chart-of-accounts-response-class.d.ts +25 -0
  68. package/dist/models/update-chart-of-accounts-response-class.js +15 -0
  69. package/dist/models/validate-accounting-config-request-dto.d.ts +25 -0
  70. package/dist/models/validate-accounting-config-request-dto.js +15 -0
  71. package/dist/models/validate-accounting-config-response-class.d.ts +30 -0
  72. package/dist/models/validate-accounting-config-response-class.js +15 -0
  73. package/models/accounting-category-class.ts +54 -0
  74. package/models/accounting-config-class.ts +73 -0
  75. package/models/accounting-config-data-class.ts +51 -0
  76. package/models/accounting-configuration-class.ts +42 -0
  77. package/models/chart-of-accounts-config-class.ts +31 -0
  78. package/models/chart-of-accounts-item-class.ts +80 -0
  79. package/models/create-accounting-config-data-dto-accounting-configuration.ts +56 -0
  80. package/models/create-accounting-config-data-dto-chart-of-accounts-config-items.ts +68 -0
  81. package/models/create-accounting-config-data-dto-chart-of-accounts-config.ts +31 -0
  82. package/models/create-accounting-config-data-dto-opening-balances-opening-balances.ts +74 -0
  83. package/models/create-accounting-config-data-dto-opening-balances.ts +31 -0
  84. package/models/create-accounting-config-data-dto.ts +51 -0
  85. package/models/create-accounting-config-request-dto.ts +37 -0
  86. package/models/create-accounting-config-response-class.ts +31 -0
  87. package/models/create-financial-account-request-dto.ts +37 -1
  88. package/models/create-number-range-request-dto.ts +4 -4
  89. package/models/create-personal-account-request-dto.ts +10 -4
  90. package/models/financial-account-class.ts +20 -2
  91. package/models/get-accounting-categories-response-class.ts +31 -0
  92. package/models/get-accounting-config-response-class.ts +31 -0
  93. package/models/index.ts +23 -0
  94. package/models/inline-object2.ts +30 -0
  95. package/models/list-accounting-configs-response-class.ts +49 -0
  96. package/models/opening-balance-class.ts +74 -0
  97. package/models/opening-balances-class.ts +31 -0
  98. package/models/personal-account-class.ts +8 -2
  99. package/models/update-chart-of-accounts-response-class.ts +31 -0
  100. package/models/validate-accounting-config-request-dto.ts +31 -0
  101. package/models/validate-accounting-config-response-class.ts +36 -0
  102. package/package.json +2 -2
@@ -0,0 +1,1234 @@
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 { CreateAccountingConfigRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateAccountingConfigResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetAccountingCategoriesResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GetAccountingConfigResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { InlineObject2 } from '../models';
33
+ // @ts-ignore
34
+ import { ListAccountingConfigsResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateChartOfAccountsResponseClass } from '../models';
37
+ // @ts-ignore
38
+ import { ValidateAccountingConfigRequestDto } from '../models';
39
+ // @ts-ignore
40
+ import { ValidateAccountingConfigResponseClass } from '../models';
41
+ // URLSearchParams not necessarily used
42
+ // @ts-ignore
43
+ import { URL, URLSearchParams } from 'url';
44
+ const FormData = require('form-data');
45
+ /**
46
+ * AccountingConfigsApi - axios parameter creator
47
+ * @export
48
+ */
49
+ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: Configuration) {
50
+ return {
51
+ /**
52
+ * This will create accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
53
+ * @summary Create the accounting config
54
+ * @param {CreateAccountingConfigRequestDto} createAccountingConfigRequestDto
55
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ createAccountingConfig: async (createAccountingConfigRequestDto: CreateAccountingConfigRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
60
+ // verify required parameter 'createAccountingConfigRequestDto' is not null or undefined
61
+ assertParamExists('createAccountingConfig', 'createAccountingConfigRequestDto', createAccountingConfigRequestDto)
62
+ const localVarPath = `/accountingservice/v1/accountingconfigs`;
63
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
64
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
65
+ let baseOptions;
66
+ let baseAccessToken;
67
+ if (configuration) {
68
+ baseOptions = configuration.baseOptions;
69
+ baseAccessToken = configuration.accessToken;
70
+ }
71
+
72
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
73
+ const localVarHeaderParameter = {} as any;
74
+ const localVarQueryParameter = {} as any;
75
+
76
+ // authentication bearer required
77
+ // http bearer authentication required
78
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
79
+
80
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
81
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
82
+ }
83
+
84
+
85
+
86
+ localVarHeaderParameter['Content-Type'] = 'application/json';
87
+
88
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
89
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
91
+ localVarRequestOptions.data = serializeDataIfNeeded(createAccountingConfigRequestDto, localVarRequestOptions, configuration)
92
+
93
+ return {
94
+ url: toPathString(localVarUrlObj),
95
+ options: localVarRequestOptions,
96
+ };
97
+ },
98
+ /**
99
+ * This will create accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
100
+ * @summary Create the accounting config from file
101
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
102
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ createAccountingConfigFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
107
+ // verify required parameter 'file' is not null or undefined
108
+ assertParamExists('createAccountingConfigFromFile', 'file', file)
109
+ const localVarPath = `/accountingservice/v1/accountingconfigs/upload`;
110
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
111
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
112
+ let baseOptions;
113
+ let baseAccessToken;
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+
119
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
120
+ const localVarHeaderParameter = {} as any;
121
+ const localVarQueryParameter = {} as any;
122
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
123
+
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
127
+
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+
132
+
133
+ if (file !== undefined) {
134
+ localVarFormParams.append('file', file as any);
135
+ }
136
+
137
+
138
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
139
+
140
+
141
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
144
+ localVarRequestOptions.data = localVarFormParams;
145
+
146
+ return {
147
+ url: toPathString(localVarUrlObj),
148
+ options: localVarRequestOptions,
149
+ };
150
+ },
151
+ /**
152
+ * This will delete accounting config. **Required Permissions** \"accounting-management.financial-accounts.delete\"
153
+ * @summary Delete the accounting config
154
+ * @param {string} code Unique identifier for the object.
155
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ deleteAccountingConfig: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
160
+ // verify required parameter 'code' is not null or undefined
161
+ assertParamExists('deleteAccountingConfig', 'code', code)
162
+ const localVarPath = `/accountingservice/v1/accountingconfigs/{code}`
163
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
164
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
165
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
166
+ let baseOptions;
167
+ let baseAccessToken;
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ baseAccessToken = configuration.accessToken;
171
+ }
172
+
173
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
174
+ const localVarHeaderParameter = {} as any;
175
+ const localVarQueryParameter = {} as any;
176
+
177
+ // authentication bearer required
178
+ // http bearer authentication required
179
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
180
+
181
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ }
184
+
185
+
186
+
187
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
188
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
189
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
190
+
191
+ return {
192
+ url: toPathString(localVarUrlObj),
193
+ options: localVarRequestOptions,
194
+ };
195
+ },
196
+ /**
197
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
198
+ * @summary Retrieve the accounting categories
199
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ getAccountingCategories: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
204
+ const localVarPath = `/accountingservice/v1/accountingconfigs/categories`;
205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
207
+ let baseOptions;
208
+ let baseAccessToken;
209
+ if (configuration) {
210
+ baseOptions = configuration.baseOptions;
211
+ baseAccessToken = configuration.accessToken;
212
+ }
213
+
214
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
215
+ const localVarHeaderParameter = {} as any;
216
+ const localVarQueryParameter = {} as any;
217
+
218
+ // authentication bearer required
219
+ // http bearer authentication required
220
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
221
+
222
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
223
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
224
+ }
225
+
226
+
227
+
228
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
229
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
230
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
231
+
232
+ return {
233
+ url: toPathString(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ };
236
+ },
237
+ /**
238
+ * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
239
+ * @summary Retrieve the accounting config
240
+ * @param {string} code
241
+ * @param {string} expand
242
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ */
246
+ getAccountingConfig: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
247
+ // verify required parameter 'code' is not null or undefined
248
+ assertParamExists('getAccountingConfig', 'code', code)
249
+ // verify required parameter 'expand' is not null or undefined
250
+ assertParamExists('getAccountingConfig', 'expand', expand)
251
+ const localVarPath = `/accountingservice/v1/accountingconfigs/{code}`
252
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
253
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
254
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
255
+ let baseOptions;
256
+ let baseAccessToken;
257
+ if (configuration) {
258
+ baseOptions = configuration.baseOptions;
259
+ baseAccessToken = configuration.accessToken;
260
+ }
261
+
262
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
263
+ const localVarHeaderParameter = {} as any;
264
+ const localVarQueryParameter = {} as any;
265
+
266
+ // authentication bearer required
267
+ // http bearer authentication required
268
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
269
+
270
+ if (expand !== undefined) {
271
+ localVarQueryParameter['expand'] = expand;
272
+ }
273
+
274
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
275
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
276
+ }
277
+
278
+
279
+
280
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
281
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
282
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
283
+
284
+ return {
285
+ url: toPathString(localVarUrlObj),
286
+ options: localVarRequestOptions,
287
+ };
288
+ },
289
+ /**
290
+ * Retrieves a list of accountingconfigs. **Required Permissions** \"accounting-management.financial-accounts.view\"
291
+ * @summary List accounting configs
292
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
293
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
294
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
295
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
296
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
297
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
298
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
299
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
300
+ * @param {*} [options] Override http request option.
301
+ * @throws {RequiredError}
302
+ */
303
+ listAccountingConfigs: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
304
+ const localVarPath = `/accountingservice/v1/accountingconfigs`;
305
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
306
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
307
+ let baseOptions;
308
+ let baseAccessToken;
309
+ if (configuration) {
310
+ baseOptions = configuration.baseOptions;
311
+ baseAccessToken = configuration.accessToken;
312
+ }
313
+
314
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
315
+ const localVarHeaderParameter = {} as any;
316
+ const localVarQueryParameter = {} as any;
317
+
318
+ // authentication bearer required
319
+ // http bearer authentication required
320
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
321
+
322
+ if (pageSize !== undefined) {
323
+ localVarQueryParameter['pageSize'] = pageSize;
324
+ }
325
+
326
+ if (pageToken !== undefined) {
327
+ localVarQueryParameter['pageToken'] = pageToken;
328
+ }
329
+
330
+ if (filter !== undefined) {
331
+ localVarQueryParameter['filter'] = filter;
332
+ }
333
+
334
+ if (search !== undefined) {
335
+ localVarQueryParameter['search'] = search;
336
+ }
337
+
338
+ if (order !== undefined) {
339
+ localVarQueryParameter['order'] = order;
340
+ }
341
+
342
+ if (expand !== undefined) {
343
+ localVarQueryParameter['expand'] = expand;
344
+ }
345
+
346
+ if (filters !== undefined) {
347
+ localVarQueryParameter['filters'] = filters;
348
+ }
349
+
350
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
351
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
352
+ }
353
+
354
+
355
+
356
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
357
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
358
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
359
+
360
+ return {
361
+ url: toPathString(localVarUrlObj),
362
+ options: localVarRequestOptions,
363
+ };
364
+ },
365
+ /**
366
+ * This will update the chart of accounts. **Required Permissions** \"accounting-management.financial-accounts.update\"
367
+ * @summary Update the chart of accounts
368
+ * @param {string} code
369
+ * @param {InlineObject2} inlineObject2
370
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ updateChartOfAccounts: async (code: string, inlineObject2: InlineObject2, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
375
+ // verify required parameter 'code' is not null or undefined
376
+ assertParamExists('updateChartOfAccounts', 'code', code)
377
+ // verify required parameter 'inlineObject2' is not null or undefined
378
+ assertParamExists('updateChartOfAccounts', 'inlineObject2', inlineObject2)
379
+ const localVarPath = `/accountingservice/v1/accountingconfigs/{code}`
380
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
382
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
383
+ let baseOptions;
384
+ let baseAccessToken;
385
+ if (configuration) {
386
+ baseOptions = configuration.baseOptions;
387
+ baseAccessToken = configuration.accessToken;
388
+ }
389
+
390
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
391
+ const localVarHeaderParameter = {} as any;
392
+ const localVarQueryParameter = {} as any;
393
+
394
+ // authentication bearer required
395
+ // http bearer authentication required
396
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
397
+
398
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
399
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
400
+ }
401
+
402
+
403
+
404
+ localVarHeaderParameter['Content-Type'] = 'application/json';
405
+
406
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
407
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
408
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
409
+ localVarRequestOptions.data = serializeDataIfNeeded(inlineObject2, localVarRequestOptions, configuration)
410
+
411
+ return {
412
+ url: toPathString(localVarUrlObj),
413
+ options: localVarRequestOptions,
414
+ };
415
+ },
416
+ /**
417
+ * This will update the chart of accounts from a file. **Required Permissions** \"accounting-management.financial-accounts.update\"
418
+ * @summary Update the chart of accounts from file
419
+ * @param {string} code
420
+ * @param {any} file JSON or YAML file containing the chart of accounts config. Supported formats: .json, .yaml, .yml
421
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ */
425
+ updateChartOfAccountsFromFile: async (code: string, file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
426
+ // verify required parameter 'code' is not null or undefined
427
+ assertParamExists('updateChartOfAccountsFromFile', 'code', code)
428
+ // verify required parameter 'file' is not null or undefined
429
+ assertParamExists('updateChartOfAccountsFromFile', 'file', file)
430
+ const localVarPath = `/accountingservice/v1/accountingconfigs/{code}/upload`
431
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
432
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
433
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
434
+ let baseOptions;
435
+ let baseAccessToken;
436
+ if (configuration) {
437
+ baseOptions = configuration.baseOptions;
438
+ baseAccessToken = configuration.accessToken;
439
+ }
440
+
441
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
442
+ const localVarHeaderParameter = {} as any;
443
+ const localVarQueryParameter = {} as any;
444
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
445
+
446
+ // authentication bearer required
447
+ // http bearer authentication required
448
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
449
+
450
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
451
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
452
+ }
453
+
454
+
455
+ if (file !== undefined) {
456
+ localVarFormParams.append('file', file as any);
457
+ }
458
+
459
+
460
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
461
+
462
+
463
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
464
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
465
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
466
+ localVarRequestOptions.data = localVarFormParams;
467
+
468
+ return {
469
+ url: toPathString(localVarUrlObj),
470
+ options: localVarRequestOptions,
471
+ };
472
+ },
473
+ /**
474
+ * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
475
+ * @summary Create the validate accounting config
476
+ * @param {ValidateAccountingConfigRequestDto} validateAccountingConfigRequestDto
477
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ validateAccountingConfig: async (validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
482
+ // verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
483
+ assertParamExists('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto)
484
+ const localVarPath = `/accountingservice/v1/accountingconfigs/validate`;
485
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
486
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
487
+ let baseOptions;
488
+ let baseAccessToken;
489
+ if (configuration) {
490
+ baseOptions = configuration.baseOptions;
491
+ baseAccessToken = configuration.accessToken;
492
+ }
493
+
494
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
495
+ const localVarHeaderParameter = {} as any;
496
+ const localVarQueryParameter = {} as any;
497
+
498
+ // authentication bearer required
499
+ // http bearer authentication required
500
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
501
+
502
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
503
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
504
+ }
505
+
506
+
507
+
508
+ localVarHeaderParameter['Content-Type'] = 'application/json';
509
+
510
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
511
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
512
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
513
+ localVarRequestOptions.data = serializeDataIfNeeded(validateAccountingConfigRequestDto, localVarRequestOptions, configuration)
514
+
515
+ return {
516
+ url: toPathString(localVarUrlObj),
517
+ options: localVarRequestOptions,
518
+ };
519
+ },
520
+ /**
521
+ * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
522
+ * @summary Create the validate accounting config from file
523
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
524
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ validateAccountingConfigFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
529
+ // verify required parameter 'file' is not null or undefined
530
+ assertParamExists('validateAccountingConfigFromFile', 'file', file)
531
+ const localVarPath = `/accountingservice/v1/accountingconfigs/validate/upload`;
532
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
533
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
534
+ let baseOptions;
535
+ let baseAccessToken;
536
+ if (configuration) {
537
+ baseOptions = configuration.baseOptions;
538
+ baseAccessToken = configuration.accessToken;
539
+ }
540
+
541
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
542
+ const localVarHeaderParameter = {} as any;
543
+ const localVarQueryParameter = {} as any;
544
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
545
+
546
+ // authentication bearer required
547
+ // http bearer authentication required
548
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
549
+
550
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
551
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
552
+ }
553
+
554
+
555
+ if (file !== undefined) {
556
+ localVarFormParams.append('file', file as any);
557
+ }
558
+
559
+
560
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
561
+
562
+
563
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
565
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
566
+ localVarRequestOptions.data = localVarFormParams;
567
+
568
+ return {
569
+ url: toPathString(localVarUrlObj),
570
+ options: localVarRequestOptions,
571
+ };
572
+ },
573
+ }
574
+ };
575
+
576
+ /**
577
+ * AccountingConfigsApi - functional programming interface
578
+ * @export
579
+ */
580
+ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
581
+ const localVarAxiosParamCreator = AccountingConfigsApiAxiosParamCreator(configuration)
582
+ return {
583
+ /**
584
+ * This will create accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
585
+ * @summary Create the accounting config
586
+ * @param {CreateAccountingConfigRequestDto} createAccountingConfigRequestDto
587
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ */
591
+ async createAccountingConfig(createAccountingConfigRequestDto: CreateAccountingConfigRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountingConfigResponseClass>> {
592
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAccountingConfig(createAccountingConfigRequestDto, authorization, options);
593
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
594
+ },
595
+ /**
596
+ * This will create accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
597
+ * @summary Create the accounting config from file
598
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
599
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
600
+ * @param {*} [options] Override http request option.
601
+ * @throws {RequiredError}
602
+ */
603
+ async createAccountingConfigFromFile(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAccountingConfigResponseClass>> {
604
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAccountingConfigFromFile(file, authorization, options);
605
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
606
+ },
607
+ /**
608
+ * This will delete accounting config. **Required Permissions** \"accounting-management.financial-accounts.delete\"
609
+ * @summary Delete the accounting config
610
+ * @param {string} code Unique identifier for the object.
611
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ */
615
+ async deleteAccountingConfig(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
616
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccountingConfig(code, authorization, options);
617
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
618
+ },
619
+ /**
620
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
621
+ * @summary Retrieve the accounting categories
622
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ */
626
+ async getAccountingCategories(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountingCategoriesResponseClass>> {
627
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingCategories(authorization, options);
628
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
629
+ },
630
+ /**
631
+ * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
632
+ * @summary Retrieve the accounting config
633
+ * @param {string} code
634
+ * @param {string} expand
635
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
636
+ * @param {*} [options] Override http request option.
637
+ * @throws {RequiredError}
638
+ */
639
+ async getAccountingConfig(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountingConfigResponseClass>> {
640
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingConfig(code, expand, authorization, options);
641
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
642
+ },
643
+ /**
644
+ * Retrieves a list of accountingconfigs. **Required Permissions** \"accounting-management.financial-accounts.view\"
645
+ * @summary List accounting configs
646
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
647
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
648
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
649
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
650
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
651
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
652
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
653
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ */
657
+ async listAccountingConfigs(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAccountingConfigsResponseClass>> {
658
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountingConfigs(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
659
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
660
+ },
661
+ /**
662
+ * This will update the chart of accounts. **Required Permissions** \"accounting-management.financial-accounts.update\"
663
+ * @summary Update the chart of accounts
664
+ * @param {string} code
665
+ * @param {InlineObject2} inlineObject2
666
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ */
670
+ async updateChartOfAccounts(code: string, inlineObject2: InlineObject2, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateChartOfAccountsResponseClass>> {
671
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateChartOfAccounts(code, inlineObject2, authorization, options);
672
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
673
+ },
674
+ /**
675
+ * This will update the chart of accounts from a file. **Required Permissions** \"accounting-management.financial-accounts.update\"
676
+ * @summary Update the chart of accounts from file
677
+ * @param {string} code
678
+ * @param {any} file JSON or YAML file containing the chart of accounts config. Supported formats: .json, .yaml, .yml
679
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ */
683
+ async updateChartOfAccountsFromFile(code: string, file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateChartOfAccountsResponseClass>> {
684
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateChartOfAccountsFromFile(code, file, authorization, options);
685
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
686
+ },
687
+ /**
688
+ * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
689
+ * @summary Create the validate accounting config
690
+ * @param {ValidateAccountingConfigRequestDto} validateAccountingConfigRequestDto
691
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
692
+ * @param {*} [options] Override http request option.
693
+ * @throws {RequiredError}
694
+ */
695
+ async validateAccountingConfig(validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccountingConfigResponseClass>> {
696
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccountingConfig(validateAccountingConfigRequestDto, authorization, options);
697
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
698
+ },
699
+ /**
700
+ * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
701
+ * @summary Create the validate accounting config from file
702
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
703
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
704
+ * @param {*} [options] Override http request option.
705
+ * @throws {RequiredError}
706
+ */
707
+ async validateAccountingConfigFromFile(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccountingConfigResponseClass>> {
708
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccountingConfigFromFile(file, authorization, options);
709
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
710
+ },
711
+ }
712
+ };
713
+
714
+ /**
715
+ * AccountingConfigsApi - factory interface
716
+ * @export
717
+ */
718
+ export const AccountingConfigsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
719
+ const localVarFp = AccountingConfigsApiFp(configuration)
720
+ return {
721
+ /**
722
+ * This will create accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
723
+ * @summary Create the accounting config
724
+ * @param {CreateAccountingConfigRequestDto} createAccountingConfigRequestDto
725
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
726
+ * @param {*} [options] Override http request option.
727
+ * @throws {RequiredError}
728
+ */
729
+ createAccountingConfig(createAccountingConfigRequestDto: CreateAccountingConfigRequestDto, authorization?: string, options?: any): AxiosPromise<CreateAccountingConfigResponseClass> {
730
+ return localVarFp.createAccountingConfig(createAccountingConfigRequestDto, authorization, options).then((request) => request(axios, basePath));
731
+ },
732
+ /**
733
+ * This will create accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
734
+ * @summary Create the accounting config from file
735
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
736
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
737
+ * @param {*} [options] Override http request option.
738
+ * @throws {RequiredError}
739
+ */
740
+ createAccountingConfigFromFile(file: any, authorization?: string, options?: any): AxiosPromise<CreateAccountingConfigResponseClass> {
741
+ return localVarFp.createAccountingConfigFromFile(file, authorization, options).then((request) => request(axios, basePath));
742
+ },
743
+ /**
744
+ * This will delete accounting config. **Required Permissions** \"accounting-management.financial-accounts.delete\"
745
+ * @summary Delete the accounting config
746
+ * @param {string} code Unique identifier for the object.
747
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
748
+ * @param {*} [options] Override http request option.
749
+ * @throws {RequiredError}
750
+ */
751
+ deleteAccountingConfig(code: string, authorization?: string, options?: any): AxiosPromise<void> {
752
+ return localVarFp.deleteAccountingConfig(code, authorization, options).then((request) => request(axios, basePath));
753
+ },
754
+ /**
755
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
756
+ * @summary Retrieve the accounting categories
757
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ */
761
+ getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass> {
762
+ return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
763
+ },
764
+ /**
765
+ * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
766
+ * @summary Retrieve the accounting config
767
+ * @param {string} code
768
+ * @param {string} expand
769
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
770
+ * @param {*} [options] Override http request option.
771
+ * @throws {RequiredError}
772
+ */
773
+ getAccountingConfig(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetAccountingConfigResponseClass> {
774
+ return localVarFp.getAccountingConfig(code, expand, authorization, options).then((request) => request(axios, basePath));
775
+ },
776
+ /**
777
+ * Retrieves a list of accountingconfigs. **Required Permissions** \"accounting-management.financial-accounts.view\"
778
+ * @summary List accounting configs
779
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
780
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
781
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
782
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
783
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
784
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
785
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
786
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
787
+ * @param {*} [options] Override http request option.
788
+ * @throws {RequiredError}
789
+ */
790
+ listAccountingConfigs(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListAccountingConfigsResponseClass> {
791
+ return localVarFp.listAccountingConfigs(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
792
+ },
793
+ /**
794
+ * This will update the chart of accounts. **Required Permissions** \"accounting-management.financial-accounts.update\"
795
+ * @summary Update the chart of accounts
796
+ * @param {string} code
797
+ * @param {InlineObject2} inlineObject2
798
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ */
802
+ updateChartOfAccounts(code: string, inlineObject2: InlineObject2, authorization?: string, options?: any): AxiosPromise<UpdateChartOfAccountsResponseClass> {
803
+ return localVarFp.updateChartOfAccounts(code, inlineObject2, authorization, options).then((request) => request(axios, basePath));
804
+ },
805
+ /**
806
+ * This will update the chart of accounts from a file. **Required Permissions** \"accounting-management.financial-accounts.update\"
807
+ * @summary Update the chart of accounts from file
808
+ * @param {string} code
809
+ * @param {any} file JSON or YAML file containing the chart of accounts config. Supported formats: .json, .yaml, .yml
810
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
811
+ * @param {*} [options] Override http request option.
812
+ * @throws {RequiredError}
813
+ */
814
+ updateChartOfAccountsFromFile(code: string, file: any, authorization?: string, options?: any): AxiosPromise<UpdateChartOfAccountsResponseClass> {
815
+ return localVarFp.updateChartOfAccountsFromFile(code, file, authorization, options).then((request) => request(axios, basePath));
816
+ },
817
+ /**
818
+ * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
819
+ * @summary Create the validate accounting config
820
+ * @param {ValidateAccountingConfigRequestDto} validateAccountingConfigRequestDto
821
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
822
+ * @param {*} [options] Override http request option.
823
+ * @throws {RequiredError}
824
+ */
825
+ validateAccountingConfig(validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto, authorization?: string, options?: any): AxiosPromise<ValidateAccountingConfigResponseClass> {
826
+ return localVarFp.validateAccountingConfig(validateAccountingConfigRequestDto, authorization, options).then((request) => request(axios, basePath));
827
+ },
828
+ /**
829
+ * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
830
+ * @summary Create the validate accounting config from file
831
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
832
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
833
+ * @param {*} [options] Override http request option.
834
+ * @throws {RequiredError}
835
+ */
836
+ validateAccountingConfigFromFile(file: any, authorization?: string, options?: any): AxiosPromise<ValidateAccountingConfigResponseClass> {
837
+ return localVarFp.validateAccountingConfigFromFile(file, authorization, options).then((request) => request(axios, basePath));
838
+ },
839
+ };
840
+ };
841
+
842
+ /**
843
+ * Request parameters for createAccountingConfig operation in AccountingConfigsApi.
844
+ * @export
845
+ * @interface AccountingConfigsApiCreateAccountingConfigRequest
846
+ */
847
+ export interface AccountingConfigsApiCreateAccountingConfigRequest {
848
+ /**
849
+ *
850
+ * @type {CreateAccountingConfigRequestDto}
851
+ * @memberof AccountingConfigsApiCreateAccountingConfig
852
+ */
853
+ readonly createAccountingConfigRequestDto: CreateAccountingConfigRequestDto
854
+
855
+ /**
856
+ * Bearer Token: provided by the login endpoint under the name accessToken.
857
+ * @type {string}
858
+ * @memberof AccountingConfigsApiCreateAccountingConfig
859
+ */
860
+ readonly authorization?: string
861
+ }
862
+
863
+ /**
864
+ * Request parameters for createAccountingConfigFromFile operation in AccountingConfigsApi.
865
+ * @export
866
+ * @interface AccountingConfigsApiCreateAccountingConfigFromFileRequest
867
+ */
868
+ export interface AccountingConfigsApiCreateAccountingConfigFromFileRequest {
869
+ /**
870
+ * JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
871
+ * @type {any}
872
+ * @memberof AccountingConfigsApiCreateAccountingConfigFromFile
873
+ */
874
+ readonly file: any
875
+
876
+ /**
877
+ * Bearer Token: provided by the login endpoint under the name accessToken.
878
+ * @type {string}
879
+ * @memberof AccountingConfigsApiCreateAccountingConfigFromFile
880
+ */
881
+ readonly authorization?: string
882
+ }
883
+
884
+ /**
885
+ * Request parameters for deleteAccountingConfig operation in AccountingConfigsApi.
886
+ * @export
887
+ * @interface AccountingConfigsApiDeleteAccountingConfigRequest
888
+ */
889
+ export interface AccountingConfigsApiDeleteAccountingConfigRequest {
890
+ /**
891
+ * Unique identifier for the object.
892
+ * @type {string}
893
+ * @memberof AccountingConfigsApiDeleteAccountingConfig
894
+ */
895
+ readonly code: string
896
+
897
+ /**
898
+ * Bearer Token: provided by the login endpoint under the name accessToken.
899
+ * @type {string}
900
+ * @memberof AccountingConfigsApiDeleteAccountingConfig
901
+ */
902
+ readonly authorization?: string
903
+ }
904
+
905
+ /**
906
+ * Request parameters for getAccountingCategories operation in AccountingConfigsApi.
907
+ * @export
908
+ * @interface AccountingConfigsApiGetAccountingCategoriesRequest
909
+ */
910
+ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
911
+ /**
912
+ * Bearer Token: provided by the login endpoint under the name accessToken.
913
+ * @type {string}
914
+ * @memberof AccountingConfigsApiGetAccountingCategories
915
+ */
916
+ readonly authorization?: string
917
+ }
918
+
919
+ /**
920
+ * Request parameters for getAccountingConfig operation in AccountingConfigsApi.
921
+ * @export
922
+ * @interface AccountingConfigsApiGetAccountingConfigRequest
923
+ */
924
+ export interface AccountingConfigsApiGetAccountingConfigRequest {
925
+ /**
926
+ *
927
+ * @type {string}
928
+ * @memberof AccountingConfigsApiGetAccountingConfig
929
+ */
930
+ readonly code: string
931
+
932
+ /**
933
+ *
934
+ * @type {string}
935
+ * @memberof AccountingConfigsApiGetAccountingConfig
936
+ */
937
+ readonly expand: string
938
+
939
+ /**
940
+ * Bearer Token: provided by the login endpoint under the name accessToken.
941
+ * @type {string}
942
+ * @memberof AccountingConfigsApiGetAccountingConfig
943
+ */
944
+ readonly authorization?: string
945
+ }
946
+
947
+ /**
948
+ * Request parameters for listAccountingConfigs operation in AccountingConfigsApi.
949
+ * @export
950
+ * @interface AccountingConfigsApiListAccountingConfigsRequest
951
+ */
952
+ export interface AccountingConfigsApiListAccountingConfigsRequest {
953
+ /**
954
+ * Bearer Token: provided by the login endpoint under the name accessToken.
955
+ * @type {string}
956
+ * @memberof AccountingConfigsApiListAccountingConfigs
957
+ */
958
+ readonly authorization?: string
959
+
960
+ /**
961
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
962
+ * @type {number}
963
+ * @memberof AccountingConfigsApiListAccountingConfigs
964
+ */
965
+ readonly pageSize?: number
966
+
967
+ /**
968
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
969
+ * @type {string}
970
+ * @memberof AccountingConfigsApiListAccountingConfigs
971
+ */
972
+ readonly pageToken?: string
973
+
974
+ /**
975
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
976
+ * @type {string}
977
+ * @memberof AccountingConfigsApiListAccountingConfigs
978
+ */
979
+ readonly filter?: string
980
+
981
+ /**
982
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
983
+ * @type {string}
984
+ * @memberof AccountingConfigsApiListAccountingConfigs
985
+ */
986
+ readonly search?: string
987
+
988
+ /**
989
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
990
+ * @type {string}
991
+ * @memberof AccountingConfigsApiListAccountingConfigs
992
+ */
993
+ readonly order?: string
994
+
995
+ /**
996
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
997
+ * @type {string}
998
+ * @memberof AccountingConfigsApiListAccountingConfigs
999
+ */
1000
+ readonly expand?: string
1001
+
1002
+ /**
1003
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, createdAt&lt;/i&gt;
1004
+ * @type {string}
1005
+ * @memberof AccountingConfigsApiListAccountingConfigs
1006
+ */
1007
+ readonly filters?: string
1008
+ }
1009
+
1010
+ /**
1011
+ * Request parameters for updateChartOfAccounts operation in AccountingConfigsApi.
1012
+ * @export
1013
+ * @interface AccountingConfigsApiUpdateChartOfAccountsRequest
1014
+ */
1015
+ export interface AccountingConfigsApiUpdateChartOfAccountsRequest {
1016
+ /**
1017
+ *
1018
+ * @type {string}
1019
+ * @memberof AccountingConfigsApiUpdateChartOfAccounts
1020
+ */
1021
+ readonly code: string
1022
+
1023
+ /**
1024
+ *
1025
+ * @type {InlineObject2}
1026
+ * @memberof AccountingConfigsApiUpdateChartOfAccounts
1027
+ */
1028
+ readonly inlineObject2: InlineObject2
1029
+
1030
+ /**
1031
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1032
+ * @type {string}
1033
+ * @memberof AccountingConfigsApiUpdateChartOfAccounts
1034
+ */
1035
+ readonly authorization?: string
1036
+ }
1037
+
1038
+ /**
1039
+ * Request parameters for updateChartOfAccountsFromFile operation in AccountingConfigsApi.
1040
+ * @export
1041
+ * @interface AccountingConfigsApiUpdateChartOfAccountsFromFileRequest
1042
+ */
1043
+ export interface AccountingConfigsApiUpdateChartOfAccountsFromFileRequest {
1044
+ /**
1045
+ *
1046
+ * @type {string}
1047
+ * @memberof AccountingConfigsApiUpdateChartOfAccountsFromFile
1048
+ */
1049
+ readonly code: string
1050
+
1051
+ /**
1052
+ * JSON or YAML file containing the chart of accounts config. Supported formats: .json, .yaml, .yml
1053
+ * @type {any}
1054
+ * @memberof AccountingConfigsApiUpdateChartOfAccountsFromFile
1055
+ */
1056
+ readonly file: any
1057
+
1058
+ /**
1059
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1060
+ * @type {string}
1061
+ * @memberof AccountingConfigsApiUpdateChartOfAccountsFromFile
1062
+ */
1063
+ readonly authorization?: string
1064
+ }
1065
+
1066
+ /**
1067
+ * Request parameters for validateAccountingConfig operation in AccountingConfigsApi.
1068
+ * @export
1069
+ * @interface AccountingConfigsApiValidateAccountingConfigRequest
1070
+ */
1071
+ export interface AccountingConfigsApiValidateAccountingConfigRequest {
1072
+ /**
1073
+ *
1074
+ * @type {ValidateAccountingConfigRequestDto}
1075
+ * @memberof AccountingConfigsApiValidateAccountingConfig
1076
+ */
1077
+ readonly validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto
1078
+
1079
+ /**
1080
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1081
+ * @type {string}
1082
+ * @memberof AccountingConfigsApiValidateAccountingConfig
1083
+ */
1084
+ readonly authorization?: string
1085
+ }
1086
+
1087
+ /**
1088
+ * Request parameters for validateAccountingConfigFromFile operation in AccountingConfigsApi.
1089
+ * @export
1090
+ * @interface AccountingConfigsApiValidateAccountingConfigFromFileRequest
1091
+ */
1092
+ export interface AccountingConfigsApiValidateAccountingConfigFromFileRequest {
1093
+ /**
1094
+ * JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
1095
+ * @type {any}
1096
+ * @memberof AccountingConfigsApiValidateAccountingConfigFromFile
1097
+ */
1098
+ readonly file: any
1099
+
1100
+ /**
1101
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1102
+ * @type {string}
1103
+ * @memberof AccountingConfigsApiValidateAccountingConfigFromFile
1104
+ */
1105
+ readonly authorization?: string
1106
+ }
1107
+
1108
+ /**
1109
+ * AccountingConfigsApi - object-oriented interface
1110
+ * @export
1111
+ * @class AccountingConfigsApi
1112
+ * @extends {BaseAPI}
1113
+ */
1114
+ export class AccountingConfigsApi extends BaseAPI {
1115
+ /**
1116
+ * This will create accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
1117
+ * @summary Create the accounting config
1118
+ * @param {AccountingConfigsApiCreateAccountingConfigRequest} requestParameters Request parameters.
1119
+ * @param {*} [options] Override http request option.
1120
+ * @throws {RequiredError}
1121
+ * @memberof AccountingConfigsApi
1122
+ */
1123
+ public createAccountingConfig(requestParameters: AccountingConfigsApiCreateAccountingConfigRequest, options?: AxiosRequestConfig) {
1124
+ return AccountingConfigsApiFp(this.configuration).createAccountingConfig(requestParameters.createAccountingConfigRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1125
+ }
1126
+
1127
+ /**
1128
+ * This will create accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
1129
+ * @summary Create the accounting config from file
1130
+ * @param {AccountingConfigsApiCreateAccountingConfigFromFileRequest} requestParameters Request parameters.
1131
+ * @param {*} [options] Override http request option.
1132
+ * @throws {RequiredError}
1133
+ * @memberof AccountingConfigsApi
1134
+ */
1135
+ public createAccountingConfigFromFile(requestParameters: AccountingConfigsApiCreateAccountingConfigFromFileRequest, options?: AxiosRequestConfig) {
1136
+ return AccountingConfigsApiFp(this.configuration).createAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1137
+ }
1138
+
1139
+ /**
1140
+ * This will delete accounting config. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1141
+ * @summary Delete the accounting config
1142
+ * @param {AccountingConfigsApiDeleteAccountingConfigRequest} requestParameters Request parameters.
1143
+ * @param {*} [options] Override http request option.
1144
+ * @throws {RequiredError}
1145
+ * @memberof AccountingConfigsApi
1146
+ */
1147
+ public deleteAccountingConfig(requestParameters: AccountingConfigsApiDeleteAccountingConfigRequest, options?: AxiosRequestConfig) {
1148
+ return AccountingConfigsApiFp(this.configuration).deleteAccountingConfig(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1149
+ }
1150
+
1151
+ /**
1152
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
1153
+ * @summary Retrieve the accounting categories
1154
+ * @param {AccountingConfigsApiGetAccountingCategoriesRequest} requestParameters Request parameters.
1155
+ * @param {*} [options] Override http request option.
1156
+ * @throws {RequiredError}
1157
+ * @memberof AccountingConfigsApi
1158
+ */
1159
+ public getAccountingCategories(requestParameters: AccountingConfigsApiGetAccountingCategoriesRequest = {}, options?: AxiosRequestConfig) {
1160
+ return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1161
+ }
1162
+
1163
+ /**
1164
+ * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
1165
+ * @summary Retrieve the accounting config
1166
+ * @param {AccountingConfigsApiGetAccountingConfigRequest} requestParameters Request parameters.
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ * @memberof AccountingConfigsApi
1170
+ */
1171
+ public getAccountingConfig(requestParameters: AccountingConfigsApiGetAccountingConfigRequest, options?: AxiosRequestConfig) {
1172
+ return AccountingConfigsApiFp(this.configuration).getAccountingConfig(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1173
+ }
1174
+
1175
+ /**
1176
+ * Retrieves a list of accountingconfigs. **Required Permissions** \"accounting-management.financial-accounts.view\"
1177
+ * @summary List accounting configs
1178
+ * @param {AccountingConfigsApiListAccountingConfigsRequest} requestParameters Request parameters.
1179
+ * @param {*} [options] Override http request option.
1180
+ * @throws {RequiredError}
1181
+ * @memberof AccountingConfigsApi
1182
+ */
1183
+ public listAccountingConfigs(requestParameters: AccountingConfigsApiListAccountingConfigsRequest = {}, options?: AxiosRequestConfig) {
1184
+ return AccountingConfigsApiFp(this.configuration).listAccountingConfigs(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1185
+ }
1186
+
1187
+ /**
1188
+ * This will update the chart of accounts. **Required Permissions** \"accounting-management.financial-accounts.update\"
1189
+ * @summary Update the chart of accounts
1190
+ * @param {AccountingConfigsApiUpdateChartOfAccountsRequest} requestParameters Request parameters.
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ * @memberof AccountingConfigsApi
1194
+ */
1195
+ public updateChartOfAccounts(requestParameters: AccountingConfigsApiUpdateChartOfAccountsRequest, options?: AxiosRequestConfig) {
1196
+ return AccountingConfigsApiFp(this.configuration).updateChartOfAccounts(requestParameters.code, requestParameters.inlineObject2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1197
+ }
1198
+
1199
+ /**
1200
+ * This will update the chart of accounts from a file. **Required Permissions** \"accounting-management.financial-accounts.update\"
1201
+ * @summary Update the chart of accounts from file
1202
+ * @param {AccountingConfigsApiUpdateChartOfAccountsFromFileRequest} requestParameters Request parameters.
1203
+ * @param {*} [options] Override http request option.
1204
+ * @throws {RequiredError}
1205
+ * @memberof AccountingConfigsApi
1206
+ */
1207
+ public updateChartOfAccountsFromFile(requestParameters: AccountingConfigsApiUpdateChartOfAccountsFromFileRequest, options?: AxiosRequestConfig) {
1208
+ return AccountingConfigsApiFp(this.configuration).updateChartOfAccountsFromFile(requestParameters.code, requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1209
+ }
1210
+
1211
+ /**
1212
+ * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
1213
+ * @summary Create the validate accounting config
1214
+ * @param {AccountingConfigsApiValidateAccountingConfigRequest} requestParameters Request parameters.
1215
+ * @param {*} [options] Override http request option.
1216
+ * @throws {RequiredError}
1217
+ * @memberof AccountingConfigsApi
1218
+ */
1219
+ public validateAccountingConfig(requestParameters: AccountingConfigsApiValidateAccountingConfigRequest, options?: AxiosRequestConfig) {
1220
+ return AccountingConfigsApiFp(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1221
+ }
1222
+
1223
+ /**
1224
+ * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
1225
+ * @summary Create the validate accounting config from file
1226
+ * @param {AccountingConfigsApiValidateAccountingConfigFromFileRequest} requestParameters Request parameters.
1227
+ * @param {*} [options] Override http request option.
1228
+ * @throws {RequiredError}
1229
+ * @memberof AccountingConfigsApi
1230
+ */
1231
+ public validateAccountingConfigFromFile(requestParameters: AccountingConfigsApiValidateAccountingConfigFromFileRequest, options?: AxiosRequestConfig) {
1232
+ return AccountingConfigsApiFp(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1233
+ }
1234
+ }