@polar-sh/sdk 0.33.2 → 0.34.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 (302) hide show
  1. package/README.md +9 -8
  2. package/bin/mcp-server.js +104 -94
  3. package/bin/mcp-server.js.map +17 -17
  4. package/dist/commonjs/lib/config.d.ts +3 -3
  5. package/dist/commonjs/lib/config.js +3 -3
  6. package/dist/commonjs/lib/security.d.ts +2 -2
  7. package/dist/commonjs/lib/security.d.ts.map +1 -1
  8. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  9. package/dist/commonjs/mcp-server/server.js +1 -1
  10. package/dist/commonjs/models/components/benefitgrant.d.ts +4 -4
  11. package/dist/commonjs/models/components/benefitgrant.d.ts.map +1 -1
  12. package/dist/commonjs/models/components/benefitgrant.js +12 -12
  13. package/dist/commonjs/models/components/benefitgrant.js.map +1 -1
  14. package/dist/commonjs/models/components/benefitgrantwebhook.d.ts +8 -8
  15. package/dist/commonjs/models/components/benefitgrantwebhook.d.ts.map +1 -1
  16. package/dist/commonjs/models/components/benefitgrantwebhook.js +24 -24
  17. package/dist/commonjs/models/components/benefitgrantwebhook.js.map +1 -1
  18. package/dist/commonjs/models/components/checkout.d.ts +11 -6
  19. package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/checkout.js +16 -12
  21. package/dist/commonjs/models/components/checkout.js.map +1 -1
  22. package/dist/commonjs/models/components/checkoutcreate.d.ts +2 -2
  23. package/dist/commonjs/models/components/checkoutcreate.js +4 -4
  24. package/dist/commonjs/models/components/checkoutlink.d.ts +4 -4
  25. package/dist/commonjs/models/components/checkoutlink.d.ts.map +1 -1
  26. package/dist/commonjs/models/components/checkoutlink.js +8 -8
  27. package/dist/commonjs/models/components/checkoutlink.js.map +1 -1
  28. package/dist/commonjs/models/components/checkoutpublic.d.ts +6 -6
  29. package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
  30. package/dist/commonjs/models/components/checkoutpublic.js +12 -12
  31. package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
  32. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +6 -6
  33. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/checkoutpublicconfirmed.js +12 -12
  35. package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
  36. package/dist/commonjs/models/components/customerbenefitgrantupdate.d.ts +10 -10
  37. package/dist/commonjs/models/components/customerbenefitgrantupdate.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/customerbenefitgrantupdate.js +8 -8
  39. package/dist/commonjs/models/components/customerbenefitgrantupdate.js.map +1 -1
  40. package/dist/commonjs/models/components/customersessioncustomerexternalidcreate.d.ts +2 -2
  41. package/dist/commonjs/models/components/customersessioncustomerexternalidcreate.js +4 -4
  42. package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts +34 -4
  43. package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/customerstatebenefitgrant.js +40 -13
  45. package/dist/commonjs/models/components/customerstatebenefitgrant.js.map +1 -1
  46. package/dist/commonjs/models/components/discount.d.ts +2 -2
  47. package/dist/commonjs/models/components/discount.d.ts.map +1 -1
  48. package/dist/commonjs/models/components/discount.js +4 -4
  49. package/dist/commonjs/models/components/discount.js.map +1 -1
  50. package/dist/commonjs/models/components/discountcreate.d.ts +2 -2
  51. package/dist/commonjs/models/components/discountcreate.d.ts.map +1 -1
  52. package/dist/commonjs/models/components/discountcreate.js +6 -6
  53. package/dist/commonjs/models/components/discountcreate.js.map +1 -1
  54. package/dist/commonjs/models/components/filter.d.ts +4 -4
  55. package/dist/commonjs/models/components/filter.d.ts.map +1 -1
  56. package/dist/commonjs/models/components/filter.js +4 -4
  57. package/dist/commonjs/models/components/filter.js.map +1 -1
  58. package/dist/commonjs/models/components/legacyrecurringproductprice.d.ts +8 -8
  59. package/dist/commonjs/models/components/legacyrecurringproductprice.d.ts.map +1 -1
  60. package/dist/commonjs/models/components/legacyrecurringproductprice.js +4 -4
  61. package/dist/commonjs/models/components/legacyrecurringproductprice.js.map +1 -1
  62. package/dist/commonjs/models/components/listresourcefileread.d.ts +12 -12
  63. package/dist/commonjs/models/components/listresourcefileread.d.ts.map +1 -1
  64. package/dist/commonjs/models/components/listresourcefileread.js +12 -12
  65. package/dist/commonjs/models/components/listresourcefileread.js.map +1 -1
  66. package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts +4 -4
  67. package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts.map +1 -1
  68. package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js +4 -4
  69. package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js.map +1 -1
  70. package/dist/commonjs/models/components/meter.d.ts +24 -24
  71. package/dist/commonjs/models/components/meter.d.ts.map +1 -1
  72. package/dist/commonjs/models/components/meter.js +16 -16
  73. package/dist/commonjs/models/components/meter.js.map +1 -1
  74. package/dist/commonjs/models/components/metercreate.d.ts +24 -24
  75. package/dist/commonjs/models/components/metercreate.d.ts.map +1 -1
  76. package/dist/commonjs/models/components/metercreate.js +16 -16
  77. package/dist/commonjs/models/components/metercreate.js.map +1 -1
  78. package/dist/commonjs/models/components/meterupdate.d.ts +24 -24
  79. package/dist/commonjs/models/components/meterupdate.d.ts.map +1 -1
  80. package/dist/commonjs/models/components/meterupdate.js +16 -16
  81. package/dist/commonjs/models/components/meterupdate.js.map +1 -1
  82. package/dist/commonjs/models/components/order.d.ts +4 -4
  83. package/dist/commonjs/models/components/order.d.ts.map +1 -1
  84. package/dist/commonjs/models/components/order.js +8 -8
  85. package/dist/commonjs/models/components/order.js.map +1 -1
  86. package/dist/commonjs/models/components/payment.d.ts +2 -2
  87. package/dist/commonjs/models/components/payment.d.ts.map +1 -1
  88. package/dist/commonjs/models/components/payment.js +2 -2
  89. package/dist/commonjs/models/components/payment.js.map +1 -1
  90. package/dist/commonjs/models/components/productcreate.d.ts +4 -4
  91. package/dist/commonjs/models/components/productcreate.d.ts.map +1 -1
  92. package/dist/commonjs/models/components/productcreate.js +8 -8
  93. package/dist/commonjs/models/components/productcreate.js.map +1 -1
  94. package/dist/commonjs/models/components/productprice.d.ts +12 -12
  95. package/dist/commonjs/models/components/productprice.d.ts.map +1 -1
  96. package/dist/commonjs/models/components/productprice.js +8 -8
  97. package/dist/commonjs/models/components/productprice.js.map +1 -1
  98. package/dist/commonjs/models/components/productupdate.d.ts +4 -4
  99. package/dist/commonjs/models/components/productupdate.d.ts.map +1 -1
  100. package/dist/commonjs/models/components/productupdate.js +12 -12
  101. package/dist/commonjs/models/components/productupdate.js.map +1 -1
  102. package/dist/commonjs/models/components/subscription.d.ts +4 -4
  103. package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
  104. package/dist/commonjs/models/components/subscription.js +8 -8
  105. package/dist/commonjs/models/components/subscription.js.map +1 -1
  106. package/dist/commonjs/models/components/subscriptionupdate.d.ts +2 -2
  107. package/dist/commonjs/models/components/subscriptionupdate.d.ts.map +1 -1
  108. package/dist/commonjs/models/components/subscriptionupdate.js +2 -2
  109. package/dist/commonjs/models/components/subscriptionupdate.js.map +1 -1
  110. package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.d.ts +2 -2
  111. package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.d.ts.map +1 -1
  112. package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.js +2 -2
  113. package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.js.map +1 -1
  114. package/dist/commonjs/models/operations/filesupdate.d.ts +6 -6
  115. package/dist/commonjs/models/operations/filesupdate.d.ts.map +1 -1
  116. package/dist/commonjs/models/operations/filesupdate.js +6 -6
  117. package/dist/commonjs/models/operations/filesupdate.js.map +1 -1
  118. package/dist/commonjs/models/operations/filesuploaded.d.ts +6 -6
  119. package/dist/commonjs/models/operations/filesuploaded.d.ts.map +1 -1
  120. package/dist/commonjs/models/operations/filesuploaded.js +6 -6
  121. package/dist/commonjs/models/operations/filesuploaded.js.map +1 -1
  122. package/dist/commonjs/models/operations/oauth2authorize.d.ts +6 -6
  123. package/dist/commonjs/models/operations/oauth2authorize.d.ts.map +1 -1
  124. package/dist/commonjs/models/operations/oauth2authorize.js +4 -4
  125. package/dist/commonjs/models/operations/oauth2authorize.js.map +1 -1
  126. package/dist/commonjs/models/operations/oauth2requesttoken.d.ts +2 -2
  127. package/dist/commonjs/models/operations/oauth2requesttoken.d.ts.map +1 -1
  128. package/dist/commonjs/models/operations/oauth2requesttoken.js +2 -2
  129. package/dist/commonjs/models/operations/oauth2requesttoken.js.map +1 -1
  130. package/dist/commonjs/models/operations/oauth2userinfo.d.ts +2 -2
  131. package/dist/commonjs/models/operations/oauth2userinfo.d.ts.map +1 -1
  132. package/dist/commonjs/models/operations/oauth2userinfo.js +2 -2
  133. package/dist/commonjs/models/operations/oauth2userinfo.js.map +1 -1
  134. package/dist/esm/lib/config.d.ts +3 -3
  135. package/dist/esm/lib/config.js +3 -3
  136. package/dist/esm/lib/security.d.ts +2 -2
  137. package/dist/esm/lib/security.d.ts.map +1 -1
  138. package/dist/esm/mcp-server/mcp-server.js +1 -1
  139. package/dist/esm/mcp-server/server.js +1 -1
  140. package/dist/esm/models/components/benefitgrant.d.ts +4 -4
  141. package/dist/esm/models/components/benefitgrant.d.ts.map +1 -1
  142. package/dist/esm/models/components/benefitgrant.js +12 -12
  143. package/dist/esm/models/components/benefitgrant.js.map +1 -1
  144. package/dist/esm/models/components/benefitgrantwebhook.d.ts +8 -8
  145. package/dist/esm/models/components/benefitgrantwebhook.d.ts.map +1 -1
  146. package/dist/esm/models/components/benefitgrantwebhook.js +24 -24
  147. package/dist/esm/models/components/benefitgrantwebhook.js.map +1 -1
  148. package/dist/esm/models/components/checkout.d.ts +11 -6
  149. package/dist/esm/models/components/checkout.d.ts.map +1 -1
  150. package/dist/esm/models/components/checkout.js +16 -12
  151. package/dist/esm/models/components/checkout.js.map +1 -1
  152. package/dist/esm/models/components/checkoutcreate.d.ts +2 -2
  153. package/dist/esm/models/components/checkoutcreate.js +4 -4
  154. package/dist/esm/models/components/checkoutlink.d.ts +4 -4
  155. package/dist/esm/models/components/checkoutlink.d.ts.map +1 -1
  156. package/dist/esm/models/components/checkoutlink.js +8 -8
  157. package/dist/esm/models/components/checkoutlink.js.map +1 -1
  158. package/dist/esm/models/components/checkoutpublic.d.ts +6 -6
  159. package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
  160. package/dist/esm/models/components/checkoutpublic.js +12 -12
  161. package/dist/esm/models/components/checkoutpublic.js.map +1 -1
  162. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +6 -6
  163. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  164. package/dist/esm/models/components/checkoutpublicconfirmed.js +12 -12
  165. package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
  166. package/dist/esm/models/components/customerbenefitgrantupdate.d.ts +10 -10
  167. package/dist/esm/models/components/customerbenefitgrantupdate.d.ts.map +1 -1
  168. package/dist/esm/models/components/customerbenefitgrantupdate.js +8 -8
  169. package/dist/esm/models/components/customerbenefitgrantupdate.js.map +1 -1
  170. package/dist/esm/models/components/customersessioncustomerexternalidcreate.d.ts +2 -2
  171. package/dist/esm/models/components/customersessioncustomerexternalidcreate.js +4 -4
  172. package/dist/esm/models/components/customerstatebenefitgrant.d.ts +34 -4
  173. package/dist/esm/models/components/customerstatebenefitgrant.d.ts.map +1 -1
  174. package/dist/esm/models/components/customerstatebenefitgrant.js +37 -12
  175. package/dist/esm/models/components/customerstatebenefitgrant.js.map +1 -1
  176. package/dist/esm/models/components/discount.d.ts +2 -2
  177. package/dist/esm/models/components/discount.d.ts.map +1 -1
  178. package/dist/esm/models/components/discount.js +4 -4
  179. package/dist/esm/models/components/discount.js.map +1 -1
  180. package/dist/esm/models/components/discountcreate.d.ts +2 -2
  181. package/dist/esm/models/components/discountcreate.d.ts.map +1 -1
  182. package/dist/esm/models/components/discountcreate.js +6 -6
  183. package/dist/esm/models/components/discountcreate.js.map +1 -1
  184. package/dist/esm/models/components/filter.d.ts +4 -4
  185. package/dist/esm/models/components/filter.d.ts.map +1 -1
  186. package/dist/esm/models/components/filter.js +4 -4
  187. package/dist/esm/models/components/filter.js.map +1 -1
  188. package/dist/esm/models/components/legacyrecurringproductprice.d.ts +8 -8
  189. package/dist/esm/models/components/legacyrecurringproductprice.d.ts.map +1 -1
  190. package/dist/esm/models/components/legacyrecurringproductprice.js +4 -4
  191. package/dist/esm/models/components/legacyrecurringproductprice.js.map +1 -1
  192. package/dist/esm/models/components/listresourcefileread.d.ts +12 -12
  193. package/dist/esm/models/components/listresourcefileread.d.ts.map +1 -1
  194. package/dist/esm/models/components/listresourcefileread.js +12 -12
  195. package/dist/esm/models/components/listresourcefileread.js.map +1 -1
  196. package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts +4 -4
  197. package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts.map +1 -1
  198. package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js +4 -4
  199. package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js.map +1 -1
  200. package/dist/esm/models/components/meter.d.ts +24 -24
  201. package/dist/esm/models/components/meter.d.ts.map +1 -1
  202. package/dist/esm/models/components/meter.js +16 -16
  203. package/dist/esm/models/components/meter.js.map +1 -1
  204. package/dist/esm/models/components/metercreate.d.ts +24 -24
  205. package/dist/esm/models/components/metercreate.d.ts.map +1 -1
  206. package/dist/esm/models/components/metercreate.js +16 -16
  207. package/dist/esm/models/components/metercreate.js.map +1 -1
  208. package/dist/esm/models/components/meterupdate.d.ts +24 -24
  209. package/dist/esm/models/components/meterupdate.d.ts.map +1 -1
  210. package/dist/esm/models/components/meterupdate.js +16 -16
  211. package/dist/esm/models/components/meterupdate.js.map +1 -1
  212. package/dist/esm/models/components/order.d.ts +4 -4
  213. package/dist/esm/models/components/order.d.ts.map +1 -1
  214. package/dist/esm/models/components/order.js +8 -8
  215. package/dist/esm/models/components/order.js.map +1 -1
  216. package/dist/esm/models/components/payment.d.ts +2 -2
  217. package/dist/esm/models/components/payment.d.ts.map +1 -1
  218. package/dist/esm/models/components/payment.js +2 -2
  219. package/dist/esm/models/components/payment.js.map +1 -1
  220. package/dist/esm/models/components/productcreate.d.ts +4 -4
  221. package/dist/esm/models/components/productcreate.d.ts.map +1 -1
  222. package/dist/esm/models/components/productcreate.js +8 -8
  223. package/dist/esm/models/components/productcreate.js.map +1 -1
  224. package/dist/esm/models/components/productprice.d.ts +12 -12
  225. package/dist/esm/models/components/productprice.d.ts.map +1 -1
  226. package/dist/esm/models/components/productprice.js +8 -8
  227. package/dist/esm/models/components/productprice.js.map +1 -1
  228. package/dist/esm/models/components/productupdate.d.ts +4 -4
  229. package/dist/esm/models/components/productupdate.d.ts.map +1 -1
  230. package/dist/esm/models/components/productupdate.js +12 -12
  231. package/dist/esm/models/components/productupdate.js.map +1 -1
  232. package/dist/esm/models/components/subscription.d.ts +4 -4
  233. package/dist/esm/models/components/subscription.d.ts.map +1 -1
  234. package/dist/esm/models/components/subscription.js +8 -8
  235. package/dist/esm/models/components/subscription.js.map +1 -1
  236. package/dist/esm/models/components/subscriptionupdate.d.ts +2 -2
  237. package/dist/esm/models/components/subscriptionupdate.d.ts.map +1 -1
  238. package/dist/esm/models/components/subscriptionupdate.js +2 -2
  239. package/dist/esm/models/components/subscriptionupdate.js.map +1 -1
  240. package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.d.ts +2 -2
  241. package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.d.ts.map +1 -1
  242. package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.js +2 -2
  243. package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.js.map +1 -1
  244. package/dist/esm/models/operations/filesupdate.d.ts +6 -6
  245. package/dist/esm/models/operations/filesupdate.d.ts.map +1 -1
  246. package/dist/esm/models/operations/filesupdate.js +6 -6
  247. package/dist/esm/models/operations/filesupdate.js.map +1 -1
  248. package/dist/esm/models/operations/filesuploaded.d.ts +6 -6
  249. package/dist/esm/models/operations/filesuploaded.d.ts.map +1 -1
  250. package/dist/esm/models/operations/filesuploaded.js +6 -6
  251. package/dist/esm/models/operations/filesuploaded.js.map +1 -1
  252. package/dist/esm/models/operations/oauth2authorize.d.ts +6 -6
  253. package/dist/esm/models/operations/oauth2authorize.d.ts.map +1 -1
  254. package/dist/esm/models/operations/oauth2authorize.js +4 -4
  255. package/dist/esm/models/operations/oauth2authorize.js.map +1 -1
  256. package/dist/esm/models/operations/oauth2requesttoken.d.ts +2 -2
  257. package/dist/esm/models/operations/oauth2requesttoken.d.ts.map +1 -1
  258. package/dist/esm/models/operations/oauth2requesttoken.js +2 -2
  259. package/dist/esm/models/operations/oauth2requesttoken.js.map +1 -1
  260. package/dist/esm/models/operations/oauth2userinfo.d.ts +2 -2
  261. package/dist/esm/models/operations/oauth2userinfo.d.ts.map +1 -1
  262. package/dist/esm/models/operations/oauth2userinfo.js +2 -2
  263. package/dist/esm/models/operations/oauth2userinfo.js.map +1 -1
  264. package/docs/sdks/customersessions/README.md +2 -2
  265. package/jsr.json +1 -1
  266. package/package.json +1 -1
  267. package/src/lib/config.ts +3 -3
  268. package/src/lib/security.ts +2 -2
  269. package/src/mcp-server/mcp-server.ts +1 -1
  270. package/src/mcp-server/server.ts +1 -1
  271. package/src/models/components/benefitgrant.ts +24 -24
  272. package/src/models/components/benefitgrantwebhook.ts +48 -48
  273. package/src/models/components/checkout.ts +34 -25
  274. package/src/models/components/checkoutcreate.ts +6 -6
  275. package/src/models/components/checkoutlink.ts +16 -16
  276. package/src/models/components/checkoutpublic.ts +25 -25
  277. package/src/models/components/checkoutpublicconfirmed.ts +25 -25
  278. package/src/models/components/customerbenefitgrantupdate.ts +29 -29
  279. package/src/models/components/customersessioncustomerexternalidcreate.ts +6 -6
  280. package/src/models/components/customerstatebenefitgrant.ts +85 -24
  281. package/src/models/components/discount.ts +8 -8
  282. package/src/models/components/discountcreate.ts +12 -12
  283. package/src/models/components/filter.ts +8 -8
  284. package/src/models/components/legacyrecurringproductprice.ts +12 -12
  285. package/src/models/components/listresourcefileread.ts +26 -26
  286. package/src/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.ts +9 -9
  287. package/src/models/components/meter.ts +42 -42
  288. package/src/models/components/metercreate.ts +44 -44
  289. package/src/models/components/meterupdate.ts +40 -40
  290. package/src/models/components/order.ts +16 -16
  291. package/src/models/components/payment.ts +4 -4
  292. package/src/models/components/productcreate.ts +16 -16
  293. package/src/models/components/productprice.ts +22 -22
  294. package/src/models/components/productupdate.ts +24 -24
  295. package/src/models/components/subscription.ts +16 -16
  296. package/src/models/components/subscriptionupdate.ts +4 -4
  297. package/src/models/operations/customerportalcustomersaddpaymentmethod.ts +6 -6
  298. package/src/models/operations/filesupdate.ts +14 -14
  299. package/src/models/operations/filesuploaded.ts +14 -14
  300. package/src/models/operations/oauth2authorize.ts +12 -12
  301. package/src/models/operations/oauth2requesttoken.ts +6 -6
  302. package/src/models/operations/oauth2userinfo.ts +6 -6
@@ -57,18 +57,18 @@ import {
57
57
  } from "./customer.js";
58
58
 
59
59
  export type BenefitGrantWebhookProperties =
60
- | BenefitGrantDiscordProperties
61
- | BenefitGrantGitHubRepositoryProperties
60
+ | BenefitGrantCustomProperties
62
61
  | BenefitGrantDownloadablesProperties
63
62
  | BenefitGrantLicenseKeysProperties
64
- | BenefitGrantCustomProperties;
63
+ | BenefitGrantDiscordProperties
64
+ | BenefitGrantGitHubRepositoryProperties;
65
65
 
66
66
  export type PreviousProperties =
67
- | BenefitGrantDiscordProperties
68
- | BenefitGrantGitHubRepositoryProperties
67
+ | BenefitGrantCustomProperties
69
68
  | BenefitGrantDownloadablesProperties
70
69
  | BenefitGrantLicenseKeysProperties
71
- | BenefitGrantCustomProperties;
70
+ | BenefitGrantDiscordProperties
71
+ | BenefitGrantGitHubRepositoryProperties;
72
72
 
73
73
  export type BenefitGrantWebhook = {
74
74
  /**
@@ -124,18 +124,18 @@ export type BenefitGrantWebhook = {
124
124
  */
125
125
  customer: Customer;
126
126
  properties:
127
- | BenefitGrantDiscordProperties
128
- | BenefitGrantGitHubRepositoryProperties
127
+ | BenefitGrantCustomProperties
129
128
  | BenefitGrantDownloadablesProperties
130
129
  | BenefitGrantLicenseKeysProperties
131
- | BenefitGrantCustomProperties;
130
+ | BenefitGrantDiscordProperties
131
+ | BenefitGrantGitHubRepositoryProperties;
132
132
  benefit: Benefit;
133
133
  previousProperties?:
134
- | BenefitGrantDiscordProperties
135
- | BenefitGrantGitHubRepositoryProperties
134
+ | BenefitGrantCustomProperties
136
135
  | BenefitGrantDownloadablesProperties
137
136
  | BenefitGrantLicenseKeysProperties
138
- | BenefitGrantCustomProperties
137
+ | BenefitGrantDiscordProperties
138
+ | BenefitGrantGitHubRepositoryProperties
139
139
  | null
140
140
  | undefined;
141
141
  };
@@ -146,20 +146,20 @@ export const BenefitGrantWebhookProperties$inboundSchema: z.ZodType<
146
146
  z.ZodTypeDef,
147
147
  unknown
148
148
  > = z.union([
149
- BenefitGrantDiscordProperties$inboundSchema,
150
- BenefitGrantGitHubRepositoryProperties$inboundSchema,
149
+ BenefitGrantCustomProperties$inboundSchema,
151
150
  BenefitGrantDownloadablesProperties$inboundSchema,
152
151
  BenefitGrantLicenseKeysProperties$inboundSchema,
153
- BenefitGrantCustomProperties$inboundSchema,
152
+ BenefitGrantDiscordProperties$inboundSchema,
153
+ BenefitGrantGitHubRepositoryProperties$inboundSchema,
154
154
  ]);
155
155
 
156
156
  /** @internal */
157
157
  export type BenefitGrantWebhookProperties$Outbound =
158
- | BenefitGrantDiscordProperties$Outbound
159
- | BenefitGrantGitHubRepositoryProperties$Outbound
158
+ | BenefitGrantCustomProperties$Outbound
160
159
  | BenefitGrantDownloadablesProperties$Outbound
161
160
  | BenefitGrantLicenseKeysProperties$Outbound
162
- | BenefitGrantCustomProperties$Outbound;
161
+ | BenefitGrantDiscordProperties$Outbound
162
+ | BenefitGrantGitHubRepositoryProperties$Outbound;
163
163
 
164
164
  /** @internal */
165
165
  export const BenefitGrantWebhookProperties$outboundSchema: z.ZodType<
@@ -167,11 +167,11 @@ export const BenefitGrantWebhookProperties$outboundSchema: z.ZodType<
167
167
  z.ZodTypeDef,
168
168
  BenefitGrantWebhookProperties
169
169
  > = z.union([
170
- BenefitGrantDiscordProperties$outboundSchema,
171
- BenefitGrantGitHubRepositoryProperties$outboundSchema,
170
+ BenefitGrantCustomProperties$outboundSchema,
172
171
  BenefitGrantDownloadablesProperties$outboundSchema,
173
172
  BenefitGrantLicenseKeysProperties$outboundSchema,
174
- BenefitGrantCustomProperties$outboundSchema,
173
+ BenefitGrantDiscordProperties$outboundSchema,
174
+ BenefitGrantGitHubRepositoryProperties$outboundSchema,
175
175
  ]);
176
176
 
177
177
  /**
@@ -213,20 +213,20 @@ export const PreviousProperties$inboundSchema: z.ZodType<
213
213
  z.ZodTypeDef,
214
214
  unknown
215
215
  > = z.union([
216
- BenefitGrantDiscordProperties$inboundSchema,
217
- BenefitGrantGitHubRepositoryProperties$inboundSchema,
216
+ BenefitGrantCustomProperties$inboundSchema,
218
217
  BenefitGrantDownloadablesProperties$inboundSchema,
219
218
  BenefitGrantLicenseKeysProperties$inboundSchema,
220
- BenefitGrantCustomProperties$inboundSchema,
219
+ BenefitGrantDiscordProperties$inboundSchema,
220
+ BenefitGrantGitHubRepositoryProperties$inboundSchema,
221
221
  ]);
222
222
 
223
223
  /** @internal */
224
224
  export type PreviousProperties$Outbound =
225
- | BenefitGrantDiscordProperties$Outbound
226
- | BenefitGrantGitHubRepositoryProperties$Outbound
225
+ | BenefitGrantCustomProperties$Outbound
227
226
  | BenefitGrantDownloadablesProperties$Outbound
228
227
  | BenefitGrantLicenseKeysProperties$Outbound
229
- | BenefitGrantCustomProperties$Outbound;
228
+ | BenefitGrantDiscordProperties$Outbound
229
+ | BenefitGrantGitHubRepositoryProperties$Outbound;
230
230
 
231
231
  /** @internal */
232
232
  export const PreviousProperties$outboundSchema: z.ZodType<
@@ -234,11 +234,11 @@ export const PreviousProperties$outboundSchema: z.ZodType<
234
234
  z.ZodTypeDef,
235
235
  PreviousProperties
236
236
  > = z.union([
237
- BenefitGrantDiscordProperties$outboundSchema,
238
- BenefitGrantGitHubRepositoryProperties$outboundSchema,
237
+ BenefitGrantCustomProperties$outboundSchema,
239
238
  BenefitGrantDownloadablesProperties$outboundSchema,
240
239
  BenefitGrantLicenseKeysProperties$outboundSchema,
241
- BenefitGrantCustomProperties$outboundSchema,
240
+ BenefitGrantDiscordProperties$outboundSchema,
241
+ BenefitGrantGitHubRepositoryProperties$outboundSchema,
242
242
  ]);
243
243
 
244
244
  /**
@@ -298,20 +298,20 @@ export const BenefitGrantWebhook$inboundSchema: z.ZodType<
298
298
  error: z.nullable(BenefitGrantError$inboundSchema).optional(),
299
299
  customer: Customer$inboundSchema,
300
300
  properties: z.union([
301
- BenefitGrantDiscordProperties$inboundSchema,
302
- BenefitGrantGitHubRepositoryProperties$inboundSchema,
301
+ BenefitGrantCustomProperties$inboundSchema,
303
302
  BenefitGrantDownloadablesProperties$inboundSchema,
304
303
  BenefitGrantLicenseKeysProperties$inboundSchema,
305
- BenefitGrantCustomProperties$inboundSchema,
304
+ BenefitGrantDiscordProperties$inboundSchema,
305
+ BenefitGrantGitHubRepositoryProperties$inboundSchema,
306
306
  ]),
307
307
  benefit: Benefit$inboundSchema,
308
308
  previous_properties: z.nullable(
309
309
  z.union([
310
- BenefitGrantDiscordProperties$inboundSchema,
311
- BenefitGrantGitHubRepositoryProperties$inboundSchema,
310
+ BenefitGrantCustomProperties$inboundSchema,
312
311
  BenefitGrantDownloadablesProperties$inboundSchema,
313
312
  BenefitGrantLicenseKeysProperties$inboundSchema,
314
- BenefitGrantCustomProperties$inboundSchema,
313
+ BenefitGrantDiscordProperties$inboundSchema,
314
+ BenefitGrantGitHubRepositoryProperties$inboundSchema,
315
315
  ]),
316
316
  ).optional(),
317
317
  }).transform((v) => {
@@ -346,18 +346,18 @@ export type BenefitGrantWebhook$Outbound = {
346
346
  error?: BenefitGrantError$Outbound | null | undefined;
347
347
  customer: Customer$Outbound;
348
348
  properties:
349
- | BenefitGrantDiscordProperties$Outbound
350
- | BenefitGrantGitHubRepositoryProperties$Outbound
349
+ | BenefitGrantCustomProperties$Outbound
351
350
  | BenefitGrantDownloadablesProperties$Outbound
352
351
  | BenefitGrantLicenseKeysProperties$Outbound
353
- | BenefitGrantCustomProperties$Outbound;
352
+ | BenefitGrantDiscordProperties$Outbound
353
+ | BenefitGrantGitHubRepositoryProperties$Outbound;
354
354
  benefit: Benefit$Outbound;
355
355
  previous_properties?:
356
- | BenefitGrantDiscordProperties$Outbound
357
- | BenefitGrantGitHubRepositoryProperties$Outbound
356
+ | BenefitGrantCustomProperties$Outbound
358
357
  | BenefitGrantDownloadablesProperties$Outbound
359
358
  | BenefitGrantLicenseKeysProperties$Outbound
360
- | BenefitGrantCustomProperties$Outbound
359
+ | BenefitGrantDiscordProperties$Outbound
360
+ | BenefitGrantGitHubRepositoryProperties$Outbound
361
361
  | null
362
362
  | undefined;
363
363
  };
@@ -382,20 +382,20 @@ export const BenefitGrantWebhook$outboundSchema: z.ZodType<
382
382
  error: z.nullable(BenefitGrantError$outboundSchema).optional(),
383
383
  customer: Customer$outboundSchema,
384
384
  properties: z.union([
385
- BenefitGrantDiscordProperties$outboundSchema,
386
- BenefitGrantGitHubRepositoryProperties$outboundSchema,
385
+ BenefitGrantCustomProperties$outboundSchema,
387
386
  BenefitGrantDownloadablesProperties$outboundSchema,
388
387
  BenefitGrantLicenseKeysProperties$outboundSchema,
389
- BenefitGrantCustomProperties$outboundSchema,
388
+ BenefitGrantDiscordProperties$outboundSchema,
389
+ BenefitGrantGitHubRepositoryProperties$outboundSchema,
390
390
  ]),
391
391
  benefit: Benefit$outboundSchema,
392
392
  previousProperties: z.nullable(
393
393
  z.union([
394
- BenefitGrantDiscordProperties$outboundSchema,
395
- BenefitGrantGitHubRepositoryProperties$outboundSchema,
394
+ BenefitGrantCustomProperties$outboundSchema,
396
395
  BenefitGrantDownloadablesProperties$outboundSchema,
397
396
  BenefitGrantLicenseKeysProperties$outboundSchema,
398
- BenefitGrantCustomProperties$outboundSchema,
397
+ BenefitGrantDiscordProperties$outboundSchema,
398
+ BenefitGrantGitHubRepositoryProperties$outboundSchema,
399
399
  ]),
400
400
  ).optional(),
401
401
  }).transform((v) => {
@@ -88,10 +88,10 @@ export type CheckoutMetadata = string | number | number | boolean;
88
88
  export type CheckoutProductPrice = LegacyRecurringProductPrice | ProductPrice;
89
89
 
90
90
  export type CheckoutDiscount =
91
- | CheckoutDiscountFixedRepeatDuration
91
+ | CheckoutDiscountPercentageOnceForeverDuration
92
92
  | CheckoutDiscountFixedOnceForeverDuration
93
93
  | CheckoutDiscountPercentageRepeatDuration
94
- | CheckoutDiscountPercentageOnceForeverDuration;
94
+ | CheckoutDiscountFixedRepeatDuration;
95
95
 
96
96
  export type CustomerMetadata = string | number | boolean;
97
97
 
@@ -221,10 +221,15 @@ export type Checkout = {
221
221
  customerBillingAddress: Address | null;
222
222
  customerTaxId: string | null;
223
223
  paymentProcessorMetadata: { [k: string]: string };
224
+ customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
224
225
  metadata: { [k: string]: string | number | number | boolean };
225
226
  /**
226
227
  * 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.
227
228
  */
229
+ externalCustomerId: string | null;
230
+ /**
231
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
232
+ */
228
233
  customerExternalId: string | null;
229
234
  /**
230
235
  * List of products available to select.
@@ -239,15 +244,14 @@ export type Checkout = {
239
244
  */
240
245
  productPrice: LegacyRecurringProductPrice | ProductPrice;
241
246
  discount:
242
- | CheckoutDiscountFixedRepeatDuration
247
+ | CheckoutDiscountPercentageOnceForeverDuration
243
248
  | CheckoutDiscountFixedOnceForeverDuration
244
249
  | CheckoutDiscountPercentageRepeatDuration
245
- | CheckoutDiscountPercentageOnceForeverDuration
250
+ | CheckoutDiscountFixedRepeatDuration
246
251
  | null;
247
252
  subscriptionId: string | null;
248
253
  attachedCustomFields: Array<AttachedCustomField>;
249
254
  customerMetadata: { [k: string]: string | number | boolean };
250
- customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
251
255
  };
252
256
 
253
257
  /** @internal */
@@ -422,18 +426,18 @@ export const CheckoutDiscount$inboundSchema: z.ZodType<
422
426
  z.ZodTypeDef,
423
427
  unknown
424
428
  > = z.union([
425
- CheckoutDiscountFixedRepeatDuration$inboundSchema,
429
+ CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
426
430
  CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
427
431
  CheckoutDiscountPercentageRepeatDuration$inboundSchema,
428
- CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
432
+ CheckoutDiscountFixedRepeatDuration$inboundSchema,
429
433
  ]);
430
434
 
431
435
  /** @internal */
432
436
  export type CheckoutDiscount$Outbound =
433
- | CheckoutDiscountFixedRepeatDuration$Outbound
437
+ | CheckoutDiscountPercentageOnceForeverDuration$Outbound
434
438
  | CheckoutDiscountFixedOnceForeverDuration$Outbound
435
439
  | CheckoutDiscountPercentageRepeatDuration$Outbound
436
- | CheckoutDiscountPercentageOnceForeverDuration$Outbound;
440
+ | CheckoutDiscountFixedRepeatDuration$Outbound;
437
441
 
438
442
  /** @internal */
439
443
  export const CheckoutDiscount$outboundSchema: z.ZodType<
@@ -441,10 +445,10 @@ export const CheckoutDiscount$outboundSchema: z.ZodType<
441
445
  z.ZodTypeDef,
442
446
  CheckoutDiscount
443
447
  > = z.union([
444
- CheckoutDiscountFixedRepeatDuration$outboundSchema,
448
+ CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
445
449
  CheckoutDiscountFixedOnceForeverDuration$outboundSchema,
446
450
  CheckoutDiscountPercentageRepeatDuration$outboundSchema,
447
- CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
451
+ CheckoutDiscountFixedRepeatDuration$outboundSchema,
448
452
  ]);
449
453
 
450
454
  /**
@@ -579,9 +583,12 @@ export const Checkout$inboundSchema: z.ZodType<
579
583
  customer_billing_address: z.nullable(Address$inboundSchema),
580
584
  customer_tax_id: z.nullable(z.string()),
581
585
  payment_processor_metadata: z.record(z.string()),
586
+ customer_billing_address_fields:
587
+ CheckoutCustomerBillingAddressFields$inboundSchema,
582
588
  metadata: z.record(
583
589
  z.union([z.string(), z.number().int(), z.number(), z.boolean()]),
584
590
  ),
591
+ external_customer_id: z.nullable(z.string()),
585
592
  customer_external_id: z.nullable(z.string()),
586
593
  products: z.array(CheckoutProduct$inboundSchema),
587
594
  product: CheckoutProduct$inboundSchema,
@@ -591,10 +598,10 @@ export const Checkout$inboundSchema: z.ZodType<
591
598
  ]),
592
599
  discount: z.nullable(
593
600
  z.union([
594
- CheckoutDiscountFixedRepeatDuration$inboundSchema,
601
+ CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
595
602
  CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
596
603
  CheckoutDiscountPercentageRepeatDuration$inboundSchema,
597
- CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
604
+ CheckoutDiscountFixedRepeatDuration$inboundSchema,
598
605
  ]),
599
606
  ),
600
607
  subscription_id: z.nullable(z.string()),
@@ -602,8 +609,6 @@ export const Checkout$inboundSchema: z.ZodType<
602
609
  customer_metadata: z.record(
603
610
  z.union([z.string(), z.number().int(), z.boolean()]),
604
611
  ),
605
- customer_billing_address_fields:
606
- CheckoutCustomerBillingAddressFields$inboundSchema,
607
612
  }).transform((v) => {
608
613
  return remap$(v, {
609
614
  "created_at": "createdAt",
@@ -637,12 +642,13 @@ export const Checkout$inboundSchema: z.ZodType<
637
642
  "customer_billing_address": "customerBillingAddress",
638
643
  "customer_tax_id": "customerTaxId",
639
644
  "payment_processor_metadata": "paymentProcessorMetadata",
645
+ "customer_billing_address_fields": "customerBillingAddressFields",
646
+ "external_customer_id": "externalCustomerId",
640
647
  "customer_external_id": "customerExternalId",
641
648
  "product_price": "productPrice",
642
649
  "subscription_id": "subscriptionId",
643
650
  "attached_custom_fields": "attachedCustomFields",
644
651
  "customer_metadata": "customerMetadata",
645
- "customer_billing_address_fields": "customerBillingAddressFields",
646
652
  });
647
653
  });
648
654
 
@@ -686,22 +692,23 @@ export type Checkout$Outbound = {
686
692
  customer_billing_address: Address$Outbound | null;
687
693
  customer_tax_id: string | null;
688
694
  payment_processor_metadata: { [k: string]: string };
695
+ customer_billing_address_fields:
696
+ CheckoutCustomerBillingAddressFields$Outbound;
689
697
  metadata: { [k: string]: string | number | number | boolean };
698
+ external_customer_id: string | null;
690
699
  customer_external_id: string | null;
691
700
  products: Array<CheckoutProduct$Outbound>;
692
701
  product: CheckoutProduct$Outbound;
693
702
  product_price: LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound;
694
703
  discount:
695
- | CheckoutDiscountFixedRepeatDuration$Outbound
704
+ | CheckoutDiscountPercentageOnceForeverDuration$Outbound
696
705
  | CheckoutDiscountFixedOnceForeverDuration$Outbound
697
706
  | CheckoutDiscountPercentageRepeatDuration$Outbound
698
- | CheckoutDiscountPercentageOnceForeverDuration$Outbound
707
+ | CheckoutDiscountFixedRepeatDuration$Outbound
699
708
  | null;
700
709
  subscription_id: string | null;
701
710
  attached_custom_fields: Array<AttachedCustomField$Outbound>;
702
711
  customer_metadata: { [k: string]: string | number | boolean };
703
- customer_billing_address_fields:
704
- CheckoutCustomerBillingAddressFields$Outbound;
705
712
  };
706
713
 
707
714
  /** @internal */
@@ -755,9 +762,12 @@ export const Checkout$outboundSchema: z.ZodType<
755
762
  customerBillingAddress: z.nullable(Address$outboundSchema),
756
763
  customerTaxId: z.nullable(z.string()),
757
764
  paymentProcessorMetadata: z.record(z.string()),
765
+ customerBillingAddressFields:
766
+ CheckoutCustomerBillingAddressFields$outboundSchema,
758
767
  metadata: z.record(
759
768
  z.union([z.string(), z.number().int(), z.number(), z.boolean()]),
760
769
  ),
770
+ externalCustomerId: z.nullable(z.string()),
761
771
  customerExternalId: z.nullable(z.string()),
762
772
  products: z.array(CheckoutProduct$outboundSchema),
763
773
  product: CheckoutProduct$outboundSchema,
@@ -767,10 +777,10 @@ export const Checkout$outboundSchema: z.ZodType<
767
777
  ]),
768
778
  discount: z.nullable(
769
779
  z.union([
770
- CheckoutDiscountFixedRepeatDuration$outboundSchema,
780
+ CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
771
781
  CheckoutDiscountFixedOnceForeverDuration$outboundSchema,
772
782
  CheckoutDiscountPercentageRepeatDuration$outboundSchema,
773
- CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
783
+ CheckoutDiscountFixedRepeatDuration$outboundSchema,
774
784
  ]),
775
785
  ),
776
786
  subscriptionId: z.nullable(z.string()),
@@ -778,8 +788,6 @@ export const Checkout$outboundSchema: z.ZodType<
778
788
  customerMetadata: z.record(
779
789
  z.union([z.string(), z.number().int(), z.boolean()]),
780
790
  ),
781
- customerBillingAddressFields:
782
- CheckoutCustomerBillingAddressFields$outboundSchema,
783
791
  }).transform((v) => {
784
792
  return remap$(v, {
785
793
  createdAt: "created_at",
@@ -813,12 +821,13 @@ export const Checkout$outboundSchema: z.ZodType<
813
821
  customerBillingAddress: "customer_billing_address",
814
822
  customerTaxId: "customer_tax_id",
815
823
  paymentProcessorMetadata: "payment_processor_metadata",
824
+ customerBillingAddressFields: "customer_billing_address_fields",
825
+ externalCustomerId: "external_customer_id",
816
826
  customerExternalId: "customer_external_id",
817
827
  productPrice: "product_price",
818
828
  subscriptionId: "subscription_id",
819
829
  attachedCustomFields: "attached_custom_fields",
820
830
  customerMetadata: "customer_metadata",
821
- customerBillingAddressFields: "customer_billing_address_fields",
822
831
  });
823
832
  });
824
833
 
@@ -76,7 +76,7 @@ export type CheckoutCreate = {
76
76
  /**
77
77
  * 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.
78
78
  */
79
- customerExternalId?: string | null | undefined;
79
+ externalCustomerId?: string | null | undefined;
80
80
  customerName?: string | null | undefined;
81
81
  customerEmail?: string | null | undefined;
82
82
  customerIpAddress?: string | null | undefined;
@@ -314,7 +314,7 @@ export const CheckoutCreate$inboundSchema: z.ZodType<
314
314
  amount: z.nullable(z.number().int()).optional(),
315
315
  customer_id: z.nullable(z.string()).optional(),
316
316
  is_business_customer: z.boolean().default(false),
317
- customer_external_id: z.nullable(z.string()).optional(),
317
+ external_customer_id: z.nullable(z.string()).optional(),
318
318
  customer_name: z.nullable(z.string()).optional(),
319
319
  customer_email: z.nullable(z.string()).optional(),
320
320
  customer_ip_address: z.nullable(z.string()).optional(),
@@ -336,7 +336,7 @@ export const CheckoutCreate$inboundSchema: z.ZodType<
336
336
  "require_billing_address": "requireBillingAddress",
337
337
  "customer_id": "customerId",
338
338
  "is_business_customer": "isBusinessCustomer",
339
- "customer_external_id": "customerExternalId",
339
+ "external_customer_id": "externalCustomerId",
340
340
  "customer_name": "customerName",
341
341
  "customer_email": "customerEmail",
342
342
  "customer_ip_address": "customerIpAddress",
@@ -362,7 +362,7 @@ export type CheckoutCreate$Outbound = {
362
362
  amount?: number | null | undefined;
363
363
  customer_id?: string | null | undefined;
364
364
  is_business_customer: boolean;
365
- customer_external_id?: string | null | undefined;
365
+ external_customer_id?: string | null | undefined;
366
366
  customer_name?: string | null | undefined;
367
367
  customer_email?: string | null | undefined;
368
368
  customer_ip_address?: string | null | undefined;
@@ -403,7 +403,7 @@ export const CheckoutCreate$outboundSchema: z.ZodType<
403
403
  amount: z.nullable(z.number().int()).optional(),
404
404
  customerId: z.nullable(z.string()).optional(),
405
405
  isBusinessCustomer: z.boolean().default(false),
406
- customerExternalId: z.nullable(z.string()).optional(),
406
+ externalCustomerId: z.nullable(z.string()).optional(),
407
407
  customerName: z.nullable(z.string()).optional(),
408
408
  customerEmail: z.nullable(z.string()).optional(),
409
409
  customerIpAddress: z.nullable(z.string()).optional(),
@@ -425,7 +425,7 @@ export const CheckoutCreate$outboundSchema: z.ZodType<
425
425
  requireBillingAddress: "require_billing_address",
426
426
  customerId: "customer_id",
427
427
  isBusinessCustomer: "is_business_customer",
428
- customerExternalId: "customer_external_id",
428
+ externalCustomerId: "external_customer_id",
429
429
  customerName: "customer_name",
430
430
  customerEmail: "customer_email",
431
431
  customerIpAddress: "customer_ip_address",
@@ -46,10 +46,10 @@ import {
46
46
  export type CheckoutLinkMetadata = string | number | number | boolean;
47
47
 
48
48
  export type CheckoutLinkDiscount =
49
- | DiscountFixedRepeatDurationBase
49
+ | DiscountPercentageOnceForeverDurationBase
50
50
  | DiscountFixedOnceForeverDurationBase
51
51
  | DiscountPercentageRepeatDurationBase
52
- | DiscountPercentageOnceForeverDurationBase;
52
+ | DiscountFixedRepeatDurationBase;
53
53
 
54
54
  /**
55
55
  * Checkout link data.
@@ -99,10 +99,10 @@ export type CheckoutLink = {
99
99
  organizationId: string;
100
100
  products: Array<CheckoutLinkProduct>;
101
101
  discount:
102
- | DiscountFixedRepeatDurationBase
102
+ | DiscountPercentageOnceForeverDurationBase
103
103
  | DiscountFixedOnceForeverDurationBase
104
104
  | DiscountPercentageRepeatDurationBase
105
- | DiscountPercentageOnceForeverDurationBase
105
+ | DiscountFixedRepeatDurationBase
106
106
  | null;
107
107
  url: string;
108
108
  };
@@ -161,18 +161,18 @@ export const CheckoutLinkDiscount$inboundSchema: z.ZodType<
161
161
  z.ZodTypeDef,
162
162
  unknown
163
163
  > = z.union([
164
- DiscountFixedRepeatDurationBase$inboundSchema,
164
+ DiscountPercentageOnceForeverDurationBase$inboundSchema,
165
165
  DiscountFixedOnceForeverDurationBase$inboundSchema,
166
166
  DiscountPercentageRepeatDurationBase$inboundSchema,
167
- DiscountPercentageOnceForeverDurationBase$inboundSchema,
167
+ DiscountFixedRepeatDurationBase$inboundSchema,
168
168
  ]);
169
169
 
170
170
  /** @internal */
171
171
  export type CheckoutLinkDiscount$Outbound =
172
- | DiscountFixedRepeatDurationBase$Outbound
172
+ | DiscountPercentageOnceForeverDurationBase$Outbound
173
173
  | DiscountFixedOnceForeverDurationBase$Outbound
174
174
  | DiscountPercentageRepeatDurationBase$Outbound
175
- | DiscountPercentageOnceForeverDurationBase$Outbound;
175
+ | DiscountFixedRepeatDurationBase$Outbound;
176
176
 
177
177
  /** @internal */
178
178
  export const CheckoutLinkDiscount$outboundSchema: z.ZodType<
@@ -180,10 +180,10 @@ export const CheckoutLinkDiscount$outboundSchema: z.ZodType<
180
180
  z.ZodTypeDef,
181
181
  CheckoutLinkDiscount
182
182
  > = z.union([
183
- DiscountFixedRepeatDurationBase$outboundSchema,
183
+ DiscountPercentageOnceForeverDurationBase$outboundSchema,
184
184
  DiscountFixedOnceForeverDurationBase$outboundSchema,
185
185
  DiscountPercentageRepeatDurationBase$outboundSchema,
186
- DiscountPercentageOnceForeverDurationBase$outboundSchema,
186
+ DiscountFixedRepeatDurationBase$outboundSchema,
187
187
  ]);
188
188
 
189
189
  /**
@@ -242,10 +242,10 @@ export const CheckoutLink$inboundSchema: z.ZodType<
242
242
  products: z.array(CheckoutLinkProduct$inboundSchema),
243
243
  discount: z.nullable(
244
244
  z.union([
245
- DiscountFixedRepeatDurationBase$inboundSchema,
245
+ DiscountPercentageOnceForeverDurationBase$inboundSchema,
246
246
  DiscountFixedOnceForeverDurationBase$inboundSchema,
247
247
  DiscountPercentageRepeatDurationBase$inboundSchema,
248
- DiscountPercentageOnceForeverDurationBase$inboundSchema,
248
+ DiscountFixedRepeatDurationBase$inboundSchema,
249
249
  ]),
250
250
  ),
251
251
  url: z.string(),
@@ -279,10 +279,10 @@ export type CheckoutLink$Outbound = {
279
279
  organization_id: string;
280
280
  products: Array<CheckoutLinkProduct$Outbound>;
281
281
  discount:
282
- | DiscountFixedRepeatDurationBase$Outbound
282
+ | DiscountPercentageOnceForeverDurationBase$Outbound
283
283
  | DiscountFixedOnceForeverDurationBase$Outbound
284
284
  | DiscountPercentageRepeatDurationBase$Outbound
285
- | DiscountPercentageOnceForeverDurationBase$Outbound
285
+ | DiscountFixedRepeatDurationBase$Outbound
286
286
  | null;
287
287
  url: string;
288
288
  };
@@ -310,10 +310,10 @@ export const CheckoutLink$outboundSchema: z.ZodType<
310
310
  products: z.array(CheckoutLinkProduct$outboundSchema),
311
311
  discount: z.nullable(
312
312
  z.union([
313
- DiscountFixedRepeatDurationBase$outboundSchema,
313
+ DiscountPercentageOnceForeverDurationBase$outboundSchema,
314
314
  DiscountFixedOnceForeverDurationBase$outboundSchema,
315
315
  DiscountPercentageRepeatDurationBase$outboundSchema,
316
- DiscountPercentageOnceForeverDurationBase$outboundSchema,
316
+ DiscountFixedRepeatDurationBase$outboundSchema,
317
317
  ]),
318
318
  ),
319
319
  url: z.string(),