@emilgroup/insurance-sdk 1.0.2 → 1.0.3

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.
@@ -243,6 +243,54 @@ var ProductsApiAxiosParamCreator = function (configuration) {
243
243
  });
244
244
  });
245
245
  },
246
+ /**
247
+ * Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
248
+ * @summary Delete the premium formula
249
+ * @param {number} id
250
+ * @param {string} [authorization] Bearer Token
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ deletePremiumFormula: function (id, authorization, options) {
255
+ if (options === void 0) { options = {}; }
256
+ return __awaiter(_this, void 0, void 0, function () {
257
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
258
+ return __generator(this, function (_a) {
259
+ switch (_a.label) {
260
+ case 0:
261
+ // verify required parameter 'id' is not null or undefined
262
+ (0, common_1.assertParamExists)('deletePremiumFormula', 'id', id);
263
+ localVarPath = "/insuranceservice/v1/premium-formulas/{id}"
264
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
265
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
266
+ if (configuration) {
267
+ baseOptions = configuration.baseOptions;
268
+ baseAccessToken = configuration.accessToken;
269
+ }
270
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
271
+ localVarHeaderParameter = {};
272
+ localVarQueryParameter = {};
273
+ // authentication bearer required
274
+ // http bearer authentication required
275
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
276
+ case 1:
277
+ // authentication bearer required
278
+ // http bearer authentication required
279
+ _a.sent();
280
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
281
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
282
+ }
283
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
284
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
285
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
286
+ return [2 /*return*/, {
287
+ url: (0, common_1.toPathString)(localVarUrlObj),
288
+ options: localVarRequestOptions,
289
+ }];
290
+ }
291
+ });
292
+ });
293
+ },
246
294
  /**
247
295
  * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
248
296
  * @summary Delete the product
@@ -291,6 +339,54 @@ var ProductsApiAxiosParamCreator = function (configuration) {
291
339
  });
292
340
  });
293
341
  },
342
+ /**
343
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
344
+ * @summary Delete the product
345
+ * @param {string} id
346
+ * @param {string} [authorization] Bearer Token
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ */
350
+ deleteProductField: function (id, authorization, options) {
351
+ if (options === void 0) { options = {}; }
352
+ return __awaiter(_this, void 0, void 0, function () {
353
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
354
+ return __generator(this, function (_a) {
355
+ switch (_a.label) {
356
+ case 0:
357
+ // verify required parameter 'id' is not null or undefined
358
+ (0, common_1.assertParamExists)('deleteProductField', 'id', id);
359
+ localVarPath = "/insuranceservice/v1/product-fields/{id}"
360
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
361
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
362
+ if (configuration) {
363
+ baseOptions = configuration.baseOptions;
364
+ baseAccessToken = configuration.accessToken;
365
+ }
366
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
367
+ localVarHeaderParameter = {};
368
+ localVarQueryParameter = {};
369
+ // authentication bearer required
370
+ // http bearer authentication required
371
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
372
+ case 1:
373
+ // authentication bearer required
374
+ // http bearer authentication required
375
+ _a.sent();
376
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
377
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
378
+ }
379
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
380
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
381
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
382
+ return [2 /*return*/, {
383
+ url: (0, common_1.toPathString)(localVarUrlObj),
384
+ options: localVarRequestOptions,
385
+ }];
386
+ }
387
+ });
388
+ });
389
+ },
294
390
  /**
295
391
  * Retrieves the details of the premium formula that was previously created. Supply the unique premium formula id that was returned when you created it and Emil Api will return the corresponding premium formula information.
296
392
  * @summary Retrieve the premium formula
@@ -1026,6 +1122,59 @@ var ProductsApiAxiosParamCreator = function (configuration) {
1026
1122
  });
1027
1123
  });
1028
1124
  },
1125
+ /**
1126
+ * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1127
+ * @summary Update the premium formula
1128
+ * @param {number} id
1129
+ * @param {UpdatePremiumFormulaRequestDto} updatePremiumFormulaRequestDto
1130
+ * @param {string} [authorization] Bearer Token
1131
+ * @param {*} [options] Override http request option.
1132
+ * @throws {RequiredError}
1133
+ */
1134
+ updatePremiumFormula: function (id, updatePremiumFormulaRequestDto, authorization, options) {
1135
+ if (options === void 0) { options = {}; }
1136
+ return __awaiter(_this, void 0, void 0, function () {
1137
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1138
+ return __generator(this, function (_a) {
1139
+ switch (_a.label) {
1140
+ case 0:
1141
+ // verify required parameter 'id' is not null or undefined
1142
+ (0, common_1.assertParamExists)('updatePremiumFormula', 'id', id);
1143
+ // verify required parameter 'updatePremiumFormulaRequestDto' is not null or undefined
1144
+ (0, common_1.assertParamExists)('updatePremiumFormula', 'updatePremiumFormulaRequestDto', updatePremiumFormulaRequestDto);
1145
+ localVarPath = "/insuranceservice/v1/premium-formulas/{id}"
1146
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1147
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1148
+ if (configuration) {
1149
+ baseOptions = configuration.baseOptions;
1150
+ baseAccessToken = configuration.accessToken;
1151
+ }
1152
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
1153
+ localVarHeaderParameter = {};
1154
+ localVarQueryParameter = {};
1155
+ // authentication bearer required
1156
+ // http bearer authentication required
1157
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1158
+ case 1:
1159
+ // authentication bearer required
1160
+ // http bearer authentication required
1161
+ _a.sent();
1162
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
1163
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
1164
+ }
1165
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1166
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1167
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1168
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1169
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePremiumFormulaRequestDto, localVarRequestOptions, configuration);
1170
+ return [2 /*return*/, {
1171
+ url: (0, common_1.toPathString)(localVarUrlObj),
1172
+ options: localVarRequestOptions,
1173
+ }];
1174
+ }
1175
+ });
1176
+ });
1177
+ },
1029
1178
  /**
1030
1179
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1031
1180
  * @summary Update the product
@@ -1079,6 +1228,112 @@ var ProductsApiAxiosParamCreator = function (configuration) {
1079
1228
  });
1080
1229
  });
1081
1230
  },
1231
+ /**
1232
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1233
+ * @summary Update the product
1234
+ * @param {string} id
1235
+ * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
1236
+ * @param {string} [authorization] Bearer Token
1237
+ * @param {*} [options] Override http request option.
1238
+ * @throws {RequiredError}
1239
+ */
1240
+ updateProductField: function (id, updateProductFieldRequestDto, authorization, options) {
1241
+ if (options === void 0) { options = {}; }
1242
+ return __awaiter(_this, void 0, void 0, function () {
1243
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1244
+ return __generator(this, function (_a) {
1245
+ switch (_a.label) {
1246
+ case 0:
1247
+ // verify required parameter 'id' is not null or undefined
1248
+ (0, common_1.assertParamExists)('updateProductField', 'id', id);
1249
+ // verify required parameter 'updateProductFieldRequestDto' is not null or undefined
1250
+ (0, common_1.assertParamExists)('updateProductField', 'updateProductFieldRequestDto', updateProductFieldRequestDto);
1251
+ localVarPath = "/insuranceservice/v1/product-fields/{id}"
1252
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1253
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1254
+ if (configuration) {
1255
+ baseOptions = configuration.baseOptions;
1256
+ baseAccessToken = configuration.accessToken;
1257
+ }
1258
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
1259
+ localVarHeaderParameter = {};
1260
+ localVarQueryParameter = {};
1261
+ // authentication bearer required
1262
+ // http bearer authentication required
1263
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1264
+ case 1:
1265
+ // authentication bearer required
1266
+ // http bearer authentication required
1267
+ _a.sent();
1268
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
1269
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
1270
+ }
1271
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1272
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1273
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1274
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1275
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductFieldRequestDto, localVarRequestOptions, configuration);
1276
+ return [2 /*return*/, {
1277
+ url: (0, common_1.toPathString)(localVarUrlObj),
1278
+ options: localVarRequestOptions,
1279
+ }];
1280
+ }
1281
+ });
1282
+ });
1283
+ },
1284
+ /**
1285
+ * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1286
+ * @summary Update the product version
1287
+ * @param {number} id
1288
+ * @param {UpdateProductVersionRequestDto} updateProductVersionRequestDto
1289
+ * @param {string} [authorization] Bearer Token
1290
+ * @param {*} [options] Override http request option.
1291
+ * @throws {RequiredError}
1292
+ */
1293
+ updateProductVersion: function (id, updateProductVersionRequestDto, authorization, options) {
1294
+ if (options === void 0) { options = {}; }
1295
+ return __awaiter(_this, void 0, void 0, function () {
1296
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1297
+ return __generator(this, function (_a) {
1298
+ switch (_a.label) {
1299
+ case 0:
1300
+ // verify required parameter 'id' is not null or undefined
1301
+ (0, common_1.assertParamExists)('updateProductVersion', 'id', id);
1302
+ // verify required parameter 'updateProductVersionRequestDto' is not null or undefined
1303
+ (0, common_1.assertParamExists)('updateProductVersion', 'updateProductVersionRequestDto', updateProductVersionRequestDto);
1304
+ localVarPath = "/insuranceservice/v1/product-versions/{id}"
1305
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1306
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1307
+ if (configuration) {
1308
+ baseOptions = configuration.baseOptions;
1309
+ baseAccessToken = configuration.accessToken;
1310
+ }
1311
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
1312
+ localVarHeaderParameter = {};
1313
+ localVarQueryParameter = {};
1314
+ // authentication bearer required
1315
+ // http bearer authentication required
1316
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1317
+ case 1:
1318
+ // authentication bearer required
1319
+ // http bearer authentication required
1320
+ _a.sent();
1321
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
1322
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
1323
+ }
1324
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1325
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1326
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1327
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1328
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductVersionRequestDto, localVarRequestOptions, configuration);
1329
+ return [2 /*return*/, {
1330
+ url: (0, common_1.toPathString)(localVarUrlObj),
1331
+ options: localVarRequestOptions,
1332
+ }];
1333
+ }
1334
+ });
1335
+ });
1336
+ },
1082
1337
  /**
1083
1338
  * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
1084
1339
  * @summary Validate product factors
@@ -1203,6 +1458,27 @@ var ProductsApiFp = function (configuration) {
1203
1458
  });
1204
1459
  });
1205
1460
  },
1461
+ /**
1462
+ * Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
1463
+ * @summary Delete the premium formula
1464
+ * @param {number} id
1465
+ * @param {string} [authorization] Bearer Token
1466
+ * @param {*} [options] Override http request option.
1467
+ * @throws {RequiredError}
1468
+ */
1469
+ deletePremiumFormula: function (id, authorization, options) {
1470
+ return __awaiter(this, void 0, void 0, function () {
1471
+ var localVarAxiosArgs;
1472
+ return __generator(this, function (_a) {
1473
+ switch (_a.label) {
1474
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePremiumFormula(id, authorization, options)];
1475
+ case 1:
1476
+ localVarAxiosArgs = _a.sent();
1477
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1478
+ }
1479
+ });
1480
+ });
1481
+ },
1206
1482
  /**
1207
1483
  * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
1208
1484
  * @summary Delete the product
@@ -1224,6 +1500,27 @@ var ProductsApiFp = function (configuration) {
1224
1500
  });
1225
1501
  });
1226
1502
  },
1503
+ /**
1504
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
1505
+ * @summary Delete the product
1506
+ * @param {string} id
1507
+ * @param {string} [authorization] Bearer Token
1508
+ * @param {*} [options] Override http request option.
1509
+ * @throws {RequiredError}
1510
+ */
1511
+ deleteProductField: function (id, authorization, options) {
1512
+ return __awaiter(this, void 0, void 0, function () {
1513
+ var localVarAxiosArgs;
1514
+ return __generator(this, function (_a) {
1515
+ switch (_a.label) {
1516
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProductField(id, authorization, options)];
1517
+ case 1:
1518
+ localVarAxiosArgs = _a.sent();
1519
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1520
+ }
1521
+ });
1522
+ });
1523
+ },
1227
1524
  /**
1228
1525
  * Retrieves the details of the premium formula that was previously created. Supply the unique premium formula id that was returned when you created it and Emil Api will return the corresponding premium formula information.
1229
1526
  * @summary Retrieve the premium formula
@@ -1511,6 +1808,28 @@ var ProductsApiFp = function (configuration) {
1511
1808
  });
1512
1809
  });
1513
1810
  },
1811
+ /**
1812
+ * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1813
+ * @summary Update the premium formula
1814
+ * @param {number} id
1815
+ * @param {UpdatePremiumFormulaRequestDto} updatePremiumFormulaRequestDto
1816
+ * @param {string} [authorization] Bearer Token
1817
+ * @param {*} [options] Override http request option.
1818
+ * @throws {RequiredError}
1819
+ */
1820
+ updatePremiumFormula: function (id, updatePremiumFormulaRequestDto, authorization, options) {
1821
+ return __awaiter(this, void 0, void 0, function () {
1822
+ var localVarAxiosArgs;
1823
+ return __generator(this, function (_a) {
1824
+ switch (_a.label) {
1825
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updatePremiumFormula(id, updatePremiumFormulaRequestDto, authorization, options)];
1826
+ case 1:
1827
+ localVarAxiosArgs = _a.sent();
1828
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1829
+ }
1830
+ });
1831
+ });
1832
+ },
1514
1833
  /**
1515
1834
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1516
1835
  * @summary Update the product
@@ -1533,6 +1852,50 @@ var ProductsApiFp = function (configuration) {
1533
1852
  });
1534
1853
  });
1535
1854
  },
1855
+ /**
1856
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1857
+ * @summary Update the product
1858
+ * @param {string} id
1859
+ * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
1860
+ * @param {string} [authorization] Bearer Token
1861
+ * @param {*} [options] Override http request option.
1862
+ * @throws {RequiredError}
1863
+ */
1864
+ updateProductField: function (id, updateProductFieldRequestDto, authorization, options) {
1865
+ return __awaiter(this, void 0, void 0, function () {
1866
+ var localVarAxiosArgs;
1867
+ return __generator(this, function (_a) {
1868
+ switch (_a.label) {
1869
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductField(id, updateProductFieldRequestDto, authorization, options)];
1870
+ case 1:
1871
+ localVarAxiosArgs = _a.sent();
1872
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1873
+ }
1874
+ });
1875
+ });
1876
+ },
1877
+ /**
1878
+ * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1879
+ * @summary Update the product version
1880
+ * @param {number} id
1881
+ * @param {UpdateProductVersionRequestDto} updateProductVersionRequestDto
1882
+ * @param {string} [authorization] Bearer Token
1883
+ * @param {*} [options] Override http request option.
1884
+ * @throws {RequiredError}
1885
+ */
1886
+ updateProductVersion: function (id, updateProductVersionRequestDto, authorization, options) {
1887
+ return __awaiter(this, void 0, void 0, function () {
1888
+ var localVarAxiosArgs;
1889
+ return __generator(this, function (_a) {
1890
+ switch (_a.label) {
1891
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductVersion(id, updateProductVersionRequestDto, authorization, options)];
1892
+ case 1:
1893
+ localVarAxiosArgs = _a.sent();
1894
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1895
+ }
1896
+ });
1897
+ });
1898
+ },
1536
1899
  /**
1537
1900
  * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
1538
1901
  * @summary Validate product factors
@@ -1597,6 +1960,17 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
1597
1960
  createProductField: function (createProductFieldRequestDto, authorization, options) {
1598
1961
  return localVarFp.createProductField(createProductFieldRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1599
1962
  },
1963
+ /**
1964
+ * Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
1965
+ * @summary Delete the premium formula
1966
+ * @param {number} id
1967
+ * @param {string} [authorization] Bearer Token
1968
+ * @param {*} [options] Override http request option.
1969
+ * @throws {RequiredError}
1970
+ */
1971
+ deletePremiumFormula: function (id, authorization, options) {
1972
+ return localVarFp.deletePremiumFormula(id, authorization, options).then(function (request) { return request(axios, basePath); });
1973
+ },
1600
1974
  /**
1601
1975
  * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
1602
1976
  * @summary Delete the product
@@ -1608,6 +1982,17 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
1608
1982
  deleteProduct: function (id, authorization, options) {
1609
1983
  return localVarFp.deleteProduct(id, authorization, options).then(function (request) { return request(axios, basePath); });
1610
1984
  },
1985
+ /**
1986
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
1987
+ * @summary Delete the product
1988
+ * @param {string} id
1989
+ * @param {string} [authorization] Bearer Token
1990
+ * @param {*} [options] Override http request option.
1991
+ * @throws {RequiredError}
1992
+ */
1993
+ deleteProductField: function (id, authorization, options) {
1994
+ return localVarFp.deleteProductField(id, authorization, options).then(function (request) { return request(axios, basePath); });
1995
+ },
1611
1996
  /**
1612
1997
  * Retrieves the details of the premium formula that was previously created. Supply the unique premium formula id that was returned when you created it and Emil Api will return the corresponding premium formula information.
1613
1998
  * @summary Retrieve the premium formula
@@ -1775,6 +2160,18 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
1775
2160
  storeProductFactors: function (authorization, productVersionId, factors, options) {
1776
2161
  return localVarFp.storeProductFactors(authorization, productVersionId, factors, options).then(function (request) { return request(axios, basePath); });
1777
2162
  },
2163
+ /**
2164
+ * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2165
+ * @summary Update the premium formula
2166
+ * @param {number} id
2167
+ * @param {UpdatePremiumFormulaRequestDto} updatePremiumFormulaRequestDto
2168
+ * @param {string} [authorization] Bearer Token
2169
+ * @param {*} [options] Override http request option.
2170
+ * @throws {RequiredError}
2171
+ */
2172
+ updatePremiumFormula: function (id, updatePremiumFormulaRequestDto, authorization, options) {
2173
+ return localVarFp.updatePremiumFormula(id, updatePremiumFormulaRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
2174
+ },
1778
2175
  /**
1779
2176
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1780
2177
  * @summary Update the product
@@ -1787,6 +2184,30 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
1787
2184
  updateProduct: function (id, updateProductRequestDto, authorization, options) {
1788
2185
  return localVarFp.updateProduct(id, updateProductRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
1789
2186
  },
2187
+ /**
2188
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2189
+ * @summary Update the product
2190
+ * @param {string} id
2191
+ * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
2192
+ * @param {string} [authorization] Bearer Token
2193
+ * @param {*} [options] Override http request option.
2194
+ * @throws {RequiredError}
2195
+ */
2196
+ updateProductField: function (id, updateProductFieldRequestDto, authorization, options) {
2197
+ return localVarFp.updateProductField(id, updateProductFieldRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
2198
+ },
2199
+ /**
2200
+ * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2201
+ * @summary Update the product version
2202
+ * @param {number} id
2203
+ * @param {UpdateProductVersionRequestDto} updateProductVersionRequestDto
2204
+ * @param {string} [authorization] Bearer Token
2205
+ * @param {*} [options] Override http request option.
2206
+ * @throws {RequiredError}
2207
+ */
2208
+ updateProductVersion: function (id, updateProductVersionRequestDto, authorization, options) {
2209
+ return localVarFp.updateProductVersion(id, updateProductVersionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
2210
+ },
1790
2211
  /**
1791
2212
  * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
1792
2213
  * @summary Validate product factors
@@ -1848,6 +2269,18 @@ var ProductsApi = /** @class */ (function (_super) {
1848
2269
  var _this = this;
1849
2270
  return (0, exports.ProductsApiFp)(this.configuration).createProductField(requestParameters.createProductFieldRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1850
2271
  };
2272
+ /**
2273
+ * Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
2274
+ * @summary Delete the premium formula
2275
+ * @param {ProductsApiDeletePremiumFormulaRequest} requestParameters Request parameters.
2276
+ * @param {*} [options] Override http request option.
2277
+ * @throws {RequiredError}
2278
+ * @memberof ProductsApi
2279
+ */
2280
+ ProductsApi.prototype.deletePremiumFormula = function (requestParameters, options) {
2281
+ var _this = this;
2282
+ return (0, exports.ProductsApiFp)(this.configuration).deletePremiumFormula(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
2283
+ };
1851
2284
  /**
1852
2285
  * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
1853
2286
  * @summary Delete the product
@@ -1860,6 +2293,18 @@ var ProductsApi = /** @class */ (function (_super) {
1860
2293
  var _this = this;
1861
2294
  return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1862
2295
  };
2296
+ /**
2297
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
2298
+ * @summary Delete the product
2299
+ * @param {ProductsApiDeleteProductFieldRequest} requestParameters Request parameters.
2300
+ * @param {*} [options] Override http request option.
2301
+ * @throws {RequiredError}
2302
+ * @memberof ProductsApi
2303
+ */
2304
+ ProductsApi.prototype.deleteProductField = function (requestParameters, options) {
2305
+ var _this = this;
2306
+ return (0, exports.ProductsApiFp)(this.configuration).deleteProductField(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
2307
+ };
1863
2308
  /**
1864
2309
  * Retrieves the details of the premium formula that was previously created. Supply the unique premium formula id that was returned when you created it and Emil Api will return the corresponding premium formula information.
1865
2310
  * @summary Retrieve the premium formula
@@ -2010,6 +2455,18 @@ var ProductsApi = /** @class */ (function (_super) {
2010
2455
  if (requestParameters === void 0) { requestParameters = {}; }
2011
2456
  return (0, exports.ProductsApiFp)(this.configuration).storeProductFactors(requestParameters.authorization, requestParameters.productVersionId, requestParameters.factors, options).then(function (request) { return request(_this.axios, _this.basePath); });
2012
2457
  };
2458
+ /**
2459
+ * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2460
+ * @summary Update the premium formula
2461
+ * @param {ProductsApiUpdatePremiumFormulaRequest} requestParameters Request parameters.
2462
+ * @param {*} [options] Override http request option.
2463
+ * @throws {RequiredError}
2464
+ * @memberof ProductsApi
2465
+ */
2466
+ ProductsApi.prototype.updatePremiumFormula = function (requestParameters, options) {
2467
+ var _this = this;
2468
+ return (0, exports.ProductsApiFp)(this.configuration).updatePremiumFormula(requestParameters.id, requestParameters.updatePremiumFormulaRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
2469
+ };
2013
2470
  /**
2014
2471
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2015
2472
  * @summary Update the product
@@ -2022,6 +2479,30 @@ var ProductsApi = /** @class */ (function (_super) {
2022
2479
  var _this = this;
2023
2480
  return (0, exports.ProductsApiFp)(this.configuration).updateProduct(requestParameters.id, requestParameters.updateProductRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
2024
2481
  };
2482
+ /**
2483
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2484
+ * @summary Update the product
2485
+ * @param {ProductsApiUpdateProductFieldRequest} requestParameters Request parameters.
2486
+ * @param {*} [options] Override http request option.
2487
+ * @throws {RequiredError}
2488
+ * @memberof ProductsApi
2489
+ */
2490
+ ProductsApi.prototype.updateProductField = function (requestParameters, options) {
2491
+ var _this = this;
2492
+ return (0, exports.ProductsApiFp)(this.configuration).updateProductField(requestParameters.id, requestParameters.updateProductFieldRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
2493
+ };
2494
+ /**
2495
+ * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2496
+ * @summary Update the product version
2497
+ * @param {ProductsApiUpdateProductVersionRequest} requestParameters Request parameters.
2498
+ * @param {*} [options] Override http request option.
2499
+ * @throws {RequiredError}
2500
+ * @memberof ProductsApi
2501
+ */
2502
+ ProductsApi.prototype.updateProductVersion = function (requestParameters, options) {
2503
+ var _this = this;
2504
+ return (0, exports.ProductsApiFp)(this.configuration).updateProductVersion(requestParameters.id, requestParameters.updateProductVersionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
2505
+ };
2025
2506
  /**
2026
2507
  * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
2027
2508
  * @summary Validate product factors
@@ -66,9 +66,12 @@ export * from './update-insured-object-request-dto';
66
66
  export * from './update-policy-request-dto';
67
67
  export * from './update-policy-response-class';
68
68
  export * from './update-premium-formula-request-dto';
69
+ export * from './update-premium-formula-response-class';
69
70
  export * from './update-product-field-request-dto';
71
+ export * from './update-product-field-response-class';
70
72
  export * from './update-product-request-dto';
71
73
  export * from './update-product-response-class';
72
74
  export * from './update-product-version-request-dto';
75
+ export * from './update-product-version-response-class';
73
76
  export * from './uploaded-document-dto';
74
77
  export * from './validate-product-factors-request-dto';
@@ -82,9 +82,12 @@ __exportStar(require("./update-insured-object-request-dto"), exports);
82
82
  __exportStar(require("./update-policy-request-dto"), exports);
83
83
  __exportStar(require("./update-policy-response-class"), exports);
84
84
  __exportStar(require("./update-premium-formula-request-dto"), exports);
85
+ __exportStar(require("./update-premium-formula-response-class"), exports);
85
86
  __exportStar(require("./update-product-field-request-dto"), exports);
87
+ __exportStar(require("./update-product-field-response-class"), exports);
86
88
  __exportStar(require("./update-product-request-dto"), exports);
87
89
  __exportStar(require("./update-product-response-class"), exports);
88
90
  __exportStar(require("./update-product-version-request-dto"), exports);
91
+ __exportStar(require("./update-product-version-response-class"), exports);
89
92
  __exportStar(require("./uploaded-document-dto"), exports);
90
93
  __exportStar(require("./validate-product-factors-request-dto"), exports);
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL InsuranceService
3
+ * The EMIL InsuranceService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PremiumFormulaClass } from './premium-formula-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdatePremiumFormulaResponseClass
17
+ */
18
+ export interface UpdatePremiumFormulaResponseClass {
19
+ /**
20
+ * Premium formula
21
+ * @type {PremiumFormulaClass}
22
+ * @memberof UpdatePremiumFormulaResponseClass
23
+ */
24
+ 'premiumFormula': PremiumFormulaClass;
25
+ }