@emilgroup/accounting-sdk-node 1.32.1-beta.2 → 1.32.1-beta.21

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