@polar-sh/sdk 0.8.2 → 0.10.0

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 (681) hide show
  1. package/README.md +7 -50
  2. package/docs/sdks/benefits/README.md +4 -13
  3. package/docs/sdks/clients/README.md +4 -4
  4. package/docs/sdks/files/README.md +9 -9
  5. package/docs/sdks/oauth2/README.md +2 -2
  6. package/docs/sdks/polarsubscriptions/README.md +5 -89
  7. package/docs/sdks/products/README.md +2 -5
  8. package/docs/sdks/subscriptions/README.md +0 -164
  9. package/funcs/advertisementsGet.d.ts +1 -1
  10. package/funcs/advertisementsGet.d.ts.map +1 -1
  11. package/funcs/advertisementsGet.js +32 -32
  12. package/funcs/advertisementsGet.js.map +1 -1
  13. package/funcs/advertisementsList.d.ts +1 -1
  14. package/funcs/advertisementsList.d.ts.map +1 -1
  15. package/funcs/advertisementsList.js +42 -42
  16. package/funcs/advertisementsList.js.map +1 -1
  17. package/funcs/articlesCreate.d.ts +1 -1
  18. package/funcs/articlesCreate.d.ts.map +1 -1
  19. package/funcs/articlesCreate.js +30 -30
  20. package/funcs/articlesCreate.js.map +1 -1
  21. package/funcs/articlesDelete.d.ts +1 -1
  22. package/funcs/articlesDelete.d.ts.map +1 -1
  23. package/funcs/articlesDelete.js +32 -32
  24. package/funcs/articlesDelete.js.map +1 -1
  25. package/funcs/articlesGet.d.ts +1 -1
  26. package/funcs/articlesGet.d.ts.map +1 -1
  27. package/funcs/articlesGet.js +32 -32
  28. package/funcs/articlesGet.js.map +1 -1
  29. package/funcs/articlesList.d.ts +1 -1
  30. package/funcs/articlesList.d.ts.map +1 -1
  31. package/funcs/articlesList.js +46 -46
  32. package/funcs/articlesList.js.map +1 -1
  33. package/funcs/articlesPreview.d.ts +1 -1
  34. package/funcs/articlesPreview.d.ts.map +1 -1
  35. package/funcs/articlesPreview.js +32 -32
  36. package/funcs/articlesPreview.js.map +1 -1
  37. package/funcs/articlesReceivers.d.ts +1 -1
  38. package/funcs/articlesReceivers.d.ts.map +1 -1
  39. package/funcs/articlesReceivers.js +32 -32
  40. package/funcs/articlesReceivers.js.map +1 -1
  41. package/funcs/articlesSend.d.ts +1 -1
  42. package/funcs/articlesSend.d.ts.map +1 -1
  43. package/funcs/articlesSend.js +32 -32
  44. package/funcs/articlesSend.js.map +1 -1
  45. package/funcs/articlesUpdate.d.ts +1 -1
  46. package/funcs/articlesUpdate.d.ts.map +1 -1
  47. package/funcs/articlesUpdate.js +32 -32
  48. package/funcs/articlesUpdate.js.map +1 -1
  49. package/funcs/benefitsCreate.d.ts +1 -1
  50. package/funcs/benefitsCreate.d.ts.map +1 -1
  51. package/funcs/benefitsCreate.js +30 -30
  52. package/funcs/benefitsCreate.js.map +1 -1
  53. package/funcs/benefitsDelete.d.ts +1 -1
  54. package/funcs/benefitsDelete.d.ts.map +1 -1
  55. package/funcs/benefitsDelete.js +32 -32
  56. package/funcs/benefitsDelete.js.map +1 -1
  57. package/funcs/benefitsGet.d.ts +1 -1
  58. package/funcs/benefitsGet.d.ts.map +1 -1
  59. package/funcs/benefitsGet.js +32 -32
  60. package/funcs/benefitsGet.js.map +1 -1
  61. package/funcs/benefitsGrants.d.ts +1 -1
  62. package/funcs/benefitsGrants.d.ts.map +1 -1
  63. package/funcs/benefitsGrants.js +45 -45
  64. package/funcs/benefitsGrants.js.map +1 -1
  65. package/funcs/benefitsList.d.ts +1 -1
  66. package/funcs/benefitsList.d.ts.map +1 -1
  67. package/funcs/benefitsList.js +42 -42
  68. package/funcs/benefitsList.js.map +1 -1
  69. package/funcs/benefitsUpdate.d.ts +1 -1
  70. package/funcs/benefitsUpdate.d.ts.map +1 -1
  71. package/funcs/benefitsUpdate.js +32 -32
  72. package/funcs/benefitsUpdate.js.map +1 -1
  73. package/funcs/checkoutsCreate.d.ts +1 -1
  74. package/funcs/checkoutsCreate.d.ts.map +1 -1
  75. package/funcs/checkoutsCreate.js +30 -30
  76. package/funcs/checkoutsCreate.js.map +1 -1
  77. package/funcs/checkoutsGet.d.ts +1 -1
  78. package/funcs/checkoutsGet.d.ts.map +1 -1
  79. package/funcs/checkoutsGet.js +32 -32
  80. package/funcs/checkoutsGet.js.map +1 -1
  81. package/funcs/externalOrganizationsList.d.ts +1 -1
  82. package/funcs/externalOrganizationsList.d.ts.map +1 -1
  83. package/funcs/externalOrganizationsList.js +44 -44
  84. package/funcs/externalOrganizationsList.js.map +1 -1
  85. package/funcs/filesCreate.d.ts +1 -1
  86. package/funcs/filesCreate.d.ts.map +1 -1
  87. package/funcs/filesCreate.js +30 -30
  88. package/funcs/filesCreate.js.map +1 -1
  89. package/funcs/filesDelete.d.ts +1 -1
  90. package/funcs/filesDelete.d.ts.map +1 -1
  91. package/funcs/filesDelete.js +32 -32
  92. package/funcs/filesDelete.js.map +1 -1
  93. package/funcs/filesList.d.ts +1 -1
  94. package/funcs/filesList.d.ts.map +1 -1
  95. package/funcs/filesList.js +41 -41
  96. package/funcs/filesList.js.map +1 -1
  97. package/funcs/filesUpdate.d.ts +1 -1
  98. package/funcs/filesUpdate.d.ts.map +1 -1
  99. package/funcs/filesUpdate.js +32 -32
  100. package/funcs/filesUpdate.js.map +1 -1
  101. package/funcs/filesUploaded.d.ts +1 -1
  102. package/funcs/filesUploaded.d.ts.map +1 -1
  103. package/funcs/filesUploaded.js +32 -32
  104. package/funcs/filesUploaded.js.map +1 -1
  105. package/funcs/licenseKeysGet.d.ts +1 -1
  106. package/funcs/licenseKeysGet.d.ts.map +1 -1
  107. package/funcs/licenseKeysGet.js +32 -32
  108. package/funcs/licenseKeysGet.js.map +1 -1
  109. package/funcs/licenseKeysGetActivation.d.ts +1 -1
  110. package/funcs/licenseKeysGetActivation.d.ts.map +1 -1
  111. package/funcs/licenseKeysGetActivation.js +33 -33
  112. package/funcs/licenseKeysGetActivation.js.map +1 -1
  113. package/funcs/licenseKeysList.d.ts +1 -1
  114. package/funcs/licenseKeysList.d.ts.map +1 -1
  115. package/funcs/licenseKeysList.js +41 -41
  116. package/funcs/licenseKeysList.js.map +1 -1
  117. package/funcs/licenseKeysUpdate.d.ts +1 -1
  118. package/funcs/licenseKeysUpdate.d.ts.map +1 -1
  119. package/funcs/licenseKeysUpdate.js +32 -34
  120. package/funcs/licenseKeysUpdate.js.map +1 -1
  121. package/funcs/metricsGet.d.ts +1 -1
  122. package/funcs/metricsGet.d.ts.map +1 -1
  123. package/funcs/metricsGet.js +38 -38
  124. package/funcs/metricsGet.js.map +1 -1
  125. package/funcs/metricsLimits.d.ts +1 -1
  126. package/funcs/metricsLimits.d.ts.map +1 -1
  127. package/funcs/metricsLimits.js +20 -20
  128. package/funcs/metricsLimits.js.map +1 -1
  129. package/funcs/oauth2ClientsCreate.d.ts +1 -1
  130. package/funcs/oauth2ClientsCreate.d.ts.map +1 -1
  131. package/funcs/oauth2ClientsCreate.js +30 -30
  132. package/funcs/oauth2ClientsCreate.js.map +1 -1
  133. package/funcs/oauth2ClientsDelete.d.ts +1 -1
  134. package/funcs/oauth2ClientsDelete.d.ts.map +1 -1
  135. package/funcs/oauth2ClientsDelete.js +32 -32
  136. package/funcs/oauth2ClientsDelete.js.map +1 -1
  137. package/funcs/oauth2ClientsGet.d.ts +1 -1
  138. package/funcs/oauth2ClientsGet.d.ts.map +1 -1
  139. package/funcs/oauth2ClientsGet.js +32 -32
  140. package/funcs/oauth2ClientsGet.js.map +1 -1
  141. package/funcs/oauth2ClientsList.d.ts +1 -1
  142. package/funcs/oauth2ClientsList.d.ts.map +1 -1
  143. package/funcs/oauth2ClientsList.js +40 -40
  144. package/funcs/oauth2ClientsList.js.map +1 -1
  145. package/funcs/oauth2ClientsUpdate.d.ts +1 -1
  146. package/funcs/oauth2ClientsUpdate.d.ts.map +1 -1
  147. package/funcs/oauth2ClientsUpdate.js +32 -32
  148. package/funcs/oauth2ClientsUpdate.js.map +1 -1
  149. package/funcs/oauth2Introspect.d.ts +1 -1
  150. package/funcs/oauth2Introspect.d.ts.map +1 -1
  151. package/funcs/oauth2Introspect.js +29 -29
  152. package/funcs/oauth2Introspect.js.map +1 -1
  153. package/funcs/oauth2Revoke.d.ts +1 -1
  154. package/funcs/oauth2Revoke.d.ts.map +1 -1
  155. package/funcs/oauth2Revoke.js +28 -28
  156. package/funcs/oauth2Revoke.js.map +1 -1
  157. package/funcs/oauth2Token.d.ts +1 -1
  158. package/funcs/oauth2Token.d.ts.map +1 -1
  159. package/funcs/oauth2Token.js +28 -28
  160. package/funcs/oauth2Token.js.map +1 -1
  161. package/funcs/oauth2Userinfo.d.ts +1 -1
  162. package/funcs/oauth2Userinfo.d.ts.map +1 -1
  163. package/funcs/oauth2Userinfo.js +20 -20
  164. package/funcs/oauth2Userinfo.js.map +1 -1
  165. package/funcs/ordersGet.d.ts +1 -1
  166. package/funcs/ordersGet.d.ts.map +1 -1
  167. package/funcs/ordersGet.js +32 -32
  168. package/funcs/ordersGet.js.map +1 -1
  169. package/funcs/ordersInvoice.d.ts +1 -1
  170. package/funcs/ordersInvoice.d.ts.map +1 -1
  171. package/funcs/ordersInvoice.js +32 -32
  172. package/funcs/ordersInvoice.js.map +1 -1
  173. package/funcs/ordersList.d.ts +1 -1
  174. package/funcs/ordersList.d.ts.map +1 -1
  175. package/funcs/ordersList.js +44 -46
  176. package/funcs/ordersList.js.map +1 -1
  177. package/funcs/organizationsCreate.d.ts +1 -1
  178. package/funcs/organizationsCreate.d.ts.map +1 -1
  179. package/funcs/organizationsCreate.js +30 -30
  180. package/funcs/organizationsCreate.js.map +1 -1
  181. package/funcs/organizationsGet.d.ts +1 -1
  182. package/funcs/organizationsGet.d.ts.map +1 -1
  183. package/funcs/organizationsGet.js +32 -32
  184. package/funcs/organizationsGet.js.map +1 -1
  185. package/funcs/organizationsList.d.ts +1 -1
  186. package/funcs/organizationsList.d.ts.map +1 -1
  187. package/funcs/organizationsList.js +43 -43
  188. package/funcs/organizationsList.js.map +1 -1
  189. package/funcs/organizationsUpdate.d.ts +1 -1
  190. package/funcs/organizationsUpdate.d.ts.map +1 -1
  191. package/funcs/organizationsUpdate.js +32 -32
  192. package/funcs/organizationsUpdate.js.map +1 -1
  193. package/funcs/productsCreate.d.ts +1 -1
  194. package/funcs/productsCreate.d.ts.map +1 -1
  195. package/funcs/productsCreate.js +30 -30
  196. package/funcs/productsCreate.js.map +1 -1
  197. package/funcs/productsGet.d.ts +1 -1
  198. package/funcs/productsGet.d.ts.map +1 -1
  199. package/funcs/productsGet.js +32 -32
  200. package/funcs/productsGet.js.map +1 -1
  201. package/funcs/productsList.d.ts +1 -1
  202. package/funcs/productsList.d.ts.map +1 -1
  203. package/funcs/productsList.js +44 -45
  204. package/funcs/productsList.js.map +1 -1
  205. package/funcs/productsUpdate.d.ts +1 -1
  206. package/funcs/productsUpdate.d.ts.map +1 -1
  207. package/funcs/productsUpdate.js +32 -32
  208. package/funcs/productsUpdate.js.map +1 -1
  209. package/funcs/productsUpdateBenefits.d.ts +1 -1
  210. package/funcs/productsUpdateBenefits.d.ts.map +1 -1
  211. package/funcs/productsUpdateBenefits.js +32 -32
  212. package/funcs/productsUpdateBenefits.js.map +1 -1
  213. package/funcs/repositoriesGet.d.ts +1 -1
  214. package/funcs/repositoriesGet.d.ts.map +1 -1
  215. package/funcs/repositoriesGet.js +32 -32
  216. package/funcs/repositoriesGet.js.map +1 -1
  217. package/funcs/repositoriesList.d.ts +1 -1
  218. package/funcs/repositoriesList.d.ts.map +1 -1
  219. package/funcs/repositoriesList.js +46 -46
  220. package/funcs/repositoriesList.js.map +1 -1
  221. package/funcs/repositoriesUpdate.d.ts +1 -1
  222. package/funcs/repositoriesUpdate.d.ts.map +1 -1
  223. package/funcs/repositoriesUpdate.js +32 -34
  224. package/funcs/repositoriesUpdate.js.map +1 -1
  225. package/funcs/subscriptionsExport.d.ts +1 -1
  226. package/funcs/subscriptionsExport.d.ts.map +1 -1
  227. package/funcs/subscriptionsExport.js +33 -33
  228. package/funcs/subscriptionsExport.js.map +1 -1
  229. package/funcs/subscriptionsList.d.ts +1 -1
  230. package/funcs/subscriptionsList.d.ts.map +1 -1
  231. package/funcs/subscriptionsList.js +44 -45
  232. package/funcs/subscriptionsList.js.map +1 -1
  233. package/funcs/usersAdvertisementsCreate.d.ts +1 -1
  234. package/funcs/usersAdvertisementsCreate.d.ts.map +1 -1
  235. package/funcs/usersAdvertisementsCreate.js +30 -30
  236. package/funcs/usersAdvertisementsCreate.js.map +1 -1
  237. package/funcs/usersAdvertisementsDelete.d.ts +1 -1
  238. package/funcs/usersAdvertisementsDelete.d.ts.map +1 -1
  239. package/funcs/usersAdvertisementsDelete.js +32 -32
  240. package/funcs/usersAdvertisementsDelete.js.map +1 -1
  241. package/funcs/usersAdvertisementsEnable.d.ts +1 -1
  242. package/funcs/usersAdvertisementsEnable.d.ts.map +1 -1
  243. package/funcs/usersAdvertisementsEnable.js +32 -32
  244. package/funcs/usersAdvertisementsEnable.js.map +1 -1
  245. package/funcs/usersAdvertisementsGet.d.ts +1 -1
  246. package/funcs/usersAdvertisementsGet.d.ts.map +1 -1
  247. package/funcs/usersAdvertisementsGet.js +32 -32
  248. package/funcs/usersAdvertisementsGet.js.map +1 -1
  249. package/funcs/usersAdvertisementsList.d.ts +1 -1
  250. package/funcs/usersAdvertisementsList.d.ts.map +1 -1
  251. package/funcs/usersAdvertisementsList.js +41 -41
  252. package/funcs/usersAdvertisementsList.js.map +1 -1
  253. package/funcs/usersAdvertisementsUpdate.d.ts +1 -1
  254. package/funcs/usersAdvertisementsUpdate.d.ts.map +1 -1
  255. package/funcs/usersAdvertisementsUpdate.js +32 -32
  256. package/funcs/usersAdvertisementsUpdate.js.map +1 -1
  257. package/funcs/usersBenefitsGet.d.ts +1 -1
  258. package/funcs/usersBenefitsGet.d.ts.map +1 -1
  259. package/funcs/usersBenefitsGet.js +32 -32
  260. package/funcs/usersBenefitsGet.js.map +1 -1
  261. package/funcs/usersBenefitsList.d.ts +1 -1
  262. package/funcs/usersBenefitsList.d.ts.map +1 -1
  263. package/funcs/usersBenefitsList.js +45 -45
  264. package/funcs/usersBenefitsList.js.map +1 -1
  265. package/funcs/usersDownloadablesGet.d.ts +1 -1
  266. package/funcs/usersDownloadablesGet.d.ts.map +1 -1
  267. package/funcs/usersDownloadablesGet.js +32 -32
  268. package/funcs/usersDownloadablesGet.js.map +1 -1
  269. package/funcs/usersDownloadablesList.d.ts +1 -1
  270. package/funcs/usersDownloadablesList.d.ts.map +1 -1
  271. package/funcs/usersDownloadablesList.js +42 -42
  272. package/funcs/usersDownloadablesList.js.map +1 -1
  273. package/funcs/usersLicenseKeysActivate.d.ts +1 -1
  274. package/funcs/usersLicenseKeysActivate.d.ts.map +1 -1
  275. package/funcs/usersLicenseKeysActivate.js +30 -30
  276. package/funcs/usersLicenseKeysActivate.js.map +1 -1
  277. package/funcs/usersLicenseKeysDeactivate.d.ts +1 -1
  278. package/funcs/usersLicenseKeysDeactivate.d.ts.map +1 -1
  279. package/funcs/usersLicenseKeysDeactivate.js +30 -30
  280. package/funcs/usersLicenseKeysDeactivate.js.map +1 -1
  281. package/funcs/usersLicenseKeysGet.d.ts +1 -1
  282. package/funcs/usersLicenseKeysGet.d.ts.map +1 -1
  283. package/funcs/usersLicenseKeysGet.js +32 -32
  284. package/funcs/usersLicenseKeysGet.js.map +1 -1
  285. package/funcs/usersLicenseKeysList.d.ts +1 -1
  286. package/funcs/usersLicenseKeysList.d.ts.map +1 -1
  287. package/funcs/usersLicenseKeysList.js +42 -42
  288. package/funcs/usersLicenseKeysList.js.map +1 -1
  289. package/funcs/usersLicenseKeysValidate.d.ts +1 -1
  290. package/funcs/usersLicenseKeysValidate.d.ts.map +1 -1
  291. package/funcs/usersLicenseKeysValidate.js +30 -30
  292. package/funcs/usersLicenseKeysValidate.js.map +1 -1
  293. package/funcs/usersOrdersGet.d.ts +1 -1
  294. package/funcs/usersOrdersGet.d.ts.map +1 -1
  295. package/funcs/usersOrdersGet.js +32 -32
  296. package/funcs/usersOrdersGet.js.map +1 -1
  297. package/funcs/usersOrdersInvoice.d.ts +1 -1
  298. package/funcs/usersOrdersInvoice.d.ts.map +1 -1
  299. package/funcs/usersOrdersInvoice.js +32 -32
  300. package/funcs/usersOrdersInvoice.js.map +1 -1
  301. package/funcs/usersOrdersList.d.ts +1 -1
  302. package/funcs/usersOrdersList.d.ts.map +1 -1
  303. package/funcs/usersOrdersList.js +46 -46
  304. package/funcs/usersOrdersList.js.map +1 -1
  305. package/funcs/usersSubscriptionsCancel.d.ts +1 -1
  306. package/funcs/usersSubscriptionsCancel.d.ts.map +1 -1
  307. package/funcs/usersSubscriptionsCancel.js +32 -32
  308. package/funcs/usersSubscriptionsCancel.js.map +1 -1
  309. package/funcs/usersSubscriptionsGet.d.ts +1 -1
  310. package/funcs/usersSubscriptionsGet.d.ts.map +1 -1
  311. package/funcs/usersSubscriptionsGet.js +32 -32
  312. package/funcs/usersSubscriptionsGet.js.map +1 -1
  313. package/funcs/usersSubscriptionsList.d.ts +1 -1
  314. package/funcs/usersSubscriptionsList.d.ts.map +1 -1
  315. package/funcs/usersSubscriptionsList.js +45 -45
  316. package/funcs/usersSubscriptionsList.js.map +1 -1
  317. package/funcs/usersSubscriptionsUpdate.d.ts +1 -1
  318. package/funcs/usersSubscriptionsUpdate.d.ts.map +1 -1
  319. package/funcs/usersSubscriptionsUpdate.js +33 -33
  320. package/funcs/usersSubscriptionsUpdate.js.map +1 -1
  321. package/lib/config.d.ts +16 -5
  322. package/lib/config.d.ts.map +1 -1
  323. package/lib/config.js +18 -12
  324. package/lib/config.js.map +1 -1
  325. package/lib/sdks.d.ts +5 -8
  326. package/lib/sdks.d.ts.map +1 -1
  327. package/lib/sdks.js +36 -20
  328. package/lib/sdks.js.map +1 -1
  329. package/models/components/index.d.ts +14 -9
  330. package/models/components/index.d.ts.map +1 -1
  331. package/models/components/index.js +14 -9
  332. package/models/components/index.js.map +1 -1
  333. package/models/components/orderproduct.d.ts +0 -11
  334. package/models/components/orderproduct.d.ts.map +1 -1
  335. package/models/components/orderproduct.js +0 -7
  336. package/models/components/orderproduct.js.map +1 -1
  337. package/models/components/ordersubscription.d.ts +9 -2
  338. package/models/components/ordersubscription.d.ts.map +1 -1
  339. package/models/components/ordersubscription.js +11 -2
  340. package/models/components/ordersubscription.js.map +1 -1
  341. package/models/components/organizationfeaturesettings.d.ts +0 -5
  342. package/models/components/organizationfeaturesettings.d.ts.map +1 -1
  343. package/models/components/organizationfeaturesettings.js +0 -4
  344. package/models/components/organizationfeaturesettings.js.map +1 -1
  345. package/models/components/productinput.d.ts +0 -11
  346. package/models/components/productinput.d.ts.map +1 -1
  347. package/models/components/productinput.js +0 -7
  348. package/models/components/productinput.js.map +1 -1
  349. package/models/components/productonetimecreate.d.ts +24 -3
  350. package/models/components/productonetimecreate.d.ts.map +1 -1
  351. package/models/components/productonetimecreate.js +38 -4
  352. package/models/components/productonetimecreate.js.map +1 -1
  353. package/models/components/productoutput.d.ts +0 -11
  354. package/models/components/productoutput.d.ts.map +1 -1
  355. package/models/components/productoutput.js +0 -7
  356. package/models/components/productoutput.js.map +1 -1
  357. package/models/components/productpriceinput.d.ts +3 -11
  358. package/models/components/productpriceinput.d.ts.map +1 -1
  359. package/models/components/productpriceinput.js +5 -13
  360. package/models/components/productpriceinput.js.map +1 -1
  361. package/models/components/productpriceonetime.d.ts +5 -71
  362. package/models/components/productpriceonetime.d.ts.map +1 -1
  363. package/models/components/productpriceonetime.js +14 -57
  364. package/models/components/productpriceonetime.js.map +1 -1
  365. package/models/components/productpriceonetimecustom.d.ts +124 -0
  366. package/models/components/productpriceonetimecustom.d.ts.map +1 -0
  367. package/models/components/productpriceonetimecustom.js +130 -0
  368. package/models/components/productpriceonetimecustom.js.map +1 -0
  369. package/models/components/productpriceonetimecustomcreate.d.ts +95 -0
  370. package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -0
  371. package/models/components/productpriceonetimecustomcreate.js +114 -0
  372. package/models/components/productpriceonetimecustomcreate.js.map +1 -0
  373. package/models/components/productpriceonetimefixed.d.ts +114 -0
  374. package/models/components/productpriceonetimefixed.d.ts.map +1 -0
  375. package/models/components/productpriceonetimefixed.js +122 -0
  376. package/models/components/productpriceonetimefixed.js.map +1 -0
  377. package/models/components/productpriceonetimefixedcreate.d.ts +85 -0
  378. package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -0
  379. package/models/components/productpriceonetimefixedcreate.js +106 -0
  380. package/models/components/productpriceonetimefixedcreate.js.map +1 -0
  381. package/models/components/productpriceonetimefree.d.ts +104 -0
  382. package/models/components/productpriceonetimefree.d.ts.map +1 -0
  383. package/models/components/productpriceonetimefree.js +114 -0
  384. package/models/components/productpriceonetimefree.js.map +1 -0
  385. package/models/components/productpriceonetimefreecreate.d.ts +75 -0
  386. package/models/components/productpriceonetimefreecreate.d.ts.map +1 -0
  387. package/models/components/productpriceonetimefreecreate.js +98 -0
  388. package/models/components/productpriceonetimefreecreate.js.map +1 -0
  389. package/models/components/productpriceoutput.d.ts +3 -11
  390. package/models/components/productpriceoutput.d.ts.map +1 -1
  391. package/models/components/productpriceoutput.js +5 -13
  392. package/models/components/productpriceoutput.js.map +1 -1
  393. package/models/components/productpricerecurringcustom.d.ts +130 -0
  394. package/models/components/productpricerecurringcustom.d.ts.map +1 -0
  395. package/models/components/productpricerecurringcustom.js +135 -0
  396. package/models/components/productpricerecurringcustom.js.map +1 -0
  397. package/models/components/productpricerecurringfixed.d.ts +120 -0
  398. package/models/components/productpricerecurringfixed.d.ts.map +1 -0
  399. package/models/components/productpricerecurringfixed.js +128 -0
  400. package/models/components/productpricerecurringfixed.js.map +1 -0
  401. package/models/components/productpricerecurringfixedcreate.d.ts +91 -0
  402. package/models/components/productpricerecurringfixedcreate.d.ts.map +1 -0
  403. package/models/components/productpricerecurringfixedcreate.js +111 -0
  404. package/models/components/productpricerecurringfixedcreate.js.map +1 -0
  405. package/models/components/productpricerecurringfree.d.ts +110 -0
  406. package/models/components/productpricerecurringfree.d.ts.map +1 -0
  407. package/models/components/productpricerecurringfree.js +119 -0
  408. package/models/components/productpricerecurringfree.js.map +1 -0
  409. package/models/components/productpricerecurringfreecreate.d.ts +81 -0
  410. package/models/components/productpricerecurringfreecreate.d.ts.map +1 -0
  411. package/models/components/productpricerecurringfreecreate.js +103 -0
  412. package/models/components/productpricerecurringfreecreate.js.map +1 -0
  413. package/models/components/productpricerecurringinput.d.ts +36 -0
  414. package/models/components/productpricerecurringinput.d.ts.map +1 -0
  415. package/models/components/productpricerecurringinput.js +69 -0
  416. package/models/components/productpricerecurringinput.js.map +1 -0
  417. package/models/components/productpricerecurringoutput.d.ts +36 -0
  418. package/models/components/productpricerecurringoutput.d.ts.map +1 -0
  419. package/models/components/productpricerecurringoutput.js +69 -0
  420. package/models/components/productpricerecurringoutput.js.map +1 -0
  421. package/models/components/productrecurringcreate.d.ts +17 -36
  422. package/models/components/productrecurringcreate.d.ts.map +1 -1
  423. package/models/components/productrecurringcreate.js +26 -26
  424. package/models/components/productrecurringcreate.js.map +1 -1
  425. package/models/components/productupdate.d.ts +18 -20
  426. package/models/components/productupdate.d.ts.map +1 -1
  427. package/models/components/productupdate.js +35 -25
  428. package/models/components/productupdate.js.map +1 -1
  429. package/models/components/subscriptioninput.d.ts +11 -4
  430. package/models/components/subscriptioninput.d.ts.map +1 -1
  431. package/models/components/subscriptioninput.js +13 -4
  432. package/models/components/subscriptioninput.js.map +1 -1
  433. package/models/components/subscriptionoutput.d.ts +11 -4
  434. package/models/components/subscriptionoutput.d.ts.map +1 -1
  435. package/models/components/subscriptionoutput.js +13 -4
  436. package/models/components/subscriptionoutput.js.map +1 -1
  437. package/models/components/subscriptionrecurringinterval.d.ts +28 -0
  438. package/models/components/{productpricerecurringinterval.d.ts.map → subscriptionrecurringinterval.d.ts.map} +1 -1
  439. package/models/components/{productpricerecurringinterval.js → subscriptionrecurringinterval.js} +12 -12
  440. package/models/components/{productpricerecurringinterval.js.map → subscriptionrecurringinterval.js.map} +1 -1
  441. package/models/components/subscriptionsortproperty.d.ts +6 -12
  442. package/models/components/subscriptionsortproperty.d.ts.map +1 -1
  443. package/models/components/subscriptionsortproperty.js +2 -4
  444. package/models/components/subscriptionsortproperty.js.map +1 -1
  445. package/models/components/userorderproduct.d.ts +0 -11
  446. package/models/components/userorderproduct.d.ts.map +1 -1
  447. package/models/components/userorderproduct.js +0 -7
  448. package/models/components/userorderproduct.js.map +1 -1
  449. package/models/components/userordersubscription.d.ts +9 -2
  450. package/models/components/userordersubscription.d.ts.map +1 -1
  451. package/models/components/userordersubscription.js +11 -2
  452. package/models/components/userordersubscription.js.map +1 -1
  453. package/models/components/usersubscription.d.ts +14 -4
  454. package/models/components/usersubscription.d.ts.map +1 -1
  455. package/models/components/usersubscription.js +13 -4
  456. package/models/components/usersubscription.js.map +1 -1
  457. package/models/components/usersubscriptionproduct.d.ts +0 -11
  458. package/models/components/usersubscriptionproduct.d.ts.map +1 -1
  459. package/models/components/usersubscriptionproduct.js +0 -7
  460. package/models/components/usersubscriptionproduct.js.map +1 -1
  461. package/models/components/usersubscriptionsortproperty.d.ts +6 -6
  462. package/models/components/usersubscriptionsortproperty.js +2 -2
  463. package/models/components/usersubscriptionsortproperty.js.map +1 -1
  464. package/models/errors/index.d.ts +0 -2
  465. package/models/errors/index.d.ts.map +1 -1
  466. package/models/errors/index.js +0 -2
  467. package/models/errors/index.js.map +1 -1
  468. package/models/operations/productscreate.d.ts +2 -2
  469. package/models/operations/productscreate.d.ts.map +1 -1
  470. package/models/operations/productscreate.js +2 -2
  471. package/models/operations/productscreate.js.map +1 -1
  472. package/models/operations/productslist.d.ts +0 -27
  473. package/models/operations/productslist.d.ts.map +1 -1
  474. package/models/operations/productslist.js +1 -32
  475. package/models/operations/productslist.js.map +1 -1
  476. package/models/operations/subscriptionslist.d.ts +0 -29
  477. package/models/operations/subscriptionslist.d.ts.map +1 -1
  478. package/models/operations/subscriptionslist.js +1 -32
  479. package/models/operations/subscriptionslist.js.map +1 -1
  480. package/package.json +1 -1
  481. package/sdk/oauth2.js +1 -1
  482. package/sdk/polarsubscriptions.d.ts +0 -9
  483. package/sdk/polarsubscriptions.d.ts.map +1 -1
  484. package/sdk/polarsubscriptions.js +0 -12
  485. package/sdk/polarsubscriptions.js.map +1 -1
  486. package/sdk/sdk.js +15 -15
  487. package/sdk/subscriptions.d.ts +0 -15
  488. package/sdk/subscriptions.d.ts.map +1 -1
  489. package/sdk/subscriptions.js +0 -20
  490. package/sdk/subscriptions.js.map +1 -1
  491. package/sdk/users.js +6 -6
  492. package/src/funcs/advertisementsGet.ts +40 -41
  493. package/src/funcs/advertisementsList.ts +48 -49
  494. package/src/funcs/articlesCreate.ts +37 -37
  495. package/src/funcs/articlesDelete.ts +41 -41
  496. package/src/funcs/articlesGet.ts +40 -40
  497. package/src/funcs/articlesList.ts +52 -52
  498. package/src/funcs/articlesPreview.ts +41 -44
  499. package/src/funcs/articlesReceivers.ts +39 -40
  500. package/src/funcs/articlesSend.ts +41 -41
  501. package/src/funcs/articlesUpdate.ts +41 -44
  502. package/src/funcs/benefitsCreate.ts +38 -38
  503. package/src/funcs/benefitsDelete.ts +41 -41
  504. package/src/funcs/benefitsGet.ts +40 -40
  505. package/src/funcs/benefitsGrants.ts +52 -55
  506. package/src/funcs/benefitsList.ts +48 -48
  507. package/src/funcs/benefitsUpdate.ts +41 -44
  508. package/src/funcs/checkoutsCreate.ts +37 -37
  509. package/src/funcs/checkoutsGet.ts +39 -39
  510. package/src/funcs/externalOrganizationsList.ts +51 -51
  511. package/src/funcs/filesCreate.ts +37 -37
  512. package/src/funcs/filesDelete.ts +41 -41
  513. package/src/funcs/filesList.ts +48 -48
  514. package/src/funcs/filesUpdate.ts +39 -42
  515. package/src/funcs/filesUploaded.ts +39 -42
  516. package/src/funcs/licenseKeysGet.ts +41 -41
  517. package/src/funcs/licenseKeysGetActivation.ts +44 -44
  518. package/src/funcs/licenseKeysList.ts +49 -49
  519. package/src/funcs/licenseKeysUpdate.ts +41 -47
  520. package/src/funcs/metricsGet.ts +45 -45
  521. package/src/funcs/metricsLimits.ts +22 -22
  522. package/src/funcs/oauth2ClientsCreate.ts +37 -38
  523. package/src/funcs/oauth2ClientsDelete.ts +40 -40
  524. package/src/funcs/oauth2ClientsGet.ts +40 -40
  525. package/src/funcs/oauth2ClientsList.ts +46 -47
  526. package/src/funcs/oauth2ClientsUpdate.ts +40 -43
  527. package/src/funcs/oauth2Introspect.ts +35 -35
  528. package/src/funcs/oauth2Revoke.ts +35 -35
  529. package/src/funcs/oauth2Token.ts +35 -35
  530. package/src/funcs/oauth2Userinfo.ts +22 -22
  531. package/src/funcs/ordersGet.ts +40 -40
  532. package/src/funcs/ordersInvoice.ts +40 -40
  533. package/src/funcs/ordersList.ts +51 -53
  534. package/src/funcs/organizationsCreate.ts +37 -37
  535. package/src/funcs/organizationsGet.ts +40 -40
  536. package/src/funcs/organizationsList.ts +49 -50
  537. package/src/funcs/organizationsUpdate.ts +42 -45
  538. package/src/funcs/productsCreate.ts +38 -38
  539. package/src/funcs/productsGet.ts +40 -40
  540. package/src/funcs/productsList.ts +50 -51
  541. package/src/funcs/productsUpdate.ts +41 -44
  542. package/src/funcs/productsUpdateBenefits.ts +42 -45
  543. package/src/funcs/repositoriesGet.ts +40 -40
  544. package/src/funcs/repositoriesList.ts +52 -52
  545. package/src/funcs/repositoriesUpdate.ts +41 -47
  546. package/src/funcs/subscriptionsExport.ts +41 -41
  547. package/src/funcs/subscriptionsList.ts +50 -52
  548. package/src/funcs/usersAdvertisementsCreate.ts +38 -38
  549. package/src/funcs/usersAdvertisementsDelete.ts +42 -42
  550. package/src/funcs/usersAdvertisementsEnable.ts +41 -44
  551. package/src/funcs/usersAdvertisementsGet.ts +41 -41
  552. package/src/funcs/usersAdvertisementsList.ts +48 -48
  553. package/src/funcs/usersAdvertisementsUpdate.ts +41 -44
  554. package/src/funcs/usersBenefitsGet.ts +40 -40
  555. package/src/funcs/usersBenefitsList.ts +51 -52
  556. package/src/funcs/usersDownloadablesGet.ts +41 -41
  557. package/src/funcs/usersDownloadablesList.ts +49 -49
  558. package/src/funcs/usersLicenseKeysActivate.ts +39 -39
  559. package/src/funcs/usersLicenseKeysDeactivate.ts +38 -38
  560. package/src/funcs/usersLicenseKeysGet.ts +42 -42
  561. package/src/funcs/usersLicenseKeysList.ts +51 -51
  562. package/src/funcs/usersLicenseKeysValidate.ts +38 -38
  563. package/src/funcs/usersOrdersGet.ts +40 -40
  564. package/src/funcs/usersOrdersInvoice.ts +40 -41
  565. package/src/funcs/usersOrdersList.ts +52 -52
  566. package/src/funcs/usersSubscriptionsCancel.ts +42 -42
  567. package/src/funcs/usersSubscriptionsGet.ts +41 -41
  568. package/src/funcs/usersSubscriptionsList.ts +52 -52
  569. package/src/funcs/usersSubscriptionsUpdate.ts +42 -48
  570. package/src/lib/config.ts +18 -12
  571. package/src/lib/sdks.ts +26 -26
  572. package/src/models/components/index.ts +14 -9
  573. package/src/models/components/orderproduct.ts +0 -21
  574. package/src/models/components/ordersubscription.ts +23 -4
  575. package/src/models/components/organizationfeaturesettings.ts +0 -9
  576. package/src/models/components/productinput.ts +0 -21
  577. package/src/models/components/productonetimecreate.ts +84 -9
  578. package/src/models/components/productoutput.ts +0 -21
  579. package/src/models/components/productpriceinput.ts +13 -29
  580. package/src/models/components/productpriceonetime.ts +36 -114
  581. package/src/models/components/productpriceonetimecustom.ts +201 -0
  582. package/src/models/components/productpriceonetimecustomcreate.ts +158 -0
  583. package/src/models/components/productpriceonetimefixed.ts +182 -0
  584. package/src/models/components/productpriceonetimefixedcreate.ts +139 -0
  585. package/src/models/components/productpriceonetimefree.ts +164 -0
  586. package/src/models/components/productpriceonetimefreecreate.ts +121 -0
  587. package/src/models/components/productpriceoutput.ts +13 -29
  588. package/src/models/components/productpricerecurringcustom.ts +216 -0
  589. package/src/models/components/productpricerecurringfixed.ts +191 -0
  590. package/src/models/components/productpricerecurringfixedcreate.ts +155 -0
  591. package/src/models/components/productpricerecurringfree.ts +179 -0
  592. package/src/models/components/productpricerecurringfreecreate.ts +136 -0
  593. package/src/models/components/productpricerecurringinput.ts +93 -0
  594. package/src/models/components/productpricerecurringoutput.ts +93 -0
  595. package/src/models/components/productrecurringcreate.ts +57 -48
  596. package/src/models/components/productupdate.ts +87 -51
  597. package/src/models/components/subscriptioninput.ts +27 -8
  598. package/src/models/components/subscriptionoutput.ts +27 -8
  599. package/src/models/components/subscriptionrecurringinterval.ts +35 -0
  600. package/src/models/components/subscriptionsortproperty.ts +2 -4
  601. package/src/models/components/userorderproduct.ts +0 -21
  602. package/src/models/components/userordersubscription.ts +23 -4
  603. package/src/models/components/usersubscription.ts +30 -8
  604. package/src/models/components/usersubscriptionproduct.ts +0 -21
  605. package/src/models/components/usersubscriptionsortproperty.ts +2 -2
  606. package/src/models/errors/index.ts +0 -2
  607. package/src/models/operations/productscreate.ts +6 -6
  608. package/src/models/operations/productslist.ts +0 -70
  609. package/src/models/operations/subscriptionslist.ts +0 -68
  610. package/src/sdk/oauth2.ts +1 -1
  611. package/src/sdk/polarsubscriptions.ts +0 -20
  612. package/src/sdk/sdk.ts +15 -15
  613. package/src/sdk/subscriptions.ts +0 -37
  614. package/src/sdk/users.ts +6 -6
  615. package/funcs/subscriptionsCreate.d.ts +0 -16
  616. package/funcs/subscriptionsCreate.d.ts.map +0 -1
  617. package/funcs/subscriptionsCreate.js +0 -96
  618. package/funcs/subscriptionsCreate.js.map +0 -1
  619. package/funcs/subscriptionsImportSubscriptions.d.ts +0 -16
  620. package/funcs/subscriptionsImportSubscriptions.d.ts.map +0 -1
  621. package/funcs/subscriptionsImportSubscriptions.js +0 -109
  622. package/funcs/subscriptionsImportSubscriptions.js.map +0 -1
  623. package/funcs/usersSubscriptionsCreate.d.ts +0 -18
  624. package/funcs/usersSubscriptionsCreate.d.ts.map +0 -1
  625. package/funcs/usersSubscriptionsCreate.js +0 -98
  626. package/funcs/usersSubscriptionsCreate.js.map +0 -1
  627. package/models/components/bodysubscriptionsimport.d.ts +0 -58
  628. package/models/components/bodysubscriptionsimport.d.ts.map +0 -1
  629. package/models/components/bodysubscriptionsimport.js +0 -92
  630. package/models/components/bodysubscriptionsimport.js.map +0 -1
  631. package/models/components/productpriceonetimecreate.d.ts +0 -61
  632. package/models/components/productpriceonetimecreate.d.ts.map +0 -1
  633. package/models/components/productpriceonetimecreate.js +0 -83
  634. package/models/components/productpriceonetimecreate.js.map +0 -1
  635. package/models/components/productpricerecurring.d.ts +0 -96
  636. package/models/components/productpricerecurring.d.ts.map +0 -1
  637. package/models/components/productpricerecurring.js +0 -105
  638. package/models/components/productpricerecurring.js.map +0 -1
  639. package/models/components/productpricerecurringcreate.d.ts +0 -67
  640. package/models/components/productpricerecurringcreate.d.ts.map +0 -1
  641. package/models/components/productpricerecurringcreate.js +0 -88
  642. package/models/components/productpricerecurringcreate.js.map +0 -1
  643. package/models/components/productpricerecurringinterval.d.ts +0 -28
  644. package/models/components/subscriptioncreateemail.d.ts +0 -36
  645. package/models/components/subscriptioncreateemail.d.ts.map +0 -1
  646. package/models/components/subscriptioncreateemail.js +0 -61
  647. package/models/components/subscriptioncreateemail.js.map +0 -1
  648. package/models/components/subscriptionsimported.d.ts +0 -28
  649. package/models/components/subscriptionsimported.d.ts.map +0 -1
  650. package/models/components/subscriptionsimported.js +0 -50
  651. package/models/components/subscriptionsimported.js.map +0 -1
  652. package/models/components/subscriptiontiertype.d.ts +0 -31
  653. package/models/components/subscriptiontiertype.d.ts.map +0 -1
  654. package/models/components/subscriptiontiertype.js +0 -51
  655. package/models/components/subscriptiontiertype.js.map +0 -1
  656. package/models/components/userfreesubscriptioncreate.d.ts +0 -33
  657. package/models/components/userfreesubscriptioncreate.d.ts.map +0 -1
  658. package/models/components/userfreesubscriptioncreate.js +0 -63
  659. package/models/components/userfreesubscriptioncreate.js.map +0 -1
  660. package/models/errors/alreadysubscribed.d.ts +0 -57
  661. package/models/errors/alreadysubscribed.d.ts.map +0 -1
  662. package/models/errors/alreadysubscribed.js +0 -88
  663. package/models/errors/alreadysubscribed.js.map +0 -1
  664. package/models/errors/freesubscriptionupgrade.d.ts +0 -57
  665. package/models/errors/freesubscriptionupgrade.d.ts.map +0 -1
  666. package/models/errors/freesubscriptionupgrade.js +0 -88
  667. package/models/errors/freesubscriptionupgrade.js.map +0 -1
  668. package/src/funcs/subscriptionsCreate.ts +0 -126
  669. package/src/funcs/subscriptionsImportSubscriptions.ts +0 -142
  670. package/src/funcs/usersSubscriptionsCreate.ts +0 -135
  671. package/src/models/components/bodysubscriptionsimport.ts +0 -114
  672. package/src/models/components/productpriceonetimecreate.ts +0 -102
  673. package/src/models/components/productpricerecurring.ts +0 -161
  674. package/src/models/components/productpricerecurringcreate.ts +0 -116
  675. package/src/models/components/productpricerecurringinterval.ts +0 -35
  676. package/src/models/components/subscriptioncreateemail.ts +0 -67
  677. package/src/models/components/subscriptionsimported.ts +0 -48
  678. package/src/models/components/subscriptiontiertype.ts +0 -34
  679. package/src/models/components/userfreesubscriptioncreate.ts +0 -66
  680. package/src/models/errors/alreadysubscribed.ts +0 -102
  681. package/src/models/errors/freesubscriptionupgrade.ts +0 -106
@@ -0,0 +1,81 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
4
+ export declare const ProductPriceRecurringFreeCreateType: {
5
+ readonly Recurring: "recurring";
6
+ };
7
+ export type ProductPriceRecurringFreeCreateType = ClosedEnum<typeof ProductPriceRecurringFreeCreateType>;
8
+ export declare const ProductPriceRecurringFreeCreateAmountType: {
9
+ readonly Free: "free";
10
+ };
11
+ export type ProductPriceRecurringFreeCreateAmountType = ClosedEnum<typeof ProductPriceRecurringFreeCreateAmountType>;
12
+ /**
13
+ * Schema to create a free recurring product price, i.e. a subscription.
14
+ */
15
+ export type ProductPriceRecurringFreeCreate = {
16
+ type?: "recurring" | undefined;
17
+ amountType?: "free" | undefined;
18
+ /**
19
+ * The recurring interval of the price.
20
+ */
21
+ recurringInterval: SubscriptionRecurringInterval;
22
+ };
23
+ /** @internal */
24
+ export declare const ProductPriceRecurringFreeCreateType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateType>;
25
+ /** @internal */
26
+ export declare const ProductPriceRecurringFreeCreateType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateType>;
27
+ /**
28
+ * @internal
29
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
30
+ */
31
+ export declare namespace ProductPriceRecurringFreeCreateType$ {
32
+ /** @deprecated use `ProductPriceRecurringFreeCreateType$inboundSchema` instead. */
33
+ const inboundSchema: z.ZodNativeEnum<{
34
+ readonly Recurring: "recurring";
35
+ }>;
36
+ /** @deprecated use `ProductPriceRecurringFreeCreateType$outboundSchema` instead. */
37
+ const outboundSchema: z.ZodNativeEnum<{
38
+ readonly Recurring: "recurring";
39
+ }>;
40
+ }
41
+ /** @internal */
42
+ export declare const ProductPriceRecurringFreeCreateAmountType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateAmountType>;
43
+ /** @internal */
44
+ export declare const ProductPriceRecurringFreeCreateAmountType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateAmountType>;
45
+ /**
46
+ * @internal
47
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
+ */
49
+ export declare namespace ProductPriceRecurringFreeCreateAmountType$ {
50
+ /** @deprecated use `ProductPriceRecurringFreeCreateAmountType$inboundSchema` instead. */
51
+ const inboundSchema: z.ZodNativeEnum<{
52
+ readonly Free: "free";
53
+ }>;
54
+ /** @deprecated use `ProductPriceRecurringFreeCreateAmountType$outboundSchema` instead. */
55
+ const outboundSchema: z.ZodNativeEnum<{
56
+ readonly Free: "free";
57
+ }>;
58
+ }
59
+ /** @internal */
60
+ export declare const ProductPriceRecurringFreeCreate$inboundSchema: z.ZodType<ProductPriceRecurringFreeCreate, z.ZodTypeDef, unknown>;
61
+ /** @internal */
62
+ export type ProductPriceRecurringFreeCreate$Outbound = {
63
+ type: "recurring";
64
+ amount_type: "free";
65
+ recurring_interval: string;
66
+ };
67
+ /** @internal */
68
+ export declare const ProductPriceRecurringFreeCreate$outboundSchema: z.ZodType<ProductPriceRecurringFreeCreate$Outbound, z.ZodTypeDef, ProductPriceRecurringFreeCreate>;
69
+ /**
70
+ * @internal
71
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
72
+ */
73
+ export declare namespace ProductPriceRecurringFreeCreate$ {
74
+ /** @deprecated use `ProductPriceRecurringFreeCreate$inboundSchema` instead. */
75
+ const inboundSchema: z.ZodType<ProductPriceRecurringFreeCreate, z.ZodTypeDef, unknown>;
76
+ /** @deprecated use `ProductPriceRecurringFreeCreate$outboundSchema` instead. */
77
+ const outboundSchema: z.ZodType<ProductPriceRecurringFreeCreate$Outbound, z.ZodTypeDef, ProductPriceRecurringFreeCreate>;
78
+ /** @deprecated use `ProductPriceRecurringFreeCreate$Outbound` instead. */
79
+ type Outbound = ProductPriceRecurringFreeCreate$Outbound;
80
+ }
81
+ //# sourceMappingURL=productpricerecurringfreecreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringfreecreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringfreecreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,6BAA6B,EAG9B,MAAM,oCAAoC,CAAC;AAE5C,eAAO,MAAM,mCAAmC;;CAEtC,CAAC;AACX,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,yCAAyC;;CAE5C,CAAC;AACX,MAAM,MAAM,yCAAyC,GAAG,UAAU,CAChE,OAAO,yCAAyC,CACjD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,SAA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mEAAgD,CAAC;IAC3E,gFAAgF;IACzE,MAAM,cAAc,oGAAiD,CAAC;IAC7E,0EAA0E;IAC1E,KAAY,QAAQ,GAAG,wCAAwC,CAAC;CACjE"}
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ProductPriceRecurringFreeCreate$ = exports.ProductPriceRecurringFreeCreate$outboundSchema = exports.ProductPriceRecurringFreeCreate$inboundSchema = exports.ProductPriceRecurringFreeCreateAmountType$ = exports.ProductPriceRecurringFreeCreateAmountType$outboundSchema = exports.ProductPriceRecurringFreeCreateAmountType$inboundSchema = exports.ProductPriceRecurringFreeCreateType$ = exports.ProductPriceRecurringFreeCreateType$outboundSchema = exports.ProductPriceRecurringFreeCreateType$inboundSchema = exports.ProductPriceRecurringFreeCreateAmountType = exports.ProductPriceRecurringFreeCreateType = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
33
+ exports.ProductPriceRecurringFreeCreateType = {
34
+ Recurring: "recurring",
35
+ };
36
+ exports.ProductPriceRecurringFreeCreateAmountType = {
37
+ Free: "free",
38
+ };
39
+ /** @internal */
40
+ exports.ProductPriceRecurringFreeCreateType$inboundSchema = z.nativeEnum(exports.ProductPriceRecurringFreeCreateType);
41
+ /** @internal */
42
+ exports.ProductPriceRecurringFreeCreateType$outboundSchema = exports.ProductPriceRecurringFreeCreateType$inboundSchema;
43
+ /**
44
+ * @internal
45
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
+ */
47
+ var ProductPriceRecurringFreeCreateType$;
48
+ (function (ProductPriceRecurringFreeCreateType$) {
49
+ /** @deprecated use `ProductPriceRecurringFreeCreateType$inboundSchema` instead. */
50
+ ProductPriceRecurringFreeCreateType$.inboundSchema = exports.ProductPriceRecurringFreeCreateType$inboundSchema;
51
+ /** @deprecated use `ProductPriceRecurringFreeCreateType$outboundSchema` instead. */
52
+ ProductPriceRecurringFreeCreateType$.outboundSchema = exports.ProductPriceRecurringFreeCreateType$outboundSchema;
53
+ })(ProductPriceRecurringFreeCreateType$ || (exports.ProductPriceRecurringFreeCreateType$ = ProductPriceRecurringFreeCreateType$ = {}));
54
+ /** @internal */
55
+ exports.ProductPriceRecurringFreeCreateAmountType$inboundSchema = z
56
+ .nativeEnum(exports.ProductPriceRecurringFreeCreateAmountType);
57
+ /** @internal */
58
+ exports.ProductPriceRecurringFreeCreateAmountType$outboundSchema = exports.ProductPriceRecurringFreeCreateAmountType$inboundSchema;
59
+ /**
60
+ * @internal
61
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
+ */
63
+ var ProductPriceRecurringFreeCreateAmountType$;
64
+ (function (ProductPriceRecurringFreeCreateAmountType$) {
65
+ /** @deprecated use `ProductPriceRecurringFreeCreateAmountType$inboundSchema` instead. */
66
+ ProductPriceRecurringFreeCreateAmountType$.inboundSchema = exports.ProductPriceRecurringFreeCreateAmountType$inboundSchema;
67
+ /** @deprecated use `ProductPriceRecurringFreeCreateAmountType$outboundSchema` instead. */
68
+ ProductPriceRecurringFreeCreateAmountType$.outboundSchema = exports.ProductPriceRecurringFreeCreateAmountType$outboundSchema;
69
+ })(ProductPriceRecurringFreeCreateAmountType$ || (exports.ProductPriceRecurringFreeCreateAmountType$ = ProductPriceRecurringFreeCreateAmountType$ = {}));
70
+ /** @internal */
71
+ exports.ProductPriceRecurringFreeCreate$inboundSchema = z.object({
72
+ type: z.literal("recurring").optional(),
73
+ amount_type: z.literal("free").optional(),
74
+ recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
75
+ }).transform((v) => {
76
+ return (0, primitives_js_1.remap)(v, {
77
+ "amount_type": "amountType",
78
+ "recurring_interval": "recurringInterval",
79
+ });
80
+ });
81
+ /** @internal */
82
+ exports.ProductPriceRecurringFreeCreate$outboundSchema = z.object({
83
+ type: z.literal("recurring").default("recurring"),
84
+ amountType: z.literal("free").default("free"),
85
+ recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
86
+ }).transform((v) => {
87
+ return (0, primitives_js_1.remap)(v, {
88
+ amountType: "amount_type",
89
+ recurringInterval: "recurring_interval",
90
+ });
91
+ });
92
+ /**
93
+ * @internal
94
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
95
+ */
96
+ var ProductPriceRecurringFreeCreate$;
97
+ (function (ProductPriceRecurringFreeCreate$) {
98
+ /** @deprecated use `ProductPriceRecurringFreeCreate$inboundSchema` instead. */
99
+ ProductPriceRecurringFreeCreate$.inboundSchema = exports.ProductPriceRecurringFreeCreate$inboundSchema;
100
+ /** @deprecated use `ProductPriceRecurringFreeCreate$outboundSchema` instead. */
101
+ ProductPriceRecurringFreeCreate$.outboundSchema = exports.ProductPriceRecurringFreeCreate$outboundSchema;
102
+ })(ProductPriceRecurringFreeCreate$ || (exports.ProductPriceRecurringFreeCreate$ = ProductPriceRecurringFreeCreate$ = {}));
103
+ //# sourceMappingURL=productpricerecurringfreecreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringfreecreate.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringfreecreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAE1D,yFAI4C;AAE/B,QAAA,mCAAmC,GAAG;IACjD,SAAS,EAAE,WAAW;CACd,CAAC;AAKE,QAAA,yCAAyC,GAAG;IACvD,IAAI,EAAE,MAAM;CACJ,CAAC;AAiBX,gBAAgB;AACH,QAAA,iDAAiD,GAE1D,CAAC,CAAC,UAAU,CAAC,2CAAmC,CAAC,CAAC;AAEtD,gBAAgB;AACH,QAAA,kDAAkD,GAE3D,yDAAiD,CAAC;AAEtD;;;GAGG;AACH,IAAiB,oCAAoC,CAOpD;AAPD,WAAiB,oCAAoC;IACnD,mFAAmF;IACtE,kDAAa,GACxB,yDAAiD,CAAC;IACpD,oFAAoF;IACvE,mDAAc,GACzB,0DAAkD,CAAC;AACvD,CAAC,EAPgB,oCAAoC,oDAApC,oCAAoC,QAOpD;AAED,gBAAgB;AACH,QAAA,uDAAuD,GACE,CAAC;KAClE,UAAU,CAAC,iDAAyC,CAAC,CAAC;AAE3D,gBAAgB;AACH,QAAA,wDAAwD,GAEjE,+DAAuD,CAAC;AAE5D;;;GAGG;AACH,IAAiB,0CAA0C,CAO1D;AAPD,WAAiB,0CAA0C;IACzD,yFAAyF;IAC5E,wDAAa,GACxB,+DAAuD,CAAC;IAC1D,0FAA0F;IAC7E,yDAAc,GACzB,gEAAwD,CAAC;AAC7D,CAAC,EAPgB,0CAA0C,0DAA1C,0CAA0C,QAO1D;AAED,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;IACzC,kBAAkB,EAAE,8EAA2C;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,YAAY;QAC3B,oBAAoB,EAAE,mBAAmB;KAC1C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IACjD,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAC7C,iBAAiB,EAAE,+EAA4C;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,iBAAiB,EAAE,oBAAoB;KACxC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gCAAgC,CAOhD;AAPD,WAAiB,gCAAgC;IAC/C,+EAA+E;IAClE,8CAAa,GAAG,qDAA6C,CAAC;IAC3E,gFAAgF;IACnE,+CAAc,GAAG,sDAA8C,CAAC;AAG/E,CAAC,EAPgB,gCAAgC,gDAAhC,gCAAgC,QAOhD"}
@@ -0,0 +1,36 @@
1
+ import * as z from "zod";
2
+ import { ProductPriceRecurringCustom, ProductPriceRecurringCustom$Outbound } from "./productpricerecurringcustom.js";
3
+ import { ProductPriceRecurringFixed, ProductPriceRecurringFixed$Outbound } from "./productpricerecurringfixed.js";
4
+ import { ProductPriceRecurringFree, ProductPriceRecurringFree$Outbound } from "./productpricerecurringfree.js";
5
+ export type ProductPriceRecurringInput = (ProductPriceRecurringFree & {
6
+ amountType: "free";
7
+ }) | (ProductPriceRecurringFixed & {
8
+ amountType: "fixed";
9
+ }) | (ProductPriceRecurringCustom & {
10
+ amountType: "custom";
11
+ });
12
+ /** @internal */
13
+ export declare const ProductPriceRecurringInput$inboundSchema: z.ZodType<ProductPriceRecurringInput, z.ZodTypeDef, unknown>;
14
+ /** @internal */
15
+ export type ProductPriceRecurringInput$Outbound = (ProductPriceRecurringFree$Outbound & {
16
+ amount_type: "free";
17
+ }) | (ProductPriceRecurringFixed$Outbound & {
18
+ amount_type: "fixed";
19
+ }) | (ProductPriceRecurringCustom$Outbound & {
20
+ amount_type: "custom";
21
+ });
22
+ /** @internal */
23
+ export declare const ProductPriceRecurringInput$outboundSchema: z.ZodType<ProductPriceRecurringInput$Outbound, z.ZodTypeDef, ProductPriceRecurringInput>;
24
+ /**
25
+ * @internal
26
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
27
+ */
28
+ export declare namespace ProductPriceRecurringInput$ {
29
+ /** @deprecated use `ProductPriceRecurringInput$inboundSchema` instead. */
30
+ const inboundSchema: z.ZodType<ProductPriceRecurringInput, z.ZodTypeDef, unknown>;
31
+ /** @deprecated use `ProductPriceRecurringInput$outboundSchema` instead. */
32
+ const outboundSchema: z.ZodType<ProductPriceRecurringInput$Outbound, z.ZodTypeDef, ProductPriceRecurringInput>;
33
+ /** @deprecated use `ProductPriceRecurringInput$Outbound` instead. */
34
+ type Outbound = ProductPriceRecurringInput$Outbound;
35
+ }
36
+ //# sourceMappingURL=productpricerecurringinput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringinput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;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speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ProductPriceRecurringInput$ = exports.ProductPriceRecurringInput$outboundSchema = exports.ProductPriceRecurringInput$inboundSchema = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const productpricerecurringcustom_js_1 = require("./productpricerecurringcustom.js");
32
+ const productpricerecurringfixed_js_1 = require("./productpricerecurringfixed.js");
33
+ const productpricerecurringfree_js_1 = require("./productpricerecurringfree.js");
34
+ /** @internal */
35
+ exports.ProductPriceRecurringInput$inboundSchema = z.union([
36
+ productpricerecurringfree_js_1.ProductPriceRecurringFree$inboundSchema.and(z.object({ amount_type: z.literal("free") }).transform((v) => ({
37
+ amountType: v.amount_type,
38
+ }))),
39
+ productpricerecurringfixed_js_1.ProductPriceRecurringFixed$inboundSchema.and(z.object({ amount_type: z.literal("fixed") }).transform((v) => ({
40
+ amountType: v.amount_type,
41
+ }))),
42
+ productpricerecurringcustom_js_1.ProductPriceRecurringCustom$inboundSchema.and(z.object({ amount_type: z.literal("custom") }).transform((v) => ({
43
+ amountType: v.amount_type,
44
+ }))),
45
+ ]);
46
+ /** @internal */
47
+ exports.ProductPriceRecurringInput$outboundSchema = z.union([
48
+ productpricerecurringfree_js_1.ProductPriceRecurringFree$outboundSchema.and(z.object({ amountType: z.literal("free") }).transform((v) => ({
49
+ amount_type: v.amountType,
50
+ }))),
51
+ productpricerecurringfixed_js_1.ProductPriceRecurringFixed$outboundSchema.and(z.object({ amountType: z.literal("fixed") }).transform((v) => ({
52
+ amount_type: v.amountType,
53
+ }))),
54
+ productpricerecurringcustom_js_1.ProductPriceRecurringCustom$outboundSchema.and(z.object({ amountType: z.literal("custom") }).transform((v) => ({
55
+ amount_type: v.amountType,
56
+ }))),
57
+ ]);
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ var ProductPriceRecurringInput$;
63
+ (function (ProductPriceRecurringInput$) {
64
+ /** @deprecated use `ProductPriceRecurringInput$inboundSchema` instead. */
65
+ ProductPriceRecurringInput$.inboundSchema = exports.ProductPriceRecurringInput$inboundSchema;
66
+ /** @deprecated use `ProductPriceRecurringInput$outboundSchema` instead. */
67
+ ProductPriceRecurringInput$.outboundSchema = exports.ProductPriceRecurringInput$outboundSchema;
68
+ })(ProductPriceRecurringInput$ || (exports.ProductPriceRecurringInput$ = ProductPriceRecurringInput$ = {}));
69
+ //# sourceMappingURL=productpricerecurringinput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringinput.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qFAK0C;AAC1C,mFAKyC;AACzC,iFAKwC;AAOxC,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,KAAK,CAAC;IACV,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AAC,CAAC,UAAU;KAC1B,CAAC,CAAC,CACJ;IACD,2EAA0C,CAAC,GAAG,CAC5C,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9D,WAAW,EAAE,CAAC,CAAC,UAAU;KAC1B,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C"}
@@ -0,0 +1,36 @@
1
+ import * as z from "zod";
2
+ import { ProductPriceRecurringCustom, ProductPriceRecurringCustom$Outbound } from "./productpricerecurringcustom.js";
3
+ import { ProductPriceRecurringFixed, ProductPriceRecurringFixed$Outbound } from "./productpricerecurringfixed.js";
4
+ import { ProductPriceRecurringFree, ProductPriceRecurringFree$Outbound } from "./productpricerecurringfree.js";
5
+ export type ProductPriceRecurringOutput = (ProductPriceRecurringFree & {
6
+ amountType: "free";
7
+ }) | (ProductPriceRecurringFixed & {
8
+ amountType: "fixed";
9
+ }) | (ProductPriceRecurringCustom & {
10
+ amountType: "custom";
11
+ });
12
+ /** @internal */
13
+ export declare const ProductPriceRecurringOutput$inboundSchema: z.ZodType<ProductPriceRecurringOutput, z.ZodTypeDef, unknown>;
14
+ /** @internal */
15
+ export type ProductPriceRecurringOutput$Outbound = (ProductPriceRecurringFree$Outbound & {
16
+ amount_type: "free";
17
+ }) | (ProductPriceRecurringFixed$Outbound & {
18
+ amount_type: "fixed";
19
+ }) | (ProductPriceRecurringCustom$Outbound & {
20
+ amount_type: "custom";
21
+ });
22
+ /** @internal */
23
+ export declare const ProductPriceRecurringOutput$outboundSchema: z.ZodType<ProductPriceRecurringOutput$Outbound, z.ZodTypeDef, ProductPriceRecurringOutput>;
24
+ /**
25
+ * @internal
26
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
27
+ */
28
+ export declare namespace ProductPriceRecurringOutput$ {
29
+ /** @deprecated use `ProductPriceRecurringOutput$inboundSchema` instead. */
30
+ const inboundSchema: z.ZodType<ProductPriceRecurringOutput, z.ZodTypeDef, unknown>;
31
+ /** @deprecated use `ProductPriceRecurringOutput$outboundSchema` instead. */
32
+ const outboundSchema: z.ZodType<ProductPriceRecurringOutput$Outbound, z.ZodTypeDef, ProductPriceRecurringOutput>;
33
+ /** @deprecated use `ProductPriceRecurringOutput$Outbound` instead. */
34
+ type Outbound = ProductPriceRecurringOutput$Outbound;
35
+ }
36
+ //# sourceMappingURL=productpricerecurringoutput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,2BAA2B,GACnC,CAAC,yBAAyB,GAAG;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,GACpD,CAAC,0BAA0B,GAAG;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC,GACtD,CAAC,2BAA2B,GAAG;IAAE,UAAU,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAC5C,CAAC,kCAAkC,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,GAC9D,CAAC,mCAAmC,GAAG;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC,GAChE,CAAC,oCAAoC,GAAG;IAAE,WAAW,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEvE,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAiB3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ProductPriceRecurringOutput$ = exports.ProductPriceRecurringOutput$outboundSchema = exports.ProductPriceRecurringOutput$inboundSchema = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const productpricerecurringcustom_js_1 = require("./productpricerecurringcustom.js");
32
+ const productpricerecurringfixed_js_1 = require("./productpricerecurringfixed.js");
33
+ const productpricerecurringfree_js_1 = require("./productpricerecurringfree.js");
34
+ /** @internal */
35
+ exports.ProductPriceRecurringOutput$inboundSchema = z.union([
36
+ productpricerecurringfree_js_1.ProductPriceRecurringFree$inboundSchema.and(z.object({ amount_type: z.literal("free") }).transform((v) => ({
37
+ amountType: v.amount_type,
38
+ }))),
39
+ productpricerecurringfixed_js_1.ProductPriceRecurringFixed$inboundSchema.and(z.object({ amount_type: z.literal("fixed") }).transform((v) => ({
40
+ amountType: v.amount_type,
41
+ }))),
42
+ productpricerecurringcustom_js_1.ProductPriceRecurringCustom$inboundSchema.and(z.object({ amount_type: z.literal("custom") }).transform((v) => ({
43
+ amountType: v.amount_type,
44
+ }))),
45
+ ]);
46
+ /** @internal */
47
+ exports.ProductPriceRecurringOutput$outboundSchema = z.union([
48
+ productpricerecurringfree_js_1.ProductPriceRecurringFree$outboundSchema.and(z.object({ amountType: z.literal("free") }).transform((v) => ({
49
+ amount_type: v.amountType,
50
+ }))),
51
+ productpricerecurringfixed_js_1.ProductPriceRecurringFixed$outboundSchema.and(z.object({ amountType: z.literal("fixed") }).transform((v) => ({
52
+ amount_type: v.amountType,
53
+ }))),
54
+ productpricerecurringcustom_js_1.ProductPriceRecurringCustom$outboundSchema.and(z.object({ amountType: z.literal("custom") }).transform((v) => ({
55
+ amount_type: v.amountType,
56
+ }))),
57
+ ]);
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ var ProductPriceRecurringOutput$;
63
+ (function (ProductPriceRecurringOutput$) {
64
+ /** @deprecated use `ProductPriceRecurringOutput$inboundSchema` instead. */
65
+ ProductPriceRecurringOutput$.inboundSchema = exports.ProductPriceRecurringOutput$inboundSchema;
66
+ /** @deprecated use `ProductPriceRecurringOutput$outboundSchema` instead. */
67
+ ProductPriceRecurringOutput$.outboundSchema = exports.ProductPriceRecurringOutput$outboundSchema;
68
+ })(ProductPriceRecurringOutput$ || (exports.ProductPriceRecurringOutput$ = ProductPriceRecurringOutput$ = {}));
69
+ //# sourceMappingURL=productpricerecurringoutput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringoutput.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qFAK0C;AAC1C,mFAKyC;AACzC,iFAKwC;AAOxC,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,KAAK,CAAC;IACV,sEAAuC,CAAC,GAAG,CACzC,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC7D,UAAU,EAAE,CAAC,CAAC,WAAW;KAC1B,CAAC,CAAC,CACJ;IACD,wEAAwC,CAAC,GAAG,CAC1C,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9D,UAAU,EAAE,CAAC,CAAC,WAAW;KAC1B,CAAC,CAAC,CACJ;IACD,0EAAyC,CAAC,GAAG,CAC3C,CAAC,C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C"}
@@ -1,17 +1,10 @@
1
1
  import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- import { ProductPriceRecurringCreate, ProductPriceRecurringCreate$Outbound } from "./productpricerecurringcreate.js";
2
+ import { ProductPriceRecurringFixedCreate, ProductPriceRecurringFixedCreate$Outbound } from "./productpricerecurringfixedcreate.js";
3
+ import { ProductPriceRecurringFreeCreate, ProductPriceRecurringFreeCreate$Outbound } from "./productpricerecurringfreecreate.js";
4
4
  /**
5
- * @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible.
5
+ * List of available prices for this product.
6
6
  */
7
- export declare const ProductRecurringCreateType: {
8
- readonly Individual: "individual";
9
- readonly Business: "business";
10
- };
11
- /**
12
- * @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible.
13
- */
14
- export type ProductRecurringCreateType = ClosedEnum<typeof ProductRecurringCreateType>;
7
+ export type ProductRecurringCreatePrices = Array<ProductPriceRecurringFixedCreate> | Array<ProductPriceRecurringFreeCreate>;
15
8
  /**
16
9
  * Schema to create a recurring product, i.e. a subscription.
17
10
  */
@@ -27,7 +20,7 @@ export type ProductRecurringCreate = {
27
20
  /**
28
21
  * List of available prices for this product.
29
22
  */
30
- prices: Array<ProductPriceRecurringCreate>;
23
+ prices: Array<ProductPriceRecurringFixedCreate> | Array<ProductPriceRecurringFreeCreate>;
31
24
  /**
32
25
  * List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
33
26
  */
@@ -36,34 +29,24 @@ export type ProductRecurringCreate = {
36
29
  * The ID of the organization owning the product. **Required unless you use an organization token.**
37
30
  */
38
31
  organizationId?: string | null | undefined;
39
- /**
40
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
41
- */
42
- type: ProductRecurringCreateType;
43
- /**
44
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
45
- */
46
- isHighlighted?: boolean | undefined;
47
32
  };
48
33
  /** @internal */
49
- export declare const ProductRecurringCreateType$inboundSchema: z.ZodNativeEnum<typeof ProductRecurringCreateType>;
34
+ export declare const ProductRecurringCreatePrices$inboundSchema: z.ZodType<ProductRecurringCreatePrices, z.ZodTypeDef, unknown>;
35
+ /** @internal */
36
+ export type ProductRecurringCreatePrices$Outbound = Array<ProductPriceRecurringFixedCreate$Outbound> | Array<ProductPriceRecurringFreeCreate$Outbound>;
50
37
  /** @internal */
51
- export declare const ProductRecurringCreateType$outboundSchema: z.ZodNativeEnum<typeof ProductRecurringCreateType>;
38
+ export declare const ProductRecurringCreatePrices$outboundSchema: z.ZodType<ProductRecurringCreatePrices$Outbound, z.ZodTypeDef, ProductRecurringCreatePrices>;
52
39
  /**
53
40
  * @internal
54
41
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
42
  */
56
- export declare namespace ProductRecurringCreateType$ {
57
- /** @deprecated use `ProductRecurringCreateType$inboundSchema` instead. */
58
- const inboundSchema: z.ZodNativeEnum<{
59
- readonly Individual: "individual";
60
- readonly Business: "business";
61
- }>;
62
- /** @deprecated use `ProductRecurringCreateType$outboundSchema` instead. */
63
- const outboundSchema: z.ZodNativeEnum<{
64
- readonly Individual: "individual";
65
- readonly Business: "business";
66
- }>;
43
+ export declare namespace ProductRecurringCreatePrices$ {
44
+ /** @deprecated use `ProductRecurringCreatePrices$inboundSchema` instead. */
45
+ const inboundSchema: z.ZodType<ProductRecurringCreatePrices, z.ZodTypeDef, unknown>;
46
+ /** @deprecated use `ProductRecurringCreatePrices$outboundSchema` instead. */
47
+ const outboundSchema: z.ZodType<ProductRecurringCreatePrices$Outbound, z.ZodTypeDef, ProductRecurringCreatePrices>;
48
+ /** @deprecated use `ProductRecurringCreatePrices$Outbound` instead. */
49
+ type Outbound = ProductRecurringCreatePrices$Outbound;
67
50
  }
68
51
  /** @internal */
69
52
  export declare const ProductRecurringCreate$inboundSchema: z.ZodType<ProductRecurringCreate, z.ZodTypeDef, unknown>;
@@ -71,11 +54,9 @@ export declare const ProductRecurringCreate$inboundSchema: z.ZodType<ProductRecu
71
54
  export type ProductRecurringCreate$Outbound = {
72
55
  name: string;
73
56
  description?: string | null | undefined;
74
- prices: Array<ProductPriceRecurringCreate$Outbound>;
57
+ prices: Array<ProductPriceRecurringFixedCreate$Outbound> | Array<ProductPriceRecurringFreeCreate$Outbound>;
75
58
  medias?: Array<string> | null | undefined;
76
59
  organization_id?: string | null | undefined;
77
- type: string;
78
- is_highlighted: boolean;
79
60
  };
80
61
  /** @internal */
81
62
  export declare const ProductRecurringCreate$outboundSchema: z.ZodType<ProductRecurringCreate$Outbound, z.ZodTypeDef, ProductRecurringCreate>;
@@ -1 +1 @@
1
- {"version":3,"file":"productrecurringcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productrecurringcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;CAG7B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,0BAA0B,CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,IAAI,EAAE,0BAA0B,CAAC;IACjC;;OAEG;IACH,aAAa,CA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AC;CACxD"}
1
+ {"version":3,"file":"productrecurringcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productrecurringcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,gCAAgC,EAEhC,yCAAyC,EAE1C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACpC,KAAK,CAAC,gCAAgC,CAAC,GACvC,KAAK,CAAC,+BAA+B,CAAC,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,MAAM,EACF,KAAK,CAAC,gCAAgC,CAAC,GACvC,KAAK,CAAC,+BAA+B,CAAC,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAC7C,KAAK,CAAC,yCAAyC,CAAC,GAChD,KAAK,CAAC,wCAAwC,CAAC,CAAC;AAEpD,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAI5B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,6BAA6B,CAAC;IAC7C,4EAA4E;IACrE,MAAM,aAAa,gEAA6C,CAAC;IACxE,6EAA6E;IACtE,MAAM,cAAc,8FAA8C,CAAC;IAC1E,uEAAuE;IACvE,KAAY,QAAQ,GAAG,qCAAqC,CAAC;CAC9D;AAED,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,MAAM,EACF,KAAK,CAAC,yCAAyC,CAAC,GAChD,KAAK,CAAC,wCAAwC,CAAC,CAAC;IACpD,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CActB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,uBAAuB,CAAC;IACvC,sEAAsE;IAC/D,MAAM,aAAa,0DAAuC,CAAC;IAClE,uEAAuE;IAChE,MAAM,cAAc,kFAAwC,CAAC;IACpE,iEAAiE;IACjE,KAAY,QAAQ,GAAG,+BAA+B,CAAC;CACxD"}
@@ -26,60 +26,60 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ProductRecurringCreate$ = exports.ProductRecurringCreate$outboundSchema = exports.ProductRecurringCreate$inboundSchema = exports.ProductRecurringCreateType$ = exports.ProductRecurringCreateType$outboundSchema = exports.ProductRecurringCreateType$inboundSchema = exports.ProductRecurringCreateType = void 0;
29
+ exports.ProductRecurringCreate$ = exports.ProductRecurringCreate$outboundSchema = exports.ProductRecurringCreate$inboundSchema = exports.ProductRecurringCreatePrices$ = exports.ProductRecurringCreatePrices$outboundSchema = exports.ProductRecurringCreatePrices$inboundSchema = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const primitives_js_1 = require("../../lib/primitives.js");
32
- const productpricerecurringcreate_js_1 = require("./productpricerecurringcreate.js");
33
- /**
34
- * @deprecated enum: This will be removed in a future release, please migrate away from it as soon as possible.
35
- */
36
- exports.ProductRecurringCreateType = {
37
- Individual: "individual",
38
- Business: "business",
39
- };
32
+ const productpricerecurringfixedcreate_js_1 = require("./productpricerecurringfixedcreate.js");
33
+ const productpricerecurringfreecreate_js_1 = require("./productpricerecurringfreecreate.js");
40
34
  /** @internal */
41
- exports.ProductRecurringCreateType$inboundSchema = z.nativeEnum(exports.ProductRecurringCreateType);
35
+ exports.ProductRecurringCreatePrices$inboundSchema = z.union([
36
+ z.array(productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$inboundSchema),
37
+ z.array(productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$inboundSchema),
38
+ ]);
42
39
  /** @internal */
43
- exports.ProductRecurringCreateType$outboundSchema = exports.ProductRecurringCreateType$inboundSchema;
40
+ exports.ProductRecurringCreatePrices$outboundSchema = z.union([
41
+ z.array(productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$outboundSchema),
42
+ z.array(productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$outboundSchema),
43
+ ]);
44
44
  /**
45
45
  * @internal
46
46
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
47
  */
48
- var ProductRecurringCreateType$;
49
- (function (ProductRecurringCreateType$) {
50
- /** @deprecated use `ProductRecurringCreateType$inboundSchema` instead. */
51
- ProductRecurringCreateType$.inboundSchema = exports.ProductRecurringCreateType$inboundSchema;
52
- /** @deprecated use `ProductRecurringCreateType$outboundSchema` instead. */
53
- ProductRecurringCreateType$.outboundSchema = exports.ProductRecurringCreateType$outboundSchema;
54
- })(ProductRecurringCreateType$ || (exports.ProductRecurringCreateType$ = ProductRecurringCreateType$ = {}));
48
+ var ProductRecurringCreatePrices$;
49
+ (function (ProductRecurringCreatePrices$) {
50
+ /** @deprecated use `ProductRecurringCreatePrices$inboundSchema` instead. */
51
+ ProductRecurringCreatePrices$.inboundSchema = exports.ProductRecurringCreatePrices$inboundSchema;
52
+ /** @deprecated use `ProductRecurringCreatePrices$outboundSchema` instead. */
53
+ ProductRecurringCreatePrices$.outboundSchema = exports.ProductRecurringCreatePrices$outboundSchema;
54
+ })(ProductRecurringCreatePrices$ || (exports.ProductRecurringCreatePrices$ = ProductRecurringCreatePrices$ = {}));
55
55
  /** @internal */
56
56
  exports.ProductRecurringCreate$inboundSchema = z.object({
57
57
  name: z.string(),
58
58
  description: z.nullable(z.string()).optional(),
59
- prices: z.array(productpricerecurringcreate_js_1.ProductPriceRecurringCreate$inboundSchema),
59
+ prices: z.union([
60
+ z.array(productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$inboundSchema),
61
+ z.array(productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$inboundSchema),
62
+ ]),
60
63
  medias: z.nullable(z.array(z.string())).optional(),
61
64
  organization_id: z.nullable(z.string()).optional(),
62
- type: exports.ProductRecurringCreateType$inboundSchema,
63
- is_highlighted: z.boolean().default(false),
64
65
  }).transform((v) => {
65
66
  return (0, primitives_js_1.remap)(v, {
66
67
  "organization_id": "organizationId",
67
- "is_highlighted": "isHighlighted",
68
68
  });
69
69
  });
70
70
  /** @internal */
71
71
  exports.ProductRecurringCreate$outboundSchema = z.object({
72
72
  name: z.string(),
73
73
  description: z.nullable(z.string()).optional(),
74
- prices: z.array(productpricerecurringcreate_js_1.ProductPriceRecurringCreate$outboundSchema),
74
+ prices: z.union([
75
+ z.array(productpricerecurringfixedcreate_js_1.ProductPriceRecurringFixedCreate$outboundSchema),
76
+ z.array(productpricerecurringfreecreate_js_1.ProductPriceRecurringFreeCreate$outboundSchema),
77
+ ]),
75
78
  medias: z.nullable(z.array(z.string())).optional(),
76
79
  organizationId: z.nullable(z.string()).optional(),
77
- type: exports.ProductRecurringCreateType$outboundSchema,
78
- isHighlighted: z.boolean().default(false),
79
80
  }).transform((v) => {
80
81
  return (0, primitives_js_1.remap)(v, {
81
82
  organizationId: "organization_id",
82
- isHighlighted: "is_highlighted",
83
83
  });
84
84
  });
85
85
  /**