@emilgroup/accounting-sdk 1.34.1-beta.7 → 1.34.1-beta.71

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 (168) hide show
  1. package/.openapi-generator/FILES +35 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +120 -14
  4. package/api/booking-entries-api.ts +234 -10
  5. package/api/commission-account-mappings-api.ts +1207 -0
  6. package/api/financial-accounts-api.ts +150 -20
  7. package/api/financial-transactions-api.ts +8 -4
  8. package/api/number-ranges-api.ts +16 -8
  9. package/api/personal-accounts-api.ts +16 -8
  10. package/api/product-account-mappings-api.ts +1715 -0
  11. package/api.ts +4 -0
  12. package/base.ts +174 -41
  13. package/common.ts +3 -2
  14. package/configuration.ts +20 -0
  15. package/dist/api/accounting-configs-api.d.ts +54 -7
  16. package/dist/api/accounting-configs-api.js +139 -28
  17. package/dist/api/booking-entries-api.d.ts +121 -7
  18. package/dist/api/booking-entries-api.js +211 -14
  19. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  20. package/dist/api/commission-account-mappings-api.js +1022 -0
  21. package/dist/api/financial-accounts-api.d.ts +82 -16
  22. package/dist/api/financial-accounts-api.js +134 -24
  23. package/dist/api/financial-transactions-api.d.ts +2 -2
  24. package/dist/api/financial-transactions-api.js +8 -6
  25. package/dist/api/health-api.d.ts +1 -1
  26. package/dist/api/number-ranges-api.d.ts +4 -4
  27. package/dist/api/number-ranges-api.js +22 -14
  28. package/dist/api/personal-accounts-api.d.ts +4 -4
  29. package/dist/api/personal-accounts-api.js +22 -14
  30. package/dist/api/product-account-mappings-api.d.ts +972 -0
  31. package/dist/api/product-account-mappings-api.js +1447 -0
  32. package/dist/api.d.ts +2 -0
  33. package/dist/api.js +2 -0
  34. package/dist/base.d.ts +24 -0
  35. package/dist/base.js +178 -59
  36. package/dist/common.d.ts +1 -1
  37. package/dist/common.js +1 -0
  38. package/dist/configuration.d.ts +17 -0
  39. package/dist/configuration.js +2 -0
  40. package/dist/models/account-mapping-class.d.ts +2 -0
  41. package/dist/models/account-mapping-class.js +3 -1
  42. package/dist/models/accounting-config-class.d.ts +11 -0
  43. package/dist/models/accounting-config-class.js +5 -0
  44. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
  45. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  46. package/dist/models/booking-entry-class.d.ts +21 -0
  47. package/dist/models/booking-entry-class.js +9 -1
  48. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  49. package/dist/models/commission-account-mapping-class.js +15 -0
  50. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  51. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  52. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  53. package/dist/models/commission-agreement-partner-class.js +15 -0
  54. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  55. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  56. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  57. package/dist/models/commission-type-account-mapping-class.js +15 -0
  58. package/dist/models/create-booking-entry-request-dto.d.ts +21 -0
  59. package/dist/models/create-booking-entry-request-dto.js +9 -0
  60. package/dist/models/create-financial-account-request-dto.d.ts +8 -0
  61. package/dist/models/create-financial-account-request-dto.js +3 -1
  62. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  63. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  64. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  65. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  66. package/dist/models/financial-account-class.d.ts +24 -1
  67. package/dist/models/financial-account-class.js +5 -1
  68. package/dist/models/financial-transaction-class.d.ts +6 -0
  69. package/dist/models/financial-transaction-data-dto.d.ts +7 -0
  70. package/dist/models/financial-transaction-data-dto.js +1 -0
  71. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  72. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  73. package/dist/models/index.d.ts +33 -0
  74. package/dist/models/index.js +33 -0
  75. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  76. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  77. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  78. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  79. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  80. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  81. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  82. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  83. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  84. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  85. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  86. package/dist/models/opening-balance-item-dto.js +20 -0
  87. package/dist/models/post-financial-event-request-dto.d.ts +45 -0
  88. package/dist/models/post-financial-event-request-dto.js +24 -0
  89. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  90. package/dist/models/post-financial-event-response-class.js +15 -0
  91. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  92. package/dist/models/premium-item-account-mapping-class.js +15 -0
  93. package/dist/models/product-account-mapping-class.d.ts +61 -0
  94. package/dist/models/product-account-mapping-class.js +15 -0
  95. package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
  96. package/dist/models/product-account-mapping-detail-class.js +15 -0
  97. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  98. package/dist/models/product-risk-carrier-class.js +15 -0
  99. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  100. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  101. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  102. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  103. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  104. package/dist/models/product-with-account-mappings-class.js +15 -0
  105. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  106. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  107. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  108. package/dist/models/put-product-category-account-body-dto.js +15 -0
  109. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  110. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  111. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  112. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  113. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  114. package/dist/models/resolved-account-mapping-class.js +15 -0
  115. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  116. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  117. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  118. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  119. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  120. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  121. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  122. package/dist/models/update-financial-account-body-dto.js +15 -0
  123. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  124. package/dist/models/update-financial-account-response-class.js +15 -0
  125. package/models/account-mapping-class.ts +3 -1
  126. package/models/accounting-config-class.ts +14 -0
  127. package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
  128. package/models/booking-entry-class.ts +22 -0
  129. package/models/commission-account-mapping-class.ts +55 -0
  130. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  131. package/models/commission-agreement-partner-class.ts +36 -0
  132. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  133. package/models/commission-type-account-mapping-class.ts +37 -0
  134. package/models/create-booking-entry-request-dto.ts +24 -0
  135. package/models/create-financial-account-request-dto.ts +9 -1
  136. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  137. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  138. package/models/financial-account-class.ts +25 -1
  139. package/models/financial-transaction-class.ts +6 -0
  140. package/models/financial-transaction-data-dto.ts +7 -0
  141. package/models/get-activation-snapshot-response-class.ts +31 -0
  142. package/models/index.ts +33 -0
  143. package/models/list-commission-account-mappings-response-class.ts +49 -0
  144. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  145. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  146. package/models/list-product-account-mappings-response-class.ts +49 -0
  147. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  148. package/models/opening-balance-item-dto.ts +50 -0
  149. package/models/post-financial-event-request-dto.ts +54 -0
  150. package/models/post-financial-event-response-class.ts +31 -0
  151. package/models/premium-item-account-mapping-class.ts +43 -0
  152. package/models/product-account-mapping-class.ts +67 -0
  153. package/models/product-account-mapping-detail-class.ts +62 -0
  154. package/models/product-risk-carrier-class.ts +48 -0
  155. package/models/product-version-account-mapping-detail-class.ts +56 -0
  156. package/models/product-version-with-account-mappings-class.ts +48 -0
  157. package/models/product-with-account-mappings-class.ts +55 -0
  158. package/models/put-premium-item-account-body-dto.ts +30 -0
  159. package/models/put-product-category-account-body-dto.ts +30 -0
  160. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  161. package/models/put-product-version-category-account-body-dto.ts +30 -0
  162. package/models/resolved-account-mapping-class.ts +37 -0
  163. package/models/resolved-commission-account-mapping-class.ts +46 -0
  164. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  165. package/models/update-commission-type-account-body-dto.ts +30 -0
  166. package/models/update-financial-account-body-dto.ts +54 -0
  167. package/models/update-financial-account-response-class.ts +31 -0
  168. package/package.json +2 -2
@@ -0,0 +1,1447 @@
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
+ /**
89
+ * ProductAccountMappingsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * 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\"
97
+ * @summary Delete the Premium Item Account
98
+ * @param {string} productCode
99
+ * @param {string} productVersionCode
100
+ * @param {string} premiumFormulaCode
101
+ * @param {string} category
102
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ deletePremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, authorization, options) {
107
+ if (options === void 0) { options = {}; }
108
+ return __awaiter(_this, void 0, void 0, function () {
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
112
+ case 0:
113
+ // verify required parameter 'productCode' is not null or undefined
114
+ (0, common_1.assertParamExists)('deletePremiumItemAccount', 'productCode', productCode);
115
+ // verify required parameter 'productVersionCode' is not null or undefined
116
+ (0, common_1.assertParamExists)('deletePremiumItemAccount', 'productVersionCode', productVersionCode);
117
+ // verify required parameter 'premiumFormulaCode' is not null or undefined
118
+ (0, common_1.assertParamExists)('deletePremiumItemAccount', 'premiumFormulaCode', premiumFormulaCode);
119
+ // verify required parameter 'category' is not null or undefined
120
+ (0, common_1.assertParamExists)('deletePremiumItemAccount', 'category', category);
121
+ localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/category/{category}"
122
+ .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
123
+ .replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)))
124
+ .replace("{".concat("premiumFormulaCode", "}"), encodeURIComponent(String(premiumFormulaCode)))
125
+ .replace("{".concat("category", "}"), encodeURIComponent(String(category)));
126
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
127
+ if (configuration) {
128
+ baseOptions = configuration.baseOptions;
129
+ baseAccessToken = configuration.accessToken;
130
+ }
131
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
132
+ localVarHeaderParameter = {};
133
+ localVarQueryParameter = {};
134
+ // authentication bearer required
135
+ // http bearer authentication required
136
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
137
+ // Only Authorization falls back to the configured token; an empty value is never sent.
138
+ ];
139
+ case 1:
140
+ // authentication bearer required
141
+ // http bearer authentication required
142
+ _a.sent();
143
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
144
+ if (authorizationValue) {
145
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
146
+ }
147
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
148
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
149
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
150
+ return [2 /*return*/, {
151
+ url: (0, common_1.toPathString)(localVarUrlObj),
152
+ options: localVarRequestOptions,
153
+ }];
154
+ }
155
+ });
156
+ });
157
+ },
158
+ /**
159
+ * 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\"
160
+ * @summary Delete the Product Category Account
161
+ * @param {string} productCode
162
+ * @param {string} category
163
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ deleteProductCategoryAccount: function (productCode, category, authorization, options) {
168
+ if (options === void 0) { options = {}; }
169
+ return __awaiter(_this, void 0, void 0, function () {
170
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
171
+ return __generator(this, function (_a) {
172
+ switch (_a.label) {
173
+ case 0:
174
+ // verify required parameter 'productCode' is not null or undefined
175
+ (0, common_1.assertParamExists)('deleteProductCategoryAccount', 'productCode', productCode);
176
+ // verify required parameter 'category' is not null or undefined
177
+ (0, common_1.assertParamExists)('deleteProductCategoryAccount', 'category', category);
178
+ localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/category/{category}"
179
+ .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
180
+ .replace("{".concat("category", "}"), encodeURIComponent(String(category)));
181
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
182
+ if (configuration) {
183
+ baseOptions = configuration.baseOptions;
184
+ baseAccessToken = configuration.accessToken;
185
+ }
186
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
187
+ localVarHeaderParameter = {};
188
+ localVarQueryParameter = {};
189
+ // authentication bearer required
190
+ // http bearer authentication required
191
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
192
+ // Only Authorization falls back to the configured token; an empty value is never sent.
193
+ ];
194
+ case 1:
195
+ // authentication bearer required
196
+ // http bearer authentication required
197
+ _a.sent();
198
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
199
+ if (authorizationValue) {
200
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
201
+ }
202
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
203
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
204
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
205
+ return [2 /*return*/, {
206
+ url: (0, common_1.toPathString)(localVarUrlObj),
207
+ options: localVarRequestOptions,
208
+ }];
209
+ }
210
+ });
211
+ });
212
+ },
213
+ /**
214
+ * Permanently deletes the Product Risk Carrier. Supply the unique code that was returned when you created the Product Risk Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
215
+ * @summary Delete the Product Risk Carrier
216
+ * @param {string} productCode
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
+ deleteProductRiskCarrier: function (productCode, 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, authorizationValue, 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)('deleteProductRiskCarrier', 'productCode', productCode);
230
+ localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/risk-carrier"
231
+ .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)));
232
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
233
+ if (configuration) {
234
+ baseOptions = configuration.baseOptions;
235
+ baseAccessToken = configuration.accessToken;
236
+ }
237
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
238
+ localVarHeaderParameter = {};
239
+ localVarQueryParameter = {};
240
+ // authentication bearer required
241
+ // http bearer authentication required
242
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
243
+ // Only Authorization falls back to the configured token; an empty value is never sent.
244
+ ];
245
+ case 1:
246
+ // authentication bearer required
247
+ // http bearer authentication required
248
+ _a.sent();
249
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
250
+ if (authorizationValue) {
251
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
252
+ }
253
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
256
+ return [2 /*return*/, {
257
+ url: (0, common_1.toPathString)(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ }];
260
+ }
261
+ });
262
+ });
263
+ },
264
+ /**
265
+ * 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\"
266
+ * @summary Delete the Product Version Category Account
267
+ * @param {string} productCode
268
+ * @param {string} productVersionCode
269
+ * @param {string} category
270
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ deleteProductVersionCategoryAccount: function (productCode, productVersionCode, category, authorization, options) {
275
+ if (options === void 0) { options = {}; }
276
+ return __awaiter(_this, void 0, void 0, function () {
277
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
278
+ return __generator(this, function (_a) {
279
+ switch (_a.label) {
280
+ case 0:
281
+ // verify required parameter 'productCode' is not null or undefined
282
+ (0, common_1.assertParamExists)('deleteProductVersionCategoryAccount', 'productCode', productCode);
283
+ // verify required parameter 'productVersionCode' is not null or undefined
284
+ (0, common_1.assertParamExists)('deleteProductVersionCategoryAccount', 'productVersionCode', productVersionCode);
285
+ // verify required parameter 'category' is not null or undefined
286
+ (0, common_1.assertParamExists)('deleteProductVersionCategoryAccount', 'category', category);
287
+ localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/category/{category}"
288
+ .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
289
+ .replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)))
290
+ .replace("{".concat("category", "}"), encodeURIComponent(String(category)));
291
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
292
+ if (configuration) {
293
+ baseOptions = configuration.baseOptions;
294
+ baseAccessToken = configuration.accessToken;
295
+ }
296
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
297
+ localVarHeaderParameter = {};
298
+ localVarQueryParameter = {};
299
+ // authentication bearer required
300
+ // http bearer authentication required
301
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
302
+ // Only Authorization falls back to the configured token; an empty value is never sent.
303
+ ];
304
+ case 1:
305
+ // authentication bearer required
306
+ // http bearer authentication required
307
+ _a.sent();
308
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
309
+ if (authorizationValue) {
310
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
311
+ }
312
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
313
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
314
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
315
+ return [2 /*return*/, {
316
+ url: (0, common_1.toPathString)(localVarUrlObj),
317
+ options: localVarRequestOptions,
318
+ }];
319
+ }
320
+ });
321
+ });
322
+ },
323
+ /**
324
+ * 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\"
325
+ * @summary Retrieve the Product Account Mapping
326
+ * @param {string} productCode
327
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ */
331
+ getProductAccountMapping: function (productCode, authorization, options) {
332
+ if (options === void 0) { options = {}; }
333
+ return __awaiter(_this, void 0, void 0, function () {
334
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
335
+ return __generator(this, function (_a) {
336
+ switch (_a.label) {
337
+ case 0:
338
+ // verify required parameter 'productCode' is not null or undefined
339
+ (0, common_1.assertParamExists)('getProductAccountMapping', 'productCode', productCode);
340
+ localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}"
341
+ .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)));
342
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
343
+ if (configuration) {
344
+ baseOptions = configuration.baseOptions;
345
+ baseAccessToken = configuration.accessToken;
346
+ }
347
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
348
+ localVarHeaderParameter = {};
349
+ localVarQueryParameter = {};
350
+ // authentication bearer required
351
+ // http bearer authentication required
352
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
353
+ // Only Authorization falls back to the configured token; an empty value is never sent.
354
+ ];
355
+ case 1:
356
+ // authentication bearer required
357
+ // http bearer authentication required
358
+ _a.sent();
359
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
360
+ if (authorizationValue) {
361
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
362
+ }
363
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
364
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
365
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
366
+ return [2 /*return*/, {
367
+ url: (0, common_1.toPathString)(localVarUrlObj),
368
+ options: localVarRequestOptions,
369
+ }];
370
+ }
371
+ });
372
+ });
373
+ },
374
+ /**
375
+ * 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\"
376
+ * @summary Retrieve the Product Version Account Mapping
377
+ * @param {string} productCode
378
+ * @param {string} productVersionCode
379
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ */
383
+ getProductVersionAccountMapping: function (productCode, productVersionCode, authorization, options) {
384
+ if (options === void 0) { options = {}; }
385
+ return __awaiter(_this, void 0, void 0, function () {
386
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
387
+ return __generator(this, function (_a) {
388
+ switch (_a.label) {
389
+ case 0:
390
+ // verify required parameter 'productCode' is not null or undefined
391
+ (0, common_1.assertParamExists)('getProductVersionAccountMapping', 'productCode', productCode);
392
+ // verify required parameter 'productVersionCode' is not null or undefined
393
+ (0, common_1.assertParamExists)('getProductVersionAccountMapping', 'productVersionCode', productVersionCode);
394
+ localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}"
395
+ .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
396
+ .replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)));
397
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
398
+ if (configuration) {
399
+ baseOptions = configuration.baseOptions;
400
+ baseAccessToken = configuration.accessToken;
401
+ }
402
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
403
+ localVarHeaderParameter = {};
404
+ localVarQueryParameter = {};
405
+ // authentication bearer required
406
+ // http bearer authentication required
407
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
408
+ // Only Authorization falls back to the configured token; an empty value is never sent.
409
+ ];
410
+ case 1:
411
+ // authentication bearer required
412
+ // http bearer authentication required
413
+ _a.sent();
414
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
415
+ if (authorizationValue) {
416
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
417
+ }
418
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
419
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
420
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
421
+ return [2 /*return*/, {
422
+ url: (0, common_1.toPathString)(localVarUrlObj),
423
+ options: localVarRequestOptions,
424
+ }];
425
+ }
426
+ });
427
+ });
428
+ },
429
+ /**
430
+ * 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\"
431
+ * @summary List Product Account Mappings
432
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
433
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
434
+ * @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.
435
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
436
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
437
+ * @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.
438
+ * @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.
439
+ * @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.
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ listProductAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
444
+ if (options === void 0) { options = {}; }
445
+ return __awaiter(_this, void 0, void 0, function () {
446
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
447
+ return __generator(this, function (_a) {
448
+ switch (_a.label) {
449
+ case 0:
450
+ localVarPath = "/accountingservice/v1/product-account-mappings";
451
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
452
+ if (configuration) {
453
+ baseOptions = configuration.baseOptions;
454
+ baseAccessToken = configuration.accessToken;
455
+ }
456
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
457
+ localVarHeaderParameter = {};
458
+ localVarQueryParameter = {};
459
+ // authentication bearer required
460
+ // http bearer authentication required
461
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
462
+ case 1:
463
+ // authentication bearer required
464
+ // http bearer authentication required
465
+ _a.sent();
466
+ if (pageSize !== undefined) {
467
+ localVarQueryParameter['pageSize'] = pageSize;
468
+ }
469
+ if (pageToken !== undefined) {
470
+ localVarQueryParameter['pageToken'] = pageToken;
471
+ }
472
+ if (filter !== undefined) {
473
+ localVarQueryParameter['filter'] = filter;
474
+ }
475
+ if (search !== undefined) {
476
+ localVarQueryParameter['search'] = search;
477
+ }
478
+ if (order !== undefined) {
479
+ localVarQueryParameter['order'] = order;
480
+ }
481
+ if (expand !== undefined) {
482
+ localVarQueryParameter['expand'] = expand;
483
+ }
484
+ if (filters !== undefined) {
485
+ localVarQueryParameter['filters'] = filters;
486
+ }
487
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
488
+ if (authorizationValue) {
489
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
490
+ }
491
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
492
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
493
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
494
+ return [2 /*return*/, {
495
+ url: (0, common_1.toPathString)(localVarUrlObj),
496
+ options: localVarRequestOptions,
497
+ }];
498
+ }
499
+ });
500
+ });
501
+ },
502
+ /**
503
+ * 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\"
504
+ * @summary List Products With Account Mappings
505
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
506
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
507
+ * @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.
508
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
509
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
510
+ * @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.
511
+ * @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.
512
+ * @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.
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ listProductsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
517
+ if (options === void 0) { options = {}; }
518
+ return __awaiter(_this, void 0, void 0, function () {
519
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
520
+ return __generator(this, function (_a) {
521
+ switch (_a.label) {
522
+ case 0:
523
+ localVarPath = "/accountingservice/v1/product-account-mappings/products";
524
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
525
+ if (configuration) {
526
+ baseOptions = configuration.baseOptions;
527
+ baseAccessToken = configuration.accessToken;
528
+ }
529
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
530
+ localVarHeaderParameter = {};
531
+ localVarQueryParameter = {};
532
+ // authentication bearer required
533
+ // http bearer authentication required
534
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
535
+ case 1:
536
+ // authentication bearer required
537
+ // http bearer authentication required
538
+ _a.sent();
539
+ if (pageSize !== undefined) {
540
+ localVarQueryParameter['pageSize'] = pageSize;
541
+ }
542
+ if (pageToken !== undefined) {
543
+ localVarQueryParameter['pageToken'] = pageToken;
544
+ }
545
+ if (filter !== undefined) {
546
+ localVarQueryParameter['filter'] = filter;
547
+ }
548
+ if (search !== undefined) {
549
+ localVarQueryParameter['search'] = search;
550
+ }
551
+ if (order !== undefined) {
552
+ localVarQueryParameter['order'] = order;
553
+ }
554
+ if (expand !== undefined) {
555
+ localVarQueryParameter['expand'] = expand;
556
+ }
557
+ if (filters !== undefined) {
558
+ localVarQueryParameter['filters'] = filters;
559
+ }
560
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
561
+ if (authorizationValue) {
562
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
563
+ }
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
+ return [2 /*return*/, {
568
+ url: (0, common_1.toPathString)(localVarUrlObj),
569
+ options: localVarRequestOptions,
570
+ }];
571
+ }
572
+ });
573
+ });
574
+ },
575
+ /**
576
+ * 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\"
577
+ * @summary Update the Premium Item Account
578
+ * @param {string} productCode
579
+ * @param {string} productVersionCode
580
+ * @param {string} premiumFormulaCode
581
+ * @param {string} category
582
+ * @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
583
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ */
587
+ putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
588
+ if (options === void 0) { options = {}; }
589
+ return __awaiter(_this, void 0, void 0, function () {
590
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
591
+ return __generator(this, function (_a) {
592
+ switch (_a.label) {
593
+ case 0:
594
+ // verify required parameter 'productCode' is not null or undefined
595
+ (0, common_1.assertParamExists)('putPremiumItemAccount', 'productCode', productCode);
596
+ // verify required parameter 'productVersionCode' is not null or undefined
597
+ (0, common_1.assertParamExists)('putPremiumItemAccount', 'productVersionCode', productVersionCode);
598
+ // verify required parameter 'premiumFormulaCode' is not null or undefined
599
+ (0, common_1.assertParamExists)('putPremiumItemAccount', 'premiumFormulaCode', premiumFormulaCode);
600
+ // verify required parameter 'category' is not null or undefined
601
+ (0, common_1.assertParamExists)('putPremiumItemAccount', 'category', category);
602
+ // verify required parameter 'putPremiumItemAccountBodyDto' is not null or undefined
603
+ (0, common_1.assertParamExists)('putPremiumItemAccount', 'putPremiumItemAccountBodyDto', putPremiumItemAccountBodyDto);
604
+ localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/category/{category}"
605
+ .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
606
+ .replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)))
607
+ .replace("{".concat("premiumFormulaCode", "}"), encodeURIComponent(String(premiumFormulaCode)))
608
+ .replace("{".concat("category", "}"), encodeURIComponent(String(category)));
609
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
610
+ if (configuration) {
611
+ baseOptions = configuration.baseOptions;
612
+ baseAccessToken = configuration.accessToken;
613
+ }
614
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
615
+ localVarHeaderParameter = {};
616
+ localVarQueryParameter = {};
617
+ // authentication bearer required
618
+ // http bearer authentication required
619
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
620
+ // Only Authorization falls back to the configured token; an empty value is never sent.
621
+ ];
622
+ case 1:
623
+ // authentication bearer required
624
+ // http bearer authentication required
625
+ _a.sent();
626
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
627
+ if (authorizationValue) {
628
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
629
+ }
630
+ localVarHeaderParameter['Content-Type'] = 'application/json';
631
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
632
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
633
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
634
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putPremiumItemAccountBodyDto, localVarRequestOptions, configuration);
635
+ return [2 /*return*/, {
636
+ url: (0, common_1.toPathString)(localVarUrlObj),
637
+ options: localVarRequestOptions,
638
+ }];
639
+ }
640
+ });
641
+ });
642
+ },
643
+ /**
644
+ * 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\"
645
+ * @summary Update the Product Category Account
646
+ * @param {string} productCode
647
+ * @param {string} category
648
+ * @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
649
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
654
+ if (options === void 0) { options = {}; }
655
+ return __awaiter(_this, void 0, void 0, function () {
656
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
657
+ return __generator(this, function (_a) {
658
+ switch (_a.label) {
659
+ case 0:
660
+ // verify required parameter 'productCode' is not null or undefined
661
+ (0, common_1.assertParamExists)('putProductCategoryAccount', 'productCode', productCode);
662
+ // verify required parameter 'category' is not null or undefined
663
+ (0, common_1.assertParamExists)('putProductCategoryAccount', 'category', category);
664
+ // verify required parameter 'putProductCategoryAccountBodyDto' is not null or undefined
665
+ (0, common_1.assertParamExists)('putProductCategoryAccount', 'putProductCategoryAccountBodyDto', putProductCategoryAccountBodyDto);
666
+ localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/category/{category}"
667
+ .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
668
+ .replace("{".concat("category", "}"), encodeURIComponent(String(category)));
669
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
670
+ if (configuration) {
671
+ baseOptions = configuration.baseOptions;
672
+ baseAccessToken = configuration.accessToken;
673
+ }
674
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
675
+ localVarHeaderParameter = {};
676
+ localVarQueryParameter = {};
677
+ // authentication bearer required
678
+ // http bearer authentication required
679
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
680
+ // Only Authorization falls back to the configured token; an empty value is never sent.
681
+ ];
682
+ case 1:
683
+ // authentication bearer required
684
+ // http bearer authentication required
685
+ _a.sent();
686
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
687
+ if (authorizationValue) {
688
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
689
+ }
690
+ localVarHeaderParameter['Content-Type'] = 'application/json';
691
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
692
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
693
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
694
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putProductCategoryAccountBodyDto, localVarRequestOptions, configuration);
695
+ return [2 /*return*/, {
696
+ url: (0, common_1.toPathString)(localVarUrlObj),
697
+ options: localVarRequestOptions,
698
+ }];
699
+ }
700
+ });
701
+ });
702
+ },
703
+ /**
704
+ * Updates the specified Product Risk Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
705
+ * @summary Update the Product Risk Carrier
706
+ * @param {string} productCode
707
+ * @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
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
+ putProductRiskCarrier: function (productCode, putProductRiskCarrierBodyDto, authorization, options) {
713
+ if (options === void 0) { options = {}; }
714
+ return __awaiter(_this, void 0, void 0, function () {
715
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
716
+ return __generator(this, function (_a) {
717
+ switch (_a.label) {
718
+ case 0:
719
+ // verify required parameter 'productCode' is not null or undefined
720
+ (0, common_1.assertParamExists)('putProductRiskCarrier', 'productCode', productCode);
721
+ // verify required parameter 'putProductRiskCarrierBodyDto' is not null or undefined
722
+ (0, common_1.assertParamExists)('putProductRiskCarrier', 'putProductRiskCarrierBodyDto', putProductRiskCarrierBodyDto);
723
+ localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/risk-carrier"
724
+ .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)));
725
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
726
+ if (configuration) {
727
+ baseOptions = configuration.baseOptions;
728
+ baseAccessToken = configuration.accessToken;
729
+ }
730
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
731
+ localVarHeaderParameter = {};
732
+ localVarQueryParameter = {};
733
+ // authentication bearer required
734
+ // http bearer authentication required
735
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
736
+ // Only Authorization falls back to the configured token; an empty value is never sent.
737
+ ];
738
+ case 1:
739
+ // authentication bearer required
740
+ // http bearer authentication required
741
+ _a.sent();
742
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
743
+ if (authorizationValue) {
744
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
745
+ }
746
+ localVarHeaderParameter['Content-Type'] = 'application/json';
747
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
748
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
749
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
750
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putProductRiskCarrierBodyDto, localVarRequestOptions, configuration);
751
+ return [2 /*return*/, {
752
+ url: (0, common_1.toPathString)(localVarUrlObj),
753
+ options: localVarRequestOptions,
754
+ }];
755
+ }
756
+ });
757
+ });
758
+ },
759
+ /**
760
+ * 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\"
761
+ * @summary Update the Product Version Category Account
762
+ * @param {string} productCode
763
+ * @param {string} productVersionCode
764
+ * @param {string} category
765
+ * @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
766
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
767
+ * @param {*} [options] Override http request option.
768
+ * @throws {RequiredError}
769
+ */
770
+ putProductVersionCategoryAccount: function (productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options) {
771
+ if (options === void 0) { options = {}; }
772
+ return __awaiter(_this, void 0, void 0, function () {
773
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
774
+ return __generator(this, function (_a) {
775
+ switch (_a.label) {
776
+ case 0:
777
+ // verify required parameter 'productCode' is not null or undefined
778
+ (0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'productCode', productCode);
779
+ // verify required parameter 'productVersionCode' is not null or undefined
780
+ (0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'productVersionCode', productVersionCode);
781
+ // verify required parameter 'category' is not null or undefined
782
+ (0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'category', category);
783
+ // verify required parameter 'putProductVersionCategoryAccountBodyDto' is not null or undefined
784
+ (0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'putProductVersionCategoryAccountBodyDto', putProductVersionCategoryAccountBodyDto);
785
+ localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/category/{category}"
786
+ .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
787
+ .replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)))
788
+ .replace("{".concat("category", "}"), encodeURIComponent(String(category)));
789
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
790
+ if (configuration) {
791
+ baseOptions = configuration.baseOptions;
792
+ baseAccessToken = configuration.accessToken;
793
+ }
794
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
795
+ localVarHeaderParameter = {};
796
+ localVarQueryParameter = {};
797
+ // authentication bearer required
798
+ // http bearer authentication required
799
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
800
+ // Only Authorization falls back to the configured token; an empty value is never sent.
801
+ ];
802
+ case 1:
803
+ // authentication bearer required
804
+ // http bearer authentication required
805
+ _a.sent();
806
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
807
+ if (authorizationValue) {
808
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
809
+ }
810
+ localVarHeaderParameter['Content-Type'] = 'application/json';
811
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
812
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
813
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
814
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putProductVersionCategoryAccountBodyDto, localVarRequestOptions, configuration);
815
+ return [2 /*return*/, {
816
+ url: (0, common_1.toPathString)(localVarUrlObj),
817
+ options: localVarRequestOptions,
818
+ }];
819
+ }
820
+ });
821
+ });
822
+ },
823
+ };
824
+ };
825
+ exports.ProductAccountMappingsApiAxiosParamCreator = ProductAccountMappingsApiAxiosParamCreator;
826
+ /**
827
+ * ProductAccountMappingsApi - functional programming interface
828
+ * @export
829
+ */
830
+ var ProductAccountMappingsApiFp = function (configuration) {
831
+ var localVarAxiosParamCreator = (0, exports.ProductAccountMappingsApiAxiosParamCreator)(configuration);
832
+ return {
833
+ /**
834
+ * 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\"
835
+ * @summary Delete the Premium Item Account
836
+ * @param {string} productCode
837
+ * @param {string} productVersionCode
838
+ * @param {string} premiumFormulaCode
839
+ * @param {string} category
840
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ */
844
+ deletePremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, authorization, options) {
845
+ return __awaiter(this, void 0, void 0, function () {
846
+ var localVarAxiosArgs;
847
+ return __generator(this, function (_a) {
848
+ switch (_a.label) {
849
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options)];
850
+ case 1:
851
+ localVarAxiosArgs = _a.sent();
852
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
853
+ }
854
+ });
855
+ });
856
+ },
857
+ /**
858
+ * 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\"
859
+ * @summary Delete the Product Category Account
860
+ * @param {string} productCode
861
+ * @param {string} category
862
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ */
866
+ deleteProductCategoryAccount: function (productCode, category, authorization, options) {
867
+ return __awaiter(this, void 0, void 0, function () {
868
+ var localVarAxiosArgs;
869
+ return __generator(this, function (_a) {
870
+ switch (_a.label) {
871
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProductCategoryAccount(productCode, category, authorization, options)];
872
+ case 1:
873
+ localVarAxiosArgs = _a.sent();
874
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
875
+ }
876
+ });
877
+ });
878
+ },
879
+ /**
880
+ * Permanently deletes the Product Risk Carrier. Supply the unique code that was returned when you created the Product Risk Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
881
+ * @summary Delete the Product Risk Carrier
882
+ * @param {string} productCode
883
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
884
+ * @param {*} [options] Override http request option.
885
+ * @throws {RequiredError}
886
+ */
887
+ deleteProductRiskCarrier: function (productCode, authorization, options) {
888
+ return __awaiter(this, void 0, void 0, function () {
889
+ var localVarAxiosArgs;
890
+ return __generator(this, function (_a) {
891
+ switch (_a.label) {
892
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProductRiskCarrier(productCode, authorization, options)];
893
+ case 1:
894
+ localVarAxiosArgs = _a.sent();
895
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
896
+ }
897
+ });
898
+ });
899
+ },
900
+ /**
901
+ * 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\"
902
+ * @summary Delete the Product Version Category Account
903
+ * @param {string} productCode
904
+ * @param {string} productVersionCode
905
+ * @param {string} category
906
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
907
+ * @param {*} [options] Override http request option.
908
+ * @throws {RequiredError}
909
+ */
910
+ deleteProductVersionCategoryAccount: function (productCode, productVersionCode, category, authorization, options) {
911
+ return __awaiter(this, void 0, void 0, function () {
912
+ var localVarAxiosArgs;
913
+ return __generator(this, function (_a) {
914
+ switch (_a.label) {
915
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProductVersionCategoryAccount(productCode, productVersionCode, category, authorization, options)];
916
+ case 1:
917
+ localVarAxiosArgs = _a.sent();
918
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
919
+ }
920
+ });
921
+ });
922
+ },
923
+ /**
924
+ * 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\"
925
+ * @summary Retrieve the Product Account Mapping
926
+ * @param {string} productCode
927
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
928
+ * @param {*} [options] Override http request option.
929
+ * @throws {RequiredError}
930
+ */
931
+ getProductAccountMapping: function (productCode, authorization, options) {
932
+ return __awaiter(this, void 0, void 0, function () {
933
+ var localVarAxiosArgs;
934
+ return __generator(this, function (_a) {
935
+ switch (_a.label) {
936
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductAccountMapping(productCode, authorization, options)];
937
+ case 1:
938
+ localVarAxiosArgs = _a.sent();
939
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
940
+ }
941
+ });
942
+ });
943
+ },
944
+ /**
945
+ * 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\"
946
+ * @summary Retrieve the Product Version Account Mapping
947
+ * @param {string} productCode
948
+ * @param {string} productVersionCode
949
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
950
+ * @param {*} [options] Override http request option.
951
+ * @throws {RequiredError}
952
+ */
953
+ getProductVersionAccountMapping: function (productCode, productVersionCode, authorization, options) {
954
+ return __awaiter(this, void 0, void 0, function () {
955
+ var localVarAxiosArgs;
956
+ return __generator(this, function (_a) {
957
+ switch (_a.label) {
958
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductVersionAccountMapping(productCode, productVersionCode, authorization, options)];
959
+ case 1:
960
+ localVarAxiosArgs = _a.sent();
961
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
962
+ }
963
+ });
964
+ });
965
+ },
966
+ /**
967
+ * 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\"
968
+ * @summary List Product Account Mappings
969
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
970
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
971
+ * @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.
972
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
973
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
974
+ * @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.
975
+ * @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.
976
+ * @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.
977
+ * @param {*} [options] Override http request option.
978
+ * @throws {RequiredError}
979
+ */
980
+ listProductAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
981
+ return __awaiter(this, void 0, void 0, function () {
982
+ var localVarAxiosArgs;
983
+ return __generator(this, function (_a) {
984
+ switch (_a.label) {
985
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
986
+ case 1:
987
+ localVarAxiosArgs = _a.sent();
988
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
989
+ }
990
+ });
991
+ });
992
+ },
993
+ /**
994
+ * 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\"
995
+ * @summary List Products With Account Mappings
996
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
997
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
998
+ * @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.
999
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1000
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1001
+ * @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.
1002
+ * @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.
1003
+ * @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.
1004
+ * @param {*} [options] Override http request option.
1005
+ * @throws {RequiredError}
1006
+ */
1007
+ listProductsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1008
+ return __awaiter(this, void 0, void 0, function () {
1009
+ var localVarAxiosArgs;
1010
+ return __generator(this, function (_a) {
1011
+ switch (_a.label) {
1012
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
1013
+ case 1:
1014
+ localVarAxiosArgs = _a.sent();
1015
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1016
+ }
1017
+ });
1018
+ });
1019
+ },
1020
+ /**
1021
+ * 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\"
1022
+ * @summary Update the Premium Item Account
1023
+ * @param {string} productCode
1024
+ * @param {string} productVersionCode
1025
+ * @param {string} premiumFormulaCode
1026
+ * @param {string} category
1027
+ * @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
1028
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1029
+ * @param {*} [options] Override http request option.
1030
+ * @throws {RequiredError}
1031
+ */
1032
+ putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
1033
+ return __awaiter(this, void 0, void 0, function () {
1034
+ var localVarAxiosArgs;
1035
+ return __generator(this, function (_a) {
1036
+ switch (_a.label) {
1037
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options)];
1038
+ case 1:
1039
+ localVarAxiosArgs = _a.sent();
1040
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1041
+ }
1042
+ });
1043
+ });
1044
+ },
1045
+ /**
1046
+ * 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\"
1047
+ * @summary Update the Product Category Account
1048
+ * @param {string} productCode
1049
+ * @param {string} category
1050
+ * @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
1051
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1052
+ * @param {*} [options] Override http request option.
1053
+ * @throws {RequiredError}
1054
+ */
1055
+ putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
1056
+ return __awaiter(this, void 0, void 0, function () {
1057
+ var localVarAxiosArgs;
1058
+ return __generator(this, function (_a) {
1059
+ switch (_a.label) {
1060
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options)];
1061
+ case 1:
1062
+ localVarAxiosArgs = _a.sent();
1063
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1064
+ }
1065
+ });
1066
+ });
1067
+ },
1068
+ /**
1069
+ * Updates the specified Product Risk Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1070
+ * @summary Update the Product Risk Carrier
1071
+ * @param {string} productCode
1072
+ * @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
1073
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1074
+ * @param {*} [options] Override http request option.
1075
+ * @throws {RequiredError}
1076
+ */
1077
+ putProductRiskCarrier: function (productCode, putProductRiskCarrierBodyDto, authorization, options) {
1078
+ return __awaiter(this, void 0, void 0, function () {
1079
+ var localVarAxiosArgs;
1080
+ return __generator(this, function (_a) {
1081
+ switch (_a.label) {
1082
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putProductRiskCarrier(productCode, putProductRiskCarrierBodyDto, authorization, options)];
1083
+ case 1:
1084
+ localVarAxiosArgs = _a.sent();
1085
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1086
+ }
1087
+ });
1088
+ });
1089
+ },
1090
+ /**
1091
+ * 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\"
1092
+ * @summary Update the Product Version Category Account
1093
+ * @param {string} productCode
1094
+ * @param {string} productVersionCode
1095
+ * @param {string} category
1096
+ * @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
1097
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1098
+ * @param {*} [options] Override http request option.
1099
+ * @throws {RequiredError}
1100
+ */
1101
+ putProductVersionCategoryAccount: function (productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options) {
1102
+ return __awaiter(this, void 0, void 0, function () {
1103
+ var localVarAxiosArgs;
1104
+ return __generator(this, function (_a) {
1105
+ switch (_a.label) {
1106
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putProductVersionCategoryAccount(productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options)];
1107
+ case 1:
1108
+ localVarAxiosArgs = _a.sent();
1109
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1110
+ }
1111
+ });
1112
+ });
1113
+ },
1114
+ };
1115
+ };
1116
+ exports.ProductAccountMappingsApiFp = ProductAccountMappingsApiFp;
1117
+ /**
1118
+ * ProductAccountMappingsApi - factory interface
1119
+ * @export
1120
+ */
1121
+ var ProductAccountMappingsApiFactory = function (configuration, basePath, axios) {
1122
+ var localVarFp = (0, exports.ProductAccountMappingsApiFp)(configuration);
1123
+ return {
1124
+ /**
1125
+ * 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\"
1126
+ * @summary Delete the Premium Item Account
1127
+ * @param {string} productCode
1128
+ * @param {string} productVersionCode
1129
+ * @param {string} premiumFormulaCode
1130
+ * @param {string} category
1131
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1132
+ * @param {*} [options] Override http request option.
1133
+ * @throws {RequiredError}
1134
+ */
1135
+ deletePremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, authorization, options) {
1136
+ return localVarFp.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options).then(function (request) { return request(axios, basePath); });
1137
+ },
1138
+ /**
1139
+ * 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\"
1140
+ * @summary Delete the Product Category Account
1141
+ * @param {string} productCode
1142
+ * @param {string} category
1143
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1144
+ * @param {*} [options] Override http request option.
1145
+ * @throws {RequiredError}
1146
+ */
1147
+ deleteProductCategoryAccount: function (productCode, category, authorization, options) {
1148
+ return localVarFp.deleteProductCategoryAccount(productCode, category, authorization, options).then(function (request) { return request(axios, basePath); });
1149
+ },
1150
+ /**
1151
+ * Permanently deletes the Product Risk Carrier. Supply the unique code that was returned when you created the Product Risk Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1152
+ * @summary Delete the Product Risk Carrier
1153
+ * @param {string} productCode
1154
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1155
+ * @param {*} [options] Override http request option.
1156
+ * @throws {RequiredError}
1157
+ */
1158
+ deleteProductRiskCarrier: function (productCode, authorization, options) {
1159
+ return localVarFp.deleteProductRiskCarrier(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
1160
+ },
1161
+ /**
1162
+ * 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\"
1163
+ * @summary Delete the Product Version Category Account
1164
+ * @param {string} productCode
1165
+ * @param {string} productVersionCode
1166
+ * @param {string} category
1167
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1168
+ * @param {*} [options] Override http request option.
1169
+ * @throws {RequiredError}
1170
+ */
1171
+ deleteProductVersionCategoryAccount: function (productCode, productVersionCode, category, authorization, options) {
1172
+ return localVarFp.deleteProductVersionCategoryAccount(productCode, productVersionCode, category, authorization, options).then(function (request) { return request(axios, basePath); });
1173
+ },
1174
+ /**
1175
+ * 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\"
1176
+ * @summary Retrieve the Product Account Mapping
1177
+ * @param {string} productCode
1178
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1179
+ * @param {*} [options] Override http request option.
1180
+ * @throws {RequiredError}
1181
+ */
1182
+ getProductAccountMapping: function (productCode, authorization, options) {
1183
+ return localVarFp.getProductAccountMapping(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
1184
+ },
1185
+ /**
1186
+ * 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\"
1187
+ * @summary Retrieve the Product Version Account Mapping
1188
+ * @param {string} productCode
1189
+ * @param {string} productVersionCode
1190
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ */
1194
+ getProductVersionAccountMapping: function (productCode, productVersionCode, authorization, options) {
1195
+ return localVarFp.getProductVersionAccountMapping(productCode, productVersionCode, authorization, options).then(function (request) { return request(axios, basePath); });
1196
+ },
1197
+ /**
1198
+ * 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\"
1199
+ * @summary List Product Account Mappings
1200
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1201
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1202
+ * @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.
1203
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1204
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1205
+ * @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.
1206
+ * @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.
1207
+ * @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.
1208
+ * @param {*} [options] Override http request option.
1209
+ * @throws {RequiredError}
1210
+ */
1211
+ listProductAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1212
+ return localVarFp.listProductAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1213
+ },
1214
+ /**
1215
+ * 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\"
1216
+ * @summary List Products With Account Mappings
1217
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1218
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1219
+ * @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.
1220
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1221
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
1222
+ * @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.
1223
+ * @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.
1224
+ * @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.
1225
+ * @param {*} [options] Override http request option.
1226
+ * @throws {RequiredError}
1227
+ */
1228
+ listProductsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
1229
+ return localVarFp.listProductsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1230
+ },
1231
+ /**
1232
+ * 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\"
1233
+ * @summary Update the Premium Item Account
1234
+ * @param {string} productCode
1235
+ * @param {string} productVersionCode
1236
+ * @param {string} premiumFormulaCode
1237
+ * @param {string} category
1238
+ * @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
1239
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1240
+ * @param {*} [options] Override http request option.
1241
+ * @throws {RequiredError}
1242
+ */
1243
+ putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
1244
+ return localVarFp.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
1245
+ },
1246
+ /**
1247
+ * 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\"
1248
+ * @summary Update the Product Category Account
1249
+ * @param {string} productCode
1250
+ * @param {string} category
1251
+ * @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
1252
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1253
+ * @param {*} [options] Override http request option.
1254
+ * @throws {RequiredError}
1255
+ */
1256
+ putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
1257
+ return localVarFp.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
1258
+ },
1259
+ /**
1260
+ * Updates the specified Product Risk Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1261
+ * @summary Update the Product Risk Carrier
1262
+ * @param {string} productCode
1263
+ * @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
1264
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1265
+ * @param {*} [options] Override http request option.
1266
+ * @throws {RequiredError}
1267
+ */
1268
+ putProductRiskCarrier: function (productCode, putProductRiskCarrierBodyDto, authorization, options) {
1269
+ return localVarFp.putProductRiskCarrier(productCode, putProductRiskCarrierBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
1270
+ },
1271
+ /**
1272
+ * 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\"
1273
+ * @summary Update the Product Version Category Account
1274
+ * @param {string} productCode
1275
+ * @param {string} productVersionCode
1276
+ * @param {string} category
1277
+ * @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
1278
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1279
+ * @param {*} [options] Override http request option.
1280
+ * @throws {RequiredError}
1281
+ */
1282
+ putProductVersionCategoryAccount: function (productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options) {
1283
+ return localVarFp.putProductVersionCategoryAccount(productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
1284
+ },
1285
+ };
1286
+ };
1287
+ exports.ProductAccountMappingsApiFactory = ProductAccountMappingsApiFactory;
1288
+ /**
1289
+ * ProductAccountMappingsApi - object-oriented interface
1290
+ * @export
1291
+ * @class ProductAccountMappingsApi
1292
+ * @extends {BaseAPI}
1293
+ */
1294
+ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1295
+ __extends(ProductAccountMappingsApi, _super);
1296
+ function ProductAccountMappingsApi() {
1297
+ return _super !== null && _super.apply(this, arguments) || this;
1298
+ }
1299
+ /**
1300
+ * 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\"
1301
+ * @summary Delete the Premium Item Account
1302
+ * @param {ProductAccountMappingsApiDeletePremiumItemAccountRequest} requestParameters Request parameters.
1303
+ * @param {*} [options] Override http request option.
1304
+ * @throws {RequiredError}
1305
+ * @memberof ProductAccountMappingsApi
1306
+ */
1307
+ ProductAccountMappingsApi.prototype.deletePremiumItemAccount = function (requestParameters, options) {
1308
+ var _this = this;
1309
+ 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); });
1310
+ };
1311
+ /**
1312
+ * 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\"
1313
+ * @summary Delete the Product Category Account
1314
+ * @param {ProductAccountMappingsApiDeleteProductCategoryAccountRequest} requestParameters Request parameters.
1315
+ * @param {*} [options] Override http request option.
1316
+ * @throws {RequiredError}
1317
+ * @memberof ProductAccountMappingsApi
1318
+ */
1319
+ ProductAccountMappingsApi.prototype.deleteProductCategoryAccount = function (requestParameters, options) {
1320
+ var _this = this;
1321
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1322
+ };
1323
+ /**
1324
+ * Permanently deletes the Product Risk Carrier. Supply the unique code that was returned when you created the Product Risk Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1325
+ * @summary Delete the Product Risk Carrier
1326
+ * @param {ProductAccountMappingsApiDeleteProductRiskCarrierRequest} requestParameters Request parameters.
1327
+ * @param {*} [options] Override http request option.
1328
+ * @throws {RequiredError}
1329
+ * @memberof ProductAccountMappingsApi
1330
+ */
1331
+ ProductAccountMappingsApi.prototype.deleteProductRiskCarrier = function (requestParameters, options) {
1332
+ var _this = this;
1333
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1334
+ };
1335
+ /**
1336
+ * 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\"
1337
+ * @summary Delete the Product Version Category Account
1338
+ * @param {ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest} requestParameters Request parameters.
1339
+ * @param {*} [options] Override http request option.
1340
+ * @throws {RequiredError}
1341
+ * @memberof ProductAccountMappingsApi
1342
+ */
1343
+ ProductAccountMappingsApi.prototype.deleteProductVersionCategoryAccount = function (requestParameters, options) {
1344
+ var _this = this;
1345
+ 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); });
1346
+ };
1347
+ /**
1348
+ * 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\"
1349
+ * @summary Retrieve the Product Account Mapping
1350
+ * @param {ProductAccountMappingsApiGetProductAccountMappingRequest} requestParameters Request parameters.
1351
+ * @param {*} [options] Override http request option.
1352
+ * @throws {RequiredError}
1353
+ * @memberof ProductAccountMappingsApi
1354
+ */
1355
+ ProductAccountMappingsApi.prototype.getProductAccountMapping = function (requestParameters, options) {
1356
+ var _this = this;
1357
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1358
+ };
1359
+ /**
1360
+ * 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\"
1361
+ * @summary Retrieve the Product Version Account Mapping
1362
+ * @param {ProductAccountMappingsApiGetProductVersionAccountMappingRequest} requestParameters Request parameters.
1363
+ * @param {*} [options] Override http request option.
1364
+ * @throws {RequiredError}
1365
+ * @memberof ProductAccountMappingsApi
1366
+ */
1367
+ ProductAccountMappingsApi.prototype.getProductVersionAccountMapping = function (requestParameters, options) {
1368
+ var _this = this;
1369
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1370
+ };
1371
+ /**
1372
+ * 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\"
1373
+ * @summary List Product Account Mappings
1374
+ * @param {ProductAccountMappingsApiListProductAccountMappingsRequest} requestParameters Request parameters.
1375
+ * @param {*} [options] Override http request option.
1376
+ * @throws {RequiredError}
1377
+ * @memberof ProductAccountMappingsApi
1378
+ */
1379
+ ProductAccountMappingsApi.prototype.listProductAccountMappings = function (requestParameters, options) {
1380
+ var _this = this;
1381
+ if (requestParameters === void 0) { requestParameters = {}; }
1382
+ 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); });
1383
+ };
1384
+ /**
1385
+ * 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\"
1386
+ * @summary List Products With Account Mappings
1387
+ * @param {ProductAccountMappingsApiListProductsWithAccountMappingsRequest} requestParameters Request parameters.
1388
+ * @param {*} [options] Override http request option.
1389
+ * @throws {RequiredError}
1390
+ * @memberof ProductAccountMappingsApi
1391
+ */
1392
+ ProductAccountMappingsApi.prototype.listProductsWithAccountMappings = function (requestParameters, options) {
1393
+ var _this = this;
1394
+ if (requestParameters === void 0) { requestParameters = {}; }
1395
+ 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); });
1396
+ };
1397
+ /**
1398
+ * 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\"
1399
+ * @summary Update the Premium Item Account
1400
+ * @param {ProductAccountMappingsApiPutPremiumItemAccountRequest} requestParameters Request parameters.
1401
+ * @param {*} [options] Override http request option.
1402
+ * @throws {RequiredError}
1403
+ * @memberof ProductAccountMappingsApi
1404
+ */
1405
+ ProductAccountMappingsApi.prototype.putPremiumItemAccount = function (requestParameters, options) {
1406
+ var _this = this;
1407
+ 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); });
1408
+ };
1409
+ /**
1410
+ * 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\"
1411
+ * @summary Update the Product Category Account
1412
+ * @param {ProductAccountMappingsApiPutProductCategoryAccountRequest} requestParameters Request parameters.
1413
+ * @param {*} [options] Override http request option.
1414
+ * @throws {RequiredError}
1415
+ * @memberof ProductAccountMappingsApi
1416
+ */
1417
+ ProductAccountMappingsApi.prototype.putProductCategoryAccount = function (requestParameters, options) {
1418
+ var _this = this;
1419
+ 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); });
1420
+ };
1421
+ /**
1422
+ * Updates the specified Product Risk Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1423
+ * @summary Update the Product Risk Carrier
1424
+ * @param {ProductAccountMappingsApiPutProductRiskCarrierRequest} requestParameters Request parameters.
1425
+ * @param {*} [options] Override http request option.
1426
+ * @throws {RequiredError}
1427
+ * @memberof ProductAccountMappingsApi
1428
+ */
1429
+ ProductAccountMappingsApi.prototype.putProductRiskCarrier = function (requestParameters, options) {
1430
+ var _this = this;
1431
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1432
+ };
1433
+ /**
1434
+ * 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\"
1435
+ * @summary Update the Product Version Category Account
1436
+ * @param {ProductAccountMappingsApiPutProductVersionCategoryAccountRequest} requestParameters Request parameters.
1437
+ * @param {*} [options] Override http request option.
1438
+ * @throws {RequiredError}
1439
+ * @memberof ProductAccountMappingsApi
1440
+ */
1441
+ ProductAccountMappingsApi.prototype.putProductVersionCategoryAccount = function (requestParameters, options) {
1442
+ var _this = this;
1443
+ 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); });
1444
+ };
1445
+ return ProductAccountMappingsApi;
1446
+ }(base_1.BaseAPI));
1447
+ exports.ProductAccountMappingsApi = ProductAccountMappingsApi;