@polar-sh/sdk 0.44.0 → 0.45.1

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 (507) hide show
  1. package/dist/commonjs/funcs/customersCreate.d.ts +2 -2
  2. package/dist/commonjs/funcs/customersCreate.d.ts.map +1 -1
  3. package/dist/commonjs/funcs/customersCreate.js +2 -2
  4. package/dist/commonjs/funcs/customersCreate.js.map +1 -1
  5. package/dist/commonjs/funcs/customersGet.d.ts +2 -2
  6. package/dist/commonjs/funcs/customersGet.d.ts.map +1 -1
  7. package/dist/commonjs/funcs/customersGet.js +2 -2
  8. package/dist/commonjs/funcs/customersGet.js.map +1 -1
  9. package/dist/commonjs/funcs/customersGetExternal.d.ts +2 -2
  10. package/dist/commonjs/funcs/customersGetExternal.d.ts.map +1 -1
  11. package/dist/commonjs/funcs/customersGetExternal.js +2 -2
  12. package/dist/commonjs/funcs/customersGetExternal.js.map +1 -1
  13. package/dist/commonjs/funcs/customersUpdate.d.ts +2 -2
  14. package/dist/commonjs/funcs/customersUpdate.d.ts.map +1 -1
  15. package/dist/commonjs/funcs/customersUpdate.js +2 -2
  16. package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
  17. package/dist/commonjs/funcs/customersUpdateExternal.d.ts +2 -2
  18. package/dist/commonjs/funcs/customersUpdateExternal.d.ts.map +1 -1
  19. package/dist/commonjs/funcs/customersUpdateExternal.js +2 -2
  20. package/dist/commonjs/funcs/customersUpdateExternal.js.map +1 -1
  21. package/dist/commonjs/lib/config.d.ts +3 -3
  22. package/dist/commonjs/lib/config.js +3 -3
  23. package/dist/commonjs/models/components/benefit.d.ts +3 -2
  24. package/dist/commonjs/models/components/benefit.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/benefit.js +3 -0
  26. package/dist/commonjs/models/components/benefit.js.map +1 -1
  27. package/dist/commonjs/models/components/benefitcreate.d.ts +3 -2
  28. package/dist/commonjs/models/components/benefitcreate.d.ts.map +1 -1
  29. package/dist/commonjs/models/components/benefitcreate.js +2 -0
  30. package/dist/commonjs/models/components/benefitcreate.js.map +1 -1
  31. package/dist/commonjs/models/components/benefitfeatureflag.d.ts +73 -0
  32. package/dist/commonjs/models/components/benefitfeatureflag.d.ts.map +1 -0
  33. package/dist/commonjs/models/components/{customerwithmembers.js → benefitfeatureflag.js} +36 -35
  34. package/dist/commonjs/models/components/benefitfeatureflag.js.map +1 -0
  35. package/dist/commonjs/models/components/benefitfeatureflagcreate.d.ts +58 -0
  36. package/dist/commonjs/models/components/benefitfeatureflagcreate.d.ts.map +1 -0
  37. package/dist/commonjs/models/components/benefitfeatureflagcreate.js +66 -0
  38. package/dist/commonjs/models/components/benefitfeatureflagcreate.js.map +1 -0
  39. package/dist/commonjs/models/components/benefitfeatureflagcreateproperties.d.ts +11 -0
  40. package/dist/commonjs/models/components/benefitfeatureflagcreateproperties.d.ts.map +1 -0
  41. package/dist/commonjs/models/components/{productpricetype.js → benefitfeatureflagcreateproperties.js} +8 -10
  42. package/dist/commonjs/models/components/benefitfeatureflagcreateproperties.js.map +1 -0
  43. package/dist/commonjs/models/components/benefitfeatureflagproperties.d.ts +16 -0
  44. package/dist/commonjs/models/components/benefitfeatureflagproperties.d.ts.map +1 -0
  45. package/dist/commonjs/models/components/benefitfeatureflagproperties.js +54 -0
  46. package/dist/commonjs/models/components/benefitfeatureflagproperties.js.map +1 -0
  47. package/dist/commonjs/models/components/benefitfeatureflagsubscriber.d.ts +49 -0
  48. package/dist/commonjs/models/components/benefitfeatureflagsubscriber.d.ts.map +1 -0
  49. package/dist/commonjs/models/components/benefitfeatureflagsubscriber.js +70 -0
  50. package/dist/commonjs/models/components/benefitfeatureflagsubscriber.js.map +1 -0
  51. package/dist/commonjs/models/components/benefitfeatureflagsubscriberproperties.d.ts +11 -0
  52. package/dist/commonjs/models/components/benefitfeatureflagsubscriberproperties.d.ts.map +1 -0
  53. package/dist/commonjs/models/components/benefitfeatureflagsubscriberproperties.js +48 -0
  54. package/dist/commonjs/models/components/benefitfeatureflagsubscriberproperties.js.map +1 -0
  55. package/dist/commonjs/models/components/benefitfeatureflagupdate.d.ts +47 -0
  56. package/dist/commonjs/models/components/benefitfeatureflagupdate.d.ts.map +1 -0
  57. package/dist/commonjs/models/components/benefitfeatureflagupdate.js +60 -0
  58. package/dist/commonjs/models/components/benefitfeatureflagupdate.js.map +1 -0
  59. package/dist/commonjs/models/components/benefitgrant.d.ts +3 -2
  60. package/dist/commonjs/models/components/benefitgrant.d.ts.map +1 -1
  61. package/dist/commonjs/models/components/benefitgrant.js +3 -0
  62. package/dist/commonjs/models/components/benefitgrant.js.map +1 -1
  63. package/dist/commonjs/models/components/benefitgrantfeatureflagproperties.d.ts +13 -0
  64. package/dist/commonjs/models/components/benefitgrantfeatureflagproperties.d.ts.map +1 -0
  65. package/dist/commonjs/models/components/benefitgrantfeatureflagproperties.js +54 -0
  66. package/dist/commonjs/models/components/benefitgrantfeatureflagproperties.js.map +1 -0
  67. package/dist/commonjs/models/components/benefitgrantfeatureflagwebhook.d.ts +106 -0
  68. package/dist/commonjs/models/components/benefitgrantfeatureflagwebhook.d.ts.map +1 -0
  69. package/dist/commonjs/models/components/benefitgrantfeatureflagwebhook.js +128 -0
  70. package/dist/commonjs/models/components/benefitgrantfeatureflagwebhook.js.map +1 -0
  71. package/dist/commonjs/models/components/benefitgrantwebhook.d.ts +3 -2
  72. package/dist/commonjs/models/components/benefitgrantwebhook.d.ts.map +1 -1
  73. package/dist/commonjs/models/components/benefitgrantwebhook.js +3 -0
  74. package/dist/commonjs/models/components/benefitgrantwebhook.js.map +1 -1
  75. package/dist/commonjs/models/components/benefittype.d.ts +1 -0
  76. package/dist/commonjs/models/components/benefittype.d.ts.map +1 -1
  77. package/dist/commonjs/models/components/benefittype.js +1 -0
  78. package/dist/commonjs/models/components/benefittype.js.map +1 -1
  79. package/dist/commonjs/models/components/cardpayment.d.ts +1 -1
  80. package/dist/commonjs/models/components/checkout.d.ts +0 -28
  81. package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
  82. package/dist/commonjs/models/components/checkout.js +1 -37
  83. package/dist/commonjs/models/components/checkout.js.map +1 -1
  84. package/dist/commonjs/models/components/checkoutconfirmstripe.d.ts +0 -7
  85. package/dist/commonjs/models/components/checkoutconfirmstripe.d.ts.map +1 -1
  86. package/dist/commonjs/models/components/checkoutconfirmstripe.js +0 -2
  87. package/dist/commonjs/models/components/checkoutconfirmstripe.js.map +1 -1
  88. package/dist/commonjs/models/components/checkoutpublic.d.ts +0 -16
  89. package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
  90. package/dist/commonjs/models/components/checkoutpublic.js +1 -17
  91. package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
  92. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +0 -16
  93. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  94. package/dist/commonjs/models/components/checkoutpublicconfirmed.js +1 -17
  95. package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
  96. package/dist/commonjs/models/components/checkoutupdate.d.ts +0 -7
  97. package/dist/commonjs/models/components/checkoutupdate.d.ts.map +1 -1
  98. package/dist/commonjs/models/components/checkoutupdate.js +0 -2
  99. package/dist/commonjs/models/components/checkoutupdate.js.map +1 -1
  100. package/dist/commonjs/models/components/checkoutupdatepublic.d.ts +0 -7
  101. package/dist/commonjs/models/components/checkoutupdatepublic.d.ts.map +1 -1
  102. package/dist/commonjs/models/components/checkoutupdatepublic.js +0 -2
  103. package/dist/commonjs/models/components/checkoutupdatepublic.js.map +1 -1
  104. package/dist/commonjs/models/components/customer.d.ts +2 -2
  105. package/dist/commonjs/models/components/customer.d.ts.map +1 -1
  106. package/dist/commonjs/models/components/customer.js +2 -2
  107. package/dist/commonjs/models/components/customer.js.map +1 -1
  108. package/dist/commonjs/models/components/customerbenefitgrant.d.ts +2 -1
  109. package/dist/commonjs/models/components/customerbenefitgrant.d.ts.map +1 -1
  110. package/dist/commonjs/models/components/customerbenefitgrant.js +2 -0
  111. package/dist/commonjs/models/components/customerbenefitgrant.js.map +1 -1
  112. package/dist/commonjs/models/components/customerbenefitgrantfeatureflag.d.ts +38 -0
  113. package/dist/commonjs/models/components/customerbenefitgrantfeatureflag.d.ts.map +1 -0
  114. package/dist/commonjs/models/components/customerbenefitgrantfeatureflag.js +84 -0
  115. package/dist/commonjs/models/components/customerbenefitgrantfeatureflag.js.map +1 -0
  116. package/dist/commonjs/models/components/customerbenefitgrantfeatureflagupdate.d.ts +12 -0
  117. package/dist/commonjs/models/components/customerbenefitgrantfeatureflagupdate.d.ts.map +1 -0
  118. package/dist/commonjs/models/components/customerbenefitgrantfeatureflagupdate.js +54 -0
  119. package/dist/commonjs/models/components/customerbenefitgrantfeatureflagupdate.js.map +1 -0
  120. package/dist/commonjs/models/components/customerbenefitgrantupdate.d.ts +3 -2
  121. package/dist/commonjs/models/components/customerbenefitgrantupdate.d.ts.map +1 -1
  122. package/dist/commonjs/models/components/customerbenefitgrantupdate.js +2 -0
  123. package/dist/commonjs/models/components/customerbenefitgrantupdate.js.map +1 -1
  124. package/dist/commonjs/models/components/customerorder.d.ts +0 -4
  125. package/dist/commonjs/models/components/customerorder.d.ts.map +1 -1
  126. package/dist/commonjs/models/components/customerorder.js +0 -2
  127. package/dist/commonjs/models/components/customerorder.js.map +1 -1
  128. package/dist/commonjs/models/components/customerstate.d.ts +2 -2
  129. package/dist/commonjs/models/components/customerstate.d.ts.map +1 -1
  130. package/dist/commonjs/models/components/customerstate.js +2 -2
  131. package/dist/commonjs/models/components/customerstate.js.map +1 -1
  132. package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts +5 -4
  133. package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts.map +1 -1
  134. package/dist/commonjs/models/components/customerstatebenefitgrant.js +5 -0
  135. package/dist/commonjs/models/components/customerstatebenefitgrant.js.map +1 -1
  136. package/dist/commonjs/models/components/genericpayment.d.ts +1 -1
  137. package/dist/commonjs/models/components/licensekeycustomer.d.ts +1 -1
  138. package/dist/commonjs/models/components/licensekeycustomer.d.ts.map +1 -1
  139. package/dist/commonjs/models/components/licensekeycustomer.js +1 -1
  140. package/dist/commonjs/models/components/licensekeycustomer.js.map +1 -1
  141. package/dist/commonjs/models/components/listresourcecustomer.d.ts +13 -0
  142. package/dist/commonjs/models/components/listresourcecustomer.d.ts.map +1 -0
  143. package/dist/commonjs/models/components/{listresourcecustomerwithmembers.js → listresourcecustomer.js} +8 -8
  144. package/dist/commonjs/models/components/listresourcecustomer.js.map +1 -0
  145. package/dist/commonjs/models/components/order.d.ts +0 -5
  146. package/dist/commonjs/models/components/order.d.ts.map +1 -1
  147. package/dist/commonjs/models/components/order.js +0 -4
  148. package/dist/commonjs/models/components/order.js.map +1 -1
  149. package/dist/commonjs/models/components/ordercustomer.d.ts +2 -2
  150. package/dist/commonjs/models/components/ordercustomer.d.ts.map +1 -1
  151. package/dist/commonjs/models/components/ordercustomer.js +2 -2
  152. package/dist/commonjs/models/components/ordercustomer.js.map +1 -1
  153. package/dist/commonjs/models/components/orderstatus.d.ts +1 -0
  154. package/dist/commonjs/models/components/orderstatus.d.ts.map +1 -1
  155. package/dist/commonjs/models/components/orderstatus.js +1 -0
  156. package/dist/commonjs/models/components/orderstatus.js.map +1 -1
  157. package/dist/commonjs/models/components/organizationfeaturesettings.d.ts +0 -5
  158. package/dist/commonjs/models/components/organizationfeaturesettings.d.ts.map +1 -1
  159. package/dist/commonjs/models/components/organizationfeaturesettings.js +0 -4
  160. package/dist/commonjs/models/components/organizationfeaturesettings.js.map +1 -1
  161. package/dist/commonjs/models/components/organizationsocialplatforms.d.ts +2 -0
  162. package/dist/commonjs/models/components/organizationsocialplatforms.d.ts.map +1 -1
  163. package/dist/commonjs/models/components/organizationsocialplatforms.js +2 -0
  164. package/dist/commonjs/models/components/organizationsocialplatforms.js.map +1 -1
  165. package/dist/commonjs/models/components/productpricecustom.d.ts +0 -9
  166. package/dist/commonjs/models/components/productpricecustom.d.ts.map +1 -1
  167. package/dist/commonjs/models/components/productpricecustom.js +0 -8
  168. package/dist/commonjs/models/components/productpricecustom.js.map +1 -1
  169. package/dist/commonjs/models/components/productpricefixed.d.ts +0 -9
  170. package/dist/commonjs/models/components/productpricefixed.d.ts.map +1 -1
  171. package/dist/commonjs/models/components/productpricefixed.js +0 -8
  172. package/dist/commonjs/models/components/productpricefixed.js.map +1 -1
  173. package/dist/commonjs/models/components/productpricefree.d.ts +0 -9
  174. package/dist/commonjs/models/components/productpricefree.d.ts.map +1 -1
  175. package/dist/commonjs/models/components/productpricefree.js +0 -8
  176. package/dist/commonjs/models/components/productpricefree.js.map +1 -1
  177. package/dist/commonjs/models/components/productpricemeteredunit.d.ts +0 -9
  178. package/dist/commonjs/models/components/productpricemeteredunit.d.ts.map +1 -1
  179. package/dist/commonjs/models/components/productpricemeteredunit.js +0 -8
  180. package/dist/commonjs/models/components/productpricemeteredunit.js.map +1 -1
  181. package/dist/commonjs/models/components/productpriceseatbased.d.ts +0 -9
  182. package/dist/commonjs/models/components/productpriceseatbased.d.ts.map +1 -1
  183. package/dist/commonjs/models/components/productpriceseatbased.js +0 -8
  184. package/dist/commonjs/models/components/productpriceseatbased.js.map +1 -1
  185. package/dist/commonjs/models/components/subscriptioncustomer.d.ts +2 -2
  186. package/dist/commonjs/models/components/subscriptioncustomer.d.ts.map +1 -1
  187. package/dist/commonjs/models/components/subscriptioncustomer.js +2 -2
  188. package/dist/commonjs/models/components/subscriptioncustomer.js.map +1 -1
  189. package/dist/commonjs/models/components/webhookendpoint.d.ts +4 -0
  190. package/dist/commonjs/models/components/webhookendpoint.d.ts.map +1 -1
  191. package/dist/commonjs/models/components/webhookendpoint.js +1 -0
  192. package/dist/commonjs/models/components/webhookendpoint.js.map +1 -1
  193. package/dist/commonjs/models/components/webhookendpointcreate.d.ts +3 -3
  194. package/dist/commonjs/models/components/webhookendpointcreate.d.ts.map +1 -1
  195. package/dist/commonjs/models/components/webhookendpointcreate.js +1 -1
  196. package/dist/commonjs/models/components/webhookendpointcreate.js.map +1 -1
  197. package/dist/commonjs/models/components/webhookendpointupdate.d.ts +3 -3
  198. package/dist/commonjs/models/components/webhookendpointupdate.d.ts.map +1 -1
  199. package/dist/commonjs/models/components/webhookendpointupdate.js +1 -1
  200. package/dist/commonjs/models/components/webhookendpointupdate.js.map +1 -1
  201. package/dist/commonjs/models/operations/benefitsupdate.d.ts +5 -4
  202. package/dist/commonjs/models/operations/benefitsupdate.d.ts.map +1 -1
  203. package/dist/commonjs/models/operations/benefitsupdate.js +3 -0
  204. package/dist/commonjs/models/operations/benefitsupdate.js.map +1 -1
  205. package/dist/commonjs/models/operations/customerslist.d.ts +2 -2
  206. package/dist/commonjs/models/operations/customerslist.d.ts.map +1 -1
  207. package/dist/commonjs/models/operations/customerslist.js +2 -2
  208. package/dist/commonjs/models/operations/customerslist.js.map +1 -1
  209. package/dist/commonjs/sdk/customers.d.ts +6 -6
  210. package/dist/commonjs/sdk/customers.d.ts.map +1 -1
  211. package/dist/esm/funcs/customersCreate.d.ts +2 -2
  212. package/dist/esm/funcs/customersCreate.d.ts.map +1 -1
  213. package/dist/esm/funcs/customersCreate.js +2 -2
  214. package/dist/esm/funcs/customersCreate.js.map +1 -1
  215. package/dist/esm/funcs/customersGet.d.ts +2 -2
  216. package/dist/esm/funcs/customersGet.d.ts.map +1 -1
  217. package/dist/esm/funcs/customersGet.js +2 -2
  218. package/dist/esm/funcs/customersGet.js.map +1 -1
  219. package/dist/esm/funcs/customersGetExternal.d.ts +2 -2
  220. package/dist/esm/funcs/customersGetExternal.d.ts.map +1 -1
  221. package/dist/esm/funcs/customersGetExternal.js +2 -2
  222. package/dist/esm/funcs/customersGetExternal.js.map +1 -1
  223. package/dist/esm/funcs/customersUpdate.d.ts +2 -2
  224. package/dist/esm/funcs/customersUpdate.d.ts.map +1 -1
  225. package/dist/esm/funcs/customersUpdate.js +2 -2
  226. package/dist/esm/funcs/customersUpdate.js.map +1 -1
  227. package/dist/esm/funcs/customersUpdateExternal.d.ts +2 -2
  228. package/dist/esm/funcs/customersUpdateExternal.d.ts.map +1 -1
  229. package/dist/esm/funcs/customersUpdateExternal.js +2 -2
  230. package/dist/esm/funcs/customersUpdateExternal.js.map +1 -1
  231. package/dist/esm/lib/config.d.ts +3 -3
  232. package/dist/esm/lib/config.js +3 -3
  233. package/dist/esm/models/components/benefit.d.ts +3 -2
  234. package/dist/esm/models/components/benefit.d.ts.map +1 -1
  235. package/dist/esm/models/components/benefit.js +3 -0
  236. package/dist/esm/models/components/benefit.js.map +1 -1
  237. package/dist/esm/models/components/benefitcreate.d.ts +3 -2
  238. package/dist/esm/models/components/benefitcreate.d.ts.map +1 -1
  239. package/dist/esm/models/components/benefitcreate.js +2 -0
  240. package/dist/esm/models/components/benefitcreate.js.map +1 -1
  241. package/dist/esm/models/components/benefitfeatureflag.d.ts +73 -0
  242. package/dist/esm/models/components/benefitfeatureflag.d.ts.map +1 -0
  243. package/dist/esm/models/components/benefitfeatureflag.js +53 -0
  244. package/dist/esm/models/components/benefitfeatureflag.js.map +1 -0
  245. package/dist/esm/models/components/benefitfeatureflagcreate.d.ts +58 -0
  246. package/dist/esm/models/components/benefitfeatureflagcreate.d.ts.map +1 -0
  247. package/dist/esm/models/components/benefitfeatureflagcreate.js +28 -0
  248. package/dist/esm/models/components/benefitfeatureflagcreate.js.map +1 -0
  249. package/dist/esm/models/components/benefitfeatureflagcreateproperties.d.ts +11 -0
  250. package/dist/esm/models/components/benefitfeatureflagcreateproperties.d.ts.map +1 -0
  251. package/dist/esm/models/components/benefitfeatureflagcreateproperties.js +10 -0
  252. package/dist/esm/models/components/benefitfeatureflagcreateproperties.js.map +1 -0
  253. package/dist/esm/models/components/benefitfeatureflagproperties.d.ts +16 -0
  254. package/dist/esm/models/components/benefitfeatureflagproperties.d.ts.map +1 -0
  255. package/dist/esm/models/components/benefitfeatureflagproperties.js +16 -0
  256. package/dist/esm/models/components/benefitfeatureflagproperties.js.map +1 -0
  257. package/dist/esm/models/components/benefitfeatureflagsubscriber.d.ts +49 -0
  258. package/dist/esm/models/components/benefitfeatureflagsubscriber.d.ts.map +1 -0
  259. package/dist/esm/models/components/benefitfeatureflagsubscriber.js +33 -0
  260. package/dist/esm/models/components/benefitfeatureflagsubscriber.js.map +1 -0
  261. package/dist/esm/models/components/benefitfeatureflagsubscriberproperties.d.ts +11 -0
  262. package/dist/esm/models/components/benefitfeatureflagsubscriberproperties.d.ts.map +1 -0
  263. package/dist/esm/models/components/benefitfeatureflagsubscriberproperties.js +11 -0
  264. package/dist/esm/models/components/benefitfeatureflagsubscriberproperties.js.map +1 -0
  265. package/dist/esm/models/components/benefitfeatureflagupdate.d.ts +47 -0
  266. package/dist/esm/models/components/benefitfeatureflagupdate.d.ts.map +1 -0
  267. package/dist/esm/models/components/benefitfeatureflagupdate.js +22 -0
  268. package/dist/esm/models/components/benefitfeatureflagupdate.js.map +1 -0
  269. package/dist/esm/models/components/benefitgrant.d.ts +3 -2
  270. package/dist/esm/models/components/benefitgrant.d.ts.map +1 -1
  271. package/dist/esm/models/components/benefitgrant.js +3 -0
  272. package/dist/esm/models/components/benefitgrant.js.map +1 -1
  273. package/dist/esm/models/components/benefitgrantfeatureflagproperties.d.ts +13 -0
  274. package/dist/esm/models/components/benefitgrantfeatureflagproperties.d.ts.map +1 -0
  275. package/dist/esm/models/components/benefitgrantfeatureflagproperties.js +16 -0
  276. package/dist/esm/models/components/benefitgrantfeatureflagproperties.js.map +1 -0
  277. package/dist/esm/models/components/benefitgrantfeatureflagwebhook.d.ts +106 -0
  278. package/dist/esm/models/components/benefitgrantfeatureflagwebhook.d.ts.map +1 -0
  279. package/dist/esm/models/components/benefitgrantfeatureflagwebhook.js +90 -0
  280. package/dist/esm/models/components/benefitgrantfeatureflagwebhook.js.map +1 -0
  281. package/dist/esm/models/components/benefitgrantwebhook.d.ts +3 -2
  282. package/dist/esm/models/components/benefitgrantwebhook.d.ts.map +1 -1
  283. package/dist/esm/models/components/benefitgrantwebhook.js +3 -0
  284. package/dist/esm/models/components/benefitgrantwebhook.js.map +1 -1
  285. package/dist/esm/models/components/benefittype.d.ts +1 -0
  286. package/dist/esm/models/components/benefittype.d.ts.map +1 -1
  287. package/dist/esm/models/components/benefittype.js +1 -0
  288. package/dist/esm/models/components/benefittype.js.map +1 -1
  289. package/dist/esm/models/components/cardpayment.d.ts +1 -1
  290. package/dist/esm/models/components/checkout.d.ts +0 -28
  291. package/dist/esm/models/components/checkout.d.ts.map +1 -1
  292. package/dist/esm/models/components/checkout.js +0 -34
  293. package/dist/esm/models/components/checkout.js.map +1 -1
  294. package/dist/esm/models/components/checkoutconfirmstripe.d.ts +0 -7
  295. package/dist/esm/models/components/checkoutconfirmstripe.d.ts.map +1 -1
  296. package/dist/esm/models/components/checkoutconfirmstripe.js +0 -2
  297. package/dist/esm/models/components/checkoutconfirmstripe.js.map +1 -1
  298. package/dist/esm/models/components/checkoutpublic.d.ts +0 -16
  299. package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
  300. package/dist/esm/models/components/checkoutpublic.js +0 -15
  301. package/dist/esm/models/components/checkoutpublic.js.map +1 -1
  302. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +0 -16
  303. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  304. package/dist/esm/models/components/checkoutpublicconfirmed.js +0 -15
  305. package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
  306. package/dist/esm/models/components/checkoutupdate.d.ts +0 -7
  307. package/dist/esm/models/components/checkoutupdate.d.ts.map +1 -1
  308. package/dist/esm/models/components/checkoutupdate.js +0 -2
  309. package/dist/esm/models/components/checkoutupdate.js.map +1 -1
  310. package/dist/esm/models/components/checkoutupdatepublic.d.ts +0 -7
  311. package/dist/esm/models/components/checkoutupdatepublic.d.ts.map +1 -1
  312. package/dist/esm/models/components/checkoutupdatepublic.js +0 -2
  313. package/dist/esm/models/components/checkoutupdatepublic.js.map +1 -1
  314. package/dist/esm/models/components/customer.d.ts +2 -2
  315. package/dist/esm/models/components/customer.d.ts.map +1 -1
  316. package/dist/esm/models/components/customer.js +2 -2
  317. package/dist/esm/models/components/customer.js.map +1 -1
  318. package/dist/esm/models/components/customerbenefitgrant.d.ts +2 -1
  319. package/dist/esm/models/components/customerbenefitgrant.d.ts.map +1 -1
  320. package/dist/esm/models/components/customerbenefitgrant.js +2 -0
  321. package/dist/esm/models/components/customerbenefitgrant.js.map +1 -1
  322. package/dist/esm/models/components/customerbenefitgrantfeatureflag.d.ts +38 -0
  323. package/dist/esm/models/components/customerbenefitgrantfeatureflag.d.ts.map +1 -0
  324. package/dist/esm/models/components/customerbenefitgrantfeatureflag.js +47 -0
  325. package/dist/esm/models/components/customerbenefitgrantfeatureflag.js.map +1 -0
  326. package/dist/esm/models/components/customerbenefitgrantfeatureflagupdate.d.ts +12 -0
  327. package/dist/esm/models/components/customerbenefitgrantfeatureflagupdate.d.ts.map +1 -0
  328. package/dist/esm/models/components/customerbenefitgrantfeatureflagupdate.js +17 -0
  329. package/dist/esm/models/components/customerbenefitgrantfeatureflagupdate.js.map +1 -0
  330. package/dist/esm/models/components/customerbenefitgrantupdate.d.ts +3 -2
  331. package/dist/esm/models/components/customerbenefitgrantupdate.d.ts.map +1 -1
  332. package/dist/esm/models/components/customerbenefitgrantupdate.js +2 -0
  333. package/dist/esm/models/components/customerbenefitgrantupdate.js.map +1 -1
  334. package/dist/esm/models/components/customerorder.d.ts +0 -4
  335. package/dist/esm/models/components/customerorder.d.ts.map +1 -1
  336. package/dist/esm/models/components/customerorder.js +0 -2
  337. package/dist/esm/models/components/customerorder.js.map +1 -1
  338. package/dist/esm/models/components/customerstate.d.ts +2 -2
  339. package/dist/esm/models/components/customerstate.d.ts.map +1 -1
  340. package/dist/esm/models/components/customerstate.js +2 -2
  341. package/dist/esm/models/components/customerstate.js.map +1 -1
  342. package/dist/esm/models/components/customerstatebenefitgrant.d.ts +5 -4
  343. package/dist/esm/models/components/customerstatebenefitgrant.d.ts.map +1 -1
  344. package/dist/esm/models/components/customerstatebenefitgrant.js +5 -0
  345. package/dist/esm/models/components/customerstatebenefitgrant.js.map +1 -1
  346. package/dist/esm/models/components/genericpayment.d.ts +1 -1
  347. package/dist/esm/models/components/licensekeycustomer.d.ts +1 -1
  348. package/dist/esm/models/components/licensekeycustomer.d.ts.map +1 -1
  349. package/dist/esm/models/components/licensekeycustomer.js +1 -1
  350. package/dist/esm/models/components/licensekeycustomer.js.map +1 -1
  351. package/dist/esm/models/components/listresourcecustomer.d.ts +13 -0
  352. package/dist/esm/models/components/listresourcecustomer.d.ts.map +1 -0
  353. package/dist/esm/models/components/listresourcecustomer.js +16 -0
  354. package/dist/esm/models/components/listresourcecustomer.js.map +1 -0
  355. package/dist/esm/models/components/order.d.ts +0 -5
  356. package/dist/esm/models/components/order.d.ts.map +1 -1
  357. package/dist/esm/models/components/order.js +0 -4
  358. package/dist/esm/models/components/order.js.map +1 -1
  359. package/dist/esm/models/components/ordercustomer.d.ts +2 -2
  360. package/dist/esm/models/components/ordercustomer.d.ts.map +1 -1
  361. package/dist/esm/models/components/ordercustomer.js +2 -2
  362. package/dist/esm/models/components/ordercustomer.js.map +1 -1
  363. package/dist/esm/models/components/orderstatus.d.ts +1 -0
  364. package/dist/esm/models/components/orderstatus.d.ts.map +1 -1
  365. package/dist/esm/models/components/orderstatus.js +1 -0
  366. package/dist/esm/models/components/orderstatus.js.map +1 -1
  367. package/dist/esm/models/components/organizationfeaturesettings.d.ts +0 -5
  368. package/dist/esm/models/components/organizationfeaturesettings.d.ts.map +1 -1
  369. package/dist/esm/models/components/organizationfeaturesettings.js +0 -4
  370. package/dist/esm/models/components/organizationfeaturesettings.js.map +1 -1
  371. package/dist/esm/models/components/organizationsocialplatforms.d.ts +2 -0
  372. package/dist/esm/models/components/organizationsocialplatforms.d.ts.map +1 -1
  373. package/dist/esm/models/components/organizationsocialplatforms.js +2 -0
  374. package/dist/esm/models/components/organizationsocialplatforms.js.map +1 -1
  375. package/dist/esm/models/components/productpricecustom.d.ts +0 -9
  376. package/dist/esm/models/components/productpricecustom.d.ts.map +1 -1
  377. package/dist/esm/models/components/productpricecustom.js +0 -8
  378. package/dist/esm/models/components/productpricecustom.js.map +1 -1
  379. package/dist/esm/models/components/productpricefixed.d.ts +0 -9
  380. package/dist/esm/models/components/productpricefixed.d.ts.map +1 -1
  381. package/dist/esm/models/components/productpricefixed.js +0 -8
  382. package/dist/esm/models/components/productpricefixed.js.map +1 -1
  383. package/dist/esm/models/components/productpricefree.d.ts +0 -9
  384. package/dist/esm/models/components/productpricefree.d.ts.map +1 -1
  385. package/dist/esm/models/components/productpricefree.js +0 -8
  386. package/dist/esm/models/components/productpricefree.js.map +1 -1
  387. package/dist/esm/models/components/productpricemeteredunit.d.ts +0 -9
  388. package/dist/esm/models/components/productpricemeteredunit.d.ts.map +1 -1
  389. package/dist/esm/models/components/productpricemeteredunit.js +0 -8
  390. package/dist/esm/models/components/productpricemeteredunit.js.map +1 -1
  391. package/dist/esm/models/components/productpriceseatbased.d.ts +0 -9
  392. package/dist/esm/models/components/productpriceseatbased.d.ts.map +1 -1
  393. package/dist/esm/models/components/productpriceseatbased.js +0 -8
  394. package/dist/esm/models/components/productpriceseatbased.js.map +1 -1
  395. package/dist/esm/models/components/subscriptioncustomer.d.ts +2 -2
  396. package/dist/esm/models/components/subscriptioncustomer.d.ts.map +1 -1
  397. package/dist/esm/models/components/subscriptioncustomer.js +2 -2
  398. package/dist/esm/models/components/subscriptioncustomer.js.map +1 -1
  399. package/dist/esm/models/components/webhookendpoint.d.ts +4 -0
  400. package/dist/esm/models/components/webhookendpoint.d.ts.map +1 -1
  401. package/dist/esm/models/components/webhookendpoint.js +1 -0
  402. package/dist/esm/models/components/webhookendpoint.js.map +1 -1
  403. package/dist/esm/models/components/webhookendpointcreate.d.ts +3 -3
  404. package/dist/esm/models/components/webhookendpointcreate.d.ts.map +1 -1
  405. package/dist/esm/models/components/webhookendpointcreate.js +1 -1
  406. package/dist/esm/models/components/webhookendpointcreate.js.map +1 -1
  407. package/dist/esm/models/components/webhookendpointupdate.d.ts +3 -3
  408. package/dist/esm/models/components/webhookendpointupdate.d.ts.map +1 -1
  409. package/dist/esm/models/components/webhookendpointupdate.js +1 -1
  410. package/dist/esm/models/components/webhookendpointupdate.js.map +1 -1
  411. package/dist/esm/models/operations/benefitsupdate.d.ts +5 -4
  412. package/dist/esm/models/operations/benefitsupdate.d.ts.map +1 -1
  413. package/dist/esm/models/operations/benefitsupdate.js +3 -0
  414. package/dist/esm/models/operations/benefitsupdate.js.map +1 -1
  415. package/dist/esm/models/operations/customerslist.d.ts +2 -2
  416. package/dist/esm/models/operations/customerslist.d.ts.map +1 -1
  417. package/dist/esm/models/operations/customerslist.js +2 -2
  418. package/dist/esm/models/operations/customerslist.js.map +1 -1
  419. package/dist/esm/sdk/customers.d.ts +6 -6
  420. package/dist/esm/sdk/customers.d.ts.map +1 -1
  421. package/jsr.json +1 -1
  422. package/package.json +1 -1
  423. package/src/funcs/customersCreate.ts +8 -8
  424. package/src/funcs/customersGet.ts +7 -7
  425. package/src/funcs/customersGetExternal.ts +7 -7
  426. package/src/funcs/customersUpdate.ts +7 -7
  427. package/src/funcs/customersUpdateExternal.ts +7 -7
  428. package/src/lib/config.ts +3 -3
  429. package/src/models/components/benefit.ts +10 -0
  430. package/src/models/components/benefitcreate.ts +8 -0
  431. package/src/models/components/benefitfeatureflag.ts +153 -0
  432. package/src/models/components/benefitfeatureflagcreate.ts +117 -0
  433. package/src/models/components/benefitfeatureflagcreateproperties.ts +29 -0
  434. package/src/models/components/benefitfeatureflagproperties.ts +46 -0
  435. package/src/models/components/benefitfeatureflagsubscriber.ts +101 -0
  436. package/src/models/components/benefitfeatureflagsubscriberproperties.ts +28 -0
  437. package/src/models/components/benefitfeatureflagupdate.ts +99 -0
  438. package/src/models/components/benefitgrant.ts +10 -2
  439. package/src/models/components/benefitgrantfeatureflagproperties.ts +43 -0
  440. package/src/models/components/benefitgrantfeatureflagwebhook.ts +262 -0
  441. package/src/models/components/benefitgrantwebhook.ts +12 -2
  442. package/src/models/components/benefittype.ts +1 -0
  443. package/src/models/components/cardpayment.ts +1 -1
  444. package/src/models/components/checkout.ts +0 -85
  445. package/src/models/components/checkoutconfirmstripe.ts +0 -9
  446. package/src/models/components/checkoutpublic.ts +0 -44
  447. package/src/models/components/checkoutpublicconfirmed.ts +0 -45
  448. package/src/models/components/checkoutupdate.ts +0 -9
  449. package/src/models/components/checkoutupdatepublic.ts +0 -9
  450. package/src/models/components/customer.ts +4 -4
  451. package/src/models/components/customerbenefitgrant.ts +7 -1
  452. package/src/models/components/customerbenefitgrantfeatureflag.ts +112 -0
  453. package/src/models/components/customerbenefitgrantfeatureflagupdate.ts +41 -0
  454. package/src/models/components/customerbenefitgrantupdate.ts +8 -0
  455. package/src/models/components/customerorder.ts +0 -6
  456. package/src/models/components/customerstate.ts +4 -4
  457. package/src/models/components/customerstatebenefitgrant.ts +18 -4
  458. package/src/models/components/genericpayment.ts +1 -1
  459. package/src/models/components/licensekeycustomer.ts +2 -2
  460. package/src/models/components/listresourcecustomer.ts +34 -0
  461. package/src/models/components/order.ts +0 -9
  462. package/src/models/components/ordercustomer.ts +4 -4
  463. package/src/models/components/orderstatus.ts +1 -0
  464. package/src/models/components/organizationfeaturesettings.ts +0 -9
  465. package/src/models/components/organizationsocialplatforms.ts +2 -0
  466. package/src/models/components/productpricecustom.ts +0 -23
  467. package/src/models/components/productpricefixed.ts +0 -23
  468. package/src/models/components/productpricefree.ts +0 -23
  469. package/src/models/components/productpricemeteredunit.ts +0 -23
  470. package/src/models/components/productpriceseatbased.ts +0 -23
  471. package/src/models/components/subscriptioncustomer.ts +4 -4
  472. package/src/models/components/webhookendpoint.ts +5 -0
  473. package/src/models/components/webhookendpointcreate.ts +4 -4
  474. package/src/models/components/webhookendpointupdate.ts +4 -4
  475. package/src/models/operations/benefitsupdate.ts +15 -4
  476. package/src/models/operations/customerslist.ts +5 -5
  477. package/src/sdk/customers.ts +6 -6
  478. package/.devcontainer/devcontainer.json +0 -45
  479. package/_speakeasy/.github/action-inputs-config.json +0 -53
  480. package/_speakeasy/.github/action-security-config.json +0 -88
  481. package/dist/commonjs/models/components/customerwithmembers.d.ts +0 -72
  482. package/dist/commonjs/models/components/customerwithmembers.d.ts.map +0 -1
  483. package/dist/commonjs/models/components/customerwithmembers.js.map +0 -1
  484. package/dist/commonjs/models/components/listresourcecustomerwithmembers.d.ts +0 -13
  485. package/dist/commonjs/models/components/listresourcecustomerwithmembers.d.ts.map +0 -1
  486. package/dist/commonjs/models/components/listresourcecustomerwithmembers.js.map +0 -1
  487. package/dist/commonjs/models/components/productpricetype.d.ts +0 -12
  488. package/dist/commonjs/models/components/productpricetype.d.ts.map +0 -1
  489. package/dist/commonjs/models/components/productpricetype.js.map +0 -1
  490. package/dist/esm/models/components/customerwithmembers.d.ts +0 -72
  491. package/dist/esm/models/components/customerwithmembers.d.ts.map +0 -1
  492. package/dist/esm/models/components/customerwithmembers.js +0 -52
  493. package/dist/esm/models/components/customerwithmembers.js.map +0 -1
  494. package/dist/esm/models/components/listresourcecustomerwithmembers.d.ts +0 -13
  495. package/dist/esm/models/components/listresourcecustomerwithmembers.d.ts.map +0 -1
  496. package/dist/esm/models/components/listresourcecustomerwithmembers.js +0 -16
  497. package/dist/esm/models/components/listresourcecustomerwithmembers.js.map +0 -1
  498. package/dist/esm/models/components/productpricetype.d.ts +0 -12
  499. package/dist/esm/models/components/productpricetype.d.ts.map +0 -1
  500. package/dist/esm/models/components/productpricetype.js +0 -13
  501. package/dist/esm/models/components/productpricetype.js.map +0 -1
  502. package/examples/package-lock.json +0 -616
  503. package/examples/package.json +0 -18
  504. package/src/models/components/customerwithmembers.ts +0 -148
  505. package/src/models/components/listresourcecustomerwithmembers.ts +0 -37
  506. package/src/models/components/productpricetype.ts +0 -24
  507. package/tsconfig.json +0 -40
@@ -92,8 +92,6 @@ import {
92
92
 
93
93
  export type CheckoutCustomFieldData = string | number | boolean | Date;
94
94
 
95
- export type CheckoutProductPrice = LegacyRecurringProductPrice | ProductPrice;
96
-
97
95
  export type CheckoutPrices = LegacyRecurringProductPrice | ProductPrice;
98
96
 
99
97
  export type CheckoutDiscount =
@@ -208,12 +206,6 @@ export type Checkout = {
208
206
  * ID of the product to checkout.
209
207
  */
210
208
  productId: string | null;
211
- /**
212
- * ID of the product price to checkout.
213
- *
214
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
215
- */
216
- productPriceId: string | null;
217
209
  /**
218
210
  * ID of the discount applied to the checkout.
219
211
  */
@@ -279,10 +271,6 @@ export type Checkout = {
279
271
  * ID of the customer in your system. If a matching customer exists on Polar, the resulting order will be linked to this customer. Otherwise, a new customer will be created with this external ID set.
280
272
  */
281
273
  externalCustomerId: string | null;
282
- /**
283
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
284
- */
285
- customerExternalId: string | null;
286
274
  /**
287
275
  * List of products available to select.
288
276
  */
@@ -291,12 +279,6 @@ export type Checkout = {
291
279
  * Product selected to checkout.
292
280
  */
293
281
  product: CheckoutProduct | null;
294
- /**
295
- * Price of the selected product.
296
- *
297
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
298
- */
299
- productPrice: LegacyRecurringProductPrice | ProductPrice | null;
300
282
  /**
301
283
  * Mapping of product IDs to their list of prices.
302
284
  */
@@ -359,45 +341,6 @@ export function checkoutCustomFieldDataFromJSON(
359
341
  );
360
342
  }
361
343
 
362
- /** @internal */
363
- export const CheckoutProductPrice$inboundSchema: z.ZodMiniType<
364
- CheckoutProductPrice,
365
- unknown
366
- > = smartUnion([
367
- LegacyRecurringProductPrice$inboundSchema,
368
- ProductPrice$inboundSchema,
369
- ]);
370
- /** @internal */
371
- export type CheckoutProductPrice$Outbound =
372
- | LegacyRecurringProductPrice$Outbound
373
- | ProductPrice$Outbound;
374
-
375
- /** @internal */
376
- export const CheckoutProductPrice$outboundSchema: z.ZodMiniType<
377
- CheckoutProductPrice$Outbound,
378
- CheckoutProductPrice
379
- > = smartUnion([
380
- LegacyRecurringProductPrice$outboundSchema,
381
- ProductPrice$outboundSchema,
382
- ]);
383
-
384
- export function checkoutProductPriceToJSON(
385
- checkoutProductPrice: CheckoutProductPrice,
386
- ): string {
387
- return JSON.stringify(
388
- CheckoutProductPrice$outboundSchema.parse(checkoutProductPrice),
389
- );
390
- }
391
- export function checkoutProductPriceFromJSON(
392
- jsonString: string,
393
- ): SafeParseResult<CheckoutProductPrice, SDKValidationError> {
394
- return safeParse(
395
- jsonString,
396
- (x) => CheckoutProductPrice$inboundSchema.parse(JSON.parse(x)),
397
- `Failed to parse 'CheckoutProductPrice' from JSON`,
398
- );
399
- }
400
-
401
344
  /** @internal */
402
345
  export const CheckoutPrices$inboundSchema: z.ZodMiniType<
403
346
  CheckoutPrices,
@@ -563,7 +506,6 @@ export const Checkout$inboundSchema: z.ZodMiniType<Checkout, unknown> = z.pipe(
563
506
  ),
564
507
  organization_id: z.string(),
565
508
  product_id: z.nullable(z.string()),
566
- product_price_id: z.nullable(z.string()),
567
509
  discount_id: z.nullable(z.string()),
568
510
  allow_discount_codes: z.boolean(),
569
511
  require_billing_address: z.boolean(),
@@ -587,15 +529,8 @@ export const Checkout$inboundSchema: z.ZodMiniType<Checkout, unknown> = z.pipe(
587
529
  trial_interval_count: z.nullable(z.int()),
588
530
  metadata: z.record(z.string(), MetadataOutputType$inboundSchema),
589
531
  external_customer_id: z.nullable(z.string()),
590
- customer_external_id: z.nullable(z.string()),
591
532
  products: z.array(CheckoutProduct$inboundSchema),
592
533
  product: z.nullable(CheckoutProduct$inboundSchema),
593
- product_price: z.nullable(
594
- smartUnion([
595
- LegacyRecurringProductPrice$inboundSchema,
596
- ProductPrice$inboundSchema,
597
- ]),
598
- ),
599
534
  prices: z.nullable(
600
535
  z.record(
601
536
  z.string(),
@@ -646,7 +581,6 @@ export const Checkout$inboundSchema: z.ZodMiniType<Checkout, unknown> = z.pipe(
646
581
  "trial_end": "trialEnd",
647
582
  "organization_id": "organizationId",
648
583
  "product_id": "productId",
649
- "product_price_id": "productPriceId",
650
584
  "discount_id": "discountId",
651
585
  "allow_discount_codes": "allowDiscountCodes",
652
586
  "require_billing_address": "requireBillingAddress",
@@ -668,8 +602,6 @@ export const Checkout$inboundSchema: z.ZodMiniType<Checkout, unknown> = z.pipe(
668
602
  "trial_interval": "trialInterval",
669
603
  "trial_interval_count": "trialIntervalCount",
670
604
  "external_customer_id": "externalCustomerId",
671
- "customer_external_id": "customerExternalId",
672
- "product_price": "productPrice",
673
605
  "subscription_id": "subscriptionId",
674
606
  "attached_custom_fields": "attachedCustomFields",
675
607
  "customer_metadata": "customerMetadata",
@@ -706,7 +638,6 @@ export type Checkout$Outbound = {
706
638
  trial_end: string | null;
707
639
  organization_id: string;
708
640
  product_id: string | null;
709
- product_price_id: string | null;
710
641
  discount_id: string | null;
711
642
  allow_discount_codes: boolean;
712
643
  require_billing_address: boolean;
@@ -730,13 +661,8 @@ export type Checkout$Outbound = {
730
661
  trial_interval_count: number | null;
731
662
  metadata: { [k: string]: MetadataOutputType$Outbound };
732
663
  external_customer_id: string | null;
733
- customer_external_id: string | null;
734
664
  products: Array<CheckoutProduct$Outbound>;
735
665
  product: CheckoutProduct$Outbound | null;
736
- product_price:
737
- | LegacyRecurringProductPrice$Outbound
738
- | ProductPrice$Outbound
739
- | null;
740
666
  prices: {
741
667
  [k: string]: Array<
742
668
  LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound
@@ -797,7 +723,6 @@ export const Checkout$outboundSchema: z.ZodMiniType<
797
723
  trialEnd: z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString()))),
798
724
  organizationId: z.string(),
799
725
  productId: z.nullable(z.string()),
800
- productPriceId: z.nullable(z.string()),
801
726
  discountId: z.nullable(z.string()),
802
727
  allowDiscountCodes: z.boolean(),
803
728
  requireBillingAddress: z.boolean(),
@@ -821,15 +746,8 @@ export const Checkout$outboundSchema: z.ZodMiniType<
821
746
  trialIntervalCount: z.nullable(z.int()),
822
747
  metadata: z.record(z.string(), MetadataOutputType$outboundSchema),
823
748
  externalCustomerId: z.nullable(z.string()),
824
- customerExternalId: z.nullable(z.string()),
825
749
  products: z.array(CheckoutProduct$outboundSchema),
826
750
  product: z.nullable(CheckoutProduct$outboundSchema),
827
- productPrice: z.nullable(
828
- smartUnion([
829
- LegacyRecurringProductPrice$outboundSchema,
830
- ProductPrice$outboundSchema,
831
- ]),
832
- ),
833
751
  prices: z.nullable(
834
752
  z.record(
835
753
  z.string(),
@@ -880,7 +798,6 @@ export const Checkout$outboundSchema: z.ZodMiniType<
880
798
  trialEnd: "trial_end",
881
799
  organizationId: "organization_id",
882
800
  productId: "product_id",
883
- productPriceId: "product_price_id",
884
801
  discountId: "discount_id",
885
802
  allowDiscountCodes: "allow_discount_codes",
886
803
  requireBillingAddress: "require_billing_address",
@@ -902,8 +819,6 @@ export const Checkout$outboundSchema: z.ZodMiniType<
902
819
  trialInterval: "trial_interval",
903
820
  trialIntervalCount: "trial_interval_count",
904
821
  externalCustomerId: "external_customer_id",
905
- customerExternalId: "customer_external_id",
906
- productPrice: "product_price",
907
822
  subscriptionId: "subscription_id",
908
823
  attachedCustomFields: "attached_custom_fields",
909
824
  customerMetadata: "customer_metadata",
@@ -31,12 +31,6 @@ export type CheckoutConfirmStripe = {
31
31
  * ID of the product to checkout. Must be present in the checkout's product list.
32
32
  */
33
33
  productId?: string | null | undefined;
34
- /**
35
- * ID of the product price to checkout. Must correspond to a price present in the checkout's product list.
36
- *
37
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
38
- */
39
- productPriceId?: string | null | undefined;
40
34
  amount?: number | null | undefined;
41
35
  /**
42
36
  * Number of seats for seat-based pricing.
@@ -97,7 +91,6 @@ export type CheckoutConfirmStripe$Outbound = {
97
91
  | { [k: string]: string | number | boolean | string | null }
98
92
  | undefined;
99
93
  product_id?: string | null | undefined;
100
- product_price_id?: string | null | undefined;
101
94
  amount?: number | null | undefined;
102
95
  seats?: number | null | undefined;
103
96
  is_business_customer?: boolean | null | undefined;
@@ -132,7 +125,6 @@ export const CheckoutConfirmStripe$outboundSchema: z.ZodMiniType<
132
125
  ),
133
126
  ),
134
127
  productId: z.optional(z.nullable(z.string())),
135
- productPriceId: z.optional(z.nullable(z.string())),
136
128
  amount: z.optional(z.nullable(z.int())),
137
129
  seats: z.optional(z.nullable(z.int())),
138
130
  isBusinessCustomer: z.optional(z.nullable(z.boolean())),
@@ -150,7 +142,6 @@ export const CheckoutConfirmStripe$outboundSchema: z.ZodMiniType<
150
142
  return remap$(v, {
151
143
  customFieldData: "custom_field_data",
152
144
  productId: "product_id",
153
- productPriceId: "product_price_id",
154
145
  isBusinessCustomer: "is_business_customer",
155
146
  customerName: "customer_name",
156
147
  customerEmail: "customer_email",
@@ -58,10 +58,6 @@ import { TrialInterval, TrialInterval$inboundSchema } from "./trialinterval.js";
58
58
 
59
59
  export type CheckoutPublicCustomFieldData = string | number | boolean | Date;
60
60
 
61
- export type CheckoutPublicProductPrice =
62
- | LegacyRecurringProductPrice
63
- | ProductPrice;
64
-
65
61
  export type CheckoutPublicPrices = LegacyRecurringProductPrice | ProductPrice;
66
62
 
67
63
  export type CheckoutPublicDiscount =
@@ -174,12 +170,6 @@ export type CheckoutPublic = {
174
170
  * ID of the product to checkout.
175
171
  */
176
172
  productId: string | null;
177
- /**
178
- * ID of the product price to checkout.
179
- *
180
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
181
- */
182
- productPriceId: string | null;
183
173
  /**
184
174
  * ID of the discount applied to the checkout.
185
175
  */
@@ -240,12 +230,6 @@ export type CheckoutPublic = {
240
230
  * Product selected to checkout.
241
231
  */
242
232
  product: CheckoutProduct | null;
243
- /**
244
- * Price of the selected product.
245
- *
246
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
247
- */
248
- productPrice: LegacyRecurringProductPrice | ProductPrice | null;
249
233
  /**
250
234
  * Mapping of product IDs to their list of prices.
251
235
  */
@@ -283,25 +267,6 @@ export function checkoutPublicCustomFieldDataFromJSON(
283
267
  );
284
268
  }
285
269
 
286
- /** @internal */
287
- export const CheckoutPublicProductPrice$inboundSchema: z.ZodMiniType<
288
- CheckoutPublicProductPrice,
289
- unknown
290
- > = smartUnion([
291
- LegacyRecurringProductPrice$inboundSchema,
292
- ProductPrice$inboundSchema,
293
- ]);
294
-
295
- export function checkoutPublicProductPriceFromJSON(
296
- jsonString: string,
297
- ): SafeParseResult<CheckoutPublicProductPrice, SDKValidationError> {
298
- return safeParse(
299
- jsonString,
300
- (x) => CheckoutPublicProductPrice$inboundSchema.parse(JSON.parse(x)),
301
- `Failed to parse 'CheckoutPublicProductPrice' from JSON`,
302
- );
303
- }
304
-
305
270
  /** @internal */
306
271
  export const CheckoutPublicPrices$inboundSchema: z.ZodMiniType<
307
272
  CheckoutPublicPrices,
@@ -399,7 +364,6 @@ export const CheckoutPublic$inboundSchema: z.ZodMiniType<
399
364
  ),
400
365
  organization_id: z.string(),
401
366
  product_id: z.nullable(z.string()),
402
- product_price_id: z.nullable(z.string()),
403
367
  discount_id: z.nullable(z.string()),
404
368
  allow_discount_codes: z.boolean(),
405
369
  require_billing_address: z.boolean(),
@@ -421,12 +385,6 @@ export const CheckoutPublic$inboundSchema: z.ZodMiniType<
421
385
  billing_address_fields: CheckoutBillingAddressFields$inboundSchema,
422
386
  products: z.array(CheckoutProduct$inboundSchema),
423
387
  product: z.nullable(CheckoutProduct$inboundSchema),
424
- product_price: z.nullable(
425
- smartUnion([
426
- LegacyRecurringProductPrice$inboundSchema,
427
- ProductPrice$inboundSchema,
428
- ]),
429
- ),
430
388
  prices: z.nullable(
431
389
  z.record(
432
390
  z.string(),
@@ -473,7 +431,6 @@ export const CheckoutPublic$inboundSchema: z.ZodMiniType<
473
431
  "trial_end": "trialEnd",
474
432
  "organization_id": "organizationId",
475
433
  "product_id": "productId",
476
- "product_price_id": "productPriceId",
477
434
  "discount_id": "discountId",
478
435
  "allow_discount_codes": "allowDiscountCodes",
479
436
  "require_billing_address": "requireBillingAddress",
@@ -492,7 +449,6 @@ export const CheckoutPublic$inboundSchema: z.ZodMiniType<
492
449
  "customer_tax_id": "customerTaxId",
493
450
  "payment_processor_metadata": "paymentProcessorMetadata",
494
451
  "billing_address_fields": "billingAddressFields",
495
- "product_price": "productPrice",
496
452
  "attached_custom_fields": "attachedCustomFields",
497
453
  });
498
454
  }),
@@ -58,10 +58,6 @@ export type CheckoutPublicConfirmedCustomFieldData =
58
58
  | boolean
59
59
  | Date;
60
60
 
61
- export type CheckoutPublicConfirmedProductPrice =
62
- | LegacyRecurringProductPrice
63
- | ProductPrice;
64
-
65
61
  export type CheckoutPublicConfirmedPrices =
66
62
  | LegacyRecurringProductPrice
67
63
  | ProductPrice;
@@ -181,12 +177,6 @@ export type CheckoutPublicConfirmed = {
181
177
  * ID of the product to checkout.
182
178
  */
183
179
  productId: string | null;
184
- /**
185
- * ID of the product price to checkout.
186
- *
187
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
188
- */
189
- productPriceId: string | null;
190
180
  /**
191
181
  * ID of the discount applied to the checkout.
192
182
  */
@@ -247,12 +237,6 @@ export type CheckoutPublicConfirmed = {
247
237
  * Product selected to checkout.
248
238
  */
249
239
  product: CheckoutProduct | null;
250
- /**
251
- * Price of the selected product.
252
- *
253
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
254
- */
255
- productPrice: LegacyRecurringProductPrice | ProductPrice | null;
256
240
  /**
257
241
  * Mapping of product IDs to their list of prices.
258
242
  */
@@ -290,26 +274,6 @@ export function checkoutPublicConfirmedCustomFieldDataFromJSON(
290
274
  );
291
275
  }
292
276
 
293
- /** @internal */
294
- export const CheckoutPublicConfirmedProductPrice$inboundSchema: z.ZodMiniType<
295
- CheckoutPublicConfirmedProductPrice,
296
- unknown
297
- > = smartUnion([
298
- LegacyRecurringProductPrice$inboundSchema,
299
- ProductPrice$inboundSchema,
300
- ]);
301
-
302
- export function checkoutPublicConfirmedProductPriceFromJSON(
303
- jsonString: string,
304
- ): SafeParseResult<CheckoutPublicConfirmedProductPrice, SDKValidationError> {
305
- return safeParse(
306
- jsonString,
307
- (x) =>
308
- CheckoutPublicConfirmedProductPrice$inboundSchema.parse(JSON.parse(x)),
309
- `Failed to parse 'CheckoutPublicConfirmedProductPrice' from JSON`,
310
- );
311
- }
312
-
313
277
  /** @internal */
314
278
  export const CheckoutPublicConfirmedPrices$inboundSchema: z.ZodMiniType<
315
279
  CheckoutPublicConfirmedPrices,
@@ -407,7 +371,6 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodMiniType<
407
371
  ),
408
372
  organization_id: z.string(),
409
373
  product_id: z.nullable(z.string()),
410
- product_price_id: z.nullable(z.string()),
411
374
  discount_id: z.nullable(z.string()),
412
375
  allow_discount_codes: z.boolean(),
413
376
  require_billing_address: z.boolean(),
@@ -429,12 +392,6 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodMiniType<
429
392
  billing_address_fields: CheckoutBillingAddressFields$inboundSchema,
430
393
  products: z.array(CheckoutProduct$inboundSchema),
431
394
  product: z.nullable(CheckoutProduct$inboundSchema),
432
- product_price: z.nullable(
433
- smartUnion([
434
- LegacyRecurringProductPrice$inboundSchema,
435
- ProductPrice$inboundSchema,
436
- ]),
437
- ),
438
395
  prices: z.nullable(
439
396
  z.record(
440
397
  z.string(),
@@ -482,7 +439,6 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodMiniType<
482
439
  "trial_end": "trialEnd",
483
440
  "organization_id": "organizationId",
484
441
  "product_id": "productId",
485
- "product_price_id": "productPriceId",
486
442
  "discount_id": "discountId",
487
443
  "allow_discount_codes": "allowDiscountCodes",
488
444
  "require_billing_address": "requireBillingAddress",
@@ -501,7 +457,6 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodMiniType<
501
457
  "customer_tax_id": "customerTaxId",
502
458
  "payment_processor_metadata": "paymentProcessorMetadata",
503
459
  "billing_address_fields": "billingAddressFields",
504
- "product_price": "productPrice",
505
460
  "attached_custom_fields": "attachedCustomFields",
506
461
  "customer_session_token": "customerSessionToken",
507
462
  });
@@ -39,12 +39,6 @@ export type CheckoutUpdate = {
39
39
  * ID of the product to checkout. Must be present in the checkout's product list.
40
40
  */
41
41
  productId?: string | null | undefined;
42
- /**
43
- * ID of the product price to checkout. Must correspond to a price present in the checkout's product list.
44
- *
45
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
46
- */
47
- productPriceId?: string | null | undefined;
48
42
  amount?: number | null | undefined;
49
43
  /**
50
44
  * Number of seats for seat-based pricing.
@@ -210,7 +204,6 @@ export type CheckoutUpdate$Outbound = {
210
204
  | { [k: string]: string | number | boolean | string | null }
211
205
  | undefined;
212
206
  product_id?: string | null | undefined;
213
- product_price_id?: string | null | undefined;
214
207
  amount?: number | null | undefined;
215
208
  seats?: number | null | undefined;
216
209
  is_business_customer?: boolean | null | undefined;
@@ -258,7 +251,6 @@ export const CheckoutUpdate$outboundSchema: z.ZodMiniType<
258
251
  ),
259
252
  ),
260
253
  productId: z.optional(z.nullable(z.string())),
261
- productPriceId: z.optional(z.nullable(z.string())),
262
254
  amount: z.optional(z.nullable(z.int())),
263
255
  seats: z.optional(z.nullable(z.int())),
264
256
  isBusinessCustomer: z.optional(z.nullable(z.boolean())),
@@ -298,7 +290,6 @@ export const CheckoutUpdate$outboundSchema: z.ZodMiniType<
298
290
  return remap$(v, {
299
291
  customFieldData: "custom_field_data",
300
292
  productId: "product_id",
301
- productPriceId: "product_price_id",
302
293
  isBusinessCustomer: "is_business_customer",
303
294
  customerName: "customer_name",
304
295
  customerEmail: "customer_email",
@@ -31,12 +31,6 @@ export type CheckoutUpdatePublic = {
31
31
  * ID of the product to checkout. Must be present in the checkout's product list.
32
32
  */
33
33
  productId?: string | null | undefined;
34
- /**
35
- * ID of the product price to checkout. Must correspond to a price present in the checkout's product list.
36
- *
37
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
38
- */
39
- productPriceId?: string | null | undefined;
40
34
  amount?: number | null | undefined;
41
35
  /**
42
36
  * Number of seats for seat-based pricing.
@@ -93,7 +87,6 @@ export type CheckoutUpdatePublic$Outbound = {
93
87
  | { [k: string]: string | number | boolean | string | null }
94
88
  | undefined;
95
89
  product_id?: string | null | undefined;
96
- product_price_id?: string | null | undefined;
97
90
  amount?: number | null | undefined;
98
91
  seats?: number | null | undefined;
99
92
  is_business_customer?: boolean | null | undefined;
@@ -127,7 +120,6 @@ export const CheckoutUpdatePublic$outboundSchema: z.ZodMiniType<
127
120
  ),
128
121
  ),
129
122
  productId: z.optional(z.nullable(z.string())),
130
- productPriceId: z.optional(z.nullable(z.string())),
131
123
  amount: z.optional(z.nullable(z.int())),
132
124
  seats: z.optional(z.nullable(z.int())),
133
125
  isBusinessCustomer: z.optional(z.nullable(z.boolean())),
@@ -144,7 +136,6 @@ export const CheckoutUpdatePublic$outboundSchema: z.ZodMiniType<
144
136
  return remap$(v, {
145
137
  customFieldData: "custom_field_data",
146
138
  productId: "product_id",
147
- productPriceId: "product_price_id",
148
139
  isBusinessCustomer: "is_business_customer",
149
140
  customerName: "customer_name",
150
141
  customerEmail: "customer_email",
@@ -53,7 +53,7 @@ export type Customer = {
53
53
  /**
54
54
  * The ID of the customer in your system. This must be unique within the organization. Once set, it can't be updated.
55
55
  */
56
- externalId: string | null;
56
+ externalId?: string | null | undefined;
57
57
  /**
58
58
  * The email address of the customer. This must be unique within the organization.
59
59
  */
@@ -123,7 +123,7 @@ export const Customer$inboundSchema: z.ZodMiniType<Customer, unknown> = z.pipe(
123
123
  z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
124
124
  ),
125
125
  metadata: z.record(z.string(), MetadataOutputType$inboundSchema),
126
- external_id: z.nullable(z.string()),
126
+ external_id: z.optional(z.nullable(z.string())),
127
127
  email: z.string(),
128
128
  email_verified: z.boolean(),
129
129
  type: z.optional(z.nullable(CustomerType$inboundSchema)),
@@ -159,7 +159,7 @@ export type Customer$Outbound = {
159
159
  created_at: string;
160
160
  modified_at: string | null;
161
161
  metadata: { [k: string]: MetadataOutputType$Outbound };
162
- external_id: string | null;
162
+ external_id?: string | null | undefined;
163
163
  email: string;
164
164
  email_verified: boolean;
165
165
  type?: string | null | undefined;
@@ -182,7 +182,7 @@ export const Customer$outboundSchema: z.ZodMiniType<
182
182
  createdAt: z.pipe(z.date(), z.transform(v => v.toISOString())),
183
183
  modifiedAt: z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString()))),
184
184
  metadata: z.record(z.string(), MetadataOutputType$outboundSchema),
185
- externalId: z.nullable(z.string()),
185
+ externalId: z.optional(z.nullable(z.string())),
186
186
  email: z.string(),
187
187
  emailVerified: z.boolean(),
188
188
  type: z.optional(z.nullable(CustomerType$outboundSchema)),
@@ -19,6 +19,10 @@ import {
19
19
  CustomerBenefitGrantDownloadables,
20
20
  CustomerBenefitGrantDownloadables$inboundSchema,
21
21
  } from "./customerbenefitgrantdownloadables.js";
22
+ import {
23
+ CustomerBenefitGrantFeatureFlag,
24
+ CustomerBenefitGrantFeatureFlag$inboundSchema,
25
+ } from "./customerbenefitgrantfeatureflag.js";
22
26
  import {
23
27
  CustomerBenefitGrantGitHubRepository,
24
28
  CustomerBenefitGrantGitHubRepository$inboundSchema,
@@ -38,7 +42,8 @@ export type CustomerBenefitGrant =
38
42
  | CustomerBenefitGrantDownloadables
39
43
  | CustomerBenefitGrantLicenseKeys
40
44
  | CustomerBenefitGrantCustom
41
- | CustomerBenefitGrantMeterCredit;
45
+ | CustomerBenefitGrantMeterCredit
46
+ | CustomerBenefitGrantFeatureFlag;
42
47
 
43
48
  /** @internal */
44
49
  export const CustomerBenefitGrant$inboundSchema: z.ZodMiniType<
@@ -51,6 +56,7 @@ export const CustomerBenefitGrant$inboundSchema: z.ZodMiniType<
51
56
  CustomerBenefitGrantLicenseKeys$inboundSchema,
52
57
  CustomerBenefitGrantCustom$inboundSchema,
53
58
  CustomerBenefitGrantMeterCredit$inboundSchema,
59
+ CustomerBenefitGrantFeatureFlag$inboundSchema,
54
60
  ]);
55
61
 
56
62
  export function customerBenefitGrantFromJSON(
@@ -0,0 +1,112 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ BenefitFeatureFlagSubscriber,
12
+ BenefitFeatureFlagSubscriber$inboundSchema,
13
+ } from "./benefitfeatureflagsubscriber.js";
14
+ import {
15
+ BenefitGrantError,
16
+ BenefitGrantError$inboundSchema,
17
+ } from "./benefitgranterror.js";
18
+ import {
19
+ BenefitGrantFeatureFlagProperties,
20
+ BenefitGrantFeatureFlagProperties$inboundSchema,
21
+ } from "./benefitgrantfeatureflagproperties.js";
22
+ import {
23
+ CustomerPortalCustomer,
24
+ CustomerPortalCustomer$inboundSchema,
25
+ } from "./customerportalcustomer.js";
26
+
27
+ export type CustomerBenefitGrantFeatureFlag = {
28
+ /**
29
+ * Creation timestamp of the object.
30
+ */
31
+ createdAt: Date;
32
+ /**
33
+ * Last modification timestamp of the object.
34
+ */
35
+ modifiedAt: Date | null;
36
+ /**
37
+ * The ID of the object.
38
+ */
39
+ id: string;
40
+ grantedAt: Date | null;
41
+ revokedAt: Date | null;
42
+ customerId: string;
43
+ memberId?: string | null | undefined;
44
+ benefitId: string;
45
+ subscriptionId: string | null;
46
+ orderId: string | null;
47
+ isGranted: boolean;
48
+ isRevoked: boolean;
49
+ error?: BenefitGrantError | null | undefined;
50
+ customer: CustomerPortalCustomer;
51
+ benefit: BenefitFeatureFlagSubscriber;
52
+ properties: BenefitGrantFeatureFlagProperties;
53
+ };
54
+
55
+ /** @internal */
56
+ export const CustomerBenefitGrantFeatureFlag$inboundSchema: z.ZodMiniType<
57
+ CustomerBenefitGrantFeatureFlag,
58
+ unknown
59
+ > = z.pipe(
60
+ z.object({
61
+ created_at: z.pipe(
62
+ z.iso.datetime({ offset: true }),
63
+ z.transform(v => new Date(v)),
64
+ ),
65
+ modified_at: z.nullable(
66
+ z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
67
+ ),
68
+ id: z.string(),
69
+ granted_at: z.nullable(
70
+ z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
71
+ ),
72
+ revoked_at: z.nullable(
73
+ z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
74
+ ),
75
+ customer_id: z.string(),
76
+ member_id: z.optional(z.nullable(z.string())),
77
+ benefit_id: z.string(),
78
+ subscription_id: z.nullable(z.string()),
79
+ order_id: z.nullable(z.string()),
80
+ is_granted: z.boolean(),
81
+ is_revoked: z.boolean(),
82
+ error: z.optional(z.nullable(BenefitGrantError$inboundSchema)),
83
+ customer: CustomerPortalCustomer$inboundSchema,
84
+ benefit: BenefitFeatureFlagSubscriber$inboundSchema,
85
+ properties: BenefitGrantFeatureFlagProperties$inboundSchema,
86
+ }),
87
+ z.transform((v) => {
88
+ return remap$(v, {
89
+ "created_at": "createdAt",
90
+ "modified_at": "modifiedAt",
91
+ "granted_at": "grantedAt",
92
+ "revoked_at": "revokedAt",
93
+ "customer_id": "customerId",
94
+ "member_id": "memberId",
95
+ "benefit_id": "benefitId",
96
+ "subscription_id": "subscriptionId",
97
+ "order_id": "orderId",
98
+ "is_granted": "isGranted",
99
+ "is_revoked": "isRevoked",
100
+ });
101
+ }),
102
+ );
103
+
104
+ export function customerBenefitGrantFeatureFlagFromJSON(
105
+ jsonString: string,
106
+ ): SafeParseResult<CustomerBenefitGrantFeatureFlag, SDKValidationError> {
107
+ return safeParse(
108
+ jsonString,
109
+ (x) => CustomerBenefitGrantFeatureFlag$inboundSchema.parse(JSON.parse(x)),
110
+ `Failed to parse 'CustomerBenefitGrantFeatureFlag' from JSON`,
111
+ );
112
+ }