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

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