@emilgroup/insurance-sdk-node 1.0.0

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 (277) hide show
  1. package/.openapi-generator/FILES +97 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/insured-object-types-api.ts +236 -0
  6. package/api/insured-objects-api.ts +446 -0
  7. package/api/leads-api.ts +402 -0
  8. package/api/policies-api.ts +580 -0
  9. package/api/products-api.ts +3027 -0
  10. package/api.ts +44 -0
  11. package/base.ts +189 -0
  12. package/common.ts +138 -0
  13. package/configuration.ts +109 -0
  14. package/dist/api/insured-object-types-api.d.ts +141 -0
  15. package/dist/api/insured-object-types-api.js +258 -0
  16. package/dist/api/insured-objects-api.d.ts +254 -0
  17. package/dist/api/insured-objects-api.js +443 -0
  18. package/dist/api/leads-api.d.ts +225 -0
  19. package/dist/api/leads-api.js +427 -0
  20. package/dist/api/policies-api.d.ts +329 -0
  21. package/dist/api/policies-api.js +548 -0
  22. package/dist/api/products-api.d.ts +1683 -0
  23. package/dist/api/products-api.js +2521 -0
  24. package/dist/api.d.ts +20 -0
  25. package/dist/api.js +40 -0
  26. package/dist/base.d.ts +69 -0
  27. package/dist/base.js +252 -0
  28. package/dist/common.d.ts +66 -0
  29. package/dist/common.js +244 -0
  30. package/dist/configuration.d.ts +90 -0
  31. package/dist/configuration.js +44 -0
  32. package/dist/index.d.ts +15 -0
  33. package/dist/index.js +35 -0
  34. package/dist/models/calculate-custom-premium-request-dto.d.ts +34 -0
  35. package/dist/models/calculate-custom-premium-request-dto.js +19 -0
  36. package/dist/models/calculate-premium-request-dto.d.ts +31 -0
  37. package/dist/models/calculate-premium-request-dto.js +15 -0
  38. package/dist/models/create-account-request-dto.d.ts +84 -0
  39. package/dist/models/create-account-request-dto.js +15 -0
  40. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  41. package/dist/models/create-bank-account-request-dto.js +15 -0
  42. package/dist/models/create-claim-request-dto.d.ts +83 -0
  43. package/dist/models/create-claim-request-dto.js +25 -0
  44. package/dist/models/create-custom-application-request-dto.d.ts +40 -0
  45. package/dist/models/create-custom-application-request-dto.js +19 -0
  46. package/dist/models/create-dummy-policy-request-dto.d.ts +31 -0
  47. package/dist/models/create-dummy-policy-request-dto.js +15 -0
  48. package/dist/models/create-insured-object-request-dto.d.ts +42 -0
  49. package/dist/models/create-insured-object-request-dto.js +15 -0
  50. package/dist/models/create-insured-object-response-class.d.ts +25 -0
  51. package/dist/models/create-insured-object-response-class.js +15 -0
  52. package/dist/models/create-lead-request-dto.d.ts +71 -0
  53. package/dist/models/create-lead-request-dto.js +22 -0
  54. package/dist/models/create-policy-request-dto.d.ts +37 -0
  55. package/dist/models/create-policy-request-dto.js +15 -0
  56. package/dist/models/create-policy-response-class.d.ts +25 -0
  57. package/dist/models/create-policy-response-class.js +15 -0
  58. package/dist/models/create-premium-formula-request-dto.d.ts +65 -0
  59. package/dist/models/create-premium-formula-request-dto.js +25 -0
  60. package/dist/models/create-premium-formula-response-class.d.ts +25 -0
  61. package/dist/models/create-premium-formula-response-class.js +15 -0
  62. package/dist/models/create-product-field-request-dto.d.ts +113 -0
  63. package/dist/models/create-product-field-request-dto.js +20 -0
  64. package/dist/models/create-product-field-response-class.d.ts +25 -0
  65. package/dist/models/create-product-field-response-class.js +15 -0
  66. package/dist/models/create-product-request-dto.d.ts +57 -0
  67. package/dist/models/create-product-request-dto.js +30 -0
  68. package/dist/models/create-product-response-class.d.ts +25 -0
  69. package/dist/models/create-product-response-class.js +15 -0
  70. package/dist/models/csv-product-factor-dto.d.ts +48 -0
  71. package/dist/models/csv-product-factor-dto.js +15 -0
  72. package/dist/models/delete-request-dto.d.ts +24 -0
  73. package/dist/models/delete-request-dto.js +15 -0
  74. package/dist/models/get-insured-object-request-dto.d.ts +24 -0
  75. package/dist/models/get-insured-object-request-dto.js +15 -0
  76. package/dist/models/get-insured-object-response-class.d.ts +25 -0
  77. package/dist/models/get-insured-object-response-class.js +15 -0
  78. package/dist/models/get-policy-request-dto.d.ts +30 -0
  79. package/dist/models/get-policy-request-dto.js +15 -0
  80. package/dist/models/get-policy-response-class.d.ts +25 -0
  81. package/dist/models/get-policy-response-class.js +15 -0
  82. package/dist/models/get-premium-formula-request-dto.d.ts +24 -0
  83. package/dist/models/get-premium-formula-request-dto.js +15 -0
  84. package/dist/models/get-premium-formula-response-class.d.ts +25 -0
  85. package/dist/models/get-premium-formula-response-class.js +15 -0
  86. package/dist/models/get-product-factor-response-class.d.ts +32 -0
  87. package/dist/models/get-product-factor-response-class.js +15 -0
  88. package/dist/models/get-product-factor-value-request-dto.d.ts +42 -0
  89. package/dist/models/get-product-factor-value-request-dto.js +15 -0
  90. package/dist/models/get-product-factor-value-response-class.d.ts +25 -0
  91. package/dist/models/get-product-factor-value-response-class.js +15 -0
  92. package/dist/models/get-product-field-request-dto.d.ts +24 -0
  93. package/dist/models/get-product-field-request-dto.js +15 -0
  94. package/dist/models/get-product-field-response-class.d.ts +25 -0
  95. package/dist/models/get-product-field-response-class.js +15 -0
  96. package/dist/models/get-product-request-dto.d.ts +36 -0
  97. package/dist/models/get-product-request-dto.js +15 -0
  98. package/dist/models/get-product-response-class.d.ts +25 -0
  99. package/dist/models/get-product-response-class.js +15 -0
  100. package/dist/models/get-product-version-request-dto.d.ts +24 -0
  101. package/dist/models/get-product-version-request-dto.js +15 -0
  102. package/dist/models/get-product-version-response-class.d.ts +25 -0
  103. package/dist/models/get-product-version-response-class.js +15 -0
  104. package/dist/models/grouped-product-factor-class.d.ts +37 -0
  105. package/dist/models/grouped-product-factor-class.js +15 -0
  106. package/dist/models/grouped-product-factor-value-class.d.ts +36 -0
  107. package/dist/models/grouped-product-factor-value-class.js +15 -0
  108. package/dist/models/grouped-product-factors-response-class.d.ts +25 -0
  109. package/dist/models/grouped-product-factors-response-class.js +15 -0
  110. package/dist/models/grpc-create-policy-request-dto.d.ts +37 -0
  111. package/dist/models/grpc-create-policy-request-dto.js +15 -0
  112. package/dist/models/index.d.ts +79 -0
  113. package/dist/models/index.js +95 -0
  114. package/dist/models/insured-object-class.d.ts +67 -0
  115. package/dist/models/insured-object-class.js +15 -0
  116. package/dist/models/insured-object-type-class.d.ts +48 -0
  117. package/dist/models/insured-object-type-class.js +15 -0
  118. package/dist/models/list-insured-object-types-response-class.d.ts +31 -0
  119. package/dist/models/list-insured-object-types-response-class.js +15 -0
  120. package/dist/models/list-insured-objects-response-class.d.ts +30 -0
  121. package/dist/models/list-insured-objects-response-class.js +15 -0
  122. package/dist/models/list-policies-response-class.d.ts +31 -0
  123. package/dist/models/list-policies-response-class.js +15 -0
  124. package/dist/models/list-premium-formulas-response-class.d.ts +31 -0
  125. package/dist/models/list-premium-formulas-response-class.js +15 -0
  126. package/dist/models/list-product-factors-response-class.d.ts +31 -0
  127. package/dist/models/list-product-factors-response-class.js +15 -0
  128. package/dist/models/list-product-field-types-response-class.d.ts +30 -0
  129. package/dist/models/list-product-field-types-response-class.js +15 -0
  130. package/dist/models/list-product-fields-response-class.d.ts +31 -0
  131. package/dist/models/list-product-fields-response-class.js +15 -0
  132. package/dist/models/list-products-response-class.d.ts +31 -0
  133. package/dist/models/list-products-response-class.js +15 -0
  134. package/dist/models/list-request-dto.d.ts +54 -0
  135. package/dist/models/list-request-dto.js +15 -0
  136. package/dist/models/policy-class.d.ts +86 -0
  137. package/dist/models/policy-class.js +15 -0
  138. package/dist/models/policy-object-class.d.ts +42 -0
  139. package/dist/models/policy-object-class.js +15 -0
  140. package/dist/models/policy-object-dto.d.ts +30 -0
  141. package/dist/models/policy-object-dto.js +15 -0
  142. package/dist/models/policy-premium-class.d.ts +43 -0
  143. package/dist/models/policy-premium-class.js +15 -0
  144. package/dist/models/policy-premium-item-class.d.ts +49 -0
  145. package/dist/models/policy-premium-item-class.js +15 -0
  146. package/dist/models/policy-version-class.d.ts +55 -0
  147. package/dist/models/policy-version-class.js +15 -0
  148. package/dist/models/premium-formula-class.d.ts +79 -0
  149. package/dist/models/premium-formula-class.js +15 -0
  150. package/dist/models/product-class.d.ts +74 -0
  151. package/dist/models/product-class.js +15 -0
  152. package/dist/models/product-factor-class.d.ts +68 -0
  153. package/dist/models/product-factor-class.js +15 -0
  154. package/dist/models/product-factor-value-class.d.ts +80 -0
  155. package/dist/models/product-factor-value-class.js +15 -0
  156. package/dist/models/product-field-class.d.ts +114 -0
  157. package/dist/models/product-field-class.js +15 -0
  158. package/dist/models/product-version-class.d.ts +54 -0
  159. package/dist/models/product-version-class.js +15 -0
  160. package/dist/models/store-product-factors-request-dto.d.ts +31 -0
  161. package/dist/models/store-product-factors-request-dto.js +15 -0
  162. package/dist/models/store-product-factors-response-class.d.ts +25 -0
  163. package/dist/models/store-product-factors-response-class.js +15 -0
  164. package/dist/models/timeslice-class.d.ts +62 -0
  165. package/dist/models/timeslice-class.js +15 -0
  166. package/dist/models/update-insured-object-request-dto.d.ts +48 -0
  167. package/dist/models/update-insured-object-request-dto.js +15 -0
  168. package/dist/models/update-lead-request-dto.d.ts +71 -0
  169. package/dist/models/update-lead-request-dto.js +22 -0
  170. package/dist/models/update-policy-request-dto.d.ts +43 -0
  171. package/dist/models/update-policy-request-dto.js +15 -0
  172. package/dist/models/update-policy-response-class.d.ts +25 -0
  173. package/dist/models/update-policy-response-class.js +15 -0
  174. package/dist/models/update-premium-formula-request-dto.d.ts +71 -0
  175. package/dist/models/update-premium-formula-request-dto.js +25 -0
  176. package/dist/models/update-premium-formula-response-class.d.ts +25 -0
  177. package/dist/models/update-premium-formula-response-class.js +15 -0
  178. package/dist/models/update-product-field-request-dto.d.ts +119 -0
  179. package/dist/models/update-product-field-request-dto.js +20 -0
  180. package/dist/models/update-product-field-response-class.d.ts +25 -0
  181. package/dist/models/update-product-field-response-class.js +15 -0
  182. package/dist/models/update-product-request-dto.d.ts +42 -0
  183. package/dist/models/update-product-request-dto.js +15 -0
  184. package/dist/models/update-product-response-class.d.ts +25 -0
  185. package/dist/models/update-product-response-class.js +15 -0
  186. package/dist/models/update-product-version-request-dto.d.ts +43 -0
  187. package/dist/models/update-product-version-request-dto.js +22 -0
  188. package/dist/models/update-product-version-response-class.d.ts +25 -0
  189. package/dist/models/update-product-version-response-class.js +15 -0
  190. package/dist/models/uploaded-document-dto.d.ts +24 -0
  191. package/dist/models/uploaded-document-dto.js +15 -0
  192. package/dist/models/validate-product-factors-request-dto.d.ts +31 -0
  193. package/dist/models/validate-product-factors-request-dto.js +15 -0
  194. package/git_push.sh +57 -0
  195. package/index.ts +19 -0
  196. package/models/calculate-custom-premium-request-dto.ts +43 -0
  197. package/models/calculate-premium-request-dto.ts +37 -0
  198. package/models/create-account-request-dto.ts +90 -0
  199. package/models/create-bank-account-request-dto.ts +36 -0
  200. package/models/create-claim-request-dto.ts +93 -0
  201. package/models/create-custom-application-request-dto.ts +49 -0
  202. package/models/create-dummy-policy-request-dto.ts +37 -0
  203. package/models/create-insured-object-request-dto.ts +48 -0
  204. package/models/create-insured-object-response-class.ts +31 -0
  205. package/models/create-lead-request-dto.ts +80 -0
  206. package/models/create-policy-request-dto.ts +43 -0
  207. package/models/create-policy-response-class.ts +31 -0
  208. package/models/create-premium-formula-request-dto.ts +75 -0
  209. package/models/create-premium-formula-response-class.ts +31 -0
  210. package/models/create-product-field-request-dto.ts +122 -0
  211. package/models/create-product-field-response-class.ts +31 -0
  212. package/models/create-product-request-dto.ts +66 -0
  213. package/models/create-product-response-class.ts +31 -0
  214. package/models/csv-product-factor-dto.ts +54 -0
  215. package/models/delete-request-dto.ts +30 -0
  216. package/models/get-insured-object-request-dto.ts +30 -0
  217. package/models/get-insured-object-response-class.ts +31 -0
  218. package/models/get-policy-request-dto.ts +36 -0
  219. package/models/get-policy-response-class.ts +31 -0
  220. package/models/get-premium-formula-request-dto.ts +30 -0
  221. package/models/get-premium-formula-response-class.ts +31 -0
  222. package/models/get-product-factor-response-class.ts +38 -0
  223. package/models/get-product-factor-value-request-dto.ts +48 -0
  224. package/models/get-product-factor-value-response-class.ts +31 -0
  225. package/models/get-product-field-request-dto.ts +30 -0
  226. package/models/get-product-field-response-class.ts +31 -0
  227. package/models/get-product-request-dto.ts +42 -0
  228. package/models/get-product-response-class.ts +31 -0
  229. package/models/get-product-version-request-dto.ts +30 -0
  230. package/models/get-product-version-response-class.ts +31 -0
  231. package/models/grouped-product-factor-class.ts +43 -0
  232. package/models/grouped-product-factor-value-class.ts +42 -0
  233. package/models/grouped-product-factors-response-class.ts +31 -0
  234. package/models/grpc-create-policy-request-dto.ts +43 -0
  235. package/models/index.ts +79 -0
  236. package/models/insured-object-class.ts +73 -0
  237. package/models/insured-object-type-class.ts +54 -0
  238. package/models/list-insured-object-types-response-class.ts +37 -0
  239. package/models/list-insured-objects-response-class.ts +36 -0
  240. package/models/list-policies-response-class.ts +37 -0
  241. package/models/list-premium-formulas-response-class.ts +37 -0
  242. package/models/list-product-factors-response-class.ts +37 -0
  243. package/models/list-product-field-types-response-class.ts +36 -0
  244. package/models/list-product-fields-response-class.ts +37 -0
  245. package/models/list-products-response-class.ts +37 -0
  246. package/models/list-request-dto.ts +60 -0
  247. package/models/policy-class.ts +92 -0
  248. package/models/policy-object-class.ts +48 -0
  249. package/models/policy-object-dto.ts +36 -0
  250. package/models/policy-premium-class.ts +49 -0
  251. package/models/policy-premium-item-class.ts +55 -0
  252. package/models/policy-version-class.ts +61 -0
  253. package/models/premium-formula-class.ts +85 -0
  254. package/models/product-class.ts +80 -0
  255. package/models/product-factor-class.ts +74 -0
  256. package/models/product-factor-value-class.ts +86 -0
  257. package/models/product-field-class.ts +120 -0
  258. package/models/product-version-class.ts +60 -0
  259. package/models/store-product-factors-request-dto.ts +37 -0
  260. package/models/store-product-factors-response-class.ts +31 -0
  261. package/models/timeslice-class.ts +68 -0
  262. package/models/update-insured-object-request-dto.ts +54 -0
  263. package/models/update-lead-request-dto.ts +80 -0
  264. package/models/update-policy-request-dto.ts +49 -0
  265. package/models/update-policy-response-class.ts +31 -0
  266. package/models/update-premium-formula-request-dto.ts +81 -0
  267. package/models/update-premium-formula-response-class.ts +31 -0
  268. package/models/update-product-field-request-dto.ts +128 -0
  269. package/models/update-product-field-response-class.ts +31 -0
  270. package/models/update-product-request-dto.ts +48 -0
  271. package/models/update-product-response-class.ts +31 -0
  272. package/models/update-product-version-request-dto.ts +52 -0
  273. package/models/update-product-version-response-class.ts +31 -0
  274. package/models/uploaded-document-dto.ts +30 -0
  275. package/models/validate-product-factors-request-dto.ts +37 -0
  276. package/package.json +29 -0
  277. package/tsconfig.json +22 -0
@@ -0,0 +1,3027 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL InsuranceService
5
+ * The EMIL InsuranceService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreatePremiumFormulaRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreatePremiumFormulaResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { CreateProductFieldRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { CreateProductFieldResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { CreateProductRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { CreateProductResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { GetPremiumFormulaResponseClass } from '../models';
37
+ // @ts-ignore
38
+ import { GetProductFactorResponseClass } from '../models';
39
+ // @ts-ignore
40
+ import { GetProductFactorValueResponseClass } from '../models';
41
+ // @ts-ignore
42
+ import { GetProductFieldResponseClass } from '../models';
43
+ // @ts-ignore
44
+ import { GetProductResponseClass } from '../models';
45
+ // @ts-ignore
46
+ import { GetProductVersionResponseClass } from '../models';
47
+ // @ts-ignore
48
+ import { GroupedProductFactorsResponseClass } from '../models';
49
+ // @ts-ignore
50
+ import { ListPremiumFormulasResponseClass } from '../models';
51
+ // @ts-ignore
52
+ import { ListProductFactorsResponseClass } from '../models';
53
+ // @ts-ignore
54
+ import { ListProductFieldTypesResponseClass } from '../models';
55
+ // @ts-ignore
56
+ import { ListProductFieldsResponseClass } from '../models';
57
+ // @ts-ignore
58
+ import { ListProductsResponseClass } from '../models';
59
+ // @ts-ignore
60
+ import { StoreProductFactorsResponseClass } from '../models';
61
+ // @ts-ignore
62
+ import { UpdatePremiumFormulaRequestDto } from '../models';
63
+ // @ts-ignore
64
+ import { UpdatePremiumFormulaResponseClass } from '../models';
65
+ // @ts-ignore
66
+ import { UpdateProductFieldRequestDto } from '../models';
67
+ // @ts-ignore
68
+ import { UpdateProductFieldResponseClass } from '../models';
69
+ // @ts-ignore
70
+ import { UpdateProductRequestDto } from '../models';
71
+ // @ts-ignore
72
+ import { UpdateProductResponseClass } from '../models';
73
+ // @ts-ignore
74
+ import { UpdateProductVersionRequestDto } from '../models';
75
+ // @ts-ignore
76
+ import { UpdateProductVersionResponseClass } from '../models';
77
+ // URLSearchParams not necessarily used
78
+ // @ts-ignore
79
+ import { URL, URLSearchParams } from 'url';
80
+ const FormData = require('form-data');
81
+ /**
82
+ * ProductsApi - axios parameter creator
83
+ * @export
84
+ */
85
+ export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {
86
+ return {
87
+ /**
88
+ * Creates a premium formula.
89
+ * @summary Create the premium formula
90
+ * @param {CreatePremiumFormulaRequestDto} createPremiumFormulaRequestDto
91
+ * @param {string} [authorization] Bearer Token
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ createPremiumFormula: async (createPremiumFormulaRequestDto: CreatePremiumFormulaRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
+ // verify required parameter 'createPremiumFormulaRequestDto' is not null or undefined
97
+ assertParamExists('createPremiumFormula', 'createPremiumFormulaRequestDto', createPremiumFormulaRequestDto)
98
+ const localVarPath = `/insuranceservice/v1/premium-formulas`;
99
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
100
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
101
+ let baseOptions;
102
+ let baseAccessToken;
103
+ if (configuration) {
104
+ baseOptions = configuration.baseOptions;
105
+ baseAccessToken = configuration.accessToken;
106
+ }
107
+
108
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
109
+ const localVarHeaderParameter = {} as any;
110
+ const localVarQueryParameter = {} as any;
111
+
112
+ // authentication bearer required
113
+ // http bearer authentication required
114
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
115
+
116
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
117
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
118
+ }
119
+
120
+
121
+
122
+ localVarHeaderParameter['Content-Type'] = 'application/json';
123
+
124
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
127
+ localVarRequestOptions.data = serializeDataIfNeeded(createPremiumFormulaRequestDto, localVarRequestOptions, configuration)
128
+
129
+ return {
130
+ url: toPathString(localVarUrlObj),
131
+ options: localVarRequestOptions,
132
+ };
133
+ },
134
+ /**
135
+ * Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
136
+ * @summary Create the product
137
+ * @param {CreateProductRequestDto} createProductRequestDto
138
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ createProduct: async (createProductRequestDto: CreateProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
143
+ // verify required parameter 'createProductRequestDto' is not null or undefined
144
+ assertParamExists('createProduct', 'createProductRequestDto', createProductRequestDto)
145
+ const localVarPath = `/insuranceservice/v1/products`;
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ let baseAccessToken;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ baseAccessToken = configuration.accessToken;
153
+ }
154
+
155
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
156
+ const localVarHeaderParameter = {} as any;
157
+ const localVarQueryParameter = {} as any;
158
+
159
+ // authentication bearer required
160
+ // http bearer authentication required
161
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
+
163
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
165
+ }
166
+
167
+
168
+
169
+ localVarHeaderParameter['Content-Type'] = 'application/json';
170
+
171
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
172
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
173
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
174
+ localVarRequestOptions.data = serializeDataIfNeeded(createProductRequestDto, localVarRequestOptions, configuration)
175
+
176
+ return {
177
+ url: toPathString(localVarUrlObj),
178
+ options: localVarRequestOptions,
179
+ };
180
+ },
181
+ /**
182
+ * Create a product field in the database.
183
+ * @summary Create the product field
184
+ * @param {CreateProductFieldRequestDto} createProductFieldRequestDto
185
+ * @param {string} [authorization] Bearer Token
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ */
189
+ createProductField: async (createProductFieldRequestDto: CreateProductFieldRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
190
+ // verify required parameter 'createProductFieldRequestDto' is not null or undefined
191
+ assertParamExists('createProductField', 'createProductFieldRequestDto', createProductFieldRequestDto)
192
+ const localVarPath = `/insuranceservice/v1/product-fields`;
193
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
194
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
195
+ let baseOptions;
196
+ let baseAccessToken;
197
+ if (configuration) {
198
+ baseOptions = configuration.baseOptions;
199
+ baseAccessToken = configuration.accessToken;
200
+ }
201
+
202
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
203
+ const localVarHeaderParameter = {} as any;
204
+ const localVarQueryParameter = {} as any;
205
+
206
+ // authentication bearer required
207
+ // http bearer authentication required
208
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
209
+
210
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
211
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
212
+ }
213
+
214
+
215
+
216
+ localVarHeaderParameter['Content-Type'] = 'application/json';
217
+
218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
220
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
221
+ localVarRequestOptions.data = serializeDataIfNeeded(createProductFieldRequestDto, localVarRequestOptions, configuration)
222
+
223
+ return {
224
+ url: toPathString(localVarUrlObj),
225
+ options: localVarRequestOptions,
226
+ };
227
+ },
228
+ /**
229
+ * Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
230
+ * @summary Delete the premium formula
231
+ * @param {number} id
232
+ * @param {string} [authorization] Bearer Token
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ deletePremiumFormula: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
237
+ // verify required parameter 'id' is not null or undefined
238
+ assertParamExists('deletePremiumFormula', 'id', id)
239
+ const localVarPath = `/insuranceservice/v1/premium-formulas/{id}`
240
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
242
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
243
+ let baseOptions;
244
+ let baseAccessToken;
245
+ if (configuration) {
246
+ baseOptions = configuration.baseOptions;
247
+ baseAccessToken = configuration.accessToken;
248
+ }
249
+
250
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
251
+ const localVarHeaderParameter = {} as any;
252
+ const localVarQueryParameter = {} as any;
253
+
254
+ // authentication bearer required
255
+ // http bearer authentication required
256
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
257
+
258
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
259
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
260
+ }
261
+
262
+
263
+
264
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
265
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
266
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
267
+
268
+ return {
269
+ url: toPathString(localVarUrlObj),
270
+ options: localVarRequestOptions,
271
+ };
272
+ },
273
+ /**
274
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
275
+ * @summary Delete the product
276
+ * @param {number} id
277
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ deleteProduct: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
282
+ // verify required parameter 'id' is not null or undefined
283
+ assertParamExists('deleteProduct', 'id', id)
284
+ const localVarPath = `/insuranceservice/v1/products/{id}`
285
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
286
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
287
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
288
+ let baseOptions;
289
+ let baseAccessToken;
290
+ if (configuration) {
291
+ baseOptions = configuration.baseOptions;
292
+ baseAccessToken = configuration.accessToken;
293
+ }
294
+
295
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
296
+ const localVarHeaderParameter = {} as any;
297
+ const localVarQueryParameter = {} as any;
298
+
299
+ // authentication bearer required
300
+ // http bearer authentication required
301
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
302
+
303
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
304
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
305
+ }
306
+
307
+
308
+
309
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
310
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
311
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
312
+
313
+ return {
314
+ url: toPathString(localVarUrlObj),
315
+ options: localVarRequestOptions,
316
+ };
317
+ },
318
+ /**
319
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
320
+ * @summary Delete the product
321
+ * @param {string} id
322
+ * @param {string} [authorization] Bearer Token
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ deleteProductField: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
327
+ // verify required parameter 'id' is not null or undefined
328
+ assertParamExists('deleteProductField', 'id', id)
329
+ const localVarPath = `/insuranceservice/v1/product-fields/{id}`
330
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
331
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
332
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
333
+ let baseOptions;
334
+ let baseAccessToken;
335
+ if (configuration) {
336
+ baseOptions = configuration.baseOptions;
337
+ baseAccessToken = configuration.accessToken;
338
+ }
339
+
340
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
341
+ const localVarHeaderParameter = {} as any;
342
+ const localVarQueryParameter = {} as any;
343
+
344
+ // authentication bearer required
345
+ // http bearer authentication required
346
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
347
+
348
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
349
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
350
+ }
351
+
352
+
353
+
354
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
355
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
356
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
357
+
358
+ return {
359
+ url: toPathString(localVarUrlObj),
360
+ options: localVarRequestOptions,
361
+ };
362
+ },
363
+ /**
364
+ * 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.
365
+ * @summary Retrieve the premium formula
366
+ * @param {string} id
367
+ * @param {number} id2 Product formula id
368
+ * @param {string} [authorization] Bearer Token
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ getPremiumFormula: async (id: string, id2: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
373
+ // verify required parameter 'id' is not null or undefined
374
+ assertParamExists('getPremiumFormula', 'id', id)
375
+ // verify required parameter 'id2' is not null or undefined
376
+ assertParamExists('getPremiumFormula', 'id2', id2)
377
+ const localVarPath = `/insuranceservice/v1/premium-formulas/{id}`
378
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
379
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
380
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
381
+ let baseOptions;
382
+ let baseAccessToken;
383
+ if (configuration) {
384
+ baseOptions = configuration.baseOptions;
385
+ baseAccessToken = configuration.accessToken;
386
+ }
387
+
388
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
389
+ const localVarHeaderParameter = {} as any;
390
+ const localVarQueryParameter = {} as any;
391
+
392
+ // authentication bearer required
393
+ // http bearer authentication required
394
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
395
+
396
+ if (id2 !== undefined) {
397
+ localVarQueryParameter['id'] = id2;
398
+ }
399
+
400
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
401
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
402
+ }
403
+
404
+
405
+
406
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
407
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
408
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
409
+
410
+ return {
411
+ url: toPathString(localVarUrlObj),
412
+ options: localVarRequestOptions,
413
+ };
414
+ },
415
+ /**
416
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
417
+ * @summary Retrieve the product
418
+ * @param {string} code Unique identifier for the object.
419
+ * @param {number} id Product id
420
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
421
+ * @param {string} [expand] Fields to expand response by
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ */
425
+ getProductByCode: async (code: string, id: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
426
+ // verify required parameter 'code' is not null or undefined
427
+ assertParamExists('getProductByCode', 'code', code)
428
+ // verify required parameter 'id' is not null or undefined
429
+ assertParamExists('getProductByCode', 'id', id)
430
+ const localVarPath = `/insuranceservice/v1/products/code/{code}`
431
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
432
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
433
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
434
+ let baseOptions;
435
+ let baseAccessToken;
436
+ if (configuration) {
437
+ baseOptions = configuration.baseOptions;
438
+ baseAccessToken = configuration.accessToken;
439
+ }
440
+
441
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
442
+ const localVarHeaderParameter = {} as any;
443
+ const localVarQueryParameter = {} as any;
444
+
445
+ // authentication bearer required
446
+ // http bearer authentication required
447
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
448
+
449
+ if (id !== undefined) {
450
+ localVarQueryParameter['id'] = id;
451
+ }
452
+
453
+ if (expand !== undefined) {
454
+ localVarQueryParameter['expand'] = expand;
455
+ }
456
+
457
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
458
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
459
+ }
460
+
461
+
462
+
463
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
464
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
465
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
466
+
467
+ return {
468
+ url: toPathString(localVarUrlObj),
469
+ options: localVarRequestOptions,
470
+ };
471
+ },
472
+ /**
473
+ * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
474
+ * @summary Retrieve the product factor
475
+ * @param {number} id
476
+ * @param {number} id2 Product factor id
477
+ * @param {string} [authorization] Bearer Token
478
+ * @param {string} [expand] Fields to expand response by
479
+ * @param {*} [options] Override http request option.
480
+ * @throws {RequiredError}
481
+ */
482
+ getProductFactor: async (id: number, id2: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
483
+ // verify required parameter 'id' is not null or undefined
484
+ assertParamExists('getProductFactor', 'id', id)
485
+ // verify required parameter 'id2' is not null or undefined
486
+ assertParamExists('getProductFactor', 'id2', id2)
487
+ const localVarPath = `/insuranceservice/v1/product-factors/{id}`
488
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
489
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
490
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
491
+ let baseOptions;
492
+ let baseAccessToken;
493
+ if (configuration) {
494
+ baseOptions = configuration.baseOptions;
495
+ baseAccessToken = configuration.accessToken;
496
+ }
497
+
498
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
499
+ const localVarHeaderParameter = {} as any;
500
+ const localVarQueryParameter = {} as any;
501
+
502
+ // authentication bearer required
503
+ // http bearer authentication required
504
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
505
+
506
+ if (id2 !== undefined) {
507
+ localVarQueryParameter['id'] = id2;
508
+ }
509
+
510
+ if (expand !== undefined) {
511
+ localVarQueryParameter['expand'] = expand;
512
+ }
513
+
514
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
515
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
516
+ }
517
+
518
+
519
+
520
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
521
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
522
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
523
+
524
+ return {
525
+ url: toPathString(localVarUrlObj),
526
+ options: localVarRequestOptions,
527
+ };
528
+ },
529
+ /**
530
+ * Get the value corresponding to a specific product factor.
531
+ * @summary Get product factor value
532
+ * @param {number} productVersionId Product Version Id
533
+ * @param {string} label Product factor label
534
+ * @param {string} key Key for the product factor value
535
+ * @param {string} name Name for the product factor value
536
+ * @param {string} [authorization] Bearer Token
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ getProductFactorValue: async (productVersionId: number, label: string, key: string, name: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
541
+ // verify required parameter 'productVersionId' is not null or undefined
542
+ assertParamExists('getProductFactorValue', 'productVersionId', productVersionId)
543
+ // verify required parameter 'label' is not null or undefined
544
+ assertParamExists('getProductFactorValue', 'label', label)
545
+ // verify required parameter 'key' is not null or undefined
546
+ assertParamExists('getProductFactorValue', 'key', key)
547
+ // verify required parameter 'name' is not null or undefined
548
+ assertParamExists('getProductFactorValue', 'name', name)
549
+ const localVarPath = `/insuranceservice/v1/product-factors/values`;
550
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
551
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
552
+ let baseOptions;
553
+ let baseAccessToken;
554
+ if (configuration) {
555
+ baseOptions = configuration.baseOptions;
556
+ baseAccessToken = configuration.accessToken;
557
+ }
558
+
559
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
560
+ const localVarHeaderParameter = {} as any;
561
+ const localVarQueryParameter = {} as any;
562
+
563
+ // authentication bearer required
564
+ // http bearer authentication required
565
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
566
+
567
+ if (productVersionId !== undefined) {
568
+ localVarQueryParameter['productVersionId'] = productVersionId;
569
+ }
570
+
571
+ if (label !== undefined) {
572
+ localVarQueryParameter['label'] = label;
573
+ }
574
+
575
+ if (key !== undefined) {
576
+ localVarQueryParameter['key'] = key;
577
+ }
578
+
579
+ if (name !== undefined) {
580
+ localVarQueryParameter['name'] = name;
581
+ }
582
+
583
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
584
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
585
+ }
586
+
587
+
588
+
589
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
590
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
591
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
592
+
593
+ return {
594
+ url: toPathString(localVarUrlObj),
595
+ options: localVarRequestOptions,
596
+ };
597
+ },
598
+ /**
599
+ * Retrieves the details of the product field that was previously created. Supply the unique product field id that was returned when you created it and Emil Api will return the corresponding product field information.
600
+ * @summary Retrieve the product field
601
+ * @param {string} id
602
+ * @param {string} [authorization] Bearer Token
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ */
606
+ getProductField: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
607
+ // verify required parameter 'id' is not null or undefined
608
+ assertParamExists('getProductField', 'id', id)
609
+ const localVarPath = `/insuranceservice/v1/product-fields/{id}`
610
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
611
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
612
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
613
+ let baseOptions;
614
+ let baseAccessToken;
615
+ if (configuration) {
616
+ baseOptions = configuration.baseOptions;
617
+ baseAccessToken = configuration.accessToken;
618
+ }
619
+
620
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
621
+ const localVarHeaderParameter = {} as any;
622
+ const localVarQueryParameter = {} as any;
623
+
624
+ // authentication bearer required
625
+ // http bearer authentication required
626
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
627
+
628
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
629
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
630
+ }
631
+
632
+
633
+
634
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
635
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
636
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
637
+
638
+ return {
639
+ url: toPathString(localVarUrlObj),
640
+ options: localVarRequestOptions,
641
+ };
642
+ },
643
+ /**
644
+ * Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
645
+ * @summary Retrieve the product version
646
+ * @param {string} id
647
+ * @param {number} id2 Product version id
648
+ * @param {string} [authorization] Bearer Token
649
+ * @param {*} [options] Override http request option.
650
+ * @throws {RequiredError}
651
+ */
652
+ getProductVersion: async (id: string, id2: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
653
+ // verify required parameter 'id' is not null or undefined
654
+ assertParamExists('getProductVersion', 'id', id)
655
+ // verify required parameter 'id2' is not null or undefined
656
+ assertParamExists('getProductVersion', 'id2', id2)
657
+ const localVarPath = `/insuranceservice/v1/product-versions/{id}`
658
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
659
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
660
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
661
+ let baseOptions;
662
+ let baseAccessToken;
663
+ if (configuration) {
664
+ baseOptions = configuration.baseOptions;
665
+ baseAccessToken = configuration.accessToken;
666
+ }
667
+
668
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
669
+ const localVarHeaderParameter = {} as any;
670
+ const localVarQueryParameter = {} as any;
671
+
672
+ // authentication bearer required
673
+ // http bearer authentication required
674
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
675
+
676
+ if (id2 !== undefined) {
677
+ localVarQueryParameter['id'] = id2;
678
+ }
679
+
680
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
681
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
682
+ }
683
+
684
+
685
+
686
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
687
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
688
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
689
+
690
+ return {
691
+ url: toPathString(localVarUrlObj),
692
+ options: localVarRequestOptions,
693
+ };
694
+ },
695
+ /**
696
+ * Returns a list of premium formulas you have previously created. The premium formulas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
697
+ * @summary List premium formulas
698
+ * @param {string} [authorization] Bearer Token
699
+ * @param {number} [pageSize] Page size
700
+ * @param {string} [pageToken] Page token
701
+ * @param {string} [filter] List filter
702
+ * @param {string} [search] Search query
703
+ * @param {string} [order] Ordering criteria
704
+ * @param {string} [expand] Extra fields to fetch
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ */
708
+ listPremiumFormulas: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
709
+ const localVarPath = `/insuranceservice/v1/premium-formulas`;
710
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
711
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
712
+ let baseOptions;
713
+ let baseAccessToken;
714
+ if (configuration) {
715
+ baseOptions = configuration.baseOptions;
716
+ baseAccessToken = configuration.accessToken;
717
+ }
718
+
719
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
720
+ const localVarHeaderParameter = {} as any;
721
+ const localVarQueryParameter = {} as any;
722
+
723
+ // authentication bearer required
724
+ // http bearer authentication required
725
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
726
+
727
+ if (pageSize !== undefined) {
728
+ localVarQueryParameter['pageSize'] = pageSize;
729
+ }
730
+
731
+ if (pageToken !== undefined) {
732
+ localVarQueryParameter['pageToken'] = pageToken;
733
+ }
734
+
735
+ if (filter !== undefined) {
736
+ localVarQueryParameter['filter'] = filter;
737
+ }
738
+
739
+ if (search !== undefined) {
740
+ localVarQueryParameter['search'] = search;
741
+ }
742
+
743
+ if (order !== undefined) {
744
+ localVarQueryParameter['order'] = order;
745
+ }
746
+
747
+ if (expand !== undefined) {
748
+ localVarQueryParameter['expand'] = expand;
749
+ }
750
+
751
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
752
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
753
+ }
754
+
755
+
756
+
757
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
758
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
759
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
760
+
761
+ return {
762
+ url: toPathString(localVarUrlObj),
763
+ options: localVarRequestOptions,
764
+ };
765
+ },
766
+ /**
767
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
768
+ * @summary List product factors
769
+ * @param {string} [authorization] Bearer Token
770
+ * @param {number} [pageSize] Page size
771
+ * @param {string} [pageToken] Page token
772
+ * @param {string} [filter] List filter
773
+ * @param {string} [search] Search query
774
+ * @param {string} [order] Ordering criteria
775
+ * @param {string} [expand] Extra fields to fetch
776
+ * @param {*} [options] Override http request option.
777
+ * @throws {RequiredError}
778
+ */
779
+ listProductFactors: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
780
+ const localVarPath = `/insuranceservice/v1/product-factors`;
781
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
782
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
783
+ let baseOptions;
784
+ let baseAccessToken;
785
+ if (configuration) {
786
+ baseOptions = configuration.baseOptions;
787
+ baseAccessToken = configuration.accessToken;
788
+ }
789
+
790
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
791
+ const localVarHeaderParameter = {} as any;
792
+ const localVarQueryParameter = {} as any;
793
+
794
+ // authentication bearer required
795
+ // http bearer authentication required
796
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
797
+
798
+ if (pageSize !== undefined) {
799
+ localVarQueryParameter['pageSize'] = pageSize;
800
+ }
801
+
802
+ if (pageToken !== undefined) {
803
+ localVarQueryParameter['pageToken'] = pageToken;
804
+ }
805
+
806
+ if (filter !== undefined) {
807
+ localVarQueryParameter['filter'] = filter;
808
+ }
809
+
810
+ if (search !== undefined) {
811
+ localVarQueryParameter['search'] = search;
812
+ }
813
+
814
+ if (order !== undefined) {
815
+ localVarQueryParameter['order'] = order;
816
+ }
817
+
818
+ if (expand !== undefined) {
819
+ localVarQueryParameter['expand'] = expand;
820
+ }
821
+
822
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
823
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
824
+ }
825
+
826
+
827
+
828
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
829
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
830
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
831
+
832
+ return {
833
+ url: toPathString(localVarUrlObj),
834
+ options: localVarRequestOptions,
835
+ };
836
+ },
837
+ /**
838
+ * Returns a list of product field types you have previously created. The product field types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
839
+ * @summary List product field types
840
+ * @param {string} [authorization] Bearer Token
841
+ * @param {number} [pageSize] Page size
842
+ * @param {string} [pageToken] Page token
843
+ * @param {string} [filter] List filter
844
+ * @param {string} [search] Search query
845
+ * @param {string} [order] Ordering criteria
846
+ * @param {string} [expand] Extra fields to fetch
847
+ * @param {*} [options] Override http request option.
848
+ * @throws {RequiredError}
849
+ */
850
+ listProductFieldTypes: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
851
+ const localVarPath = `/insuranceservice/v1/product-fields/types`;
852
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
853
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
854
+ let baseOptions;
855
+ let baseAccessToken;
856
+ if (configuration) {
857
+ baseOptions = configuration.baseOptions;
858
+ baseAccessToken = configuration.accessToken;
859
+ }
860
+
861
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
862
+ const localVarHeaderParameter = {} as any;
863
+ const localVarQueryParameter = {} as any;
864
+
865
+ // authentication bearer required
866
+ // http bearer authentication required
867
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
868
+
869
+ if (pageSize !== undefined) {
870
+ localVarQueryParameter['pageSize'] = pageSize;
871
+ }
872
+
873
+ if (pageToken !== undefined) {
874
+ localVarQueryParameter['pageToken'] = pageToken;
875
+ }
876
+
877
+ if (filter !== undefined) {
878
+ localVarQueryParameter['filter'] = filter;
879
+ }
880
+
881
+ if (search !== undefined) {
882
+ localVarQueryParameter['search'] = search;
883
+ }
884
+
885
+ if (order !== undefined) {
886
+ localVarQueryParameter['order'] = order;
887
+ }
888
+
889
+ if (expand !== undefined) {
890
+ localVarQueryParameter['expand'] = expand;
891
+ }
892
+
893
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
894
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
895
+ }
896
+
897
+
898
+
899
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
900
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
901
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
902
+
903
+ return {
904
+ url: toPathString(localVarUrlObj),
905
+ options: localVarRequestOptions,
906
+ };
907
+ },
908
+ /**
909
+ * Returns a list of product fields you have previously created. The product fields are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
910
+ * @summary List product fields
911
+ * @param {string} [authorization] Bearer Token
912
+ * @param {number} [pageSize] Page size
913
+ * @param {string} [pageToken] Page token
914
+ * @param {string} [filter] List filter
915
+ * @param {string} [search] Search query
916
+ * @param {string} [order] Ordering criteria
917
+ * @param {string} [expand] Extra fields to fetch
918
+ * @param {*} [options] Override http request option.
919
+ * @throws {RequiredError}
920
+ */
921
+ listProductFields: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
922
+ const localVarPath = `/insuranceservice/v1/product-fields`;
923
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
924
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
925
+ let baseOptions;
926
+ let baseAccessToken;
927
+ if (configuration) {
928
+ baseOptions = configuration.baseOptions;
929
+ baseAccessToken = configuration.accessToken;
930
+ }
931
+
932
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
933
+ const localVarHeaderParameter = {} as any;
934
+ const localVarQueryParameter = {} as any;
935
+
936
+ // authentication bearer required
937
+ // http bearer authentication required
938
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
939
+
940
+ if (pageSize !== undefined) {
941
+ localVarQueryParameter['pageSize'] = pageSize;
942
+ }
943
+
944
+ if (pageToken !== undefined) {
945
+ localVarQueryParameter['pageToken'] = pageToken;
946
+ }
947
+
948
+ if (filter !== undefined) {
949
+ localVarQueryParameter['filter'] = filter;
950
+ }
951
+
952
+ if (search !== undefined) {
953
+ localVarQueryParameter['search'] = search;
954
+ }
955
+
956
+ if (order !== undefined) {
957
+ localVarQueryParameter['order'] = order;
958
+ }
959
+
960
+ if (expand !== undefined) {
961
+ localVarQueryParameter['expand'] = expand;
962
+ }
963
+
964
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
965
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
966
+ }
967
+
968
+
969
+
970
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
971
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
972
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
973
+
974
+ return {
975
+ url: toPathString(localVarUrlObj),
976
+ options: localVarRequestOptions,
977
+ };
978
+ },
979
+ /**
980
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
981
+ * @summary List products
982
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
983
+ * @param {number} [pageSize] Page size
984
+ * @param {string} [pageToken] Page token
985
+ * @param {string} [filter] List filter
986
+ * @param {string} [search] Search query
987
+ * @param {string} [order] Ordering criteria
988
+ * @param {string} [expand] Extra fields to fetch
989
+ * @param {*} [options] Override http request option.
990
+ * @throws {RequiredError}
991
+ */
992
+ listProducts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
993
+ const localVarPath = `/insuranceservice/v1/products`;
994
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
995
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
996
+ let baseOptions;
997
+ let baseAccessToken;
998
+ if (configuration) {
999
+ baseOptions = configuration.baseOptions;
1000
+ baseAccessToken = configuration.accessToken;
1001
+ }
1002
+
1003
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1004
+ const localVarHeaderParameter = {} as any;
1005
+ const localVarQueryParameter = {} as any;
1006
+
1007
+ // authentication bearer required
1008
+ // http bearer authentication required
1009
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1010
+
1011
+ if (pageSize !== undefined) {
1012
+ localVarQueryParameter['pageSize'] = pageSize;
1013
+ }
1014
+
1015
+ if (pageToken !== undefined) {
1016
+ localVarQueryParameter['pageToken'] = pageToken;
1017
+ }
1018
+
1019
+ if (filter !== undefined) {
1020
+ localVarQueryParameter['filter'] = filter;
1021
+ }
1022
+
1023
+ if (search !== undefined) {
1024
+ localVarQueryParameter['search'] = search;
1025
+ }
1026
+
1027
+ if (order !== undefined) {
1028
+ localVarQueryParameter['order'] = order;
1029
+ }
1030
+
1031
+ if (expand !== undefined) {
1032
+ localVarQueryParameter['expand'] = expand;
1033
+ }
1034
+
1035
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
1036
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
1037
+ }
1038
+
1039
+
1040
+
1041
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1042
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1043
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1044
+
1045
+ return {
1046
+ url: toPathString(localVarUrlObj),
1047
+ options: localVarRequestOptions,
1048
+ };
1049
+ },
1050
+ /**
1051
+ * Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
1052
+ * @summary Upload product factors
1053
+ * @param {string} [authorization] Bearer Token
1054
+ * @param {number} [productVersionId]
1055
+ * @param {any} [factors]
1056
+ * @param {*} [options] Override http request option.
1057
+ * @throws {RequiredError}
1058
+ */
1059
+ storeProductFactors: async (authorization?: string, productVersionId?: number, factors?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1060
+ const localVarPath = `/insuranceservice/v1/product-factors`;
1061
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1062
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1063
+ let baseOptions;
1064
+ let baseAccessToken;
1065
+ if (configuration) {
1066
+ baseOptions = configuration.baseOptions;
1067
+ baseAccessToken = configuration.accessToken;
1068
+ }
1069
+
1070
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1071
+ const localVarHeaderParameter = {} as any;
1072
+ const localVarQueryParameter = {} as any;
1073
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1074
+
1075
+ // authentication bearer required
1076
+ // http bearer authentication required
1077
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1078
+
1079
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
1080
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
1081
+ }
1082
+
1083
+
1084
+ if (productVersionId !== undefined) {
1085
+ localVarFormParams.append('productVersionId', productVersionId as any);
1086
+ }
1087
+
1088
+ if (factors !== undefined) {
1089
+ localVarFormParams.append('factors', factors as any);
1090
+ }
1091
+
1092
+
1093
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
1094
+
1095
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1096
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1097
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1098
+ localVarRequestOptions.data = localVarFormParams;
1099
+
1100
+ return {
1101
+ url: toPathString(localVarUrlObj),
1102
+ options: localVarRequestOptions,
1103
+ };
1104
+ },
1105
+ /**
1106
+ * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1107
+ * @summary Update the premium formula
1108
+ * @param {number} id
1109
+ * @param {UpdatePremiumFormulaRequestDto} updatePremiumFormulaRequestDto
1110
+ * @param {string} [authorization] Bearer Token
1111
+ * @param {*} [options] Override http request option.
1112
+ * @throws {RequiredError}
1113
+ */
1114
+ updatePremiumFormula: async (id: number, updatePremiumFormulaRequestDto: UpdatePremiumFormulaRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1115
+ // verify required parameter 'id' is not null or undefined
1116
+ assertParamExists('updatePremiumFormula', 'id', id)
1117
+ // verify required parameter 'updatePremiumFormulaRequestDto' is not null or undefined
1118
+ assertParamExists('updatePremiumFormula', 'updatePremiumFormulaRequestDto', updatePremiumFormulaRequestDto)
1119
+ const localVarPath = `/insuranceservice/v1/premium-formulas/{id}`
1120
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1121
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1122
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1123
+ let baseOptions;
1124
+ let baseAccessToken;
1125
+ if (configuration) {
1126
+ baseOptions = configuration.baseOptions;
1127
+ baseAccessToken = configuration.accessToken;
1128
+ }
1129
+
1130
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1131
+ const localVarHeaderParameter = {} as any;
1132
+ const localVarQueryParameter = {} as any;
1133
+
1134
+ // authentication bearer required
1135
+ // http bearer authentication required
1136
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1137
+
1138
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
1139
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
1140
+ }
1141
+
1142
+
1143
+
1144
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1145
+
1146
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1147
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1148
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1149
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePremiumFormulaRequestDto, localVarRequestOptions, configuration)
1150
+
1151
+ return {
1152
+ url: toPathString(localVarUrlObj),
1153
+ options: localVarRequestOptions,
1154
+ };
1155
+ },
1156
+ /**
1157
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1158
+ * @summary Update the product
1159
+ * @param {number} id
1160
+ * @param {UpdateProductRequestDto} updateProductRequestDto
1161
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1162
+ * @param {*} [options] Override http request option.
1163
+ * @throws {RequiredError}
1164
+ */
1165
+ updateProduct: async (id: number, updateProductRequestDto: UpdateProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1166
+ // verify required parameter 'id' is not null or undefined
1167
+ assertParamExists('updateProduct', 'id', id)
1168
+ // verify required parameter 'updateProductRequestDto' is not null or undefined
1169
+ assertParamExists('updateProduct', 'updateProductRequestDto', updateProductRequestDto)
1170
+ const localVarPath = `/insuranceservice/v1/products/{id}`
1171
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1172
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1173
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1174
+ let baseOptions;
1175
+ let baseAccessToken;
1176
+ if (configuration) {
1177
+ baseOptions = configuration.baseOptions;
1178
+ baseAccessToken = configuration.accessToken;
1179
+ }
1180
+
1181
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1182
+ const localVarHeaderParameter = {} as any;
1183
+ const localVarQueryParameter = {} as any;
1184
+
1185
+ // authentication bearer required
1186
+ // http bearer authentication required
1187
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1188
+
1189
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
1190
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
1191
+ }
1192
+
1193
+
1194
+
1195
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1196
+
1197
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1199
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1200
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequestDto, localVarRequestOptions, configuration)
1201
+
1202
+ return {
1203
+ url: toPathString(localVarUrlObj),
1204
+ options: localVarRequestOptions,
1205
+ };
1206
+ },
1207
+ /**
1208
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1209
+ * @summary Update the product
1210
+ * @param {string} id
1211
+ * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
1212
+ * @param {string} [authorization] Bearer Token
1213
+ * @param {*} [options] Override http request option.
1214
+ * @throws {RequiredError}
1215
+ */
1216
+ updateProductField: async (id: string, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1217
+ // verify required parameter 'id' is not null or undefined
1218
+ assertParamExists('updateProductField', 'id', id)
1219
+ // verify required parameter 'updateProductFieldRequestDto' is not null or undefined
1220
+ assertParamExists('updateProductField', 'updateProductFieldRequestDto', updateProductFieldRequestDto)
1221
+ const localVarPath = `/insuranceservice/v1/product-fields/{id}`
1222
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1223
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1224
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1225
+ let baseOptions;
1226
+ let baseAccessToken;
1227
+ if (configuration) {
1228
+ baseOptions = configuration.baseOptions;
1229
+ baseAccessToken = configuration.accessToken;
1230
+ }
1231
+
1232
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1233
+ const localVarHeaderParameter = {} as any;
1234
+ const localVarQueryParameter = {} as any;
1235
+
1236
+ // authentication bearer required
1237
+ // http bearer authentication required
1238
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1239
+
1240
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
1241
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
1242
+ }
1243
+
1244
+
1245
+
1246
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1247
+
1248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1250
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1251
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProductFieldRequestDto, localVarRequestOptions, configuration)
1252
+
1253
+ return {
1254
+ url: toPathString(localVarUrlObj),
1255
+ options: localVarRequestOptions,
1256
+ };
1257
+ },
1258
+ /**
1259
+ * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1260
+ * @summary Update the product version
1261
+ * @param {number} id
1262
+ * @param {UpdateProductVersionRequestDto} updateProductVersionRequestDto
1263
+ * @param {string} [authorization] Bearer Token
1264
+ * @param {*} [options] Override http request option.
1265
+ * @throws {RequiredError}
1266
+ */
1267
+ updateProductVersion: async (id: number, updateProductVersionRequestDto: UpdateProductVersionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1268
+ // verify required parameter 'id' is not null or undefined
1269
+ assertParamExists('updateProductVersion', 'id', id)
1270
+ // verify required parameter 'updateProductVersionRequestDto' is not null or undefined
1271
+ assertParamExists('updateProductVersion', 'updateProductVersionRequestDto', updateProductVersionRequestDto)
1272
+ const localVarPath = `/insuranceservice/v1/product-versions/{id}`
1273
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1274
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1275
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1276
+ let baseOptions;
1277
+ let baseAccessToken;
1278
+ if (configuration) {
1279
+ baseOptions = configuration.baseOptions;
1280
+ baseAccessToken = configuration.accessToken;
1281
+ }
1282
+
1283
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1284
+ const localVarHeaderParameter = {} as any;
1285
+ const localVarQueryParameter = {} as any;
1286
+
1287
+ // authentication bearer required
1288
+ // http bearer authentication required
1289
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1290
+
1291
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
1292
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
1293
+ }
1294
+
1295
+
1296
+
1297
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1298
+
1299
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1300
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1301
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1302
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProductVersionRequestDto, localVarRequestOptions, configuration)
1303
+
1304
+ return {
1305
+ url: toPathString(localVarUrlObj),
1306
+ options: localVarRequestOptions,
1307
+ };
1308
+ },
1309
+ /**
1310
+ * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
1311
+ * @summary Validate product factors
1312
+ * @param {string} [authorization] Bearer Token
1313
+ * @param {any} [factors]
1314
+ * @param {*} [options] Override http request option.
1315
+ * @throws {RequiredError}
1316
+ */
1317
+ validateProductFactors: async (authorization?: string, factors?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1318
+ const localVarPath = `/insuranceservice/v1/product-factors/validate`;
1319
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1320
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1321
+ let baseOptions;
1322
+ let baseAccessToken;
1323
+ if (configuration) {
1324
+ baseOptions = configuration.baseOptions;
1325
+ baseAccessToken = configuration.accessToken;
1326
+ }
1327
+
1328
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1329
+ const localVarHeaderParameter = {} as any;
1330
+ const localVarQueryParameter = {} as any;
1331
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1332
+
1333
+ // authentication bearer required
1334
+ // http bearer authentication required
1335
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1336
+
1337
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
1338
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
1339
+ }
1340
+
1341
+
1342
+ if (factors !== undefined) {
1343
+ localVarFormParams.append('factors', factors as any);
1344
+ }
1345
+
1346
+
1347
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
1348
+
1349
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1350
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1351
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1352
+ localVarRequestOptions.data = localVarFormParams;
1353
+
1354
+ return {
1355
+ url: toPathString(localVarUrlObj),
1356
+ options: localVarRequestOptions,
1357
+ };
1358
+ },
1359
+ }
1360
+ };
1361
+
1362
+ /**
1363
+ * ProductsApi - functional programming interface
1364
+ * @export
1365
+ */
1366
+ export const ProductsApiFp = function(configuration?: Configuration) {
1367
+ const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)
1368
+ return {
1369
+ /**
1370
+ * Creates a premium formula.
1371
+ * @summary Create the premium formula
1372
+ * @param {CreatePremiumFormulaRequestDto} createPremiumFormulaRequestDto
1373
+ * @param {string} [authorization] Bearer Token
1374
+ * @param {*} [options] Override http request option.
1375
+ * @throws {RequiredError}
1376
+ */
1377
+ async createPremiumFormula(createPremiumFormulaRequestDto: CreatePremiumFormulaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePremiumFormulaResponseClass>> {
1378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPremiumFormula(createPremiumFormulaRequestDto, authorization, options);
1379
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1380
+ },
1381
+ /**
1382
+ * Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
1383
+ * @summary Create the product
1384
+ * @param {CreateProductRequestDto} createProductRequestDto
1385
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1386
+ * @param {*} [options] Override http request option.
1387
+ * @throws {RequiredError}
1388
+ */
1389
+ async createProduct(createProductRequestDto: CreateProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProductResponseClass>> {
1390
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createProduct(createProductRequestDto, authorization, options);
1391
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1392
+ },
1393
+ /**
1394
+ * Create a product field in the database.
1395
+ * @summary Create the product field
1396
+ * @param {CreateProductFieldRequestDto} createProductFieldRequestDto
1397
+ * @param {string} [authorization] Bearer Token
1398
+ * @param {*} [options] Override http request option.
1399
+ * @throws {RequiredError}
1400
+ */
1401
+ async createProductField(createProductFieldRequestDto: CreateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProductFieldResponseClass>> {
1402
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createProductField(createProductFieldRequestDto, authorization, options);
1403
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1404
+ },
1405
+ /**
1406
+ * Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
1407
+ * @summary Delete the premium formula
1408
+ * @param {number} id
1409
+ * @param {string} [authorization] Bearer Token
1410
+ * @param {*} [options] Override http request option.
1411
+ * @throws {RequiredError}
1412
+ */
1413
+ async deletePremiumFormula(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1414
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePremiumFormula(id, authorization, options);
1415
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1416
+ },
1417
+ /**
1418
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
1419
+ * @summary Delete the product
1420
+ * @param {number} id
1421
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1422
+ * @param {*} [options] Override http request option.
1423
+ * @throws {RequiredError}
1424
+ */
1425
+ async deleteProduct(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1426
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProduct(id, authorization, options);
1427
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1428
+ },
1429
+ /**
1430
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
1431
+ * @summary Delete the product
1432
+ * @param {string} id
1433
+ * @param {string} [authorization] Bearer Token
1434
+ * @param {*} [options] Override http request option.
1435
+ * @throws {RequiredError}
1436
+ */
1437
+ async deleteProductField(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1438
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductField(id, authorization, options);
1439
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1440
+ },
1441
+ /**
1442
+ * 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.
1443
+ * @summary Retrieve the premium formula
1444
+ * @param {string} id
1445
+ * @param {number} id2 Product formula id
1446
+ * @param {string} [authorization] Bearer Token
1447
+ * @param {*} [options] Override http request option.
1448
+ * @throws {RequiredError}
1449
+ */
1450
+ async getPremiumFormula(id: string, id2: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPremiumFormulaResponseClass>> {
1451
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPremiumFormula(id, id2, authorization, options);
1452
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1453
+ },
1454
+ /**
1455
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
1456
+ * @summary Retrieve the product
1457
+ * @param {string} code Unique identifier for the object.
1458
+ * @param {number} id Product id
1459
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1460
+ * @param {string} [expand] Fields to expand response by
1461
+ * @param {*} [options] Override http request option.
1462
+ * @throws {RequiredError}
1463
+ */
1464
+ async getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
1465
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, id, authorization, expand, options);
1466
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1467
+ },
1468
+ /**
1469
+ * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
1470
+ * @summary Retrieve the product factor
1471
+ * @param {number} id
1472
+ * @param {number} id2 Product factor id
1473
+ * @param {string} [authorization] Bearer Token
1474
+ * @param {string} [expand] Fields to expand response by
1475
+ * @param {*} [options] Override http request option.
1476
+ * @throws {RequiredError}
1477
+ */
1478
+ async getProductFactor(id: number, id2: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFactorResponseClass>> {
1479
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactor(id, id2, authorization, expand, options);
1480
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1481
+ },
1482
+ /**
1483
+ * Get the value corresponding to a specific product factor.
1484
+ * @summary Get product factor value
1485
+ * @param {number} productVersionId Product Version Id
1486
+ * @param {string} label Product factor label
1487
+ * @param {string} key Key for the product factor value
1488
+ * @param {string} name Name for the product factor value
1489
+ * @param {string} [authorization] Bearer Token
1490
+ * @param {*} [options] Override http request option.
1491
+ * @throws {RequiredError}
1492
+ */
1493
+ async getProductFactorValue(productVersionId: number, label: string, key: string, name: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFactorValueResponseClass>> {
1494
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactorValue(productVersionId, label, key, name, authorization, options);
1495
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1496
+ },
1497
+ /**
1498
+ * Retrieves the details of the product field that was previously created. Supply the unique product field id that was returned when you created it and Emil Api will return the corresponding product field information.
1499
+ * @summary Retrieve the product field
1500
+ * @param {string} id
1501
+ * @param {string} [authorization] Bearer Token
1502
+ * @param {*} [options] Override http request option.
1503
+ * @throws {RequiredError}
1504
+ */
1505
+ async getProductField(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFieldResponseClass>> {
1506
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductField(id, authorization, options);
1507
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1508
+ },
1509
+ /**
1510
+ * Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
1511
+ * @summary Retrieve the product version
1512
+ * @param {string} id
1513
+ * @param {number} id2 Product version id
1514
+ * @param {string} [authorization] Bearer Token
1515
+ * @param {*} [options] Override http request option.
1516
+ * @throws {RequiredError}
1517
+ */
1518
+ async getProductVersion(id: string, id2: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductVersionResponseClass>> {
1519
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductVersion(id, id2, authorization, options);
1520
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1521
+ },
1522
+ /**
1523
+ * Returns a list of premium formulas you have previously created. The premium formulas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1524
+ * @summary List premium formulas
1525
+ * @param {string} [authorization] Bearer Token
1526
+ * @param {number} [pageSize] Page size
1527
+ * @param {string} [pageToken] Page token
1528
+ * @param {string} [filter] List filter
1529
+ * @param {string} [search] Search query
1530
+ * @param {string} [order] Ordering criteria
1531
+ * @param {string} [expand] Extra fields to fetch
1532
+ * @param {*} [options] Override http request option.
1533
+ * @throws {RequiredError}
1534
+ */
1535
+ async listPremiumFormulas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPremiumFormulasResponseClass>> {
1536
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options);
1537
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1538
+ },
1539
+ /**
1540
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1541
+ * @summary List product factors
1542
+ * @param {string} [authorization] Bearer Token
1543
+ * @param {number} [pageSize] Page size
1544
+ * @param {string} [pageToken] Page token
1545
+ * @param {string} [filter] List filter
1546
+ * @param {string} [search] Search query
1547
+ * @param {string} [order] Ordering criteria
1548
+ * @param {string} [expand] Extra fields to fetch
1549
+ * @param {*} [options] Override http request option.
1550
+ * @throws {RequiredError}
1551
+ */
1552
+ async listProductFactors(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductFactorsResponseClass>> {
1553
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductFactors(authorization, pageSize, pageToken, filter, search, order, expand, options);
1554
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1555
+ },
1556
+ /**
1557
+ * Returns a list of product field types you have previously created. The product field types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1558
+ * @summary List product field types
1559
+ * @param {string} [authorization] Bearer Token
1560
+ * @param {number} [pageSize] Page size
1561
+ * @param {string} [pageToken] Page token
1562
+ * @param {string} [filter] List filter
1563
+ * @param {string} [search] Search query
1564
+ * @param {string} [order] Ordering criteria
1565
+ * @param {string} [expand] Extra fields to fetch
1566
+ * @param {*} [options] Override http request option.
1567
+ * @throws {RequiredError}
1568
+ */
1569
+ async listProductFieldTypes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductFieldTypesResponseClass>> {
1570
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductFieldTypes(authorization, pageSize, pageToken, filter, search, order, expand, options);
1571
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1572
+ },
1573
+ /**
1574
+ * Returns a list of product fields you have previously created. The product fields are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1575
+ * @summary List product fields
1576
+ * @param {string} [authorization] Bearer Token
1577
+ * @param {number} [pageSize] Page size
1578
+ * @param {string} [pageToken] Page token
1579
+ * @param {string} [filter] List filter
1580
+ * @param {string} [search] Search query
1581
+ * @param {string} [order] Ordering criteria
1582
+ * @param {string} [expand] Extra fields to fetch
1583
+ * @param {*} [options] Override http request option.
1584
+ * @throws {RequiredError}
1585
+ */
1586
+ async listProductFields(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductFieldsResponseClass>> {
1587
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductFields(authorization, pageSize, pageToken, filter, search, order, expand, options);
1588
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1589
+ },
1590
+ /**
1591
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1592
+ * @summary List products
1593
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1594
+ * @param {number} [pageSize] Page size
1595
+ * @param {string} [pageToken] Page token
1596
+ * @param {string} [filter] List filter
1597
+ * @param {string} [search] Search query
1598
+ * @param {string} [order] Ordering criteria
1599
+ * @param {string} [expand] Extra fields to fetch
1600
+ * @param {*} [options] Override http request option.
1601
+ * @throws {RequiredError}
1602
+ */
1603
+ async listProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>> {
1604
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options);
1605
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1606
+ },
1607
+ /**
1608
+ * Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
1609
+ * @summary Upload product factors
1610
+ * @param {string} [authorization] Bearer Token
1611
+ * @param {number} [productVersionId]
1612
+ * @param {any} [factors]
1613
+ * @param {*} [options] Override http request option.
1614
+ * @throws {RequiredError}
1615
+ */
1616
+ async storeProductFactors(authorization?: string, productVersionId?: number, factors?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StoreProductFactorsResponseClass>> {
1617
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storeProductFactors(authorization, productVersionId, factors, options);
1618
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1619
+ },
1620
+ /**
1621
+ * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1622
+ * @summary Update the premium formula
1623
+ * @param {number} id
1624
+ * @param {UpdatePremiumFormulaRequestDto} updatePremiumFormulaRequestDto
1625
+ * @param {string} [authorization] Bearer Token
1626
+ * @param {*} [options] Override http request option.
1627
+ * @throws {RequiredError}
1628
+ */
1629
+ async updatePremiumFormula(id: number, updatePremiumFormulaRequestDto: UpdatePremiumFormulaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePremiumFormulaResponseClass>> {
1630
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePremiumFormula(id, updatePremiumFormulaRequestDto, authorization, options);
1631
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1632
+ },
1633
+ /**
1634
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1635
+ * @summary Update the product
1636
+ * @param {number} id
1637
+ * @param {UpdateProductRequestDto} updateProductRequestDto
1638
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1639
+ * @param {*} [options] Override http request option.
1640
+ * @throws {RequiredError}
1641
+ */
1642
+ async updateProduct(id: number, updateProductRequestDto: UpdateProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductResponseClass>> {
1643
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProduct(id, updateProductRequestDto, authorization, options);
1644
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1645
+ },
1646
+ /**
1647
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1648
+ * @summary Update the product
1649
+ * @param {string} id
1650
+ * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
1651
+ * @param {string} [authorization] Bearer Token
1652
+ * @param {*} [options] Override http request option.
1653
+ * @throws {RequiredError}
1654
+ */
1655
+ async updateProductField(id: string, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductFieldResponseClass>> {
1656
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductField(id, updateProductFieldRequestDto, authorization, options);
1657
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1658
+ },
1659
+ /**
1660
+ * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1661
+ * @summary Update the product version
1662
+ * @param {number} id
1663
+ * @param {UpdateProductVersionRequestDto} updateProductVersionRequestDto
1664
+ * @param {string} [authorization] Bearer Token
1665
+ * @param {*} [options] Override http request option.
1666
+ * @throws {RequiredError}
1667
+ */
1668
+ async updateProductVersion(id: number, updateProductVersionRequestDto: UpdateProductVersionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductVersionResponseClass>> {
1669
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductVersion(id, updateProductVersionRequestDto, authorization, options);
1670
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1671
+ },
1672
+ /**
1673
+ * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
1674
+ * @summary Validate product factors
1675
+ * @param {string} [authorization] Bearer Token
1676
+ * @param {any} [factors]
1677
+ * @param {*} [options] Override http request option.
1678
+ * @throws {RequiredError}
1679
+ */
1680
+ async validateProductFactors(authorization?: string, factors?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupedProductFactorsResponseClass>> {
1681
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateProductFactors(authorization, factors, options);
1682
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1683
+ },
1684
+ }
1685
+ };
1686
+
1687
+ /**
1688
+ * ProductsApi - factory interface
1689
+ * @export
1690
+ */
1691
+ export const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1692
+ const localVarFp = ProductsApiFp(configuration)
1693
+ return {
1694
+ /**
1695
+ * Creates a premium formula.
1696
+ * @summary Create the premium formula
1697
+ * @param {CreatePremiumFormulaRequestDto} createPremiumFormulaRequestDto
1698
+ * @param {string} [authorization] Bearer Token
1699
+ * @param {*} [options] Override http request option.
1700
+ * @throws {RequiredError}
1701
+ */
1702
+ createPremiumFormula(createPremiumFormulaRequestDto: CreatePremiumFormulaRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePremiumFormulaResponseClass> {
1703
+ return localVarFp.createPremiumFormula(createPremiumFormulaRequestDto, authorization, options).then((request) => request(axios, basePath));
1704
+ },
1705
+ /**
1706
+ * Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
1707
+ * @summary Create the product
1708
+ * @param {CreateProductRequestDto} createProductRequestDto
1709
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1710
+ * @param {*} [options] Override http request option.
1711
+ * @throws {RequiredError}
1712
+ */
1713
+ createProduct(createProductRequestDto: CreateProductRequestDto, authorization?: string, options?: any): AxiosPromise<CreateProductResponseClass> {
1714
+ return localVarFp.createProduct(createProductRequestDto, authorization, options).then((request) => request(axios, basePath));
1715
+ },
1716
+ /**
1717
+ * Create a product field in the database.
1718
+ * @summary Create the product field
1719
+ * @param {CreateProductFieldRequestDto} createProductFieldRequestDto
1720
+ * @param {string} [authorization] Bearer Token
1721
+ * @param {*} [options] Override http request option.
1722
+ * @throws {RequiredError}
1723
+ */
1724
+ createProductField(createProductFieldRequestDto: CreateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<CreateProductFieldResponseClass> {
1725
+ return localVarFp.createProductField(createProductFieldRequestDto, authorization, options).then((request) => request(axios, basePath));
1726
+ },
1727
+ /**
1728
+ * Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
1729
+ * @summary Delete the premium formula
1730
+ * @param {number} id
1731
+ * @param {string} [authorization] Bearer Token
1732
+ * @param {*} [options] Override http request option.
1733
+ * @throws {RequiredError}
1734
+ */
1735
+ deletePremiumFormula(id: number, authorization?: string, options?: any): AxiosPromise<object> {
1736
+ return localVarFp.deletePremiumFormula(id, authorization, options).then((request) => request(axios, basePath));
1737
+ },
1738
+ /**
1739
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
1740
+ * @summary Delete the product
1741
+ * @param {number} id
1742
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1743
+ * @param {*} [options] Override http request option.
1744
+ * @throws {RequiredError}
1745
+ */
1746
+ deleteProduct(id: number, authorization?: string, options?: any): AxiosPromise<object> {
1747
+ return localVarFp.deleteProduct(id, authorization, options).then((request) => request(axios, basePath));
1748
+ },
1749
+ /**
1750
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
1751
+ * @summary Delete the product
1752
+ * @param {string} id
1753
+ * @param {string} [authorization] Bearer Token
1754
+ * @param {*} [options] Override http request option.
1755
+ * @throws {RequiredError}
1756
+ */
1757
+ deleteProductField(id: string, authorization?: string, options?: any): AxiosPromise<void> {
1758
+ return localVarFp.deleteProductField(id, authorization, options).then((request) => request(axios, basePath));
1759
+ },
1760
+ /**
1761
+ * 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.
1762
+ * @summary Retrieve the premium formula
1763
+ * @param {string} id
1764
+ * @param {number} id2 Product formula id
1765
+ * @param {string} [authorization] Bearer Token
1766
+ * @param {*} [options] Override http request option.
1767
+ * @throws {RequiredError}
1768
+ */
1769
+ getPremiumFormula(id: string, id2: number, authorization?: string, options?: any): AxiosPromise<GetPremiumFormulaResponseClass> {
1770
+ return localVarFp.getPremiumFormula(id, id2, authorization, options).then((request) => request(axios, basePath));
1771
+ },
1772
+ /**
1773
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
1774
+ * @summary Retrieve the product
1775
+ * @param {string} code Unique identifier for the object.
1776
+ * @param {number} id Product id
1777
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1778
+ * @param {string} [expand] Fields to expand response by
1779
+ * @param {*} [options] Override http request option.
1780
+ * @throws {RequiredError}
1781
+ */
1782
+ getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
1783
+ return localVarFp.getProductByCode(code, id, authorization, expand, options).then((request) => request(axios, basePath));
1784
+ },
1785
+ /**
1786
+ * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
1787
+ * @summary Retrieve the product factor
1788
+ * @param {number} id
1789
+ * @param {number} id2 Product factor id
1790
+ * @param {string} [authorization] Bearer Token
1791
+ * @param {string} [expand] Fields to expand response by
1792
+ * @param {*} [options] Override http request option.
1793
+ * @throws {RequiredError}
1794
+ */
1795
+ getProductFactor(id: number, id2: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductFactorResponseClass> {
1796
+ return localVarFp.getProductFactor(id, id2, authorization, expand, options).then((request) => request(axios, basePath));
1797
+ },
1798
+ /**
1799
+ * Get the value corresponding to a specific product factor.
1800
+ * @summary Get product factor value
1801
+ * @param {number} productVersionId Product Version Id
1802
+ * @param {string} label Product factor label
1803
+ * @param {string} key Key for the product factor value
1804
+ * @param {string} name Name for the product factor value
1805
+ * @param {string} [authorization] Bearer Token
1806
+ * @param {*} [options] Override http request option.
1807
+ * @throws {RequiredError}
1808
+ */
1809
+ getProductFactorValue(productVersionId: number, label: string, key: string, name: string, authorization?: string, options?: any): AxiosPromise<GetProductFactorValueResponseClass> {
1810
+ return localVarFp.getProductFactorValue(productVersionId, label, key, name, authorization, options).then((request) => request(axios, basePath));
1811
+ },
1812
+ /**
1813
+ * Retrieves the details of the product field that was previously created. Supply the unique product field id that was returned when you created it and Emil Api will return the corresponding product field information.
1814
+ * @summary Retrieve the product field
1815
+ * @param {string} id
1816
+ * @param {string} [authorization] Bearer Token
1817
+ * @param {*} [options] Override http request option.
1818
+ * @throws {RequiredError}
1819
+ */
1820
+ getProductField(id: string, authorization?: string, options?: any): AxiosPromise<GetProductFieldResponseClass> {
1821
+ return localVarFp.getProductField(id, authorization, options).then((request) => request(axios, basePath));
1822
+ },
1823
+ /**
1824
+ * Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
1825
+ * @summary Retrieve the product version
1826
+ * @param {string} id
1827
+ * @param {number} id2 Product version id
1828
+ * @param {string} [authorization] Bearer Token
1829
+ * @param {*} [options] Override http request option.
1830
+ * @throws {RequiredError}
1831
+ */
1832
+ getProductVersion(id: string, id2: number, authorization?: string, options?: any): AxiosPromise<GetProductVersionResponseClass> {
1833
+ return localVarFp.getProductVersion(id, id2, authorization, options).then((request) => request(axios, basePath));
1834
+ },
1835
+ /**
1836
+ * Returns a list of premium formulas you have previously created. The premium formulas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1837
+ * @summary List premium formulas
1838
+ * @param {string} [authorization] Bearer Token
1839
+ * @param {number} [pageSize] Page size
1840
+ * @param {string} [pageToken] Page token
1841
+ * @param {string} [filter] List filter
1842
+ * @param {string} [search] Search query
1843
+ * @param {string} [order] Ordering criteria
1844
+ * @param {string} [expand] Extra fields to fetch
1845
+ * @param {*} [options] Override http request option.
1846
+ * @throws {RequiredError}
1847
+ */
1848
+ listPremiumFormulas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPremiumFormulasResponseClass> {
1849
+ return localVarFp.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
1850
+ },
1851
+ /**
1852
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1853
+ * @summary List product factors
1854
+ * @param {string} [authorization] Bearer Token
1855
+ * @param {number} [pageSize] Page size
1856
+ * @param {string} [pageToken] Page token
1857
+ * @param {string} [filter] List filter
1858
+ * @param {string} [search] Search query
1859
+ * @param {string} [order] Ordering criteria
1860
+ * @param {string} [expand] Extra fields to fetch
1861
+ * @param {*} [options] Override http request option.
1862
+ * @throws {RequiredError}
1863
+ */
1864
+ listProductFactors(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductFactorsResponseClass> {
1865
+ return localVarFp.listProductFactors(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
1866
+ },
1867
+ /**
1868
+ * Returns a list of product field types you have previously created. The product field types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1869
+ * @summary List product field types
1870
+ * @param {string} [authorization] Bearer Token
1871
+ * @param {number} [pageSize] Page size
1872
+ * @param {string} [pageToken] Page token
1873
+ * @param {string} [filter] List filter
1874
+ * @param {string} [search] Search query
1875
+ * @param {string} [order] Ordering criteria
1876
+ * @param {string} [expand] Extra fields to fetch
1877
+ * @param {*} [options] Override http request option.
1878
+ * @throws {RequiredError}
1879
+ */
1880
+ listProductFieldTypes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductFieldTypesResponseClass> {
1881
+ return localVarFp.listProductFieldTypes(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
1882
+ },
1883
+ /**
1884
+ * Returns a list of product fields you have previously created. The product fields are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1885
+ * @summary List product fields
1886
+ * @param {string} [authorization] Bearer Token
1887
+ * @param {number} [pageSize] Page size
1888
+ * @param {string} [pageToken] Page token
1889
+ * @param {string} [filter] List filter
1890
+ * @param {string} [search] Search query
1891
+ * @param {string} [order] Ordering criteria
1892
+ * @param {string} [expand] Extra fields to fetch
1893
+ * @param {*} [options] Override http request option.
1894
+ * @throws {RequiredError}
1895
+ */
1896
+ listProductFields(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductFieldsResponseClass> {
1897
+ return localVarFp.listProductFields(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
1898
+ },
1899
+ /**
1900
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1901
+ * @summary List products
1902
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1903
+ * @param {number} [pageSize] Page size
1904
+ * @param {string} [pageToken] Page token
1905
+ * @param {string} [filter] List filter
1906
+ * @param {string} [search] Search query
1907
+ * @param {string} [order] Ordering criteria
1908
+ * @param {string} [expand] Extra fields to fetch
1909
+ * @param {*} [options] Override http request option.
1910
+ * @throws {RequiredError}
1911
+ */
1912
+ listProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductsResponseClass> {
1913
+ return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
1914
+ },
1915
+ /**
1916
+ * Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
1917
+ * @summary Upload product factors
1918
+ * @param {string} [authorization] Bearer Token
1919
+ * @param {number} [productVersionId]
1920
+ * @param {any} [factors]
1921
+ * @param {*} [options] Override http request option.
1922
+ * @throws {RequiredError}
1923
+ */
1924
+ storeProductFactors(authorization?: string, productVersionId?: number, factors?: any, options?: any): AxiosPromise<StoreProductFactorsResponseClass> {
1925
+ return localVarFp.storeProductFactors(authorization, productVersionId, factors, options).then((request) => request(axios, basePath));
1926
+ },
1927
+ /**
1928
+ * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1929
+ * @summary Update the premium formula
1930
+ * @param {number} id
1931
+ * @param {UpdatePremiumFormulaRequestDto} updatePremiumFormulaRequestDto
1932
+ * @param {string} [authorization] Bearer Token
1933
+ * @param {*} [options] Override http request option.
1934
+ * @throws {RequiredError}
1935
+ */
1936
+ updatePremiumFormula(id: number, updatePremiumFormulaRequestDto: UpdatePremiumFormulaRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePremiumFormulaResponseClass> {
1937
+ return localVarFp.updatePremiumFormula(id, updatePremiumFormulaRequestDto, authorization, options).then((request) => request(axios, basePath));
1938
+ },
1939
+ /**
1940
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1941
+ * @summary Update the product
1942
+ * @param {number} id
1943
+ * @param {UpdateProductRequestDto} updateProductRequestDto
1944
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1945
+ * @param {*} [options] Override http request option.
1946
+ * @throws {RequiredError}
1947
+ */
1948
+ updateProduct(id: number, updateProductRequestDto: UpdateProductRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductResponseClass> {
1949
+ return localVarFp.updateProduct(id, updateProductRequestDto, authorization, options).then((request) => request(axios, basePath));
1950
+ },
1951
+ /**
1952
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1953
+ * @summary Update the product
1954
+ * @param {string} id
1955
+ * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
1956
+ * @param {string} [authorization] Bearer Token
1957
+ * @param {*} [options] Override http request option.
1958
+ * @throws {RequiredError}
1959
+ */
1960
+ updateProductField(id: string, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductFieldResponseClass> {
1961
+ return localVarFp.updateProductField(id, updateProductFieldRequestDto, authorization, options).then((request) => request(axios, basePath));
1962
+ },
1963
+ /**
1964
+ * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1965
+ * @summary Update the product version
1966
+ * @param {number} id
1967
+ * @param {UpdateProductVersionRequestDto} updateProductVersionRequestDto
1968
+ * @param {string} [authorization] Bearer Token
1969
+ * @param {*} [options] Override http request option.
1970
+ * @throws {RequiredError}
1971
+ */
1972
+ updateProductVersion(id: number, updateProductVersionRequestDto: UpdateProductVersionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductVersionResponseClass> {
1973
+ return localVarFp.updateProductVersion(id, updateProductVersionRequestDto, authorization, options).then((request) => request(axios, basePath));
1974
+ },
1975
+ /**
1976
+ * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
1977
+ * @summary Validate product factors
1978
+ * @param {string} [authorization] Bearer Token
1979
+ * @param {any} [factors]
1980
+ * @param {*} [options] Override http request option.
1981
+ * @throws {RequiredError}
1982
+ */
1983
+ validateProductFactors(authorization?: string, factors?: any, options?: any): AxiosPromise<GroupedProductFactorsResponseClass> {
1984
+ return localVarFp.validateProductFactors(authorization, factors, options).then((request) => request(axios, basePath));
1985
+ },
1986
+ };
1987
+ };
1988
+
1989
+ /**
1990
+ * Request parameters for createPremiumFormula operation in ProductsApi.
1991
+ * @export
1992
+ * @interface ProductsApiCreatePremiumFormulaRequest
1993
+ */
1994
+ export interface ProductsApiCreatePremiumFormulaRequest {
1995
+ /**
1996
+ *
1997
+ * @type {CreatePremiumFormulaRequestDto}
1998
+ * @memberof ProductsApiCreatePremiumFormula
1999
+ */
2000
+ readonly createPremiumFormulaRequestDto: CreatePremiumFormulaRequestDto
2001
+
2002
+ /**
2003
+ * Bearer Token
2004
+ * @type {string}
2005
+ * @memberof ProductsApiCreatePremiumFormula
2006
+ */
2007
+ readonly authorization?: string
2008
+ }
2009
+
2010
+ /**
2011
+ * Request parameters for createProduct operation in ProductsApi.
2012
+ * @export
2013
+ * @interface ProductsApiCreateProductRequest
2014
+ */
2015
+ export interface ProductsApiCreateProductRequest {
2016
+ /**
2017
+ *
2018
+ * @type {CreateProductRequestDto}
2019
+ * @memberof ProductsApiCreateProduct
2020
+ */
2021
+ readonly createProductRequestDto: CreateProductRequestDto
2022
+
2023
+ /**
2024
+ * Bearer Token: provided by the login endpoint under the name accessToken.
2025
+ * @type {string}
2026
+ * @memberof ProductsApiCreateProduct
2027
+ */
2028
+ readonly authorization?: string
2029
+ }
2030
+
2031
+ /**
2032
+ * Request parameters for createProductField operation in ProductsApi.
2033
+ * @export
2034
+ * @interface ProductsApiCreateProductFieldRequest
2035
+ */
2036
+ export interface ProductsApiCreateProductFieldRequest {
2037
+ /**
2038
+ *
2039
+ * @type {CreateProductFieldRequestDto}
2040
+ * @memberof ProductsApiCreateProductField
2041
+ */
2042
+ readonly createProductFieldRequestDto: CreateProductFieldRequestDto
2043
+
2044
+ /**
2045
+ * Bearer Token
2046
+ * @type {string}
2047
+ * @memberof ProductsApiCreateProductField
2048
+ */
2049
+ readonly authorization?: string
2050
+ }
2051
+
2052
+ /**
2053
+ * Request parameters for deletePremiumFormula operation in ProductsApi.
2054
+ * @export
2055
+ * @interface ProductsApiDeletePremiumFormulaRequest
2056
+ */
2057
+ export interface ProductsApiDeletePremiumFormulaRequest {
2058
+ /**
2059
+ *
2060
+ * @type {number}
2061
+ * @memberof ProductsApiDeletePremiumFormula
2062
+ */
2063
+ readonly id: number
2064
+
2065
+ /**
2066
+ * Bearer Token
2067
+ * @type {string}
2068
+ * @memberof ProductsApiDeletePremiumFormula
2069
+ */
2070
+ readonly authorization?: string
2071
+ }
2072
+
2073
+ /**
2074
+ * Request parameters for deleteProduct operation in ProductsApi.
2075
+ * @export
2076
+ * @interface ProductsApiDeleteProductRequest
2077
+ */
2078
+ export interface ProductsApiDeleteProductRequest {
2079
+ /**
2080
+ *
2081
+ * @type {number}
2082
+ * @memberof ProductsApiDeleteProduct
2083
+ */
2084
+ readonly id: number
2085
+
2086
+ /**
2087
+ * Bearer Token: provided by the login endpoint under the name accessToken.
2088
+ * @type {string}
2089
+ * @memberof ProductsApiDeleteProduct
2090
+ */
2091
+ readonly authorization?: string
2092
+ }
2093
+
2094
+ /**
2095
+ * Request parameters for deleteProductField operation in ProductsApi.
2096
+ * @export
2097
+ * @interface ProductsApiDeleteProductFieldRequest
2098
+ */
2099
+ export interface ProductsApiDeleteProductFieldRequest {
2100
+ /**
2101
+ *
2102
+ * @type {string}
2103
+ * @memberof ProductsApiDeleteProductField
2104
+ */
2105
+ readonly id: string
2106
+
2107
+ /**
2108
+ * Bearer Token
2109
+ * @type {string}
2110
+ * @memberof ProductsApiDeleteProductField
2111
+ */
2112
+ readonly authorization?: string
2113
+ }
2114
+
2115
+ /**
2116
+ * Request parameters for getPremiumFormula operation in ProductsApi.
2117
+ * @export
2118
+ * @interface ProductsApiGetPremiumFormulaRequest
2119
+ */
2120
+ export interface ProductsApiGetPremiumFormulaRequest {
2121
+ /**
2122
+ *
2123
+ * @type {string}
2124
+ * @memberof ProductsApiGetPremiumFormula
2125
+ */
2126
+ readonly id: string
2127
+
2128
+ /**
2129
+ * Product formula id
2130
+ * @type {number}
2131
+ * @memberof ProductsApiGetPremiumFormula
2132
+ */
2133
+ readonly id2: number
2134
+
2135
+ /**
2136
+ * Bearer Token
2137
+ * @type {string}
2138
+ * @memberof ProductsApiGetPremiumFormula
2139
+ */
2140
+ readonly authorization?: string
2141
+ }
2142
+
2143
+ /**
2144
+ * Request parameters for getProductByCode operation in ProductsApi.
2145
+ * @export
2146
+ * @interface ProductsApiGetProductByCodeRequest
2147
+ */
2148
+ export interface ProductsApiGetProductByCodeRequest {
2149
+ /**
2150
+ * Unique identifier for the object.
2151
+ * @type {string}
2152
+ * @memberof ProductsApiGetProductByCode
2153
+ */
2154
+ readonly code: string
2155
+
2156
+ /**
2157
+ * Product id
2158
+ * @type {number}
2159
+ * @memberof ProductsApiGetProductByCode
2160
+ */
2161
+ readonly id: number
2162
+
2163
+ /**
2164
+ * Bearer Token: provided by the login endpoint under the name accessToken.
2165
+ * @type {string}
2166
+ * @memberof ProductsApiGetProductByCode
2167
+ */
2168
+ readonly authorization?: string
2169
+
2170
+ /**
2171
+ * Fields to expand response by
2172
+ * @type {string}
2173
+ * @memberof ProductsApiGetProductByCode
2174
+ */
2175
+ readonly expand?: string
2176
+ }
2177
+
2178
+ /**
2179
+ * Request parameters for getProductFactor operation in ProductsApi.
2180
+ * @export
2181
+ * @interface ProductsApiGetProductFactorRequest
2182
+ */
2183
+ export interface ProductsApiGetProductFactorRequest {
2184
+ /**
2185
+ *
2186
+ * @type {number}
2187
+ * @memberof ProductsApiGetProductFactor
2188
+ */
2189
+ readonly id: number
2190
+
2191
+ /**
2192
+ * Product factor id
2193
+ * @type {number}
2194
+ * @memberof ProductsApiGetProductFactor
2195
+ */
2196
+ readonly id2: number
2197
+
2198
+ /**
2199
+ * Bearer Token
2200
+ * @type {string}
2201
+ * @memberof ProductsApiGetProductFactor
2202
+ */
2203
+ readonly authorization?: string
2204
+
2205
+ /**
2206
+ * Fields to expand response by
2207
+ * @type {string}
2208
+ * @memberof ProductsApiGetProductFactor
2209
+ */
2210
+ readonly expand?: string
2211
+ }
2212
+
2213
+ /**
2214
+ * Request parameters for getProductFactorValue operation in ProductsApi.
2215
+ * @export
2216
+ * @interface ProductsApiGetProductFactorValueRequest
2217
+ */
2218
+ export interface ProductsApiGetProductFactorValueRequest {
2219
+ /**
2220
+ * Product Version Id
2221
+ * @type {number}
2222
+ * @memberof ProductsApiGetProductFactorValue
2223
+ */
2224
+ readonly productVersionId: number
2225
+
2226
+ /**
2227
+ * Product factor label
2228
+ * @type {string}
2229
+ * @memberof ProductsApiGetProductFactorValue
2230
+ */
2231
+ readonly label: string
2232
+
2233
+ /**
2234
+ * Key for the product factor value
2235
+ * @type {string}
2236
+ * @memberof ProductsApiGetProductFactorValue
2237
+ */
2238
+ readonly key: string
2239
+
2240
+ /**
2241
+ * Name for the product factor value
2242
+ * @type {string}
2243
+ * @memberof ProductsApiGetProductFactorValue
2244
+ */
2245
+ readonly name: string
2246
+
2247
+ /**
2248
+ * Bearer Token
2249
+ * @type {string}
2250
+ * @memberof ProductsApiGetProductFactorValue
2251
+ */
2252
+ readonly authorization?: string
2253
+ }
2254
+
2255
+ /**
2256
+ * Request parameters for getProductField operation in ProductsApi.
2257
+ * @export
2258
+ * @interface ProductsApiGetProductFieldRequest
2259
+ */
2260
+ export interface ProductsApiGetProductFieldRequest {
2261
+ /**
2262
+ *
2263
+ * @type {string}
2264
+ * @memberof ProductsApiGetProductField
2265
+ */
2266
+ readonly id: string
2267
+
2268
+ /**
2269
+ * Bearer Token
2270
+ * @type {string}
2271
+ * @memberof ProductsApiGetProductField
2272
+ */
2273
+ readonly authorization?: string
2274
+ }
2275
+
2276
+ /**
2277
+ * Request parameters for getProductVersion operation in ProductsApi.
2278
+ * @export
2279
+ * @interface ProductsApiGetProductVersionRequest
2280
+ */
2281
+ export interface ProductsApiGetProductVersionRequest {
2282
+ /**
2283
+ *
2284
+ * @type {string}
2285
+ * @memberof ProductsApiGetProductVersion
2286
+ */
2287
+ readonly id: string
2288
+
2289
+ /**
2290
+ * Product version id
2291
+ * @type {number}
2292
+ * @memberof ProductsApiGetProductVersion
2293
+ */
2294
+ readonly id2: number
2295
+
2296
+ /**
2297
+ * Bearer Token
2298
+ * @type {string}
2299
+ * @memberof ProductsApiGetProductVersion
2300
+ */
2301
+ readonly authorization?: string
2302
+ }
2303
+
2304
+ /**
2305
+ * Request parameters for listPremiumFormulas operation in ProductsApi.
2306
+ * @export
2307
+ * @interface ProductsApiListPremiumFormulasRequest
2308
+ */
2309
+ export interface ProductsApiListPremiumFormulasRequest {
2310
+ /**
2311
+ * Bearer Token
2312
+ * @type {string}
2313
+ * @memberof ProductsApiListPremiumFormulas
2314
+ */
2315
+ readonly authorization?: string
2316
+
2317
+ /**
2318
+ * Page size
2319
+ * @type {number}
2320
+ * @memberof ProductsApiListPremiumFormulas
2321
+ */
2322
+ readonly pageSize?: number
2323
+
2324
+ /**
2325
+ * Page token
2326
+ * @type {string}
2327
+ * @memberof ProductsApiListPremiumFormulas
2328
+ */
2329
+ readonly pageToken?: string
2330
+
2331
+ /**
2332
+ * List filter
2333
+ * @type {string}
2334
+ * @memberof ProductsApiListPremiumFormulas
2335
+ */
2336
+ readonly filter?: string
2337
+
2338
+ /**
2339
+ * Search query
2340
+ * @type {string}
2341
+ * @memberof ProductsApiListPremiumFormulas
2342
+ */
2343
+ readonly search?: string
2344
+
2345
+ /**
2346
+ * Ordering criteria
2347
+ * @type {string}
2348
+ * @memberof ProductsApiListPremiumFormulas
2349
+ */
2350
+ readonly order?: string
2351
+
2352
+ /**
2353
+ * Extra fields to fetch
2354
+ * @type {string}
2355
+ * @memberof ProductsApiListPremiumFormulas
2356
+ */
2357
+ readonly expand?: string
2358
+ }
2359
+
2360
+ /**
2361
+ * Request parameters for listProductFactors operation in ProductsApi.
2362
+ * @export
2363
+ * @interface ProductsApiListProductFactorsRequest
2364
+ */
2365
+ export interface ProductsApiListProductFactorsRequest {
2366
+ /**
2367
+ * Bearer Token
2368
+ * @type {string}
2369
+ * @memberof ProductsApiListProductFactors
2370
+ */
2371
+ readonly authorization?: string
2372
+
2373
+ /**
2374
+ * Page size
2375
+ * @type {number}
2376
+ * @memberof ProductsApiListProductFactors
2377
+ */
2378
+ readonly pageSize?: number
2379
+
2380
+ /**
2381
+ * Page token
2382
+ * @type {string}
2383
+ * @memberof ProductsApiListProductFactors
2384
+ */
2385
+ readonly pageToken?: string
2386
+
2387
+ /**
2388
+ * List filter
2389
+ * @type {string}
2390
+ * @memberof ProductsApiListProductFactors
2391
+ */
2392
+ readonly filter?: string
2393
+
2394
+ /**
2395
+ * Search query
2396
+ * @type {string}
2397
+ * @memberof ProductsApiListProductFactors
2398
+ */
2399
+ readonly search?: string
2400
+
2401
+ /**
2402
+ * Ordering criteria
2403
+ * @type {string}
2404
+ * @memberof ProductsApiListProductFactors
2405
+ */
2406
+ readonly order?: string
2407
+
2408
+ /**
2409
+ * Extra fields to fetch
2410
+ * @type {string}
2411
+ * @memberof ProductsApiListProductFactors
2412
+ */
2413
+ readonly expand?: string
2414
+ }
2415
+
2416
+ /**
2417
+ * Request parameters for listProductFieldTypes operation in ProductsApi.
2418
+ * @export
2419
+ * @interface ProductsApiListProductFieldTypesRequest
2420
+ */
2421
+ export interface ProductsApiListProductFieldTypesRequest {
2422
+ /**
2423
+ * Bearer Token
2424
+ * @type {string}
2425
+ * @memberof ProductsApiListProductFieldTypes
2426
+ */
2427
+ readonly authorization?: string
2428
+
2429
+ /**
2430
+ * Page size
2431
+ * @type {number}
2432
+ * @memberof ProductsApiListProductFieldTypes
2433
+ */
2434
+ readonly pageSize?: number
2435
+
2436
+ /**
2437
+ * Page token
2438
+ * @type {string}
2439
+ * @memberof ProductsApiListProductFieldTypes
2440
+ */
2441
+ readonly pageToken?: string
2442
+
2443
+ /**
2444
+ * List filter
2445
+ * @type {string}
2446
+ * @memberof ProductsApiListProductFieldTypes
2447
+ */
2448
+ readonly filter?: string
2449
+
2450
+ /**
2451
+ * Search query
2452
+ * @type {string}
2453
+ * @memberof ProductsApiListProductFieldTypes
2454
+ */
2455
+ readonly search?: string
2456
+
2457
+ /**
2458
+ * Ordering criteria
2459
+ * @type {string}
2460
+ * @memberof ProductsApiListProductFieldTypes
2461
+ */
2462
+ readonly order?: string
2463
+
2464
+ /**
2465
+ * Extra fields to fetch
2466
+ * @type {string}
2467
+ * @memberof ProductsApiListProductFieldTypes
2468
+ */
2469
+ readonly expand?: string
2470
+ }
2471
+
2472
+ /**
2473
+ * Request parameters for listProductFields operation in ProductsApi.
2474
+ * @export
2475
+ * @interface ProductsApiListProductFieldsRequest
2476
+ */
2477
+ export interface ProductsApiListProductFieldsRequest {
2478
+ /**
2479
+ * Bearer Token
2480
+ * @type {string}
2481
+ * @memberof ProductsApiListProductFields
2482
+ */
2483
+ readonly authorization?: string
2484
+
2485
+ /**
2486
+ * Page size
2487
+ * @type {number}
2488
+ * @memberof ProductsApiListProductFields
2489
+ */
2490
+ readonly pageSize?: number
2491
+
2492
+ /**
2493
+ * Page token
2494
+ * @type {string}
2495
+ * @memberof ProductsApiListProductFields
2496
+ */
2497
+ readonly pageToken?: string
2498
+
2499
+ /**
2500
+ * List filter
2501
+ * @type {string}
2502
+ * @memberof ProductsApiListProductFields
2503
+ */
2504
+ readonly filter?: string
2505
+
2506
+ /**
2507
+ * Search query
2508
+ * @type {string}
2509
+ * @memberof ProductsApiListProductFields
2510
+ */
2511
+ readonly search?: string
2512
+
2513
+ /**
2514
+ * Ordering criteria
2515
+ * @type {string}
2516
+ * @memberof ProductsApiListProductFields
2517
+ */
2518
+ readonly order?: string
2519
+
2520
+ /**
2521
+ * Extra fields to fetch
2522
+ * @type {string}
2523
+ * @memberof ProductsApiListProductFields
2524
+ */
2525
+ readonly expand?: string
2526
+ }
2527
+
2528
+ /**
2529
+ * Request parameters for listProducts operation in ProductsApi.
2530
+ * @export
2531
+ * @interface ProductsApiListProductsRequest
2532
+ */
2533
+ export interface ProductsApiListProductsRequest {
2534
+ /**
2535
+ * Bearer Token: provided by the login endpoint under the name accessToken.
2536
+ * @type {string}
2537
+ * @memberof ProductsApiListProducts
2538
+ */
2539
+ readonly authorization?: string
2540
+
2541
+ /**
2542
+ * Page size
2543
+ * @type {number}
2544
+ * @memberof ProductsApiListProducts
2545
+ */
2546
+ readonly pageSize?: number
2547
+
2548
+ /**
2549
+ * Page token
2550
+ * @type {string}
2551
+ * @memberof ProductsApiListProducts
2552
+ */
2553
+ readonly pageToken?: string
2554
+
2555
+ /**
2556
+ * List filter
2557
+ * @type {string}
2558
+ * @memberof ProductsApiListProducts
2559
+ */
2560
+ readonly filter?: string
2561
+
2562
+ /**
2563
+ * Search query
2564
+ * @type {string}
2565
+ * @memberof ProductsApiListProducts
2566
+ */
2567
+ readonly search?: string
2568
+
2569
+ /**
2570
+ * Ordering criteria
2571
+ * @type {string}
2572
+ * @memberof ProductsApiListProducts
2573
+ */
2574
+ readonly order?: string
2575
+
2576
+ /**
2577
+ * Extra fields to fetch
2578
+ * @type {string}
2579
+ * @memberof ProductsApiListProducts
2580
+ */
2581
+ readonly expand?: string
2582
+ }
2583
+
2584
+ /**
2585
+ * Request parameters for storeProductFactors operation in ProductsApi.
2586
+ * @export
2587
+ * @interface ProductsApiStoreProductFactorsRequest
2588
+ */
2589
+ export interface ProductsApiStoreProductFactorsRequest {
2590
+ /**
2591
+ * Bearer Token
2592
+ * @type {string}
2593
+ * @memberof ProductsApiStoreProductFactors
2594
+ */
2595
+ readonly authorization?: string
2596
+
2597
+ /**
2598
+ *
2599
+ * @type {number}
2600
+ * @memberof ProductsApiStoreProductFactors
2601
+ */
2602
+ readonly productVersionId?: number
2603
+
2604
+ /**
2605
+ *
2606
+ * @type {any}
2607
+ * @memberof ProductsApiStoreProductFactors
2608
+ */
2609
+ readonly factors?: any
2610
+ }
2611
+
2612
+ /**
2613
+ * Request parameters for updatePremiumFormula operation in ProductsApi.
2614
+ * @export
2615
+ * @interface ProductsApiUpdatePremiumFormulaRequest
2616
+ */
2617
+ export interface ProductsApiUpdatePremiumFormulaRequest {
2618
+ /**
2619
+ *
2620
+ * @type {number}
2621
+ * @memberof ProductsApiUpdatePremiumFormula
2622
+ */
2623
+ readonly id: number
2624
+
2625
+ /**
2626
+ *
2627
+ * @type {UpdatePremiumFormulaRequestDto}
2628
+ * @memberof ProductsApiUpdatePremiumFormula
2629
+ */
2630
+ readonly updatePremiumFormulaRequestDto: UpdatePremiumFormulaRequestDto
2631
+
2632
+ /**
2633
+ * Bearer Token
2634
+ * @type {string}
2635
+ * @memberof ProductsApiUpdatePremiumFormula
2636
+ */
2637
+ readonly authorization?: string
2638
+ }
2639
+
2640
+ /**
2641
+ * Request parameters for updateProduct operation in ProductsApi.
2642
+ * @export
2643
+ * @interface ProductsApiUpdateProductRequest
2644
+ */
2645
+ export interface ProductsApiUpdateProductRequest {
2646
+ /**
2647
+ *
2648
+ * @type {number}
2649
+ * @memberof ProductsApiUpdateProduct
2650
+ */
2651
+ readonly id: number
2652
+
2653
+ /**
2654
+ *
2655
+ * @type {UpdateProductRequestDto}
2656
+ * @memberof ProductsApiUpdateProduct
2657
+ */
2658
+ readonly updateProductRequestDto: UpdateProductRequestDto
2659
+
2660
+ /**
2661
+ * Bearer Token: provided by the login endpoint under the name accessToken.
2662
+ * @type {string}
2663
+ * @memberof ProductsApiUpdateProduct
2664
+ */
2665
+ readonly authorization?: string
2666
+ }
2667
+
2668
+ /**
2669
+ * Request parameters for updateProductField operation in ProductsApi.
2670
+ * @export
2671
+ * @interface ProductsApiUpdateProductFieldRequest
2672
+ */
2673
+ export interface ProductsApiUpdateProductFieldRequest {
2674
+ /**
2675
+ *
2676
+ * @type {string}
2677
+ * @memberof ProductsApiUpdateProductField
2678
+ */
2679
+ readonly id: string
2680
+
2681
+ /**
2682
+ *
2683
+ * @type {UpdateProductFieldRequestDto}
2684
+ * @memberof ProductsApiUpdateProductField
2685
+ */
2686
+ readonly updateProductFieldRequestDto: UpdateProductFieldRequestDto
2687
+
2688
+ /**
2689
+ * Bearer Token
2690
+ * @type {string}
2691
+ * @memberof ProductsApiUpdateProductField
2692
+ */
2693
+ readonly authorization?: string
2694
+ }
2695
+
2696
+ /**
2697
+ * Request parameters for updateProductVersion operation in ProductsApi.
2698
+ * @export
2699
+ * @interface ProductsApiUpdateProductVersionRequest
2700
+ */
2701
+ export interface ProductsApiUpdateProductVersionRequest {
2702
+ /**
2703
+ *
2704
+ * @type {number}
2705
+ * @memberof ProductsApiUpdateProductVersion
2706
+ */
2707
+ readonly id: number
2708
+
2709
+ /**
2710
+ *
2711
+ * @type {UpdateProductVersionRequestDto}
2712
+ * @memberof ProductsApiUpdateProductVersion
2713
+ */
2714
+ readonly updateProductVersionRequestDto: UpdateProductVersionRequestDto
2715
+
2716
+ /**
2717
+ * Bearer Token
2718
+ * @type {string}
2719
+ * @memberof ProductsApiUpdateProductVersion
2720
+ */
2721
+ readonly authorization?: string
2722
+ }
2723
+
2724
+ /**
2725
+ * Request parameters for validateProductFactors operation in ProductsApi.
2726
+ * @export
2727
+ * @interface ProductsApiValidateProductFactorsRequest
2728
+ */
2729
+ export interface ProductsApiValidateProductFactorsRequest {
2730
+ /**
2731
+ * Bearer Token
2732
+ * @type {string}
2733
+ * @memberof ProductsApiValidateProductFactors
2734
+ */
2735
+ readonly authorization?: string
2736
+
2737
+ /**
2738
+ *
2739
+ * @type {any}
2740
+ * @memberof ProductsApiValidateProductFactors
2741
+ */
2742
+ readonly factors?: any
2743
+ }
2744
+
2745
+ /**
2746
+ * ProductsApi - object-oriented interface
2747
+ * @export
2748
+ * @class ProductsApi
2749
+ * @extends {BaseAPI}
2750
+ */
2751
+ export class ProductsApi extends BaseAPI {
2752
+ /**
2753
+ * Creates a premium formula.
2754
+ * @summary Create the premium formula
2755
+ * @param {ProductsApiCreatePremiumFormulaRequest} requestParameters Request parameters.
2756
+ * @param {*} [options] Override http request option.
2757
+ * @throws {RequiredError}
2758
+ * @memberof ProductsApi
2759
+ */
2760
+ public createPremiumFormula(requestParameters: ProductsApiCreatePremiumFormulaRequest, options?: AxiosRequestConfig) {
2761
+ return ProductsApiFp(this.configuration).createPremiumFormula(requestParameters.createPremiumFormulaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2762
+ }
2763
+
2764
+ /**
2765
+ * Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
2766
+ * @summary Create the product
2767
+ * @param {ProductsApiCreateProductRequest} requestParameters Request parameters.
2768
+ * @param {*} [options] Override http request option.
2769
+ * @throws {RequiredError}
2770
+ * @memberof ProductsApi
2771
+ */
2772
+ public createProduct(requestParameters: ProductsApiCreateProductRequest, options?: AxiosRequestConfig) {
2773
+ return ProductsApiFp(this.configuration).createProduct(requestParameters.createProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2774
+ }
2775
+
2776
+ /**
2777
+ * Create a product field in the database.
2778
+ * @summary Create the product field
2779
+ * @param {ProductsApiCreateProductFieldRequest} requestParameters Request parameters.
2780
+ * @param {*} [options] Override http request option.
2781
+ * @throws {RequiredError}
2782
+ * @memberof ProductsApi
2783
+ */
2784
+ public createProductField(requestParameters: ProductsApiCreateProductFieldRequest, options?: AxiosRequestConfig) {
2785
+ return ProductsApiFp(this.configuration).createProductField(requestParameters.createProductFieldRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2786
+ }
2787
+
2788
+ /**
2789
+ * Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
2790
+ * @summary Delete the premium formula
2791
+ * @param {ProductsApiDeletePremiumFormulaRequest} requestParameters Request parameters.
2792
+ * @param {*} [options] Override http request option.
2793
+ * @throws {RequiredError}
2794
+ * @memberof ProductsApi
2795
+ */
2796
+ public deletePremiumFormula(requestParameters: ProductsApiDeletePremiumFormulaRequest, options?: AxiosRequestConfig) {
2797
+ return ProductsApiFp(this.configuration).deletePremiumFormula(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2798
+ }
2799
+
2800
+ /**
2801
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
2802
+ * @summary Delete the product
2803
+ * @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
2804
+ * @param {*} [options] Override http request option.
2805
+ * @throws {RequiredError}
2806
+ * @memberof ProductsApi
2807
+ */
2808
+ public deleteProduct(requestParameters: ProductsApiDeleteProductRequest, options?: AxiosRequestConfig) {
2809
+ return ProductsApiFp(this.configuration).deleteProduct(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2810
+ }
2811
+
2812
+ /**
2813
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
2814
+ * @summary Delete the product
2815
+ * @param {ProductsApiDeleteProductFieldRequest} requestParameters Request parameters.
2816
+ * @param {*} [options] Override http request option.
2817
+ * @throws {RequiredError}
2818
+ * @memberof ProductsApi
2819
+ */
2820
+ public deleteProductField(requestParameters: ProductsApiDeleteProductFieldRequest, options?: AxiosRequestConfig) {
2821
+ return ProductsApiFp(this.configuration).deleteProductField(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2822
+ }
2823
+
2824
+ /**
2825
+ * 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.
2826
+ * @summary Retrieve the premium formula
2827
+ * @param {ProductsApiGetPremiumFormulaRequest} requestParameters Request parameters.
2828
+ * @param {*} [options] Override http request option.
2829
+ * @throws {RequiredError}
2830
+ * @memberof ProductsApi
2831
+ */
2832
+ public getPremiumFormula(requestParameters: ProductsApiGetPremiumFormulaRequest, options?: AxiosRequestConfig) {
2833
+ return ProductsApiFp(this.configuration).getPremiumFormula(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2834
+ }
2835
+
2836
+ /**
2837
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
2838
+ * @summary Retrieve the product
2839
+ * @param {ProductsApiGetProductByCodeRequest} requestParameters Request parameters.
2840
+ * @param {*} [options] Override http request option.
2841
+ * @throws {RequiredError}
2842
+ * @memberof ProductsApi
2843
+ */
2844
+ public getProductByCode(requestParameters: ProductsApiGetProductByCodeRequest, options?: AxiosRequestConfig) {
2845
+ return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
2846
+ }
2847
+
2848
+ /**
2849
+ * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
2850
+ * @summary Retrieve the product factor
2851
+ * @param {ProductsApiGetProductFactorRequest} requestParameters Request parameters.
2852
+ * @param {*} [options] Override http request option.
2853
+ * @throws {RequiredError}
2854
+ * @memberof ProductsApi
2855
+ */
2856
+ public getProductFactor(requestParameters: ProductsApiGetProductFactorRequest, options?: AxiosRequestConfig) {
2857
+ return ProductsApiFp(this.configuration).getProductFactor(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
2858
+ }
2859
+
2860
+ /**
2861
+ * Get the value corresponding to a specific product factor.
2862
+ * @summary Get product factor value
2863
+ * @param {ProductsApiGetProductFactorValueRequest} requestParameters Request parameters.
2864
+ * @param {*} [options] Override http request option.
2865
+ * @throws {RequiredError}
2866
+ * @memberof ProductsApi
2867
+ */
2868
+ public getProductFactorValue(requestParameters: ProductsApiGetProductFactorValueRequest, options?: AxiosRequestConfig) {
2869
+ return ProductsApiFp(this.configuration).getProductFactorValue(requestParameters.productVersionId, requestParameters.label, requestParameters.key, requestParameters.name, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2870
+ }
2871
+
2872
+ /**
2873
+ * Retrieves the details of the product field that was previously created. Supply the unique product field id that was returned when you created it and Emil Api will return the corresponding product field information.
2874
+ * @summary Retrieve the product field
2875
+ * @param {ProductsApiGetProductFieldRequest} requestParameters Request parameters.
2876
+ * @param {*} [options] Override http request option.
2877
+ * @throws {RequiredError}
2878
+ * @memberof ProductsApi
2879
+ */
2880
+ public getProductField(requestParameters: ProductsApiGetProductFieldRequest, options?: AxiosRequestConfig) {
2881
+ return ProductsApiFp(this.configuration).getProductField(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2882
+ }
2883
+
2884
+ /**
2885
+ * Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
2886
+ * @summary Retrieve the product version
2887
+ * @param {ProductsApiGetProductVersionRequest} requestParameters Request parameters.
2888
+ * @param {*} [options] Override http request option.
2889
+ * @throws {RequiredError}
2890
+ * @memberof ProductsApi
2891
+ */
2892
+ public getProductVersion(requestParameters: ProductsApiGetProductVersionRequest, options?: AxiosRequestConfig) {
2893
+ return ProductsApiFp(this.configuration).getProductVersion(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2894
+ }
2895
+
2896
+ /**
2897
+ * Returns a list of premium formulas you have previously created. The premium formulas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
2898
+ * @summary List premium formulas
2899
+ * @param {ProductsApiListPremiumFormulasRequest} requestParameters Request parameters.
2900
+ * @param {*} [options] Override http request option.
2901
+ * @throws {RequiredError}
2902
+ * @memberof ProductsApi
2903
+ */
2904
+ public listPremiumFormulas(requestParameters: ProductsApiListPremiumFormulasRequest = {}, options?: AxiosRequestConfig) {
2905
+ return ProductsApiFp(this.configuration).listPremiumFormulas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
2906
+ }
2907
+
2908
+ /**
2909
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
2910
+ * @summary List product factors
2911
+ * @param {ProductsApiListProductFactorsRequest} requestParameters Request parameters.
2912
+ * @param {*} [options] Override http request option.
2913
+ * @throws {RequiredError}
2914
+ * @memberof ProductsApi
2915
+ */
2916
+ public listProductFactors(requestParameters: ProductsApiListProductFactorsRequest = {}, options?: AxiosRequestConfig) {
2917
+ return ProductsApiFp(this.configuration).listProductFactors(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
2918
+ }
2919
+
2920
+ /**
2921
+ * Returns a list of product field types you have previously created. The product field types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
2922
+ * @summary List product field types
2923
+ * @param {ProductsApiListProductFieldTypesRequest} requestParameters Request parameters.
2924
+ * @param {*} [options] Override http request option.
2925
+ * @throws {RequiredError}
2926
+ * @memberof ProductsApi
2927
+ */
2928
+ public listProductFieldTypes(requestParameters: ProductsApiListProductFieldTypesRequest = {}, options?: AxiosRequestConfig) {
2929
+ return ProductsApiFp(this.configuration).listProductFieldTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
2930
+ }
2931
+
2932
+ /**
2933
+ * Returns a list of product fields you have previously created. The product fields are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
2934
+ * @summary List product fields
2935
+ * @param {ProductsApiListProductFieldsRequest} requestParameters Request parameters.
2936
+ * @param {*} [options] Override http request option.
2937
+ * @throws {RequiredError}
2938
+ * @memberof ProductsApi
2939
+ */
2940
+ public listProductFields(requestParameters: ProductsApiListProductFieldsRequest = {}, options?: AxiosRequestConfig) {
2941
+ return ProductsApiFp(this.configuration).listProductFields(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
2942
+ }
2943
+
2944
+ /**
2945
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
2946
+ * @summary List products
2947
+ * @param {ProductsApiListProductsRequest} requestParameters Request parameters.
2948
+ * @param {*} [options] Override http request option.
2949
+ * @throws {RequiredError}
2950
+ * @memberof ProductsApi
2951
+ */
2952
+ public listProducts(requestParameters: ProductsApiListProductsRequest = {}, options?: AxiosRequestConfig) {
2953
+ return ProductsApiFp(this.configuration).listProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
2954
+ }
2955
+
2956
+ /**
2957
+ * Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
2958
+ * @summary Upload product factors
2959
+ * @param {ProductsApiStoreProductFactorsRequest} requestParameters Request parameters.
2960
+ * @param {*} [options] Override http request option.
2961
+ * @throws {RequiredError}
2962
+ * @memberof ProductsApi
2963
+ */
2964
+ public storeProductFactors(requestParameters: ProductsApiStoreProductFactorsRequest = {}, options?: AxiosRequestConfig) {
2965
+ return ProductsApiFp(this.configuration).storeProductFactors(requestParameters.authorization, requestParameters.productVersionId, requestParameters.factors, options).then((request) => request(this.axios, this.basePath));
2966
+ }
2967
+
2968
+ /**
2969
+ * Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2970
+ * @summary Update the premium formula
2971
+ * @param {ProductsApiUpdatePremiumFormulaRequest} requestParameters Request parameters.
2972
+ * @param {*} [options] Override http request option.
2973
+ * @throws {RequiredError}
2974
+ * @memberof ProductsApi
2975
+ */
2976
+ public updatePremiumFormula(requestParameters: ProductsApiUpdatePremiumFormulaRequest, options?: AxiosRequestConfig) {
2977
+ return ProductsApiFp(this.configuration).updatePremiumFormula(requestParameters.id, requestParameters.updatePremiumFormulaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2978
+ }
2979
+
2980
+ /**
2981
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2982
+ * @summary Update the product
2983
+ * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
2984
+ * @param {*} [options] Override http request option.
2985
+ * @throws {RequiredError}
2986
+ * @memberof ProductsApi
2987
+ */
2988
+ public updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: AxiosRequestConfig) {
2989
+ return ProductsApiFp(this.configuration).updateProduct(requestParameters.id, requestParameters.updateProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
2990
+ }
2991
+
2992
+ /**
2993
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
2994
+ * @summary Update the product
2995
+ * @param {ProductsApiUpdateProductFieldRequest} requestParameters Request parameters.
2996
+ * @param {*} [options] Override http request option.
2997
+ * @throws {RequiredError}
2998
+ * @memberof ProductsApi
2999
+ */
3000
+ public updateProductField(requestParameters: ProductsApiUpdateProductFieldRequest, options?: AxiosRequestConfig) {
3001
+ return ProductsApiFp(this.configuration).updateProductField(requestParameters.id, requestParameters.updateProductFieldRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
3002
+ }
3003
+
3004
+ /**
3005
+ * Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
3006
+ * @summary Update the product version
3007
+ * @param {ProductsApiUpdateProductVersionRequest} requestParameters Request parameters.
3008
+ * @param {*} [options] Override http request option.
3009
+ * @throws {RequiredError}
3010
+ * @memberof ProductsApi
3011
+ */
3012
+ public updateProductVersion(requestParameters: ProductsApiUpdateProductVersionRequest, options?: AxiosRequestConfig) {
3013
+ return ProductsApiFp(this.configuration).updateProductVersion(requestParameters.id, requestParameters.updateProductVersionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
3014
+ }
3015
+
3016
+ /**
3017
+ * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
3018
+ * @summary Validate product factors
3019
+ * @param {ProductsApiValidateProductFactorsRequest} requestParameters Request parameters.
3020
+ * @param {*} [options] Override http request option.
3021
+ * @throws {RequiredError}
3022
+ * @memberof ProductsApi
3023
+ */
3024
+ public validateProductFactors(requestParameters: ProductsApiValidateProductFactorsRequest = {}, options?: AxiosRequestConfig) {
3025
+ return ProductsApiFp(this.configuration).validateProductFactors(requestParameters.authorization, requestParameters.factors, options).then((request) => request(this.axios, this.basePath));
3026
+ }
3027
+ }