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

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