@usehercules/sdk 1.10.1 → 1.12.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 (423) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +19 -18
  3. package/client.d.mts +12 -3
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +12 -3
  6. package/client.d.ts.map +1 -1
  7. package/client.js +12 -3
  8. package/client.js.map +1 -1
  9. package/client.mjs +12 -3
  10. package/client.mjs.map +1 -1
  11. package/package.json +2 -2
  12. package/resources/{beta/commerce → commerce}/commerce.d.mts +66 -29
  13. package/resources/commerce/commerce.d.mts.map +1 -0
  14. package/resources/{beta/commerce → commerce}/commerce.d.ts +66 -29
  15. package/resources/commerce/commerce.d.ts.map +1 -0
  16. package/resources/{beta/commerce → commerce}/commerce.js +40 -4
  17. package/resources/commerce/commerce.js.map +1 -0
  18. package/resources/{beta/commerce → commerce}/commerce.mjs +39 -3
  19. package/resources/commerce/commerce.mjs.map +1 -0
  20. package/resources/commerce/coupons.d.mts +181 -0
  21. package/resources/commerce/coupons.d.mts.map +1 -0
  22. package/resources/commerce/coupons.d.ts +181 -0
  23. package/resources/commerce/coupons.d.ts.map +1 -0
  24. package/resources/{beta/commerce → commerce}/coupons.js +33 -18
  25. package/resources/commerce/coupons.js.map +1 -0
  26. package/resources/{beta/commerce → commerce}/coupons.mjs +33 -18
  27. package/resources/commerce/coupons.mjs.map +1 -0
  28. package/resources/commerce/customers/balance-transactions.d.mts +4 -0
  29. package/resources/commerce/customers/balance-transactions.d.mts.map +1 -0
  30. package/resources/commerce/customers/balance-transactions.d.ts +4 -0
  31. package/resources/commerce/customers/balance-transactions.d.ts.map +1 -0
  32. package/resources/commerce/customers/balance-transactions.js +9 -0
  33. package/resources/commerce/customers/balance-transactions.js.map +1 -0
  34. package/resources/commerce/customers/balance-transactions.mjs +5 -0
  35. package/resources/commerce/customers/balance-transactions.mjs.map +1 -0
  36. package/resources/{beta/commerce → commerce/customers}/customers.d.mts +75 -251
  37. package/resources/commerce/customers/customers.d.mts.map +1 -0
  38. package/resources/{beta/commerce → commerce/customers}/customers.d.ts +75 -251
  39. package/resources/commerce/customers/customers.d.ts.map +1 -0
  40. package/resources/{beta/commerce → commerce/customers}/customers.js +44 -15
  41. package/resources/commerce/customers/customers.js.map +1 -0
  42. package/resources/{beta/commerce → commerce/customers}/customers.mjs +43 -15
  43. package/resources/commerce/customers/customers.mjs.map +1 -0
  44. package/resources/commerce/customers/index.d.mts +3 -0
  45. package/resources/commerce/customers/index.d.mts.map +1 -0
  46. package/resources/commerce/customers/index.d.ts +3 -0
  47. package/resources/commerce/customers/index.d.ts.map +1 -0
  48. package/resources/commerce/customers/index.js +9 -0
  49. package/resources/commerce/customers/index.js.map +1 -0
  50. package/resources/commerce/customers/index.mjs +4 -0
  51. package/resources/commerce/customers/index.mjs.map +1 -0
  52. package/resources/commerce/customers.d.mts +2 -0
  53. package/resources/commerce/customers.d.mts.map +1 -0
  54. package/resources/commerce/customers.d.ts +2 -0
  55. package/resources/commerce/customers.d.ts.map +1 -0
  56. package/resources/{beta.js → commerce/customers.js} +3 -3
  57. package/resources/commerce/customers.js.map +1 -0
  58. package/resources/{beta.mjs → commerce/customers.mjs} +2 -2
  59. package/resources/commerce/customers.mjs.map +1 -0
  60. package/resources/commerce/features.d.mts +152 -0
  61. package/resources/commerce/features.d.mts.map +1 -0
  62. package/resources/commerce/features.d.ts +152 -0
  63. package/resources/commerce/features.d.ts.map +1 -0
  64. package/resources/commerce/features.js +68 -0
  65. package/resources/commerce/features.js.map +1 -0
  66. package/resources/commerce/features.mjs +64 -0
  67. package/resources/commerce/features.mjs.map +1 -0
  68. package/resources/commerce/index.d.mts +7 -0
  69. package/resources/commerce/index.d.mts.map +1 -0
  70. package/resources/commerce/index.d.ts +7 -0
  71. package/resources/commerce/index.d.ts.map +1 -0
  72. package/resources/commerce/index.js +17 -0
  73. package/resources/commerce/index.js.map +1 -0
  74. package/resources/{beta/commerce → commerce}/index.mjs +3 -1
  75. package/resources/commerce/index.mjs.map +1 -0
  76. package/resources/commerce/products/index.d.mts +4 -0
  77. package/resources/commerce/products/index.d.mts.map +1 -0
  78. package/resources/commerce/products/index.d.ts +4 -0
  79. package/resources/commerce/products/index.d.ts.map +1 -0
  80. package/resources/commerce/products/index.js.map +1 -0
  81. package/resources/commerce/products/index.mjs.map +1 -0
  82. package/resources/commerce/products/products.d.mts +393 -0
  83. package/resources/commerce/products/products.d.mts.map +1 -0
  84. package/resources/commerce/products/products.d.ts +393 -0
  85. package/resources/commerce/products/products.d.ts.map +1 -0
  86. package/resources/{beta/commerce → commerce}/products/products.js +35 -15
  87. package/resources/commerce/products/products.js.map +1 -0
  88. package/resources/{beta/commerce → commerce}/products/products.mjs +34 -14
  89. package/resources/commerce/products/products.mjs.map +1 -0
  90. package/resources/commerce/products/resources.d.mts +174 -0
  91. package/resources/commerce/products/resources.d.mts.map +1 -0
  92. package/resources/commerce/products/resources.d.ts +174 -0
  93. package/resources/commerce/products/resources.d.ts.map +1 -0
  94. package/resources/commerce/products/resources.js +65 -0
  95. package/resources/commerce/products/resources.js.map +1 -0
  96. package/resources/commerce/products/resources.mjs +61 -0
  97. package/resources/commerce/products/resources.mjs.map +1 -0
  98. package/resources/commerce/products/variants.d.mts +294 -0
  99. package/resources/commerce/products/variants.d.mts.map +1 -0
  100. package/resources/commerce/products/variants.d.ts +294 -0
  101. package/resources/commerce/products/variants.d.ts.map +1 -0
  102. package/resources/{beta/commerce → commerce}/products/variants.js +43 -12
  103. package/resources/commerce/products/variants.js.map +1 -0
  104. package/resources/{beta/commerce → commerce}/products/variants.mjs +43 -12
  105. package/resources/commerce/products/variants.mjs.map +1 -0
  106. package/resources/commerce/products.d.mts.map +1 -0
  107. package/resources/commerce/products.d.ts.map +1 -0
  108. package/resources/{beta/commerce → commerce}/products.js +1 -1
  109. package/resources/commerce/products.js.map +1 -0
  110. package/resources/commerce/products.mjs.map +1 -0
  111. package/resources/commerce/subscription-groups.d.mts +4 -0
  112. package/resources/commerce/subscription-groups.d.mts.map +1 -0
  113. package/resources/commerce/subscription-groups.d.ts +4 -0
  114. package/resources/commerce/subscription-groups.d.ts.map +1 -0
  115. package/resources/commerce/subscription-groups.js +9 -0
  116. package/resources/commerce/subscription-groups.js.map +1 -0
  117. package/resources/commerce/subscription-groups.mjs +5 -0
  118. package/resources/commerce/subscription-groups.mjs.map +1 -0
  119. package/resources/commerce.d.mts.map +1 -0
  120. package/resources/{beta/commerce.d.ts.map → commerce.d.ts.map} +1 -1
  121. package/resources/{beta/commerce.js → commerce.js} +1 -1
  122. package/resources/commerce.js.map +1 -0
  123. package/resources/commerce.mjs.map +1 -0
  124. package/resources/{beta/content → content}/assets.d.mts +5 -5
  125. package/resources/content/assets.d.mts.map +1 -0
  126. package/resources/{beta/content → content}/assets.d.ts +5 -5
  127. package/resources/content/assets.d.ts.map +1 -0
  128. package/resources/{beta/content → content}/assets.js +4 -4
  129. package/resources/content/assets.js.map +1 -0
  130. package/resources/{beta/content → content}/assets.mjs +4 -4
  131. package/resources/content/assets.mjs.map +1 -0
  132. package/resources/{beta/content → content}/content.d.mts +4 -1
  133. package/resources/content/content.d.mts.map +1 -0
  134. package/resources/{beta/content → content}/content.d.ts +4 -1
  135. package/resources/content/content.d.ts.map +1 -0
  136. package/resources/{beta/content → content}/content.js +5 -2
  137. package/resources/content/content.js.map +1 -0
  138. package/resources/{beta/content → content}/content.mjs +4 -1
  139. package/resources/content/content.mjs.map +1 -0
  140. package/resources/{beta/content → content}/entries.d.mts +5 -5
  141. package/resources/content/entries.d.mts.map +1 -0
  142. package/resources/{beta/content → content}/entries.d.ts +5 -5
  143. package/resources/content/entries.d.ts.map +1 -0
  144. package/resources/{beta/content → content}/entries.js +3 -3
  145. package/resources/content/entries.js.map +1 -0
  146. package/resources/{beta/content → content}/entries.mjs +3 -3
  147. package/resources/content/entries.mjs.map +1 -0
  148. package/resources/content/index.d.mts.map +1 -0
  149. package/resources/content/index.d.ts.map +1 -0
  150. package/resources/content/index.js.map +1 -0
  151. package/resources/content/index.mjs.map +1 -0
  152. package/resources/{beta/content → content}/locales.d.mts +6 -6
  153. package/resources/content/locales.d.mts.map +1 -0
  154. package/resources/{beta/content → content}/locales.d.ts +6 -6
  155. package/resources/content/locales.d.ts.map +1 -0
  156. package/resources/{beta/content → content}/locales.js +4 -4
  157. package/resources/content/locales.js.map +1 -0
  158. package/resources/{beta/content → content}/locales.mjs +4 -4
  159. package/resources/content/locales.mjs.map +1 -0
  160. package/resources/{beta/content → content}/models/fields.d.mts +6 -6
  161. package/resources/content/models/fields.d.mts.map +1 -0
  162. package/resources/{beta/content → content}/models/fields.d.ts +6 -6
  163. package/resources/content/models/fields.d.ts.map +1 -0
  164. package/resources/{beta/content → content}/models/fields.js +3 -3
  165. package/resources/content/models/fields.js.map +1 -0
  166. package/resources/{beta/content → content}/models/fields.mjs +3 -3
  167. package/resources/content/models/fields.mjs.map +1 -0
  168. package/resources/content/models/index.d.mts.map +1 -0
  169. package/resources/content/models/index.d.ts.map +1 -0
  170. package/resources/content/models/index.js.map +1 -0
  171. package/resources/content/models/index.mjs.map +1 -0
  172. package/resources/{beta/content → content}/models/models.d.mts +10 -10
  173. package/resources/content/models/models.d.mts.map +1 -0
  174. package/resources/{beta/content → content}/models/models.d.ts +10 -10
  175. package/resources/content/models/models.d.ts.map +1 -0
  176. package/resources/{beta/content → content}/models/models.js +4 -4
  177. package/resources/content/models/models.js.map +1 -0
  178. package/resources/{beta/content → content}/models/models.mjs +3 -3
  179. package/resources/content/models/models.mjs.map +1 -0
  180. package/resources/content/models.d.mts.map +1 -0
  181. package/resources/content/models.d.ts.map +1 -0
  182. package/resources/{beta/content → content}/models.js +1 -1
  183. package/resources/content/models.js.map +1 -0
  184. package/resources/content/models.mjs.map +1 -0
  185. package/resources/content/releases/index.d.mts.map +1 -0
  186. package/resources/content/releases/index.d.ts.map +1 -0
  187. package/resources/content/releases/index.js.map +1 -0
  188. package/resources/content/releases/index.mjs.map +1 -0
  189. package/resources/{beta/content → content}/releases/items.d.mts +3 -3
  190. package/resources/content/releases/items.d.mts.map +1 -0
  191. package/resources/{beta/content → content}/releases/items.d.ts +3 -3
  192. package/resources/content/releases/items.d.ts.map +1 -0
  193. package/resources/{beta/content → content}/releases/items.js +3 -3
  194. package/resources/content/releases/items.js.map +1 -0
  195. package/resources/{beta/content → content}/releases/items.mjs +3 -3
  196. package/resources/content/releases/items.mjs.map +1 -0
  197. package/resources/{beta/content → content}/releases/releases.d.mts +6 -6
  198. package/resources/content/releases/releases.d.mts.map +1 -0
  199. package/resources/{beta/content → content}/releases/releases.d.ts +6 -6
  200. package/resources/content/releases/releases.d.ts.map +1 -0
  201. package/resources/{beta/content → content}/releases/releases.js +5 -5
  202. package/resources/content/releases/releases.js.map +1 -0
  203. package/resources/{beta/content → content}/releases/releases.mjs +4 -4
  204. package/resources/content/releases/releases.mjs.map +1 -0
  205. package/resources/content/releases.d.mts.map +1 -0
  206. package/resources/content/releases.d.ts.map +1 -0
  207. package/resources/{beta/content → content}/releases.js +1 -1
  208. package/resources/content/releases.js.map +1 -0
  209. package/resources/content/releases.mjs.map +1 -0
  210. package/resources/{beta/content.d.mts.map → content.d.mts.map} +1 -1
  211. package/resources/{beta/content.d.ts.map → content.d.ts.map} +1 -1
  212. package/resources/{beta/content.js → content.js} +1 -1
  213. package/resources/content.js.map +1 -0
  214. package/resources/content.mjs.map +1 -0
  215. package/resources/index.d.mts +2 -1
  216. package/resources/index.d.mts.map +1 -1
  217. package/resources/index.d.ts +2 -1
  218. package/resources/index.d.ts.map +1 -1
  219. package/resources/index.js +5 -3
  220. package/resources/index.js.map +1 -1
  221. package/resources/index.mjs +2 -1
  222. package/resources/index.mjs.map +1 -1
  223. package/src/client.ts +31 -4
  224. package/src/resources/{beta/commerce → commerce}/commerce.ts +96 -56
  225. package/src/resources/commerce/coupons.ts +236 -0
  226. package/src/resources/commerce/customers/balance-transactions.ts +5 -0
  227. package/src/resources/{beta/commerce → commerce/customers}/customers.ts +84 -310
  228. package/src/resources/commerce/customers/index.ts +15 -0
  229. package/src/resources/{beta.ts → commerce/customers.ts} +1 -1
  230. package/src/resources/commerce/features.ts +193 -0
  231. package/src/resources/{beta/commerce → commerce}/index.ts +17 -16
  232. package/src/resources/{beta/commerce → commerce}/products/index.ts +5 -14
  233. package/src/resources/commerce/products/products.ts +510 -0
  234. package/src/resources/commerce/products/resources.ts +226 -0
  235. package/src/resources/commerce/products/variants.ts +366 -0
  236. package/src/resources/commerce/subscription-groups.ts +5 -0
  237. package/src/resources/{beta/content → content}/assets.ts +7 -7
  238. package/src/resources/{beta/content → content}/content.ts +4 -1
  239. package/src/resources/{beta/content → content}/entries.ts +6 -6
  240. package/src/resources/{beta/content → content}/locales.ts +8 -8
  241. package/src/resources/{beta/content → content}/models/fields.ts +8 -8
  242. package/src/resources/{beta/content → content}/models/models.ts +11 -11
  243. package/src/resources/{beta/content → content}/releases/items.ts +5 -5
  244. package/src/resources/{beta/content → content}/releases/releases.ts +8 -8
  245. package/src/resources/index.ts +10 -1
  246. package/src/version.ts +1 -1
  247. package/version.d.mts +1 -1
  248. package/version.d.ts +1 -1
  249. package/version.js +1 -1
  250. package/version.mjs +1 -1
  251. package/resources/beta/beta.d.mts +0 -14
  252. package/resources/beta/beta.d.mts.map +0 -1
  253. package/resources/beta/beta.d.ts +0 -14
  254. package/resources/beta/beta.d.ts.map +0 -1
  255. package/resources/beta/beta.js +0 -21
  256. package/resources/beta/beta.js.map +0 -1
  257. package/resources/beta/beta.mjs +0 -16
  258. package/resources/beta/beta.mjs.map +0 -1
  259. package/resources/beta/commerce/commerce.d.mts.map +0 -1
  260. package/resources/beta/commerce/commerce.d.ts.map +0 -1
  261. package/resources/beta/commerce/commerce.js.map +0 -1
  262. package/resources/beta/commerce/commerce.mjs.map +0 -1
  263. package/resources/beta/commerce/coupons.d.mts +0 -334
  264. package/resources/beta/commerce/coupons.d.mts.map +0 -1
  265. package/resources/beta/commerce/coupons.d.ts +0 -334
  266. package/resources/beta/commerce/coupons.d.ts.map +0 -1
  267. package/resources/beta/commerce/coupons.js.map +0 -1
  268. package/resources/beta/commerce/coupons.mjs.map +0 -1
  269. package/resources/beta/commerce/customers.d.mts.map +0 -1
  270. package/resources/beta/commerce/customers.d.ts.map +0 -1
  271. package/resources/beta/commerce/customers.js.map +0 -1
  272. package/resources/beta/commerce/customers.mjs.map +0 -1
  273. package/resources/beta/commerce/index.d.mts +0 -5
  274. package/resources/beta/commerce/index.d.mts.map +0 -1
  275. package/resources/beta/commerce/index.d.ts +0 -5
  276. package/resources/beta/commerce/index.d.ts.map +0 -1
  277. package/resources/beta/commerce/index.js +0 -13
  278. package/resources/beta/commerce/index.js.map +0 -1
  279. package/resources/beta/commerce/index.mjs.map +0 -1
  280. package/resources/beta/commerce/products/index.d.mts +0 -4
  281. package/resources/beta/commerce/products/index.d.mts.map +0 -1
  282. package/resources/beta/commerce/products/index.d.ts +0 -4
  283. package/resources/beta/commerce/products/index.d.ts.map +0 -1
  284. package/resources/beta/commerce/products/index.js.map +0 -1
  285. package/resources/beta/commerce/products/index.mjs.map +0 -1
  286. package/resources/beta/commerce/products/products.d.mts +0 -1059
  287. package/resources/beta/commerce/products/products.d.mts.map +0 -1
  288. package/resources/beta/commerce/products/products.d.ts +0 -1059
  289. package/resources/beta/commerce/products/products.d.ts.map +0 -1
  290. package/resources/beta/commerce/products/products.js.map +0 -1
  291. package/resources/beta/commerce/products/products.mjs.map +0 -1
  292. package/resources/beta/commerce/products/resources.d.mts +0 -161
  293. package/resources/beta/commerce/products/resources.d.mts.map +0 -1
  294. package/resources/beta/commerce/products/resources.d.ts +0 -161
  295. package/resources/beta/commerce/products/resources.d.ts.map +0 -1
  296. package/resources/beta/commerce/products/resources.js +0 -41
  297. package/resources/beta/commerce/products/resources.js.map +0 -1
  298. package/resources/beta/commerce/products/resources.mjs +0 -37
  299. package/resources/beta/commerce/products/resources.mjs.map +0 -1
  300. package/resources/beta/commerce/products/variants.d.mts +0 -832
  301. package/resources/beta/commerce/products/variants.d.mts.map +0 -1
  302. package/resources/beta/commerce/products/variants.d.ts +0 -832
  303. package/resources/beta/commerce/products/variants.d.ts.map +0 -1
  304. package/resources/beta/commerce/products/variants.js.map +0 -1
  305. package/resources/beta/commerce/products/variants.mjs.map +0 -1
  306. package/resources/beta/commerce/products.d.mts.map +0 -1
  307. package/resources/beta/commerce/products.d.ts.map +0 -1
  308. package/resources/beta/commerce/products.js.map +0 -1
  309. package/resources/beta/commerce/products.mjs.map +0 -1
  310. package/resources/beta/commerce.d.mts.map +0 -1
  311. package/resources/beta/commerce.js.map +0 -1
  312. package/resources/beta/commerce.mjs.map +0 -1
  313. package/resources/beta/content/assets.d.mts.map +0 -1
  314. package/resources/beta/content/assets.d.ts.map +0 -1
  315. package/resources/beta/content/assets.js.map +0 -1
  316. package/resources/beta/content/assets.mjs.map +0 -1
  317. package/resources/beta/content/content.d.mts.map +0 -1
  318. package/resources/beta/content/content.d.ts.map +0 -1
  319. package/resources/beta/content/content.js.map +0 -1
  320. package/resources/beta/content/content.mjs.map +0 -1
  321. package/resources/beta/content/entries.d.mts.map +0 -1
  322. package/resources/beta/content/entries.d.ts.map +0 -1
  323. package/resources/beta/content/entries.js.map +0 -1
  324. package/resources/beta/content/entries.mjs.map +0 -1
  325. package/resources/beta/content/index.d.mts.map +0 -1
  326. package/resources/beta/content/index.d.ts.map +0 -1
  327. package/resources/beta/content/index.js.map +0 -1
  328. package/resources/beta/content/index.mjs.map +0 -1
  329. package/resources/beta/content/locales.d.mts.map +0 -1
  330. package/resources/beta/content/locales.d.ts.map +0 -1
  331. package/resources/beta/content/locales.js.map +0 -1
  332. package/resources/beta/content/locales.mjs.map +0 -1
  333. package/resources/beta/content/models/fields.d.mts.map +0 -1
  334. package/resources/beta/content/models/fields.d.ts.map +0 -1
  335. package/resources/beta/content/models/fields.js.map +0 -1
  336. package/resources/beta/content/models/fields.mjs.map +0 -1
  337. package/resources/beta/content/models/index.d.mts.map +0 -1
  338. package/resources/beta/content/models/index.d.ts.map +0 -1
  339. package/resources/beta/content/models/index.js.map +0 -1
  340. package/resources/beta/content/models/index.mjs.map +0 -1
  341. package/resources/beta/content/models/models.d.mts.map +0 -1
  342. package/resources/beta/content/models/models.d.ts.map +0 -1
  343. package/resources/beta/content/models/models.js.map +0 -1
  344. package/resources/beta/content/models/models.mjs.map +0 -1
  345. package/resources/beta/content/models.d.mts.map +0 -1
  346. package/resources/beta/content/models.d.ts.map +0 -1
  347. package/resources/beta/content/models.js.map +0 -1
  348. package/resources/beta/content/models.mjs.map +0 -1
  349. package/resources/beta/content/releases/index.d.mts.map +0 -1
  350. package/resources/beta/content/releases/index.d.ts.map +0 -1
  351. package/resources/beta/content/releases/index.js.map +0 -1
  352. package/resources/beta/content/releases/index.mjs.map +0 -1
  353. package/resources/beta/content/releases/items.d.mts.map +0 -1
  354. package/resources/beta/content/releases/items.d.ts.map +0 -1
  355. package/resources/beta/content/releases/items.js.map +0 -1
  356. package/resources/beta/content/releases/items.mjs.map +0 -1
  357. package/resources/beta/content/releases/releases.d.mts.map +0 -1
  358. package/resources/beta/content/releases/releases.d.ts.map +0 -1
  359. package/resources/beta/content/releases/releases.js.map +0 -1
  360. package/resources/beta/content/releases/releases.mjs.map +0 -1
  361. package/resources/beta/content/releases.d.mts.map +0 -1
  362. package/resources/beta/content/releases.d.ts.map +0 -1
  363. package/resources/beta/content/releases.js.map +0 -1
  364. package/resources/beta/content/releases.mjs.map +0 -1
  365. package/resources/beta/content.js.map +0 -1
  366. package/resources/beta/content.mjs.map +0 -1
  367. package/resources/beta/index.d.mts +0 -4
  368. package/resources/beta/index.d.mts.map +0 -1
  369. package/resources/beta/index.d.ts +0 -4
  370. package/resources/beta/index.d.ts.map +0 -1
  371. package/resources/beta/index.js +0 -11
  372. package/resources/beta/index.js.map +0 -1
  373. package/resources/beta/index.mjs +0 -5
  374. package/resources/beta/index.mjs.map +0 -1
  375. package/resources/beta.d.mts +0 -2
  376. package/resources/beta.d.mts.map +0 -1
  377. package/resources/beta.d.ts +0 -2
  378. package/resources/beta.d.ts.map +0 -1
  379. package/resources/beta.js.map +0 -1
  380. package/resources/beta.mjs.map +0 -1
  381. package/src/resources/beta/beta.ts +0 -37
  382. package/src/resources/beta/commerce/coupons.ts +0 -441
  383. package/src/resources/beta/commerce/products/products.ts +0 -1311
  384. package/src/resources/beta/commerce/products/resources.ts +0 -214
  385. package/src/resources/beta/commerce/products/variants.ts +0 -1030
  386. package/src/resources/beta/index.ts +0 -13
  387. /package/resources/{beta/commerce → commerce}/products/index.js +0 -0
  388. /package/resources/{beta/commerce → commerce}/products/index.mjs +0 -0
  389. /package/resources/{beta/commerce → commerce}/products.d.mts +0 -0
  390. /package/resources/{beta/commerce → commerce}/products.d.ts +0 -0
  391. /package/resources/{beta/commerce → commerce}/products.mjs +0 -0
  392. /package/resources/{beta/commerce.d.mts → commerce.d.mts} +0 -0
  393. /package/resources/{beta/commerce.d.ts → commerce.d.ts} +0 -0
  394. /package/resources/{beta/commerce.mjs → commerce.mjs} +0 -0
  395. /package/resources/{beta/content → content}/index.d.mts +0 -0
  396. /package/resources/{beta/content → content}/index.d.ts +0 -0
  397. /package/resources/{beta/content → content}/index.js +0 -0
  398. /package/resources/{beta/content → content}/index.mjs +0 -0
  399. /package/resources/{beta/content → content}/models/index.d.mts +0 -0
  400. /package/resources/{beta/content → content}/models/index.d.ts +0 -0
  401. /package/resources/{beta/content → content}/models/index.js +0 -0
  402. /package/resources/{beta/content → content}/models/index.mjs +0 -0
  403. /package/resources/{beta/content → content}/models.d.mts +0 -0
  404. /package/resources/{beta/content → content}/models.d.ts +0 -0
  405. /package/resources/{beta/content → content}/models.mjs +0 -0
  406. /package/resources/{beta/content → content}/releases/index.d.mts +0 -0
  407. /package/resources/{beta/content → content}/releases/index.d.ts +0 -0
  408. /package/resources/{beta/content → content}/releases/index.js +0 -0
  409. /package/resources/{beta/content → content}/releases/index.mjs +0 -0
  410. /package/resources/{beta/content → content}/releases.d.mts +0 -0
  411. /package/resources/{beta/content → content}/releases.d.ts +0 -0
  412. /package/resources/{beta/content → content}/releases.mjs +0 -0
  413. /package/resources/{beta/content.d.mts → content.d.mts} +0 -0
  414. /package/resources/{beta/content.d.ts → content.d.ts} +0 -0
  415. /package/resources/{beta/content.mjs → content.mjs} +0 -0
  416. /package/src/resources/{beta/commerce → commerce}/products.ts +0 -0
  417. /package/src/resources/{beta/commerce.ts → commerce.ts} +0 -0
  418. /package/src/resources/{beta/content → content}/index.ts +0 -0
  419. /package/src/resources/{beta/content → content}/models/index.ts +0 -0
  420. /package/src/resources/{beta/content → content}/models.ts +0 -0
  421. /package/src/resources/{beta/content → content}/releases/index.ts +0 -0
  422. /package/src/resources/{beta/content → content}/releases.ts +0 -0
  423. /package/src/resources/{beta/content.ts → content.ts} +0 -0
@@ -1,334 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import { APIPromise } from "../../../core/api-promise.mjs";
3
- import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
4
- import { RequestOptions } from "../../../internal/request-options.mjs";
5
- export declare class Coupons extends APIResource {
6
- /**
7
- * Creates a discount coupon with a promo code. Coupons can offer percentage or
8
- * fixed-amount discounts and can be limited by redemption count or expiration
9
- * date. Customers can apply coupons during checkout.
10
- */
11
- create(body: CouponCreateParams, options?: RequestOptions): APIPromise<CouponCreateResponse>;
12
- /**
13
- * Updates an existing coupon. Use this to modify the display name or deactivate
14
- * the coupon. Discount amounts and codes cannot be changed after creation.
15
- */
16
- update(couponID: string, body?: CouponUpdateParams | null | undefined, options?: RequestOptions): APIPromise<CouponUpdateResponse>;
17
- /**
18
- * Retrieves a paginated list of all coupons. Coupons provide discounts that
19
- * customers can apply during checkout using a promo code.
20
- */
21
- list(query?: CouponListParams | null | undefined, options?: RequestOptions): PagePromise<CouponListResponsesCursorIDPage, CouponListResponse>;
22
- /**
23
- * Permanently deletes a coupon. The promo code can no longer be used. Existing
24
- * discounts applied to active subscriptions are not affected.
25
- */
26
- delete(couponID: string, options?: RequestOptions): APIPromise<void>;
27
- /**
28
- * Retrieves a coupon by ID. Returns the coupon object including discount details
29
- * and redemption statistics.
30
- */
31
- get(couponID: string, options?: RequestOptions): APIPromise<CouponGetResponse>;
32
- }
33
- export type CouponListResponsesCursorIDPage = CursorIDPage<CouponListResponse>;
34
- /**
35
- * A discount coupon that customers can apply during checkout using a promo code
36
- */
37
- export interface CouponCreateResponse {
38
- /**
39
- * Unique identifier for the topic subscription
40
- */
41
- id: string;
42
- /**
43
- * Whether the coupon is currently active and can be redeemed
44
- */
45
- active: boolean;
46
- /**
47
- * The promo code customers enter to apply the discount
48
- */
49
- code: string;
50
- /**
51
- * Timestamp when the coupon was created
52
- */
53
- created: string;
54
- /**
55
- * How long the discount applies: once (first payment only), repeating (for
56
- * duration_in_months), or forever
57
- */
58
- duration: 'once' | 'repeating' | 'forever';
59
- /**
60
- * Number of times this coupon has been successfully redeemed
61
- */
62
- times_redeemed: number;
63
- /**
64
- * Fixed discount amount in the smallest currency unit (e.g., cents). Mutually
65
- * exclusive with percent_off.
66
- */
67
- amount_off?: number | null;
68
- /**
69
- * Three-letter ISO currency code for amount_off discounts
70
- */
71
- currency?: string | null;
72
- /**
73
- * Number of months the discount applies when duration is 'repeating'
74
- */
75
- duration_in_months?: number | null;
76
- /**
77
- * Maximum number of times this coupon can be redeemed across all customers
78
- */
79
- max_redemptions?: number | null;
80
- /**
81
- * Display name for the coupon (shown to customers)
82
- */
83
- name?: string | null;
84
- /**
85
- * Percentage discount (1-100). Mutually exclusive with amount_off.
86
- */
87
- percent_off?: number | null;
88
- /**
89
- * Expiration date after which the coupon can no longer be redeemed
90
- */
91
- redeem_by?: string | null;
92
- }
93
- /**
94
- * A discount coupon that customers can apply during checkout using a promo code
95
- */
96
- export interface CouponUpdateResponse {
97
- /**
98
- * Unique identifier for the topic subscription
99
- */
100
- id: string;
101
- /**
102
- * Whether the coupon is currently active and can be redeemed
103
- */
104
- active: boolean;
105
- /**
106
- * The promo code customers enter to apply the discount
107
- */
108
- code: string;
109
- /**
110
- * Timestamp when the coupon was created
111
- */
112
- created: string;
113
- /**
114
- * How long the discount applies: once (first payment only), repeating (for
115
- * duration_in_months), or forever
116
- */
117
- duration: 'once' | 'repeating' | 'forever';
118
- /**
119
- * Number of times this coupon has been successfully redeemed
120
- */
121
- times_redeemed: number;
122
- /**
123
- * Fixed discount amount in the smallest currency unit (e.g., cents). Mutually
124
- * exclusive with percent_off.
125
- */
126
- amount_off?: number | null;
127
- /**
128
- * Three-letter ISO currency code for amount_off discounts
129
- */
130
- currency?: string | null;
131
- /**
132
- * Number of months the discount applies when duration is 'repeating'
133
- */
134
- duration_in_months?: number | null;
135
- /**
136
- * Maximum number of times this coupon can be redeemed across all customers
137
- */
138
- max_redemptions?: number | null;
139
- /**
140
- * Display name for the coupon (shown to customers)
141
- */
142
- name?: string | null;
143
- /**
144
- * Percentage discount (1-100). Mutually exclusive with amount_off.
145
- */
146
- percent_off?: number | null;
147
- /**
148
- * Expiration date after which the coupon can no longer be redeemed
149
- */
150
- redeem_by?: string | null;
151
- }
152
- /**
153
- * A discount coupon that customers can apply during checkout using a promo code
154
- */
155
- export interface CouponListResponse {
156
- /**
157
- * Unique identifier for the topic subscription
158
- */
159
- id: string;
160
- /**
161
- * Whether the coupon is currently active and can be redeemed
162
- */
163
- active: boolean;
164
- /**
165
- * The promo code customers enter to apply the discount
166
- */
167
- code: string;
168
- /**
169
- * Timestamp when the coupon was created
170
- */
171
- created: string;
172
- /**
173
- * How long the discount applies: once (first payment only), repeating (for
174
- * duration_in_months), or forever
175
- */
176
- duration: 'once' | 'repeating' | 'forever';
177
- /**
178
- * Number of times this coupon has been successfully redeemed
179
- */
180
- times_redeemed: number;
181
- /**
182
- * Fixed discount amount in the smallest currency unit (e.g., cents). Mutually
183
- * exclusive with percent_off.
184
- */
185
- amount_off?: number | null;
186
- /**
187
- * Three-letter ISO currency code for amount_off discounts
188
- */
189
- currency?: string | null;
190
- /**
191
- * Number of months the discount applies when duration is 'repeating'
192
- */
193
- duration_in_months?: number | null;
194
- /**
195
- * Maximum number of times this coupon can be redeemed across all customers
196
- */
197
- max_redemptions?: number | null;
198
- /**
199
- * Display name for the coupon (shown to customers)
200
- */
201
- name?: string | null;
202
- /**
203
- * Percentage discount (1-100). Mutually exclusive with amount_off.
204
- */
205
- percent_off?: number | null;
206
- /**
207
- * Expiration date after which the coupon can no longer be redeemed
208
- */
209
- redeem_by?: string | null;
210
- }
211
- /**
212
- * A discount coupon that customers can apply during checkout using a promo code
213
- */
214
- export interface CouponGetResponse {
215
- /**
216
- * Unique identifier for the topic subscription
217
- */
218
- id: string;
219
- /**
220
- * Whether the coupon is currently active and can be redeemed
221
- */
222
- active: boolean;
223
- /**
224
- * The promo code customers enter to apply the discount
225
- */
226
- code: string;
227
- /**
228
- * Timestamp when the coupon was created
229
- */
230
- created: string;
231
- /**
232
- * How long the discount applies: once (first payment only), repeating (for
233
- * duration_in_months), or forever
234
- */
235
- duration: 'once' | 'repeating' | 'forever';
236
- /**
237
- * Number of times this coupon has been successfully redeemed
238
- */
239
- times_redeemed: number;
240
- /**
241
- * Fixed discount amount in the smallest currency unit (e.g., cents). Mutually
242
- * exclusive with percent_off.
243
- */
244
- amount_off?: number | null;
245
- /**
246
- * Three-letter ISO currency code for amount_off discounts
247
- */
248
- currency?: string | null;
249
- /**
250
- * Number of months the discount applies when duration is 'repeating'
251
- */
252
- duration_in_months?: number | null;
253
- /**
254
- * Maximum number of times this coupon can be redeemed across all customers
255
- */
256
- max_redemptions?: number | null;
257
- /**
258
- * Display name for the coupon (shown to customers)
259
- */
260
- name?: string | null;
261
- /**
262
- * Percentage discount (1-100). Mutually exclusive with amount_off.
263
- */
264
- percent_off?: number | null;
265
- /**
266
- * Expiration date after which the coupon can no longer be redeemed
267
- */
268
- redeem_by?: string | null;
269
- }
270
- export interface CouponCreateParams {
271
- /**
272
- * The promo code customers will enter to apply the discount
273
- */
274
- code: string;
275
- /**
276
- * Optional custom ID for the coupon. Must start with 'coupon\_'. If not provided,
277
- * one will be generated.
278
- */
279
- id?: string;
280
- /**
281
- * Fixed discount in the smallest currency unit (e.g., cents). Mutually exclusive
282
- * with percent_off.
283
- */
284
- amount_off?: number;
285
- /**
286
- * Three-letter ISO currency code for amount_off discounts
287
- */
288
- currency?: string;
289
- /**
290
- * How long the discount applies: once (first payment only), repeating (for
291
- * duration_in_months), or forever
292
- */
293
- duration?: 'once' | 'repeating' | 'forever';
294
- /**
295
- * Number of months the discount applies when duration is 'repeating'
296
- */
297
- duration_in_months?: number;
298
- /**
299
- * Maximum number of times this coupon can be redeemed
300
- */
301
- max_redemptions?: number;
302
- /**
303
- * Display name for the coupon (shown to customers)
304
- */
305
- name?: string;
306
- /**
307
- * Percentage discount (1-100). Mutually exclusive with amount_off.
308
- */
309
- percent_off?: number;
310
- /**
311
- * Expiration date after which the coupon can no longer be redeemed
312
- */
313
- redeem_by?: string;
314
- }
315
- export interface CouponUpdateParams {
316
- /**
317
- * Whether the coupon is active and can be redeemed
318
- */
319
- active?: boolean;
320
- /**
321
- * Display name for the coupon
322
- */
323
- name?: string;
324
- }
325
- export interface CouponListParams extends CursorIDPageParams {
326
- /**
327
- * Filter by active status
328
- */
329
- active?: boolean;
330
- }
331
- export declare namespace Coupons {
332
- export { type CouponCreateResponse as CouponCreateResponse, type CouponUpdateResponse as CouponUpdateResponse, type CouponListResponse as CouponListResponse, type CouponGetResponse as CouponGetResponse, type CouponListResponsesCursorIDPage as CouponListResponsesCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponUpdateParams as CouponUpdateParams, type CouponListParams as CouponListParams, };
333
- }
334
- //# sourceMappingURL=coupons.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coupons.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/commerce/coupons.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,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B,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -1,334 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import { APIPromise } from "../../../core/api-promise.js";
3
- import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../core/pagination.js";
4
- import { RequestOptions } from "../../../internal/request-options.js";
5
- export declare class Coupons extends APIResource {
6
- /**
7
- * Creates a discount coupon with a promo code. Coupons can offer percentage or
8
- * fixed-amount discounts and can be limited by redemption count or expiration
9
- * date. Customers can apply coupons during checkout.
10
- */
11
- create(body: CouponCreateParams, options?: RequestOptions): APIPromise<CouponCreateResponse>;
12
- /**
13
- * Updates an existing coupon. Use this to modify the display name or deactivate
14
- * the coupon. Discount amounts and codes cannot be changed after creation.
15
- */
16
- update(couponID: string, body?: CouponUpdateParams | null | undefined, options?: RequestOptions): APIPromise<CouponUpdateResponse>;
17
- /**
18
- * Retrieves a paginated list of all coupons. Coupons provide discounts that
19
- * customers can apply during checkout using a promo code.
20
- */
21
- list(query?: CouponListParams | null | undefined, options?: RequestOptions): PagePromise<CouponListResponsesCursorIDPage, CouponListResponse>;
22
- /**
23
- * Permanently deletes a coupon. The promo code can no longer be used. Existing
24
- * discounts applied to active subscriptions are not affected.
25
- */
26
- delete(couponID: string, options?: RequestOptions): APIPromise<void>;
27
- /**
28
- * Retrieves a coupon by ID. Returns the coupon object including discount details
29
- * and redemption statistics.
30
- */
31
- get(couponID: string, options?: RequestOptions): APIPromise<CouponGetResponse>;
32
- }
33
- export type CouponListResponsesCursorIDPage = CursorIDPage<CouponListResponse>;
34
- /**
35
- * A discount coupon that customers can apply during checkout using a promo code
36
- */
37
- export interface CouponCreateResponse {
38
- /**
39
- * Unique identifier for the topic subscription
40
- */
41
- id: string;
42
- /**
43
- * Whether the coupon is currently active and can be redeemed
44
- */
45
- active: boolean;
46
- /**
47
- * The promo code customers enter to apply the discount
48
- */
49
- code: string;
50
- /**
51
- * Timestamp when the coupon was created
52
- */
53
- created: string;
54
- /**
55
- * How long the discount applies: once (first payment only), repeating (for
56
- * duration_in_months), or forever
57
- */
58
- duration: 'once' | 'repeating' | 'forever';
59
- /**
60
- * Number of times this coupon has been successfully redeemed
61
- */
62
- times_redeemed: number;
63
- /**
64
- * Fixed discount amount in the smallest currency unit (e.g., cents). Mutually
65
- * exclusive with percent_off.
66
- */
67
- amount_off?: number | null;
68
- /**
69
- * Three-letter ISO currency code for amount_off discounts
70
- */
71
- currency?: string | null;
72
- /**
73
- * Number of months the discount applies when duration is 'repeating'
74
- */
75
- duration_in_months?: number | null;
76
- /**
77
- * Maximum number of times this coupon can be redeemed across all customers
78
- */
79
- max_redemptions?: number | null;
80
- /**
81
- * Display name for the coupon (shown to customers)
82
- */
83
- name?: string | null;
84
- /**
85
- * Percentage discount (1-100). Mutually exclusive with amount_off.
86
- */
87
- percent_off?: number | null;
88
- /**
89
- * Expiration date after which the coupon can no longer be redeemed
90
- */
91
- redeem_by?: string | null;
92
- }
93
- /**
94
- * A discount coupon that customers can apply during checkout using a promo code
95
- */
96
- export interface CouponUpdateResponse {
97
- /**
98
- * Unique identifier for the topic subscription
99
- */
100
- id: string;
101
- /**
102
- * Whether the coupon is currently active and can be redeemed
103
- */
104
- active: boolean;
105
- /**
106
- * The promo code customers enter to apply the discount
107
- */
108
- code: string;
109
- /**
110
- * Timestamp when the coupon was created
111
- */
112
- created: string;
113
- /**
114
- * How long the discount applies: once (first payment only), repeating (for
115
- * duration_in_months), or forever
116
- */
117
- duration: 'once' | 'repeating' | 'forever';
118
- /**
119
- * Number of times this coupon has been successfully redeemed
120
- */
121
- times_redeemed: number;
122
- /**
123
- * Fixed discount amount in the smallest currency unit (e.g., cents). Mutually
124
- * exclusive with percent_off.
125
- */
126
- amount_off?: number | null;
127
- /**
128
- * Three-letter ISO currency code for amount_off discounts
129
- */
130
- currency?: string | null;
131
- /**
132
- * Number of months the discount applies when duration is 'repeating'
133
- */
134
- duration_in_months?: number | null;
135
- /**
136
- * Maximum number of times this coupon can be redeemed across all customers
137
- */
138
- max_redemptions?: number | null;
139
- /**
140
- * Display name for the coupon (shown to customers)
141
- */
142
- name?: string | null;
143
- /**
144
- * Percentage discount (1-100). Mutually exclusive with amount_off.
145
- */
146
- percent_off?: number | null;
147
- /**
148
- * Expiration date after which the coupon can no longer be redeemed
149
- */
150
- redeem_by?: string | null;
151
- }
152
- /**
153
- * A discount coupon that customers can apply during checkout using a promo code
154
- */
155
- export interface CouponListResponse {
156
- /**
157
- * Unique identifier for the topic subscription
158
- */
159
- id: string;
160
- /**
161
- * Whether the coupon is currently active and can be redeemed
162
- */
163
- active: boolean;
164
- /**
165
- * The promo code customers enter to apply the discount
166
- */
167
- code: string;
168
- /**
169
- * Timestamp when the coupon was created
170
- */
171
- created: string;
172
- /**
173
- * How long the discount applies: once (first payment only), repeating (for
174
- * duration_in_months), or forever
175
- */
176
- duration: 'once' | 'repeating' | 'forever';
177
- /**
178
- * Number of times this coupon has been successfully redeemed
179
- */
180
- times_redeemed: number;
181
- /**
182
- * Fixed discount amount in the smallest currency unit (e.g., cents). Mutually
183
- * exclusive with percent_off.
184
- */
185
- amount_off?: number | null;
186
- /**
187
- * Three-letter ISO currency code for amount_off discounts
188
- */
189
- currency?: string | null;
190
- /**
191
- * Number of months the discount applies when duration is 'repeating'
192
- */
193
- duration_in_months?: number | null;
194
- /**
195
- * Maximum number of times this coupon can be redeemed across all customers
196
- */
197
- max_redemptions?: number | null;
198
- /**
199
- * Display name for the coupon (shown to customers)
200
- */
201
- name?: string | null;
202
- /**
203
- * Percentage discount (1-100). Mutually exclusive with amount_off.
204
- */
205
- percent_off?: number | null;
206
- /**
207
- * Expiration date after which the coupon can no longer be redeemed
208
- */
209
- redeem_by?: string | null;
210
- }
211
- /**
212
- * A discount coupon that customers can apply during checkout using a promo code
213
- */
214
- export interface CouponGetResponse {
215
- /**
216
- * Unique identifier for the topic subscription
217
- */
218
- id: string;
219
- /**
220
- * Whether the coupon is currently active and can be redeemed
221
- */
222
- active: boolean;
223
- /**
224
- * The promo code customers enter to apply the discount
225
- */
226
- code: string;
227
- /**
228
- * Timestamp when the coupon was created
229
- */
230
- created: string;
231
- /**
232
- * How long the discount applies: once (first payment only), repeating (for
233
- * duration_in_months), or forever
234
- */
235
- duration: 'once' | 'repeating' | 'forever';
236
- /**
237
- * Number of times this coupon has been successfully redeemed
238
- */
239
- times_redeemed: number;
240
- /**
241
- * Fixed discount amount in the smallest currency unit (e.g., cents). Mutually
242
- * exclusive with percent_off.
243
- */
244
- amount_off?: number | null;
245
- /**
246
- * Three-letter ISO currency code for amount_off discounts
247
- */
248
- currency?: string | null;
249
- /**
250
- * Number of months the discount applies when duration is 'repeating'
251
- */
252
- duration_in_months?: number | null;
253
- /**
254
- * Maximum number of times this coupon can be redeemed across all customers
255
- */
256
- max_redemptions?: number | null;
257
- /**
258
- * Display name for the coupon (shown to customers)
259
- */
260
- name?: string | null;
261
- /**
262
- * Percentage discount (1-100). Mutually exclusive with amount_off.
263
- */
264
- percent_off?: number | null;
265
- /**
266
- * Expiration date after which the coupon can no longer be redeemed
267
- */
268
- redeem_by?: string | null;
269
- }
270
- export interface CouponCreateParams {
271
- /**
272
- * The promo code customers will enter to apply the discount
273
- */
274
- code: string;
275
- /**
276
- * Optional custom ID for the coupon. Must start with 'coupon\_'. If not provided,
277
- * one will be generated.
278
- */
279
- id?: string;
280
- /**
281
- * Fixed discount in the smallest currency unit (e.g., cents). Mutually exclusive
282
- * with percent_off.
283
- */
284
- amount_off?: number;
285
- /**
286
- * Three-letter ISO currency code for amount_off discounts
287
- */
288
- currency?: string;
289
- /**
290
- * How long the discount applies: once (first payment only), repeating (for
291
- * duration_in_months), or forever
292
- */
293
- duration?: 'once' | 'repeating' | 'forever';
294
- /**
295
- * Number of months the discount applies when duration is 'repeating'
296
- */
297
- duration_in_months?: number;
298
- /**
299
- * Maximum number of times this coupon can be redeemed
300
- */
301
- max_redemptions?: number;
302
- /**
303
- * Display name for the coupon (shown to customers)
304
- */
305
- name?: string;
306
- /**
307
- * Percentage discount (1-100). Mutually exclusive with amount_off.
308
- */
309
- percent_off?: number;
310
- /**
311
- * Expiration date after which the coupon can no longer be redeemed
312
- */
313
- redeem_by?: string;
314
- }
315
- export interface CouponUpdateParams {
316
- /**
317
- * Whether the coupon is active and can be redeemed
318
- */
319
- active?: boolean;
320
- /**
321
- * Display name for the coupon
322
- */
323
- name?: string;
324
- }
325
- export interface CouponListParams extends CursorIDPageParams {
326
- /**
327
- * Filter by active status
328
- */
329
- active?: boolean;
330
- }
331
- export declare namespace Coupons {
332
- export { type CouponCreateResponse as CouponCreateResponse, type CouponUpdateResponse as CouponUpdateResponse, type CouponListResponse as CouponListResponse, type CouponGetResponse as CouponGetResponse, type CouponListResponsesCursorIDPage as CouponListResponsesCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponUpdateParams as CouponUpdateParams, type CouponListParams as CouponListParams, };
333
- }
334
- //# sourceMappingURL=coupons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"coupons.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/commerce/coupons.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;OAGG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,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