@polar-sh/sdk 0.13.0 → 0.13.2

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 (332) hide show
  1. package/README.md +15 -0
  2. package/docs/sdks/articles/README.md +78 -0
  3. package/docs/sdks/benefits/README.md +3 -3
  4. package/docs/sdks/checkoutlinks/README.md +400 -0
  5. package/funcs/articlesExport.d.ts +16 -0
  6. package/funcs/articlesExport.d.ts.map +1 -0
  7. package/funcs/articlesExport.js +99 -0
  8. package/funcs/articlesExport.js.map +1 -0
  9. package/funcs/benefitsCreate.d.ts +2 -1
  10. package/funcs/benefitsCreate.d.ts.map +1 -1
  11. package/funcs/benefitsCreate.js +2 -1
  12. package/funcs/benefitsCreate.js.map +1 -1
  13. package/funcs/benefitsGet.d.ts +2 -1
  14. package/funcs/benefitsGet.d.ts.map +1 -1
  15. package/funcs/benefitsGet.js +2 -1
  16. package/funcs/benefitsGet.js.map +1 -1
  17. package/funcs/benefitsUpdate.d.ts +2 -1
  18. package/funcs/benefitsUpdate.d.ts.map +1 -1
  19. package/funcs/benefitsUpdate.js +2 -1
  20. package/funcs/benefitsUpdate.js.map +1 -1
  21. package/funcs/checkoutLinksCreate.d.ts +16 -0
  22. package/funcs/checkoutLinksCreate.d.ts.map +1 -0
  23. package/funcs/checkoutLinksCreate.js +95 -0
  24. package/funcs/checkoutLinksCreate.js.map +1 -0
  25. package/funcs/checkoutLinksDelete.d.ts +16 -0
  26. package/funcs/checkoutLinksDelete.d.ts.map +1 -0
  27. package/funcs/checkoutLinksDelete.js +101 -0
  28. package/funcs/checkoutLinksDelete.js.map +1 -0
  29. package/funcs/checkoutLinksGet.d.ts +17 -0
  30. package/funcs/checkoutLinksGet.d.ts.map +1 -0
  31. package/funcs/checkoutLinksGet.js +101 -0
  32. package/funcs/checkoutLinksGet.js.map +1 -0
  33. package/funcs/checkoutLinksList.d.ts +17 -0
  34. package/funcs/checkoutLinksList.d.ts.map +1 -0
  35. package/funcs/checkoutLinksList.js +130 -0
  36. package/funcs/checkoutLinksList.js.map +1 -0
  37. package/funcs/checkoutLinksUpdate.d.ts +17 -0
  38. package/funcs/checkoutLinksUpdate.d.ts.map +1 -0
  39. package/funcs/checkoutLinksUpdate.js +104 -0
  40. package/funcs/checkoutLinksUpdate.js.map +1 -0
  41. package/lib/config.d.ts +3 -3
  42. package/lib/config.js +3 -3
  43. package/models/components/articlecreate.d.ts +6 -67
  44. package/models/components/articlecreate.d.ts.map +1 -1
  45. package/models/components/articlecreate.js +7 -47
  46. package/models/components/articlecreate.js.map +1 -1
  47. package/models/components/benefit.d.ts +28 -0
  48. package/models/components/benefit.d.ts.map +1 -0
  49. package/models/components/benefit.js +69 -0
  50. package/models/components/benefit.js.map +1 -0
  51. package/models/components/benefitbase.d.ts +0 -3
  52. package/models/components/benefitbase.d.ts.map +1 -1
  53. package/models/components/benefitbase.js.map +1 -1
  54. package/models/components/benefitgrantwebhook.d.ts +3 -28
  55. package/models/components/benefitgrantwebhook.d.ts.map +1 -1
  56. package/models/components/benefitgrantwebhook.js +4 -57
  57. package/models/components/benefitgrantwebhook.js.map +1 -1
  58. package/models/components/benefitinput.d.ts +28 -0
  59. package/models/components/benefitinput.d.ts.map +1 -0
  60. package/models/components/benefitinput.js +69 -0
  61. package/models/components/benefitinput.js.map +1 -0
  62. package/models/components/checkoutlink.d.ts +69 -0
  63. package/models/components/checkoutlink.d.ts.map +1 -0
  64. package/models/components/checkoutlink.js +90 -0
  65. package/models/components/checkoutlink.js.map +1 -0
  66. package/models/components/checkoutlinkcreate.d.ts +85 -0
  67. package/models/components/checkoutlinkcreate.d.ts.map +1 -0
  68. package/models/components/checkoutlinkcreate.js +90 -0
  69. package/models/components/checkoutlinkcreate.js.map +1 -0
  70. package/models/components/checkoutlinksortproperty.d.ts +28 -0
  71. package/models/components/checkoutlinksortproperty.d.ts.map +1 -0
  72. package/models/components/checkoutlinksortproperty.js +50 -0
  73. package/models/components/checkoutlinksortproperty.js.map +1 -0
  74. package/models/components/checkoutlinkupdate.d.ts +46 -0
  75. package/models/components/checkoutlinkupdate.d.ts.map +1 -0
  76. package/models/components/checkoutlinkupdate.js +61 -0
  77. package/models/components/checkoutlinkupdate.js.map +1 -0
  78. package/models/components/checkoutpublic.d.ts +5 -8
  79. package/models/components/checkoutpublic.d.ts.map +1 -1
  80. package/models/components/checkoutpublic.js +2 -2
  81. package/models/components/checkoutpublic.js.map +1 -1
  82. package/models/components/index.d.ts +13 -0
  83. package/models/components/index.d.ts.map +1 -1
  84. package/models/components/index.js +13 -0
  85. package/models/components/index.js.map +1 -1
  86. package/models/components/interval.d.ts +37 -0
  87. package/models/components/interval.d.ts.map +1 -0
  88. package/models/components/interval.js +54 -0
  89. package/models/components/interval.js.map +1 -0
  90. package/models/components/issue.d.ts +0 -6
  91. package/models/components/issue.d.ts.map +1 -1
  92. package/models/components/issue.js.map +1 -1
  93. package/models/components/licensekeyread.d.ts +3 -0
  94. package/models/components/licensekeyread.d.ts.map +1 -1
  95. package/models/components/licensekeyread.js +3 -0
  96. package/models/components/licensekeyread.js.map +1 -1
  97. package/models/components/licensekeyuser.d.ts +31 -0
  98. package/models/components/licensekeyuser.d.ts.map +1 -0
  99. package/models/components/licensekeyuser.js +67 -0
  100. package/models/components/licensekeyuser.js.map +1 -0
  101. package/models/components/licensekeywithactivations.d.ts +3 -0
  102. package/models/components/licensekeywithactivations.d.ts.map +1 -1
  103. package/models/components/licensekeywithactivations.js +3 -0
  104. package/models/components/licensekeywithactivations.js.map +1 -1
  105. package/models/components/listresourcebenefit.d.ts +3 -28
  106. package/models/components/listresourcebenefit.d.ts.map +1 -1
  107. package/models/components/listresourcebenefit.js +4 -57
  108. package/models/components/listresourcebenefit.js.map +1 -1
  109. package/models/components/listresourcecheckoutlink.d.ts +29 -0
  110. package/models/components/listresourcecheckoutlink.d.ts.map +1 -0
  111. package/models/components/listresourcecheckoutlink.js +54 -0
  112. package/models/components/listresourcecheckoutlink.js.map +1 -0
  113. package/models/components/metric.d.ts +0 -3
  114. package/models/components/metric.d.ts.map +1 -1
  115. package/models/components/metric.js.map +1 -1
  116. package/models/components/metricsintervalslimits.d.ts +5 -5
  117. package/models/components/metricslimits.d.ts +1 -1
  118. package/models/components/metricsresponse.d.ts +0 -3
  119. package/models/components/metricsresponse.d.ts.map +1 -1
  120. package/models/components/metricsresponse.js.map +1 -1
  121. package/models/components/oauth2client.js +2 -2
  122. package/models/components/oauth2client.js.map +1 -1
  123. package/models/components/oauth2clientconfiguration.js +2 -2
  124. package/models/components/oauth2clientconfiguration.js.map +1 -1
  125. package/models/components/oauth2clientconfigurationupdate.js +2 -2
  126. package/models/components/oauth2clientconfigurationupdate.js.map +1 -1
  127. package/models/components/order.d.ts +3 -0
  128. package/models/components/order.d.ts.map +1 -1
  129. package/models/components/order.js +5 -0
  130. package/models/components/order.js.map +1 -1
  131. package/models/components/orderbillingreason.d.ts +34 -0
  132. package/models/components/orderbillingreason.d.ts.map +1 -0
  133. package/models/components/orderbillingreason.js +52 -0
  134. package/models/components/orderbillingreason.js.map +1 -0
  135. package/models/components/pledge.d.ts +0 -9
  136. package/models/components/pledge.d.ts.map +1 -1
  137. package/models/components/pledge.js.map +1 -1
  138. package/models/components/polarcheckoutschemascheckout.d.ts +2 -121
  139. package/models/components/polarcheckoutschemascheckout.d.ts.map +1 -1
  140. package/models/components/polarcheckoutschemascheckout.js +3 -108
  141. package/models/components/polarcheckoutschemascheckout.js.map +1 -1
  142. package/models/components/productpriceonetimecustom.d.ts +5 -0
  143. package/models/components/productpriceonetimecustom.d.ts.map +1 -1
  144. package/models/components/productpriceonetimecustom.js +4 -0
  145. package/models/components/productpriceonetimecustom.js.map +1 -1
  146. package/models/components/productpriceonetimefixed.d.ts +5 -0
  147. package/models/components/productpriceonetimefixed.d.ts.map +1 -1
  148. package/models/components/productpriceonetimefixed.js +4 -0
  149. package/models/components/productpriceonetimefixed.js.map +1 -1
  150. package/models/components/productpriceonetimefree.d.ts +5 -0
  151. package/models/components/productpriceonetimefree.d.ts.map +1 -1
  152. package/models/components/productpriceonetimefree.js +4 -0
  153. package/models/components/productpriceonetimefree.js.map +1 -1
  154. package/models/components/productpricerecurringcustom.d.ts +5 -3
  155. package/models/components/productpricerecurringcustom.d.ts.map +1 -1
  156. package/models/components/productpricerecurringcustom.js +4 -0
  157. package/models/components/productpricerecurringcustom.js.map +1 -1
  158. package/models/components/productpricerecurringfixed.d.ts +5 -3
  159. package/models/components/productpricerecurringfixed.d.ts.map +1 -1
  160. package/models/components/productpricerecurringfixed.js +4 -0
  161. package/models/components/productpricerecurringfixed.js.map +1 -1
  162. package/models/components/productpricerecurringfixedcreate.d.ts +0 -3
  163. package/models/components/productpricerecurringfixedcreate.d.ts.map +1 -1
  164. package/models/components/productpricerecurringfixedcreate.js.map +1 -1
  165. package/models/components/productpricerecurringfree.d.ts +5 -3
  166. package/models/components/productpricerecurringfree.d.ts.map +1 -1
  167. package/models/components/productpricerecurringfree.js +4 -0
  168. package/models/components/productpricerecurringfree.js.map +1 -1
  169. package/models/components/productpricerecurringfreecreate.d.ts +0 -3
  170. package/models/components/productpricerecurringfreecreate.d.ts.map +1 -1
  171. package/models/components/productpricerecurringfreecreate.js.map +1 -1
  172. package/models/components/validatedlicensekey.d.ts +3 -0
  173. package/models/components/validatedlicensekey.d.ts.map +1 -1
  174. package/models/components/validatedlicensekey.js +3 -0
  175. package/models/components/validatedlicensekey.js.map +1 -1
  176. package/models/components/webhookbenefitcreatedpayload.d.ts +3 -28
  177. package/models/components/webhookbenefitcreatedpayload.d.ts.map +1 -1
  178. package/models/components/webhookbenefitcreatedpayload.js +4 -57
  179. package/models/components/webhookbenefitcreatedpayload.js.map +1 -1
  180. package/models/components/webhookbenefitupdatedpayload.d.ts +3 -28
  181. package/models/components/webhookbenefitupdatedpayload.d.ts.map +1 -1
  182. package/models/components/webhookbenefitupdatedpayload.js +4 -57
  183. package/models/components/webhookbenefitupdatedpayload.js.map +1 -1
  184. package/models/components/webhookcheckoutcreatedpayload.d.ts +3 -3
  185. package/models/components/webhookcheckoutcreatedpayload.d.ts.map +1 -1
  186. package/models/components/webhookcheckoutcreatedpayload.js +2 -2
  187. package/models/components/webhookcheckoutcreatedpayload.js.map +1 -1
  188. package/models/components/webhookcheckoutupdatedpayload.d.ts +3 -3
  189. package/models/components/webhookcheckoutupdatedpayload.d.ts.map +1 -1
  190. package/models/components/webhookcheckoutupdatedpayload.js +2 -2
  191. package/models/components/webhookcheckoutupdatedpayload.js.map +1 -1
  192. package/models/components/webhooksubscriptionactivepayload.d.ts +59 -0
  193. package/models/components/webhooksubscriptionactivepayload.d.ts.map +1 -0
  194. package/models/components/webhooksubscriptionactivepayload.js +71 -0
  195. package/models/components/webhooksubscriptionactivepayload.js.map +1 -0
  196. package/models/components/webhooksubscriptioncanceledpayload.d.ts +59 -0
  197. package/models/components/webhooksubscriptioncanceledpayload.d.ts.map +1 -0
  198. package/models/components/webhooksubscriptioncanceledpayload.js +71 -0
  199. package/models/components/webhooksubscriptioncanceledpayload.js.map +1 -0
  200. package/models/components/webhooksubscriptionrevokedpayload.d.ts +59 -0
  201. package/models/components/webhooksubscriptionrevokedpayload.d.ts.map +1 -0
  202. package/models/components/webhooksubscriptionrevokedpayload.js +71 -0
  203. package/models/components/webhooksubscriptionrevokedpayload.js.map +1 -0
  204. package/models/components/webhooksubscriptionupdatedpayload.d.ts +6 -2
  205. package/models/components/webhooksubscriptionupdatedpayload.d.ts.map +1 -1
  206. package/models/components/webhooksubscriptionupdatedpayload.js.map +1 -1
  207. package/models/operations/articlesexport.d.ts +25 -0
  208. package/models/operations/articlesexport.d.ts.map +1 -0
  209. package/models/operations/articlesexport.js +59 -0
  210. package/models/operations/articlesexport.js.map +1 -0
  211. package/models/operations/benefitscreate.d.ts +0 -22
  212. package/models/operations/benefitscreate.d.ts.map +1 -1
  213. package/models/operations/benefitscreate.js +1 -32
  214. package/models/operations/benefitscreate.js.map +1 -1
  215. package/models/operations/benefitsget.d.ts +0 -23
  216. package/models/operations/benefitsget.d.ts.map +1 -1
  217. package/models/operations/benefitsget.js +1 -33
  218. package/models/operations/benefitsget.js.map +1 -1
  219. package/models/operations/benefitsupdate.d.ts +0 -22
  220. package/models/operations/benefitsupdate.d.ts.map +1 -1
  221. package/models/operations/benefitsupdate.js +1 -32
  222. package/models/operations/benefitsupdate.js.map +1 -1
  223. package/models/operations/checkoutlinksdelete.d.ts +28 -0
  224. package/models/operations/checkoutlinksdelete.d.ts.map +1 -0
  225. package/models/operations/checkoutlinksdelete.js +50 -0
  226. package/models/operations/checkoutlinksdelete.js.map +1 -0
  227. package/models/operations/checkoutlinksget.d.ts +28 -0
  228. package/models/operations/checkoutlinksget.d.ts.map +1 -0
  229. package/models/operations/checkoutlinksget.js +50 -0
  230. package/models/operations/checkoutlinksget.js.map +1 -0
  231. package/models/operations/checkoutlinkslist.d.ts +116 -0
  232. package/models/operations/checkoutlinkslist.d.ts.map +1 -0
  233. package/models/operations/checkoutlinkslist.js +129 -0
  234. package/models/operations/checkoutlinkslist.js.map +1 -0
  235. package/models/operations/checkoutlinksupdate.d.ts +31 -0
  236. package/models/operations/checkoutlinksupdate.d.ts.map +1 -0
  237. package/models/operations/checkoutlinksupdate.js +62 -0
  238. package/models/operations/checkoutlinksupdate.js.map +1 -0
  239. package/models/operations/index.d.ts +5 -0
  240. package/models/operations/index.d.ts.map +1 -1
  241. package/models/operations/index.js +5 -0
  242. package/models/operations/index.js.map +1 -1
  243. package/models/operations/metricsget.d.ts +1 -42
  244. package/models/operations/metricsget.d.ts.map +1 -1
  245. package/models/operations/metricsget.js +3 -29
  246. package/models/operations/metricsget.js.map +1 -1
  247. package/package.json +1 -1
  248. package/sdk/articles.d.ts +7 -0
  249. package/sdk/articles.d.ts.map +1 -1
  250. package/sdk/articles.js +10 -0
  251. package/sdk/articles.js.map +1 -1
  252. package/sdk/benefits.d.ts +4 -3
  253. package/sdk/benefits.d.ts.map +1 -1
  254. package/sdk/benefits.js.map +1 -1
  255. package/sdk/checkoutlinks.d.ts +42 -0
  256. package/sdk/checkoutlinks.d.ts.map +1 -0
  257. package/sdk/checkoutlinks.js +63 -0
  258. package/sdk/checkoutlinks.js.map +1 -0
  259. package/sdk/sdk.d.ts +3 -0
  260. package/sdk/sdk.d.ts.map +1 -1
  261. package/sdk/sdk.js +5 -0
  262. package/sdk/sdk.js.map +1 -1
  263. package/src/funcs/articlesExport.ts +129 -0
  264. package/src/funcs/benefitsCreate.ts +4 -3
  265. package/src/funcs/benefitsGet.ts +4 -3
  266. package/src/funcs/benefitsUpdate.ts +4 -3
  267. package/src/funcs/checkoutLinksCreate.ts +124 -0
  268. package/src/funcs/checkoutLinksDelete.ts +135 -0
  269. package/src/funcs/checkoutLinksGet.ts +134 -0
  270. package/src/funcs/checkoutLinksList.ts +189 -0
  271. package/src/funcs/checkoutLinksUpdate.ts +138 -0
  272. package/src/lib/config.ts +3 -3
  273. package/src/models/components/articlecreate.ts +18 -77
  274. package/src/models/components/benefit.ts +106 -0
  275. package/src/models/components/benefitbase.ts +0 -3
  276. package/src/models/components/benefitgrantwebhook.ts +9 -137
  277. package/src/models/components/benefitinput.ts +109 -0
  278. package/src/models/components/checkoutlink.ts +131 -0
  279. package/src/models/components/checkoutlinkcreate.ts +127 -0
  280. package/src/models/components/checkoutlinksortproperty.ts +35 -0
  281. package/src/models/components/checkoutlinkupdate.ts +73 -0
  282. package/src/models/components/checkoutpublic.ts +7 -10
  283. package/src/models/components/index.ts +13 -0
  284. package/src/models/components/interval.ts +34 -0
  285. package/src/models/components/issue.ts +0 -6
  286. package/src/models/components/licensekeyread.ts +10 -0
  287. package/src/models/components/licensekeyuser.ts +68 -0
  288. package/src/models/components/licensekeywithactivations.ts +10 -0
  289. package/src/models/components/listresourcebenefit.ts +9 -140
  290. package/src/models/components/listresourcecheckoutlink.ts +61 -0
  291. package/src/models/components/metric.ts +0 -3
  292. package/src/models/components/metricsintervalslimits.ts +5 -5
  293. package/src/models/components/metricslimits.ts +1 -1
  294. package/src/models/components/metricsresponse.ts +0 -3
  295. package/src/models/components/oauth2client.ts +2 -2
  296. package/src/models/components/oauth2clientconfiguration.ts +2 -2
  297. package/src/models/components/oauth2clientconfigurationupdate.ts +2 -2
  298. package/src/models/components/order.ts +11 -0
  299. package/src/models/components/orderbillingreason.ts +35 -0
  300. package/src/models/components/pledge.ts +0 -9
  301. package/src/models/components/polarcheckoutschemascheckout.ts +4 -229
  302. package/src/models/components/productpriceonetimecustom.ts +9 -0
  303. package/src/models/components/productpriceonetimefixed.ts +9 -0
  304. package/src/models/components/productpriceonetimefree.ts +9 -0
  305. package/src/models/components/productpricerecurringcustom.ts +9 -3
  306. package/src/models/components/productpricerecurringfixed.ts +9 -3
  307. package/src/models/components/productpricerecurringfixedcreate.ts +0 -3
  308. package/src/models/components/productpricerecurringfree.ts +9 -3
  309. package/src/models/components/productpricerecurringfreecreate.ts +0 -3
  310. package/src/models/components/validatedlicensekey.ts +10 -0
  311. package/src/models/components/webhookbenefitcreatedpayload.ts +9 -139
  312. package/src/models/components/webhookbenefitupdatedpayload.ts +9 -139
  313. package/src/models/components/webhookcheckoutcreatedpayload.ts +8 -8
  314. package/src/models/components/webhookcheckoutupdatedpayload.ts +8 -8
  315. package/src/models/components/webhooksubscriptionactivepayload.ts +95 -0
  316. package/src/models/components/webhooksubscriptioncanceledpayload.ts +96 -0
  317. package/src/models/components/webhooksubscriptionrevokedpayload.ts +96 -0
  318. package/src/models/components/webhooksubscriptionupdatedpayload.ts +6 -2
  319. package/src/models/operations/articlesexport.ts +54 -0
  320. package/src/models/operations/benefitscreate.ts +0 -67
  321. package/src/models/operations/benefitsget.ts +0 -66
  322. package/src/models/operations/benefitsupdate.ts +0 -67
  323. package/src/models/operations/checkoutlinksdelete.ts +48 -0
  324. package/src/models/operations/checkoutlinksget.ts +48 -0
  325. package/src/models/operations/checkoutlinkslist.ts +224 -0
  326. package/src/models/operations/checkoutlinksupdate.ts +62 -0
  327. package/src/models/operations/index.ts +5 -0
  328. package/src/models/operations/metricsget.ts +3 -38
  329. package/src/sdk/articles.ts +18 -0
  330. package/src/sdk/benefits.ts +4 -3
  331. package/src/sdk/checkoutlinks.ts +101 -0
  332. package/src/sdk/sdk.ts +6 -0
@@ -34,90 +34,16 @@ export type PolarCheckoutSchemasCheckout = {
34
34
  * The ID of the object.
35
35
  */
36
36
  id: string;
37
- /**
38
- * Payment processor used.
39
- */
40
37
  paymentProcessor?: "stripe" | undefined;
41
- /**
42
- * Status of the checkout session.
43
- */
44
38
  status: CheckoutStatus;
45
39
  /**
46
40
  * Client secret used to update and complete the checkout session from the client.
47
41
  */
48
42
  clientSecret: string;
49
43
  /**
50
- * Expiration date and time of the checkout session.
51
- */
52
- expiresAt: Date;
53
- /**
54
- * URL where the customer will be redirected after a successful payment.
55
- */
56
- successUrl: string;
57
- amount: number | null;
58
- /**
59
- * Computed tax amount to pay in cents.
60
- */
61
- taxAmount: number | null;
62
- /**
63
- * Currency code of the checkout session.
64
- */
65
- currency: string | null;
66
- /**
67
- * Total amount to pay in cents.
68
- */
69
- totalAmount: number | null;
70
- /**
71
- * ID of the product to checkout.
72
- */
73
- productId: string;
74
- /**
75
- * ID of the product price to checkout.
76
- */
77
- productPriceId: string;
78
- /**
79
- * Whether the checkout requires payment. Useful to detect free products.
44
+ * URL where the customer can access the checkout session.
80
45
  */
81
- isPaymentRequired: boolean;
82
- customerId: string | null;
83
- customerName: string | null;
84
- customerEmail: string | null;
85
- customerIpAddress: string | null;
86
- customerBillingAddress: Address | null;
87
- customerTaxId: string | null;
88
- paymentProcessorMetadata: PaymentProcessorMetadata;
89
- metadata: { [k: string]: string };
90
46
  url: string;
91
- };
92
-
93
- /**
94
- * Checkout session data retrieved using an access token.
95
- */
96
- export type PolarCheckoutSchemasCheckoutInput = {
97
- /**
98
- * Creation timestamp of the object.
99
- */
100
- createdAt: Date;
101
- /**
102
- * Last modification timestamp of the object.
103
- */
104
- modifiedAt: Date | null;
105
- /**
106
- * The ID of the object.
107
- */
108
- id: string;
109
- /**
110
- * Payment processor used.
111
- */
112
- paymentProcessor?: "stripe" | undefined;
113
- /**
114
- * Status of the checkout session.
115
- */
116
- status: CheckoutStatus;
117
- /**
118
- * Client secret used to update and complete the checkout session from the client.
119
- */
120
- clientSecret: string;
121
47
  /**
122
48
  * Expiration date and time of the checkout session.
123
49
  */
@@ -205,6 +131,7 @@ export const PolarCheckoutSchemasCheckout$inboundSchema: z.ZodType<
205
131
  payment_processor: z.literal("stripe").optional(),
206
132
  status: CheckoutStatus$inboundSchema,
207
133
  client_secret: z.string(),
134
+ url: z.string(),
208
135
  expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
209
136
  success_url: z.string(),
210
137
  amount: z.nullable(z.number().int()),
@@ -224,7 +151,6 @@ export const PolarCheckoutSchemasCheckout$inboundSchema: z.ZodType<
224
151
  PaymentProcessorMetadata$inboundSchema
225
152
  ),
226
153
  metadata: z.record(z.string()),
227
- url: z.string(),
228
154
  }).transform((v) => {
229
155
  return remap$(v, {
230
156
  "created_at": "createdAt",
@@ -256,6 +182,7 @@ export type PolarCheckoutSchemasCheckout$Outbound = {
256
182
  payment_processor: "stripe";
257
183
  status: string;
258
184
  client_secret: string;
185
+ url: string;
259
186
  expires_at: string;
260
187
  success_url: string;
261
188
  amount: number | null;
@@ -273,7 +200,6 @@ export type PolarCheckoutSchemasCheckout$Outbound = {
273
200
  customer_tax_id: string | null;
274
201
  payment_processor_metadata: PaymentProcessorMetadata$Outbound;
275
202
  metadata: { [k: string]: string };
276
- url: string;
277
203
  };
278
204
 
279
205
  /** @internal */
@@ -288,6 +214,7 @@ export const PolarCheckoutSchemasCheckout$outboundSchema: z.ZodType<
288
214
  paymentProcessor: z.literal("stripe").default("stripe"),
289
215
  status: CheckoutStatus$outboundSchema,
290
216
  clientSecret: z.string(),
217
+ url: z.string(),
291
218
  expiresAt: z.date().transform(v => v.toISOString()),
292
219
  successUrl: z.string(),
293
220
  amount: z.nullable(z.number().int()),
@@ -307,7 +234,6 @@ export const PolarCheckoutSchemasCheckout$outboundSchema: z.ZodType<
307
234
  PaymentProcessorMetadata$outboundSchema
308
235
  ),
309
236
  metadata: z.record(z.string()),
310
- url: z.string(),
311
237
  }).transform((v) => {
312
238
  return remap$(v, {
313
239
  createdAt: "created_at",
@@ -343,154 +269,3 @@ export namespace PolarCheckoutSchemasCheckout$ {
343
269
  /** @deprecated use `PolarCheckoutSchemasCheckout$Outbound` instead. */
344
270
  export type Outbound = PolarCheckoutSchemasCheckout$Outbound;
345
271
  }
346
-
347
- /** @internal */
348
- export const PolarCheckoutSchemasCheckoutInput$inboundSchema: z.ZodType<
349
- PolarCheckoutSchemasCheckoutInput,
350
- z.ZodTypeDef,
351
- unknown
352
- > = z.object({
353
- created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
354
- modified_at: z.nullable(
355
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
356
- ),
357
- id: z.string(),
358
- payment_processor: z.literal("stripe").optional(),
359
- status: CheckoutStatus$inboundSchema,
360
- client_secret: z.string(),
361
- expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
362
- success_url: z.string(),
363
- amount: z.nullable(z.number().int()),
364
- tax_amount: z.nullable(z.number().int()),
365
- currency: z.nullable(z.string()),
366
- total_amount: z.nullable(z.number().int()),
367
- product_id: z.string(),
368
- product_price_id: z.string(),
369
- is_payment_required: z.boolean(),
370
- customer_id: z.nullable(z.string()),
371
- customer_name: z.nullable(z.string()),
372
- customer_email: z.nullable(z.string()),
373
- customer_ip_address: z.nullable(z.string()),
374
- customer_billing_address: z.nullable(Address$inboundSchema),
375
- customer_tax_id: z.nullable(z.string()),
376
- payment_processor_metadata: z.lazy(() =>
377
- PaymentProcessorMetadata$inboundSchema
378
- ),
379
- metadata: z.record(z.string()),
380
- }).transform((v) => {
381
- return remap$(v, {
382
- "created_at": "createdAt",
383
- "modified_at": "modifiedAt",
384
- "payment_processor": "paymentProcessor",
385
- "client_secret": "clientSecret",
386
- "expires_at": "expiresAt",
387
- "success_url": "successUrl",
388
- "tax_amount": "taxAmount",
389
- "total_amount": "totalAmount",
390
- "product_id": "productId",
391
- "product_price_id": "productPriceId",
392
- "is_payment_required": "isPaymentRequired",
393
- "customer_id": "customerId",
394
- "customer_name": "customerName",
395
- "customer_email": "customerEmail",
396
- "customer_ip_address": "customerIpAddress",
397
- "customer_billing_address": "customerBillingAddress",
398
- "customer_tax_id": "customerTaxId",
399
- "payment_processor_metadata": "paymentProcessorMetadata",
400
- });
401
- });
402
-
403
- /** @internal */
404
- export type PolarCheckoutSchemasCheckoutInput$Outbound = {
405
- created_at: string;
406
- modified_at: string | null;
407
- id: string;
408
- payment_processor: "stripe";
409
- status: string;
410
- client_secret: string;
411
- expires_at: string;
412
- success_url: string;
413
- amount: number | null;
414
- tax_amount: number | null;
415
- currency: string | null;
416
- total_amount: number | null;
417
- product_id: string;
418
- product_price_id: string;
419
- is_payment_required: boolean;
420
- customer_id: string | null;
421
- customer_name: string | null;
422
- customer_email: string | null;
423
- customer_ip_address: string | null;
424
- customer_billing_address: Address$Outbound | null;
425
- customer_tax_id: string | null;
426
- payment_processor_metadata: PaymentProcessorMetadata$Outbound;
427
- metadata: { [k: string]: string };
428
- };
429
-
430
- /** @internal */
431
- export const PolarCheckoutSchemasCheckoutInput$outboundSchema: z.ZodType<
432
- PolarCheckoutSchemasCheckoutInput$Outbound,
433
- z.ZodTypeDef,
434
- PolarCheckoutSchemasCheckoutInput
435
- > = z.object({
436
- createdAt: z.date().transform(v => v.toISOString()),
437
- modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
438
- id: z.string(),
439
- paymentProcessor: z.literal("stripe").default("stripe"),
440
- status: CheckoutStatus$outboundSchema,
441
- clientSecret: z.string(),
442
- expiresAt: z.date().transform(v => v.toISOString()),
443
- successUrl: z.string(),
444
- amount: z.nullable(z.number().int()),
445
- taxAmount: z.nullable(z.number().int()),
446
- currency: z.nullable(z.string()),
447
- totalAmount: z.nullable(z.number().int()),
448
- productId: z.string(),
449
- productPriceId: z.string(),
450
- isPaymentRequired: z.boolean(),
451
- customerId: z.nullable(z.string()),
452
- customerName: z.nullable(z.string()),
453
- customerEmail: z.nullable(z.string()),
454
- customerIpAddress: z.nullable(z.string()),
455
- customerBillingAddress: z.nullable(Address$outboundSchema),
456
- customerTaxId: z.nullable(z.string()),
457
- paymentProcessorMetadata: z.lazy(() =>
458
- PaymentProcessorMetadata$outboundSchema
459
- ),
460
- metadata: z.record(z.string()),
461
- }).transform((v) => {
462
- return remap$(v, {
463
- createdAt: "created_at",
464
- modifiedAt: "modified_at",
465
- paymentProcessor: "payment_processor",
466
- clientSecret: "client_secret",
467
- expiresAt: "expires_at",
468
- successUrl: "success_url",
469
- taxAmount: "tax_amount",
470
- totalAmount: "total_amount",
471
- productId: "product_id",
472
- productPriceId: "product_price_id",
473
- isPaymentRequired: "is_payment_required",
474
- customerId: "customer_id",
475
- customerName: "customer_name",
476
- customerEmail: "customer_email",
477
- customerIpAddress: "customer_ip_address",
478
- customerBillingAddress: "customer_billing_address",
479
- customerTaxId: "customer_tax_id",
480
- paymentProcessorMetadata: "payment_processor_metadata",
481
- });
482
- });
483
-
484
- /**
485
- * @internal
486
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
487
- */
488
- export namespace PolarCheckoutSchemasCheckoutInput$ {
489
- /** @deprecated use `PolarCheckoutSchemasCheckoutInput$inboundSchema` instead. */
490
- export const inboundSchema = PolarCheckoutSchemasCheckoutInput$inboundSchema;
491
- /** @deprecated use `PolarCheckoutSchemasCheckoutInput$outboundSchema` instead. */
492
- export const outboundSchema =
493
- PolarCheckoutSchemasCheckoutInput$outboundSchema;
494
- /** @deprecated use `PolarCheckoutSchemasCheckoutInput$Outbound` instead. */
495
- export type Outbound = PolarCheckoutSchemasCheckoutInput$Outbound;
496
- }
@@ -47,6 +47,10 @@ export type ProductPriceOneTimeCustom = {
47
47
  * Whether the price is archived and no longer available.
48
48
  */
49
49
  isArchived: boolean;
50
+ /**
51
+ * The ID of the product owning the price.
52
+ */
53
+ productId: string;
50
54
  /**
51
55
  * The currency.
52
56
  */
@@ -126,6 +130,7 @@ export const ProductPriceOneTimeCustom$inboundSchema: z.ZodType<
126
130
  id: z.string(),
127
131
  amount_type: z.literal("custom").optional(),
128
132
  is_archived: z.boolean(),
133
+ product_id: z.string(),
129
134
  price_currency: z.string(),
130
135
  minimum_amount: z.nullable(z.number().int()),
131
136
  maximum_amount: z.nullable(z.number().int()),
@@ -137,6 +142,7 @@ export const ProductPriceOneTimeCustom$inboundSchema: z.ZodType<
137
142
  "modified_at": "modifiedAt",
138
143
  "amount_type": "amountType",
139
144
  "is_archived": "isArchived",
145
+ "product_id": "productId",
140
146
  "price_currency": "priceCurrency",
141
147
  "minimum_amount": "minimumAmount",
142
148
  "maximum_amount": "maximumAmount",
@@ -151,6 +157,7 @@ export type ProductPriceOneTimeCustom$Outbound = {
151
157
  id: string;
152
158
  amount_type: "custom";
153
159
  is_archived: boolean;
160
+ product_id: string;
154
161
  price_currency: string;
155
162
  minimum_amount: number | null;
156
163
  maximum_amount: number | null;
@@ -169,6 +176,7 @@ export const ProductPriceOneTimeCustom$outboundSchema: z.ZodType<
169
176
  id: z.string(),
170
177
  amountType: z.literal("custom").default("custom"),
171
178
  isArchived: z.boolean(),
179
+ productId: z.string(),
172
180
  priceCurrency: z.string(),
173
181
  minimumAmount: z.nullable(z.number().int()),
174
182
  maximumAmount: z.nullable(z.number().int()),
@@ -180,6 +188,7 @@ export const ProductPriceOneTimeCustom$outboundSchema: z.ZodType<
180
188
  modifiedAt: "modified_at",
181
189
  amountType: "amount_type",
182
190
  isArchived: "is_archived",
191
+ productId: "product_id",
183
192
  priceCurrency: "price_currency",
184
193
  minimumAmount: "minimum_amount",
185
194
  maximumAmount: "maximum_amount",
@@ -47,6 +47,10 @@ export type ProductPriceOneTimeFixed = {
47
47
  * Whether the price is archived and no longer available.
48
48
  */
49
49
  isArchived: boolean;
50
+ /**
51
+ * The ID of the product owning the price.
52
+ */
53
+ productId: string;
50
54
  /**
51
55
  * The currency.
52
56
  */
@@ -117,6 +121,7 @@ export const ProductPriceOneTimeFixed$inboundSchema: z.ZodType<
117
121
  id: z.string(),
118
122
  amount_type: z.literal("fixed").optional(),
119
123
  is_archived: z.boolean(),
124
+ product_id: z.string(),
120
125
  price_currency: z.string(),
121
126
  price_amount: z.number().int(),
122
127
  type: z.literal("one_time").optional(),
@@ -126,6 +131,7 @@ export const ProductPriceOneTimeFixed$inboundSchema: z.ZodType<
126
131
  "modified_at": "modifiedAt",
127
132
  "amount_type": "amountType",
128
133
  "is_archived": "isArchived",
134
+ "product_id": "productId",
129
135
  "price_currency": "priceCurrency",
130
136
  "price_amount": "priceAmount",
131
137
  });
@@ -138,6 +144,7 @@ export type ProductPriceOneTimeFixed$Outbound = {
138
144
  id: string;
139
145
  amount_type: "fixed";
140
146
  is_archived: boolean;
147
+ product_id: string;
141
148
  price_currency: string;
142
149
  price_amount: number;
143
150
  type: "one_time";
@@ -154,6 +161,7 @@ export const ProductPriceOneTimeFixed$outboundSchema: z.ZodType<
154
161
  id: z.string(),
155
162
  amountType: z.literal("fixed").default("fixed"),
156
163
  isArchived: z.boolean(),
164
+ productId: z.string(),
157
165
  priceCurrency: z.string(),
158
166
  priceAmount: z.number().int(),
159
167
  type: z.literal("one_time").default("one_time"),
@@ -163,6 +171,7 @@ export const ProductPriceOneTimeFixed$outboundSchema: z.ZodType<
163
171
  modifiedAt: "modified_at",
164
172
  amountType: "amount_type",
165
173
  isArchived: "is_archived",
174
+ productId: "product_id",
166
175
  priceCurrency: "price_currency",
167
176
  priceAmount: "price_amount",
168
177
  });
@@ -47,6 +47,10 @@ export type ProductPriceOneTimeFree = {
47
47
  * Whether the price is archived and no longer available.
48
48
  */
49
49
  isArchived: boolean;
50
+ /**
51
+ * The ID of the product owning the price.
52
+ */
53
+ productId: string;
50
54
  /**
51
55
  * The type of the price.
52
56
  */
@@ -109,6 +113,7 @@ export const ProductPriceOneTimeFree$inboundSchema: z.ZodType<
109
113
  id: z.string(),
110
114
  amount_type: z.literal("free").optional(),
111
115
  is_archived: z.boolean(),
116
+ product_id: z.string(),
112
117
  type: z.literal("one_time").optional(),
113
118
  }).transform((v) => {
114
119
  return remap$(v, {
@@ -116,6 +121,7 @@ export const ProductPriceOneTimeFree$inboundSchema: z.ZodType<
116
121
  "modified_at": "modifiedAt",
117
122
  "amount_type": "amountType",
118
123
  "is_archived": "isArchived",
124
+ "product_id": "productId",
119
125
  });
120
126
  });
121
127
 
@@ -126,6 +132,7 @@ export type ProductPriceOneTimeFree$Outbound = {
126
132
  id: string;
127
133
  amount_type: "free";
128
134
  is_archived: boolean;
135
+ product_id: string;
129
136
  type: "one_time";
130
137
  };
131
138
 
@@ -140,6 +147,7 @@ export const ProductPriceOneTimeFree$outboundSchema: z.ZodType<
140
147
  id: z.string(),
141
148
  amountType: z.literal("free").default("free"),
142
149
  isArchived: z.boolean(),
150
+ productId: z.string(),
143
151
  type: z.literal("one_time").default("one_time"),
144
152
  }).transform((v) => {
145
153
  return remap$(v, {
@@ -147,6 +155,7 @@ export const ProductPriceOneTimeFree$outboundSchema: z.ZodType<
147
155
  modifiedAt: "modified_at",
148
156
  amountType: "amount_type",
149
157
  isArchived: "is_archived",
158
+ productId: "product_id",
150
159
  });
151
160
  });
152
161
 
@@ -52,6 +52,10 @@ export type ProductPriceRecurringCustom = {
52
52
  * Whether the price is archived and no longer available.
53
53
  */
54
54
  isArchived: boolean;
55
+ /**
56
+ * The ID of the product owning the price.
57
+ */
58
+ productId: string;
55
59
  /**
56
60
  * The currency.
57
61
  */
@@ -72,9 +76,6 @@ export type ProductPriceRecurringCustom = {
72
76
  * The type of the price.
73
77
  */
74
78
  type?: "recurring" | undefined;
75
- /**
76
- * The recurring interval of the price.
77
- */
78
79
  recurringInterval: SubscriptionRecurringInterval;
79
80
  };
80
81
 
@@ -136,6 +137,7 @@ export const ProductPriceRecurringCustom$inboundSchema: z.ZodType<
136
137
  id: z.string(),
137
138
  amount_type: z.literal("custom").optional(),
138
139
  is_archived: z.boolean(),
140
+ product_id: z.string(),
139
141
  price_currency: z.string(),
140
142
  minimum_amount: z.nullable(z.number().int()),
141
143
  maximum_amount: z.nullable(z.number().int()),
@@ -148,6 +150,7 @@ export const ProductPriceRecurringCustom$inboundSchema: z.ZodType<
148
150
  "modified_at": "modifiedAt",
149
151
  "amount_type": "amountType",
150
152
  "is_archived": "isArchived",
153
+ "product_id": "productId",
151
154
  "price_currency": "priceCurrency",
152
155
  "minimum_amount": "minimumAmount",
153
156
  "maximum_amount": "maximumAmount",
@@ -163,6 +166,7 @@ export type ProductPriceRecurringCustom$Outbound = {
163
166
  id: string;
164
167
  amount_type: "custom";
165
168
  is_archived: boolean;
169
+ product_id: string;
166
170
  price_currency: string;
167
171
  minimum_amount: number | null;
168
172
  maximum_amount: number | null;
@@ -182,6 +186,7 @@ export const ProductPriceRecurringCustom$outboundSchema: z.ZodType<
182
186
  id: z.string(),
183
187
  amountType: z.literal("custom").default("custom"),
184
188
  isArchived: z.boolean(),
189
+ productId: z.string(),
185
190
  priceCurrency: z.string(),
186
191
  minimumAmount: z.nullable(z.number().int()),
187
192
  maximumAmount: z.nullable(z.number().int()),
@@ -194,6 +199,7 @@ export const ProductPriceRecurringCustom$outboundSchema: z.ZodType<
194
199
  modifiedAt: "modified_at",
195
200
  amountType: "amount_type",
196
201
  isArchived: "is_archived",
202
+ productId: "product_id",
197
203
  priceCurrency: "price_currency",
198
204
  minimumAmount: "minimum_amount",
199
205
  maximumAmount: "maximum_amount",
@@ -50,6 +50,10 @@ export type ProductPriceRecurringFixed = {
50
50
  * Whether the price is archived and no longer available.
51
51
  */
52
52
  isArchived: boolean;
53
+ /**
54
+ * The ID of the product owning the price.
55
+ */
56
+ productId: string;
53
57
  /**
54
58
  * The currency.
55
59
  */
@@ -62,9 +66,6 @@ export type ProductPriceRecurringFixed = {
62
66
  * The type of the price.
63
67
  */
64
68
  type?: "recurring" | undefined;
65
- /**
66
- * The recurring interval of the price.
67
- */
68
69
  recurringInterval: SubscriptionRecurringInterval;
69
70
  };
70
71
 
@@ -121,6 +122,7 @@ export const ProductPriceRecurringFixed$inboundSchema: z.ZodType<
121
122
  id: z.string(),
122
123
  amount_type: z.literal("fixed").optional(),
123
124
  is_archived: z.boolean(),
125
+ product_id: z.string(),
124
126
  price_currency: z.string(),
125
127
  price_amount: z.number().int(),
126
128
  type: z.literal("recurring").optional(),
@@ -131,6 +133,7 @@ export const ProductPriceRecurringFixed$inboundSchema: z.ZodType<
131
133
  "modified_at": "modifiedAt",
132
134
  "amount_type": "amountType",
133
135
  "is_archived": "isArchived",
136
+ "product_id": "productId",
134
137
  "price_currency": "priceCurrency",
135
138
  "price_amount": "priceAmount",
136
139
  "recurring_interval": "recurringInterval",
@@ -144,6 +147,7 @@ export type ProductPriceRecurringFixed$Outbound = {
144
147
  id: string;
145
148
  amount_type: "fixed";
146
149
  is_archived: boolean;
150
+ product_id: string;
147
151
  price_currency: string;
148
152
  price_amount: number;
149
153
  type: "recurring";
@@ -161,6 +165,7 @@ export const ProductPriceRecurringFixed$outboundSchema: z.ZodType<
161
165
  id: z.string(),
162
166
  amountType: z.literal("fixed").default("fixed"),
163
167
  isArchived: z.boolean(),
168
+ productId: z.string(),
164
169
  priceCurrency: z.string(),
165
170
  priceAmount: z.number().int(),
166
171
  type: z.literal("recurring").default("recurring"),
@@ -171,6 +176,7 @@ export const ProductPriceRecurringFixed$outboundSchema: z.ZodType<
171
176
  modifiedAt: "modified_at",
172
177
  amountType: "amount_type",
173
178
  isArchived: "is_archived",
179
+ productId: "product_id",
174
180
  priceCurrency: "price_currency",
175
181
  priceAmount: "price_amount",
176
182
  recurringInterval: "recurring_interval",
@@ -39,9 +39,6 @@ export type ProductPriceRecurringFixedCreate = {
39
39
  * The currency. Currently, only `usd` is supported.
40
40
  */
41
41
  priceCurrency?: string | undefined;
42
- /**
43
- * The recurring interval of the price.
44
- */
45
42
  recurringInterval: SubscriptionRecurringInterval;
46
43
  };
47
44
 
@@ -53,12 +53,13 @@ export type ProductPriceRecurringFree = {
53
53
  */
54
54
  isArchived: boolean;
55
55
  /**
56
- * The type of the price.
56
+ * The ID of the product owning the price.
57
57
  */
58
- type?: "recurring" | undefined;
58
+ productId: string;
59
59
  /**
60
- * The recurring interval of the price.
60
+ * The type of the price.
61
61
  */
62
+ type?: "recurring" | undefined;
62
63
  recurringInterval: SubscriptionRecurringInterval;
63
64
  };
64
65
 
@@ -119,6 +120,7 @@ export const ProductPriceRecurringFree$inboundSchema: z.ZodType<
119
120
  id: z.string(),
120
121
  amount_type: z.literal("free").optional(),
121
122
  is_archived: z.boolean(),
123
+ product_id: z.string(),
122
124
  type: z.literal("recurring").optional(),
123
125
  recurring_interval: SubscriptionRecurringInterval$inboundSchema,
124
126
  }).transform((v) => {
@@ -127,6 +129,7 @@ export const ProductPriceRecurringFree$inboundSchema: z.ZodType<
127
129
  "modified_at": "modifiedAt",
128
130
  "amount_type": "amountType",
129
131
  "is_archived": "isArchived",
132
+ "product_id": "productId",
130
133
  "recurring_interval": "recurringInterval",
131
134
  });
132
135
  });
@@ -138,6 +141,7 @@ export type ProductPriceRecurringFree$Outbound = {
138
141
  id: string;
139
142
  amount_type: "free";
140
143
  is_archived: boolean;
144
+ product_id: string;
141
145
  type: "recurring";
142
146
  recurring_interval: string;
143
147
  };
@@ -153,6 +157,7 @@ export const ProductPriceRecurringFree$outboundSchema: z.ZodType<
153
157
  id: z.string(),
154
158
  amountType: z.literal("free").default("free"),
155
159
  isArchived: z.boolean(),
160
+ productId: z.string(),
156
161
  type: z.literal("recurring").default("recurring"),
157
162
  recurringInterval: SubscriptionRecurringInterval$outboundSchema,
158
163
  }).transform((v) => {
@@ -161,6 +166,7 @@ export const ProductPriceRecurringFree$outboundSchema: z.ZodType<
161
166
  modifiedAt: "modified_at",
162
167
  amountType: "amount_type",
163
168
  isArchived: "is_archived",
169
+ productId: "product_id",
164
170
  recurringInterval: "recurring_interval",
165
171
  });
166
172
  });
@@ -31,9 +31,6 @@ export type ProductPriceRecurringFreeCreateAmountType = ClosedEnum<
31
31
  export type ProductPriceRecurringFreeCreate = {
32
32
  type?: "recurring" | undefined;
33
33
  amountType?: "free" | undefined;
34
- /**
35
- * The recurring interval of the price.
36
- */
37
34
  recurringInterval: SubscriptionRecurringInterval;
38
35
  };
39
36
 
@@ -15,11 +15,18 @@ import {
15
15
  LicenseKeyStatus$inboundSchema,
16
16
  LicenseKeyStatus$outboundSchema,
17
17
  } from "./licensekeystatus.js";
18
+ import {
19
+ LicenseKeyUser,
20
+ LicenseKeyUser$inboundSchema,
21
+ LicenseKeyUser$Outbound,
22
+ LicenseKeyUser$outboundSchema,
23
+ } from "./licensekeyuser.js";
18
24
 
19
25
  export type ValidatedLicenseKey = {
20
26
  id: string;
21
27
  organizationId: string;
22
28
  userId: string;
29
+ user: LicenseKeyUser;
23
30
  /**
24
31
  * The benefit ID.
25
32
  */
@@ -45,6 +52,7 @@ export const ValidatedLicenseKey$inboundSchema: z.ZodType<
45
52
  id: z.string(),
46
53
  organization_id: z.string(),
47
54
  user_id: z.string(),
55
+ user: LicenseKeyUser$inboundSchema,
48
56
  benefit_id: z.string(),
49
57
  key: z.string(),
50
58
  display_key: z.string(),
@@ -78,6 +86,7 @@ export type ValidatedLicenseKey$Outbound = {
78
86
  id: string;
79
87
  organization_id: string;
80
88
  user_id: string;
89
+ user: LicenseKeyUser$Outbound;
81
90
  benefit_id: string;
82
91
  key: string;
83
92
  display_key: string;
@@ -100,6 +109,7 @@ export const ValidatedLicenseKey$outboundSchema: z.ZodType<
100
109
  id: z.string(),
101
110
  organizationId: z.string(),
102
111
  userId: z.string(),
112
+ user: LicenseKeyUser$outboundSchema,
103
113
  benefitId: z.string(),
104
114
  key: z.string(),
105
115
  displayKey: z.string(),