@emilgroup/insurance-sdk-node 1.32.0 → 1.35.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 (322) hide show
  1. package/README.md +2 -2
  2. package/api/insured-objects-api.ts +8 -8
  3. package/api/policies-api.ts +23 -23
  4. package/api/product-fields-api.ts +24 -24
  5. package/api/products-api.ts +60 -12
  6. package/models/create-payment-method-request-dto.ts +1 -9
  7. package/models/get-product-request-dto.ts +4 -4
  8. package/models/inline-response200.ts +6 -6
  9. package/models/inline-response503.ts +6 -6
  10. package/models/product-field-class.ts +1 -1
  11. package/models/shared-product-field-class.ts +1 -1
  12. package/models/terminate-policy-request-dto.ts +23 -0
  13. package/models/update-policy-request-dto.ts +8 -1
  14. package/package.json +2 -2
  15. package/dist/api/default-api.d.ts +0 -66
  16. package/dist/api/default-api.js +0 -200
  17. package/dist/api/insured-object-types-api.d.ts +0 -141
  18. package/dist/api/insured-object-types-api.js +0 -258
  19. package/dist/api/insured-objects-api.d.ts +0 -318
  20. package/dist/api/insured-objects-api.js +0 -539
  21. package/dist/api/lead-statuses-api.d.ts +0 -265
  22. package/dist/api/lead-statuses-api.js +0 -505
  23. package/dist/api/leads-api.d.ts +0 -626
  24. package/dist/api/leads-api.js +0 -1024
  25. package/dist/api/named-ranges-api.d.ts +0 -376
  26. package/dist/api/named-ranges-api.js +0 -634
  27. package/dist/api/policies-api.d.ts +0 -722
  28. package/dist/api/policies-api.js +0 -1141
  29. package/dist/api/premium-formulas-api.d.ts +0 -433
  30. package/dist/api/premium-formulas-api.js +0 -727
  31. package/dist/api/product-factors-api.d.ts +0 -493
  32. package/dist/api/product-factors-api.js +0 -788
  33. package/dist/api/product-fields-api.d.ts +0 -477
  34. package/dist/api/product-fields-api.js +0 -757
  35. package/dist/api/product-versions-api.d.ts +0 -189
  36. package/dist/api/product-versions-api.js +0 -346
  37. package/dist/api/products-api.d.ts +0 -458
  38. package/dist/api/products-api.js +0 -748
  39. package/dist/api.d.ts +0 -23
  40. package/dist/api.js +0 -41
  41. package/dist/base.d.ts +0 -78
  42. package/dist/base.js +0 -394
  43. package/dist/common.d.ts +0 -92
  44. package/dist/common.js +0 -277
  45. package/dist/configuration.d.ts +0 -90
  46. package/dist/configuration.js +0 -44
  47. package/dist/index.d.ts +0 -15
  48. package/dist/index.js +0 -36
  49. package/dist/models/activate-policy-request-dto.d.ts +0 -24
  50. package/dist/models/activate-policy-request-dto.js +0 -15
  51. package/dist/models/activate-policy-response-class.d.ts +0 -25
  52. package/dist/models/activate-policy-response-class.js +0 -15
  53. package/dist/models/calculate-custom-premium-request-dto.d.ts +0 -35
  54. package/dist/models/calculate-custom-premium-request-dto.js +0 -20
  55. package/dist/models/calculate-premium-request-dto.d.ts +0 -38
  56. package/dist/models/calculate-premium-request-dto.js +0 -15
  57. package/dist/models/calculate-product-fields-request-dto.d.ts +0 -31
  58. package/dist/models/calculate-product-fields-request-dto.js +0 -15
  59. package/dist/models/clone-product-version-request-dto.d.ts +0 -36
  60. package/dist/models/clone-product-version-request-dto.js +0 -15
  61. package/dist/models/create-account-request-dto.d.ts +0 -120
  62. package/dist/models/create-account-request-dto.js +0 -26
  63. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  64. package/dist/models/create-bank-account-request-dto.js +0 -15
  65. package/dist/models/create-custom-application-request-dto.d.ts +0 -41
  66. package/dist/models/create-custom-application-request-dto.js +0 -20
  67. package/dist/models/create-dummy-policy-request-dto.d.ts +0 -44
  68. package/dist/models/create-dummy-policy-request-dto.js +0 -15
  69. package/dist/models/create-insured-object-request-dto.d.ts +0 -60
  70. package/dist/models/create-insured-object-request-dto.js +0 -15
  71. package/dist/models/create-insured-object-response-class.d.ts +0 -25
  72. package/dist/models/create-insured-object-response-class.js +0 -15
  73. package/dist/models/create-lead-async-response-class.d.ts +0 -24
  74. package/dist/models/create-lead-async-response-class.js +0 -15
  75. package/dist/models/create-lead-policy-request-dto.d.ts +0 -56
  76. package/dist/models/create-lead-policy-request-dto.js +0 -15
  77. package/dist/models/create-lead-request-dto.d.ts +0 -96
  78. package/dist/models/create-lead-request-dto.js +0 -15
  79. package/dist/models/create-lead-response-class.d.ts +0 -25
  80. package/dist/models/create-lead-response-class.js +0 -15
  81. package/dist/models/create-lead-status-request-dto.d.ts +0 -30
  82. package/dist/models/create-lead-status-request-dto.js +0 -15
  83. package/dist/models/create-lead-status-response-class.d.ts +0 -25
  84. package/dist/models/create-lead-status-response-class.js +0 -15
  85. package/dist/models/create-named-range-request-dto.d.ts +0 -55
  86. package/dist/models/create-named-range-request-dto.js +0 -15
  87. package/dist/models/create-named-range-response-class.d.ts +0 -25
  88. package/dist/models/create-named-range-response-class.js +0 -15
  89. package/dist/models/create-named-request-s3-data-class.d.ts +0 -30
  90. package/dist/models/create-named-request-s3-data-class.js +0 -15
  91. package/dist/models/create-payment-method-request-dto.d.ts +0 -36
  92. package/dist/models/create-payment-method-request-dto.js +0 -20
  93. package/dist/models/create-policy-request-dto.d.ts +0 -62
  94. package/dist/models/create-policy-request-dto.js +0 -15
  95. package/dist/models/create-policy-response-class.d.ts +0 -25
  96. package/dist/models/create-policy-response-class.js +0 -15
  97. package/dist/models/create-premium-formula-request-dto.d.ts +0 -105
  98. package/dist/models/create-premium-formula-request-dto.js +0 -39
  99. package/dist/models/create-premium-formula-response-class.d.ts +0 -25
  100. package/dist/models/create-premium-formula-response-class.js +0 -15
  101. package/dist/models/create-product-field-request-dto.d.ts +0 -137
  102. package/dist/models/create-product-field-request-dto.js +0 -20
  103. package/dist/models/create-product-field-response-class.d.ts +0 -25
  104. package/dist/models/create-product-field-response-class.js +0 -15
  105. package/dist/models/create-product-request-dto.d.ts +0 -85
  106. package/dist/models/create-product-request-dto.js +0 -51
  107. package/dist/models/create-product-response-class.d.ts +0 -25
  108. package/dist/models/create-product-response-class.js +0 -15
  109. package/dist/models/csv-product-factor-dto.d.ts +0 -48
  110. package/dist/models/csv-product-factor-dto.js +0 -15
  111. package/dist/models/delete-request-dto.d.ts +0 -24
  112. package/dist/models/delete-request-dto.js +0 -15
  113. package/dist/models/delete-response-class.d.ts +0 -24
  114. package/dist/models/delete-response-class.js +0 -15
  115. package/dist/models/empty-response-class.d.ts +0 -24
  116. package/dist/models/empty-response-class.js +0 -15
  117. package/dist/models/get-insured-object-response-class.d.ts +0 -25
  118. package/dist/models/get-insured-object-response-class.js +0 -15
  119. package/dist/models/get-lead-response-class.d.ts +0 -25
  120. package/dist/models/get-lead-response-class.js +0 -15
  121. package/dist/models/get-lead-status-response-class.d.ts +0 -25
  122. package/dist/models/get-lead-status-response-class.js +0 -15
  123. package/dist/models/get-named-range-response-class.d.ts +0 -25
  124. package/dist/models/get-named-range-response-class.js +0 -15
  125. package/dist/models/get-policy-data-by-date-request-dto.d.ts +0 -30
  126. package/dist/models/get-policy-data-by-date-request-dto.js +0 -15
  127. package/dist/models/get-policy-request-dto.d.ts +0 -30
  128. package/dist/models/get-policy-request-dto.js +0 -15
  129. package/dist/models/get-policy-response-class.d.ts +0 -25
  130. package/dist/models/get-policy-response-class.js +0 -15
  131. package/dist/models/get-premium-formula-request-dto.d.ts +0 -24
  132. package/dist/models/get-premium-formula-request-dto.js +0 -15
  133. package/dist/models/get-premium-formula-response-class.d.ts +0 -25
  134. package/dist/models/get-premium-formula-response-class.js +0 -15
  135. package/dist/models/get-product-factor-response-class.d.ts +0 -32
  136. package/dist/models/get-product-factor-response-class.js +0 -15
  137. package/dist/models/get-product-factor-value-request-dto.d.ts +0 -42
  138. package/dist/models/get-product-factor-value-request-dto.js +0 -15
  139. package/dist/models/get-product-factor-value-response-class.d.ts +0 -25
  140. package/dist/models/get-product-factor-value-response-class.js +0 -15
  141. package/dist/models/get-product-factors-for-version-request-dto.d.ts +0 -36
  142. package/dist/models/get-product-factors-for-version-request-dto.js +0 -15
  143. package/dist/models/get-product-factors-for-version-response-class.d.ts +0 -25
  144. package/dist/models/get-product-factors-for-version-response-class.js +0 -15
  145. package/dist/models/get-product-field-request-dto.d.ts +0 -24
  146. package/dist/models/get-product-field-request-dto.js +0 -15
  147. package/dist/models/get-product-field-response-class.d.ts +0 -25
  148. package/dist/models/get-product-field-response-class.js +0 -15
  149. package/dist/models/get-product-request-dto.d.ts +0 -42
  150. package/dist/models/get-product-request-dto.js +0 -15
  151. package/dist/models/get-product-response-class.d.ts +0 -25
  152. package/dist/models/get-product-response-class.js +0 -15
  153. package/dist/models/get-product-version-request-dto.d.ts +0 -36
  154. package/dist/models/get-product-version-request-dto.js +0 -15
  155. package/dist/models/get-product-version-response-class.d.ts +0 -25
  156. package/dist/models/get-product-version-response-class.js +0 -15
  157. package/dist/models/grouped-product-factor-class.d.ts +0 -37
  158. package/dist/models/grouped-product-factor-class.js +0 -15
  159. package/dist/models/grouped-product-factor-value-class.d.ts +0 -42
  160. package/dist/models/grouped-product-factor-value-class.js +0 -15
  161. package/dist/models/grouped-product-factors-response-class.d.ts +0 -25
  162. package/dist/models/grouped-product-factors-response-class.js +0 -15
  163. package/dist/models/grpc-patch-lead-request-dto.d.ts +0 -102
  164. package/dist/models/grpc-patch-lead-request-dto.js +0 -15
  165. package/dist/models/grpc-update-lead-request-dto.d.ts +0 -102
  166. package/dist/models/grpc-update-lead-request-dto.js +0 -15
  167. package/dist/models/index.d.ts +0 -136
  168. package/dist/models/index.js +0 -152
  169. package/dist/models/inline-response200.d.ts +0 -54
  170. package/dist/models/inline-response200.js +0 -15
  171. package/dist/models/inline-response503.d.ts +0 -54
  172. package/dist/models/inline-response503.js +0 -15
  173. package/dist/models/insured-object-class.d.ts +0 -85
  174. package/dist/models/insured-object-class.js +0 -15
  175. package/dist/models/insured-object-type-class.d.ts +0 -48
  176. package/dist/models/insured-object-type-class.js +0 -15
  177. package/dist/models/invoice-item-class.d.ts +0 -117
  178. package/dist/models/invoice-item-class.js +0 -24
  179. package/dist/models/invoice-status-class.d.ts +0 -47
  180. package/dist/models/invoice-status-class.js +0 -20
  181. package/dist/models/lead-bank-account-class.d.ts +0 -30
  182. package/dist/models/lead-bank-account-class.js +0 -15
  183. package/dist/models/lead-class.d.ts +0 -133
  184. package/dist/models/lead-class.js +0 -15
  185. package/dist/models/lead-status-class.d.ts +0 -36
  186. package/dist/models/lead-status-class.js +0 -15
  187. package/dist/models/list-insured-object-types-response-class.d.ts +0 -31
  188. package/dist/models/list-insured-object-types-response-class.js +0 -15
  189. package/dist/models/list-insured-objects-response-class.d.ts +0 -31
  190. package/dist/models/list-insured-objects-response-class.js +0 -15
  191. package/dist/models/list-lead-statuses-response-class.d.ts +0 -31
  192. package/dist/models/list-lead-statuses-response-class.js +0 -15
  193. package/dist/models/list-leads-response-class.d.ts +0 -43
  194. package/dist/models/list-leads-response-class.js +0 -15
  195. package/dist/models/list-named-ranges-response-class.d.ts +0 -30
  196. package/dist/models/list-named-ranges-response-class.js +0 -15
  197. package/dist/models/list-policies-response-class.d.ts +0 -43
  198. package/dist/models/list-policies-response-class.js +0 -15
  199. package/dist/models/list-premium-formulas-response-class.d.ts +0 -31
  200. package/dist/models/list-premium-formulas-response-class.js +0 -15
  201. package/dist/models/list-product-factors-response-class.d.ts +0 -31
  202. package/dist/models/list-product-factors-response-class.js +0 -15
  203. package/dist/models/list-product-field-types-response-class.d.ts +0 -31
  204. package/dist/models/list-product-field-types-response-class.js +0 -15
  205. package/dist/models/list-product-fields-response-class.d.ts +0 -31
  206. package/dist/models/list-product-fields-response-class.js +0 -15
  207. package/dist/models/list-products-response-class.d.ts +0 -31
  208. package/dist/models/list-products-response-class.js +0 -15
  209. package/dist/models/list-request-dto.d.ts +0 -54
  210. package/dist/models/list-request-dto.js +0 -15
  211. package/dist/models/named-range-class.d.ts +0 -78
  212. package/dist/models/named-range-class.js +0 -15
  213. package/dist/models/patch-lead-request-dto.d.ts +0 -90
  214. package/dist/models/patch-lead-request-dto.js +0 -15
  215. package/dist/models/patch-lead-response-class.d.ts +0 -25
  216. package/dist/models/patch-lead-response-class.js +0 -15
  217. package/dist/models/patch-policy-request-dto.d.ts +0 -50
  218. package/dist/models/patch-policy-request-dto.js +0 -15
  219. package/dist/models/patch-policy-response-class.d.ts +0 -25
  220. package/dist/models/patch-policy-response-class.js +0 -15
  221. package/dist/models/policy-class.d.ts +0 -128
  222. package/dist/models/policy-class.js +0 -15
  223. package/dist/models/policy-object-class.d.ts +0 -60
  224. package/dist/models/policy-object-class.js +0 -15
  225. package/dist/models/policy-object-dto.d.ts +0 -42
  226. package/dist/models/policy-object-dto.js +0 -15
  227. package/dist/models/policy-premium-class.d.ts +0 -49
  228. package/dist/models/policy-premium-class.js +0 -15
  229. package/dist/models/policy-premium-item-class.d.ts +0 -55
  230. package/dist/models/policy-premium-item-class.js +0 -15
  231. package/dist/models/policy-version-class.d.ts +0 -55
  232. package/dist/models/policy-version-class.js +0 -15
  233. package/dist/models/premium-formula-class.d.ts +0 -96
  234. package/dist/models/premium-formula-class.js +0 -15
  235. package/dist/models/premium-override-dto.d.ts +0 -55
  236. package/dist/models/premium-override-dto.js +0 -27
  237. package/dist/models/premium-override-request-class.d.ts +0 -25
  238. package/dist/models/premium-override-request-class.js +0 -15
  239. package/dist/models/premium-override-request-dto.d.ts +0 -25
  240. package/dist/models/premium-override-request-dto.js +0 -15
  241. package/dist/models/product-class.d.ts +0 -80
  242. package/dist/models/product-class.js +0 -15
  243. package/dist/models/product-factor-class.d.ts +0 -61
  244. package/dist/models/product-factor-class.js +0 -15
  245. package/dist/models/product-factor-for-version-class.d.ts +0 -61
  246. package/dist/models/product-factor-for-version-class.js +0 -15
  247. package/dist/models/product-factor-value-class.d.ts +0 -60
  248. package/dist/models/product-factor-value-class.js +0 -15
  249. package/dist/models/product-factor-value-for-version-class.d.ts +0 -42
  250. package/dist/models/product-factor-value-for-version-class.js +0 -15
  251. package/dist/models/product-field-class.d.ts +0 -132
  252. package/dist/models/product-field-class.js +0 -15
  253. package/dist/models/product-field-type-class.d.ts +0 -48
  254. package/dist/models/product-field-type-class.js +0 -15
  255. package/dist/models/product-version-class.d.ts +0 -61
  256. package/dist/models/product-version-class.js +0 -22
  257. package/dist/models/sepa-dto.d.ts +0 -30
  258. package/dist/models/sepa-dto.js +0 -15
  259. package/dist/models/shared-create-lead-policy-request-dto.d.ts +0 -56
  260. package/dist/models/shared-create-lead-policy-request-dto.js +0 -15
  261. package/dist/models/shared-invoice-class.d.ts +0 -150
  262. package/dist/models/shared-invoice-class.js +0 -30
  263. package/dist/models/shared-lead-policy-object-dto.d.ts +0 -42
  264. package/dist/models/shared-lead-policy-object-dto.js +0 -15
  265. package/dist/models/shared-product-field-class.d.ts +0 -132
  266. package/dist/models/shared-product-field-class.js +0 -15
  267. package/dist/models/shared-update-named-range-request-dto.d.ts +0 -42
  268. package/dist/models/shared-update-named-range-request-dto.js +0 -15
  269. package/dist/models/shared-update-premium-formula-request-dto.d.ts +0 -111
  270. package/dist/models/shared-update-premium-formula-request-dto.js +0 -39
  271. package/dist/models/store-product-factors-request-dto.d.ts +0 -31
  272. package/dist/models/store-product-factors-request-dto.js +0 -15
  273. package/dist/models/store-product-factors-response-class.d.ts +0 -25
  274. package/dist/models/store-product-factors-response-class.js +0 -15
  275. package/dist/models/suspend-policy-request-dto.d.ts +0 -24
  276. package/dist/models/suspend-policy-request-dto.js +0 -15
  277. package/dist/models/suspend-policy-response-class.d.ts +0 -25
  278. package/dist/models/suspend-policy-response-class.js +0 -15
  279. package/dist/models/swap-premium-formulas-order-request-dto.d.ts +0 -30
  280. package/dist/models/swap-premium-formulas-order-request-dto.js +0 -15
  281. package/dist/models/terminate-policy-request-dto.d.ts +0 -24
  282. package/dist/models/terminate-policy-request-dto.js +0 -15
  283. package/dist/models/terminate-policy-response-class.d.ts +0 -25
  284. package/dist/models/terminate-policy-response-class.js +0 -15
  285. package/dist/models/timeslice-class.d.ts +0 -62
  286. package/dist/models/timeslice-class.js +0 -15
  287. package/dist/models/update-insured-object-request-dto.d.ts +0 -66
  288. package/dist/models/update-insured-object-request-dto.js +0 -15
  289. package/dist/models/update-lead-request-dto.d.ts +0 -90
  290. package/dist/models/update-lead-request-dto.js +0 -15
  291. package/dist/models/update-lead-response-class.d.ts +0 -25
  292. package/dist/models/update-lead-response-class.js +0 -15
  293. package/dist/models/update-named-range-request-dto.d.ts +0 -36
  294. package/dist/models/update-named-range-request-dto.js +0 -15
  295. package/dist/models/update-named-range-response-class.d.ts +0 -25
  296. package/dist/models/update-named-range-response-class.js +0 -15
  297. package/dist/models/update-policy-request-dto.d.ts +0 -69
  298. package/dist/models/update-policy-request-dto.js +0 -22
  299. package/dist/models/update-policy-response-class.d.ts +0 -25
  300. package/dist/models/update-policy-response-class.js +0 -15
  301. package/dist/models/update-premium-formula-request-dto.d.ts +0 -105
  302. package/dist/models/update-premium-formula-request-dto.js +0 -39
  303. package/dist/models/update-premium-formula-response-class.d.ts +0 -25
  304. package/dist/models/update-premium-formula-response-class.js +0 -15
  305. package/dist/models/update-product-field-request-dto.d.ts +0 -143
  306. package/dist/models/update-product-field-request-dto.js +0 -20
  307. package/dist/models/update-product-field-response-class.d.ts +0 -25
  308. package/dist/models/update-product-field-response-class.js +0 -15
  309. package/dist/models/update-product-request-dto.d.ts +0 -42
  310. package/dist/models/update-product-request-dto.js +0 -15
  311. package/dist/models/update-product-response-class.d.ts +0 -25
  312. package/dist/models/update-product-response-class.js +0 -15
  313. package/dist/models/update-product-version-request-dto.d.ts +0 -43
  314. package/dist/models/update-product-version-request-dto.js +0 -22
  315. package/dist/models/update-product-version-response-class.d.ts +0 -25
  316. package/dist/models/update-product-version-response-class.js +0 -15
  317. package/dist/models/uploaded-document-dto.d.ts +0 -24
  318. package/dist/models/uploaded-document-dto.js +0 -15
  319. package/dist/models/validate-product-factors-request-dto.d.ts +0 -31
  320. package/dist/models/validate-product-factors-request-dto.js +0 -15
  321. package/dist/models/withdraw-policy-response-class.d.ts +0 -25
  322. package/dist/models/withdraw-policy-response-class.js +0 -15
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/insurance-sdk-node@1.32.0 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.35.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.32.0
24
+ yarn add @emilgroup/insurance-sdk-node@1.35.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -88,12 +88,12 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
88
88
  /**
89
89
  * Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
90
90
  * @summary Delete the insured object
91
- * @param {string} id
91
+ * @param {number} id
92
92
  * @param {string} [authorization] Bearer Token
93
93
  * @param {*} [options] Override http request option.
94
94
  * @throws {RequiredError}
95
95
  */
96
- deleteInsuredObject: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
+ deleteInsuredObject: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
97
  // verify required parameter 'id' is not null or undefined
98
98
  assertParamExists('deleteInsuredObject', 'id', id)
99
99
  const localVarPath = `/insuranceservice/v1/insured-objects/{id}`
@@ -273,12 +273,12 @@ export const InsuredObjectsApiFp = function(configuration?: Configuration) {
273
273
  /**
274
274
  * Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
275
275
  * @summary Delete the insured object
276
- * @param {string} id
276
+ * @param {number} id
277
277
  * @param {string} [authorization] Bearer Token
278
278
  * @param {*} [options] Override http request option.
279
279
  * @throws {RequiredError}
280
280
  */
281
- async deleteInsuredObject(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
281
+ async deleteInsuredObject(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
282
282
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInsuredObject(id, authorization, options);
283
283
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
284
284
  },
@@ -336,12 +336,12 @@ export const InsuredObjectsApiFactory = function (configuration?: Configuration,
336
336
  /**
337
337
  * Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
338
338
  * @summary Delete the insured object
339
- * @param {string} id
339
+ * @param {number} id
340
340
  * @param {string} [authorization] Bearer Token
341
341
  * @param {*} [options] Override http request option.
342
342
  * @throws {RequiredError}
343
343
  */
344
- deleteInsuredObject(id: string, authorization?: string, options?: any): AxiosPromise<void> {
344
+ deleteInsuredObject(id: number, authorization?: string, options?: any): AxiosPromise<object> {
345
345
  return localVarFp.deleteInsuredObject(id, authorization, options).then((request) => request(axios, basePath));
346
346
  },
347
347
  /**
@@ -404,10 +404,10 @@ export interface InsuredObjectsApiCreateInsuredObjectRequest {
404
404
  export interface InsuredObjectsApiDeleteInsuredObjectRequest {
405
405
  /**
406
406
  *
407
- * @type {string}
407
+ * @type {number}
408
408
  * @memberof InsuredObjectsApiDeleteInsuredObject
409
409
  */
410
- readonly id: string
410
+ readonly id: number
411
411
 
412
412
  /**
413
413
  * Bearer Token
@@ -112,7 +112,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
112
112
  };
113
113
  },
114
114
  /**
115
- * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
115
+ * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
116
116
  * @summary Create the policy
117
117
  * @param {CreatePolicyRequestDto} createPolicyRequestDto
118
118
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -209,7 +209,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
209
209
  };
210
210
  },
211
211
  /**
212
- * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
212
+ * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
213
213
  * @summary Retrieve current policy version
214
214
  * @param {string} code Unique identifier for the object.
215
215
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -264,14 +264,14 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
264
264
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
265
265
  * @param {number} [pageSize] Page size.
266
266
  * @param {string} [pageToken] Page token.
267
- * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
267
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, leadCode, policyNumber, holder, policyStartDate, productVersionId, productId, accountCode, productName, statuses, createdAt, policyData&lt;/i&gt;
268
268
  * @param {string} [search] Search query.
269
- * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
269
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
270
270
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
271
271
  * @param {*} [options] Override http request option.
272
272
  * @throws {RequiredError}
273
273
  */
274
- listPolicies: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
274
+ listPolicies: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
275
  const localVarPath = `/insuranceservice/v1/policies`;
276
276
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
277
277
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -608,7 +608,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
608
608
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
609
609
  },
610
610
  /**
611
- * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
611
+ * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
612
612
  * @summary Create the policy
613
613
  * @param {CreatePolicyRequestDto} createPolicyRequestDto
614
614
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -633,7 +633,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
633
633
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
634
634
  },
635
635
  /**
636
- * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
636
+ * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
637
637
  * @summary Retrieve current policy version
638
638
  * @param {string} code Unique identifier for the object.
639
639
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -651,14 +651,14 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
651
651
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
652
652
  * @param {number} [pageSize] Page size.
653
653
  * @param {string} [pageToken] Page token.
654
- * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
654
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, leadCode, policyNumber, holder, policyStartDate, productVersionId, productId, accountCode, productName, statuses, createdAt, policyData&lt;/i&gt;
655
655
  * @param {string} [search] Search query.
656
- * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
656
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
657
657
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
658
658
  * @param {*} [options] Override http request option.
659
659
  * @throws {RequiredError}
660
660
  */
661
- async listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
661
+ async listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
662
662
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options);
663
663
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
664
664
  },
@@ -750,7 +750,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
750
750
  return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
751
751
  },
752
752
  /**
753
- * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
753
+ * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
754
754
  * @summary Create the policy
755
755
  * @param {CreatePolicyRequestDto} createPolicyRequestDto
756
756
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -773,7 +773,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
773
773
  return localVarFp.getPolicy(code, authorization, expand, options).then((request) => request(axios, basePath));
774
774
  },
775
775
  /**
776
- * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
776
+ * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
777
777
  * @summary Retrieve current policy version
778
778
  * @param {string} code Unique identifier for the object.
779
779
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -790,14 +790,14 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
790
790
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
791
791
  * @param {number} [pageSize] Page size.
792
792
  * @param {string} [pageToken] Page token.
793
- * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
793
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, leadCode, policyNumber, holder, policyStartDate, productVersionId, productId, accountCode, productName, statuses, createdAt, policyData&lt;/i&gt;
794
794
  * @param {string} [search] Search query.
795
- * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
795
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
796
796
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
797
797
  * @param {*} [options] Override http request option.
798
798
  * @throws {RequiredError}
799
799
  */
800
- listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<ListPoliciesResponseClass> {
800
+ listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<ListPoliciesResponseClass> {
801
801
  return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
802
802
  },
803
803
  /**
@@ -996,11 +996,11 @@ export interface PoliciesApiListPoliciesRequest {
996
996
  readonly pageToken?: string
997
997
 
998
998
  /**
999
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1000
- * @type {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'}
999
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, leadCode, policyNumber, holder, policyStartDate, productVersionId, productId, accountCode, productName, statuses, createdAt, policyData&lt;/i&gt;
1000
+ * @type {string}
1001
1001
  * @memberof PoliciesApiListPolicies
1002
1002
  */
1003
- readonly filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'
1003
+ readonly filter?: string
1004
1004
 
1005
1005
  /**
1006
1006
  * Search query.
@@ -1010,11 +1010,11 @@ export interface PoliciesApiListPoliciesRequest {
1010
1010
  readonly search?: string
1011
1011
 
1012
1012
  /**
1013
- * Order allowing you to specify the desired order of entities retrieved from the server.
1014
- * @type {'policyNumber' | 'createdAt'}
1013
+ * Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
1014
+ * @type {string}
1015
1015
  * @memberof PoliciesApiListPolicies
1016
1016
  */
1017
- readonly order?: 'policyNumber' | 'createdAt'
1017
+ readonly order?: string
1018
1018
 
1019
1019
  /**
1020
1020
  * You can expand policy versions list in this endpoint. By default, versions will be an empty array.
@@ -1184,7 +1184,7 @@ export class PoliciesApi extends BaseAPI {
1184
1184
  }
1185
1185
 
1186
1186
  /**
1187
- * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
1187
+ * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
1188
1188
  * @summary Create the policy
1189
1189
  * @param {PoliciesApiCreatePolicyRequest} requestParameters Request parameters.
1190
1190
  * @param {*} [options] Override http request option.
@@ -1208,7 +1208,7 @@ export class PoliciesApi extends BaseAPI {
1208
1208
  }
1209
1209
 
1210
1210
  /**
1211
- * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
1211
+ * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
1212
1212
  * @summary Retrieve current policy version
1213
1213
  * @param {PoliciesApiGetPolicyDataByDateRequest} requestParameters Request parameters.
1214
1214
  * @param {*} [options] Override http request option.
@@ -96,12 +96,12 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration?: Confi
96
96
  /**
97
97
  * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
98
98
  * @summary Delete the product
99
- * @param {string} id
99
+ * @param {number} id
100
100
  * @param {string} [authorization] Bearer Token
101
101
  * @param {*} [options] Override http request option.
102
102
  * @throws {RequiredError}
103
103
  */
104
- deleteProductField: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
104
+ deleteProductField: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
105
105
  // verify required parameter 'id' is not null or undefined
106
106
  assertParamExists('deleteProductField', 'id', id)
107
107
  const localVarPath = `/insuranceservice/v1/product-fields/{id}`
@@ -141,12 +141,12 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration?: Confi
141
141
  /**
142
142
  * 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.
143
143
  * @summary Retrieve the product field
144
- * @param {string} id
144
+ * @param {number} id
145
145
  * @param {string} [authorization] Bearer Token
146
146
  * @param {*} [options] Override http request option.
147
147
  * @throws {RequiredError}
148
148
  */
149
- getProductField: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
149
+ getProductField: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
150
  // verify required parameter 'id' is not null or undefined
151
151
  assertParamExists('getProductField', 'id', id)
152
152
  const localVarPath = `/insuranceservice/v1/product-fields/{id}`
@@ -328,13 +328,13 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration?: Confi
328
328
  /**
329
329
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
330
330
  * @summary Update the product
331
- * @param {string} id
331
+ * @param {number} id
332
332
  * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
333
333
  * @param {string} [authorization] Bearer Token
334
334
  * @param {*} [options] Override http request option.
335
335
  * @throws {RequiredError}
336
336
  */
337
- updateProductField: async (id: string, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
337
+ updateProductField: async (id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
338
338
  // verify required parameter 'id' is not null or undefined
339
339
  assertParamExists('updateProductField', 'id', id)
340
340
  // verify required parameter 'updateProductFieldRequestDto' is not null or undefined
@@ -401,24 +401,24 @@ export const ProductFieldsApiFp = function(configuration?: Configuration) {
401
401
  /**
402
402
  * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
403
403
  * @summary Delete the product
404
- * @param {string} id
404
+ * @param {number} id
405
405
  * @param {string} [authorization] Bearer Token
406
406
  * @param {*} [options] Override http request option.
407
407
  * @throws {RequiredError}
408
408
  */
409
- async deleteProductField(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
409
+ async deleteProductField(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
410
410
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductField(id, authorization, options);
411
411
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
412
412
  },
413
413
  /**
414
414
  * 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.
415
415
  * @summary Retrieve the product field
416
- * @param {string} id
416
+ * @param {number} id
417
417
  * @param {string} [authorization] Bearer Token
418
418
  * @param {*} [options] Override http request option.
419
419
  * @throws {RequiredError}
420
420
  */
421
- async getProductField(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFieldResponseClass>> {
421
+ async getProductField(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFieldResponseClass>> {
422
422
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProductField(id, authorization, options);
423
423
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
424
424
  },
@@ -459,13 +459,13 @@ export const ProductFieldsApiFp = function(configuration?: Configuration) {
459
459
  /**
460
460
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
461
461
  * @summary Update the product
462
- * @param {string} id
462
+ * @param {number} id
463
463
  * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
464
464
  * @param {string} [authorization] Bearer Token
465
465
  * @param {*} [options] Override http request option.
466
466
  * @throws {RequiredError}
467
467
  */
468
- async updateProductField(id: string, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductFieldResponseClass>> {
468
+ async updateProductField(id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductFieldResponseClass>> {
469
469
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductField(id, updateProductFieldRequestDto, authorization, options);
470
470
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
471
471
  },
@@ -493,23 +493,23 @@ export const ProductFieldsApiFactory = function (configuration?: Configuration,
493
493
  /**
494
494
  * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
495
495
  * @summary Delete the product
496
- * @param {string} id
496
+ * @param {number} id
497
497
  * @param {string} [authorization] Bearer Token
498
498
  * @param {*} [options] Override http request option.
499
499
  * @throws {RequiredError}
500
500
  */
501
- deleteProductField(id: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
501
+ deleteProductField(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
502
502
  return localVarFp.deleteProductField(id, authorization, options).then((request) => request(axios, basePath));
503
503
  },
504
504
  /**
505
505
  * 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.
506
506
  * @summary Retrieve the product field
507
- * @param {string} id
507
+ * @param {number} id
508
508
  * @param {string} [authorization] Bearer Token
509
509
  * @param {*} [options] Override http request option.
510
510
  * @throws {RequiredError}
511
511
  */
512
- getProductField(id: string, authorization?: string, options?: any): AxiosPromise<GetProductFieldResponseClass> {
512
+ getProductField(id: number, authorization?: string, options?: any): AxiosPromise<GetProductFieldResponseClass> {
513
513
  return localVarFp.getProductField(id, authorization, options).then((request) => request(axios, basePath));
514
514
  },
515
515
  /**
@@ -547,13 +547,13 @@ export const ProductFieldsApiFactory = function (configuration?: Configuration,
547
547
  /**
548
548
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
549
549
  * @summary Update the product
550
- * @param {string} id
550
+ * @param {number} id
551
551
  * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
552
552
  * @param {string} [authorization] Bearer Token
553
553
  * @param {*} [options] Override http request option.
554
554
  * @throws {RequiredError}
555
555
  */
556
- updateProductField(id: string, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductFieldResponseClass> {
556
+ updateProductField(id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductFieldResponseClass> {
557
557
  return localVarFp.updateProductField(id, updateProductFieldRequestDto, authorization, options).then((request) => request(axios, basePath));
558
558
  },
559
559
  };
@@ -588,10 +588,10 @@ export interface ProductFieldsApiCreateProductFieldRequest {
588
588
  export interface ProductFieldsApiDeleteProductFieldRequest {
589
589
  /**
590
590
  *
591
- * @type {string}
591
+ * @type {number}
592
592
  * @memberof ProductFieldsApiDeleteProductField
593
593
  */
594
- readonly id: string
594
+ readonly id: number
595
595
 
596
596
  /**
597
597
  * Bearer Token
@@ -609,10 +609,10 @@ export interface ProductFieldsApiDeleteProductFieldRequest {
609
609
  export interface ProductFieldsApiGetProductFieldRequest {
610
610
  /**
611
611
  *
612
- * @type {string}
612
+ * @type {number}
613
613
  * @memberof ProductFieldsApiGetProductField
614
614
  */
615
- readonly id: string
615
+ readonly id: number
616
616
 
617
617
  /**
618
618
  * Bearer Token
@@ -742,10 +742,10 @@ export interface ProductFieldsApiListProductFieldsRequest {
742
742
  export interface ProductFieldsApiUpdateProductFieldRequest {
743
743
  /**
744
744
  *
745
- * @type {string}
745
+ * @type {number}
746
746
  * @memberof ProductFieldsApiUpdateProductField
747
747
  */
748
- readonly id: string
748
+ readonly id: number
749
749
 
750
750
  /**
751
751
  *
@@ -141,16 +141,19 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
141
141
  * @summary Retrieve the product
142
142
  * @param {string} code Unique identifier for the object.
143
143
  * @param {number} id Unique identifier referencing the product.
144
+ * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
144
145
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
145
146
  * @param {string} [expand] Fields to expand response by
146
147
  * @param {*} [options] Override http request option.
147
148
  * @throws {RequiredError}
148
149
  */
149
- getProductByCode: async (code: string, id: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
+ getProductByCode: async (code: string, id: number, slug: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
151
  // verify required parameter 'code' is not null or undefined
151
152
  assertParamExists('getProductByCode', 'code', code)
152
153
  // verify required parameter 'id' is not null or undefined
153
154
  assertParamExists('getProductByCode', 'id', id)
155
+ // verify required parameter 'slug' is not null or undefined
156
+ assertParamExists('getProductByCode', 'slug', slug)
154
157
  const localVarPath = `/insuranceservice/v1/products/code/{code}`
155
158
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
156
159
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -174,6 +177,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
174
177
  localVarQueryParameter['id'] = id;
175
178
  }
176
179
 
180
+ if (slug !== undefined) {
181
+ localVarQueryParameter['slug'] = slug;
182
+ }
183
+
177
184
  if (expand !== undefined) {
178
185
  localVarQueryParameter['expand'] = expand;
179
186
  }
@@ -197,14 +204,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
197
204
  * 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.
198
205
  * @summary Retrieve the product
199
206
  * @param {number} id Unique identifier referencing the product.
207
+ * @param {string} code Unique identifier of the product that this object belongs to.
208
+ * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
200
209
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
201
210
  * @param {string} [expand] Fields to expand response by
202
211
  * @param {*} [options] Override http request option.
203
212
  * @throws {RequiredError}
204
213
  */
205
- getProductByIdentifier: async (id: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
214
+ getProductByIdentifier: async (id: number, code: string, slug: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
206
215
  // verify required parameter 'id' is not null or undefined
207
216
  assertParamExists('getProductByIdentifier', 'id', id)
217
+ // verify required parameter 'code' is not null or undefined
218
+ assertParamExists('getProductByIdentifier', 'code', code)
219
+ // verify required parameter 'slug' is not null or undefined
220
+ assertParamExists('getProductByIdentifier', 'slug', slug)
208
221
  const localVarPath = `/insuranceservice/v1/products/get-by-identifier`;
209
222
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
210
223
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -227,6 +240,14 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
227
240
  localVarQueryParameter['id'] = id;
228
241
  }
229
242
 
243
+ if (code !== undefined) {
244
+ localVarQueryParameter['code'] = code;
245
+ }
246
+
247
+ if (slug !== undefined) {
248
+ localVarQueryParameter['slug'] = slug;
249
+ }
250
+
230
251
  if (expand !== undefined) {
231
252
  localVarQueryParameter['expand'] = expand;
232
253
  }
@@ -407,26 +428,29 @@ export const ProductsApiFp = function(configuration?: Configuration) {
407
428
  * @summary Retrieve the product
408
429
  * @param {string} code Unique identifier for the object.
409
430
  * @param {number} id Unique identifier referencing the product.
431
+ * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
410
432
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
411
433
  * @param {string} [expand] Fields to expand response by
412
434
  * @param {*} [options] Override http request option.
413
435
  * @throws {RequiredError}
414
436
  */
415
- async getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
416
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, id, authorization, expand, options);
437
+ async getProductByCode(code: string, id: number, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
438
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, id, slug, authorization, expand, options);
417
439
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
418
440
  },
419
441
  /**
420
442
  * 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.
421
443
  * @summary Retrieve the product
422
444
  * @param {number} id Unique identifier referencing the product.
445
+ * @param {string} code Unique identifier of the product that this object belongs to.
446
+ * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
423
447
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
424
448
  * @param {string} [expand] Fields to expand response by
425
449
  * @param {*} [options] Override http request option.
426
450
  * @throws {RequiredError}
427
451
  */
428
- async getProductByIdentifier(id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
429
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByIdentifier(id, authorization, expand, options);
452
+ async getProductByIdentifier(id: number, code: string, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
453
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByIdentifier(id, code, slug, authorization, expand, options);
430
454
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
431
455
  },
432
456
  /**
@@ -496,25 +520,28 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
496
520
  * @summary Retrieve the product
497
521
  * @param {string} code Unique identifier for the object.
498
522
  * @param {number} id Unique identifier referencing the product.
523
+ * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
499
524
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
500
525
  * @param {string} [expand] Fields to expand response by
501
526
  * @param {*} [options] Override http request option.
502
527
  * @throws {RequiredError}
503
528
  */
504
- getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
505
- return localVarFp.getProductByCode(code, id, authorization, expand, options).then((request) => request(axios, basePath));
529
+ getProductByCode(code: string, id: number, slug: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
530
+ return localVarFp.getProductByCode(code, id, slug, authorization, expand, options).then((request) => request(axios, basePath));
506
531
  },
507
532
  /**
508
533
  * 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.
509
534
  * @summary Retrieve the product
510
535
  * @param {number} id Unique identifier referencing the product.
536
+ * @param {string} code Unique identifier of the product that this object belongs to.
537
+ * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
511
538
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
512
539
  * @param {string} [expand] Fields to expand response by
513
540
  * @param {*} [options] Override http request option.
514
541
  * @throws {RequiredError}
515
542
  */
516
- getProductByIdentifier(id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
517
- return localVarFp.getProductByIdentifier(id, authorization, expand, options).then((request) => request(axios, basePath));
543
+ getProductByIdentifier(id: number, code: string, slug: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
544
+ return localVarFp.getProductByIdentifier(id, code, slug, authorization, expand, options).then((request) => request(axios, basePath));
518
545
  },
519
546
  /**
520
547
  * 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.
@@ -609,6 +636,13 @@ export interface ProductsApiGetProductByCodeRequest {
609
636
  */
610
637
  readonly id: number
611
638
 
639
+ /**
640
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
641
+ * @type {string}
642
+ * @memberof ProductsApiGetProductByCode
643
+ */
644
+ readonly slug: string
645
+
612
646
  /**
613
647
  * Bearer Token: provided by the login endpoint under the name accessToken.
614
648
  * @type {string}
@@ -637,6 +671,20 @@ export interface ProductsApiGetProductByIdentifierRequest {
637
671
  */
638
672
  readonly id: number
639
673
 
674
+ /**
675
+ * Unique identifier of the product that this object belongs to.
676
+ * @type {string}
677
+ * @memberof ProductsApiGetProductByIdentifier
678
+ */
679
+ readonly code: string
680
+
681
+ /**
682
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
683
+ * @type {string}
684
+ * @memberof ProductsApiGetProductByIdentifier
685
+ */
686
+ readonly slug: string
687
+
640
688
  /**
641
689
  * Bearer Token: provided by the login endpoint under the name accessToken.
642
690
  * @type {string}
@@ -776,7 +824,7 @@ export class ProductsApi extends BaseAPI {
776
824
  * @memberof ProductsApi
777
825
  */
778
826
  public getProductByCode(requestParameters: ProductsApiGetProductByCodeRequest, options?: AxiosRequestConfig) {
779
- return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
827
+ return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.slug, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
780
828
  }
781
829
 
782
830
  /**
@@ -788,7 +836,7 @@ export class ProductsApi extends BaseAPI {
788
836
  * @memberof ProductsApi
789
837
  */
790
838
  public getProductByIdentifier(requestParameters: ProductsApiGetProductByIdentifierRequest, options?: AxiosRequestConfig) {
791
- return ProductsApiFp(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
839
+ return ProductsApiFp(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.code, requestParameters.slug, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
792
840
  }
793
841
 
794
842
  /**
@@ -26,7 +26,7 @@ export interface CreatePaymentMethodRequestDto {
26
26
  * @type {string}
27
27
  * @memberof CreatePaymentMethodRequestDto
28
28
  */
29
- 'type': CreatePaymentMethodRequestDtoTypeEnum;
29
+ 'type': string;
30
30
  /**
31
31
  *
32
32
  * @type {SepaDto}
@@ -35,11 +35,3 @@ export interface CreatePaymentMethodRequestDto {
35
35
  'sepa'?: SepaDto;
36
36
  }
37
37
 
38
- export const CreatePaymentMethodRequestDtoTypeEnum = {
39
- Sepa: 'sepa',
40
- Invoice: 'invoice'
41
- } as const;
42
-
43
- export type CreatePaymentMethodRequestDtoTypeEnum = typeof CreatePaymentMethodRequestDtoTypeEnum[keyof typeof CreatePaymentMethodRequestDtoTypeEnum];
44
-
45
-