@emilgroup/accounting-sdk-node 1.32.1-beta.6 → 1.32.1-beta.63

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