@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
@@ -94,10 +94,10 @@ export type CheckoutPublicProductPrice =
94
94
  | ProductPrice;
95
95
 
96
96
  export type CheckoutPublicDiscount =
97
- | CheckoutDiscountFixedRepeatDuration
97
+ | CheckoutDiscountPercentageOnceForeverDuration
98
98
  | CheckoutDiscountFixedOnceForeverDuration
99
99
  | CheckoutDiscountPercentageRepeatDuration
100
- | CheckoutDiscountPercentageOnceForeverDuration;
100
+ | CheckoutDiscountFixedRepeatDuration;
101
101
 
102
102
  /**
103
103
  * Checkout session data retrieved using the client secret.
@@ -225,6 +225,7 @@ export type CheckoutPublic = {
225
225
  customerBillingAddress: Address | null;
226
226
  customerTaxId: string | null;
227
227
  paymentProcessorMetadata: { [k: string]: string };
228
+ customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
228
229
  /**
229
230
  * List of products available to select.
230
231
  */
@@ -238,14 +239,13 @@ export type CheckoutPublic = {
238
239
  */
239
240
  productPrice: LegacyRecurringProductPrice | ProductPrice;
240
241
  discount:
241
- | CheckoutDiscountFixedRepeatDuration
242
+ | CheckoutDiscountPercentageOnceForeverDuration
242
243
  | CheckoutDiscountFixedOnceForeverDuration
243
244
  | CheckoutDiscountPercentageRepeatDuration
244
- | CheckoutDiscountPercentageOnceForeverDuration
245
+ | CheckoutDiscountFixedRepeatDuration
245
246
  | null;
246
247
  organization: Organization;
247
248
  attachedCustomFields: Array<AttachedCustomField>;
248
- customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
249
249
  };
250
250
 
251
251
  /** @internal */
@@ -374,18 +374,18 @@ export const CheckoutPublicDiscount$inboundSchema: z.ZodType<
374
374
  z.ZodTypeDef,
375
375
  unknown
376
376
  > = z.union([
377
- CheckoutDiscountFixedRepeatDuration$inboundSchema,
377
+ CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
378
378
  CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
379
379
  CheckoutDiscountPercentageRepeatDuration$inboundSchema,
380
- CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
380
+ CheckoutDiscountFixedRepeatDuration$inboundSchema,
381
381
  ]);
382
382
 
383
383
  /** @internal */
384
384
  export type CheckoutPublicDiscount$Outbound =
385
- | CheckoutDiscountFixedRepeatDuration$Outbound
385
+ | CheckoutDiscountPercentageOnceForeverDuration$Outbound
386
386
  | CheckoutDiscountFixedOnceForeverDuration$Outbound
387
387
  | CheckoutDiscountPercentageRepeatDuration$Outbound
388
- | CheckoutDiscountPercentageOnceForeverDuration$Outbound;
388
+ | CheckoutDiscountFixedRepeatDuration$Outbound;
389
389
 
390
390
  /** @internal */
391
391
  export const CheckoutPublicDiscount$outboundSchema: z.ZodType<
@@ -393,10 +393,10 @@ export const CheckoutPublicDiscount$outboundSchema: z.ZodType<
393
393
  z.ZodTypeDef,
394
394
  CheckoutPublicDiscount
395
395
  > = z.union([
396
- CheckoutDiscountFixedRepeatDuration$outboundSchema,
396
+ CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
397
397
  CheckoutDiscountFixedOnceForeverDuration$outboundSchema,
398
398
  CheckoutDiscountPercentageRepeatDuration$outboundSchema,
399
- CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
399
+ CheckoutDiscountFixedRepeatDuration$outboundSchema,
400
400
  ]);
401
401
 
402
402
  /**
@@ -483,6 +483,8 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
483
483
  customer_billing_address: z.nullable(Address$inboundSchema),
484
484
  customer_tax_id: z.nullable(z.string()),
485
485
  payment_processor_metadata: z.record(z.string()),
486
+ customer_billing_address_fields:
487
+ CheckoutCustomerBillingAddressFields$inboundSchema,
486
488
  products: z.array(CheckoutProduct$inboundSchema),
487
489
  product: CheckoutProduct$inboundSchema,
488
490
  product_price: z.union([
@@ -491,16 +493,14 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
491
493
  ]),
492
494
  discount: z.nullable(
493
495
  z.union([
494
- CheckoutDiscountFixedRepeatDuration$inboundSchema,
496
+ CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
495
497
  CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
496
498
  CheckoutDiscountPercentageRepeatDuration$inboundSchema,
497
- CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
499
+ CheckoutDiscountFixedRepeatDuration$inboundSchema,
498
500
  ]),
499
501
  ),
500
502
  organization: Organization$inboundSchema,
501
503
  attached_custom_fields: z.array(AttachedCustomField$inboundSchema),
502
- customer_billing_address_fields:
503
- CheckoutCustomerBillingAddressFields$inboundSchema,
504
504
  }).transform((v) => {
505
505
  return remap$(v, {
506
506
  "created_at": "createdAt",
@@ -534,9 +534,9 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
534
534
  "customer_billing_address": "customerBillingAddress",
535
535
  "customer_tax_id": "customerTaxId",
536
536
  "payment_processor_metadata": "paymentProcessorMetadata",
537
+ "customer_billing_address_fields": "customerBillingAddressFields",
537
538
  "product_price": "productPrice",
538
539
  "attached_custom_fields": "attachedCustomFields",
539
- "customer_billing_address_fields": "customerBillingAddressFields",
540
540
  });
541
541
  });
542
542
 
@@ -580,19 +580,19 @@ export type CheckoutPublic$Outbound = {
580
580
  customer_billing_address: Address$Outbound | null;
581
581
  customer_tax_id: string | null;
582
582
  payment_processor_metadata: { [k: string]: string };
583
+ customer_billing_address_fields:
584
+ CheckoutCustomerBillingAddressFields$Outbound;
583
585
  products: Array<CheckoutProduct$Outbound>;
584
586
  product: CheckoutProduct$Outbound;
585
587
  product_price: LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound;
586
588
  discount:
587
- | CheckoutDiscountFixedRepeatDuration$Outbound
589
+ | CheckoutDiscountPercentageOnceForeverDuration$Outbound
588
590
  | CheckoutDiscountFixedOnceForeverDuration$Outbound
589
591
  | CheckoutDiscountPercentageRepeatDuration$Outbound
590
- | CheckoutDiscountPercentageOnceForeverDuration$Outbound
592
+ | CheckoutDiscountFixedRepeatDuration$Outbound
591
593
  | null;
592
594
  organization: Organization$Outbound;
593
595
  attached_custom_fields: Array<AttachedCustomField$Outbound>;
594
- customer_billing_address_fields:
595
- CheckoutCustomerBillingAddressFields$Outbound;
596
596
  };
597
597
 
598
598
  /** @internal */
@@ -646,6 +646,8 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
646
646
  customerBillingAddress: z.nullable(Address$outboundSchema),
647
647
  customerTaxId: z.nullable(z.string()),
648
648
  paymentProcessorMetadata: z.record(z.string()),
649
+ customerBillingAddressFields:
650
+ CheckoutCustomerBillingAddressFields$outboundSchema,
649
651
  products: z.array(CheckoutProduct$outboundSchema),
650
652
  product: CheckoutProduct$outboundSchema,
651
653
  productPrice: z.union([
@@ -654,16 +656,14 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
654
656
  ]),
655
657
  discount: z.nullable(
656
658
  z.union([
657
- CheckoutDiscountFixedRepeatDuration$outboundSchema,
659
+ CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
658
660
  CheckoutDiscountFixedOnceForeverDuration$outboundSchema,
659
661
  CheckoutDiscountPercentageRepeatDuration$outboundSchema,
660
- CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
662
+ CheckoutDiscountFixedRepeatDuration$outboundSchema,
661
663
  ]),
662
664
  ),
663
665
  organization: Organization$outboundSchema,
664
666
  attachedCustomFields: z.array(AttachedCustomField$outboundSchema),
665
- customerBillingAddressFields:
666
- CheckoutCustomerBillingAddressFields$outboundSchema,
667
667
  }).transform((v) => {
668
668
  return remap$(v, {
669
669
  createdAt: "created_at",
@@ -697,9 +697,9 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
697
697
  customerBillingAddress: "customer_billing_address",
698
698
  customerTaxId: "customer_tax_id",
699
699
  paymentProcessorMetadata: "payment_processor_metadata",
700
+ customerBillingAddressFields: "customer_billing_address_fields",
700
701
  productPrice: "product_price",
701
702
  attachedCustomFields: "attached_custom_fields",
702
- customerBillingAddressFields: "customer_billing_address_fields",
703
703
  });
704
704
  });
705
705
 
@@ -93,10 +93,10 @@ export type CheckoutPublicConfirmedProductPrice =
93
93
  | ProductPrice;
94
94
 
95
95
  export type CheckoutPublicConfirmedDiscount =
96
- | CheckoutDiscountFixedRepeatDuration
96
+ | CheckoutDiscountPercentageOnceForeverDuration
97
97
  | CheckoutDiscountFixedOnceForeverDuration
98
98
  | CheckoutDiscountPercentageRepeatDuration
99
- | CheckoutDiscountPercentageOnceForeverDuration;
99
+ | CheckoutDiscountFixedRepeatDuration;
100
100
 
101
101
  /**
102
102
  * Checkout session data retrieved using the client secret after confirmation.
@@ -229,6 +229,7 @@ export type CheckoutPublicConfirmed = {
229
229
  customerBillingAddress: Address | null;
230
230
  customerTaxId: string | null;
231
231
  paymentProcessorMetadata: { [k: string]: string };
232
+ customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
232
233
  /**
233
234
  * List of products available to select.
234
235
  */
@@ -242,15 +243,14 @@ export type CheckoutPublicConfirmed = {
242
243
  */
243
244
  productPrice: LegacyRecurringProductPrice | ProductPrice;
244
245
  discount:
245
- | CheckoutDiscountFixedRepeatDuration
246
+ | CheckoutDiscountPercentageOnceForeverDuration
246
247
  | CheckoutDiscountFixedOnceForeverDuration
247
248
  | CheckoutDiscountPercentageRepeatDuration
248
- | CheckoutDiscountPercentageOnceForeverDuration
249
+ | CheckoutDiscountFixedRepeatDuration
249
250
  | null;
250
251
  organization: Organization;
251
252
  attachedCustomFields: Array<AttachedCustomField>;
252
253
  customerSessionToken: string;
253
- customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
254
254
  };
255
255
 
256
256
  /** @internal */
@@ -388,18 +388,18 @@ export const CheckoutPublicConfirmedDiscount$inboundSchema: z.ZodType<
388
388
  z.ZodTypeDef,
389
389
  unknown
390
390
  > = z.union([
391
- CheckoutDiscountFixedRepeatDuration$inboundSchema,
391
+ CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
392
392
  CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
393
393
  CheckoutDiscountPercentageRepeatDuration$inboundSchema,
394
- CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
394
+ CheckoutDiscountFixedRepeatDuration$inboundSchema,
395
395
  ]);
396
396
 
397
397
  /** @internal */
398
398
  export type CheckoutPublicConfirmedDiscount$Outbound =
399
- | CheckoutDiscountFixedRepeatDuration$Outbound
399
+ | CheckoutDiscountPercentageOnceForeverDuration$Outbound
400
400
  | CheckoutDiscountFixedOnceForeverDuration$Outbound
401
401
  | CheckoutDiscountPercentageRepeatDuration$Outbound
402
- | CheckoutDiscountPercentageOnceForeverDuration$Outbound;
402
+ | CheckoutDiscountFixedRepeatDuration$Outbound;
403
403
 
404
404
  /** @internal */
405
405
  export const CheckoutPublicConfirmedDiscount$outboundSchema: z.ZodType<
@@ -407,10 +407,10 @@ export const CheckoutPublicConfirmedDiscount$outboundSchema: z.ZodType<
407
407
  z.ZodTypeDef,
408
408
  CheckoutPublicConfirmedDiscount
409
409
  > = z.union([
410
- CheckoutDiscountFixedRepeatDuration$outboundSchema,
410
+ CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
411
411
  CheckoutDiscountFixedOnceForeverDuration$outboundSchema,
412
412
  CheckoutDiscountPercentageRepeatDuration$outboundSchema,
413
- CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
413
+ CheckoutDiscountFixedRepeatDuration$outboundSchema,
414
414
  ]);
415
415
 
416
416
  /**
@@ -499,6 +499,8 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
499
499
  customer_billing_address: z.nullable(Address$inboundSchema),
500
500
  customer_tax_id: z.nullable(z.string()),
501
501
  payment_processor_metadata: z.record(z.string()),
502
+ customer_billing_address_fields:
503
+ CheckoutCustomerBillingAddressFields$inboundSchema,
502
504
  products: z.array(CheckoutProduct$inboundSchema),
503
505
  product: CheckoutProduct$inboundSchema,
504
506
  product_price: z.union([
@@ -507,17 +509,15 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
507
509
  ]),
508
510
  discount: z.nullable(
509
511
  z.union([
510
- CheckoutDiscountFixedRepeatDuration$inboundSchema,
512
+ CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
511
513
  CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
512
514
  CheckoutDiscountPercentageRepeatDuration$inboundSchema,
513
- CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
515
+ CheckoutDiscountFixedRepeatDuration$inboundSchema,
514
516
  ]),
515
517
  ),
516
518
  organization: Organization$inboundSchema,
517
519
  attached_custom_fields: z.array(AttachedCustomField$inboundSchema),
518
520
  customer_session_token: z.string(),
519
- customer_billing_address_fields:
520
- CheckoutCustomerBillingAddressFields$inboundSchema,
521
521
  }).transform((v) => {
522
522
  return remap$(v, {
523
523
  "created_at": "createdAt",
@@ -551,10 +551,10 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
551
551
  "customer_billing_address": "customerBillingAddress",
552
552
  "customer_tax_id": "customerTaxId",
553
553
  "payment_processor_metadata": "paymentProcessorMetadata",
554
+ "customer_billing_address_fields": "customerBillingAddressFields",
554
555
  "product_price": "productPrice",
555
556
  "attached_custom_fields": "attachedCustomFields",
556
557
  "customer_session_token": "customerSessionToken",
557
- "customer_billing_address_fields": "customerBillingAddressFields",
558
558
  });
559
559
  });
560
560
 
@@ -598,20 +598,20 @@ export type CheckoutPublicConfirmed$Outbound = {
598
598
  customer_billing_address: Address$Outbound | null;
599
599
  customer_tax_id: string | null;
600
600
  payment_processor_metadata: { [k: string]: string };
601
+ customer_billing_address_fields:
602
+ CheckoutCustomerBillingAddressFields$Outbound;
601
603
  products: Array<CheckoutProduct$Outbound>;
602
604
  product: CheckoutProduct$Outbound;
603
605
  product_price: LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound;
604
606
  discount:
605
- | CheckoutDiscountFixedRepeatDuration$Outbound
607
+ | CheckoutDiscountPercentageOnceForeverDuration$Outbound
606
608
  | CheckoutDiscountFixedOnceForeverDuration$Outbound
607
609
  | CheckoutDiscountPercentageRepeatDuration$Outbound
608
- | CheckoutDiscountPercentageOnceForeverDuration$Outbound
610
+ | CheckoutDiscountFixedRepeatDuration$Outbound
609
611
  | null;
610
612
  organization: Organization$Outbound;
611
613
  attached_custom_fields: Array<AttachedCustomField$Outbound>;
612
614
  customer_session_token: string;
613
- customer_billing_address_fields:
614
- CheckoutCustomerBillingAddressFields$Outbound;
615
615
  };
616
616
 
617
617
  /** @internal */
@@ -665,6 +665,8 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
665
665
  customerBillingAddress: z.nullable(Address$outboundSchema),
666
666
  customerTaxId: z.nullable(z.string()),
667
667
  paymentProcessorMetadata: z.record(z.string()),
668
+ customerBillingAddressFields:
669
+ CheckoutCustomerBillingAddressFields$outboundSchema,
668
670
  products: z.array(CheckoutProduct$outboundSchema),
669
671
  product: CheckoutProduct$outboundSchema,
670
672
  productPrice: z.union([
@@ -673,17 +675,15 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
673
675
  ]),
674
676
  discount: z.nullable(
675
677
  z.union([
676
- CheckoutDiscountFixedRepeatDuration$outboundSchema,
678
+ CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
677
679
  CheckoutDiscountFixedOnceForeverDuration$outboundSchema,
678
680
  CheckoutDiscountPercentageRepeatDuration$outboundSchema,
679
- CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
681
+ CheckoutDiscountFixedRepeatDuration$outboundSchema,
680
682
  ]),
681
683
  ),
682
684
  organization: Organization$outboundSchema,
683
685
  attachedCustomFields: z.array(AttachedCustomField$outboundSchema),
684
686
  customerSessionToken: z.string(),
685
- customerBillingAddressFields:
686
- CheckoutCustomerBillingAddressFields$outboundSchema,
687
687
  }).transform((v) => {
688
688
  return remap$(v, {
689
689
  createdAt: "created_at",
@@ -717,10 +717,10 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
717
717
  customerBillingAddress: "customer_billing_address",
718
718
  customerTaxId: "customer_tax_id",
719
719
  paymentProcessorMetadata: "payment_processor_metadata",
720
+ customerBillingAddressFields: "customer_billing_address_fields",
720
721
  productPrice: "product_price",
721
722
  attachedCustomFields: "attached_custom_fields",
722
723
  customerSessionToken: "customer_session_token",
723
- customerBillingAddressFields: "customer_billing_address_fields",
724
724
  });
725
725
  });
726
726
 
@@ -44,14 +44,14 @@ import {
44
44
  } from "./customerbenefitgrantmetercreditupdate.js";
45
45
 
46
46
  export type CustomerBenefitGrantUpdate =
47
- | (CustomerBenefitGrantDiscordUpdate & { benefitType: "discord" })
48
- | (CustomerBenefitGrantGitHubRepositoryUpdate & {
49
- benefitType: "github_repository";
50
- })
51
47
  | (CustomerBenefitGrantCustomUpdate & { benefitType: "custom" })
52
48
  | (CustomerBenefitGrantDownloadablesUpdate & { benefitType: "downloadables" })
53
49
  | (CustomerBenefitGrantLicenseKeysUpdate & { benefitType: "license_keys" })
54
- | (CustomerBenefitGrantMeterCreditUpdate & { benefitType: "meter_credit" });
50
+ | (CustomerBenefitGrantMeterCreditUpdate & { benefitType: "meter_credit" })
51
+ | (CustomerBenefitGrantDiscordUpdate & { benefitType: "discord" })
52
+ | (CustomerBenefitGrantGitHubRepositoryUpdate & {
53
+ benefitType: "github_repository";
54
+ });
55
55
 
56
56
  /** @internal */
57
57
  export const CustomerBenefitGrantUpdate$inboundSchema: z.ZodType<
@@ -59,16 +59,6 @@ export const CustomerBenefitGrantUpdate$inboundSchema: z.ZodType<
59
59
  z.ZodTypeDef,
60
60
  unknown
61
61
  > = z.union([
62
- CustomerBenefitGrantDiscordUpdate$inboundSchema.and(
63
- z.object({ benefit_type: z.literal("discord") }).transform((v) => ({
64
- benefitType: v.benefit_type,
65
- })),
66
- ),
67
- CustomerBenefitGrantGitHubRepositoryUpdate$inboundSchema.and(
68
- z.object({ benefit_type: z.literal("github_repository") }).transform((
69
- v,
70
- ) => ({ benefitType: v.benefit_type })),
71
- ),
72
62
  CustomerBenefitGrantCustomUpdate$inboundSchema.and(
73
63
  z.object({ benefit_type: z.literal("custom") }).transform((v) => ({
74
64
  benefitType: v.benefit_type,
@@ -89,14 +79,20 @@ export const CustomerBenefitGrantUpdate$inboundSchema: z.ZodType<
89
79
  benefitType: v.benefit_type,
90
80
  })),
91
81
  ),
82
+ CustomerBenefitGrantDiscordUpdate$inboundSchema.and(
83
+ z.object({ benefit_type: z.literal("discord") }).transform((v) => ({
84
+ benefitType: v.benefit_type,
85
+ })),
86
+ ),
87
+ CustomerBenefitGrantGitHubRepositoryUpdate$inboundSchema.and(
88
+ z.object({ benefit_type: z.literal("github_repository") }).transform((
89
+ v,
90
+ ) => ({ benefitType: v.benefit_type })),
91
+ ),
92
92
  ]);
93
93
 
94
94
  /** @internal */
95
95
  export type CustomerBenefitGrantUpdate$Outbound =
96
- | (CustomerBenefitGrantDiscordUpdate$Outbound & { benefit_type: "discord" })
97
- | (CustomerBenefitGrantGitHubRepositoryUpdate$Outbound & {
98
- benefit_type: "github_repository";
99
- })
100
96
  | (CustomerBenefitGrantCustomUpdate$Outbound & { benefit_type: "custom" })
101
97
  | (CustomerBenefitGrantDownloadablesUpdate$Outbound & {
102
98
  benefit_type: "downloadables";
@@ -106,6 +102,10 @@ export type CustomerBenefitGrantUpdate$Outbound =
106
102
  })
107
103
  | (CustomerBenefitGrantMeterCreditUpdate$Outbound & {
108
104
  benefit_type: "meter_credit";
105
+ })
106
+ | (CustomerBenefitGrantDiscordUpdate$Outbound & { benefit_type: "discord" })
107
+ | (CustomerBenefitGrantGitHubRepositoryUpdate$Outbound & {
108
+ benefit_type: "github_repository";
109
109
  });
110
110
 
111
111
  /** @internal */
@@ -114,16 +114,6 @@ export const CustomerBenefitGrantUpdate$outboundSchema: z.ZodType<
114
114
  z.ZodTypeDef,
115
115
  CustomerBenefitGrantUpdate
116
116
  > = z.union([
117
- CustomerBenefitGrantDiscordUpdate$outboundSchema.and(
118
- z.object({ benefitType: z.literal("discord") }).transform((v) => ({
119
- benefit_type: v.benefitType,
120
- })),
121
- ),
122
- CustomerBenefitGrantGitHubRepositoryUpdate$outboundSchema.and(
123
- z.object({ benefitType: z.literal("github_repository") }).transform((
124
- v,
125
- ) => ({ benefit_type: v.benefitType })),
126
- ),
127
117
  CustomerBenefitGrantCustomUpdate$outboundSchema.and(
128
118
  z.object({ benefitType: z.literal("custom") }).transform((v) => ({
129
119
  benefit_type: v.benefitType,
@@ -144,6 +134,16 @@ export const CustomerBenefitGrantUpdate$outboundSchema: z.ZodType<
144
134
  benefit_type: v.benefitType,
145
135
  })),
146
136
  ),
137
+ CustomerBenefitGrantDiscordUpdate$outboundSchema.and(
138
+ z.object({ benefitType: z.literal("discord") }).transform((v) => ({
139
+ benefit_type: v.benefitType,
140
+ })),
141
+ ),
142
+ CustomerBenefitGrantGitHubRepositoryUpdate$outboundSchema.and(
143
+ z.object({ benefitType: z.literal("github_repository") }).transform((
144
+ v,
145
+ ) => ({ benefit_type: v.benefitType })),
146
+ ),
147
147
  ]);
148
148
 
149
149
  /**
@@ -15,7 +15,7 @@ export type CustomerSessionCustomerExternalIDCreate = {
15
15
  /**
16
16
  * External ID of the customer to create a session for.
17
17
  */
18
- customerExternalId: string;
18
+ externalCustomerId: string;
19
19
  };
20
20
 
21
21
  /** @internal */
@@ -24,16 +24,16 @@ export const CustomerSessionCustomerExternalIDCreate$inboundSchema: z.ZodType<
24
24
  z.ZodTypeDef,
25
25
  unknown
26
26
  > = z.object({
27
- customer_external_id: z.string(),
27
+ external_customer_id: z.string(),
28
28
  }).transform((v) => {
29
29
  return remap$(v, {
30
- "customer_external_id": "customerExternalId",
30
+ "external_customer_id": "externalCustomerId",
31
31
  });
32
32
  });
33
33
 
34
34
  /** @internal */
35
35
  export type CustomerSessionCustomerExternalIDCreate$Outbound = {
36
- customer_external_id: string;
36
+ external_customer_id: string;
37
37
  };
38
38
 
39
39
  /** @internal */
@@ -42,10 +42,10 @@ export const CustomerSessionCustomerExternalIDCreate$outboundSchema: z.ZodType<
42
42
  z.ZodTypeDef,
43
43
  CustomerSessionCustomerExternalIDCreate
44
44
  > = z.object({
45
- customerExternalId: z.string(),
45
+ externalCustomerId: z.string(),
46
46
  }).transform((v) => {
47
47
  return remap$(v, {
48
- customerExternalId: "customer_external_id",
48
+ externalCustomerId: "external_customer_id",
49
49
  });
50
50
  });
51
51