@polar-sh/sdk 0.35.0 → 0.35.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 (297) hide show
  1. package/bin/mcp-server.js +691 -475
  2. package/bin/mcp-server.js.map +20 -16
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/components/address.d.ts +669 -669
  8. package/dist/commonjs/models/components/address.js +221 -221
  9. package/dist/commonjs/models/components/addressinput.d.ts +653 -653
  10. package/dist/commonjs/models/components/addressinput.js +217 -217
  11. package/dist/commonjs/models/components/checkout.d.ts +31 -5
  12. package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/checkout.js +23 -2
  14. package/dist/commonjs/models/components/checkout.js.map +1 -1
  15. package/dist/commonjs/models/components/checkoutcreate.d.ts +11 -0
  16. package/dist/commonjs/models/components/checkoutcreate.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/checkoutcreate.js +9 -0
  18. package/dist/commonjs/models/components/checkoutcreate.js.map +1 -1
  19. package/dist/commonjs/models/components/checkoutlink.d.ts +14 -3
  20. package/dist/commonjs/models/components/checkoutlink.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/checkoutlink.js +11 -2
  22. package/dist/commonjs/models/components/checkoutlink.js.map +1 -1
  23. package/dist/commonjs/models/components/checkoutlinkcreateproduct.d.ts +11 -0
  24. package/dist/commonjs/models/components/checkoutlinkcreateproduct.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/checkoutlinkcreateproduct.js +9 -0
  26. package/dist/commonjs/models/components/checkoutlinkcreateproduct.js.map +1 -1
  27. package/dist/commonjs/models/components/checkoutlinkcreateproductprice.d.ts +11 -0
  28. package/dist/commonjs/models/components/checkoutlinkcreateproductprice.d.ts.map +1 -1
  29. package/dist/commonjs/models/components/checkoutlinkcreateproductprice.js +9 -0
  30. package/dist/commonjs/models/components/checkoutlinkcreateproductprice.js.map +1 -1
  31. package/dist/commonjs/models/components/checkoutlinkcreateproducts.d.ts +11 -0
  32. package/dist/commonjs/models/components/checkoutlinkcreateproducts.d.ts.map +1 -1
  33. package/dist/commonjs/models/components/checkoutlinkcreateproducts.js +9 -0
  34. package/dist/commonjs/models/components/checkoutlinkcreateproducts.js.map +1 -1
  35. package/dist/commonjs/models/components/checkoutlinkproduct.d.ts +14 -3
  36. package/dist/commonjs/models/components/checkoutlinkproduct.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/checkoutlinkproduct.js +11 -2
  38. package/dist/commonjs/models/components/checkoutlinkproduct.js.map +1 -1
  39. package/dist/commonjs/models/components/checkoutlinkupdate.d.ts +11 -0
  40. package/dist/commonjs/models/components/checkoutlinkupdate.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/checkoutlinkupdate.js +9 -0
  42. package/dist/commonjs/models/components/checkoutlinkupdate.js.map +1 -1
  43. package/dist/commonjs/models/components/checkoutproduct.d.ts +14 -3
  44. package/dist/commonjs/models/components/checkoutproduct.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/checkoutproduct.js +11 -2
  46. package/dist/commonjs/models/components/checkoutproduct.js.map +1 -1
  47. package/dist/commonjs/models/components/checkoutpublic.d.ts +21 -5
  48. package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
  49. package/dist/commonjs/models/components/checkoutpublic.js +15 -2
  50. package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
  51. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +21 -5
  52. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/checkoutpublicconfirmed.js +15 -2
  54. package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
  55. package/dist/commonjs/models/components/checkoutupdate.d.ts +11 -0
  56. package/dist/commonjs/models/components/checkoutupdate.d.ts.map +1 -1
  57. package/dist/commonjs/models/components/checkoutupdate.js +9 -0
  58. package/dist/commonjs/models/components/checkoutupdate.js.map +1 -1
  59. package/dist/commonjs/models/components/customerorderproduct.d.ts +14 -3
  60. package/dist/commonjs/models/components/customerorderproduct.d.ts.map +1 -1
  61. package/dist/commonjs/models/components/customerorderproduct.js +11 -2
  62. package/dist/commonjs/models/components/customerorderproduct.js.map +1 -1
  63. package/dist/commonjs/models/components/customerordersubscription.d.ts +10 -0
  64. package/dist/commonjs/models/components/customerordersubscription.d.ts.map +1 -1
  65. package/dist/commonjs/models/components/customerordersubscription.js +8 -0
  66. package/dist/commonjs/models/components/customerordersubscription.js.map +1 -1
  67. package/dist/commonjs/models/components/customerproduct.d.ts +14 -3
  68. package/dist/commonjs/models/components/customerproduct.d.ts.map +1 -1
  69. package/dist/commonjs/models/components/customerproduct.js +11 -2
  70. package/dist/commonjs/models/components/customerproduct.js.map +1 -1
  71. package/dist/commonjs/models/components/customerstatesubscription.d.ts +38 -2
  72. package/dist/commonjs/models/components/customerstatesubscription.d.ts.map +1 -1
  73. package/dist/commonjs/models/components/customerstatesubscription.js +30 -3
  74. package/dist/commonjs/models/components/customerstatesubscription.js.map +1 -1
  75. package/dist/commonjs/models/components/customersubscription.d.ts +10 -0
  76. package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
  77. package/dist/commonjs/models/components/customersubscription.js +8 -0
  78. package/dist/commonjs/models/components/customersubscription.js.map +1 -1
  79. package/dist/commonjs/models/components/customersubscriptionproduct.d.ts +14 -3
  80. package/dist/commonjs/models/components/customersubscriptionproduct.d.ts.map +1 -1
  81. package/dist/commonjs/models/components/customersubscriptionproduct.js +11 -2
  82. package/dist/commonjs/models/components/customersubscriptionproduct.js.map +1 -1
  83. package/dist/commonjs/models/components/discountproduct.d.ts +14 -3
  84. package/dist/commonjs/models/components/discountproduct.d.ts.map +1 -1
  85. package/dist/commonjs/models/components/discountproduct.js +11 -2
  86. package/dist/commonjs/models/components/discountproduct.js.map +1 -1
  87. package/dist/commonjs/models/components/orderproduct.d.ts +14 -3
  88. package/dist/commonjs/models/components/orderproduct.d.ts.map +1 -1
  89. package/dist/commonjs/models/components/orderproduct.js +11 -2
  90. package/dist/commonjs/models/components/orderproduct.js.map +1 -1
  91. package/dist/commonjs/models/components/ordersubscription.d.ts +10 -0
  92. package/dist/commonjs/models/components/ordersubscription.d.ts.map +1 -1
  93. package/dist/commonjs/models/components/ordersubscription.js +8 -0
  94. package/dist/commonjs/models/components/ordersubscription.js.map +1 -1
  95. package/dist/commonjs/models/components/product.d.ts +14 -3
  96. package/dist/commonjs/models/components/product.d.ts.map +1 -1
  97. package/dist/commonjs/models/components/product.js +11 -2
  98. package/dist/commonjs/models/components/product.js.map +1 -1
  99. package/dist/commonjs/models/components/productcreate.d.ts +4 -111
  100. package/dist/commonjs/models/components/productcreate.d.ts.map +1 -1
  101. package/dist/commonjs/models/components/productcreate.js +9 -106
  102. package/dist/commonjs/models/components/productcreate.js.map +1 -1
  103. package/dist/commonjs/models/components/productcreateonetime.d.ts +130 -0
  104. package/dist/commonjs/models/components/productcreateonetime.d.ts.map +1 -0
  105. package/dist/commonjs/models/components/productcreateonetime.js +169 -0
  106. package/dist/commonjs/models/components/productcreateonetime.js.map +1 -0
  107. package/dist/commonjs/models/components/productcreaterecurring.d.ts +139 -0
  108. package/dist/commonjs/models/components/productcreaterecurring.d.ts.map +1 -0
  109. package/dist/commonjs/models/components/productcreaterecurring.js +179 -0
  110. package/dist/commonjs/models/components/productcreaterecurring.js.map +1 -0
  111. package/dist/commonjs/models/components/productupdate.d.ts +11 -0
  112. package/dist/commonjs/models/components/productupdate.d.ts.map +1 -1
  113. package/dist/commonjs/models/components/productupdate.js +9 -0
  114. package/dist/commonjs/models/components/productupdate.js.map +1 -1
  115. package/dist/commonjs/models/components/subscription.d.ts +10 -0
  116. package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
  117. package/dist/commonjs/models/components/subscription.js +8 -0
  118. package/dist/commonjs/models/components/subscription.js.map +1 -1
  119. package/dist/commonjs/models/components/subscriptionupdate.d.ts +3 -2
  120. package/dist/commonjs/models/components/subscriptionupdate.d.ts.map +1 -1
  121. package/dist/commonjs/models/components/subscriptionupdate.js +3 -0
  122. package/dist/commonjs/models/components/subscriptionupdate.js.map +1 -1
  123. package/dist/commonjs/models/components/subscriptionupdatetrial.d.ts +32 -0
  124. package/dist/commonjs/models/components/subscriptionupdatetrial.d.ts.map +1 -0
  125. package/dist/commonjs/models/components/subscriptionupdatetrial.js +78 -0
  126. package/dist/commonjs/models/components/subscriptionupdatetrial.js.map +1 -0
  127. package/dist/commonjs/models/components/trialinterval.d.ts +34 -0
  128. package/dist/commonjs/models/components/trialinterval.d.ts.map +1 -0
  129. package/dist/commonjs/models/components/trialinterval.js +62 -0
  130. package/dist/commonjs/models/components/trialinterval.js.map +1 -0
  131. package/dist/esm/lib/config.d.ts +2 -2
  132. package/dist/esm/lib/config.js +2 -2
  133. package/dist/esm/mcp-server/mcp-server.js +1 -1
  134. package/dist/esm/mcp-server/server.js +1 -1
  135. package/dist/esm/models/components/address.d.ts +669 -669
  136. package/dist/esm/models/components/address.js +221 -221
  137. package/dist/esm/models/components/addressinput.d.ts +653 -653
  138. package/dist/esm/models/components/addressinput.js +217 -217
  139. package/dist/esm/models/components/checkout.d.ts +31 -5
  140. package/dist/esm/models/components/checkout.d.ts.map +1 -1
  141. package/dist/esm/models/components/checkout.js +23 -2
  142. package/dist/esm/models/components/checkout.js.map +1 -1
  143. package/dist/esm/models/components/checkoutcreate.d.ts +11 -0
  144. package/dist/esm/models/components/checkoutcreate.d.ts.map +1 -1
  145. package/dist/esm/models/components/checkoutcreate.js +9 -0
  146. package/dist/esm/models/components/checkoutcreate.js.map +1 -1
  147. package/dist/esm/models/components/checkoutlink.d.ts +14 -3
  148. package/dist/esm/models/components/checkoutlink.d.ts.map +1 -1
  149. package/dist/esm/models/components/checkoutlink.js +11 -2
  150. package/dist/esm/models/components/checkoutlink.js.map +1 -1
  151. package/dist/esm/models/components/checkoutlinkcreateproduct.d.ts +11 -0
  152. package/dist/esm/models/components/checkoutlinkcreateproduct.d.ts.map +1 -1
  153. package/dist/esm/models/components/checkoutlinkcreateproduct.js +9 -0
  154. package/dist/esm/models/components/checkoutlinkcreateproduct.js.map +1 -1
  155. package/dist/esm/models/components/checkoutlinkcreateproductprice.d.ts +11 -0
  156. package/dist/esm/models/components/checkoutlinkcreateproductprice.d.ts.map +1 -1
  157. package/dist/esm/models/components/checkoutlinkcreateproductprice.js +9 -0
  158. package/dist/esm/models/components/checkoutlinkcreateproductprice.js.map +1 -1
  159. package/dist/esm/models/components/checkoutlinkcreateproducts.d.ts +11 -0
  160. package/dist/esm/models/components/checkoutlinkcreateproducts.d.ts.map +1 -1
  161. package/dist/esm/models/components/checkoutlinkcreateproducts.js +9 -0
  162. package/dist/esm/models/components/checkoutlinkcreateproducts.js.map +1 -1
  163. package/dist/esm/models/components/checkoutlinkproduct.d.ts +14 -3
  164. package/dist/esm/models/components/checkoutlinkproduct.d.ts.map +1 -1
  165. package/dist/esm/models/components/checkoutlinkproduct.js +11 -2
  166. package/dist/esm/models/components/checkoutlinkproduct.js.map +1 -1
  167. package/dist/esm/models/components/checkoutlinkupdate.d.ts +11 -0
  168. package/dist/esm/models/components/checkoutlinkupdate.d.ts.map +1 -1
  169. package/dist/esm/models/components/checkoutlinkupdate.js +9 -0
  170. package/dist/esm/models/components/checkoutlinkupdate.js.map +1 -1
  171. package/dist/esm/models/components/checkoutproduct.d.ts +14 -3
  172. package/dist/esm/models/components/checkoutproduct.d.ts.map +1 -1
  173. package/dist/esm/models/components/checkoutproduct.js +11 -2
  174. package/dist/esm/models/components/checkoutproduct.js.map +1 -1
  175. package/dist/esm/models/components/checkoutpublic.d.ts +21 -5
  176. package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
  177. package/dist/esm/models/components/checkoutpublic.js +15 -2
  178. package/dist/esm/models/components/checkoutpublic.js.map +1 -1
  179. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +21 -5
  180. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  181. package/dist/esm/models/components/checkoutpublicconfirmed.js +15 -2
  182. package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
  183. package/dist/esm/models/components/checkoutupdate.d.ts +11 -0
  184. package/dist/esm/models/components/checkoutupdate.d.ts.map +1 -1
  185. package/dist/esm/models/components/checkoutupdate.js +9 -0
  186. package/dist/esm/models/components/checkoutupdate.js.map +1 -1
  187. package/dist/esm/models/components/customerorderproduct.d.ts +14 -3
  188. package/dist/esm/models/components/customerorderproduct.d.ts.map +1 -1
  189. package/dist/esm/models/components/customerorderproduct.js +11 -2
  190. package/dist/esm/models/components/customerorderproduct.js.map +1 -1
  191. package/dist/esm/models/components/customerordersubscription.d.ts +10 -0
  192. package/dist/esm/models/components/customerordersubscription.d.ts.map +1 -1
  193. package/dist/esm/models/components/customerordersubscription.js +8 -0
  194. package/dist/esm/models/components/customerordersubscription.js.map +1 -1
  195. package/dist/esm/models/components/customerproduct.d.ts +14 -3
  196. package/dist/esm/models/components/customerproduct.d.ts.map +1 -1
  197. package/dist/esm/models/components/customerproduct.js +11 -2
  198. package/dist/esm/models/components/customerproduct.js.map +1 -1
  199. package/dist/esm/models/components/customerstatesubscription.d.ts +38 -2
  200. package/dist/esm/models/components/customerstatesubscription.d.ts.map +1 -1
  201. package/dist/esm/models/components/customerstatesubscription.js +29 -2
  202. package/dist/esm/models/components/customerstatesubscription.js.map +1 -1
  203. package/dist/esm/models/components/customersubscription.d.ts +10 -0
  204. package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
  205. package/dist/esm/models/components/customersubscription.js +8 -0
  206. package/dist/esm/models/components/customersubscription.js.map +1 -1
  207. package/dist/esm/models/components/customersubscriptionproduct.d.ts +14 -3
  208. package/dist/esm/models/components/customersubscriptionproduct.d.ts.map +1 -1
  209. package/dist/esm/models/components/customersubscriptionproduct.js +11 -2
  210. package/dist/esm/models/components/customersubscriptionproduct.js.map +1 -1
  211. package/dist/esm/models/components/discountproduct.d.ts +14 -3
  212. package/dist/esm/models/components/discountproduct.d.ts.map +1 -1
  213. package/dist/esm/models/components/discountproduct.js +11 -2
  214. package/dist/esm/models/components/discountproduct.js.map +1 -1
  215. package/dist/esm/models/components/orderproduct.d.ts +14 -3
  216. package/dist/esm/models/components/orderproduct.d.ts.map +1 -1
  217. package/dist/esm/models/components/orderproduct.js +11 -2
  218. package/dist/esm/models/components/orderproduct.js.map +1 -1
  219. package/dist/esm/models/components/ordersubscription.d.ts +10 -0
  220. package/dist/esm/models/components/ordersubscription.d.ts.map +1 -1
  221. package/dist/esm/models/components/ordersubscription.js +8 -0
  222. package/dist/esm/models/components/ordersubscription.js.map +1 -1
  223. package/dist/esm/models/components/product.d.ts +14 -3
  224. package/dist/esm/models/components/product.d.ts.map +1 -1
  225. package/dist/esm/models/components/product.js +11 -2
  226. package/dist/esm/models/components/product.js.map +1 -1
  227. package/dist/esm/models/components/productcreate.d.ts +4 -111
  228. package/dist/esm/models/components/productcreate.d.ts.map +1 -1
  229. package/dist/esm/models/components/productcreate.js +8 -101
  230. package/dist/esm/models/components/productcreate.js.map +1 -1
  231. package/dist/esm/models/components/productcreateonetime.d.ts +130 -0
  232. package/dist/esm/models/components/productcreateonetime.d.ts.map +1 -0
  233. package/dist/esm/models/components/productcreateonetime.js +127 -0
  234. package/dist/esm/models/components/productcreateonetime.js.map +1 -0
  235. package/dist/esm/models/components/productcreaterecurring.d.ts +139 -0
  236. package/dist/esm/models/components/productcreaterecurring.d.ts.map +1 -0
  237. package/dist/esm/models/components/productcreaterecurring.js +137 -0
  238. package/dist/esm/models/components/productcreaterecurring.js.map +1 -0
  239. package/dist/esm/models/components/productupdate.d.ts +11 -0
  240. package/dist/esm/models/components/productupdate.d.ts.map +1 -1
  241. package/dist/esm/models/components/productupdate.js +9 -0
  242. package/dist/esm/models/components/productupdate.js.map +1 -1
  243. package/dist/esm/models/components/subscription.d.ts +10 -0
  244. package/dist/esm/models/components/subscription.d.ts.map +1 -1
  245. package/dist/esm/models/components/subscription.js +8 -0
  246. package/dist/esm/models/components/subscription.js.map +1 -1
  247. package/dist/esm/models/components/subscriptionupdate.d.ts +3 -2
  248. package/dist/esm/models/components/subscriptionupdate.d.ts.map +1 -1
  249. package/dist/esm/models/components/subscriptionupdate.js +3 -0
  250. package/dist/esm/models/components/subscriptionupdate.js.map +1 -1
  251. package/dist/esm/models/components/subscriptionupdatetrial.d.ts +32 -0
  252. package/dist/esm/models/components/subscriptionupdatetrial.d.ts.map +1 -0
  253. package/dist/esm/models/components/subscriptionupdatetrial.js +40 -0
  254. package/dist/esm/models/components/subscriptionupdatetrial.js.map +1 -0
  255. package/dist/esm/models/components/trialinterval.d.ts +34 -0
  256. package/dist/esm/models/components/trialinterval.d.ts.map +1 -0
  257. package/dist/esm/models/components/trialinterval.js +26 -0
  258. package/dist/esm/models/components/trialinterval.js.map +1 -0
  259. package/docs/sdks/products/README.md +2 -2
  260. package/examples/package-lock.json +1 -1
  261. package/jsr.json +1 -1
  262. package/package.json +1 -1
  263. package/src/lib/config.ts +2 -2
  264. package/src/mcp-server/mcp-server.ts +1 -1
  265. package/src/mcp-server/server.ts +1 -1
  266. package/src/models/components/address.ts +221 -221
  267. package/src/models/components/addressinput.ts +217 -217
  268. package/src/models/components/checkout.ts +59 -7
  269. package/src/models/components/checkoutcreate.ts +23 -0
  270. package/src/models/components/checkoutlink.ts +28 -5
  271. package/src/models/components/checkoutlinkcreateproduct.ts +23 -0
  272. package/src/models/components/checkoutlinkcreateproductprice.ts +23 -0
  273. package/src/models/components/checkoutlinkcreateproducts.ts +23 -0
  274. package/src/models/components/checkoutlinkproduct.ts +28 -5
  275. package/src/models/components/checkoutlinkupdate.ts +23 -0
  276. package/src/models/components/checkoutproduct.ts +28 -5
  277. package/src/models/components/checkoutpublic.ts +41 -7
  278. package/src/models/components/checkoutpublicconfirmed.ts +41 -7
  279. package/src/models/components/checkoutupdate.ts +23 -0
  280. package/src/models/components/customerorderproduct.ts +28 -5
  281. package/src/models/components/customerordersubscription.ts +22 -0
  282. package/src/models/components/customerproduct.ts +28 -5
  283. package/src/models/components/customerstatesubscription.ts +56 -4
  284. package/src/models/components/customersubscription.ts +22 -0
  285. package/src/models/components/customersubscriptionproduct.ts +28 -5
  286. package/src/models/components/discountproduct.ts +28 -5
  287. package/src/models/components/orderproduct.ts +28 -5
  288. package/src/models/components/ordersubscription.ts +22 -0
  289. package/src/models/components/product.ts +28 -5
  290. package/src/models/components/productcreate.ts +22 -275
  291. package/src/models/components/productcreateonetime.ts +329 -0
  292. package/src/models/components/productcreaterecurring.ts +356 -0
  293. package/src/models/components/productupdate.ts +23 -0
  294. package/src/models/components/subscription.ts +22 -0
  295. package/src/models/components/subscriptionupdate.ts +10 -0
  296. package/src/models/components/subscriptionupdatetrial.ts +78 -0
  297. package/src/models/components/trialinterval.ts +35 -0
@@ -83,6 +83,11 @@ import {
83
83
  ProductPrice$Outbound,
84
84
  ProductPrice$outboundSchema,
85
85
  } from "./productprice.js";
86
+ import {
87
+ TrialInterval,
88
+ TrialInterval$inboundSchema,
89
+ TrialInterval$outboundSchema,
90
+ } from "./trialinterval.js";
86
91
 
87
92
  export type CheckoutPublicCustomFieldData = string | number | boolean | Date;
88
93
 
@@ -103,6 +108,10 @@ export type CheckoutPublicDiscount =
103
108
  * Checkout session data retrieved using the client secret.
104
109
  */
105
110
  export type CheckoutPublic = {
111
+ /**
112
+ * The ID of the object.
113
+ */
114
+ id: string;
106
115
  /**
107
116
  * Creation timestamp of the object.
108
117
  */
@@ -111,10 +120,6 @@ export type CheckoutPublic = {
111
120
  * Last modification timestamp of the object.
112
121
  */
113
122
  modifiedAt: Date | null;
114
- /**
115
- * The ID of the object.
116
- */
117
- id: string;
118
123
  /**
119
124
  * Key-value object storing custom field values.
120
125
  */
@@ -167,6 +172,18 @@ export type CheckoutPublic = {
167
172
  * Currency code of the checkout session.
168
173
  */
169
174
  currency: string;
175
+ /**
176
+ * Interval unit of the trial period, if any. This value is either set from the checkout, if `trial_interval` is set, or from the selected product.
177
+ */
178
+ activeTrialInterval: TrialInterval | null;
179
+ /**
180
+ * Number of interval units of the trial period, if any. This value is either set from the checkout, if `trial_interval_count` is set, or from the selected product.
181
+ */
182
+ activeTrialIntervalCount: number | null;
183
+ /**
184
+ * End date and time of the trial period, if any.
185
+ */
186
+ trialEnd: Date | null;
170
187
  /**
171
188
  * ID of the product to checkout.
172
189
  */
@@ -436,11 +453,11 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
436
453
  z.ZodTypeDef,
437
454
  unknown
438
455
  > = z.object({
456
+ id: z.string(),
439
457
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
440
458
  modified_at: z.nullable(
441
459
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
442
460
  ),
443
- id: z.string(),
444
461
  custom_field_data: z.record(
445
462
  z.nullable(
446
463
  z.union([
@@ -464,6 +481,11 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
464
481
  tax_amount: z.nullable(z.number().int()),
465
482
  total_amount: z.number().int(),
466
483
  currency: z.string(),
484
+ active_trial_interval: z.nullable(TrialInterval$inboundSchema),
485
+ active_trial_interval_count: z.nullable(z.number().int()),
486
+ trial_end: z.nullable(
487
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
488
+ ),
467
489
  product_id: z.string(),
468
490
  product_price_id: z.string(),
469
491
  discount_id: z.nullable(z.string()),
@@ -514,6 +536,9 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
514
536
  "net_amount": "netAmount",
515
537
  "tax_amount": "taxAmount",
516
538
  "total_amount": "totalAmount",
539
+ "active_trial_interval": "activeTrialInterval",
540
+ "active_trial_interval_count": "activeTrialIntervalCount",
541
+ "trial_end": "trialEnd",
517
542
  "product_id": "productId",
518
543
  "product_price_id": "productPriceId",
519
544
  "discount_id": "discountId",
@@ -541,9 +566,9 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
541
566
 
542
567
  /** @internal */
543
568
  export type CheckoutPublic$Outbound = {
569
+ id: string;
544
570
  created_at: string;
545
571
  modified_at: string | null;
546
- id: string;
547
572
  custom_field_data?:
548
573
  | { [k: string]: string | number | boolean | string | null }
549
574
  | undefined;
@@ -560,6 +585,9 @@ export type CheckoutPublic$Outbound = {
560
585
  tax_amount: number | null;
561
586
  total_amount: number;
562
587
  currency: string;
588
+ active_trial_interval: string | null;
589
+ active_trial_interval_count: number | null;
590
+ trial_end: string | null;
563
591
  product_id: string;
564
592
  product_price_id: string;
565
593
  discount_id: string | null;
@@ -599,9 +627,9 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
599
627
  z.ZodTypeDef,
600
628
  CheckoutPublic
601
629
  > = z.object({
630
+ id: z.string(),
602
631
  createdAt: z.date().transform(v => v.toISOString()),
603
632
  modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
604
- id: z.string(),
605
633
  customFieldData: z.record(
606
634
  z.nullable(
607
635
  z.union([
@@ -625,6 +653,9 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
625
653
  taxAmount: z.nullable(z.number().int()),
626
654
  totalAmount: z.number().int(),
627
655
  currency: z.string(),
656
+ activeTrialInterval: z.nullable(TrialInterval$outboundSchema),
657
+ activeTrialIntervalCount: z.nullable(z.number().int()),
658
+ trialEnd: z.nullable(z.date().transform(v => v.toISOString())),
628
659
  productId: z.string(),
629
660
  productPriceId: z.string(),
630
661
  discountId: z.nullable(z.string()),
@@ -675,6 +706,9 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
675
706
  netAmount: "net_amount",
676
707
  taxAmount: "tax_amount",
677
708
  totalAmount: "total_amount",
709
+ activeTrialInterval: "active_trial_interval",
710
+ activeTrialIntervalCount: "active_trial_interval_count",
711
+ trialEnd: "trial_end",
678
712
  productId: "product_id",
679
713
  productPriceId: "product_price_id",
680
714
  discountId: "discount_id",
@@ -78,6 +78,11 @@ import {
78
78
  ProductPrice$Outbound,
79
79
  ProductPrice$outboundSchema,
80
80
  } from "./productprice.js";
81
+ import {
82
+ TrialInterval,
83
+ TrialInterval$inboundSchema,
84
+ TrialInterval$outboundSchema,
85
+ } from "./trialinterval.js";
81
86
 
82
87
  export type CheckoutPublicConfirmedCustomFieldData =
83
88
  | string
@@ -107,6 +112,10 @@ export type CheckoutPublicConfirmedDiscount =
107
112
  * right after the checkout.
108
113
  */
109
114
  export type CheckoutPublicConfirmed = {
115
+ /**
116
+ * The ID of the object.
117
+ */
118
+ id: string;
110
119
  /**
111
120
  * Creation timestamp of the object.
112
121
  */
@@ -115,10 +124,6 @@ export type CheckoutPublicConfirmed = {
115
124
  * Last modification timestamp of the object.
116
125
  */
117
126
  modifiedAt: Date | null;
118
- /**
119
- * The ID of the object.
120
- */
121
- id: string;
122
127
  /**
123
128
  * Key-value object storing custom field values.
124
129
  */
@@ -171,6 +176,18 @@ export type CheckoutPublicConfirmed = {
171
176
  * Currency code of the checkout session.
172
177
  */
173
178
  currency: string;
179
+ /**
180
+ * Interval unit of the trial period, if any. This value is either set from the checkout, if `trial_interval` is set, or from the selected product.
181
+ */
182
+ activeTrialInterval: TrialInterval | null;
183
+ /**
184
+ * Number of interval units of the trial period, if any. This value is either set from the checkout, if `trial_interval_count` is set, or from the selected product.
185
+ */
186
+ activeTrialIntervalCount: number | null;
187
+ /**
188
+ * End date and time of the trial period, if any.
189
+ */
190
+ trialEnd: Date | null;
174
191
  /**
175
192
  * ID of the product to checkout.
176
193
  */
@@ -452,11 +469,11 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
452
469
  z.ZodTypeDef,
453
470
  unknown
454
471
  > = z.object({
472
+ id: z.string(),
455
473
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
456
474
  modified_at: z.nullable(
457
475
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
458
476
  ),
459
- id: z.string(),
460
477
  custom_field_data: z.record(
461
478
  z.nullable(
462
479
  z.union([
@@ -480,6 +497,11 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
480
497
  tax_amount: z.nullable(z.number().int()),
481
498
  total_amount: z.number().int(),
482
499
  currency: z.string(),
500
+ active_trial_interval: z.nullable(TrialInterval$inboundSchema),
501
+ active_trial_interval_count: z.nullable(z.number().int()),
502
+ trial_end: z.nullable(
503
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
504
+ ),
483
505
  product_id: z.string(),
484
506
  product_price_id: z.string(),
485
507
  discount_id: z.nullable(z.string()),
@@ -531,6 +553,9 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
531
553
  "net_amount": "netAmount",
532
554
  "tax_amount": "taxAmount",
533
555
  "total_amount": "totalAmount",
556
+ "active_trial_interval": "activeTrialInterval",
557
+ "active_trial_interval_count": "activeTrialIntervalCount",
558
+ "trial_end": "trialEnd",
534
559
  "product_id": "productId",
535
560
  "product_price_id": "productPriceId",
536
561
  "discount_id": "discountId",
@@ -559,9 +584,9 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
559
584
 
560
585
  /** @internal */
561
586
  export type CheckoutPublicConfirmed$Outbound = {
587
+ id: string;
562
588
  created_at: string;
563
589
  modified_at: string | null;
564
- id: string;
565
590
  custom_field_data?:
566
591
  | { [k: string]: string | number | boolean | string | null }
567
592
  | undefined;
@@ -578,6 +603,9 @@ export type CheckoutPublicConfirmed$Outbound = {
578
603
  tax_amount: number | null;
579
604
  total_amount: number;
580
605
  currency: string;
606
+ active_trial_interval: string | null;
607
+ active_trial_interval_count: number | null;
608
+ trial_end: string | null;
581
609
  product_id: string;
582
610
  product_price_id: string;
583
611
  discount_id: string | null;
@@ -618,9 +646,9 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
618
646
  z.ZodTypeDef,
619
647
  CheckoutPublicConfirmed
620
648
  > = z.object({
649
+ id: z.string(),
621
650
  createdAt: z.date().transform(v => v.toISOString()),
622
651
  modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
623
- id: z.string(),
624
652
  customFieldData: z.record(
625
653
  z.nullable(
626
654
  z.union([
@@ -644,6 +672,9 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
644
672
  taxAmount: z.nullable(z.number().int()),
645
673
  totalAmount: z.number().int(),
646
674
  currency: z.string(),
675
+ activeTrialInterval: z.nullable(TrialInterval$outboundSchema),
676
+ activeTrialIntervalCount: z.nullable(z.number().int()),
677
+ trialEnd: z.nullable(z.date().transform(v => v.toISOString())),
647
678
  productId: z.string(),
648
679
  productPriceId: z.string(),
649
680
  discountId: z.nullable(z.string()),
@@ -695,6 +726,9 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
695
726
  netAmount: "net_amount",
696
727
  taxAmount: "tax_amount",
697
728
  totalAmount: "total_amount",
729
+ activeTrialInterval: "active_trial_interval",
730
+ activeTrialIntervalCount: "active_trial_interval_count",
731
+ trialEnd: "trial_end",
698
732
  productId: "product_id",
699
733
  productPriceId: "product_price_id",
700
734
  discountId: "discount_id",
@@ -13,6 +13,11 @@ import {
13
13
  AddressInput$Outbound,
14
14
  AddressInput$outboundSchema,
15
15
  } from "./addressinput.js";
16
+ import {
17
+ TrialInterval,
18
+ TrialInterval$inboundSchema,
19
+ TrialInterval$outboundSchema,
20
+ } from "./trialinterval.js";
16
21
 
17
22
  export type CheckoutUpdateCustomFieldData = string | number | boolean | Date;
18
23
 
@@ -47,6 +52,14 @@ export type CheckoutUpdate = {
47
52
  customerBillingName?: string | null | undefined;
48
53
  customerBillingAddress?: AddressInput | null | undefined;
49
54
  customerTaxId?: string | null | undefined;
55
+ /**
56
+ * The interval unit for the trial period.
57
+ */
58
+ trialInterval?: TrialInterval | null | undefined;
59
+ /**
60
+ * The number of interval units for the trial period.
61
+ */
62
+ trialIntervalCount?: number | null | undefined;
50
63
  /**
51
64
  * Key-value object allowing you to store additional information.
52
65
  *
@@ -300,6 +313,8 @@ export const CheckoutUpdate$inboundSchema: z.ZodType<
300
313
  customer_billing_name: z.nullable(z.string()).optional(),
301
314
  customer_billing_address: z.nullable(AddressInput$inboundSchema).optional(),
302
315
  customer_tax_id: z.nullable(z.string()).optional(),
316
+ trial_interval: z.nullable(TrialInterval$inboundSchema).optional(),
317
+ trial_interval_count: z.nullable(z.number().int()).optional(),
303
318
  metadata: z.record(
304
319
  z.union([z.string(), z.number().int(), z.number(), z.boolean()]),
305
320
  ).optional(),
@@ -323,6 +338,8 @@ export const CheckoutUpdate$inboundSchema: z.ZodType<
323
338
  "customer_billing_name": "customerBillingName",
324
339
  "customer_billing_address": "customerBillingAddress",
325
340
  "customer_tax_id": "customerTaxId",
341
+ "trial_interval": "trialInterval",
342
+ "trial_interval_count": "trialIntervalCount",
326
343
  "discount_id": "discountId",
327
344
  "allow_discount_codes": "allowDiscountCodes",
328
345
  "require_billing_address": "requireBillingAddress",
@@ -347,6 +364,8 @@ export type CheckoutUpdate$Outbound = {
347
364
  customer_billing_name?: string | null | undefined;
348
365
  customer_billing_address?: AddressInput$Outbound | null | undefined;
349
366
  customer_tax_id?: string | null | undefined;
367
+ trial_interval?: string | null | undefined;
368
+ trial_interval_count?: number | null | undefined;
350
369
  metadata?: { [k: string]: string | number | number | boolean } | undefined;
351
370
  discount_id?: string | null | undefined;
352
371
  allow_discount_codes?: boolean | null | undefined;
@@ -385,6 +404,8 @@ export const CheckoutUpdate$outboundSchema: z.ZodType<
385
404
  customerBillingName: z.nullable(z.string()).optional(),
386
405
  customerBillingAddress: z.nullable(AddressInput$outboundSchema).optional(),
387
406
  customerTaxId: z.nullable(z.string()).optional(),
407
+ trialInterval: z.nullable(TrialInterval$outboundSchema).optional(),
408
+ trialIntervalCount: z.nullable(z.number().int()).optional(),
388
409
  metadata: z.record(
389
410
  z.union([z.string(), z.number().int(), z.number(), z.boolean()]),
390
411
  ).optional(),
@@ -408,6 +429,8 @@ export const CheckoutUpdate$outboundSchema: z.ZodType<
408
429
  customerBillingName: "customer_billing_name",
409
430
  customerBillingAddress: "customer_billing_address",
410
431
  customerTaxId: "customer_tax_id",
432
+ trialInterval: "trial_interval",
433
+ trialIntervalCount: "trial_interval_count",
411
434
  discountId: "discount_id",
412
435
  allowDiscountCodes: "allow_discount_codes",
413
436
  requireBillingAddress: "require_billing_address",
@@ -42,12 +42,21 @@ import {
42
42
  SubscriptionRecurringInterval$inboundSchema,
43
43
  SubscriptionRecurringInterval$outboundSchema,
44
44
  } from "./subscriptionrecurringinterval.js";
45
+ import {
46
+ TrialInterval,
47
+ TrialInterval$inboundSchema,
48
+ TrialInterval$outboundSchema,
49
+ } from "./trialinterval.js";
45
50
 
46
51
  export type CustomerOrderProductPrices =
47
52
  | LegacyRecurringProductPrice
48
53
  | ProductPrice;
49
54
 
50
55
  export type CustomerOrderProduct = {
56
+ /**
57
+ * The ID of the object.
58
+ */
59
+ id: string;
51
60
  /**
52
61
  * Creation timestamp of the object.
53
62
  */
@@ -57,9 +66,13 @@ export type CustomerOrderProduct = {
57
66
  */
58
67
  modifiedAt: Date | null;
59
68
  /**
60
- * The ID of the product.
69
+ * The interval unit for the trial period.
61
70
  */
62
- id: string;
71
+ trialInterval: TrialInterval | null;
72
+ /**
73
+ * The number of interval units for the trial period.
74
+ */
75
+ trialIntervalCount: number | null;
63
76
  /**
64
77
  * The name of the product.
65
78
  */
@@ -161,11 +174,13 @@ export const CustomerOrderProduct$inboundSchema: z.ZodType<
161
174
  z.ZodTypeDef,
162
175
  unknown
163
176
  > = z.object({
177
+ id: z.string(),
164
178
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
165
179
  modified_at: z.nullable(
166
180
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
167
181
  ),
168
- id: z.string(),
182
+ trial_interval: z.nullable(TrialInterval$inboundSchema),
183
+ trial_interval_count: z.nullable(z.number().int()),
169
184
  name: z.string(),
170
185
  description: z.nullable(z.string()),
171
186
  recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema),
@@ -185,6 +200,8 @@ export const CustomerOrderProduct$inboundSchema: z.ZodType<
185
200
  return remap$(v, {
186
201
  "created_at": "createdAt",
187
202
  "modified_at": "modifiedAt",
203
+ "trial_interval": "trialInterval",
204
+ "trial_interval_count": "trialIntervalCount",
188
205
  "recurring_interval": "recurringInterval",
189
206
  "is_recurring": "isRecurring",
190
207
  "is_archived": "isArchived",
@@ -194,9 +211,11 @@ export const CustomerOrderProduct$inboundSchema: z.ZodType<
194
211
 
195
212
  /** @internal */
196
213
  export type CustomerOrderProduct$Outbound = {
214
+ id: string;
197
215
  created_at: string;
198
216
  modified_at: string | null;
199
- id: string;
217
+ trial_interval: string | null;
218
+ trial_interval_count: number | null;
200
219
  name: string;
201
220
  description: string | null;
202
221
  recurring_interval: string | null;
@@ -215,9 +234,11 @@ export const CustomerOrderProduct$outboundSchema: z.ZodType<
215
234
  z.ZodTypeDef,
216
235
  CustomerOrderProduct
217
236
  > = z.object({
237
+ id: z.string(),
218
238
  createdAt: z.date().transform(v => v.toISOString()),
219
239
  modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
220
- id: z.string(),
240
+ trialInterval: z.nullable(TrialInterval$outboundSchema),
241
+ trialIntervalCount: z.nullable(z.number().int()),
221
242
  name: z.string(),
222
243
  description: z.nullable(z.string()),
223
244
  recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema),
@@ -237,6 +258,8 @@ export const CustomerOrderProduct$outboundSchema: z.ZodType<
237
258
  return remap$(v, {
238
259
  createdAt: "created_at",
239
260
  modifiedAt: "modified_at",
261
+ trialInterval: "trial_interval",
262
+ trialIntervalCount: "trial_interval_count",
240
263
  recurringInterval: "recurring_interval",
241
264
  isRecurring: "is_recurring",
242
265
  isArchived: "is_archived",
@@ -54,6 +54,14 @@ export type CustomerOrderSubscription = {
54
54
  * The end timestamp of the current billing period.
55
55
  */
56
56
  currentPeriodEnd: Date | null;
57
+ /**
58
+ * The start timestamp of the trial period, if any.
59
+ */
60
+ trialStart: Date | null;
61
+ /**
62
+ * The end timestamp of the trial period, if any.
63
+ */
64
+ trialEnd: Date | null;
57
65
  /**
58
66
  * Whether the subscription will be canceled at the end of the current period.
59
67
  */
@@ -112,6 +120,12 @@ export const CustomerOrderSubscription$inboundSchema: z.ZodType<
112
120
  current_period_end: z.nullable(
113
121
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
114
122
  ),
123
+ trial_start: z.nullable(
124
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
125
+ ),
126
+ trial_end: z.nullable(
127
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
128
+ ),
115
129
  cancel_at_period_end: z.boolean(),
116
130
  canceled_at: z.nullable(
117
131
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
@@ -140,6 +154,8 @@ export const CustomerOrderSubscription$inboundSchema: z.ZodType<
140
154
  "recurring_interval": "recurringInterval",
141
155
  "current_period_start": "currentPeriodStart",
142
156
  "current_period_end": "currentPeriodEnd",
157
+ "trial_start": "trialStart",
158
+ "trial_end": "trialEnd",
143
159
  "cancel_at_period_end": "cancelAtPeriodEnd",
144
160
  "canceled_at": "canceledAt",
145
161
  "started_at": "startedAt",
@@ -165,6 +181,8 @@ export type CustomerOrderSubscription$Outbound = {
165
181
  status: string;
166
182
  current_period_start: string;
167
183
  current_period_end: string | null;
184
+ trial_start: string | null;
185
+ trial_end: string | null;
168
186
  cancel_at_period_end: boolean;
169
187
  canceled_at: string | null;
170
188
  started_at: string | null;
@@ -193,6 +211,8 @@ export const CustomerOrderSubscription$outboundSchema: z.ZodType<
193
211
  status: SubscriptionStatus$outboundSchema,
194
212
  currentPeriodStart: z.date().transform(v => v.toISOString()),
195
213
  currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
214
+ trialStart: z.nullable(z.date().transform(v => v.toISOString())),
215
+ trialEnd: z.nullable(z.date().transform(v => v.toISOString())),
196
216
  cancelAtPeriodEnd: z.boolean(),
197
217
  canceledAt: z.nullable(z.date().transform(v => v.toISOString())),
198
218
  startedAt: z.nullable(z.date().transform(v => v.toISOString())),
@@ -213,6 +233,8 @@ export const CustomerOrderSubscription$outboundSchema: z.ZodType<
213
233
  recurringInterval: "recurring_interval",
214
234
  currentPeriodStart: "current_period_start",
215
235
  currentPeriodEnd: "current_period_end",
236
+ trialStart: "trial_start",
237
+ trialEnd: "trial_end",
216
238
  cancelAtPeriodEnd: "cancel_at_period_end",
217
239
  canceledAt: "canceled_at",
218
240
  startedAt: "started_at",
@@ -36,6 +36,11 @@ import {
36
36
  SubscriptionRecurringInterval$inboundSchema,
37
37
  SubscriptionRecurringInterval$outboundSchema,
38
38
  } from "./subscriptionrecurringinterval.js";
39
+ import {
40
+ TrialInterval,
41
+ TrialInterval$inboundSchema,
42
+ TrialInterval$outboundSchema,
43
+ } from "./trialinterval.js";
39
44
 
40
45
  export type CustomerProductPrices = LegacyRecurringProductPrice | ProductPrice;
41
46
 
@@ -43,6 +48,10 @@ export type CustomerProductPrices = LegacyRecurringProductPrice | ProductPrice;
43
48
  * Schema of a product for customer portal.
44
49
  */
45
50
  export type CustomerProduct = {
51
+ /**
52
+ * The ID of the object.
53
+ */
54
+ id: string;
46
55
  /**
47
56
  * Creation timestamp of the object.
48
57
  */
@@ -52,9 +61,13 @@ export type CustomerProduct = {
52
61
  */
53
62
  modifiedAt: Date | null;
54
63
  /**
55
- * The ID of the product.
64
+ * The interval unit for the trial period.
56
65
  */
57
- id: string;
66
+ trialInterval: TrialInterval | null;
67
+ /**
68
+ * The number of interval units for the trial period.
69
+ */
70
+ trialIntervalCount: number | null;
58
71
  /**
59
72
  * The name of the product.
60
73
  */
@@ -155,11 +168,13 @@ export const CustomerProduct$inboundSchema: z.ZodType<
155
168
  z.ZodTypeDef,
156
169
  unknown
157
170
  > = z.object({
171
+ id: z.string(),
158
172
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
159
173
  modified_at: z.nullable(
160
174
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
161
175
  ),
162
- id: z.string(),
176
+ trial_interval: z.nullable(TrialInterval$inboundSchema),
177
+ trial_interval_count: z.nullable(z.number().int()),
163
178
  name: z.string(),
164
179
  description: z.nullable(z.string()),
165
180
  recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema),
@@ -178,6 +193,8 @@ export const CustomerProduct$inboundSchema: z.ZodType<
178
193
  return remap$(v, {
179
194
  "created_at": "createdAt",
180
195
  "modified_at": "modifiedAt",
196
+ "trial_interval": "trialInterval",
197
+ "trial_interval_count": "trialIntervalCount",
181
198
  "recurring_interval": "recurringInterval",
182
199
  "is_recurring": "isRecurring",
183
200
  "is_archived": "isArchived",
@@ -187,9 +204,11 @@ export const CustomerProduct$inboundSchema: z.ZodType<
187
204
 
188
205
  /** @internal */
189
206
  export type CustomerProduct$Outbound = {
207
+ id: string;
190
208
  created_at: string;
191
209
  modified_at: string | null;
192
- id: string;
210
+ trial_interval: string | null;
211
+ trial_interval_count: number | null;
193
212
  name: string;
194
213
  description: string | null;
195
214
  recurring_interval: string | null;
@@ -207,9 +226,11 @@ export const CustomerProduct$outboundSchema: z.ZodType<
207
226
  z.ZodTypeDef,
208
227
  CustomerProduct
209
228
  > = z.object({
229
+ id: z.string(),
210
230
  createdAt: z.date().transform(v => v.toISOString()),
211
231
  modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
212
- id: z.string(),
232
+ trialInterval: z.nullable(TrialInterval$outboundSchema),
233
+ trialIntervalCount: z.nullable(z.number().int()),
213
234
  name: z.string(),
214
235
  description: z.nullable(z.string()),
215
236
  recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema),
@@ -228,6 +249,8 @@ export const CustomerProduct$outboundSchema: z.ZodType<
228
249
  return remap$(v, {
229
250
  createdAt: "created_at",
230
251
  modifiedAt: "modified_at",
252
+ trialInterval: "trial_interval",
253
+ trialIntervalCount: "trial_interval_count",
231
254
  recurringInterval: "recurring_interval",
232
255
  isRecurring: "is_recurring",
233
256
  isArchived: "is_archived",