@emilgroup/accounting-sdk-node 1.32.1-beta.9 → 1.32.1-beta.90

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