@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,1125 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.AccountingConfigsApi = exports.AccountingConfigsApiFactory = exports.AccountingConfigsApiFp = exports.AccountingConfigsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * AccountingConfigsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This will create accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
101
+ * @summary Create the accounting config
102
+ * @param {CreateAccountingConfigRequestDto} createAccountingConfigRequestDto
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ createAccountingConfig: function (createAccountingConfigRequestDto, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'createAccountingConfigRequestDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('createAccountingConfig', 'createAccountingConfigRequestDto', createAccountingConfigRequestDto);
116
+ localVarPath = "/accountingservice/v1/accountingconfigs";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAccountingConfigRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * This will create accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
150
+ * @summary Create the accounting config from file
151
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ createAccountingConfigFromFile: function (file, authorization, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ // verify required parameter 'file' is not null or undefined
164
+ (0, common_1.assertParamExists)('createAccountingConfigFromFile', 'file', file);
165
+ localVarPath = "/accountingservice/v1/accountingconfigs/upload";
166
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
167
+ if (configuration) {
168
+ baseOptions = configuration.baseOptions;
169
+ baseAccessToken = configuration.accessToken;
170
+ }
171
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
172
+ localVarHeaderParameter = {};
173
+ localVarQueryParameter = {};
174
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
178
+ case 1:
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ _a.sent();
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
+ }
185
+ if (file !== undefined) {
186
+ localVarFormParams.append('file', file);
187
+ }
188
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ localVarRequestOptions.data = localVarFormParams;
193
+ return [2 /*return*/, {
194
+ url: (0, common_1.toPathString)(localVarUrlObj),
195
+ options: localVarRequestOptions,
196
+ }];
197
+ }
198
+ });
199
+ });
200
+ },
201
+ /**
202
+ * This will delete accounting config. **Required Permissions** \"accounting-management.financial-accounts.delete\"
203
+ * @summary Delete the accounting config
204
+ * @param {string} code Unique identifier for the object.
205
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ deleteAccountingConfig: function (code, authorization, options) {
210
+ if (options === void 0) { options = {}; }
211
+ return __awaiter(_this, void 0, void 0, function () {
212
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
+ return __generator(this, function (_a) {
214
+ switch (_a.label) {
215
+ case 0:
216
+ // verify required parameter 'code' is not null or undefined
217
+ (0, common_1.assertParamExists)('deleteAccountingConfig', 'code', code);
218
+ localVarPath = "/accountingservice/v1/accountingconfigs/{code}"
219
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
220
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
221
+ if (configuration) {
222
+ baseOptions = configuration.baseOptions;
223
+ baseAccessToken = configuration.accessToken;
224
+ }
225
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
226
+ localVarHeaderParameter = {};
227
+ localVarQueryParameter = {};
228
+ // authentication bearer required
229
+ // http bearer authentication required
230
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
231
+ case 1:
232
+ // authentication bearer required
233
+ // http bearer authentication required
234
+ _a.sent();
235
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
236
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
+ }
238
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
239
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
240
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
241
+ return [2 /*return*/, {
242
+ url: (0, common_1.toPathString)(localVarUrlObj),
243
+ options: localVarRequestOptions,
244
+ }];
245
+ }
246
+ });
247
+ });
248
+ },
249
+ /**
250
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
251
+ * @summary Retrieve the accounting categories
252
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ */
256
+ getAccountingCategories: function (authorization, options) {
257
+ if (options === void 0) { options = {}; }
258
+ return __awaiter(_this, void 0, void 0, function () {
259
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
260
+ return __generator(this, function (_a) {
261
+ switch (_a.label) {
262
+ case 0:
263
+ localVarPath = "/accountingservice/v1/accountingconfigs/categories";
264
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
265
+ if (configuration) {
266
+ baseOptions = configuration.baseOptions;
267
+ baseAccessToken = configuration.accessToken;
268
+ }
269
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
270
+ localVarHeaderParameter = {};
271
+ localVarQueryParameter = {};
272
+ // authentication bearer required
273
+ // http bearer authentication required
274
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
275
+ case 1:
276
+ // authentication bearer required
277
+ // http bearer authentication required
278
+ _a.sent();
279
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
280
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
281
+ }
282
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
283
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
284
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
285
+ return [2 /*return*/, {
286
+ url: (0, common_1.toPathString)(localVarUrlObj),
287
+ options: localVarRequestOptions,
288
+ }];
289
+ }
290
+ });
291
+ });
292
+ },
293
+ /**
294
+ * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
295
+ * @summary Retrieve the accounting config
296
+ * @param {string} code
297
+ * @param {string} expand
298
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
299
+ * @param {*} [options] Override http request option.
300
+ * @throws {RequiredError}
301
+ */
302
+ getAccountingConfig: function (code, expand, authorization, options) {
303
+ if (options === void 0) { options = {}; }
304
+ return __awaiter(_this, void 0, void 0, function () {
305
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
306
+ return __generator(this, function (_a) {
307
+ switch (_a.label) {
308
+ case 0:
309
+ // verify required parameter 'code' is not null or undefined
310
+ (0, common_1.assertParamExists)('getAccountingConfig', 'code', code);
311
+ // verify required parameter 'expand' is not null or undefined
312
+ (0, common_1.assertParamExists)('getAccountingConfig', 'expand', expand);
313
+ localVarPath = "/accountingservice/v1/accountingconfigs/{code}"
314
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
315
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
316
+ if (configuration) {
317
+ baseOptions = configuration.baseOptions;
318
+ baseAccessToken = configuration.accessToken;
319
+ }
320
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
321
+ localVarHeaderParameter = {};
322
+ localVarQueryParameter = {};
323
+ // authentication bearer required
324
+ // http bearer authentication required
325
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
326
+ case 1:
327
+ // authentication bearer required
328
+ // http bearer authentication required
329
+ _a.sent();
330
+ if (expand !== undefined) {
331
+ localVarQueryParameter['expand'] = expand;
332
+ }
333
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
334
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
335
+ }
336
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
337
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
338
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
339
+ return [2 /*return*/, {
340
+ url: (0, common_1.toPathString)(localVarUrlObj),
341
+ options: localVarRequestOptions,
342
+ }];
343
+ }
344
+ });
345
+ });
346
+ },
347
+ /**
348
+ * Retrieves a list of accountingconfigs. **Required Permissions** \"accounting-management.financial-accounts.view\"
349
+ * @summary List accounting configs
350
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
351
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
352
+ * @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.
353
+ * @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;
354
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
355
+ * @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;
356
+ * @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;
357
+ * @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;
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ listAccountingConfigs: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
362
+ if (options === void 0) { options = {}; }
363
+ return __awaiter(_this, void 0, void 0, function () {
364
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
365
+ return __generator(this, function (_a) {
366
+ switch (_a.label) {
367
+ case 0:
368
+ localVarPath = "/accountingservice/v1/accountingconfigs";
369
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
370
+ if (configuration) {
371
+ baseOptions = configuration.baseOptions;
372
+ baseAccessToken = configuration.accessToken;
373
+ }
374
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
375
+ localVarHeaderParameter = {};
376
+ localVarQueryParameter = {};
377
+ // authentication bearer required
378
+ // http bearer authentication required
379
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
380
+ case 1:
381
+ // authentication bearer required
382
+ // http bearer authentication required
383
+ _a.sent();
384
+ if (pageSize !== undefined) {
385
+ localVarQueryParameter['pageSize'] = pageSize;
386
+ }
387
+ if (pageToken !== undefined) {
388
+ localVarQueryParameter['pageToken'] = pageToken;
389
+ }
390
+ if (filter !== undefined) {
391
+ localVarQueryParameter['filter'] = filter;
392
+ }
393
+ if (search !== undefined) {
394
+ localVarQueryParameter['search'] = search;
395
+ }
396
+ if (order !== undefined) {
397
+ localVarQueryParameter['order'] = order;
398
+ }
399
+ if (expand !== undefined) {
400
+ localVarQueryParameter['expand'] = expand;
401
+ }
402
+ if (filters !== undefined) {
403
+ localVarQueryParameter['filters'] = filters;
404
+ }
405
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
406
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
407
+ }
408
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
409
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
410
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
411
+ return [2 /*return*/, {
412
+ url: (0, common_1.toPathString)(localVarUrlObj),
413
+ options: localVarRequestOptions,
414
+ }];
415
+ }
416
+ });
417
+ });
418
+ },
419
+ /**
420
+ * This will update the chart of accounts. **Required Permissions** \"accounting-management.financial-accounts.update\"
421
+ * @summary Update the chart of accounts
422
+ * @param {string} code
423
+ * @param {InlineObject2} inlineObject2
424
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ updateChartOfAccounts: function (code, inlineObject2, authorization, options) {
429
+ if (options === void 0) { options = {}; }
430
+ return __awaiter(_this, void 0, void 0, function () {
431
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
432
+ return __generator(this, function (_a) {
433
+ switch (_a.label) {
434
+ case 0:
435
+ // verify required parameter 'code' is not null or undefined
436
+ (0, common_1.assertParamExists)('updateChartOfAccounts', 'code', code);
437
+ // verify required parameter 'inlineObject2' is not null or undefined
438
+ (0, common_1.assertParamExists)('updateChartOfAccounts', 'inlineObject2', inlineObject2);
439
+ localVarPath = "/accountingservice/v1/accountingconfigs/{code}"
440
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
441
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
442
+ if (configuration) {
443
+ baseOptions = configuration.baseOptions;
444
+ baseAccessToken = configuration.accessToken;
445
+ }
446
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
447
+ localVarHeaderParameter = {};
448
+ localVarQueryParameter = {};
449
+ // authentication bearer required
450
+ // http bearer authentication required
451
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
452
+ case 1:
453
+ // authentication bearer required
454
+ // http bearer authentication required
455
+ _a.sent();
456
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
457
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
458
+ }
459
+ localVarHeaderParameter['Content-Type'] = 'application/json';
460
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
461
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
462
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
463
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inlineObject2, localVarRequestOptions, configuration);
464
+ return [2 /*return*/, {
465
+ url: (0, common_1.toPathString)(localVarUrlObj),
466
+ options: localVarRequestOptions,
467
+ }];
468
+ }
469
+ });
470
+ });
471
+ },
472
+ /**
473
+ * This will update the chart of accounts from a file. **Required Permissions** \"accounting-management.financial-accounts.update\"
474
+ * @summary Update the chart of accounts from file
475
+ * @param {string} code
476
+ * @param {any} file JSON or YAML file containing the chart of accounts config. Supported formats: .json, .yaml, .yml
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
+ updateChartOfAccountsFromFile: function (code, file, authorization, options) {
482
+ if (options === void 0) { options = {}; }
483
+ return __awaiter(_this, void 0, void 0, function () {
484
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
485
+ return __generator(this, function (_a) {
486
+ switch (_a.label) {
487
+ case 0:
488
+ // verify required parameter 'code' is not null or undefined
489
+ (0, common_1.assertParamExists)('updateChartOfAccountsFromFile', 'code', code);
490
+ // verify required parameter 'file' is not null or undefined
491
+ (0, common_1.assertParamExists)('updateChartOfAccountsFromFile', 'file', file);
492
+ localVarPath = "/accountingservice/v1/accountingconfigs/{code}/upload"
493
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
494
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
495
+ if (configuration) {
496
+ baseOptions = configuration.baseOptions;
497
+ baseAccessToken = configuration.accessToken;
498
+ }
499
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
500
+ localVarHeaderParameter = {};
501
+ localVarQueryParameter = {};
502
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
503
+ // authentication bearer required
504
+ // http bearer authentication required
505
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
506
+ case 1:
507
+ // authentication bearer required
508
+ // http bearer authentication required
509
+ _a.sent();
510
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
511
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
512
+ }
513
+ if (file !== undefined) {
514
+ localVarFormParams.append('file', file);
515
+ }
516
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
517
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
518
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
519
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
520
+ localVarRequestOptions.data = localVarFormParams;
521
+ return [2 /*return*/, {
522
+ url: (0, common_1.toPathString)(localVarUrlObj),
523
+ options: localVarRequestOptions,
524
+ }];
525
+ }
526
+ });
527
+ });
528
+ },
529
+ /**
530
+ * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
531
+ * @summary Create the validate accounting config
532
+ * @param {ValidateAccountingConfigRequestDto} validateAccountingConfigRequestDto
533
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
538
+ if (options === void 0) { options = {}; }
539
+ return __awaiter(_this, void 0, void 0, function () {
540
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
541
+ return __generator(this, function (_a) {
542
+ switch (_a.label) {
543
+ case 0:
544
+ // verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
545
+ (0, common_1.assertParamExists)('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto);
546
+ localVarPath = "/accountingservice/v1/accountingconfigs/validate";
547
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
548
+ if (configuration) {
549
+ baseOptions = configuration.baseOptions;
550
+ baseAccessToken = configuration.accessToken;
551
+ }
552
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
553
+ localVarHeaderParameter = {};
554
+ localVarQueryParameter = {};
555
+ // authentication bearer required
556
+ // http bearer authentication required
557
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
558
+ case 1:
559
+ // authentication bearer required
560
+ // http bearer authentication required
561
+ _a.sent();
562
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
563
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
564
+ }
565
+ localVarHeaderParameter['Content-Type'] = 'application/json';
566
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
567
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
568
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
569
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(validateAccountingConfigRequestDto, localVarRequestOptions, configuration);
570
+ return [2 /*return*/, {
571
+ url: (0, common_1.toPathString)(localVarUrlObj),
572
+ options: localVarRequestOptions,
573
+ }];
574
+ }
575
+ });
576
+ });
577
+ },
578
+ /**
579
+ * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
580
+ * @summary Create the validate accounting config from file
581
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
582
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
583
+ * @param {*} [options] Override http request option.
584
+ * @throws {RequiredError}
585
+ */
586
+ validateAccountingConfigFromFile: function (file, authorization, options) {
587
+ if (options === void 0) { options = {}; }
588
+ return __awaiter(_this, void 0, void 0, function () {
589
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
590
+ return __generator(this, function (_a) {
591
+ switch (_a.label) {
592
+ case 0:
593
+ // verify required parameter 'file' is not null or undefined
594
+ (0, common_1.assertParamExists)('validateAccountingConfigFromFile', 'file', file);
595
+ localVarPath = "/accountingservice/v1/accountingconfigs/validate/upload";
596
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
597
+ if (configuration) {
598
+ baseOptions = configuration.baseOptions;
599
+ baseAccessToken = configuration.accessToken;
600
+ }
601
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
602
+ localVarHeaderParameter = {};
603
+ localVarQueryParameter = {};
604
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
605
+ // authentication bearer required
606
+ // http bearer authentication required
607
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
608
+ case 1:
609
+ // authentication bearer required
610
+ // http bearer authentication required
611
+ _a.sent();
612
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
613
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
614
+ }
615
+ if (file !== undefined) {
616
+ localVarFormParams.append('file', file);
617
+ }
618
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
619
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
620
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
621
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
622
+ localVarRequestOptions.data = localVarFormParams;
623
+ return [2 /*return*/, {
624
+ url: (0, common_1.toPathString)(localVarUrlObj),
625
+ options: localVarRequestOptions,
626
+ }];
627
+ }
628
+ });
629
+ });
630
+ },
631
+ };
632
+ };
633
+ exports.AccountingConfigsApiAxiosParamCreator = AccountingConfigsApiAxiosParamCreator;
634
+ /**
635
+ * AccountingConfigsApi - functional programming interface
636
+ * @export
637
+ */
638
+ var AccountingConfigsApiFp = function (configuration) {
639
+ var localVarAxiosParamCreator = (0, exports.AccountingConfigsApiAxiosParamCreator)(configuration);
640
+ return {
641
+ /**
642
+ * This will create accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
643
+ * @summary Create the accounting config
644
+ * @param {CreateAccountingConfigRequestDto} createAccountingConfigRequestDto
645
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
646
+ * @param {*} [options] Override http request option.
647
+ * @throws {RequiredError}
648
+ */
649
+ createAccountingConfig: function (createAccountingConfigRequestDto, authorization, options) {
650
+ return __awaiter(this, void 0, void 0, function () {
651
+ var localVarAxiosArgs;
652
+ return __generator(this, function (_a) {
653
+ switch (_a.label) {
654
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAccountingConfig(createAccountingConfigRequestDto, authorization, options)];
655
+ case 1:
656
+ localVarAxiosArgs = _a.sent();
657
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
658
+ }
659
+ });
660
+ });
661
+ },
662
+ /**
663
+ * This will create accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
664
+ * @summary Create the accounting config from file
665
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
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
+ createAccountingConfigFromFile: function (file, authorization, options) {
671
+ return __awaiter(this, void 0, void 0, function () {
672
+ var localVarAxiosArgs;
673
+ return __generator(this, function (_a) {
674
+ switch (_a.label) {
675
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAccountingConfigFromFile(file, authorization, options)];
676
+ case 1:
677
+ localVarAxiosArgs = _a.sent();
678
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
679
+ }
680
+ });
681
+ });
682
+ },
683
+ /**
684
+ * This will delete accounting config. **Required Permissions** \"accounting-management.financial-accounts.delete\"
685
+ * @summary Delete the accounting config
686
+ * @param {string} code Unique identifier for the object.
687
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
688
+ * @param {*} [options] Override http request option.
689
+ * @throws {RequiredError}
690
+ */
691
+ deleteAccountingConfig: function (code, authorization, options) {
692
+ return __awaiter(this, void 0, void 0, function () {
693
+ var localVarAxiosArgs;
694
+ return __generator(this, function (_a) {
695
+ switch (_a.label) {
696
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAccountingConfig(code, authorization, options)];
697
+ case 1:
698
+ localVarAxiosArgs = _a.sent();
699
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
700
+ }
701
+ });
702
+ });
703
+ },
704
+ /**
705
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
706
+ * @summary Retrieve the accounting categories
707
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ getAccountingCategories: function (authorization, options) {
712
+ return __awaiter(this, void 0, void 0, function () {
713
+ var localVarAxiosArgs;
714
+ return __generator(this, function (_a) {
715
+ switch (_a.label) {
716
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAccountingCategories(authorization, options)];
717
+ case 1:
718
+ localVarAxiosArgs = _a.sent();
719
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
720
+ }
721
+ });
722
+ });
723
+ },
724
+ /**
725
+ * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
726
+ * @summary Retrieve the accounting config
727
+ * @param {string} code
728
+ * @param {string} expand
729
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
730
+ * @param {*} [options] Override http request option.
731
+ * @throws {RequiredError}
732
+ */
733
+ getAccountingConfig: function (code, expand, authorization, options) {
734
+ return __awaiter(this, void 0, void 0, function () {
735
+ var localVarAxiosArgs;
736
+ return __generator(this, function (_a) {
737
+ switch (_a.label) {
738
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAccountingConfig(code, expand, authorization, options)];
739
+ case 1:
740
+ localVarAxiosArgs = _a.sent();
741
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
742
+ }
743
+ });
744
+ });
745
+ },
746
+ /**
747
+ * Retrieves a list of accountingconfigs. **Required Permissions** \"accounting-management.financial-accounts.view\"
748
+ * @summary List accounting configs
749
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
750
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
751
+ * @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.
752
+ * @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;
753
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
754
+ * @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;
755
+ * @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;
756
+ * @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;
757
+ * @param {*} [options] Override http request option.
758
+ * @throws {RequiredError}
759
+ */
760
+ listAccountingConfigs: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
761
+ return __awaiter(this, void 0, void 0, function () {
762
+ var localVarAxiosArgs;
763
+ return __generator(this, function (_a) {
764
+ switch (_a.label) {
765
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAccountingConfigs(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
766
+ case 1:
767
+ localVarAxiosArgs = _a.sent();
768
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
769
+ }
770
+ });
771
+ });
772
+ },
773
+ /**
774
+ * This will update the chart of accounts. **Required Permissions** \"accounting-management.financial-accounts.update\"
775
+ * @summary Update the chart of accounts
776
+ * @param {string} code
777
+ * @param {InlineObject2} inlineObject2
778
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ */
782
+ updateChartOfAccounts: function (code, inlineObject2, authorization, options) {
783
+ return __awaiter(this, void 0, void 0, function () {
784
+ var localVarAxiosArgs;
785
+ return __generator(this, function (_a) {
786
+ switch (_a.label) {
787
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateChartOfAccounts(code, inlineObject2, authorization, options)];
788
+ case 1:
789
+ localVarAxiosArgs = _a.sent();
790
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
791
+ }
792
+ });
793
+ });
794
+ },
795
+ /**
796
+ * This will update the chart of accounts from a file. **Required Permissions** \"accounting-management.financial-accounts.update\"
797
+ * @summary Update the chart of accounts from file
798
+ * @param {string} code
799
+ * @param {any} file JSON or YAML file containing the chart of accounts config. Supported formats: .json, .yaml, .yml
800
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
801
+ * @param {*} [options] Override http request option.
802
+ * @throws {RequiredError}
803
+ */
804
+ updateChartOfAccountsFromFile: function (code, file, authorization, options) {
805
+ return __awaiter(this, void 0, void 0, function () {
806
+ var localVarAxiosArgs;
807
+ return __generator(this, function (_a) {
808
+ switch (_a.label) {
809
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateChartOfAccountsFromFile(code, file, authorization, options)];
810
+ case 1:
811
+ localVarAxiosArgs = _a.sent();
812
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
813
+ }
814
+ });
815
+ });
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: function (validateAccountingConfigRequestDto, authorization, options) {
826
+ return __awaiter(this, void 0, void 0, function () {
827
+ var localVarAxiosArgs;
828
+ return __generator(this, function (_a) {
829
+ switch (_a.label) {
830
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAccountingConfig(validateAccountingConfigRequestDto, authorization, options)];
831
+ case 1:
832
+ localVarAxiosArgs = _a.sent();
833
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
834
+ }
835
+ });
836
+ });
837
+ },
838
+ /**
839
+ * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
840
+ * @summary Create the validate accounting config from file
841
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
842
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
843
+ * @param {*} [options] Override http request option.
844
+ * @throws {RequiredError}
845
+ */
846
+ validateAccountingConfigFromFile: function (file, authorization, options) {
847
+ return __awaiter(this, void 0, void 0, function () {
848
+ var localVarAxiosArgs;
849
+ return __generator(this, function (_a) {
850
+ switch (_a.label) {
851
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.validateAccountingConfigFromFile(file, authorization, options)];
852
+ case 1:
853
+ localVarAxiosArgs = _a.sent();
854
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
855
+ }
856
+ });
857
+ });
858
+ },
859
+ };
860
+ };
861
+ exports.AccountingConfigsApiFp = AccountingConfigsApiFp;
862
+ /**
863
+ * AccountingConfigsApi - factory interface
864
+ * @export
865
+ */
866
+ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
867
+ var localVarFp = (0, exports.AccountingConfigsApiFp)(configuration);
868
+ return {
869
+ /**
870
+ * This will create accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
871
+ * @summary Create the accounting config
872
+ * @param {CreateAccountingConfigRequestDto} createAccountingConfigRequestDto
873
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
874
+ * @param {*} [options] Override http request option.
875
+ * @throws {RequiredError}
876
+ */
877
+ createAccountingConfig: function (createAccountingConfigRequestDto, authorization, options) {
878
+ return localVarFp.createAccountingConfig(createAccountingConfigRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
879
+ },
880
+ /**
881
+ * This will create accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
882
+ * @summary Create the accounting config from file
883
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
884
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
885
+ * @param {*} [options] Override http request option.
886
+ * @throws {RequiredError}
887
+ */
888
+ createAccountingConfigFromFile: function (file, authorization, options) {
889
+ return localVarFp.createAccountingConfigFromFile(file, authorization, options).then(function (request) { return request(axios, basePath); });
890
+ },
891
+ /**
892
+ * This will delete accounting config. **Required Permissions** \"accounting-management.financial-accounts.delete\"
893
+ * @summary Delete the accounting config
894
+ * @param {string} code Unique identifier for the object.
895
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
896
+ * @param {*} [options] Override http request option.
897
+ * @throws {RequiredError}
898
+ */
899
+ deleteAccountingConfig: function (code, authorization, options) {
900
+ return localVarFp.deleteAccountingConfig(code, authorization, options).then(function (request) { return request(axios, basePath); });
901
+ },
902
+ /**
903
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
904
+ * @summary Retrieve the accounting categories
905
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
906
+ * @param {*} [options] Override http request option.
907
+ * @throws {RequiredError}
908
+ */
909
+ getAccountingCategories: function (authorization, options) {
910
+ return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
911
+ },
912
+ /**
913
+ * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
914
+ * @summary Retrieve the accounting config
915
+ * @param {string} code
916
+ * @param {string} expand
917
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
918
+ * @param {*} [options] Override http request option.
919
+ * @throws {RequiredError}
920
+ */
921
+ getAccountingConfig: function (code, expand, authorization, options) {
922
+ return localVarFp.getAccountingConfig(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
923
+ },
924
+ /**
925
+ * Retrieves a list of accountingconfigs. **Required Permissions** \"accounting-management.financial-accounts.view\"
926
+ * @summary List accounting configs
927
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
928
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
929
+ * @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.
930
+ * @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;
931
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
932
+ * @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;
933
+ * @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;
934
+ * @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;
935
+ * @param {*} [options] Override http request option.
936
+ * @throws {RequiredError}
937
+ */
938
+ listAccountingConfigs: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
939
+ return localVarFp.listAccountingConfigs(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
940
+ },
941
+ /**
942
+ * This will update the chart of accounts. **Required Permissions** \"accounting-management.financial-accounts.update\"
943
+ * @summary Update the chart of accounts
944
+ * @param {string} code
945
+ * @param {InlineObject2} inlineObject2
946
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
947
+ * @param {*} [options] Override http request option.
948
+ * @throws {RequiredError}
949
+ */
950
+ updateChartOfAccounts: function (code, inlineObject2, authorization, options) {
951
+ return localVarFp.updateChartOfAccounts(code, inlineObject2, authorization, options).then(function (request) { return request(axios, basePath); });
952
+ },
953
+ /**
954
+ * This will update the chart of accounts from a file. **Required Permissions** \"accounting-management.financial-accounts.update\"
955
+ * @summary Update the chart of accounts from file
956
+ * @param {string} code
957
+ * @param {any} file JSON or YAML file containing the chart of accounts config. Supported formats: .json, .yaml, .yml
958
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
959
+ * @param {*} [options] Override http request option.
960
+ * @throws {RequiredError}
961
+ */
962
+ updateChartOfAccountsFromFile: function (code, file, authorization, options) {
963
+ return localVarFp.updateChartOfAccountsFromFile(code, file, authorization, options).then(function (request) { return request(axios, basePath); });
964
+ },
965
+ /**
966
+ * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
967
+ * @summary Create the validate accounting config
968
+ * @param {ValidateAccountingConfigRequestDto} validateAccountingConfigRequestDto
969
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
970
+ * @param {*} [options] Override http request option.
971
+ * @throws {RequiredError}
972
+ */
973
+ validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
974
+ return localVarFp.validateAccountingConfig(validateAccountingConfigRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
975
+ },
976
+ /**
977
+ * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
978
+ * @summary Create the validate accounting config from file
979
+ * @param {any} file JSON or YAML file containing the config. Supported formats: .json, .yaml, .yml
980
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
981
+ * @param {*} [options] Override http request option.
982
+ * @throws {RequiredError}
983
+ */
984
+ validateAccountingConfigFromFile: function (file, authorization, options) {
985
+ return localVarFp.validateAccountingConfigFromFile(file, authorization, options).then(function (request) { return request(axios, basePath); });
986
+ },
987
+ };
988
+ };
989
+ exports.AccountingConfigsApiFactory = AccountingConfigsApiFactory;
990
+ /**
991
+ * AccountingConfigsApi - object-oriented interface
992
+ * @export
993
+ * @class AccountingConfigsApi
994
+ * @extends {BaseAPI}
995
+ */
996
+ var AccountingConfigsApi = /** @class */ (function (_super) {
997
+ __extends(AccountingConfigsApi, _super);
998
+ function AccountingConfigsApi() {
999
+ return _super !== null && _super.apply(this, arguments) || this;
1000
+ }
1001
+ /**
1002
+ * This will create accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
1003
+ * @summary Create the accounting config
1004
+ * @param {AccountingConfigsApiCreateAccountingConfigRequest} requestParameters Request parameters.
1005
+ * @param {*} [options] Override http request option.
1006
+ * @throws {RequiredError}
1007
+ * @memberof AccountingConfigsApi
1008
+ */
1009
+ AccountingConfigsApi.prototype.createAccountingConfig = function (requestParameters, options) {
1010
+ var _this = this;
1011
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).createAccountingConfig(requestParameters.createAccountingConfigRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1012
+ };
1013
+ /**
1014
+ * This will create accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
1015
+ * @summary Create the accounting config from file
1016
+ * @param {AccountingConfigsApiCreateAccountingConfigFromFileRequest} requestParameters Request parameters.
1017
+ * @param {*} [options] Override http request option.
1018
+ * @throws {RequiredError}
1019
+ * @memberof AccountingConfigsApi
1020
+ */
1021
+ AccountingConfigsApi.prototype.createAccountingConfigFromFile = function (requestParameters, options) {
1022
+ var _this = this;
1023
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).createAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1024
+ };
1025
+ /**
1026
+ * This will delete accounting config. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1027
+ * @summary Delete the accounting config
1028
+ * @param {AccountingConfigsApiDeleteAccountingConfigRequest} requestParameters Request parameters.
1029
+ * @param {*} [options] Override http request option.
1030
+ * @throws {RequiredError}
1031
+ * @memberof AccountingConfigsApi
1032
+ */
1033
+ AccountingConfigsApi.prototype.deleteAccountingConfig = function (requestParameters, options) {
1034
+ var _this = this;
1035
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).deleteAccountingConfig(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1036
+ };
1037
+ /**
1038
+ * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
1039
+ * @summary Retrieve the accounting categories
1040
+ * @param {AccountingConfigsApiGetAccountingCategoriesRequest} requestParameters Request parameters.
1041
+ * @param {*} [options] Override http request option.
1042
+ * @throws {RequiredError}
1043
+ * @memberof AccountingConfigsApi
1044
+ */
1045
+ AccountingConfigsApi.prototype.getAccountingCategories = function (requestParameters, options) {
1046
+ var _this = this;
1047
+ if (requestParameters === void 0) { requestParameters = {}; }
1048
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1049
+ };
1050
+ /**
1051
+ * This will get accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
1052
+ * @summary Retrieve the accounting config
1053
+ * @param {AccountingConfigsApiGetAccountingConfigRequest} requestParameters Request parameters.
1054
+ * @param {*} [options] Override http request option.
1055
+ * @throws {RequiredError}
1056
+ * @memberof AccountingConfigsApi
1057
+ */
1058
+ AccountingConfigsApi.prototype.getAccountingConfig = function (requestParameters, options) {
1059
+ var _this = this;
1060
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingConfig(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1061
+ };
1062
+ /**
1063
+ * Retrieves a list of accountingconfigs. **Required Permissions** \"accounting-management.financial-accounts.view\"
1064
+ * @summary List accounting configs
1065
+ * @param {AccountingConfigsApiListAccountingConfigsRequest} requestParameters Request parameters.
1066
+ * @param {*} [options] Override http request option.
1067
+ * @throws {RequiredError}
1068
+ * @memberof AccountingConfigsApi
1069
+ */
1070
+ AccountingConfigsApi.prototype.listAccountingConfigs = function (requestParameters, options) {
1071
+ var _this = this;
1072
+ if (requestParameters === void 0) { requestParameters = {}; }
1073
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).listAccountingConfigs(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1074
+ };
1075
+ /**
1076
+ * This will update the chart of accounts. **Required Permissions** \"accounting-management.financial-accounts.update\"
1077
+ * @summary Update the chart of accounts
1078
+ * @param {AccountingConfigsApiUpdateChartOfAccountsRequest} requestParameters Request parameters.
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ * @memberof AccountingConfigsApi
1082
+ */
1083
+ AccountingConfigsApi.prototype.updateChartOfAccounts = function (requestParameters, options) {
1084
+ var _this = this;
1085
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).updateChartOfAccounts(requestParameters.code, requestParameters.inlineObject2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1086
+ };
1087
+ /**
1088
+ * This will update the chart of accounts from a file. **Required Permissions** \"accounting-management.financial-accounts.update\"
1089
+ * @summary Update the chart of accounts from file
1090
+ * @param {AccountingConfigsApiUpdateChartOfAccountsFromFileRequest} requestParameters Request parameters.
1091
+ * @param {*} [options] Override http request option.
1092
+ * @throws {RequiredError}
1093
+ * @memberof AccountingConfigsApi
1094
+ */
1095
+ AccountingConfigsApi.prototype.updateChartOfAccountsFromFile = function (requestParameters, options) {
1096
+ var _this = this;
1097
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).updateChartOfAccountsFromFile(requestParameters.code, requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1098
+ };
1099
+ /**
1100
+ * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
1101
+ * @summary Create the validate accounting config
1102
+ * @param {AccountingConfigsApiValidateAccountingConfigRequest} requestParameters Request parameters.
1103
+ * @param {*} [options] Override http request option.
1104
+ * @throws {RequiredError}
1105
+ * @memberof AccountingConfigsApi
1106
+ */
1107
+ AccountingConfigsApi.prototype.validateAccountingConfig = function (requestParameters, options) {
1108
+ var _this = this;
1109
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1110
+ };
1111
+ /**
1112
+ * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
1113
+ * @summary Create the validate accounting config from file
1114
+ * @param {AccountingConfigsApiValidateAccountingConfigFromFileRequest} requestParameters Request parameters.
1115
+ * @param {*} [options] Override http request option.
1116
+ * @throws {RequiredError}
1117
+ * @memberof AccountingConfigsApi
1118
+ */
1119
+ AccountingConfigsApi.prototype.validateAccountingConfigFromFile = function (requestParameters, options) {
1120
+ var _this = this;
1121
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1122
+ };
1123
+ return AccountingConfigsApi;
1124
+ }(base_1.BaseAPI));
1125
+ exports.AccountingConfigsApi = AccountingConfigsApi;