@polar-sh/sdk 0.35.2 → 0.35.4

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 (342) hide show
  1. package/README.md +25 -23
  2. package/bin/mcp-server.js +1078 -811
  3. package/bin/mcp-server.js.map +20 -14
  4. package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.d.ts +2 -2
  5. package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.d.ts.map +1 -1
  6. package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.js +2 -2
  7. package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.js.map +1 -1
  8. package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts +23 -0
  9. package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.js +126 -0
  11. package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.js.map +1 -0
  12. package/dist/commonjs/funcs/customersGetBalance.d.ts +22 -0
  13. package/dist/commonjs/funcs/customersGetBalance.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/customersGetBalance.js +127 -0
  15. package/dist/commonjs/funcs/customersGetBalance.js.map +1 -0
  16. package/dist/commonjs/funcs/metersQuantities.js +1 -0
  17. package/dist/commonjs/funcs/metersQuantities.js.map +1 -1
  18. package/dist/commonjs/lib/config.d.ts +3 -3
  19. package/dist/commonjs/lib/config.js +3 -3
  20. package/dist/commonjs/lib/config.js.map +1 -1
  21. package/dist/commonjs/lib/url.js +1 -1
  22. package/dist/commonjs/lib/url.js.map +1 -1
  23. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  24. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  25. package/dist/commonjs/mcp-server/server.js +3 -1
  26. package/dist/commonjs/mcp-server/server.js.map +1 -1
  27. package/dist/commonjs/mcp-server/tools/customersGetBalance.d.ts +7 -0
  28. package/dist/commonjs/mcp-server/tools/customersGetBalance.d.ts.map +1 -0
  29. package/dist/commonjs/mcp-server/tools/customersGetBalance.js +34 -0
  30. package/dist/commonjs/mcp-server/tools/customersGetBalance.js.map +1 -0
  31. package/dist/commonjs/models/components/address.d.ts +669 -669
  32. package/dist/commonjs/models/components/address.js +223 -223
  33. package/dist/commonjs/models/components/addressinput.d.ts +652 -652
  34. package/dist/commonjs/models/components/addressinput.js +218 -218
  35. package/dist/commonjs/models/components/aggregationfunction.d.ts +40 -0
  36. package/dist/commonjs/models/components/aggregationfunction.d.ts.map +1 -0
  37. package/dist/commonjs/models/components/aggregationfunction.js +64 -0
  38. package/dist/commonjs/models/components/aggregationfunction.js.map +1 -0
  39. package/dist/commonjs/models/components/checkout.d.ts +5 -0
  40. package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/checkout.js +2 -0
  42. package/dist/commonjs/models/components/checkout.js.map +1 -1
  43. package/dist/commonjs/models/components/checkoutconfirmstripe.d.ts +5 -0
  44. package/dist/commonjs/models/components/checkoutconfirmstripe.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/checkoutconfirmstripe.js +2 -0
  46. package/dist/commonjs/models/components/checkoutconfirmstripe.js.map +1 -1
  47. package/dist/commonjs/models/components/checkoutcreate.d.ts +5 -0
  48. package/dist/commonjs/models/components/checkoutcreate.d.ts.map +1 -1
  49. package/dist/commonjs/models/components/checkoutcreate.js +2 -0
  50. package/dist/commonjs/models/components/checkoutcreate.js.map +1 -1
  51. package/dist/commonjs/models/components/checkoutpublic.d.ts +5 -0
  52. package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/checkoutpublic.js +2 -0
  54. package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
  55. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +5 -0
  56. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  57. package/dist/commonjs/models/components/checkoutpublicconfirmed.js +2 -0
  58. package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
  59. package/dist/commonjs/models/components/checkoutupdate.d.ts +5 -0
  60. package/dist/commonjs/models/components/checkoutupdate.d.ts.map +1 -1
  61. package/dist/commonjs/models/components/checkoutupdate.js +2 -0
  62. package/dist/commonjs/models/components/checkoutupdate.js.map +1 -1
  63. package/dist/commonjs/models/components/checkoutupdatepublic.d.ts +5 -0
  64. package/dist/commonjs/models/components/checkoutupdatepublic.d.ts.map +1 -1
  65. package/dist/commonjs/models/components/checkoutupdatepublic.js +2 -0
  66. package/dist/commonjs/models/components/checkoutupdatepublic.js.map +1 -1
  67. package/dist/commonjs/models/components/customerbalance.d.ts +40 -0
  68. package/dist/commonjs/models/components/customerbalance.d.ts.map +1 -0
  69. package/dist/commonjs/models/components/customerbalance.js +71 -0
  70. package/dist/commonjs/models/components/customerbalance.js.map +1 -0
  71. package/dist/commonjs/models/components/customerorder.d.ts +5 -0
  72. package/dist/commonjs/models/components/customerorder.d.ts.map +1 -1
  73. package/dist/commonjs/models/components/customerorder.js +4 -0
  74. package/dist/commonjs/models/components/customerorder.js.map +1 -1
  75. package/dist/commonjs/models/components/customerpaymentmethodconfirm.d.ts +31 -0
  76. package/dist/commonjs/models/components/customerpaymentmethodconfirm.d.ts.map +1 -0
  77. package/dist/commonjs/models/components/customerpaymentmethodconfirm.js +82 -0
  78. package/dist/commonjs/models/components/customerpaymentmethodconfirm.js.map +1 -0
  79. package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts +31 -0
  80. package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts.map +1 -0
  81. package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.js +80 -0
  82. package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.js.map +1 -0
  83. package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.d.ts +35 -0
  84. package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.d.ts.map +1 -0
  85. package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.js +81 -0
  86. package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.js.map +1 -0
  87. package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.d.ts +32 -0
  88. package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.d.ts.map +1 -0
  89. package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.js +81 -0
  90. package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.js.map +1 -0
  91. package/dist/commonjs/models/components/customersubscription.d.ts +5 -0
  92. package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
  93. package/dist/commonjs/models/components/customersubscription.js +4 -0
  94. package/dist/commonjs/models/components/customersubscription.js.map +1 -1
  95. package/dist/commonjs/models/components/order.d.ts +5 -0
  96. package/dist/commonjs/models/components/order.d.ts.map +1 -1
  97. package/dist/commonjs/models/components/order.js +4 -0
  98. package/dist/commonjs/models/components/order.js.map +1 -1
  99. package/dist/commonjs/models/components/organizationfeaturesettings.d.ts +5 -0
  100. package/dist/commonjs/models/components/organizationfeaturesettings.d.ts.map +1 -1
  101. package/dist/commonjs/models/components/organizationfeaturesettings.js +4 -0
  102. package/dist/commonjs/models/components/organizationfeaturesettings.js.map +1 -1
  103. package/dist/commonjs/models/components/productcreateonetime.d.ts +5 -4
  104. package/dist/commonjs/models/components/productcreateonetime.d.ts.map +1 -1
  105. package/dist/commonjs/models/components/productcreateonetime.js +5 -0
  106. package/dist/commonjs/models/components/productcreateonetime.js.map +1 -1
  107. package/dist/commonjs/models/components/productcreaterecurring.d.ts +5 -4
  108. package/dist/commonjs/models/components/productcreaterecurring.d.ts.map +1 -1
  109. package/dist/commonjs/models/components/productcreaterecurring.js +5 -0
  110. package/dist/commonjs/models/components/productcreaterecurring.js.map +1 -1
  111. package/dist/commonjs/models/components/productprice.d.ts +5 -0
  112. package/dist/commonjs/models/components/productprice.d.ts.map +1 -1
  113. package/dist/commonjs/models/components/productprice.js +7 -0
  114. package/dist/commonjs/models/components/productprice.js.map +1 -1
  115. package/dist/commonjs/models/components/productpriceseatbased.d.ts +76 -0
  116. package/dist/commonjs/models/components/productpriceseatbased.d.ts.map +1 -0
  117. package/dist/commonjs/models/components/productpriceseatbased.js +112 -0
  118. package/dist/commonjs/models/components/productpriceseatbased.js.map +1 -0
  119. package/dist/commonjs/models/components/productpriceseatbasedcreate.d.ts +42 -0
  120. package/dist/commonjs/models/components/productpriceseatbasedcreate.d.ts.map +1 -0
  121. package/dist/commonjs/models/components/productpriceseatbasedcreate.js +86 -0
  122. package/dist/commonjs/models/components/productpriceseatbasedcreate.js.map +1 -0
  123. package/dist/commonjs/models/components/productupdate.d.ts +5 -4
  124. package/dist/commonjs/models/components/productupdate.d.ts.map +1 -1
  125. package/dist/commonjs/models/components/productupdate.js +5 -0
  126. package/dist/commonjs/models/components/productupdate.js.map +1 -1
  127. package/dist/commonjs/models/errors/customernotready.d.ts +39 -0
  128. package/dist/commonjs/models/errors/customernotready.d.ts.map +1 -0
  129. package/dist/commonjs/models/errors/customernotready.js +88 -0
  130. package/dist/commonjs/models/errors/customernotready.js.map +1 -0
  131. package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts +29 -0
  132. package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts.map +1 -0
  133. package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.js +78 -0
  134. package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.js.map +1 -0
  135. package/dist/commonjs/models/operations/customersgetbalance.d.ts +32 -0
  136. package/dist/commonjs/models/operations/customersgetbalance.d.ts.map +1 -0
  137. package/dist/commonjs/models/operations/customersgetbalance.js +69 -0
  138. package/dist/commonjs/models/operations/customersgetbalance.js.map +1 -0
  139. package/dist/commonjs/models/operations/metersquantities.d.ts +6 -0
  140. package/dist/commonjs/models/operations/metersquantities.d.ts.map +1 -1
  141. package/dist/commonjs/models/operations/metersquantities.js +7 -0
  142. package/dist/commonjs/models/operations/metersquantities.js.map +1 -1
  143. package/dist/commonjs/sdk/customers.d.ts +11 -0
  144. package/dist/commonjs/sdk/customers.d.ts.map +1 -1
  145. package/dist/commonjs/sdk/customers.js +12 -0
  146. package/dist/commonjs/sdk/customers.js.map +1 -1
  147. package/dist/commonjs/sdk/polarcustomers.d.ts +13 -2
  148. package/dist/commonjs/sdk/polarcustomers.d.ts.map +1 -1
  149. package/dist/commonjs/sdk/polarcustomers.js +12 -0
  150. package/dist/commonjs/sdk/polarcustomers.js.map +1 -1
  151. package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.d.ts +2 -2
  152. package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.d.ts.map +1 -1
  153. package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.js +2 -2
  154. package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.js.map +1 -1
  155. package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts +23 -0
  156. package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts.map +1 -0
  157. package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.js +90 -0
  158. package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.js.map +1 -0
  159. package/dist/esm/funcs/customersGetBalance.d.ts +22 -0
  160. package/dist/esm/funcs/customersGetBalance.d.ts.map +1 -0
  161. package/dist/esm/funcs/customersGetBalance.js +91 -0
  162. package/dist/esm/funcs/customersGetBalance.js.map +1 -0
  163. package/dist/esm/funcs/metersQuantities.js +1 -0
  164. package/dist/esm/funcs/metersQuantities.js.map +1 -1
  165. package/dist/esm/lib/config.d.ts +3 -3
  166. package/dist/esm/lib/config.js +3 -3
  167. package/dist/esm/lib/config.js.map +1 -1
  168. package/dist/esm/lib/url.js +1 -1
  169. package/dist/esm/lib/url.js.map +1 -1
  170. package/dist/esm/mcp-server/mcp-server.js +1 -1
  171. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  172. package/dist/esm/mcp-server/server.js +3 -1
  173. package/dist/esm/mcp-server/server.js.map +1 -1
  174. package/dist/esm/mcp-server/tools/customersGetBalance.d.ts +7 -0
  175. package/dist/esm/mcp-server/tools/customersGetBalance.d.ts.map +1 -0
  176. package/dist/esm/mcp-server/tools/customersGetBalance.js +31 -0
  177. package/dist/esm/mcp-server/tools/customersGetBalance.js.map +1 -0
  178. package/dist/esm/models/components/address.d.ts +669 -669
  179. package/dist/esm/models/components/address.js +223 -223
  180. package/dist/esm/models/components/addressinput.d.ts +652 -652
  181. package/dist/esm/models/components/addressinput.js +218 -218
  182. package/dist/esm/models/components/aggregationfunction.d.ts +40 -0
  183. package/dist/esm/models/components/aggregationfunction.d.ts.map +1 -0
  184. package/dist/esm/models/components/aggregationfunction.js +28 -0
  185. package/dist/esm/models/components/aggregationfunction.js.map +1 -0
  186. package/dist/esm/models/components/checkout.d.ts +5 -0
  187. package/dist/esm/models/components/checkout.d.ts.map +1 -1
  188. package/dist/esm/models/components/checkout.js +2 -0
  189. package/dist/esm/models/components/checkout.js.map +1 -1
  190. package/dist/esm/models/components/checkoutconfirmstripe.d.ts +5 -0
  191. package/dist/esm/models/components/checkoutconfirmstripe.d.ts.map +1 -1
  192. package/dist/esm/models/components/checkoutconfirmstripe.js +2 -0
  193. package/dist/esm/models/components/checkoutconfirmstripe.js.map +1 -1
  194. package/dist/esm/models/components/checkoutcreate.d.ts +5 -0
  195. package/dist/esm/models/components/checkoutcreate.d.ts.map +1 -1
  196. package/dist/esm/models/components/checkoutcreate.js +2 -0
  197. package/dist/esm/models/components/checkoutcreate.js.map +1 -1
  198. package/dist/esm/models/components/checkoutpublic.d.ts +5 -0
  199. package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
  200. package/dist/esm/models/components/checkoutpublic.js +2 -0
  201. package/dist/esm/models/components/checkoutpublic.js.map +1 -1
  202. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +5 -0
  203. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  204. package/dist/esm/models/components/checkoutpublicconfirmed.js +2 -0
  205. package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
  206. package/dist/esm/models/components/checkoutupdate.d.ts +5 -0
  207. package/dist/esm/models/components/checkoutupdate.d.ts.map +1 -1
  208. package/dist/esm/models/components/checkoutupdate.js +2 -0
  209. package/dist/esm/models/components/checkoutupdate.js.map +1 -1
  210. package/dist/esm/models/components/checkoutupdatepublic.d.ts +5 -0
  211. package/dist/esm/models/components/checkoutupdatepublic.d.ts.map +1 -1
  212. package/dist/esm/models/components/checkoutupdatepublic.js +2 -0
  213. package/dist/esm/models/components/checkoutupdatepublic.js.map +1 -1
  214. package/dist/esm/models/components/customerbalance.d.ts +40 -0
  215. package/dist/esm/models/components/customerbalance.d.ts.map +1 -0
  216. package/dist/esm/models/components/customerbalance.js +33 -0
  217. package/dist/esm/models/components/customerbalance.js.map +1 -0
  218. package/dist/esm/models/components/customerorder.d.ts +5 -0
  219. package/dist/esm/models/components/customerorder.d.ts.map +1 -1
  220. package/dist/esm/models/components/customerorder.js +4 -0
  221. package/dist/esm/models/components/customerorder.js.map +1 -1
  222. package/dist/esm/models/components/customerpaymentmethodconfirm.d.ts +31 -0
  223. package/dist/esm/models/components/customerpaymentmethodconfirm.d.ts.map +1 -0
  224. package/dist/esm/models/components/customerpaymentmethodconfirm.js +44 -0
  225. package/dist/esm/models/components/customerpaymentmethodconfirm.js.map +1 -0
  226. package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts +31 -0
  227. package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts.map +1 -0
  228. package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.js +42 -0
  229. package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.js.map +1 -0
  230. package/dist/esm/models/components/customerpaymentmethodcreateresponse.d.ts +35 -0
  231. package/dist/esm/models/components/customerpaymentmethodcreateresponse.d.ts.map +1 -0
  232. package/dist/esm/models/components/customerpaymentmethodcreateresponse.js +43 -0
  233. package/dist/esm/models/components/customerpaymentmethodcreateresponse.js.map +1 -0
  234. package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.d.ts +32 -0
  235. package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.d.ts.map +1 -0
  236. package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.js +43 -0
  237. package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.js.map +1 -0
  238. package/dist/esm/models/components/customersubscription.d.ts +5 -0
  239. package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
  240. package/dist/esm/models/components/customersubscription.js +4 -0
  241. package/dist/esm/models/components/customersubscription.js.map +1 -1
  242. package/dist/esm/models/components/order.d.ts +5 -0
  243. package/dist/esm/models/components/order.d.ts.map +1 -1
  244. package/dist/esm/models/components/order.js +4 -0
  245. package/dist/esm/models/components/order.js.map +1 -1
  246. package/dist/esm/models/components/organizationfeaturesettings.d.ts +5 -0
  247. package/dist/esm/models/components/organizationfeaturesettings.d.ts.map +1 -1
  248. package/dist/esm/models/components/organizationfeaturesettings.js +4 -0
  249. package/dist/esm/models/components/organizationfeaturesettings.js.map +1 -1
  250. package/dist/esm/models/components/productcreateonetime.d.ts +5 -4
  251. package/dist/esm/models/components/productcreateonetime.d.ts.map +1 -1
  252. package/dist/esm/models/components/productcreateonetime.js +5 -0
  253. package/dist/esm/models/components/productcreateonetime.js.map +1 -1
  254. package/dist/esm/models/components/productcreaterecurring.d.ts +5 -4
  255. package/dist/esm/models/components/productcreaterecurring.d.ts.map +1 -1
  256. package/dist/esm/models/components/productcreaterecurring.js +5 -0
  257. package/dist/esm/models/components/productcreaterecurring.js.map +1 -1
  258. package/dist/esm/models/components/productprice.d.ts +5 -0
  259. package/dist/esm/models/components/productprice.d.ts.map +1 -1
  260. package/dist/esm/models/components/productprice.js +7 -0
  261. package/dist/esm/models/components/productprice.js.map +1 -1
  262. package/dist/esm/models/components/productpriceseatbased.d.ts +76 -0
  263. package/dist/esm/models/components/productpriceseatbased.d.ts.map +1 -0
  264. package/dist/esm/models/components/productpriceseatbased.js +74 -0
  265. package/dist/esm/models/components/productpriceseatbased.js.map +1 -0
  266. package/dist/esm/models/components/productpriceseatbasedcreate.d.ts +42 -0
  267. package/dist/esm/models/components/productpriceseatbasedcreate.d.ts.map +1 -0
  268. package/dist/esm/models/components/productpriceseatbasedcreate.js +48 -0
  269. package/dist/esm/models/components/productpriceseatbasedcreate.js.map +1 -0
  270. package/dist/esm/models/components/productupdate.d.ts +5 -4
  271. package/dist/esm/models/components/productupdate.d.ts.map +1 -1
  272. package/dist/esm/models/components/productupdate.js +5 -0
  273. package/dist/esm/models/components/productupdate.js.map +1 -1
  274. package/dist/esm/models/errors/customernotready.d.ts +39 -0
  275. package/dist/esm/models/errors/customernotready.d.ts.map +1 -0
  276. package/dist/esm/models/errors/customernotready.js +51 -0
  277. package/dist/esm/models/errors/customernotready.js.map +1 -0
  278. package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts +29 -0
  279. package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts.map +1 -0
  280. package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.js +40 -0
  281. package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.js.map +1 -0
  282. package/dist/esm/models/operations/customersgetbalance.d.ts +32 -0
  283. package/dist/esm/models/operations/customersgetbalance.d.ts.map +1 -0
  284. package/dist/esm/models/operations/customersgetbalance.js +31 -0
  285. package/dist/esm/models/operations/customersgetbalance.js.map +1 -0
  286. package/dist/esm/models/operations/metersquantities.d.ts +6 -0
  287. package/dist/esm/models/operations/metersquantities.d.ts.map +1 -1
  288. package/dist/esm/models/operations/metersquantities.js +7 -0
  289. package/dist/esm/models/operations/metersquantities.js.map +1 -1
  290. package/dist/esm/sdk/customers.d.ts +11 -0
  291. package/dist/esm/sdk/customers.d.ts.map +1 -1
  292. package/dist/esm/sdk/customers.js +12 -0
  293. package/dist/esm/sdk/customers.js.map +1 -1
  294. package/dist/esm/sdk/polarcustomers.d.ts +13 -2
  295. package/dist/esm/sdk/polarcustomers.d.ts.map +1 -1
  296. package/dist/esm/sdk/polarcustomers.js +12 -0
  297. package/dist/esm/sdk/polarcustomers.js.map +1 -1
  298. package/docs/sdks/customers/README.md +78 -0
  299. package/docs/sdks/polarcustomers/README.md +82 -1
  300. package/examples/package-lock.json +1 -1
  301. package/jsr.json +1 -1
  302. package/package.json +1 -1
  303. package/src/funcs/customerPortalCustomersAddPaymentMethod.ts +8 -8
  304. package/src/funcs/customerPortalCustomersConfirmPaymentMethod.ts +201 -0
  305. package/src/funcs/customersGetBalance.ts +195 -0
  306. package/src/funcs/metersQuantities.ts +1 -0
  307. package/src/lib/config.ts +3 -3
  308. package/src/lib/url.ts +1 -1
  309. package/src/mcp-server/mcp-server.ts +1 -1
  310. package/src/mcp-server/server.ts +3 -1
  311. package/src/mcp-server/tools/customersGetBalance.ts +40 -0
  312. package/src/models/components/address.ts +223 -223
  313. package/src/models/components/addressinput.ts +218 -218
  314. package/src/models/components/aggregationfunction.ts +37 -0
  315. package/src/models/components/checkout.ts +7 -0
  316. package/src/models/components/checkoutconfirmstripe.ts +7 -0
  317. package/src/models/components/checkoutcreate.ts +7 -0
  318. package/src/models/components/checkoutpublic.ts +7 -0
  319. package/src/models/components/checkoutpublicconfirmed.ts +7 -0
  320. package/src/models/components/checkoutupdate.ts +7 -0
  321. package/src/models/components/checkoutupdatepublic.ts +7 -0
  322. package/src/models/components/customerbalance.ts +77 -0
  323. package/src/models/components/customerorder.ts +9 -0
  324. package/src/models/components/customerpaymentmethodconfirm.ts +83 -0
  325. package/src/models/components/customerpaymentmethodcreaterequiresactionresponse.ts +93 -0
  326. package/src/models/components/customerpaymentmethodcreateresponse.ts +107 -0
  327. package/src/models/components/customerpaymentmethodcreatesucceededresponse.ts +98 -0
  328. package/src/models/components/customersubscription.ts +9 -0
  329. package/src/models/components/order.ts +9 -0
  330. package/src/models/components/organizationfeaturesettings.ts +9 -0
  331. package/src/models/components/productcreateonetime.ts +14 -0
  332. package/src/models/components/productcreaterecurring.ts +14 -0
  333. package/src/models/components/productprice.ts +18 -0
  334. package/src/models/components/productpriceseatbased.ts +164 -0
  335. package/src/models/components/productpriceseatbasedcreate.ts +98 -0
  336. package/src/models/components/productupdate.ts +14 -0
  337. package/src/models/errors/customernotready.ts +85 -0
  338. package/src/models/operations/customerportalcustomersconfirmpaymentmethod.ts +89 -0
  339. package/src/models/operations/customersgetbalance.ts +69 -0
  340. package/src/models/operations/metersquantities.ts +16 -0
  341. package/src/sdk/customers.ts +22 -0
  342. package/src/sdk/polarcustomers.ts +26 -2
@@ -10,250 +10,250 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  export const CountryAlpha2Input = {
13
- Cw: "CW",
14
- Ms: "MS",
15
- Ph: "PH",
16
- Gw: "GW",
17
- Tf: "TF",
18
- Jm: "JM",
19
- Ly: "LY",
20
- Tw: "TW",
21
- Gy: "GY",
22
- Um: "UM",
23
- Er: "ER",
24
- Mv: "MV",
25
- At: "AT",
26
- In: "IN",
27
- Sd: "SD",
28
- Vc: "VC",
29
- Us: "US",
30
- Aq: "AQ",
13
+ Ad: "AD",
31
14
  Ae: "AE",
32
- Nf: "NF",
33
- Lk: "LK",
34
- Co: "CO",
35
- Qa: "QA",
36
- Nz: "NZ",
37
- Pr: "PR",
38
- Tl: "TL",
39
- Mz: "MZ",
40
- Tn: "TN",
41
- Bm: "BM",
42
- Ht: "HT",
43
- Je: "JE",
44
- Lc: "LC",
45
- Cy: "CY",
46
- Lv: "LV",
47
- Ml: "ML",
48
- Dz: "DZ",
49
- Ps: "PS",
50
- Ve: "VE",
51
- Bh: "BH",
52
- Et: "ET",
53
- By: "BY",
54
- Mp: "MP",
55
- Bo: "BO",
56
- Sh: "SH",
57
- Kw: "KW",
58
- Sg: "SG",
59
- Mx: "MX",
60
- Pa: "PA",
61
- Zm: "ZM",
62
- To: "TO",
63
- Kn: "KN",
64
- Pt: "PT",
65
- Ws: "WS",
66
- Bs: "BS",
67
- Za: "ZA",
68
- Mo: "MO",
69
- Ie: "IE",
70
- Br: "BR",
15
+ Af: "AF",
16
+ Ag: "AG",
17
+ Ai: "AI",
18
+ Al: "AL",
19
+ Am: "AM",
20
+ Ao: "AO",
21
+ Aq: "AQ",
22
+ Ar: "AR",
71
23
  As: "AS",
72
- Es: "ES",
73
- Pf: "PF",
74
- Ke: "KE",
24
+ At: "AT",
25
+ Au: "AU",
26
+ Aw: "AW",
27
+ Ax: "AX",
28
+ Az: "AZ",
29
+ Ba: "BA",
75
30
  Bb: "BB",
76
- Re: "RE",
77
- Tv: "TV",
78
- Gh: "GH",
79
- Tz: "TZ",
80
- Kz: "KZ",
81
- Sx: "SX",
82
- Cx: "CX",
83
- Mm: "MM",
84
- Pk: "PK",
85
- Na: "NA",
31
+ Bd: "BD",
86
32
  Be: "BE",
87
- Fj: "FJ",
88
- Lr: "LR",
89
- Ua: "UA",
90
- Me: "ME",
91
- Mw: "MW",
92
- Vn: "VN",
93
- Lu: "LU",
94
- Mu: "MU",
95
- Is: "IS",
96
- Nu: "NU",
97
- Pm: "PM",
98
- Bw: "BW",
99
- Td: "TD",
100
- Yt: "YT",
101
- Fo: "FO",
102
- Tr: "TR",
103
- Rw: "RW",
104
- Id: "ID",
105
- No: "NO",
106
- Ck: "CK",
107
- Ss: "SS",
108
- De: "DE",
109
- Mk: "MK",
110
- La: "LA",
111
- Ee: "EE",
112
- Mn: "MN",
113
- Gi: "GI",
114
- Vu: "VU",
115
- Ro: "RO",
116
- Ao: "AO",
117
- Ar: "AR",
118
- Tk: "TK",
119
- Uy: "UY",
120
- Kh: "KH",
33
+ Bf: "BF",
121
34
  Bg: "BG",
122
- Tj: "TJ",
123
- Ug: "UG",
35
+ Bh: "BH",
36
+ Bi: "BI",
37
+ Bj: "BJ",
38
+ Bl: "BL",
39
+ Bm: "BM",
40
+ Bn: "BN",
41
+ Bo: "BO",
42
+ Bq: "BQ",
43
+ Br: "BR",
44
+ Bs: "BS",
45
+ Bt: "BT",
46
+ Bv: "BV",
47
+ Bw: "BW",
48
+ By: "BY",
49
+ Bz: "BZ",
50
+ Ca: "CA",
124
51
  Cc: "CC",
125
52
  Cd: "CD",
126
- Gd: "GD",
53
+ Cf: "CF",
54
+ Cg: "CG",
55
+ Ch: "CH",
56
+ Ci: "CI",
57
+ Ck: "CK",
127
58
  Cl: "CL",
128
- Gu: "GU",
129
- Il: "IL",
130
- Kr: "KR",
131
- Pe: "PE",
132
- Sn: "SN",
133
- Sm: "SM",
134
- Nl: "NL",
135
- Sk: "SK",
136
- Hm: "HM",
137
- Mq: "MQ",
138
- Mr: "MR",
139
- It: "IT",
140
59
  Cm: "CM",
141
- Dm: "DM",
142
- Sv: "SV",
60
+ Cn: "CN",
61
+ Co: "CO",
62
+ Cr: "CR",
63
+ Cv: "CV",
64
+ Cw: "CW",
65
+ Cx: "CX",
66
+ Cy: "CY",
67
+ Cz: "CZ",
68
+ De: "DE",
69
+ Dj: "DJ",
143
70
  Dk: "DK",
144
- Zw: "ZW",
145
- Jo: "JO",
146
- Om: "OM",
147
- Sl: "SL",
148
- So: "SO",
149
- Tg: "TG",
150
- Pw: "PW",
151
- Ye: "YE",
152
- Iq: "IQ",
153
- Ma: "MA",
154
- Cg: "CG",
155
- Mf: "MF",
156
- St: "ST",
157
- Bi: "BI",
71
+ Dm: "DM",
72
+ Do: "DO",
73
+ Dz: "DZ",
74
+ Ec: "EC",
75
+ Ee: "EE",
158
76
  Eg: "EG",
159
- Ax: "AX",
160
- Gm: "GM",
161
- Gr: "GR",
162
- Az: "AZ",
163
77
  Eh: "EH",
78
+ Er: "ER",
79
+ Es: "ES",
80
+ Et: "ET",
81
+ Fi: "FI",
82
+ Fj: "FJ",
83
+ Fk: "FK",
84
+ Fm: "FM",
85
+ Fo: "FO",
86
+ Fr: "FR",
87
+ Ga: "GA",
88
+ Gb: "GB",
89
+ Gd: "GD",
164
90
  Ge: "GE",
165
- Gt: "GT",
166
- Cf: "CF",
167
- Ng: "NG",
168
- Kg: "KG",
169
- Ag: "AG",
170
- Ai: "AI",
171
- Dj: "DJ",
172
- Sr: "SR",
173
- Np: "NP",
174
- Hu: "HU",
175
- Io: "IO",
176
- Mc: "MC",
177
91
  Gf: "GF",
178
- Sj: "SJ",
179
- Hr: "HR",
180
- Bj: "BJ",
181
- Fm: "FM",
182
- Bl: "BL",
183
- Ls: "LS",
184
- Mg: "MG",
185
- Sc: "SC",
186
- Vg: "VG",
187
- Ci: "CI",
188
92
  Gg: "GG",
189
- Ad: "AD",
190
- Cr: "CR",
93
+ Gh: "GH",
94
+ Gi: "GI",
95
+ Gl: "GL",
96
+ Gm: "GM",
97
+ Gn: "GN",
191
98
  Gp: "GP",
192
- Au: "AU",
193
- Hk: "HK",
194
- Fr: "FR",
99
+ Gq: "GQ",
100
+ Gr: "GR",
195
101
  Gs: "GS",
196
- Si: "SI",
197
- Mh: "MH",
198
- Fi: "FI",
199
- Do: "DO",
200
- Tm: "TM",
201
- Gl: "GL",
202
- Ca: "CA",
203
- Mt: "MT",
204
- Rs: "RS",
205
- Km: "KM",
206
- Sz: "SZ",
102
+ Gt: "GT",
103
+ Gu: "GU",
104
+ Gw: "GW",
105
+ Gy: "GY",
106
+ Hk: "HK",
107
+ Hm: "HM",
108
+ Hn: "HN",
109
+ Hr: "HR",
110
+ Ht: "HT",
111
+ Hu: "HU",
112
+ Id: "ID",
113
+ Ie: "IE",
114
+ Il: "IL",
207
115
  Im: "IM",
116
+ In: "IN",
117
+ Io: "IO",
118
+ Iq: "IQ",
119
+ Is: "IS",
120
+ It: "IT",
121
+ Je: "JE",
122
+ Jm: "JM",
123
+ Jo: "JO",
208
124
  Jp: "JP",
209
- Th: "TH",
210
- Tt: "TT",
211
- Sb: "SB",
212
- Ga: "GA",
213
- Nc: "NC",
214
- Bv: "BV",
215
- Fk: "FK",
216
- Af: "AF",
125
+ Ke: "KE",
126
+ Kg: "KG",
127
+ Kh: "KH",
217
128
  Ki: "KI",
129
+ Km: "KM",
130
+ Kn: "KN",
131
+ Kr: "KR",
132
+ Kw: "KW",
133
+ Ky: "KY",
134
+ Kz: "KZ",
135
+ La: "LA",
136
+ Lb: "LB",
137
+ Lc: "LC",
138
+ Li: "LI",
139
+ Lk: "LK",
140
+ Lr: "LR",
141
+ Ls: "LS",
142
+ Lt: "LT",
143
+ Lu: "LU",
144
+ Lv: "LV",
145
+ Ly: "LY",
146
+ Ma: "MA",
147
+ Mc: "MC",
218
148
  Md: "MD",
219
- Tc: "TC",
220
- Bn: "BN",
221
- Hn: "HN",
222
- Vi: "VI",
223
- Gn: "GN",
224
- Wf: "WF",
225
- Se: "SE",
226
- Ec: "EC",
149
+ Me: "ME",
150
+ Mf: "MF",
151
+ Mg: "MG",
152
+ Mh: "MH",
153
+ Mk: "MK",
154
+ Ml: "ML",
155
+ Mm: "MM",
156
+ Mn: "MN",
157
+ Mo: "MO",
158
+ Mp: "MP",
159
+ Mq: "MQ",
160
+ Mr: "MR",
161
+ Ms: "MS",
162
+ Mt: "MT",
163
+ Mu: "MU",
164
+ Mv: "MV",
165
+ Mw: "MW",
166
+ Mx: "MX",
167
+ My: "MY",
168
+ Mz: "MZ",
169
+ Na: "NA",
170
+ Nc: "NC",
227
171
  Ne: "NE",
228
- Pl: "PL",
229
- Gq: "GQ",
230
- Bt: "BT",
231
- Bz: "BZ",
232
- Uz: "UZ",
233
- Lt: "LT",
234
- Cz: "CZ",
235
- Lb: "LB",
236
- Gb: "GB",
172
+ Nf: "NF",
173
+ Ng: "NG",
174
+ Ni: "NI",
175
+ Nl: "NL",
176
+ No: "NO",
177
+ Np: "NP",
178
+ Nr: "NR",
179
+ Nu: "NU",
180
+ Nz: "NZ",
181
+ Om: "OM",
182
+ Pa: "PA",
183
+ Pe: "PE",
184
+ Pf: "PF",
237
185
  Pg: "PG",
238
- Py: "PY",
239
- Bq: "BQ",
240
- Ky: "KY",
186
+ Ph: "PH",
187
+ Pk: "PK",
188
+ Pl: "PL",
189
+ Pm: "PM",
241
190
  Pn: "PN",
191
+ Pr: "PR",
192
+ Ps: "PS",
193
+ Pt: "PT",
194
+ Pw: "PW",
195
+ Py: "PY",
196
+ Qa: "QA",
197
+ Re: "RE",
198
+ Ro: "RO",
199
+ Rs: "RS",
200
+ Rw: "RW",
242
201
  Sa: "SA",
243
- Ch: "CH",
202
+ Sb: "SB",
203
+ Sc: "SC",
204
+ Sd: "SD",
205
+ Se: "SE",
206
+ Sg: "SG",
207
+ Sh: "SH",
208
+ Si: "SI",
209
+ Sj: "SJ",
210
+ Sk: "SK",
211
+ Sl: "SL",
212
+ Sm: "SM",
213
+ Sn: "SN",
214
+ So: "SO",
215
+ Sr: "SR",
216
+ Ss: "SS",
217
+ St: "ST",
218
+ Sv: "SV",
219
+ Sx: "SX",
220
+ Sz: "SZ",
221
+ Tc: "TC",
222
+ Td: "TD",
223
+ Tf: "TF",
224
+ Tg: "TG",
225
+ Th: "TH",
226
+ Tj: "TJ",
227
+ Tk: "TK",
228
+ Tl: "TL",
229
+ Tm: "TM",
230
+ Tn: "TN",
231
+ To: "TO",
232
+ Tr: "TR",
233
+ Tt: "TT",
234
+ Tv: "TV",
235
+ Tw: "TW",
236
+ Tz: "TZ",
237
+ Ua: "UA",
238
+ Ug: "UG",
239
+ Um: "UM",
240
+ Us: "US",
241
+ Uy: "UY",
242
+ Uz: "UZ",
244
243
  Va: "VA",
245
- Bf: "BF",
246
- My: "MY",
247
- Nr: "NR",
248
- Cv: "CV",
249
- Al: "AL",
250
- Cn: "CN",
251
- Am: "AM",
252
- Ni: "NI",
253
- Aw: "AW",
254
- Li: "LI",
255
- Ba: "BA",
256
- Bd: "BD",
244
+ Vc: "VC",
245
+ Ve: "VE",
246
+ Vg: "VG",
247
+ Vi: "VI",
248
+ Vn: "VN",
249
+ Vu: "VU",
250
+ Wf: "WF",
251
+ Ws: "WS",
252
+ Ye: "YE",
253
+ Yt: "YT",
254
+ Za: "ZA",
255
+ Zm: "ZM",
256
+ Zw: "ZW",
257
257
  } as const;
258
258
  export type CountryAlpha2Input = ClosedEnum<typeof CountryAlpha2Input>;
259
259
 
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const AggregationFunction = {
9
+ Count: "count",
10
+ Sum: "sum",
11
+ Max: "max",
12
+ Min: "min",
13
+ Avg: "avg",
14
+ Unique: "unique",
15
+ } as const;
16
+ export type AggregationFunction = ClosedEnum<typeof AggregationFunction>;
17
+
18
+ /** @internal */
19
+ export const AggregationFunction$inboundSchema: z.ZodNativeEnum<
20
+ typeof AggregationFunction
21
+ > = z.nativeEnum(AggregationFunction);
22
+
23
+ /** @internal */
24
+ export const AggregationFunction$outboundSchema: z.ZodNativeEnum<
25
+ typeof AggregationFunction
26
+ > = AggregationFunction$inboundSchema;
27
+
28
+ /**
29
+ * @internal
30
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
+ */
32
+ export namespace AggregationFunction$ {
33
+ /** @deprecated use `AggregationFunction$inboundSchema` instead. */
34
+ export const inboundSchema = AggregationFunction$inboundSchema;
35
+ /** @deprecated use `AggregationFunction$outboundSchema` instead. */
36
+ export const outboundSchema = AggregationFunction$outboundSchema;
37
+ }
@@ -148,6 +148,10 @@ export type Checkout = {
148
148
  * Amount in cents, before discounts and taxes.
149
149
  */
150
150
  amount: number;
151
+ /**
152
+ * Number of seats for seat-based pricing.
153
+ */
154
+ seats?: number | null | undefined;
151
155
  /**
152
156
  * Discount amount in cents.
153
157
  */
@@ -584,6 +588,7 @@ export const Checkout$inboundSchema: z.ZodType<
584
588
  success_url: z.string(),
585
589
  embed_origin: z.nullable(z.string()),
586
590
  amount: z.number().int(),
591
+ seats: z.nullable(z.number().int()).optional(),
587
592
  discount_amount: z.number().int(),
588
593
  net_amount: z.number().int(),
589
594
  tax_amount: z.nullable(z.number().int()),
@@ -704,6 +709,7 @@ export type Checkout$Outbound = {
704
709
  success_url: string;
705
710
  embed_origin: string | null;
706
711
  amount: number;
712
+ seats?: number | null | undefined;
707
713
  discount_amount: number;
708
714
  net_amount: number;
709
715
  tax_amount: number | null;
@@ -778,6 +784,7 @@ export const Checkout$outboundSchema: z.ZodType<
778
784
  successUrl: z.string(),
779
785
  embedOrigin: z.nullable(z.string()),
780
786
  amount: z.number().int(),
787
+ seats: z.nullable(z.number().int()).optional(),
781
788
  discountAmount: z.number().int(),
782
789
  netAmount: z.number().int(),
783
790
  taxAmount: z.nullable(z.number().int()),
@@ -41,6 +41,10 @@ export type CheckoutConfirmStripe = {
41
41
  */
42
42
  productPriceId?: string | null | undefined;
43
43
  amount?: number | null | undefined;
44
+ /**
45
+ * Number of seats for seat-based pricing.
46
+ */
47
+ seats?: number | null | undefined;
44
48
  isBusinessCustomer?: boolean | null | undefined;
45
49
  customerName?: string | null | undefined;
46
50
  customerEmail?: string | null | undefined;
@@ -143,6 +147,7 @@ export const CheckoutConfirmStripe$inboundSchema: z.ZodType<
143
147
  product_id: z.nullable(z.string()).optional(),
144
148
  product_price_id: z.nullable(z.string()).optional(),
145
149
  amount: z.nullable(z.number().int()).optional(),
150
+ seats: z.nullable(z.number().int()).optional(),
146
151
  is_business_customer: z.nullable(z.boolean()).optional(),
147
152
  customer_name: z.nullable(z.string()).optional(),
148
153
  customer_email: z.nullable(z.string()).optional(),
@@ -175,6 +180,7 @@ export type CheckoutConfirmStripe$Outbound = {
175
180
  product_id?: string | null | undefined;
176
181
  product_price_id?: string | null | undefined;
177
182
  amount?: number | null | undefined;
183
+ seats?: number | null | undefined;
178
184
  is_business_customer?: boolean | null | undefined;
179
185
  customer_name?: string | null | undefined;
180
186
  customer_email?: string | null | undefined;
@@ -204,6 +210,7 @@ export const CheckoutConfirmStripe$outboundSchema: z.ZodType<
204
210
  productId: z.nullable(z.string()).optional(),
205
211
  productPriceId: z.nullable(z.string()).optional(),
206
212
  amount: z.nullable(z.number().int()).optional(),
213
+ seats: z.nullable(z.number().int()).optional(),
207
214
  isBusinessCustomer: z.nullable(z.boolean()).optional(),
208
215
  customerName: z.nullable(z.string()).optional(),
209
216
  customerEmail: z.nullable(z.string()).optional(),
@@ -78,6 +78,10 @@ export type CheckoutCreate = {
78
78
  */
79
79
  requireBillingAddress?: boolean | undefined;
80
80
  amount?: number | null | undefined;
81
+ /**
82
+ * Number of seats for seat-based pricing. Required for seat-based products.
83
+ */
84
+ seats?: number | null | undefined;
81
85
  /**
82
86
  * ID of an existing customer in the organization. The customer data will be pre-filled in the checkout form. The resulting order will be linked to this customer.
83
87
  */
@@ -327,6 +331,7 @@ export const CheckoutCreate$inboundSchema: z.ZodType<
327
331
  allow_discount_codes: z.boolean().default(true),
328
332
  require_billing_address: z.boolean().default(false),
329
333
  amount: z.nullable(z.number().int()).optional(),
334
+ seats: z.nullable(z.number().int()).optional(),
330
335
  customer_id: z.nullable(z.string()).optional(),
331
336
  is_business_customer: z.boolean().default(false),
332
337
  external_customer_id: z.nullable(z.string()).optional(),
@@ -379,6 +384,7 @@ export type CheckoutCreate$Outbound = {
379
384
  allow_discount_codes: boolean;
380
385
  require_billing_address: boolean;
381
386
  amount?: number | null | undefined;
387
+ seats?: number | null | undefined;
382
388
  customer_id?: string | null | undefined;
383
389
  is_business_customer: boolean;
384
390
  external_customer_id?: string | null | undefined;
@@ -422,6 +428,7 @@ export const CheckoutCreate$outboundSchema: z.ZodType<
422
428
  allowDiscountCodes: z.boolean().default(true),
423
429
  requireBillingAddress: z.boolean().default(false),
424
430
  amount: z.nullable(z.number().int()).optional(),
431
+ seats: z.nullable(z.number().int()).optional(),
425
432
  customerId: z.nullable(z.string()).optional(),
426
433
  isBusinessCustomer: z.boolean().default(false),
427
434
  externalCustomerId: z.nullable(z.string()).optional(),
@@ -152,6 +152,10 @@ export type CheckoutPublic = {
152
152
  * Amount in cents, before discounts and taxes.
153
153
  */
154
154
  amount: number;
155
+ /**
156
+ * Number of seats for seat-based pricing.
157
+ */
158
+ seats?: number | null | undefined;
155
159
  /**
156
160
  * Discount amount in cents.
157
161
  */
@@ -476,6 +480,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
476
480
  success_url: z.string(),
477
481
  embed_origin: z.nullable(z.string()),
478
482
  amount: z.number().int(),
483
+ seats: z.nullable(z.number().int()).optional(),
479
484
  discount_amount: z.number().int(),
480
485
  net_amount: z.number().int(),
481
486
  tax_amount: z.nullable(z.number().int()),
@@ -580,6 +585,7 @@ export type CheckoutPublic$Outbound = {
580
585
  success_url: string;
581
586
  embed_origin: string | null;
582
587
  amount: number;
588
+ seats?: number | null | undefined;
583
589
  discount_amount: number;
584
590
  net_amount: number;
585
591
  tax_amount: number | null;
@@ -648,6 +654,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
648
654
  successUrl: z.string(),
649
655
  embedOrigin: z.nullable(z.string()),
650
656
  amount: z.number().int(),
657
+ seats: z.nullable(z.number().int()).optional(),
651
658
  discountAmount: z.number().int(),
652
659
  netAmount: z.number().int(),
653
660
  taxAmount: z.nullable(z.number().int()),
@@ -156,6 +156,10 @@ export type CheckoutPublicConfirmed = {
156
156
  * Amount in cents, before discounts and taxes.
157
157
  */
158
158
  amount: number;
159
+ /**
160
+ * Number of seats for seat-based pricing.
161
+ */
162
+ seats?: number | null | undefined;
159
163
  /**
160
164
  * Discount amount in cents.
161
165
  */
@@ -492,6 +496,7 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
492
496
  success_url: z.string(),
493
497
  embed_origin: z.nullable(z.string()),
494
498
  amount: z.number().int(),
499
+ seats: z.nullable(z.number().int()).optional(),
495
500
  discount_amount: z.number().int(),
496
501
  net_amount: z.number().int(),
497
502
  tax_amount: z.nullable(z.number().int()),
@@ -598,6 +603,7 @@ export type CheckoutPublicConfirmed$Outbound = {
598
603
  success_url: string;
599
604
  embed_origin: string | null;
600
605
  amount: number;
606
+ seats?: number | null | undefined;
601
607
  discount_amount: number;
602
608
  net_amount: number;
603
609
  tax_amount: number | null;
@@ -667,6 +673,7 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
667
673
  successUrl: z.string(),
668
674
  embedOrigin: z.nullable(z.string()),
669
675
  amount: z.number().int(),
676
+ seats: z.nullable(z.number().int()).optional(),
670
677
  discountAmount: z.number().int(),
671
678
  netAmount: z.number().int(),
672
679
  taxAmount: z.nullable(z.number().int()),