@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
@@ -17,6 +17,11 @@ import {
17
17
  SubscriptionRecurringInterval$inboundSchema,
18
18
  SubscriptionRecurringInterval$outboundSchema,
19
19
  } from "./subscriptionrecurringinterval.js";
20
+ import {
21
+ TaxBehaviorOption,
22
+ TaxBehaviorOption$inboundSchema,
23
+ TaxBehaviorOption$outboundSchema,
24
+ } from "./taxbehavioroption.js";
20
25
 
21
26
  /**
22
27
  * A pay-what-you-want recurring price for a product, i.e. a subscription.
@@ -44,6 +49,10 @@ export type LegacyRecurringProductPriceCustom = {
44
49
  * The currency in which the customer will be charged.
45
50
  */
46
51
  priceCurrency: string;
52
+ /**
53
+ * The tax behavior of the price. If null, it defaults to the organization's default tax behavior.
54
+ */
55
+ taxBehavior: TaxBehaviorOption | null;
47
56
  /**
48
57
  * Whether the price is archived and no longer available.
49
58
  */
@@ -89,6 +98,7 @@ export const LegacyRecurringProductPriceCustom$inboundSchema: z.ZodMiniType<
89
98
  source: ProductPriceSource$inboundSchema,
90
99
  amount_type: z.literal("custom"),
91
100
  price_currency: z.string(),
101
+ tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
92
102
  is_archived: z.boolean(),
93
103
  product_id: z.string(),
94
104
  type: z.literal("recurring"),
@@ -104,6 +114,7 @@ export const LegacyRecurringProductPriceCustom$inboundSchema: z.ZodMiniType<
104
114
  "modified_at": "modifiedAt",
105
115
  "amount_type": "amountType",
106
116
  "price_currency": "priceCurrency",
117
+ "tax_behavior": "taxBehavior",
107
118
  "is_archived": "isArchived",
108
119
  "product_id": "productId",
109
120
  "recurring_interval": "recurringInterval",
@@ -121,6 +132,7 @@ export type LegacyRecurringProductPriceCustom$Outbound = {
121
132
  source: string;
122
133
  amount_type: "custom";
123
134
  price_currency: string;
135
+ tax_behavior: string | null;
124
136
  is_archived: boolean;
125
137
  product_id: string;
126
138
  type: "recurring";
@@ -143,6 +155,7 @@ export const LegacyRecurringProductPriceCustom$outboundSchema: z.ZodMiniType<
143
155
  source: ProductPriceSource$outboundSchema,
144
156
  amountType: z.literal("custom"),
145
157
  priceCurrency: z.string(),
158
+ taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
146
159
  isArchived: z.boolean(),
147
160
  productId: z.string(),
148
161
  type: z.literal("recurring"),
@@ -158,6 +171,7 @@ export const LegacyRecurringProductPriceCustom$outboundSchema: z.ZodMiniType<
158
171
  modifiedAt: "modified_at",
159
172
  amountType: "amount_type",
160
173
  priceCurrency: "price_currency",
174
+ taxBehavior: "tax_behavior",
161
175
  isArchived: "is_archived",
162
176
  productId: "product_id",
163
177
  recurringInterval: "recurring_interval",
@@ -17,6 +17,11 @@ import {
17
17
  SubscriptionRecurringInterval$inboundSchema,
18
18
  SubscriptionRecurringInterval$outboundSchema,
19
19
  } from "./subscriptionrecurringinterval.js";
20
+ import {
21
+ TaxBehaviorOption,
22
+ TaxBehaviorOption$inboundSchema,
23
+ TaxBehaviorOption$outboundSchema,
24
+ } from "./taxbehavioroption.js";
20
25
 
21
26
  /**
22
27
  * A recurring price for a product, i.e. a subscription.
@@ -44,6 +49,10 @@ export type LegacyRecurringProductPriceFixed = {
44
49
  * The currency in which the customer will be charged.
45
50
  */
46
51
  priceCurrency: string;
52
+ /**
53
+ * The tax behavior of the price. If null, it defaults to the organization's default tax behavior.
54
+ */
55
+ taxBehavior: TaxBehaviorOption | null;
47
56
  /**
48
57
  * Whether the price is archived and no longer available.
49
58
  */
@@ -81,6 +90,7 @@ export const LegacyRecurringProductPriceFixed$inboundSchema: z.ZodMiniType<
81
90
  source: ProductPriceSource$inboundSchema,
82
91
  amount_type: z.literal("fixed"),
83
92
  price_currency: z.string(),
93
+ tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
84
94
  is_archived: z.boolean(),
85
95
  product_id: z.string(),
86
96
  type: z.literal("recurring"),
@@ -94,6 +104,7 @@ export const LegacyRecurringProductPriceFixed$inboundSchema: z.ZodMiniType<
94
104
  "modified_at": "modifiedAt",
95
105
  "amount_type": "amountType",
96
106
  "price_currency": "priceCurrency",
107
+ "tax_behavior": "taxBehavior",
97
108
  "is_archived": "isArchived",
98
109
  "product_id": "productId",
99
110
  "recurring_interval": "recurringInterval",
@@ -109,6 +120,7 @@ export type LegacyRecurringProductPriceFixed$Outbound = {
109
120
  source: string;
110
121
  amount_type: "fixed";
111
122
  price_currency: string;
123
+ tax_behavior: string | null;
112
124
  is_archived: boolean;
113
125
  product_id: string;
114
126
  type: "recurring";
@@ -129,6 +141,7 @@ export const LegacyRecurringProductPriceFixed$outboundSchema: z.ZodMiniType<
129
141
  source: ProductPriceSource$outboundSchema,
130
142
  amountType: z.literal("fixed"),
131
143
  priceCurrency: z.string(),
144
+ taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
132
145
  isArchived: z.boolean(),
133
146
  productId: z.string(),
134
147
  type: z.literal("recurring"),
@@ -142,6 +155,7 @@ export const LegacyRecurringProductPriceFixed$outboundSchema: z.ZodMiniType<
142
155
  modifiedAt: "modified_at",
143
156
  amountType: "amount_type",
144
157
  priceCurrency: "price_currency",
158
+ taxBehavior: "tax_behavior",
145
159
  isArchived: "is_archived",
146
160
  productId: "product_id",
147
161
  recurringInterval: "recurring_interval",
@@ -17,6 +17,11 @@ import {
17
17
  SubscriptionRecurringInterval$inboundSchema,
18
18
  SubscriptionRecurringInterval$outboundSchema,
19
19
  } from "./subscriptionrecurringinterval.js";
20
+ import {
21
+ TaxBehaviorOption,
22
+ TaxBehaviorOption$inboundSchema,
23
+ TaxBehaviorOption$outboundSchema,
24
+ } from "./taxbehavioroption.js";
20
25
 
21
26
  /**
22
27
  * A free recurring price for a product, i.e. a subscription.
@@ -44,6 +49,10 @@ export type LegacyRecurringProductPriceFree = {
44
49
  * The currency in which the customer will be charged.
45
50
  */
46
51
  priceCurrency: string;
52
+ /**
53
+ * The tax behavior of the price. If null, it defaults to the organization's default tax behavior.
54
+ */
55
+ taxBehavior: TaxBehaviorOption | null;
47
56
  /**
48
57
  * Whether the price is archived and no longer available.
49
58
  */
@@ -77,6 +86,7 @@ export const LegacyRecurringProductPriceFree$inboundSchema: z.ZodMiniType<
77
86
  source: ProductPriceSource$inboundSchema,
78
87
  amount_type: z.literal("free"),
79
88
  price_currency: z.string(),
89
+ tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
80
90
  is_archived: z.boolean(),
81
91
  product_id: z.string(),
82
92
  type: z.literal("recurring"),
@@ -89,6 +99,7 @@ export const LegacyRecurringProductPriceFree$inboundSchema: z.ZodMiniType<
89
99
  "modified_at": "modifiedAt",
90
100
  "amount_type": "amountType",
91
101
  "price_currency": "priceCurrency",
102
+ "tax_behavior": "taxBehavior",
92
103
  "is_archived": "isArchived",
93
104
  "product_id": "productId",
94
105
  "recurring_interval": "recurringInterval",
@@ -103,6 +114,7 @@ export type LegacyRecurringProductPriceFree$Outbound = {
103
114
  source: string;
104
115
  amount_type: "free";
105
116
  price_currency: string;
117
+ tax_behavior: string | null;
106
118
  is_archived: boolean;
107
119
  product_id: string;
108
120
  type: "recurring";
@@ -122,6 +134,7 @@ export const LegacyRecurringProductPriceFree$outboundSchema: z.ZodMiniType<
122
134
  source: ProductPriceSource$outboundSchema,
123
135
  amountType: z.literal("free"),
124
136
  priceCurrency: z.string(),
137
+ taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
125
138
  isArchived: z.boolean(),
126
139
  productId: z.string(),
127
140
  type: z.literal("recurring"),
@@ -134,6 +147,7 @@ export const LegacyRecurringProductPriceFree$outboundSchema: z.ZodMiniType<
134
147
  modifiedAt: "modified_at",
135
148
  amountType: "amount_type",
136
149
  priceCurrency: "price_currency",
150
+ taxBehavior: "tax_behavior",
137
151
  isArchived: "is_archived",
138
152
  productId: "product_id",
139
153
  recurringInterval: "recurring_interval",
@@ -55,6 +55,11 @@ import {
55
55
  SubscriptionProrationBehavior$inboundSchema,
56
56
  SubscriptionProrationBehavior$outboundSchema,
57
57
  } from "./subscriptionprorationbehavior.js";
58
+ import {
59
+ TaxBehaviorOption,
60
+ TaxBehaviorOption$inboundSchema,
61
+ TaxBehaviorOption$outboundSchema,
62
+ } from "./taxbehavioroption.js";
58
63
 
59
64
  export const CountryAlpha2 = {
60
65
  Ad: "AD",
@@ -353,13 +358,14 @@ export type Organization = {
353
358
  socials: Array<OrganizationSocialLink>;
354
359
  status: OrganizationStatus;
355
360
  /**
356
- * When the business details were submitted.
361
+ * When the business details were submitted for review.
357
362
  */
358
363
  detailsSubmittedAt: Date | null;
359
364
  /**
360
365
  * Default presentment currency. Used as fallback in checkout and customer portal, if the customer's local currency is not available.
361
366
  */
362
367
  defaultPresentmentCurrency: string;
368
+ defaultTaxBehavior: TaxBehaviorOption;
363
369
  /**
364
370
  * Organization feature settings
365
371
  */
@@ -410,6 +416,7 @@ export const Organization$inboundSchema: z.ZodMiniType<Organization, unknown> =
410
416
  z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
411
417
  ),
412
418
  default_presentment_currency: z.string(),
419
+ default_tax_behavior: TaxBehaviorOption$inboundSchema,
413
420
  feature_settings: z.nullable(OrganizationFeatureSettings$inboundSchema),
414
421
  subscription_settings: OrganizationSubscriptionSettings$inboundSchema,
415
422
  notification_settings: OrganizationNotificationSettings$inboundSchema,
@@ -427,6 +434,7 @@ export const Organization$inboundSchema: z.ZodMiniType<Organization, unknown> =
427
434
  "allow_customer_updates": "allowCustomerUpdates",
428
435
  "details_submitted_at": "detailsSubmittedAt",
429
436
  "default_presentment_currency": "defaultPresentmentCurrency",
437
+ "default_tax_behavior": "defaultTaxBehavior",
430
438
  "feature_settings": "featureSettings",
431
439
  "subscription_settings": "subscriptionSettings",
432
440
  "notification_settings": "notificationSettings",
@@ -451,6 +459,7 @@ export type Organization$Outbound = {
451
459
  status: string;
452
460
  details_submitted_at: string | null;
453
461
  default_presentment_currency: string;
462
+ default_tax_behavior: string;
454
463
  feature_settings: OrganizationFeatureSettings$Outbound | null;
455
464
  subscription_settings: OrganizationSubscriptionSettings$Outbound;
456
465
  notification_settings: OrganizationNotificationSettings$Outbound;
@@ -481,6 +490,7 @@ export const Organization$outboundSchema: z.ZodMiniType<
481
490
  z.pipe(z.date(), z.transform(v => v.toISOString())),
482
491
  ),
483
492
  defaultPresentmentCurrency: z.string(),
493
+ defaultTaxBehavior: TaxBehaviorOption$outboundSchema,
484
494
  featureSettings: z.nullable(OrganizationFeatureSettings$outboundSchema),
485
495
  subscriptionSettings: OrganizationSubscriptionSettings$outboundSchema,
486
496
  notificationSettings: OrganizationNotificationSettings$outboundSchema,
@@ -497,6 +507,7 @@ export const Organization$outboundSchema: z.ZodMiniType<
497
507
  allowCustomerUpdates: "allow_customer_updates",
498
508
  detailsSubmittedAt: "details_submitted_at",
499
509
  defaultPresentmentCurrency: "default_presentment_currency",
510
+ defaultTaxBehavior: "default_tax_behavior",
500
511
  featureSettings: "feature_settings",
501
512
  subscriptionSettings: "subscription_settings",
502
513
  notificationSettings: "notification_settings",
@@ -54,6 +54,10 @@ import {
54
54
  PresentmentCurrency,
55
55
  PresentmentCurrency$outboundSchema,
56
56
  } from "./presentmentcurrency.js";
57
+ import {
58
+ TaxBehaviorOption,
59
+ TaxBehaviorOption$outboundSchema,
60
+ } from "./taxbehavioroption.js";
57
61
 
58
62
  export type LegalEntity =
59
63
  | OrganizationCompanyLegalEntitySchema
@@ -345,6 +349,7 @@ export type OrganizationCreate = {
345
349
  | null
346
350
  | undefined;
347
351
  defaultPresentmentCurrency?: PresentmentCurrency | undefined;
352
+ defaultTaxBehavior?: TaxBehaviorOption | undefined;
348
353
  };
349
354
 
350
355
  /** @internal */
@@ -403,6 +408,7 @@ export type OrganizationCreate$Outbound = {
403
408
  | null
404
409
  | undefined;
405
410
  default_presentment_currency?: string | undefined;
411
+ default_tax_behavior?: string | undefined;
406
412
  };
407
413
 
408
414
  /** @internal */
@@ -445,6 +451,7 @@ export const OrganizationCreate$outboundSchema: z.ZodMiniType<
445
451
  z.nullable(OrganizationCustomerPortalSettings$outboundSchema),
446
452
  ),
447
453
  defaultPresentmentCurrency: z.optional(PresentmentCurrency$outboundSchema),
454
+ defaultTaxBehavior: z.optional(TaxBehaviorOption$outboundSchema),
448
455
  }),
449
456
  z.transform((v) => {
450
457
  return remap$(v, {
@@ -456,6 +463,7 @@ export const OrganizationCreate$outboundSchema: z.ZodMiniType<
456
463
  customerEmailSettings: "customer_email_settings",
457
464
  customerPortalSettings: "customer_portal_settings",
458
465
  defaultPresentmentCurrency: "default_presentment_currency",
466
+ defaultTaxBehavior: "default_tax_behavior",
459
467
  });
460
468
  }),
461
469
  );
@@ -18,24 +18,40 @@ export type SwitchingFrom = ClosedEnum<typeof SwitchingFrom>;
18
18
  export type OrganizationDetails = {
19
19
  /**
20
20
  * Brief information about you and your business.
21
+ *
22
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
21
23
  */
22
24
  about?: string | null | undefined;
23
25
  /**
24
26
  * Description of digital products being sold.
25
27
  */
26
- productDescription: string;
28
+ productDescription?: string | null | undefined;
29
+ /**
30
+ * Categories of products being sold.
31
+ */
32
+ sellingCategories?: Array<string> | undefined;
33
+ /**
34
+ * Pricing models used by the organization.
35
+ */
36
+ pricingModels?: Array<string> | undefined;
27
37
  /**
28
38
  * How the organization will integrate and use Polar.
39
+ *
40
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
29
41
  */
30
42
  intendedUse?: string | null | undefined;
31
43
  /**
32
44
  * Main customer acquisition channels.
45
+ *
46
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
33
47
  */
34
48
  customerAcquisition?: Array<string> | undefined;
35
49
  /**
36
50
  * Estimated revenue in the next 12 months
51
+ *
52
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
37
53
  */
38
- futureAnnualRevenue?: number | undefined;
54
+ futureAnnualRevenue?: number | null | undefined;
39
55
  /**
40
56
  * Switching from another platform?
41
57
  */
@@ -46,8 +62,10 @@ export type OrganizationDetails = {
46
62
  switchingFrom?: SwitchingFrom | null | undefined;
47
63
  /**
48
64
  * Revenue from last year if applicable.
65
+ *
66
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
49
67
  */
50
- previousAnnualRevenue?: number | undefined;
68
+ previousAnnualRevenue?: number | null | undefined;
51
69
  };
52
70
 
53
71
  /** @internal */
@@ -57,13 +75,15 @@ export const SwitchingFrom$outboundSchema: z.ZodMiniEnum<typeof SwitchingFrom> =
57
75
  /** @internal */
58
76
  export type OrganizationDetails$Outbound = {
59
77
  about?: string | null | undefined;
60
- product_description: string;
78
+ product_description?: string | null | undefined;
79
+ selling_categories?: Array<string> | undefined;
80
+ pricing_models?: Array<string> | undefined;
61
81
  intended_use?: string | null | undefined;
62
82
  customer_acquisition?: Array<string> | undefined;
63
- future_annual_revenue: number;
83
+ future_annual_revenue?: number | null | undefined;
64
84
  switching: boolean;
65
85
  switching_from?: string | null | undefined;
66
- previous_annual_revenue: number;
86
+ previous_annual_revenue?: number | null | undefined;
67
87
  };
68
88
 
69
89
  /** @internal */
@@ -73,17 +93,21 @@ export const OrganizationDetails$outboundSchema: z.ZodMiniType<
73
93
  > = z.pipe(
74
94
  z.object({
75
95
  about: z.optional(z.nullable(z.string())),
76
- productDescription: z.string(),
96
+ productDescription: z.optional(z.nullable(z.string())),
97
+ sellingCategories: z.optional(z.array(z.string())),
98
+ pricingModels: z.optional(z.array(z.string())),
77
99
  intendedUse: z.optional(z.nullable(z.string())),
78
100
  customerAcquisition: z.optional(z.array(z.string())),
79
- futureAnnualRevenue: z._default(z.int(), 0),
80
- switching: z._default(z.boolean(), true),
101
+ futureAnnualRevenue: z.optional(z.nullable(z.int())),
102
+ switching: z._default(z.boolean(), false),
81
103
  switchingFrom: z.optional(z.nullable(SwitchingFrom$outboundSchema)),
82
- previousAnnualRevenue: z._default(z.int(), 0),
104
+ previousAnnualRevenue: z.optional(z.nullable(z.int())),
83
105
  }),
84
106
  z.transform((v) => {
85
107
  return remap$(v, {
86
108
  productDescription: "product_description",
109
+ sellingCategories: "selling_categories",
110
+ pricingModels: "pricing_models",
87
111
  intendedUse: "intended_use",
88
112
  customerAcquisition: "customer_acquisition",
89
113
  futureAnnualRevenue: "future_annual_revenue",
@@ -44,6 +44,10 @@ import {
44
44
  PresentmentCurrency,
45
45
  PresentmentCurrency$outboundSchema,
46
46
  } from "./presentmentcurrency.js";
47
+ import {
48
+ TaxBehaviorOption,
49
+ TaxBehaviorOption$outboundSchema,
50
+ } from "./taxbehavioroption.js";
47
51
 
48
52
  export const CountryCountryAlpha2Input = {
49
53
  Ad: "AD",
@@ -330,6 +334,10 @@ export type OrganizationUpdate = {
330
334
  * Default presentment currency for the organization
331
335
  */
332
336
  defaultPresentmentCurrency?: PresentmentCurrency | null | undefined;
337
+ /**
338
+ * Default tax behavior applied on products.
339
+ */
340
+ defaultTaxBehavior?: TaxBehaviorOption | null | undefined;
333
341
  };
334
342
 
335
343
  /** @internal */
@@ -364,6 +372,7 @@ export type OrganizationUpdate$Outbound = {
364
372
  | null
365
373
  | undefined;
366
374
  default_presentment_currency?: string | null | undefined;
375
+ default_tax_behavior?: string | null | undefined;
367
376
  };
368
377
 
369
378
  /** @internal */
@@ -399,6 +408,9 @@ export const OrganizationUpdate$outboundSchema: z.ZodMiniType<
399
408
  defaultPresentmentCurrency: z.optional(
400
409
  z.nullable(PresentmentCurrency$outboundSchema),
401
410
  ),
411
+ defaultTaxBehavior: z.optional(
412
+ z.nullable(TaxBehaviorOption$outboundSchema),
413
+ ),
402
414
  }),
403
415
  z.transform((v) => {
404
416
  return remap$(v, {
@@ -409,6 +421,7 @@ export const OrganizationUpdate$outboundSchema: z.ZodMiniType<
409
421
  customerEmailSettings: "customer_email_settings",
410
422
  customerPortalSettings: "customer_portal_settings",
411
423
  defaultPresentmentCurrency: "default_presentment_currency",
424
+ defaultTaxBehavior: "default_tax_behavior",
412
425
  });
413
426
  }),
414
427
  );
@@ -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 pay-what-you-want price for a product.
@@ -35,6 +40,10 @@ export type ProductPriceCustom = {
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
  */
@@ -74,6 +83,7 @@ export const ProductPriceCustom$inboundSchema: z.ZodMiniType<
74
83
  source: ProductPriceSource$inboundSchema,
75
84
  amount_type: z.literal("custom"),
76
85
  price_currency: z.string(),
86
+ tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
77
87
  is_archived: z.boolean(),
78
88
  product_id: z.string(),
79
89
  minimum_amount: z.int(),
@@ -86,6 +96,7 @@ export const ProductPriceCustom$inboundSchema: z.ZodMiniType<
86
96
  "modified_at": "modifiedAt",
87
97
  "amount_type": "amountType",
88
98
  "price_currency": "priceCurrency",
99
+ "tax_behavior": "taxBehavior",
89
100
  "is_archived": "isArchived",
90
101
  "product_id": "productId",
91
102
  "minimum_amount": "minimumAmount",
@@ -102,6 +113,7 @@ export type ProductPriceCustom$Outbound = {
102
113
  source: string;
103
114
  amount_type: "custom";
104
115
  price_currency: string;
116
+ tax_behavior: string | null;
105
117
  is_archived: boolean;
106
118
  product_id: string;
107
119
  minimum_amount: number;
@@ -121,6 +133,7 @@ export const ProductPriceCustom$outboundSchema: z.ZodMiniType<
121
133
  source: ProductPriceSource$outboundSchema,
122
134
  amountType: z.literal("custom"),
123
135
  priceCurrency: z.string(),
136
+ taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
124
137
  isArchived: z.boolean(),
125
138
  productId: z.string(),
126
139
  minimumAmount: z.int(),
@@ -133,6 +146,7 @@ export const ProductPriceCustom$outboundSchema: z.ZodMiniType<
133
146
  modifiedAt: "modified_at",
134
147
  amountType: "amount_type",
135
148
  priceCurrency: "price_currency",
149
+ taxBehavior: "tax_behavior",
136
150
  isArchived: "is_archived",
137
151
  productId: "product_id",
138
152
  minimumAmount: "minimum_amount",
@@ -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 pay-what-you-want price.
@@ -15,6 +19,10 @@ import {
15
19
  export type ProductPriceCustomCreate = {
16
20
  amountType: "custom";
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
  * The minimum amount the customer can pay. If set to 0, the price is 'free or pay what you want' and $0 is accepted. If set to a value between 1-49, it will be rejected. Defaults to 50 cents.
20
28
  */
@@ -33,6 +41,7 @@ export type ProductPriceCustomCreate = {
33
41
  export type ProductPriceCustomCreate$Outbound = {
34
42
  amount_type: "custom";
35
43
  price_currency?: string | undefined;
44
+ tax_behavior?: string | null | undefined;
36
45
  minimum_amount: number;
37
46
  maximum_amount?: number | null | undefined;
38
47
  preset_amount?: number | null | undefined;
@@ -46,6 +55,7 @@ export const ProductPriceCustomCreate$outboundSchema: z.ZodMiniType<
46
55
  z.object({
47
56
  amountType: z.literal("custom"),
48
57
  priceCurrency: z.optional(PresentmentCurrency$outboundSchema),
58
+ taxBehavior: z.optional(z.nullable(TaxBehaviorOption$outboundSchema)),
49
59
  minimumAmount: z._default(z.int(), 50),
50
60
  maximumAmount: z.optional(z.nullable(z.int())),
51
61
  presetAmount: z.optional(z.nullable(z.int())),
@@ -54,6 +64,7 @@ export const ProductPriceCustomCreate$outboundSchema: z.ZodMiniType<
54
64
  return remap$(v, {
55
65
  amountType: "amount_type",
56
66
  priceCurrency: "price_currency",
67
+ taxBehavior: "tax_behavior",
57
68
  minimumAmount: "minimum_amount",
58
69
  maximumAmount: "maximum_amount",
59
70
  presetAmount: "preset_amount",
@@ -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 fixed price for a product.
@@ -35,6 +40,10 @@ export type ProductPriceFixed = {
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
  */
@@ -66,6 +75,7 @@ export const ProductPriceFixed$inboundSchema: z.ZodMiniType<
66
75
  source: ProductPriceSource$inboundSchema,
67
76
  amount_type: z.literal("fixed"),
68
77
  price_currency: z.string(),
78
+ tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
69
79
  is_archived: z.boolean(),
70
80
  product_id: z.string(),
71
81
  price_amount: z.int(),
@@ -76,6 +86,7 @@ export const ProductPriceFixed$inboundSchema: z.ZodMiniType<
76
86
  "modified_at": "modifiedAt",
77
87
  "amount_type": "amountType",
78
88
  "price_currency": "priceCurrency",
89
+ "tax_behavior": "taxBehavior",
79
90
  "is_archived": "isArchived",
80
91
  "product_id": "productId",
81
92
  "price_amount": "priceAmount",
@@ -90,6 +101,7 @@ export type ProductPriceFixed$Outbound = {
90
101
  source: string;
91
102
  amount_type: "fixed";
92
103
  price_currency: string;
104
+ tax_behavior: string | null;
93
105
  is_archived: boolean;
94
106
  product_id: string;
95
107
  price_amount: number;
@@ -107,6 +119,7 @@ export const ProductPriceFixed$outboundSchema: z.ZodMiniType<
107
119
  source: ProductPriceSource$outboundSchema,
108
120
  amountType: z.literal("fixed"),
109
121
  priceCurrency: z.string(),
122
+ taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
110
123
  isArchived: z.boolean(),
111
124
  productId: z.string(),
112
125
  priceAmount: z.int(),
@@ -117,6 +130,7 @@ export const ProductPriceFixed$outboundSchema: z.ZodMiniType<
117
130
  modifiedAt: "modified_at",
118
131
  amountType: "amount_type",
119
132
  priceCurrency: "price_currency",
133
+ taxBehavior: "tax_behavior",
120
134
  isArchived: "is_archived",
121
135
  productId: "product_id",
122
136
  priceAmount: "price_amount",
@@ -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 fixed price.
@@ -15,6 +19,10 @@ import {
15
19
  export type ProductPriceFixedCreate = {
16
20
  amountType: "fixed";
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
  * The price in cents.
20
28
  *
@@ -59,6 +67,7 @@ export type ProductPriceFixedCreate = {
59
67
  export type ProductPriceFixedCreate$Outbound = {
60
68
  amount_type: "fixed";
61
69
  price_currency?: string | undefined;
70
+ tax_behavior?: string | null | undefined;
62
71
  price_amount: number;
63
72
  };
64
73
 
@@ -70,12 +79,14 @@ export const ProductPriceFixedCreate$outboundSchema: z.ZodMiniType<
70
79
  z.object({
71
80
  amountType: z.literal("fixed"),
72
81
  priceCurrency: z.optional(PresentmentCurrency$outboundSchema),
82
+ taxBehavior: z.optional(z.nullable(TaxBehaviorOption$outboundSchema)),
73
83
  priceAmount: z.int(),
74
84
  }),
75
85
  z.transform((v) => {
76
86
  return remap$(v, {
77
87
  amountType: "amount_type",
78
88
  priceCurrency: "price_currency",
89
+ taxBehavior: "tax_behavior",
79
90
  priceAmount: "price_amount",
80
91
  });
81
92
  }),