@polar-sh/sdk 0.46.5 → 0.46.7

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 (510) hide show
  1. package/dist/commonjs/funcs/benefitsDelete.js.map +1 -1
  2. package/dist/commonjs/funcs/benefitsGet.js.map +1 -1
  3. package/dist/commonjs/funcs/benefitsGrants.js.map +1 -1
  4. package/dist/commonjs/funcs/benefitsUpdate.js.map +1 -1
  5. package/dist/commonjs/funcs/checkoutLinksDelete.js.map +1 -1
  6. package/dist/commonjs/funcs/checkoutLinksGet.js.map +1 -1
  7. package/dist/commonjs/funcs/checkoutLinksUpdate.js.map +1 -1
  8. package/dist/commonjs/funcs/checkoutsClientConfirm.js.map +1 -1
  9. package/dist/commonjs/funcs/checkoutsClientGet.js.map +1 -1
  10. package/dist/commonjs/funcs/checkoutsClientUpdate.js.map +1 -1
  11. package/dist/commonjs/funcs/checkoutsGet.js.map +1 -1
  12. package/dist/commonjs/funcs/checkoutsUpdate.js.map +1 -1
  13. package/dist/commonjs/funcs/customFieldsDelete.js.map +1 -1
  14. package/dist/commonjs/funcs/customFieldsGet.js.map +1 -1
  15. package/dist/commonjs/funcs/customFieldsUpdate.js.map +1 -1
  16. package/dist/commonjs/funcs/customerMetersGet.js.map +1 -1
  17. package/dist/commonjs/funcs/customerPortalBenefitGrantsGet.js.map +1 -1
  18. package/dist/commonjs/funcs/customerPortalBenefitGrantsUpdate.js.map +1 -1
  19. package/dist/commonjs/funcs/customerPortalCustomerMetersGet.js.map +1 -1
  20. package/dist/commonjs/funcs/customerPortalCustomersDeletePaymentMethod.js.map +1 -1
  21. package/dist/commonjs/funcs/customerPortalLicenseKeysGet.js.map +1 -1
  22. package/dist/commonjs/funcs/customerPortalMembersRemoveMember.js.map +1 -1
  23. package/dist/commonjs/funcs/customerPortalMembersUpdateMember.js.map +1 -1
  24. package/dist/commonjs/funcs/customerPortalOrdersConfirmRetryPayment.js.map +1 -1
  25. package/dist/commonjs/funcs/customerPortalOrdersGenerateInvoice.js.map +1 -1
  26. package/dist/commonjs/funcs/customerPortalOrdersGet.js.map +1 -1
  27. package/dist/commonjs/funcs/customerPortalOrdersGetPaymentStatus.js.map +1 -1
  28. package/dist/commonjs/funcs/customerPortalOrdersInvoice.js.map +1 -1
  29. package/dist/commonjs/funcs/customerPortalOrdersUpdate.js.map +1 -1
  30. package/dist/commonjs/funcs/customerPortalOrganizationsGet.js.map +1 -1
  31. package/dist/commonjs/funcs/customerPortalSeatsResendInvitation.js.map +1 -1
  32. package/dist/commonjs/funcs/customerPortalSeatsRevokeSeat.js.map +1 -1
  33. package/dist/commonjs/funcs/customerPortalSubscriptionsCancel.js.map +1 -1
  34. package/dist/commonjs/funcs/customerPortalSubscriptionsGet.js.map +1 -1
  35. package/dist/commonjs/funcs/customerPortalSubscriptionsUpdate.js.map +1 -1
  36. package/dist/commonjs/funcs/customerPortalWalletsGet.js.map +1 -1
  37. package/dist/commonjs/funcs/customerSeatsGetClaimInfo.js.map +1 -1
  38. package/dist/commonjs/funcs/customerSeatsResendInvitation.js.map +1 -1
  39. package/dist/commonjs/funcs/customerSeatsRevokeSeat.js.map +1 -1
  40. package/dist/commonjs/funcs/customersDelete.js.map +1 -1
  41. package/dist/commonjs/funcs/customersDeleteExternal.js.map +1 -1
  42. package/dist/commonjs/funcs/customersGet.js.map +1 -1
  43. package/dist/commonjs/funcs/customersGetExternal.js.map +1 -1
  44. package/dist/commonjs/funcs/customersGetState.js.map +1 -1
  45. package/dist/commonjs/funcs/customersGetStateExternal.js.map +1 -1
  46. package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
  47. package/dist/commonjs/funcs/customersUpdateExternal.js.map +1 -1
  48. package/dist/commonjs/funcs/discountsDelete.js.map +1 -1
  49. package/dist/commonjs/funcs/discountsGet.js.map +1 -1
  50. package/dist/commonjs/funcs/discountsUpdate.js.map +1 -1
  51. package/dist/commonjs/funcs/disputesGet.js.map +1 -1
  52. package/dist/commonjs/funcs/eventTypesUpdate.js.map +1 -1
  53. package/dist/commonjs/funcs/eventsGet.js.map +1 -1
  54. package/dist/commonjs/funcs/filesDelete.js.map +1 -1
  55. package/dist/commonjs/funcs/filesUpdate.js.map +1 -1
  56. package/dist/commonjs/funcs/filesUploaded.js.map +1 -1
  57. package/dist/commonjs/funcs/licenseKeysGet.js.map +1 -1
  58. package/dist/commonjs/funcs/licenseKeysGetActivation.js.map +1 -1
  59. package/dist/commonjs/funcs/licenseKeysUpdate.js.map +1 -1
  60. package/dist/commonjs/funcs/membersDeleteMember.js.map +1 -1
  61. package/dist/commonjs/funcs/membersGetMember.js.map +1 -1
  62. package/dist/commonjs/funcs/membersUpdateMember.js.map +1 -1
  63. package/dist/commonjs/funcs/metersGet.js.map +1 -1
  64. package/dist/commonjs/funcs/metersQuantities.js.map +1 -1
  65. package/dist/commonjs/funcs/metersUpdate.js.map +1 -1
  66. package/dist/commonjs/funcs/oauth2ClientsDelete.js.map +1 -1
  67. package/dist/commonjs/funcs/oauth2ClientsGet.js.map +1 -1
  68. package/dist/commonjs/funcs/oauth2ClientsUpdate.js.map +1 -1
  69. package/dist/commonjs/funcs/ordersGenerateInvoice.js.map +1 -1
  70. package/dist/commonjs/funcs/ordersGet.js.map +1 -1
  71. package/dist/commonjs/funcs/ordersInvoice.js.map +1 -1
  72. package/dist/commonjs/funcs/ordersUpdate.js.map +1 -1
  73. package/dist/commonjs/funcs/organizationAccessTokensDelete.js.map +1 -1
  74. package/dist/commonjs/funcs/organizationAccessTokensUpdate.js.map +1 -1
  75. package/dist/commonjs/funcs/organizationsGet.js.map +1 -1
  76. package/dist/commonjs/funcs/organizationsUpdate.js.map +1 -1
  77. package/dist/commonjs/funcs/paymentsGet.js.map +1 -1
  78. package/dist/commonjs/funcs/productsGet.js.map +1 -1
  79. package/dist/commonjs/funcs/productsUpdate.js.map +1 -1
  80. package/dist/commonjs/funcs/productsUpdateBenefits.js.map +1 -1
  81. package/dist/commonjs/funcs/subscriptionsGet.js.map +1 -1
  82. package/dist/commonjs/funcs/subscriptionsRevoke.js.map +1 -1
  83. package/dist/commonjs/funcs/subscriptionsUpdate.js.map +1 -1
  84. package/dist/commonjs/funcs/webhooksDeleteWebhookEndpoint.js.map +1 -1
  85. package/dist/commonjs/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
  86. package/dist/commonjs/funcs/webhooksRedeliverWebhookEvent.js.map +1 -1
  87. package/dist/commonjs/funcs/webhooksResetWebhookEndpointSecret.js.map +1 -1
  88. package/dist/commonjs/funcs/webhooksUpdateWebhookEndpoint.js.map +1 -1
  89. package/dist/commonjs/lib/config.d.ts +3 -3
  90. package/dist/commonjs/lib/config.js +3 -3
  91. package/dist/commonjs/lib/config.js.map +1 -1
  92. package/dist/commonjs/lib/encodings.d.ts.map +1 -1
  93. package/dist/commonjs/lib/encodings.js +20 -5
  94. package/dist/commonjs/lib/encodings.js.map +1 -1
  95. package/dist/commonjs/lib/sdks.d.ts.map +1 -1
  96. package/dist/commonjs/lib/sdks.js +8 -4
  97. package/dist/commonjs/lib/sdks.js.map +1 -1
  98. package/dist/commonjs/lib/url.d.ts.map +1 -1
  99. package/dist/commonjs/lib/url.js +4 -2
  100. package/dist/commonjs/lib/url.js.map +1 -1
  101. package/dist/commonjs/models/components/checkout.d.ts +0 -5
  102. package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
  103. package/dist/commonjs/models/components/checkout.js +0 -4
  104. package/dist/commonjs/models/components/checkout.js.map +1 -1
  105. package/dist/commonjs/models/components/checkoutpublic.d.ts +0 -4
  106. package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
  107. package/dist/commonjs/models/components/checkoutpublic.js +0 -2
  108. package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
  109. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +0 -4
  110. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  111. package/dist/commonjs/models/components/checkoutpublicconfirmed.js +0 -2
  112. package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
  113. package/dist/commonjs/models/components/legacyrecurringproductpricecustom.d.ts +6 -0
  114. package/dist/commonjs/models/components/legacyrecurringproductpricecustom.d.ts.map +1 -1
  115. package/dist/commonjs/models/components/legacyrecurringproductpricecustom.js +5 -0
  116. package/dist/commonjs/models/components/legacyrecurringproductpricecustom.js.map +1 -1
  117. package/dist/commonjs/models/components/legacyrecurringproductpricefixed.d.ts +6 -0
  118. package/dist/commonjs/models/components/legacyrecurringproductpricefixed.d.ts.map +1 -1
  119. package/dist/commonjs/models/components/legacyrecurringproductpricefixed.js +5 -0
  120. package/dist/commonjs/models/components/legacyrecurringproductpricefixed.js.map +1 -1
  121. package/dist/commonjs/models/components/legacyrecurringproductpricefree.d.ts +6 -0
  122. package/dist/commonjs/models/components/legacyrecurringproductpricefree.d.ts.map +1 -1
  123. package/dist/commonjs/models/components/legacyrecurringproductpricefree.js +5 -0
  124. package/dist/commonjs/models/components/legacyrecurringproductpricefree.js.map +1 -1
  125. package/dist/commonjs/models/components/organization.d.ts +4 -1
  126. package/dist/commonjs/models/components/organization.d.ts.map +1 -1
  127. package/dist/commonjs/models/components/organization.js +5 -0
  128. package/dist/commonjs/models/components/organization.js.map +1 -1
  129. package/dist/commonjs/models/components/organizationcreate.d.ts +3 -0
  130. package/dist/commonjs/models/components/organizationcreate.d.ts.map +1 -1
  131. package/dist/commonjs/models/components/organizationcreate.js +3 -0
  132. package/dist/commonjs/models/components/organizationcreate.js.map +1 -1
  133. package/dist/commonjs/models/components/organizationdetails.d.ts +26 -6
  134. package/dist/commonjs/models/components/organizationdetails.d.ts.map +1 -1
  135. package/dist/commonjs/models/components/organizationdetails.js +8 -4
  136. package/dist/commonjs/models/components/organizationdetails.js.map +1 -1
  137. package/dist/commonjs/models/components/organizationupdate.d.ts +6 -0
  138. package/dist/commonjs/models/components/organizationupdate.d.ts.map +1 -1
  139. package/dist/commonjs/models/components/organizationupdate.js +3 -0
  140. package/dist/commonjs/models/components/organizationupdate.js.map +1 -1
  141. package/dist/commonjs/models/components/productpricecustom.d.ts +6 -0
  142. package/dist/commonjs/models/components/productpricecustom.d.ts.map +1 -1
  143. package/dist/commonjs/models/components/productpricecustom.js +5 -0
  144. package/dist/commonjs/models/components/productpricecustom.js.map +1 -1
  145. package/dist/commonjs/models/components/productpricecustomcreate.d.ts +6 -0
  146. package/dist/commonjs/models/components/productpricecustomcreate.d.ts.map +1 -1
  147. package/dist/commonjs/models/components/productpricecustomcreate.js +3 -0
  148. package/dist/commonjs/models/components/productpricecustomcreate.js.map +1 -1
  149. package/dist/commonjs/models/components/productpricefixed.d.ts +6 -0
  150. package/dist/commonjs/models/components/productpricefixed.d.ts.map +1 -1
  151. package/dist/commonjs/models/components/productpricefixed.js +5 -0
  152. package/dist/commonjs/models/components/productpricefixed.js.map +1 -1
  153. package/dist/commonjs/models/components/productpricefixedcreate.d.ts +6 -0
  154. package/dist/commonjs/models/components/productpricefixedcreate.d.ts.map +1 -1
  155. package/dist/commonjs/models/components/productpricefixedcreate.js +3 -0
  156. package/dist/commonjs/models/components/productpricefixedcreate.js.map +1 -1
  157. package/dist/commonjs/models/components/productpricefree.d.ts +6 -0
  158. package/dist/commonjs/models/components/productpricefree.d.ts.map +1 -1
  159. package/dist/commonjs/models/components/productpricefree.js +5 -0
  160. package/dist/commonjs/models/components/productpricefree.js.map +1 -1
  161. package/dist/commonjs/models/components/productpricefreecreate.d.ts +6 -0
  162. package/dist/commonjs/models/components/productpricefreecreate.d.ts.map +1 -1
  163. package/dist/commonjs/models/components/productpricefreecreate.js +3 -0
  164. package/dist/commonjs/models/components/productpricefreecreate.js.map +1 -1
  165. package/dist/commonjs/models/components/productpricemeteredunit.d.ts +6 -0
  166. package/dist/commonjs/models/components/productpricemeteredunit.d.ts.map +1 -1
  167. package/dist/commonjs/models/components/productpricemeteredunit.js +5 -0
  168. package/dist/commonjs/models/components/productpricemeteredunit.js.map +1 -1
  169. package/dist/commonjs/models/components/productpricemeteredunitcreate.d.ts +6 -0
  170. package/dist/commonjs/models/components/productpricemeteredunitcreate.d.ts.map +1 -1
  171. package/dist/commonjs/models/components/productpricemeteredunitcreate.js +3 -0
  172. package/dist/commonjs/models/components/productpricemeteredunitcreate.js.map +1 -1
  173. package/dist/commonjs/models/components/productpriceseatbased.d.ts +6 -0
  174. package/dist/commonjs/models/components/productpriceseatbased.d.ts.map +1 -1
  175. package/dist/commonjs/models/components/productpriceseatbased.js +5 -0
  176. package/dist/commonjs/models/components/productpriceseatbased.js.map +1 -1
  177. package/dist/commonjs/models/components/productpriceseatbasedcreate.d.ts +6 -0
  178. package/dist/commonjs/models/components/productpriceseatbasedcreate.d.ts.map +1 -1
  179. package/dist/commonjs/models/components/productpriceseatbasedcreate.js +3 -0
  180. package/dist/commonjs/models/components/productpriceseatbasedcreate.js.map +1 -1
  181. package/dist/commonjs/models/components/productpriceseattiersinput.d.ts +3 -0
  182. package/dist/commonjs/models/components/productpriceseattiersinput.d.ts.map +1 -1
  183. package/dist/commonjs/models/components/productpriceseattiersinput.js +9 -2
  184. package/dist/commonjs/models/components/productpriceseattiersinput.js.map +1 -1
  185. package/dist/commonjs/models/components/productpriceseattiersoutput.d.ts +3 -0
  186. package/dist/commonjs/models/components/productpriceseattiersoutput.d.ts.map +1 -1
  187. package/dist/commonjs/models/components/productpriceseattiersoutput.js +5 -0
  188. package/dist/commonjs/models/components/productpriceseattiersoutput.js.map +1 -1
  189. package/dist/commonjs/models/components/seattiertype.d.ts +12 -0
  190. package/dist/commonjs/models/components/seattiertype.d.ts.map +1 -0
  191. package/dist/commonjs/models/components/seattiertype.js +49 -0
  192. package/dist/commonjs/models/components/seattiertype.js.map +1 -0
  193. package/dist/commonjs/models/components/taxbehavioroption.d.ts +13 -0
  194. package/dist/commonjs/models/components/taxbehavioroption.d.ts.map +1 -0
  195. package/dist/commonjs/models/components/taxbehavioroption.js +50 -0
  196. package/dist/commonjs/models/components/taxbehavioroption.js.map +1 -0
  197. package/dist/esm/funcs/benefitsDelete.js.map +1 -1
  198. package/dist/esm/funcs/benefitsGet.js.map +1 -1
  199. package/dist/esm/funcs/benefitsGrants.js.map +1 -1
  200. package/dist/esm/funcs/benefitsUpdate.js.map +1 -1
  201. package/dist/esm/funcs/checkoutLinksDelete.js.map +1 -1
  202. package/dist/esm/funcs/checkoutLinksGet.js.map +1 -1
  203. package/dist/esm/funcs/checkoutLinksUpdate.js.map +1 -1
  204. package/dist/esm/funcs/checkoutsClientConfirm.js.map +1 -1
  205. package/dist/esm/funcs/checkoutsClientGet.js.map +1 -1
  206. package/dist/esm/funcs/checkoutsClientUpdate.js.map +1 -1
  207. package/dist/esm/funcs/checkoutsGet.js.map +1 -1
  208. package/dist/esm/funcs/checkoutsUpdate.js.map +1 -1
  209. package/dist/esm/funcs/customFieldsDelete.js.map +1 -1
  210. package/dist/esm/funcs/customFieldsGet.js.map +1 -1
  211. package/dist/esm/funcs/customFieldsUpdate.js.map +1 -1
  212. package/dist/esm/funcs/customerMetersGet.js.map +1 -1
  213. package/dist/esm/funcs/customerPortalBenefitGrantsGet.js.map +1 -1
  214. package/dist/esm/funcs/customerPortalBenefitGrantsUpdate.js.map +1 -1
  215. package/dist/esm/funcs/customerPortalCustomerMetersGet.js.map +1 -1
  216. package/dist/esm/funcs/customerPortalCustomersDeletePaymentMethod.js.map +1 -1
  217. package/dist/esm/funcs/customerPortalLicenseKeysGet.js.map +1 -1
  218. package/dist/esm/funcs/customerPortalMembersRemoveMember.js.map +1 -1
  219. package/dist/esm/funcs/customerPortalMembersUpdateMember.js.map +1 -1
  220. package/dist/esm/funcs/customerPortalOrdersConfirmRetryPayment.js.map +1 -1
  221. package/dist/esm/funcs/customerPortalOrdersGenerateInvoice.js.map +1 -1
  222. package/dist/esm/funcs/customerPortalOrdersGet.js.map +1 -1
  223. package/dist/esm/funcs/customerPortalOrdersGetPaymentStatus.js.map +1 -1
  224. package/dist/esm/funcs/customerPortalOrdersInvoice.js.map +1 -1
  225. package/dist/esm/funcs/customerPortalOrdersUpdate.js.map +1 -1
  226. package/dist/esm/funcs/customerPortalOrganizationsGet.js.map +1 -1
  227. package/dist/esm/funcs/customerPortalSeatsResendInvitation.js.map +1 -1
  228. package/dist/esm/funcs/customerPortalSeatsRevokeSeat.js.map +1 -1
  229. package/dist/esm/funcs/customerPortalSubscriptionsCancel.js.map +1 -1
  230. package/dist/esm/funcs/customerPortalSubscriptionsGet.js.map +1 -1
  231. package/dist/esm/funcs/customerPortalSubscriptionsUpdate.js.map +1 -1
  232. package/dist/esm/funcs/customerPortalWalletsGet.js.map +1 -1
  233. package/dist/esm/funcs/customerSeatsGetClaimInfo.js.map +1 -1
  234. package/dist/esm/funcs/customerSeatsResendInvitation.js.map +1 -1
  235. package/dist/esm/funcs/customerSeatsRevokeSeat.js.map +1 -1
  236. package/dist/esm/funcs/customersDelete.js.map +1 -1
  237. package/dist/esm/funcs/customersDeleteExternal.js.map +1 -1
  238. package/dist/esm/funcs/customersGet.js.map +1 -1
  239. package/dist/esm/funcs/customersGetExternal.js.map +1 -1
  240. package/dist/esm/funcs/customersGetState.js.map +1 -1
  241. package/dist/esm/funcs/customersGetStateExternal.js.map +1 -1
  242. package/dist/esm/funcs/customersUpdate.js.map +1 -1
  243. package/dist/esm/funcs/customersUpdateExternal.js.map +1 -1
  244. package/dist/esm/funcs/discountsDelete.js.map +1 -1
  245. package/dist/esm/funcs/discountsGet.js.map +1 -1
  246. package/dist/esm/funcs/discountsUpdate.js.map +1 -1
  247. package/dist/esm/funcs/disputesGet.js.map +1 -1
  248. package/dist/esm/funcs/eventTypesUpdate.js.map +1 -1
  249. package/dist/esm/funcs/eventsGet.js.map +1 -1
  250. package/dist/esm/funcs/filesDelete.js.map +1 -1
  251. package/dist/esm/funcs/filesUpdate.js.map +1 -1
  252. package/dist/esm/funcs/filesUploaded.js.map +1 -1
  253. package/dist/esm/funcs/licenseKeysGet.js.map +1 -1
  254. package/dist/esm/funcs/licenseKeysGetActivation.js.map +1 -1
  255. package/dist/esm/funcs/licenseKeysUpdate.js.map +1 -1
  256. package/dist/esm/funcs/membersDeleteMember.js.map +1 -1
  257. package/dist/esm/funcs/membersGetMember.js.map +1 -1
  258. package/dist/esm/funcs/membersUpdateMember.js.map +1 -1
  259. package/dist/esm/funcs/metersGet.js.map +1 -1
  260. package/dist/esm/funcs/metersQuantities.js.map +1 -1
  261. package/dist/esm/funcs/metersUpdate.js.map +1 -1
  262. package/dist/esm/funcs/oauth2ClientsDelete.js.map +1 -1
  263. package/dist/esm/funcs/oauth2ClientsGet.js.map +1 -1
  264. package/dist/esm/funcs/oauth2ClientsUpdate.js.map +1 -1
  265. package/dist/esm/funcs/ordersGenerateInvoice.js.map +1 -1
  266. package/dist/esm/funcs/ordersGet.js.map +1 -1
  267. package/dist/esm/funcs/ordersInvoice.js.map +1 -1
  268. package/dist/esm/funcs/ordersUpdate.js.map +1 -1
  269. package/dist/esm/funcs/organizationAccessTokensDelete.js.map +1 -1
  270. package/dist/esm/funcs/organizationAccessTokensUpdate.js.map +1 -1
  271. package/dist/esm/funcs/organizationsGet.js.map +1 -1
  272. package/dist/esm/funcs/organizationsUpdate.js.map +1 -1
  273. package/dist/esm/funcs/paymentsGet.js.map +1 -1
  274. package/dist/esm/funcs/productsGet.js.map +1 -1
  275. package/dist/esm/funcs/productsUpdate.js.map +1 -1
  276. package/dist/esm/funcs/productsUpdateBenefits.js.map +1 -1
  277. package/dist/esm/funcs/subscriptionsGet.js.map +1 -1
  278. package/dist/esm/funcs/subscriptionsRevoke.js.map +1 -1
  279. package/dist/esm/funcs/subscriptionsUpdate.js.map +1 -1
  280. package/dist/esm/funcs/webhooksDeleteWebhookEndpoint.js.map +1 -1
  281. package/dist/esm/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
  282. package/dist/esm/funcs/webhooksRedeliverWebhookEvent.js.map +1 -1
  283. package/dist/esm/funcs/webhooksResetWebhookEndpointSecret.js.map +1 -1
  284. package/dist/esm/funcs/webhooksUpdateWebhookEndpoint.js.map +1 -1
  285. package/dist/esm/lib/config.d.ts +3 -3
  286. package/dist/esm/lib/config.js +3 -3
  287. package/dist/esm/lib/config.js.map +1 -1
  288. package/dist/esm/lib/encodings.d.ts.map +1 -1
  289. package/dist/esm/lib/encodings.js +20 -5
  290. package/dist/esm/lib/encodings.js.map +1 -1
  291. package/dist/esm/lib/sdks.d.ts.map +1 -1
  292. package/dist/esm/lib/sdks.js +8 -4
  293. package/dist/esm/lib/sdks.js.map +1 -1
  294. package/dist/esm/lib/url.d.ts.map +1 -1
  295. package/dist/esm/lib/url.js +4 -2
  296. package/dist/esm/lib/url.js.map +1 -1
  297. package/dist/esm/models/components/checkout.d.ts +0 -5
  298. package/dist/esm/models/components/checkout.d.ts.map +1 -1
  299. package/dist/esm/models/components/checkout.js +0 -4
  300. package/dist/esm/models/components/checkout.js.map +1 -1
  301. package/dist/esm/models/components/checkoutpublic.d.ts +0 -4
  302. package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
  303. package/dist/esm/models/components/checkoutpublic.js +0 -2
  304. package/dist/esm/models/components/checkoutpublic.js.map +1 -1
  305. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +0 -4
  306. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  307. package/dist/esm/models/components/checkoutpublicconfirmed.js +0 -2
  308. package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
  309. package/dist/esm/models/components/legacyrecurringproductpricecustom.d.ts +6 -0
  310. package/dist/esm/models/components/legacyrecurringproductpricecustom.d.ts.map +1 -1
  311. package/dist/esm/models/components/legacyrecurringproductpricecustom.js +5 -0
  312. package/dist/esm/models/components/legacyrecurringproductpricecustom.js.map +1 -1
  313. package/dist/esm/models/components/legacyrecurringproductpricefixed.d.ts +6 -0
  314. package/dist/esm/models/components/legacyrecurringproductpricefixed.d.ts.map +1 -1
  315. package/dist/esm/models/components/legacyrecurringproductpricefixed.js +5 -0
  316. package/dist/esm/models/components/legacyrecurringproductpricefixed.js.map +1 -1
  317. package/dist/esm/models/components/legacyrecurringproductpricefree.d.ts +6 -0
  318. package/dist/esm/models/components/legacyrecurringproductpricefree.d.ts.map +1 -1
  319. package/dist/esm/models/components/legacyrecurringproductpricefree.js +5 -0
  320. package/dist/esm/models/components/legacyrecurringproductpricefree.js.map +1 -1
  321. package/dist/esm/models/components/organization.d.ts +4 -1
  322. package/dist/esm/models/components/organization.d.ts.map +1 -1
  323. package/dist/esm/models/components/organization.js +5 -0
  324. package/dist/esm/models/components/organization.js.map +1 -1
  325. package/dist/esm/models/components/organizationcreate.d.ts +3 -0
  326. package/dist/esm/models/components/organizationcreate.d.ts.map +1 -1
  327. package/dist/esm/models/components/organizationcreate.js +3 -0
  328. package/dist/esm/models/components/organizationcreate.js.map +1 -1
  329. package/dist/esm/models/components/organizationdetails.d.ts +26 -6
  330. package/dist/esm/models/components/organizationdetails.d.ts.map +1 -1
  331. package/dist/esm/models/components/organizationdetails.js +8 -4
  332. package/dist/esm/models/components/organizationdetails.js.map +1 -1
  333. package/dist/esm/models/components/organizationupdate.d.ts +6 -0
  334. package/dist/esm/models/components/organizationupdate.d.ts.map +1 -1
  335. package/dist/esm/models/components/organizationupdate.js +3 -0
  336. package/dist/esm/models/components/organizationupdate.js.map +1 -1
  337. package/dist/esm/models/components/productpricecustom.d.ts +6 -0
  338. package/dist/esm/models/components/productpricecustom.d.ts.map +1 -1
  339. package/dist/esm/models/components/productpricecustom.js +5 -0
  340. package/dist/esm/models/components/productpricecustom.js.map +1 -1
  341. package/dist/esm/models/components/productpricecustomcreate.d.ts +6 -0
  342. package/dist/esm/models/components/productpricecustomcreate.d.ts.map +1 -1
  343. package/dist/esm/models/components/productpricecustomcreate.js +3 -0
  344. package/dist/esm/models/components/productpricecustomcreate.js.map +1 -1
  345. package/dist/esm/models/components/productpricefixed.d.ts +6 -0
  346. package/dist/esm/models/components/productpricefixed.d.ts.map +1 -1
  347. package/dist/esm/models/components/productpricefixed.js +5 -0
  348. package/dist/esm/models/components/productpricefixed.js.map +1 -1
  349. package/dist/esm/models/components/productpricefixedcreate.d.ts +6 -0
  350. package/dist/esm/models/components/productpricefixedcreate.d.ts.map +1 -1
  351. package/dist/esm/models/components/productpricefixedcreate.js +3 -0
  352. package/dist/esm/models/components/productpricefixedcreate.js.map +1 -1
  353. package/dist/esm/models/components/productpricefree.d.ts +6 -0
  354. package/dist/esm/models/components/productpricefree.d.ts.map +1 -1
  355. package/dist/esm/models/components/productpricefree.js +5 -0
  356. package/dist/esm/models/components/productpricefree.js.map +1 -1
  357. package/dist/esm/models/components/productpricefreecreate.d.ts +6 -0
  358. package/dist/esm/models/components/productpricefreecreate.d.ts.map +1 -1
  359. package/dist/esm/models/components/productpricefreecreate.js +3 -0
  360. package/dist/esm/models/components/productpricefreecreate.js.map +1 -1
  361. package/dist/esm/models/components/productpricemeteredunit.d.ts +6 -0
  362. package/dist/esm/models/components/productpricemeteredunit.d.ts.map +1 -1
  363. package/dist/esm/models/components/productpricemeteredunit.js +5 -0
  364. package/dist/esm/models/components/productpricemeteredunit.js.map +1 -1
  365. package/dist/esm/models/components/productpricemeteredunitcreate.d.ts +6 -0
  366. package/dist/esm/models/components/productpricemeteredunitcreate.d.ts.map +1 -1
  367. package/dist/esm/models/components/productpricemeteredunitcreate.js +3 -0
  368. package/dist/esm/models/components/productpricemeteredunitcreate.js.map +1 -1
  369. package/dist/esm/models/components/productpriceseatbased.d.ts +6 -0
  370. package/dist/esm/models/components/productpriceseatbased.d.ts.map +1 -1
  371. package/dist/esm/models/components/productpriceseatbased.js +5 -0
  372. package/dist/esm/models/components/productpriceseatbased.js.map +1 -1
  373. package/dist/esm/models/components/productpriceseatbasedcreate.d.ts +6 -0
  374. package/dist/esm/models/components/productpriceseatbasedcreate.d.ts.map +1 -1
  375. package/dist/esm/models/components/productpriceseatbasedcreate.js +3 -0
  376. package/dist/esm/models/components/productpriceseatbasedcreate.js.map +1 -1
  377. package/dist/esm/models/components/productpriceseattiersinput.d.ts +3 -0
  378. package/dist/esm/models/components/productpriceseattiersinput.d.ts.map +1 -1
  379. package/dist/esm/models/components/productpriceseattiersinput.js +9 -2
  380. package/dist/esm/models/components/productpriceseattiersinput.js.map +1 -1
  381. package/dist/esm/models/components/productpriceseattiersoutput.d.ts +3 -0
  382. package/dist/esm/models/components/productpriceseattiersoutput.d.ts.map +1 -1
  383. package/dist/esm/models/components/productpriceseattiersoutput.js +5 -0
  384. package/dist/esm/models/components/productpriceseattiersoutput.js.map +1 -1
  385. package/dist/esm/models/components/seattiertype.d.ts +12 -0
  386. package/dist/esm/models/components/seattiertype.d.ts.map +1 -0
  387. package/dist/esm/models/components/seattiertype.js +13 -0
  388. package/dist/esm/models/components/seattiertype.js.map +1 -0
  389. package/dist/esm/models/components/taxbehavioroption.d.ts +13 -0
  390. package/dist/esm/models/components/taxbehavioroption.d.ts.map +1 -0
  391. package/dist/esm/models/components/taxbehavioroption.js +14 -0
  392. package/dist/esm/models/components/taxbehavioroption.js.map +1 -0
  393. package/jsr.json +1 -1
  394. package/package.json +1 -1
  395. package/src/funcs/benefitsDelete.ts +0 -1
  396. package/src/funcs/benefitsGet.ts +0 -1
  397. package/src/funcs/benefitsGrants.ts +0 -1
  398. package/src/funcs/benefitsUpdate.ts +0 -1
  399. package/src/funcs/checkoutLinksDelete.ts +0 -1
  400. package/src/funcs/checkoutLinksGet.ts +0 -1
  401. package/src/funcs/checkoutLinksUpdate.ts +0 -1
  402. package/src/funcs/checkoutsClientConfirm.ts +0 -1
  403. package/src/funcs/checkoutsClientGet.ts +0 -1
  404. package/src/funcs/checkoutsClientUpdate.ts +0 -1
  405. package/src/funcs/checkoutsGet.ts +0 -1
  406. package/src/funcs/checkoutsUpdate.ts +0 -1
  407. package/src/funcs/customFieldsDelete.ts +0 -1
  408. package/src/funcs/customFieldsGet.ts +0 -1
  409. package/src/funcs/customFieldsUpdate.ts +0 -1
  410. package/src/funcs/customerMetersGet.ts +0 -1
  411. package/src/funcs/customerPortalBenefitGrantsGet.ts +0 -1
  412. package/src/funcs/customerPortalBenefitGrantsUpdate.ts +0 -1
  413. package/src/funcs/customerPortalCustomerMetersGet.ts +0 -1
  414. package/src/funcs/customerPortalCustomersDeletePaymentMethod.ts +0 -1
  415. package/src/funcs/customerPortalLicenseKeysGet.ts +0 -1
  416. package/src/funcs/customerPortalMembersRemoveMember.ts +0 -1
  417. package/src/funcs/customerPortalMembersUpdateMember.ts +0 -1
  418. package/src/funcs/customerPortalOrdersConfirmRetryPayment.ts +0 -1
  419. package/src/funcs/customerPortalOrdersGenerateInvoice.ts +0 -1
  420. package/src/funcs/customerPortalOrdersGet.ts +0 -1
  421. package/src/funcs/customerPortalOrdersGetPaymentStatus.ts +0 -1
  422. package/src/funcs/customerPortalOrdersInvoice.ts +0 -1
  423. package/src/funcs/customerPortalOrdersUpdate.ts +0 -1
  424. package/src/funcs/customerPortalOrganizationsGet.ts +0 -1
  425. package/src/funcs/customerPortalSeatsResendInvitation.ts +0 -1
  426. package/src/funcs/customerPortalSeatsRevokeSeat.ts +0 -1
  427. package/src/funcs/customerPortalSubscriptionsCancel.ts +0 -1
  428. package/src/funcs/customerPortalSubscriptionsGet.ts +0 -1
  429. package/src/funcs/customerPortalSubscriptionsUpdate.ts +0 -1
  430. package/src/funcs/customerPortalWalletsGet.ts +0 -1
  431. package/src/funcs/customerSeatsGetClaimInfo.ts +0 -1
  432. package/src/funcs/customerSeatsResendInvitation.ts +0 -1
  433. package/src/funcs/customerSeatsRevokeSeat.ts +0 -1
  434. package/src/funcs/customersDelete.ts +0 -1
  435. package/src/funcs/customersDeleteExternal.ts +0 -1
  436. package/src/funcs/customersGet.ts +0 -1
  437. package/src/funcs/customersGetExternal.ts +0 -1
  438. package/src/funcs/customersGetState.ts +0 -1
  439. package/src/funcs/customersGetStateExternal.ts +0 -1
  440. package/src/funcs/customersUpdate.ts +0 -1
  441. package/src/funcs/customersUpdateExternal.ts +0 -1
  442. package/src/funcs/discountsDelete.ts +0 -1
  443. package/src/funcs/discountsGet.ts +0 -1
  444. package/src/funcs/discountsUpdate.ts +0 -1
  445. package/src/funcs/disputesGet.ts +0 -1
  446. package/src/funcs/eventTypesUpdate.ts +0 -1
  447. package/src/funcs/eventsGet.ts +0 -1
  448. package/src/funcs/filesDelete.ts +0 -1
  449. package/src/funcs/filesUpdate.ts +0 -1
  450. package/src/funcs/filesUploaded.ts +0 -1
  451. package/src/funcs/licenseKeysGet.ts +0 -1
  452. package/src/funcs/licenseKeysGetActivation.ts +0 -1
  453. package/src/funcs/licenseKeysUpdate.ts +0 -1
  454. package/src/funcs/membersDeleteMember.ts +0 -1
  455. package/src/funcs/membersGetMember.ts +0 -1
  456. package/src/funcs/membersUpdateMember.ts +0 -1
  457. package/src/funcs/metersGet.ts +0 -1
  458. package/src/funcs/metersQuantities.ts +0 -1
  459. package/src/funcs/metersUpdate.ts +0 -1
  460. package/src/funcs/oauth2ClientsDelete.ts +0 -1
  461. package/src/funcs/oauth2ClientsGet.ts +0 -1
  462. package/src/funcs/oauth2ClientsUpdate.ts +0 -1
  463. package/src/funcs/ordersGenerateInvoice.ts +0 -1
  464. package/src/funcs/ordersGet.ts +0 -1
  465. package/src/funcs/ordersInvoice.ts +0 -1
  466. package/src/funcs/ordersUpdate.ts +0 -1
  467. package/src/funcs/organizationAccessTokensDelete.ts +0 -1
  468. package/src/funcs/organizationAccessTokensUpdate.ts +0 -1
  469. package/src/funcs/organizationsGet.ts +0 -1
  470. package/src/funcs/organizationsUpdate.ts +0 -1
  471. package/src/funcs/paymentsGet.ts +0 -1
  472. package/src/funcs/productsGet.ts +0 -1
  473. package/src/funcs/productsUpdate.ts +0 -1
  474. package/src/funcs/productsUpdateBenefits.ts +0 -1
  475. package/src/funcs/subscriptionsGet.ts +0 -1
  476. package/src/funcs/subscriptionsRevoke.ts +0 -1
  477. package/src/funcs/subscriptionsUpdate.ts +0 -1
  478. package/src/funcs/webhooksDeleteWebhookEndpoint.ts +0 -1
  479. package/src/funcs/webhooksGetWebhookEndpoint.ts +0 -1
  480. package/src/funcs/webhooksRedeliverWebhookEvent.ts +0 -1
  481. package/src/funcs/webhooksResetWebhookEndpointSecret.ts +0 -1
  482. package/src/funcs/webhooksUpdateWebhookEndpoint.ts +0 -1
  483. package/src/lib/config.ts +3 -3
  484. package/src/lib/encodings.ts +23 -4
  485. package/src/lib/sdks.ts +7 -5
  486. package/src/lib/url.ts +16 -14
  487. package/src/models/components/checkout.ts +0 -9
  488. package/src/models/components/checkoutpublic.ts +0 -6
  489. package/src/models/components/checkoutpublicconfirmed.ts +0 -6
  490. package/src/models/components/legacyrecurringproductpricecustom.ts +14 -0
  491. package/src/models/components/legacyrecurringproductpricefixed.ts +14 -0
  492. package/src/models/components/legacyrecurringproductpricefree.ts +14 -0
  493. package/src/models/components/organization.ts +12 -1
  494. package/src/models/components/organizationcreate.ts +8 -0
  495. package/src/models/components/organizationdetails.ts +34 -10
  496. package/src/models/components/organizationupdate.ts +13 -0
  497. package/src/models/components/productpricecustom.ts +14 -0
  498. package/src/models/components/productpricecustomcreate.ts +11 -0
  499. package/src/models/components/productpricefixed.ts +14 -0
  500. package/src/models/components/productpricefixedcreate.ts +11 -0
  501. package/src/models/components/productpricefree.ts +14 -0
  502. package/src/models/components/productpricefreecreate.ts +11 -0
  503. package/src/models/components/productpricemeteredunit.ts +14 -0
  504. package/src/models/components/productpricemeteredunitcreate.ts +11 -0
  505. package/src/models/components/productpriceseatbased.ts +14 -0
  506. package/src/models/components/productpriceseatbasedcreate.ts +11 -0
  507. package/src/models/components/productpriceseattiersinput.ts +15 -3
  508. package/src/models/components/productpriceseattiersoutput.ts +11 -0
  509. package/src/models/components/seattiertype.ts +20 -0
  510. package/src/models/components/taxbehavioroption.ts +25 -0
@@ -12,6 +12,11 @@ import {
12
12
  ProductPriceSource$inboundSchema,
13
13
  ProductPriceSource$outboundSchema,
14
14
  } from "./productpricesource.js";
15
+ import {
16
+ TaxBehaviorOption,
17
+ TaxBehaviorOption$inboundSchema,
18
+ TaxBehaviorOption$outboundSchema,
19
+ } from "./taxbehavioroption.js";
15
20
 
16
21
  /**
17
22
  * A free price for a product.
@@ -35,6 +40,10 @@ export type ProductPriceFree = {
35
40
  * The currency in which the customer will be charged.
36
41
  */
37
42
  priceCurrency: string;
43
+ /**
44
+ * The tax behavior of the price. If null, it defaults to the organization's default tax behavior.
45
+ */
46
+ taxBehavior: TaxBehaviorOption | null;
38
47
  /**
39
48
  * Whether the price is archived and no longer available.
40
49
  */
@@ -62,6 +71,7 @@ export const ProductPriceFree$inboundSchema: z.ZodMiniType<
62
71
  source: ProductPriceSource$inboundSchema,
63
72
  amount_type: z.literal("free"),
64
73
  price_currency: z.string(),
74
+ tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
65
75
  is_archived: z.boolean(),
66
76
  product_id: z.string(),
67
77
  }),
@@ -71,6 +81,7 @@ export const ProductPriceFree$inboundSchema: z.ZodMiniType<
71
81
  "modified_at": "modifiedAt",
72
82
  "amount_type": "amountType",
73
83
  "price_currency": "priceCurrency",
84
+ "tax_behavior": "taxBehavior",
74
85
  "is_archived": "isArchived",
75
86
  "product_id": "productId",
76
87
  });
@@ -84,6 +95,7 @@ export type ProductPriceFree$Outbound = {
84
95
  source: string;
85
96
  amount_type: "free";
86
97
  price_currency: string;
98
+ tax_behavior: string | null;
87
99
  is_archived: boolean;
88
100
  product_id: string;
89
101
  };
@@ -100,6 +112,7 @@ export const ProductPriceFree$outboundSchema: z.ZodMiniType<
100
112
  source: ProductPriceSource$outboundSchema,
101
113
  amountType: z.literal("free"),
102
114
  priceCurrency: z.string(),
115
+ taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
103
116
  isArchived: z.boolean(),
104
117
  productId: z.string(),
105
118
  }),
@@ -109,6 +122,7 @@ export const ProductPriceFree$outboundSchema: z.ZodMiniType<
109
122
  modifiedAt: "modified_at",
110
123
  amountType: "amount_type",
111
124
  priceCurrency: "price_currency",
125
+ taxBehavior: "tax_behavior",
112
126
  isArchived: "is_archived",
113
127
  productId: "product_id",
114
128
  });
@@ -8,6 +8,10 @@ import {
8
8
  PresentmentCurrency,
9
9
  PresentmentCurrency$outboundSchema,
10
10
  } from "./presentmentcurrency.js";
11
+ import {
12
+ TaxBehaviorOption,
13
+ TaxBehaviorOption$outboundSchema,
14
+ } from "./taxbehavioroption.js";
11
15
 
12
16
  /**
13
17
  * Schema to create a free price.
@@ -15,12 +19,17 @@ import {
15
19
  export type ProductPriceFreeCreate = {
16
20
  amountType: "free";
17
21
  priceCurrency?: PresentmentCurrency | undefined;
22
+ /**
23
+ * The tax behavior of the price. If not set, it will default to the organization's default tax behavior.
24
+ */
25
+ taxBehavior?: TaxBehaviorOption | null | undefined;
18
26
  };
19
27
 
20
28
  /** @internal */
21
29
  export type ProductPriceFreeCreate$Outbound = {
22
30
  amount_type: "free";
23
31
  price_currency?: string | undefined;
32
+ tax_behavior?: string | null | undefined;
24
33
  };
25
34
 
26
35
  /** @internal */
@@ -31,11 +40,13 @@ export const ProductPriceFreeCreate$outboundSchema: z.ZodMiniType<
31
40
  z.object({
32
41
  amountType: z.literal("free"),
33
42
  priceCurrency: z.optional(PresentmentCurrency$outboundSchema),
43
+ taxBehavior: z.optional(z.nullable(TaxBehaviorOption$outboundSchema)),
34
44
  }),
35
45
  z.transform((v) => {
36
46
  return remap$(v, {
37
47
  amountType: "amount_type",
38
48
  priceCurrency: "price_currency",
49
+ taxBehavior: "tax_behavior",
39
50
  });
40
51
  }),
41
52
  );
@@ -18,6 +18,11 @@ import {
18
18
  ProductPriceSource$inboundSchema,
19
19
  ProductPriceSource$outboundSchema,
20
20
  } from "./productpricesource.js";
21
+ import {
22
+ TaxBehaviorOption,
23
+ TaxBehaviorOption$inboundSchema,
24
+ TaxBehaviorOption$outboundSchema,
25
+ } from "./taxbehavioroption.js";
21
26
 
22
27
  /**
23
28
  * A metered, usage-based, price for a product, with a fixed unit price.
@@ -41,6 +46,10 @@ export type ProductPriceMeteredUnit = {
41
46
  * The currency in which the customer will be charged.
42
47
  */
43
48
  priceCurrency: string;
49
+ /**
50
+ * The tax behavior of the price. If null, it defaults to the organization's default tax behavior.
51
+ */
52
+ taxBehavior: TaxBehaviorOption | null;
44
53
  /**
45
54
  * Whether the price is archived and no longer available.
46
55
  */
@@ -84,6 +93,7 @@ export const ProductPriceMeteredUnit$inboundSchema: z.ZodMiniType<
84
93
  source: ProductPriceSource$inboundSchema,
85
94
  amount_type: z.literal("metered_unit"),
86
95
  price_currency: z.string(),
96
+ tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
87
97
  is_archived: z.boolean(),
88
98
  product_id: z.string(),
89
99
  unit_amount: z.string(),
@@ -97,6 +107,7 @@ export const ProductPriceMeteredUnit$inboundSchema: z.ZodMiniType<
97
107
  "modified_at": "modifiedAt",
98
108
  "amount_type": "amountType",
99
109
  "price_currency": "priceCurrency",
110
+ "tax_behavior": "taxBehavior",
100
111
  "is_archived": "isArchived",
101
112
  "product_id": "productId",
102
113
  "unit_amount": "unitAmount",
@@ -113,6 +124,7 @@ export type ProductPriceMeteredUnit$Outbound = {
113
124
  source: string;
114
125
  amount_type: "metered_unit";
115
126
  price_currency: string;
127
+ tax_behavior: string | null;
116
128
  is_archived: boolean;
117
129
  product_id: string;
118
130
  unit_amount: string;
@@ -133,6 +145,7 @@ export const ProductPriceMeteredUnit$outboundSchema: z.ZodMiniType<
133
145
  source: ProductPriceSource$outboundSchema,
134
146
  amountType: z.literal("metered_unit"),
135
147
  priceCurrency: z.string(),
148
+ taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
136
149
  isArchived: z.boolean(),
137
150
  productId: z.string(),
138
151
  unitAmount: z.string(),
@@ -146,6 +159,7 @@ export const ProductPriceMeteredUnit$outboundSchema: z.ZodMiniType<
146
159
  modifiedAt: "modified_at",
147
160
  amountType: "amount_type",
148
161
  priceCurrency: "price_currency",
162
+ taxBehavior: "tax_behavior",
149
163
  isArchived: "is_archived",
150
164
  productId: "product_id",
151
165
  unitAmount: "unit_amount",
@@ -9,6 +9,10 @@ import {
9
9
  PresentmentCurrency,
10
10
  PresentmentCurrency$outboundSchema,
11
11
  } from "./presentmentcurrency.js";
12
+ import {
13
+ TaxBehaviorOption,
14
+ TaxBehaviorOption$outboundSchema,
15
+ } from "./taxbehavioroption.js";
12
16
 
13
17
  /**
14
18
  * The price per unit in cents. Supports up to 12 decimal places.
@@ -21,6 +25,10 @@ export type UnitAmount = number | string;
21
25
  export type ProductPriceMeteredUnitCreate = {
22
26
  amountType: "metered_unit";
23
27
  priceCurrency?: PresentmentCurrency | undefined;
28
+ /**
29
+ * The tax behavior of the price. If not set, it will default to the organization's default tax behavior.
30
+ */
31
+ taxBehavior?: TaxBehaviorOption | null | undefined;
24
32
  /**
25
33
  * The ID of the meter associated to the price.
26
34
  */
@@ -52,6 +60,7 @@ export function unitAmountToJSON(unitAmount: UnitAmount): string {
52
60
  export type ProductPriceMeteredUnitCreate$Outbound = {
53
61
  amount_type: "metered_unit";
54
62
  price_currency?: string | undefined;
63
+ tax_behavior?: string | null | undefined;
55
64
  meter_id: string;
56
65
  unit_amount: number | string;
57
66
  cap_amount?: number | null | undefined;
@@ -65,6 +74,7 @@ export const ProductPriceMeteredUnitCreate$outboundSchema: z.ZodMiniType<
65
74
  z.object({
66
75
  amountType: z.literal("metered_unit"),
67
76
  priceCurrency: z.optional(PresentmentCurrency$outboundSchema),
77
+ taxBehavior: z.optional(z.nullable(TaxBehaviorOption$outboundSchema)),
68
78
  meterId: z.string(),
69
79
  unitAmount: smartUnion([z.number(), z.string()]),
70
80
  capAmount: z.optional(z.nullable(z.int())),
@@ -73,6 +83,7 @@ export const ProductPriceMeteredUnitCreate$outboundSchema: z.ZodMiniType<
73
83
  return remap$(v, {
74
84
  amountType: "amount_type",
75
85
  priceCurrency: "price_currency",
86
+ taxBehavior: "tax_behavior",
76
87
  meterId: "meter_id",
77
88
  unitAmount: "unit_amount",
78
89
  capAmount: "cap_amount",
@@ -18,6 +18,11 @@ import {
18
18
  ProductPriceSource$inboundSchema,
19
19
  ProductPriceSource$outboundSchema,
20
20
  } from "./productpricesource.js";
21
+ import {
22
+ TaxBehaviorOption,
23
+ TaxBehaviorOption$inboundSchema,
24
+ TaxBehaviorOption$outboundSchema,
25
+ } from "./taxbehavioroption.js";
21
26
 
22
27
  /**
23
28
  * A seat-based price for a product.
@@ -41,6 +46,10 @@ export type ProductPriceSeatBased = {
41
46
  * The currency in which the customer will be charged.
42
47
  */
43
48
  priceCurrency: string;
49
+ /**
50
+ * The tax behavior of the price. If null, it defaults to the organization's default tax behavior.
51
+ */
52
+ taxBehavior: TaxBehaviorOption | null;
44
53
  /**
45
54
  * Whether the price is archived and no longer available.
46
55
  */
@@ -78,6 +87,7 @@ export const ProductPriceSeatBased$inboundSchema: z.ZodMiniType<
78
87
  source: ProductPriceSource$inboundSchema,
79
88
  amount_type: z.literal("seat_based"),
80
89
  price_currency: z.string(),
90
+ tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
81
91
  is_archived: z.boolean(),
82
92
  product_id: z.string(),
83
93
  seat_tiers: ProductPriceSeatTiersOutput$inboundSchema,
@@ -88,6 +98,7 @@ export const ProductPriceSeatBased$inboundSchema: z.ZodMiniType<
88
98
  "modified_at": "modifiedAt",
89
99
  "amount_type": "amountType",
90
100
  "price_currency": "priceCurrency",
101
+ "tax_behavior": "taxBehavior",
91
102
  "is_archived": "isArchived",
92
103
  "product_id": "productId",
93
104
  "seat_tiers": "seatTiers",
@@ -102,6 +113,7 @@ export type ProductPriceSeatBased$Outbound = {
102
113
  source: string;
103
114
  amount_type: "seat_based";
104
115
  price_currency: string;
116
+ tax_behavior: string | null;
105
117
  is_archived: boolean;
106
118
  product_id: string;
107
119
  seat_tiers: ProductPriceSeatTiersOutput$Outbound;
@@ -119,6 +131,7 @@ export const ProductPriceSeatBased$outboundSchema: z.ZodMiniType<
119
131
  source: ProductPriceSource$outboundSchema,
120
132
  amountType: z.literal("seat_based"),
121
133
  priceCurrency: z.string(),
134
+ taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
122
135
  isArchived: z.boolean(),
123
136
  productId: z.string(),
124
137
  seatTiers: ProductPriceSeatTiersOutput$outboundSchema,
@@ -129,6 +142,7 @@ export const ProductPriceSeatBased$outboundSchema: z.ZodMiniType<
129
142
  modifiedAt: "modified_at",
130
143
  amountType: "amount_type",
131
144
  priceCurrency: "price_currency",
145
+ taxBehavior: "tax_behavior",
132
146
  isArchived: "is_archived",
133
147
  productId: "product_id",
134
148
  seatTiers: "seat_tiers",
@@ -13,6 +13,10 @@ import {
13
13
  ProductPriceSeatTiersInput$Outbound,
14
14
  ProductPriceSeatTiersInput$outboundSchema,
15
15
  } from "./productpriceseattiersinput.js";
16
+ import {
17
+ TaxBehaviorOption,
18
+ TaxBehaviorOption$outboundSchema,
19
+ } from "./taxbehavioroption.js";
16
20
 
17
21
  /**
18
22
  * Schema to create a seat-based price with volume-based tiers.
@@ -20,6 +24,10 @@ import {
20
24
  export type ProductPriceSeatBasedCreate = {
21
25
  amountType: "seat_based";
22
26
  priceCurrency?: PresentmentCurrency | undefined;
27
+ /**
28
+ * The tax behavior of the price. If not set, it will default to the organization's default tax behavior.
29
+ */
30
+ taxBehavior?: TaxBehaviorOption | null | undefined;
23
31
  /**
24
32
  * List of pricing tiers for seat-based pricing.
25
33
  *
@@ -36,6 +44,7 @@ export type ProductPriceSeatBasedCreate = {
36
44
  export type ProductPriceSeatBasedCreate$Outbound = {
37
45
  amount_type: "seat_based";
38
46
  price_currency?: string | undefined;
47
+ tax_behavior?: string | null | undefined;
39
48
  seat_tiers: ProductPriceSeatTiersInput$Outbound;
40
49
  };
41
50
 
@@ -47,12 +56,14 @@ export const ProductPriceSeatBasedCreate$outboundSchema: z.ZodMiniType<
47
56
  z.object({
48
57
  amountType: z.literal("seat_based"),
49
58
  priceCurrency: z.optional(PresentmentCurrency$outboundSchema),
59
+ taxBehavior: z.optional(z.nullable(TaxBehaviorOption$outboundSchema)),
50
60
  seatTiers: ProductPriceSeatTiersInput$outboundSchema,
51
61
  }),
52
62
  z.transform((v) => {
53
63
  return remap$(v, {
54
64
  amountType: "amount_type",
55
65
  priceCurrency: "price_currency",
66
+ taxBehavior: "tax_behavior",
56
67
  seatTiers: "seat_tiers",
57
68
  });
58
69
  }),
@@ -3,11 +3,13 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
6
7
  import {
7
8
  ProductPriceSeatTier,
8
9
  ProductPriceSeatTier$Outbound,
9
10
  ProductPriceSeatTier$outboundSchema,
10
11
  } from "./productpriceseattier.js";
12
+ import { SeatTierType, SeatTierType$outboundSchema } from "./seattiertype.js";
11
13
 
12
14
  /**
13
15
  * List of pricing tiers for seat-based pricing.
@@ -19,6 +21,7 @@ import {
19
21
  * - maximum_seats = last tier's max_seats (None for unlimited)
20
22
  */
21
23
  export type ProductPriceSeatTiersInput = {
24
+ seatTierType?: SeatTierType | undefined;
22
25
  /**
23
26
  * List of pricing tiers
24
27
  */
@@ -27,6 +30,7 @@ export type ProductPriceSeatTiersInput = {
27
30
 
28
31
  /** @internal */
29
32
  export type ProductPriceSeatTiersInput$Outbound = {
33
+ seat_tier_type?: string | undefined;
30
34
  tiers: Array<ProductPriceSeatTier$Outbound>;
31
35
  };
32
36
 
@@ -34,9 +38,17 @@ export type ProductPriceSeatTiersInput$Outbound = {
34
38
  export const ProductPriceSeatTiersInput$outboundSchema: z.ZodMiniType<
35
39
  ProductPriceSeatTiersInput$Outbound,
36
40
  ProductPriceSeatTiersInput
37
- > = z.object({
38
- tiers: z.array(ProductPriceSeatTier$outboundSchema),
39
- });
41
+ > = z.pipe(
42
+ z.object({
43
+ seatTierType: z.optional(SeatTierType$outboundSchema),
44
+ tiers: z.array(ProductPriceSeatTier$outboundSchema),
45
+ }),
46
+ z.transform((v) => {
47
+ return remap$(v, {
48
+ seatTierType: "seat_tier_type",
49
+ });
50
+ }),
51
+ );
40
52
 
41
53
  export function productPriceSeatTiersInputToJSON(
42
54
  productPriceSeatTiersInput: ProductPriceSeatTiersInput,
@@ -13,6 +13,11 @@ import {
13
13
  ProductPriceSeatTier$Outbound,
14
14
  ProductPriceSeatTier$outboundSchema,
15
15
  } from "./productpriceseattier.js";
16
+ import {
17
+ SeatTierType,
18
+ SeatTierType$inboundSchema,
19
+ SeatTierType$outboundSchema,
20
+ } from "./seattiertype.js";
16
21
 
17
22
  /**
18
23
  * List of pricing tiers for seat-based pricing.
@@ -24,6 +29,7 @@ import {
24
29
  * - maximum_seats = last tier's max_seats (None for unlimited)
25
30
  */
26
31
  export type ProductPriceSeatTiersOutput = {
32
+ seatTierType?: SeatTierType | undefined;
27
33
  /**
28
34
  * List of pricing tiers
29
35
  */
@@ -44,12 +50,14 @@ export const ProductPriceSeatTiersOutput$inboundSchema: z.ZodMiniType<
44
50
  unknown
45
51
  > = z.pipe(
46
52
  z.object({
53
+ seat_tier_type: z.optional(SeatTierType$inboundSchema),
47
54
  tiers: z.array(ProductPriceSeatTier$inboundSchema),
48
55
  minimum_seats: z.int(),
49
56
  maximum_seats: z.nullable(z.int()),
50
57
  }),
51
58
  z.transform((v) => {
52
59
  return remap$(v, {
60
+ "seat_tier_type": "seatTierType",
53
61
  "minimum_seats": "minimumSeats",
54
62
  "maximum_seats": "maximumSeats",
55
63
  });
@@ -57,6 +65,7 @@ export const ProductPriceSeatTiersOutput$inboundSchema: z.ZodMiniType<
57
65
  );
58
66
  /** @internal */
59
67
  export type ProductPriceSeatTiersOutput$Outbound = {
68
+ seat_tier_type?: string | undefined;
60
69
  tiers: Array<ProductPriceSeatTier$Outbound>;
61
70
  minimum_seats: number;
62
71
  maximum_seats: number | null;
@@ -68,12 +77,14 @@ export const ProductPriceSeatTiersOutput$outboundSchema: z.ZodMiniType<
68
77
  ProductPriceSeatTiersOutput
69
78
  > = z.pipe(
70
79
  z.object({
80
+ seatTierType: z.optional(SeatTierType$outboundSchema),
71
81
  tiers: z.array(ProductPriceSeatTier$outboundSchema),
72
82
  minimumSeats: z.int(),
73
83
  maximumSeats: z.nullable(z.int()),
74
84
  }),
75
85
  z.transform((v) => {
76
86
  return remap$(v, {
87
+ seatTierType: "seat_tier_type",
77
88
  minimumSeats: "minimum_seats",
78
89
  maximumSeats: "maximum_seats",
79
90
  });
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import * as openEnums from "../../types/enums.js";
7
+ import { OpenEnum } from "../../types/enums.js";
8
+
9
+ export const SeatTierType = {
10
+ Volume: "volume",
11
+ Graduated: "graduated",
12
+ } as const;
13
+ export type SeatTierType = OpenEnum<typeof SeatTierType>;
14
+
15
+ /** @internal */
16
+ export const SeatTierType$inboundSchema: z.ZodMiniType<SeatTierType, unknown> =
17
+ openEnums.inboundSchema(SeatTierType);
18
+ /** @internal */
19
+ export const SeatTierType$outboundSchema: z.ZodMiniType<string, SeatTierType> =
20
+ openEnums.outboundSchema(SeatTierType);
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import * as openEnums from "../../types/enums.js";
7
+ import { OpenEnum } from "../../types/enums.js";
8
+
9
+ export const TaxBehaviorOption = {
10
+ Location: "location",
11
+ Inclusive: "inclusive",
12
+ Exclusive: "exclusive",
13
+ } as const;
14
+ export type TaxBehaviorOption = OpenEnum<typeof TaxBehaviorOption>;
15
+
16
+ /** @internal */
17
+ export const TaxBehaviorOption$inboundSchema: z.ZodMiniType<
18
+ TaxBehaviorOption,
19
+ unknown
20
+ > = openEnums.inboundSchema(TaxBehaviorOption);
21
+ /** @internal */
22
+ export const TaxBehaviorOption$outboundSchema: z.ZodMiniType<
23
+ string,
24
+ TaxBehaviorOption
25
+ > = openEnums.outboundSchema(TaxBehaviorOption);