@emilgroup/insurance-sdk 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 +1 -2
  15. package/dist/api/default-api.d.ts +0 -66
  16. package/dist/api/default-api.js +0 -196
  17. package/dist/api/insured-object-types-api.d.ts +0 -141
  18. package/dist/api/insured-object-types-api.js +0 -254
  19. package/dist/api/insured-objects-api.d.ts +0 -318
  20. package/dist/api/insured-objects-api.js +0 -535
  21. package/dist/api/lead-statuses-api.d.ts +0 -265
  22. package/dist/api/lead-statuses-api.js +0 -501
  23. package/dist/api/leads-api.d.ts +0 -626
  24. package/dist/api/leads-api.js +0 -1020
  25. package/dist/api/named-ranges-api.d.ts +0 -376
  26. package/dist/api/named-ranges-api.js +0 -630
  27. package/dist/api/policies-api.d.ts +0 -722
  28. package/dist/api/policies-api.js +0 -1137
  29. package/dist/api/premium-formulas-api.d.ts +0 -433
  30. package/dist/api/premium-formulas-api.js +0 -723
  31. package/dist/api/product-factors-api.d.ts +0 -493
  32. package/dist/api/product-factors-api.js +0 -784
  33. package/dist/api/product-fields-api.d.ts +0 -477
  34. package/dist/api/product-fields-api.js +0 -753
  35. package/dist/api/product-versions-api.d.ts +0 -189
  36. package/dist/api/product-versions-api.js +0 -342
  37. package/dist/api/products-api.d.ts +0 -458
  38. package/dist/api/products-api.js +0 -744
  39. package/dist/api.d.ts +0 -23
  40. package/dist/api.js +0 -41
  41. package/dist/base.d.ts +0 -74
  42. package/dist/base.js +0 -298
  43. package/dist/common.d.ts +0 -91
  44. package/dist/common.js +0 -276
  45. package/dist/configuration.d.ts +0 -83
  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@1.32.0 --save
20
+ npm install @emilgroup/insurance-sdk@1.35.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk@1.32.0
24
+ yarn add @emilgroup/insurance-sdk@1.35.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -84,12 +84,12 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
84
84
  /**
85
85
  * Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
86
86
  * @summary Delete the insured object
87
- * @param {string} id
87
+ * @param {number} id
88
88
  * @param {string} [authorization] Bearer Token
89
89
  * @param {*} [options] Override http request option.
90
90
  * @throws {RequiredError}
91
91
  */
92
- deleteInsuredObject: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
92
+ deleteInsuredObject: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
93
  // verify required parameter 'id' is not null or undefined
94
94
  assertParamExists('deleteInsuredObject', 'id', id)
95
95
  const localVarPath = `/insuranceservice/v1/insured-objects/{id}`
@@ -269,12 +269,12 @@ export const InsuredObjectsApiFp = function(configuration?: Configuration) {
269
269
  /**
270
270
  * Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
271
271
  * @summary Delete the insured object
272
- * @param {string} id
272
+ * @param {number} id
273
273
  * @param {string} [authorization] Bearer Token
274
274
  * @param {*} [options] Override http request option.
275
275
  * @throws {RequiredError}
276
276
  */
277
- async deleteInsuredObject(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
277
+ async deleteInsuredObject(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
278
278
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInsuredObject(id, authorization, options);
279
279
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
280
280
  },
@@ -332,12 +332,12 @@ export const InsuredObjectsApiFactory = function (configuration?: Configuration,
332
332
  /**
333
333
  * Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
334
334
  * @summary Delete the insured object
335
- * @param {string} id
335
+ * @param {number} id
336
336
  * @param {string} [authorization] Bearer Token
337
337
  * @param {*} [options] Override http request option.
338
338
  * @throws {RequiredError}
339
339
  */
340
- deleteInsuredObject(id: string, authorization?: string, options?: any): AxiosPromise<void> {
340
+ deleteInsuredObject(id: number, authorization?: string, options?: any): AxiosPromise<object> {
341
341
  return localVarFp.deleteInsuredObject(id, authorization, options).then((request) => request(axios, basePath));
342
342
  },
343
343
  /**
@@ -400,10 +400,10 @@ export interface InsuredObjectsApiCreateInsuredObjectRequest {
400
400
  export interface InsuredObjectsApiDeleteInsuredObjectRequest {
401
401
  /**
402
402
  *
403
- * @type {string}
403
+ * @type {number}
404
404
  * @memberof InsuredObjectsApiDeleteInsuredObject
405
405
  */
406
- readonly id: string
406
+ readonly id: number
407
407
 
408
408
  /**
409
409
  * Bearer Token
@@ -108,7 +108,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
108
108
  };
109
109
  },
110
110
  /**
111
- * 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.
111
+ * 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.
112
112
  * @summary Create the policy
113
113
  * @param {CreatePolicyRequestDto} createPolicyRequestDto
114
114
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -205,7 +205,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
205
205
  };
206
206
  },
207
207
  /**
208
- * 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.
208
+ * 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.
209
209
  * @summary Retrieve current policy version
210
210
  * @param {string} code Unique identifier for the object.
211
211
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -260,14 +260,14 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
260
260
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
261
261
  * @param {number} [pageSize] Page size.
262
262
  * @param {string} [pageToken] Page token.
263
- * @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.
263
+ * @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;
264
264
  * @param {string} [search] Search query.
265
- * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
265
+ * @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;
266
266
  * @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.
267
267
  * @param {*} [options] Override http request option.
268
268
  * @throws {RequiredError}
269
269
  */
270
- 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> => {
270
+ 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> => {
271
271
  const localVarPath = `/insuranceservice/v1/policies`;
272
272
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
273
273
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -604,7 +604,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
604
604
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
605
605
  },
606
606
  /**
607
- * 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.
607
+ * 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.
608
608
  * @summary Create the policy
609
609
  * @param {CreatePolicyRequestDto} createPolicyRequestDto
610
610
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -629,7 +629,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
629
629
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
630
630
  },
631
631
  /**
632
- * 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.
632
+ * 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.
633
633
  * @summary Retrieve current policy version
634
634
  * @param {string} code Unique identifier for the object.
635
635
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -647,14 +647,14 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
647
647
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
648
648
  * @param {number} [pageSize] Page size.
649
649
  * @param {string} [pageToken] Page token.
650
- * @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.
650
+ * @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;
651
651
  * @param {string} [search] Search query.
652
- * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
652
+ * @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;
653
653
  * @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.
654
654
  * @param {*} [options] Override http request option.
655
655
  * @throws {RequiredError}
656
656
  */
657
- 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>> {
657
+ 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>> {
658
658
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options);
659
659
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
660
660
  },
@@ -746,7 +746,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
746
746
  return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
747
747
  },
748
748
  /**
749
- * 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.
749
+ * 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.
750
750
  * @summary Create the policy
751
751
  * @param {CreatePolicyRequestDto} createPolicyRequestDto
752
752
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -769,7 +769,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
769
769
  return localVarFp.getPolicy(code, authorization, expand, options).then((request) => request(axios, basePath));
770
770
  },
771
771
  /**
772
- * 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.
772
+ * 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.
773
773
  * @summary Retrieve current policy version
774
774
  * @param {string} code Unique identifier for the object.
775
775
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -786,14 +786,14 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
786
786
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
787
787
  * @param {number} [pageSize] Page size.
788
788
  * @param {string} [pageToken] Page token.
789
- * @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.
789
+ * @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;
790
790
  * @param {string} [search] Search query.
791
- * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
791
+ * @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;
792
792
  * @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.
793
793
  * @param {*} [options] Override http request option.
794
794
  * @throws {RequiredError}
795
795
  */
796
- 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> {
796
+ 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> {
797
797
  return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
798
798
  },
799
799
  /**
@@ -992,11 +992,11 @@ export interface PoliciesApiListPoliciesRequest {
992
992
  readonly pageToken?: string
993
993
 
994
994
  /**
995
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
996
- * @type {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'}
995
+ * 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;
996
+ * @type {string}
997
997
  * @memberof PoliciesApiListPolicies
998
998
  */
999
- readonly filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'
999
+ readonly filter?: string
1000
1000
 
1001
1001
  /**
1002
1002
  * Search query.
@@ -1006,11 +1006,11 @@ export interface PoliciesApiListPoliciesRequest {
1006
1006
  readonly search?: string
1007
1007
 
1008
1008
  /**
1009
- * Order allowing you to specify the desired order of entities retrieved from the server.
1010
- * @type {'policyNumber' | 'createdAt'}
1009
+ * 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;
1010
+ * @type {string}
1011
1011
  * @memberof PoliciesApiListPolicies
1012
1012
  */
1013
- readonly order?: 'policyNumber' | 'createdAt'
1013
+ readonly order?: string
1014
1014
 
1015
1015
  /**
1016
1016
  * You can expand policy versions list in this endpoint. By default, versions will be an empty array.
@@ -1180,7 +1180,7 @@ export class PoliciesApi extends BaseAPI {
1180
1180
  }
1181
1181
 
1182
1182
  /**
1183
- * 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.
1183
+ * 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.
1184
1184
  * @summary Create the policy
1185
1185
  * @param {PoliciesApiCreatePolicyRequest} requestParameters Request parameters.
1186
1186
  * @param {*} [options] Override http request option.
@@ -1204,7 +1204,7 @@ export class PoliciesApi extends BaseAPI {
1204
1204
  }
1205
1205
 
1206
1206
  /**
1207
- * 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.
1207
+ * 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.
1208
1208
  * @summary Retrieve current policy version
1209
1209
  * @param {PoliciesApiGetPolicyDataByDateRequest} requestParameters Request parameters.
1210
1210
  * @param {*} [options] Override http request option.
@@ -92,12 +92,12 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration?: Confi
92
92
  /**
93
93
  * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
94
94
  * @summary Delete the product
95
- * @param {string} id
95
+ * @param {number} id
96
96
  * @param {string} [authorization] Bearer Token
97
97
  * @param {*} [options] Override http request option.
98
98
  * @throws {RequiredError}
99
99
  */
100
- deleteProductField: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
100
+ deleteProductField: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
101
  // verify required parameter 'id' is not null or undefined
102
102
  assertParamExists('deleteProductField', 'id', id)
103
103
  const localVarPath = `/insuranceservice/v1/product-fields/{id}`
@@ -137,12 +137,12 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration?: Confi
137
137
  /**
138
138
  * 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.
139
139
  * @summary Retrieve the product field
140
- * @param {string} id
140
+ * @param {number} id
141
141
  * @param {string} [authorization] Bearer Token
142
142
  * @param {*} [options] Override http request option.
143
143
  * @throws {RequiredError}
144
144
  */
145
- getProductField: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
145
+ getProductField: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
146
  // verify required parameter 'id' is not null or undefined
147
147
  assertParamExists('getProductField', 'id', id)
148
148
  const localVarPath = `/insuranceservice/v1/product-fields/{id}`
@@ -324,13 +324,13 @@ export const ProductFieldsApiAxiosParamCreator = function (configuration?: Confi
324
324
  /**
325
325
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
326
326
  * @summary Update the product
327
- * @param {string} id
327
+ * @param {number} id
328
328
  * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
329
329
  * @param {string} [authorization] Bearer Token
330
330
  * @param {*} [options] Override http request option.
331
331
  * @throws {RequiredError}
332
332
  */
333
- updateProductField: async (id: string, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
333
+ updateProductField: async (id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
334
334
  // verify required parameter 'id' is not null or undefined
335
335
  assertParamExists('updateProductField', 'id', id)
336
336
  // verify required parameter 'updateProductFieldRequestDto' is not null or undefined
@@ -397,24 +397,24 @@ export const ProductFieldsApiFp = function(configuration?: Configuration) {
397
397
  /**
398
398
  * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
399
399
  * @summary Delete the product
400
- * @param {string} id
400
+ * @param {number} id
401
401
  * @param {string} [authorization] Bearer Token
402
402
  * @param {*} [options] Override http request option.
403
403
  * @throws {RequiredError}
404
404
  */
405
- async deleteProductField(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
405
+ async deleteProductField(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
406
406
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductField(id, authorization, options);
407
407
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
408
408
  },
409
409
  /**
410
410
  * 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.
411
411
  * @summary Retrieve the product field
412
- * @param {string} id
412
+ * @param {number} id
413
413
  * @param {string} [authorization] Bearer Token
414
414
  * @param {*} [options] Override http request option.
415
415
  * @throws {RequiredError}
416
416
  */
417
- async getProductField(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFieldResponseClass>> {
417
+ async getProductField(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFieldResponseClass>> {
418
418
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProductField(id, authorization, options);
419
419
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
420
420
  },
@@ -455,13 +455,13 @@ export const ProductFieldsApiFp = function(configuration?: Configuration) {
455
455
  /**
456
456
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
457
457
  * @summary Update the product
458
- * @param {string} id
458
+ * @param {number} id
459
459
  * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
460
460
  * @param {string} [authorization] Bearer Token
461
461
  * @param {*} [options] Override http request option.
462
462
  * @throws {RequiredError}
463
463
  */
464
- async updateProductField(id: string, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductFieldResponseClass>> {
464
+ async updateProductField(id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductFieldResponseClass>> {
465
465
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductField(id, updateProductFieldRequestDto, authorization, options);
466
466
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
467
467
  },
@@ -489,23 +489,23 @@ export const ProductFieldsApiFactory = function (configuration?: Configuration,
489
489
  /**
490
490
  * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
491
491
  * @summary Delete the product
492
- * @param {string} id
492
+ * @param {number} id
493
493
  * @param {string} [authorization] Bearer Token
494
494
  * @param {*} [options] Override http request option.
495
495
  * @throws {RequiredError}
496
496
  */
497
- deleteProductField(id: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
497
+ deleteProductField(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
498
498
  return localVarFp.deleteProductField(id, authorization, options).then((request) => request(axios, basePath));
499
499
  },
500
500
  /**
501
501
  * 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.
502
502
  * @summary Retrieve the product field
503
- * @param {string} id
503
+ * @param {number} id
504
504
  * @param {string} [authorization] Bearer Token
505
505
  * @param {*} [options] Override http request option.
506
506
  * @throws {RequiredError}
507
507
  */
508
- getProductField(id: string, authorization?: string, options?: any): AxiosPromise<GetProductFieldResponseClass> {
508
+ getProductField(id: number, authorization?: string, options?: any): AxiosPromise<GetProductFieldResponseClass> {
509
509
  return localVarFp.getProductField(id, authorization, options).then((request) => request(axios, basePath));
510
510
  },
511
511
  /**
@@ -543,13 +543,13 @@ export const ProductFieldsApiFactory = function (configuration?: Configuration,
543
543
  /**
544
544
  * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
545
545
  * @summary Update the product
546
- * @param {string} id
546
+ * @param {number} id
547
547
  * @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
548
548
  * @param {string} [authorization] Bearer Token
549
549
  * @param {*} [options] Override http request option.
550
550
  * @throws {RequiredError}
551
551
  */
552
- updateProductField(id: string, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductFieldResponseClass> {
552
+ updateProductField(id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductFieldResponseClass> {
553
553
  return localVarFp.updateProductField(id, updateProductFieldRequestDto, authorization, options).then((request) => request(axios, basePath));
554
554
  },
555
555
  };
@@ -584,10 +584,10 @@ export interface ProductFieldsApiCreateProductFieldRequest {
584
584
  export interface ProductFieldsApiDeleteProductFieldRequest {
585
585
  /**
586
586
  *
587
- * @type {string}
587
+ * @type {number}
588
588
  * @memberof ProductFieldsApiDeleteProductField
589
589
  */
590
- readonly id: string
590
+ readonly id: number
591
591
 
592
592
  /**
593
593
  * Bearer Token
@@ -605,10 +605,10 @@ export interface ProductFieldsApiDeleteProductFieldRequest {
605
605
  export interface ProductFieldsApiGetProductFieldRequest {
606
606
  /**
607
607
  *
608
- * @type {string}
608
+ * @type {number}
609
609
  * @memberof ProductFieldsApiGetProductField
610
610
  */
611
- readonly id: string
611
+ readonly id: number
612
612
 
613
613
  /**
614
614
  * Bearer Token
@@ -738,10 +738,10 @@ export interface ProductFieldsApiListProductFieldsRequest {
738
738
  export interface ProductFieldsApiUpdateProductFieldRequest {
739
739
  /**
740
740
  *
741
- * @type {string}
741
+ * @type {number}
742
742
  * @memberof ProductFieldsApiUpdateProductField
743
743
  */
744
- readonly id: string
744
+ readonly id: number
745
745
 
746
746
  /**
747
747
  *
@@ -137,16 +137,19 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
137
137
  * @summary Retrieve the product
138
138
  * @param {string} code Unique identifier for the object.
139
139
  * @param {number} id Unique identifier referencing the product.
140
+ * @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.
140
141
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
141
142
  * @param {string} [expand] Fields to expand response by
142
143
  * @param {*} [options] Override http request option.
143
144
  * @throws {RequiredError}
144
145
  */
145
- getProductByCode: async (code: string, id: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ getProductByCode: async (code: string, id: number, slug: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
147
  // verify required parameter 'code' is not null or undefined
147
148
  assertParamExists('getProductByCode', 'code', code)
148
149
  // verify required parameter 'id' is not null or undefined
149
150
  assertParamExists('getProductByCode', 'id', id)
151
+ // verify required parameter 'slug' is not null or undefined
152
+ assertParamExists('getProductByCode', 'slug', slug)
150
153
  const localVarPath = `/insuranceservice/v1/products/code/{code}`
151
154
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
152
155
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -170,6 +173,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
170
173
  localVarQueryParameter['id'] = id;
171
174
  }
172
175
 
176
+ if (slug !== undefined) {
177
+ localVarQueryParameter['slug'] = slug;
178
+ }
179
+
173
180
  if (expand !== undefined) {
174
181
  localVarQueryParameter['expand'] = expand;
175
182
  }
@@ -193,14 +200,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
193
200
  * 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.
194
201
  * @summary Retrieve the product
195
202
  * @param {number} id Unique identifier referencing the product.
203
+ * @param {string} code Unique identifier of the product that this object belongs to.
204
+ * @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.
196
205
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
206
  * @param {string} [expand] Fields to expand response by
198
207
  * @param {*} [options] Override http request option.
199
208
  * @throws {RequiredError}
200
209
  */
201
- getProductByIdentifier: async (id: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
210
+ getProductByIdentifier: async (id: number, code: string, slug: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
202
211
  // verify required parameter 'id' is not null or undefined
203
212
  assertParamExists('getProductByIdentifier', 'id', id)
213
+ // verify required parameter 'code' is not null or undefined
214
+ assertParamExists('getProductByIdentifier', 'code', code)
215
+ // verify required parameter 'slug' is not null or undefined
216
+ assertParamExists('getProductByIdentifier', 'slug', slug)
204
217
  const localVarPath = `/insuranceservice/v1/products/get-by-identifier`;
205
218
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
219
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -223,6 +236,14 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
223
236
  localVarQueryParameter['id'] = id;
224
237
  }
225
238
 
239
+ if (code !== undefined) {
240
+ localVarQueryParameter['code'] = code;
241
+ }
242
+
243
+ if (slug !== undefined) {
244
+ localVarQueryParameter['slug'] = slug;
245
+ }
246
+
226
247
  if (expand !== undefined) {
227
248
  localVarQueryParameter['expand'] = expand;
228
249
  }
@@ -403,26 +424,29 @@ export const ProductsApiFp = function(configuration?: Configuration) {
403
424
  * @summary Retrieve the product
404
425
  * @param {string} code Unique identifier for the object.
405
426
  * @param {number} id Unique identifier referencing the product.
427
+ * @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.
406
428
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
407
429
  * @param {string} [expand] Fields to expand response by
408
430
  * @param {*} [options] Override http request option.
409
431
  * @throws {RequiredError}
410
432
  */
411
- async getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
412
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, id, authorization, expand, options);
433
+ async getProductByCode(code: string, id: number, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
434
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, id, slug, authorization, expand, options);
413
435
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
414
436
  },
415
437
  /**
416
438
  * 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
439
  * @summary Retrieve the product
418
440
  * @param {number} id Unique identifier referencing the product.
441
+ * @param {string} code Unique identifier of the product that this object belongs to.
442
+ * @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.
419
443
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
420
444
  * @param {string} [expand] Fields to expand response by
421
445
  * @param {*} [options] Override http request option.
422
446
  * @throws {RequiredError}
423
447
  */
424
- async getProductByIdentifier(id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
425
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByIdentifier(id, authorization, expand, options);
448
+ async getProductByIdentifier(id: number, code: string, slug: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
449
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByIdentifier(id, code, slug, authorization, expand, options);
426
450
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
427
451
  },
428
452
  /**
@@ -492,25 +516,28 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
492
516
  * @summary Retrieve the product
493
517
  * @param {string} code Unique identifier for the object.
494
518
  * @param {number} id Unique identifier referencing the product.
519
+ * @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.
495
520
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
496
521
  * @param {string} [expand] Fields to expand response by
497
522
  * @param {*} [options] Override http request option.
498
523
  * @throws {RequiredError}
499
524
  */
500
- getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
501
- return localVarFp.getProductByCode(code, id, authorization, expand, options).then((request) => request(axios, basePath));
525
+ getProductByCode(code: string, id: number, slug: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
526
+ return localVarFp.getProductByCode(code, id, slug, authorization, expand, options).then((request) => request(axios, basePath));
502
527
  },
503
528
  /**
504
529
  * 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.
505
530
  * @summary Retrieve the product
506
531
  * @param {number} id Unique identifier referencing the product.
532
+ * @param {string} code Unique identifier of the product that this object belongs to.
533
+ * @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.
507
534
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
508
535
  * @param {string} [expand] Fields to expand response by
509
536
  * @param {*} [options] Override http request option.
510
537
  * @throws {RequiredError}
511
538
  */
512
- getProductByIdentifier(id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
513
- return localVarFp.getProductByIdentifier(id, authorization, expand, options).then((request) => request(axios, basePath));
539
+ getProductByIdentifier(id: number, code: string, slug: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
540
+ return localVarFp.getProductByIdentifier(id, code, slug, authorization, expand, options).then((request) => request(axios, basePath));
514
541
  },
515
542
  /**
516
543
  * 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.
@@ -605,6 +632,13 @@ export interface ProductsApiGetProductByCodeRequest {
605
632
  */
606
633
  readonly id: number
607
634
 
635
+ /**
636
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
637
+ * @type {string}
638
+ * @memberof ProductsApiGetProductByCode
639
+ */
640
+ readonly slug: string
641
+
608
642
  /**
609
643
  * Bearer Token: provided by the login endpoint under the name accessToken.
610
644
  * @type {string}
@@ -633,6 +667,20 @@ export interface ProductsApiGetProductByIdentifierRequest {
633
667
  */
634
668
  readonly id: number
635
669
 
670
+ /**
671
+ * Unique identifier of the product that this object belongs to.
672
+ * @type {string}
673
+ * @memberof ProductsApiGetProductByIdentifier
674
+ */
675
+ readonly code: string
676
+
677
+ /**
678
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
679
+ * @type {string}
680
+ * @memberof ProductsApiGetProductByIdentifier
681
+ */
682
+ readonly slug: string
683
+
636
684
  /**
637
685
  * Bearer Token: provided by the login endpoint under the name accessToken.
638
686
  * @type {string}
@@ -772,7 +820,7 @@ export class ProductsApi extends BaseAPI {
772
820
  * @memberof ProductsApi
773
821
  */
774
822
  public getProductByCode(requestParameters: ProductsApiGetProductByCodeRequest, options?: AxiosRequestConfig) {
775
- return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
823
+ return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.slug, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
776
824
  }
777
825
 
778
826
  /**
@@ -784,7 +832,7 @@ export class ProductsApi extends BaseAPI {
784
832
  * @memberof ProductsApi
785
833
  */
786
834
  public getProductByIdentifier(requestParameters: ProductsApiGetProductByIdentifierRequest, options?: AxiosRequestConfig) {
787
- return ProductsApiFp(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
835
+ return ProductsApiFp(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.code, requestParameters.slug, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
788
836
  }
789
837
 
790
838
  /**
@@ -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
-