@whop/sdk 0.0.26 → 0.0.28

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 (463) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/client.d.mts +10 -9
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -9
  5. package/client.d.ts.map +1 -1
  6. package/client.js +16 -2
  7. package/client.js.map +1 -1
  8. package/client.mjs +16 -2
  9. package/client.mjs.map +1 -1
  10. package/package.json +3 -3
  11. package/resources/access-tokens.d.mts +34 -54
  12. package/resources/access-tokens.d.mts.map +1 -1
  13. package/resources/access-tokens.d.ts +34 -54
  14. package/resources/access-tokens.d.ts.map +1 -1
  15. package/resources/access-tokens.js +6 -8
  16. package/resources/access-tokens.js.map +1 -1
  17. package/resources/access-tokens.mjs +6 -8
  18. package/resources/access-tokens.mjs.map +1 -1
  19. package/resources/account-links.d.mts +15 -13
  20. package/resources/account-links.d.mts.map +1 -1
  21. package/resources/account-links.d.ts +15 -13
  22. package/resources/account-links.d.ts.map +1 -1
  23. package/resources/account-links.js +2 -3
  24. package/resources/account-links.js.map +1 -1
  25. package/resources/account-links.mjs +2 -3
  26. package/resources/account-links.mjs.map +1 -1
  27. package/resources/ai-chats.d.mts +70 -30
  28. package/resources/ai-chats.d.mts.map +1 -1
  29. package/resources/ai-chats.d.ts +70 -30
  30. package/resources/ai-chats.d.ts.map +1 -1
  31. package/resources/ai-chats.js +6 -6
  32. package/resources/ai-chats.js.map +1 -1
  33. package/resources/ai-chats.mjs +6 -6
  34. package/resources/ai-chats.mjs.map +1 -1
  35. package/resources/app-builds.d.mts +37 -35
  36. package/resources/app-builds.d.mts.map +1 -1
  37. package/resources/app-builds.d.ts +37 -35
  38. package/resources/app-builds.d.ts.map +1 -1
  39. package/resources/app-builds.js +7 -4
  40. package/resources/app-builds.js.map +1 -1
  41. package/resources/app-builds.mjs +7 -4
  42. package/resources/app-builds.mjs.map +1 -1
  43. package/resources/apps.d.mts +86 -60
  44. package/resources/apps.d.mts.map +1 -1
  45. package/resources/apps.d.ts +86 -60
  46. package/resources/apps.d.ts.map +1 -1
  47. package/resources/apps.js +7 -4
  48. package/resources/apps.js.map +1 -1
  49. package/resources/apps.mjs +7 -4
  50. package/resources/apps.mjs.map +1 -1
  51. package/resources/authorized-users.d.mts +38 -32
  52. package/resources/authorized-users.d.mts.map +1 -1
  53. package/resources/authorized-users.d.ts +38 -32
  54. package/resources/authorized-users.d.ts.map +1 -1
  55. package/resources/authorized-users.js +3 -2
  56. package/resources/authorized-users.js.map +1 -1
  57. package/resources/authorized-users.mjs +3 -2
  58. package/resources/authorized-users.mjs.map +1 -1
  59. package/resources/chat-channels.d.mts +28 -20
  60. package/resources/chat-channels.d.mts.map +1 -1
  61. package/resources/chat-channels.d.ts +28 -20
  62. package/resources/chat-channels.d.ts.map +1 -1
  63. package/resources/chat-channels.js +5 -3
  64. package/resources/chat-channels.js.map +1 -1
  65. package/resources/chat-channels.mjs +5 -3
  66. package/resources/chat-channels.mjs.map +1 -1
  67. package/resources/checkout-configurations.d.mts +75 -58
  68. package/resources/checkout-configurations.d.mts.map +1 -1
  69. package/resources/checkout-configurations.d.ts +75 -58
  70. package/resources/checkout-configurations.d.ts.map +1 -1
  71. package/resources/checkout-configurations.js +3 -2
  72. package/resources/checkout-configurations.js.map +1 -1
  73. package/resources/checkout-configurations.mjs +3 -2
  74. package/resources/checkout-configurations.mjs.map +1 -1
  75. package/resources/companies.d.mts +88 -56
  76. package/resources/companies.d.mts.map +1 -1
  77. package/resources/companies.d.ts +88 -56
  78. package/resources/companies.d.ts.map +1 -1
  79. package/resources/companies.js +9 -7
  80. package/resources/companies.js.map +1 -1
  81. package/resources/companies.mjs +9 -7
  82. package/resources/companies.mjs.map +1 -1
  83. package/resources/company-token-transactions.d.mts +90 -67
  84. package/resources/company-token-transactions.d.mts.map +1 -1
  85. package/resources/company-token-transactions.d.ts +90 -67
  86. package/resources/company-token-transactions.d.ts.map +1 -1
  87. package/resources/company-token-transactions.js +6 -3
  88. package/resources/company-token-transactions.js.map +1 -1
  89. package/resources/company-token-transactions.mjs +6 -3
  90. package/resources/company-token-transactions.mjs.map +1 -1
  91. package/resources/course-chapters.d.mts +27 -22
  92. package/resources/course-chapters.d.mts.map +1 -1
  93. package/resources/course-chapters.d.ts +27 -22
  94. package/resources/course-chapters.d.ts.map +1 -1
  95. package/resources/course-chapters.js +5 -5
  96. package/resources/course-chapters.mjs +5 -5
  97. package/resources/course-lesson-interactions.d.mts +7 -6
  98. package/resources/course-lesson-interactions.d.mts.map +1 -1
  99. package/resources/course-lesson-interactions.d.ts +7 -6
  100. package/resources/course-lesson-interactions.d.ts.map +1 -1
  101. package/resources/course-lesson-interactions.js +3 -2
  102. package/resources/course-lesson-interactions.js.map +1 -1
  103. package/resources/course-lesson-interactions.mjs +3 -2
  104. package/resources/course-lesson-interactions.mjs.map +1 -1
  105. package/resources/course-lessons.d.mts +141 -99
  106. package/resources/course-lessons.d.mts.map +1 -1
  107. package/resources/course-lessons.d.ts +141 -99
  108. package/resources/course-lessons.d.ts.map +1 -1
  109. package/resources/course-lessons.js +12 -8
  110. package/resources/course-lessons.js.map +1 -1
  111. package/resources/course-lessons.mjs +12 -8
  112. package/resources/course-lessons.mjs.map +1 -1
  113. package/resources/course-students.d.mts +44 -35
  114. package/resources/course-students.d.mts.map +1 -1
  115. package/resources/course-students.d.ts +44 -35
  116. package/resources/course-students.d.ts.map +1 -1
  117. package/resources/course-students.js +3 -2
  118. package/resources/course-students.js.map +1 -1
  119. package/resources/course-students.mjs +3 -2
  120. package/resources/course-students.mjs.map +1 -1
  121. package/resources/courses.d.mts +140 -99
  122. package/resources/courses.d.mts.map +1 -1
  123. package/resources/courses.d.ts +140 -99
  124. package/resources/courses.d.ts.map +1 -1
  125. package/resources/courses.js +9 -5
  126. package/resources/courses.js.map +1 -1
  127. package/resources/courses.mjs +9 -5
  128. package/resources/courses.mjs.map +1 -1
  129. package/resources/disputes.d.mts +176 -120
  130. package/resources/disputes.d.mts.map +1 -1
  131. package/resources/disputes.d.ts +176 -120
  132. package/resources/disputes.d.ts.map +1 -1
  133. package/resources/disputes.js +4 -2
  134. package/resources/disputes.js.map +1 -1
  135. package/resources/disputes.mjs +4 -2
  136. package/resources/disputes.mjs.map +1 -1
  137. package/resources/dm-channels.d.mts +29 -16
  138. package/resources/dm-channels.d.mts.map +1 -1
  139. package/resources/dm-channels.d.ts +29 -16
  140. package/resources/dm-channels.d.ts.map +1 -1
  141. package/resources/dm-channels.js +9 -5
  142. package/resources/dm-channels.js.map +1 -1
  143. package/resources/dm-channels.mjs +9 -5
  144. package/resources/dm-channels.mjs.map +1 -1
  145. package/resources/dm-members.d.mts +30 -21
  146. package/resources/dm-members.d.mts.map +1 -1
  147. package/resources/dm-members.d.ts +30 -21
  148. package/resources/dm-members.d.ts.map +1 -1
  149. package/resources/dm-members.js +9 -5
  150. package/resources/dm-members.js.map +1 -1
  151. package/resources/dm-members.mjs +9 -5
  152. package/resources/dm-members.mjs.map +1 -1
  153. package/resources/entries.d.mts +35 -27
  154. package/resources/entries.d.mts.map +1 -1
  155. package/resources/entries.d.ts +35 -27
  156. package/resources/entries.d.ts.map +1 -1
  157. package/resources/entries.js +7 -4
  158. package/resources/entries.js.map +1 -1
  159. package/resources/entries.mjs +7 -4
  160. package/resources/entries.mjs.map +1 -1
  161. package/resources/experiences.d.mts +58 -49
  162. package/resources/experiences.d.mts.map +1 -1
  163. package/resources/experiences.d.ts +58 -49
  164. package/resources/experiences.d.ts.map +1 -1
  165. package/resources/experiences.js +6 -5
  166. package/resources/experiences.js.map +1 -1
  167. package/resources/experiences.mjs +6 -5
  168. package/resources/experiences.mjs.map +1 -1
  169. package/resources/fee-markups.d.mts +38 -27
  170. package/resources/fee-markups.d.mts.map +1 -1
  171. package/resources/fee-markups.d.ts +38 -27
  172. package/resources/fee-markups.d.ts.map +1 -1
  173. package/resources/fee-markups.js +6 -3
  174. package/resources/fee-markups.js.map +1 -1
  175. package/resources/fee-markups.mjs +6 -3
  176. package/resources/fee-markups.mjs.map +1 -1
  177. package/resources/files.d.mts +23 -19
  178. package/resources/files.d.mts.map +1 -1
  179. package/resources/files.d.ts +23 -19
  180. package/resources/files.d.ts.map +1 -1
  181. package/resources/files.js +3 -2
  182. package/resources/files.js.map +1 -1
  183. package/resources/files.mjs +3 -2
  184. package/resources/files.mjs.map +1 -1
  185. package/resources/forum-posts.d.mts +68 -45
  186. package/resources/forum-posts.d.mts.map +1 -1
  187. package/resources/forum-posts.d.ts +68 -45
  188. package/resources/forum-posts.d.ts.map +1 -1
  189. package/resources/forum-posts.js +8 -4
  190. package/resources/forum-posts.js.map +1 -1
  191. package/resources/forum-posts.mjs +8 -4
  192. package/resources/forum-posts.mjs.map +1 -1
  193. package/resources/forums.d.mts +21 -13
  194. package/resources/forums.d.mts.map +1 -1
  195. package/resources/forums.d.ts +21 -13
  196. package/resources/forums.d.ts.map +1 -1
  197. package/resources/forums.js +5 -3
  198. package/resources/forums.js.map +1 -1
  199. package/resources/forums.mjs +5 -3
  200. package/resources/forums.mjs.map +1 -1
  201. package/resources/index.d.mts +3 -3
  202. package/resources/index.d.mts.map +1 -1
  203. package/resources/index.d.ts +3 -3
  204. package/resources/index.d.ts.map +1 -1
  205. package/resources/index.js.map +1 -1
  206. package/resources/index.mjs.map +1 -1
  207. package/resources/invoices.d.mts +136 -100
  208. package/resources/invoices.d.mts.map +1 -1
  209. package/resources/invoices.d.ts +136 -100
  210. package/resources/invoices.d.ts.map +1 -1
  211. package/resources/invoices.js +7 -4
  212. package/resources/invoices.js.map +1 -1
  213. package/resources/invoices.mjs +7 -4
  214. package/resources/invoices.mjs.map +1 -1
  215. package/resources/leads.d.mts +76 -54
  216. package/resources/leads.d.mts.map +1 -1
  217. package/resources/leads.d.ts +76 -54
  218. package/resources/leads.d.ts.map +1 -1
  219. package/resources/leads.js +6 -4
  220. package/resources/leads.js.map +1 -1
  221. package/resources/leads.mjs +6 -4
  222. package/resources/leads.mjs.map +1 -1
  223. package/resources/ledger-accounts.d.mts +19 -15
  224. package/resources/ledger-accounts.d.mts.map +1 -1
  225. package/resources/ledger-accounts.d.ts +19 -15
  226. package/resources/ledger-accounts.d.ts.map +1 -1
  227. package/resources/ledger-accounts.js +1 -1
  228. package/resources/ledger-accounts.mjs +1 -1
  229. package/resources/members.d.mts +27 -28
  230. package/resources/members.d.mts.map +1 -1
  231. package/resources/members.d.ts +27 -28
  232. package/resources/members.d.ts.map +1 -1
  233. package/resources/members.js +3 -2
  234. package/resources/members.js.map +1 -1
  235. package/resources/members.mjs +3 -2
  236. package/resources/members.mjs.map +1 -1
  237. package/resources/memberships.d.mts +85 -62
  238. package/resources/memberships.d.mts.map +1 -1
  239. package/resources/memberships.d.ts +85 -62
  240. package/resources/memberships.d.ts.map +1 -1
  241. package/resources/memberships.js +12 -8
  242. package/resources/memberships.js.map +1 -1
  243. package/resources/memberships.mjs +12 -8
  244. package/resources/memberships.mjs.map +1 -1
  245. package/resources/messages.d.mts +53 -35
  246. package/resources/messages.d.mts.map +1 -1
  247. package/resources/messages.d.ts +53 -35
  248. package/resources/messages.d.ts.map +1 -1
  249. package/resources/messages.js +9 -5
  250. package/resources/messages.js.map +1 -1
  251. package/resources/messages.mjs +9 -5
  252. package/resources/messages.mjs.map +1 -1
  253. package/resources/notifications.d.mts +33 -25
  254. package/resources/notifications.d.mts.map +1 -1
  255. package/resources/notifications.d.ts +33 -25
  256. package/resources/notifications.d.ts.map +1 -1
  257. package/resources/notifications.js +2 -1
  258. package/resources/notifications.js.map +1 -1
  259. package/resources/notifications.mjs +2 -1
  260. package/resources/notifications.mjs.map +1 -1
  261. package/resources/payment-methods.d.mts +212 -114
  262. package/resources/payment-methods.d.mts.map +1 -1
  263. package/resources/payment-methods.d.ts +212 -114
  264. package/resources/payment-methods.d.ts.map +1 -1
  265. package/resources/payment-methods.js +5 -10
  266. package/resources/payment-methods.js.map +1 -1
  267. package/resources/payment-methods.mjs +5 -10
  268. package/resources/payment-methods.mjs.map +1 -1
  269. package/resources/payments.d.mts +96 -56
  270. package/resources/payments.d.mts.map +1 -1
  271. package/resources/payments.d.ts +96 -56
  272. package/resources/payments.d.ts.map +1 -1
  273. package/resources/payments.js +23 -10
  274. package/resources/payments.js.map +1 -1
  275. package/resources/payments.mjs +23 -10
  276. package/resources/payments.mjs.map +1 -1
  277. package/resources/payout-methods.d.mts +50 -35
  278. package/resources/payout-methods.d.mts.map +1 -1
  279. package/resources/payout-methods.d.ts +50 -35
  280. package/resources/payout-methods.d.ts.map +1 -1
  281. package/resources/payout-methods.js +3 -2
  282. package/resources/payout-methods.js.map +1 -1
  283. package/resources/payout-methods.mjs +3 -2
  284. package/resources/payout-methods.mjs.map +1 -1
  285. package/resources/plans.d.mts +136 -95
  286. package/resources/plans.d.mts.map +1 -1
  287. package/resources/plans.d.ts +136 -95
  288. package/resources/plans.d.ts.map +1 -1
  289. package/resources/plans.js +9 -5
  290. package/resources/plans.js.map +1 -1
  291. package/resources/plans.mjs +9 -5
  292. package/resources/plans.mjs.map +1 -1
  293. package/resources/products.d.mts +80 -67
  294. package/resources/products.d.mts.map +1 -1
  295. package/resources/products.d.ts +80 -67
  296. package/resources/products.d.ts.map +1 -1
  297. package/resources/products.js +7 -5
  298. package/resources/products.js.map +1 -1
  299. package/resources/products.mjs +7 -5
  300. package/resources/products.mjs.map +1 -1
  301. package/resources/promo-codes.d.mts +60 -40
  302. package/resources/promo-codes.d.mts.map +1 -1
  303. package/resources/promo-codes.d.ts +60 -40
  304. package/resources/promo-codes.d.ts.map +1 -1
  305. package/resources/promo-codes.js +7 -4
  306. package/resources/promo-codes.js.map +1 -1
  307. package/resources/promo-codes.mjs +7 -4
  308. package/resources/promo-codes.mjs.map +1 -1
  309. package/resources/reactions.d.mts +25 -19
  310. package/resources/reactions.d.mts.map +1 -1
  311. package/resources/reactions.d.ts +25 -19
  312. package/resources/reactions.d.ts.map +1 -1
  313. package/resources/reactions.js +7 -4
  314. package/resources/reactions.js.map +1 -1
  315. package/resources/reactions.mjs +7 -4
  316. package/resources/reactions.mjs.map +1 -1
  317. package/resources/refunds.d.mts +57 -39
  318. package/resources/refunds.d.mts.map +1 -1
  319. package/resources/refunds.d.ts +57 -39
  320. package/resources/refunds.d.ts.map +1 -1
  321. package/resources/refunds.js +3 -2
  322. package/resources/refunds.js.map +1 -1
  323. package/resources/refunds.mjs +3 -2
  324. package/resources/refunds.mjs.map +1 -1
  325. package/resources/reviews.d.mts +76 -60
  326. package/resources/reviews.d.mts.map +1 -1
  327. package/resources/reviews.d.ts +76 -60
  328. package/resources/reviews.d.ts.map +1 -1
  329. package/resources/reviews.js +3 -2
  330. package/resources/reviews.js.map +1 -1
  331. package/resources/reviews.mjs +3 -2
  332. package/resources/reviews.mjs.map +1 -1
  333. package/resources/setup-intents.d.mts +77 -61
  334. package/resources/setup-intents.d.mts.map +1 -1
  335. package/resources/setup-intents.d.ts +77 -61
  336. package/resources/setup-intents.d.ts.map +1 -1
  337. package/resources/setup-intents.js +4 -10
  338. package/resources/setup-intents.js.map +1 -1
  339. package/resources/setup-intents.mjs +4 -10
  340. package/resources/setup-intents.mjs.map +1 -1
  341. package/resources/shared.d.mts +854 -509
  342. package/resources/shared.d.mts.map +1 -1
  343. package/resources/shared.d.ts +854 -509
  344. package/resources/shared.d.ts.map +1 -1
  345. package/resources/shipments.d.mts +30 -21
  346. package/resources/shipments.d.mts.map +1 -1
  347. package/resources/shipments.d.ts +30 -21
  348. package/resources/shipments.d.ts.map +1 -1
  349. package/resources/shipments.js +5 -3
  350. package/resources/shipments.js.map +1 -1
  351. package/resources/shipments.mjs +5 -3
  352. package/resources/shipments.mjs.map +1 -1
  353. package/resources/support-channels.d.mts +28 -20
  354. package/resources/support-channels.d.mts.map +1 -1
  355. package/resources/support-channels.d.ts +28 -20
  356. package/resources/support-channels.d.ts.map +1 -1
  357. package/resources/support-channels.js +5 -4
  358. package/resources/support-channels.js.map +1 -1
  359. package/resources/support-channels.mjs +5 -4
  360. package/resources/support-channels.mjs.map +1 -1
  361. package/resources/topups.d.mts +13 -9
  362. package/resources/topups.d.mts.map +1 -1
  363. package/resources/topups.d.ts +13 -9
  364. package/resources/topups.d.ts.map +1 -1
  365. package/resources/topups.js +2 -1
  366. package/resources/topups.js.map +1 -1
  367. package/resources/topups.mjs +2 -1
  368. package/resources/topups.mjs.map +1 -1
  369. package/resources/transfers.d.mts +37 -28
  370. package/resources/transfers.d.mts.map +1 -1
  371. package/resources/transfers.d.ts +37 -28
  372. package/resources/transfers.d.ts.map +1 -1
  373. package/resources/transfers.js +5 -3
  374. package/resources/transfers.js.map +1 -1
  375. package/resources/transfers.mjs +5 -3
  376. package/resources/transfers.mjs.map +1 -1
  377. package/resources/users.d.mts +60 -18
  378. package/resources/users.d.mts.map +1 -1
  379. package/resources/users.d.ts +60 -18
  380. package/resources/users.d.ts.map +1 -1
  381. package/resources/users.js +13 -2
  382. package/resources/users.js.map +1 -1
  383. package/resources/users.mjs +13 -2
  384. package/resources/users.mjs.map +1 -1
  385. package/resources/verifications.d.mts +7 -5
  386. package/resources/verifications.d.mts.map +1 -1
  387. package/resources/verifications.d.ts +7 -5
  388. package/resources/verifications.d.ts.map +1 -1
  389. package/resources/verifications.js +1 -1
  390. package/resources/verifications.mjs +1 -1
  391. package/resources/webhooks.d.mts +188 -133
  392. package/resources/webhooks.d.mts.map +1 -1
  393. package/resources/webhooks.d.ts +188 -133
  394. package/resources/webhooks.d.ts.map +1 -1
  395. package/resources/webhooks.js +3 -2
  396. package/resources/webhooks.js.map +1 -1
  397. package/resources/webhooks.mjs +3 -2
  398. package/resources/webhooks.mjs.map +1 -1
  399. package/resources/withdrawals.d.mts +60 -47
  400. package/resources/withdrawals.d.mts.map +1 -1
  401. package/resources/withdrawals.d.ts +60 -47
  402. package/resources/withdrawals.d.ts.map +1 -1
  403. package/resources/withdrawals.js +3 -2
  404. package/resources/withdrawals.js.map +1 -1
  405. package/resources/withdrawals.mjs +3 -2
  406. package/resources/withdrawals.mjs.map +1 -1
  407. package/src/client.ts +33 -11
  408. package/src/resources/access-tokens.ts +37 -59
  409. package/src/resources/account-links.ts +15 -13
  410. package/src/resources/ai-chats.ts +76 -30
  411. package/src/resources/app-builds.ts +37 -35
  412. package/src/resources/apps.ts +89 -60
  413. package/src/resources/authorized-users.ts +38 -32
  414. package/src/resources/chat-channels.ts +28 -20
  415. package/src/resources/checkout-configurations.ts +76 -58
  416. package/src/resources/companies.ts +94 -57
  417. package/src/resources/company-token-transactions.ts +91 -68
  418. package/src/resources/course-chapters.ts +27 -22
  419. package/src/resources/course-lesson-interactions.ts +7 -6
  420. package/src/resources/course-lessons.ts +141 -99
  421. package/src/resources/course-students.ts +44 -35
  422. package/src/resources/courses.ts +140 -99
  423. package/src/resources/disputes.ts +176 -120
  424. package/src/resources/dm-channels.ts +29 -16
  425. package/src/resources/dm-members.ts +30 -21
  426. package/src/resources/entries.ts +35 -27
  427. package/src/resources/experiences.ts +58 -49
  428. package/src/resources/fee-markups.ts +38 -27
  429. package/src/resources/files.ts +23 -19
  430. package/src/resources/forum-posts.ts +69 -45
  431. package/src/resources/forums.ts +21 -13
  432. package/src/resources/index.ts +4 -2
  433. package/src/resources/invoices.ts +140 -100
  434. package/src/resources/leads.ts +76 -54
  435. package/src/resources/ledger-accounts.ts +19 -15
  436. package/src/resources/members.ts +27 -28
  437. package/src/resources/memberships.ts +86 -62
  438. package/src/resources/messages.ts +53 -35
  439. package/src/resources/notifications.ts +33 -25
  440. package/src/resources/payment-methods.ts +212 -114
  441. package/src/resources/payments.ts +103 -55
  442. package/src/resources/payout-methods.ts +50 -35
  443. package/src/resources/plans.ts +136 -95
  444. package/src/resources/products.ts +219 -70
  445. package/src/resources/promo-codes.ts +60 -40
  446. package/src/resources/reactions.ts +25 -19
  447. package/src/resources/refunds.ts +59 -39
  448. package/src/resources/reviews.ts +76 -60
  449. package/src/resources/setup-intents.ts +77 -61
  450. package/src/resources/shared.ts +2797 -508
  451. package/src/resources/shipments.ts +30 -21
  452. package/src/resources/support-channels.ts +28 -20
  453. package/src/resources/topups.ts +13 -9
  454. package/src/resources/transfers.ts +37 -28
  455. package/src/resources/users.ts +72 -18
  456. package/src/resources/verifications.ts +7 -5
  457. package/src/resources/webhooks.ts +188 -133
  458. package/src/resources/withdrawals.ts +60 -46
  459. package/src/version.ts +1 -1
  460. package/version.d.mts +1 -1
  461. package/version.d.ts +1 -1
  462. package/version.js +1 -1
  463. package/version.mjs +1 -1
@@ -27,7 +27,7 @@ export declare class Webhooks extends APIResource {
27
27
  */
28
28
  create(body: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
29
29
  /**
30
- * Retrieves a webhook by ID
30
+ * Retrieves the details of an existing webhook.
31
31
  *
32
32
  * Required permissions:
33
33
  *
@@ -57,7 +57,8 @@ export declare class Webhooks extends APIResource {
57
57
  */
58
58
  update(id: string, body?: WebhookUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Webhook>;
59
59
  /**
60
- * Lists webhooks for a company
60
+ * Returns a paginated list of webhook endpoints configured for a company, ordered
61
+ * by most recently created.
61
62
  *
62
63
  * Required permissions:
63
64
  *
@@ -100,45 +101,46 @@ export type WebhookListResponsesCursorPage = CursorPage<WebhookListResponse>;
100
101
  */
101
102
  export type APIVersion = 'v1' | 'v2' | 'v5';
102
103
  /**
103
- * A webhook object, which can be configured to be sent updates about a company
104
+ * A webhook endpoint that receives event notifications for a company via HTTP
105
+ * POST.
104
106
  */
105
107
  export interface Webhook {
106
108
  /**
107
- * The ID of the webhook
109
+ * The unique identifier for the webhook.
108
110
  */
109
111
  id: string;
110
112
  /**
111
- * The API version for this webhook
113
+ * The API version used to format payloads sent to this webhook endpoint.
112
114
  */
113
115
  api_version: APIVersion;
114
116
  /**
115
- * Whether or not to send events for child resources. For example, if the webhook
116
- * is created for a Company, enabling this will only send events from the Company's
117
- * sub-merchants (child companies).
117
+ * Whether events are sent for child resources. For example, if the webhook is on a
118
+ * company, enabling this sends events only from the company's sub-merchants (child
119
+ * companies).
118
120
  */
119
121
  child_resource_events: boolean;
120
122
  /**
121
- * The timestamp of when the webhook was created
123
+ * The datetime the webhook was created.
122
124
  */
123
125
  created_at: string;
124
126
  /**
125
- * Whether or not this webhook is turned on or not
127
+ * Whether this webhook endpoint is currently active and receiving events.
126
128
  */
127
129
  enabled: boolean;
128
130
  /**
129
- * The number of events this webhooks is configured to receive
131
+ * The list of event types this webhook is subscribed to.
130
132
  */
131
133
  events: Array<WebhookEvent>;
132
134
  /**
133
- * The resource ID
135
+ * The ID of the resource (company or product) this webhook is attached to.
134
136
  */
135
137
  resource_id: string;
136
138
  /**
137
- * The list of events that can be tested with this webhook
139
+ * The subset of subscribed event types that support sending test payloads.
138
140
  */
139
141
  testable_events: Array<WebhookEvent>;
140
142
  /**
141
- * The URL the webhook events will be sent to
143
+ * The destination URL where webhook payloads are delivered via HTTP POST.
142
144
  */
143
145
  url: string;
144
146
  }
@@ -147,84 +149,87 @@ export interface Webhook {
147
149
  */
148
150
  export type WebhookEvent = 'invoice.created' | 'invoice.paid' | 'invoice.past_due' | 'invoice.voided' | 'membership.activated' | 'membership.deactivated' | 'entry.created' | 'entry.approved' | 'entry.denied' | 'entry.deleted' | 'setup_intent.requires_action' | 'setup_intent.succeeded' | 'setup_intent.canceled' | 'withdrawal.created' | 'withdrawal.updated' | 'course_lesson_interaction.completed' | 'payout_method.created' | 'verification.succeeded' | 'payment.created' | 'payment.succeeded' | 'payment.failed' | 'payment.pending' | 'dispute.created' | 'dispute.updated' | 'refund.created' | 'refund.updated' | 'membership.cancel_at_period_end_changed';
149
151
  /**
150
- * A webhook object, which can be configured to be sent updates about a company
152
+ * A webhook endpoint that receives event notifications for a company via HTTP
153
+ * POST.
151
154
  */
152
155
  export interface WebhookCreateResponse {
153
156
  /**
154
- * The ID of the webhook
157
+ * The unique identifier for the webhook.
155
158
  */
156
159
  id: string;
157
160
  /**
158
- * The API version for this webhook
161
+ * The API version used to format payloads sent to this webhook endpoint.
159
162
  */
160
163
  api_version: APIVersion;
161
164
  /**
162
- * Whether or not to send events for child resources. For example, if the webhook
163
- * is created for a Company, enabling this will only send events from the Company's
164
- * sub-merchants (child companies).
165
+ * Whether events are sent for child resources. For example, if the webhook is on a
166
+ * company, enabling this sends events only from the company's sub-merchants (child
167
+ * companies).
165
168
  */
166
169
  child_resource_events: boolean;
167
170
  /**
168
- * The timestamp of when the webhook was created
171
+ * The datetime the webhook was created.
169
172
  */
170
173
  created_at: string;
171
174
  /**
172
- * Whether or not this webhook is turned on or not
175
+ * Whether this webhook endpoint is currently active and receiving events.
173
176
  */
174
177
  enabled: boolean;
175
178
  /**
176
- * The number of events this webhooks is configured to receive
179
+ * The list of event types this webhook is subscribed to.
177
180
  */
178
181
  events: Array<WebhookEvent>;
179
182
  /**
180
- * The resource ID
183
+ * The ID of the resource (company or product) this webhook is attached to.
181
184
  */
182
185
  resource_id: string;
183
186
  /**
184
- * The list of events that can be tested with this webhook
187
+ * The subset of subscribed event types that support sending test payloads.
185
188
  */
186
189
  testable_events: Array<WebhookEvent>;
187
190
  /**
188
- * The URL the webhook events will be sent to
191
+ * The destination URL where webhook payloads are delivered via HTTP POST.
189
192
  */
190
193
  url: string;
191
194
  /**
192
- * A unique secret key that will be sent with each webhook event
195
+ * The secret key used to sign webhook payloads for verification. Include this in
196
+ * your HMAC validation logic.
193
197
  */
194
198
  webhook_secret: string;
195
199
  }
196
200
  /**
197
- * A webhook object, which can be configured to be sent updates about a company
201
+ * A webhook endpoint that receives event notifications for a company via HTTP
202
+ * POST.
198
203
  */
199
204
  export interface WebhookListResponse {
200
205
  /**
201
- * The ID of the webhook
206
+ * The unique identifier for the webhook.
202
207
  */
203
208
  id: string;
204
209
  /**
205
- * The API version for this webhook
210
+ * The API version used to format payloads sent to this webhook endpoint.
206
211
  */
207
212
  api_version: APIVersion;
208
213
  /**
209
- * Whether or not to send events for child resources. For example, if the webhook
210
- * is created for a Company, enabling this will only send events from the Company's
211
- * sub-merchants (child companies).
214
+ * Whether events are sent for child resources. For example, if the webhook is on a
215
+ * company, enabling this sends events only from the company's sub-merchants (child
216
+ * companies).
212
217
  */
213
218
  child_resource_events: boolean;
214
219
  /**
215
- * The timestamp of when the webhook was created
220
+ * The datetime the webhook was created.
216
221
  */
217
222
  created_at: string;
218
223
  /**
219
- * Whether or not this webhook is turned on or not
224
+ * Whether this webhook endpoint is currently active and receiving events.
220
225
  */
221
226
  enabled: boolean;
222
227
  /**
223
- * The number of events this webhooks is configured to receive
228
+ * The list of event types this webhook is subscribed to.
224
229
  */
225
230
  events: Array<WebhookEvent>;
226
231
  /**
227
- * The URL the webhook events will be sent to
232
+ * The destination URL where webhook payloads are delivered via HTTP POST.
228
233
  */
229
234
  url: string;
230
235
  }
@@ -242,7 +247,9 @@ export interface InvoiceCreatedWebhookEvent {
242
247
  */
243
248
  api_version: 'v1';
244
249
  /**
245
- * A statement that defines an amount due by a customer.
250
+ * An invoice represents an itemized bill sent by a company to a customer for a
251
+ * specific product and plan, tracking the amount owed, due date, and payment
252
+ * status.
246
253
  */
247
254
  data: Shared.Invoice;
248
255
  /**
@@ -268,7 +275,9 @@ export interface InvoicePaidWebhookEvent {
268
275
  */
269
276
  api_version: 'v1';
270
277
  /**
271
- * A statement that defines an amount due by a customer.
278
+ * An invoice represents an itemized bill sent by a company to a customer for a
279
+ * specific product and plan, tracking the amount owed, due date, and payment
280
+ * status.
272
281
  */
273
282
  data: Shared.Invoice;
274
283
  /**
@@ -294,7 +303,9 @@ export interface InvoicePastDueWebhookEvent {
294
303
  */
295
304
  api_version: 'v1';
296
305
  /**
297
- * A statement that defines an amount due by a customer.
306
+ * An invoice represents an itemized bill sent by a company to a customer for a
307
+ * specific product and plan, tracking the amount owed, due date, and payment
308
+ * status.
298
309
  */
299
310
  data: Shared.Invoice;
300
311
  /**
@@ -320,7 +331,9 @@ export interface InvoiceVoidedWebhookEvent {
320
331
  */
321
332
  api_version: 'v1';
322
333
  /**
323
- * A statement that defines an amount due by a customer.
334
+ * An invoice represents an itemized bill sent by a company to a customer for a
335
+ * specific product and plan, tracking the amount owed, due date, and payment
336
+ * status.
324
337
  */
325
338
  data: Shared.Invoice;
326
339
  /**
@@ -346,8 +359,8 @@ export interface MembershipActivatedWebhookEvent {
346
359
  */
347
360
  api_version: 'v1';
348
361
  /**
349
- * A membership represents a purchase between a User and a Company for a specific
350
- * Product.
362
+ * A membership represents an active relationship between a user and a product. It
363
+ * tracks the user's access, billing status, and renewal schedule.
351
364
  */
352
365
  data: Shared.Membership;
353
366
  /**
@@ -373,8 +386,8 @@ export interface MembershipDeactivatedWebhookEvent {
373
386
  */
374
387
  api_version: 'v1';
375
388
  /**
376
- * A membership represents a purchase between a User and a Company for a specific
377
- * Product.
389
+ * A membership represents an active relationship between a user and a product. It
390
+ * tracks the user's access, billing status, and renewal schedule.
378
391
  */
379
392
  data: Shared.Membership;
380
393
  /**
@@ -400,7 +413,7 @@ export interface EntryCreatedWebhookEvent {
400
413
  */
401
414
  api_version: 'v1';
402
415
  /**
403
- * An object representing an entry in a waitlist.
416
+ * An entry represents a user's signup for a waitlisted plan.
404
417
  */
405
418
  data: Shared.Entry;
406
419
  /**
@@ -426,7 +439,7 @@ export interface EntryApprovedWebhookEvent {
426
439
  */
427
440
  api_version: 'v1';
428
441
  /**
429
- * An object representing an entry in a waitlist.
442
+ * An entry represents a user's signup for a waitlisted plan.
430
443
  */
431
444
  data: Shared.Entry;
432
445
  /**
@@ -452,7 +465,7 @@ export interface EntryDeniedWebhookEvent {
452
465
  */
453
466
  api_version: 'v1';
454
467
  /**
455
- * An object representing an entry in a waitlist.
468
+ * An entry represents a user's signup for a waitlisted plan.
456
469
  */
457
470
  data: Shared.Entry;
458
471
  /**
@@ -478,7 +491,7 @@ export interface EntryDeletedWebhookEvent {
478
491
  */
479
492
  api_version: 'v1';
480
493
  /**
481
- * An object representing an entry in a waitlist.
494
+ * An entry represents a user's signup for a waitlisted plan.
482
495
  */
483
496
  data: Shared.Entry;
484
497
  /**
@@ -504,8 +517,8 @@ export interface SetupIntentRequiresActionWebhookEvent {
504
517
  */
505
518
  api_version: 'v1';
506
519
  /**
507
- * An object representing a setup intent, which is a flow for allowing a customer
508
- * to add a payment method to their account without making a purchase.
520
+ * A setup intent allows a user to save a payment method for future use without
521
+ * making an immediate purchase.
509
522
  */
510
523
  data: SetupIntentsAPI.SetupIntent;
511
524
  /**
@@ -531,8 +544,8 @@ export interface SetupIntentSucceededWebhookEvent {
531
544
  */
532
545
  api_version: 'v1';
533
546
  /**
534
- * An object representing a setup intent, which is a flow for allowing a customer
535
- * to add a payment method to their account without making a purchase.
547
+ * A setup intent allows a user to save a payment method for future use without
548
+ * making an immediate purchase.
536
549
  */
537
550
  data: SetupIntentsAPI.SetupIntent;
538
551
  /**
@@ -558,8 +571,8 @@ export interface SetupIntentCanceledWebhookEvent {
558
571
  */
559
572
  api_version: 'v1';
560
573
  /**
561
- * An object representing a setup intent, which is a flow for allowing a customer
562
- * to add a payment method to their account without making a purchase.
574
+ * A setup intent allows a user to save a payment method for future use without
575
+ * making an immediate purchase.
563
576
  */
564
577
  data: SetupIntentsAPI.SetupIntent;
565
578
  /**
@@ -585,7 +598,8 @@ export interface WithdrawalCreatedWebhookEvent {
585
598
  */
586
599
  api_version: 'v1';
587
600
  /**
588
- * A withdrawal request.
601
+ * A withdrawal represents a request to transfer funds from a ledger account to an
602
+ * external payout method.
589
603
  */
590
604
  data: WithdrawalsAPI.Withdrawal;
591
605
  /**
@@ -611,7 +625,8 @@ export interface WithdrawalUpdatedWebhookEvent {
611
625
  */
612
626
  api_version: 'v1';
613
627
  /**
614
- * A withdrawal request.
628
+ * A withdrawal represents a request to transfer funds from a ledger account to an
629
+ * external payout method.
615
630
  */
616
631
  data: WithdrawalsAPI.Withdrawal;
617
632
  /**
@@ -637,7 +652,8 @@ export interface CourseLessonInteractionCompletedWebhookEvent {
637
652
  */
638
653
  api_version: 'v1';
639
654
  /**
640
- * A lesson interaction tracking user progress in courses
655
+ * A record of a user's progress on a specific lesson, tracking whether they have
656
+ * completed it.
641
657
  */
642
658
  data: Shared.CourseLessonInteraction;
643
659
  /**
@@ -663,7 +679,8 @@ export interface PayoutMethodCreatedWebhookEvent {
663
679
  */
664
680
  api_version: 'v1';
665
681
  /**
666
- * An object representing an user's setup payout destination.
682
+ * A configured payout destination where a user receives earned funds, such as a
683
+ * bank account or digital wallet.
667
684
  */
668
685
  data: PayoutMethodCreatedWebhookEvent.Data;
669
686
  /**
@@ -681,61 +698,68 @@ export interface PayoutMethodCreatedWebhookEvent {
681
698
  }
682
699
  export declare namespace PayoutMethodCreatedWebhookEvent {
683
700
  /**
684
- * An object representing an user's setup payout destination.
701
+ * A configured payout destination where a user receives earned funds, such as a
702
+ * bank account or digital wallet.
685
703
  */
686
704
  interface Data {
687
705
  /**
688
- * The ID of the payout token
706
+ * The unique identifier for the payout token.
689
707
  */
690
708
  id: string;
691
709
  /**
692
- * A reference to identify the payout destination, such as the last 4 digits of an
693
- * account number or an email address.
710
+ * A masked identifier for the payout destination, such as the last four digits of
711
+ * a bank account or an email address. Null if no reference is available.
694
712
  */
695
713
  account_reference: string | null;
696
714
  /**
697
- * The company associated with the payout token
715
+ * The company associated with this payout destination. Null if not linked to a
716
+ * specific company.
698
717
  */
699
718
  company: Data.Company | null;
700
719
  /**
701
- * The date and time the payout token was created
720
+ * The datetime the payout token was created.
702
721
  */
703
722
  created_at: string;
704
723
  /**
705
- * The currency code of the payout destination. This is the currency that payouts
706
- * will be made in for this token.
724
+ * The three-letter ISO currency code that payouts are delivered in for this
725
+ * destination.
707
726
  */
708
727
  currency: string;
709
728
  /**
710
- * The payout destination associated with the payout token
729
+ * The payout destination configuration linked to this token. Null if not yet
730
+ * configured.
711
731
  */
712
732
  destination: Data.Destination | null;
713
733
  /**
714
- * The name of the bank or financial institution.
734
+ * The name of the bank or financial institution receiving payouts. Null if not
735
+ * applicable or not provided.
715
736
  */
716
737
  institution_name: string | null;
717
738
  /**
718
- * Whether this payout token is the default for the payout account
739
+ * Whether this is the default payout destination for the associated payout
740
+ * account.
719
741
  */
720
742
  is_default: boolean;
721
743
  /**
722
- * An optional nickname for the payout token to help the user identify it. This is
723
- * not used by the provider and is only for the user's reference.
744
+ * A user-defined label to help identify this payout destination. Not sent to the
745
+ * provider. Null if no nickname has been set.
724
746
  */
725
747
  nickname: string | null;
726
748
  }
727
749
  namespace Data {
728
750
  /**
729
- * The company associated with the payout token
751
+ * The company associated with this payout destination. Null if not linked to a
752
+ * specific company.
730
753
  */
731
754
  interface Company {
732
755
  /**
733
- * The ID (tag) of the company.
756
+ * The unique identifier for the company.
734
757
  */
735
758
  id: string;
736
759
  }
737
760
  /**
738
- * The payout destination associated with the payout token
761
+ * The payout destination configuration linked to this token. Null if not yet
762
+ * configured.
739
763
  */
740
764
  interface Destination {
741
765
  /**
@@ -763,7 +787,8 @@ export interface VerificationSucceededWebhookEvent {
763
787
  */
764
788
  api_version: 'v1';
765
789
  /**
766
- * An object representing an identity verification session
790
+ * An identity verification session used to confirm a person or entity's identity
791
+ * for payout account eligibility.
767
792
  */
768
793
  data: VerificationSucceededWebhookEvent.Data;
769
794
  /**
@@ -781,11 +806,12 @@ export interface VerificationSucceededWebhookEvent {
781
806
  }
782
807
  export declare namespace VerificationSucceededWebhookEvent {
783
808
  /**
784
- * An object representing an identity verification session
809
+ * An identity verification session used to confirm a person or entity's identity
810
+ * for payout account eligibility.
785
811
  */
786
812
  interface Data {
787
813
  /**
788
- * A unique identifier for the verification.
814
+ * The unique identifier for the verification.
789
815
  */
790
816
  id: string;
791
817
  /**
@@ -793,11 +819,12 @@ export declare namespace VerificationSucceededWebhookEvent {
793
819
  */
794
820
  last_error_code: VerificationsAPI.VerificationErrorCode | null;
795
821
  /**
796
- * The last error reason that occurred during the verification.
822
+ * A human-readable explanation of the most recent verification error. Null if no
823
+ * error has occurred.
797
824
  */
798
825
  last_error_reason: string | null;
799
826
  /**
800
- * The status of the verification.
827
+ * The current status of this verification session.
801
828
  */
802
829
  status: VerificationsAPI.VerificationStatus;
803
830
  }
@@ -812,7 +839,8 @@ export interface PaymentCreatedWebhookEvent {
812
839
  */
813
840
  api_version: 'v1';
814
841
  /**
815
- * An object representing a receipt for a membership.
842
+ * A payment represents a completed or attempted charge. Payments track the amount,
843
+ * status, currency, and payment method used.
816
844
  */
817
845
  data: Shared.Payment;
818
846
  /**
@@ -838,7 +866,8 @@ export interface PaymentSucceededWebhookEvent {
838
866
  */
839
867
  api_version: 'v1';
840
868
  /**
841
- * An object representing a receipt for a membership.
869
+ * A payment represents a completed or attempted charge. Payments track the amount,
870
+ * status, currency, and payment method used.
842
871
  */
843
872
  data: Shared.Payment;
844
873
  /**
@@ -864,7 +893,8 @@ export interface PaymentFailedWebhookEvent {
864
893
  */
865
894
  api_version: 'v1';
866
895
  /**
867
- * An object representing a receipt for a membership.
896
+ * A payment represents a completed or attempted charge. Payments track the amount,
897
+ * status, currency, and payment method used.
868
898
  */
869
899
  data: Shared.Payment;
870
900
  /**
@@ -890,7 +920,8 @@ export interface PaymentPendingWebhookEvent {
890
920
  */
891
921
  api_version: 'v1';
892
922
  /**
893
- * An object representing a receipt for a membership.
923
+ * A payment represents a completed or attempted charge. Payments track the amount,
924
+ * status, currency, and payment method used.
894
925
  */
895
926
  data: Shared.Payment;
896
927
  /**
@@ -916,7 +947,8 @@ export interface DisputeCreatedWebhookEvent {
916
947
  */
917
948
  api_version: 'v1';
918
949
  /**
919
- * An object representing a dispute against a company.
950
+ * A dispute is a chargeback or payment challenge filed against a company,
951
+ * including evidence and response status.
920
952
  */
921
953
  data: DisputesAPI.Dispute;
922
954
  /**
@@ -942,7 +974,8 @@ export interface DisputeUpdatedWebhookEvent {
942
974
  */
943
975
  api_version: 'v1';
944
976
  /**
945
- * An object representing a dispute against a company.
977
+ * A dispute is a chargeback or payment challenge filed against a company,
978
+ * including evidence and response status.
946
979
  */
947
980
  data: DisputesAPI.Dispute;
948
981
  /**
@@ -968,7 +1001,8 @@ export interface RefundCreatedWebhookEvent {
968
1001
  */
969
1002
  api_version: 'v1';
970
1003
  /**
971
- * An object representing a refund made on a payment.
1004
+ * A refund represents a full or partial reversal of a payment, including the
1005
+ * amount, status, and payment provider.
972
1006
  */
973
1007
  data: RefundCreatedWebhookEvent.Data;
974
1008
  /**
@@ -986,35 +1020,39 @@ export interface RefundCreatedWebhookEvent {
986
1020
  }
987
1021
  export declare namespace RefundCreatedWebhookEvent {
988
1022
  /**
989
- * An object representing a refund made on a payment.
1023
+ * A refund represents a full or partial reversal of a payment, including the
1024
+ * amount, status, and payment provider.
990
1025
  */
991
1026
  interface Data {
992
1027
  /**
993
- * The ID of the refund.
1028
+ * The unique identifier for the refund.
994
1029
  */
995
1030
  id: string;
996
1031
  /**
997
- * The amount of the refund.
1032
+ * The refunded amount as a decimal in the specified currency, such as 10.43 for
1033
+ * $10.43 USD.
998
1034
  */
999
1035
  amount: number;
1000
1036
  /**
1001
- * The time the refund was created.
1037
+ * The datetime the refund was created.
1002
1038
  */
1003
1039
  created_at: string;
1004
1040
  /**
1005
- * The currency of the refund.
1041
+ * The three-letter ISO currency code for the refunded amount.
1006
1042
  */
1007
1043
  currency: Shared.Currency;
1008
1044
  /**
1009
- * The payment associated with the refund.
1045
+ * The original payment that this refund was issued against. Null if the payment is
1046
+ * no longer available.
1010
1047
  */
1011
1048
  payment: Data.Payment | null;
1012
1049
  /**
1013
- * The provider of the refund.
1050
+ * The payment provider that processed the refund.
1014
1051
  */
1015
1052
  provider: RefundsAPI.PaymentProvider;
1016
1053
  /**
1017
- * The time the refund was created by the provider.
1054
+ * The timestamp when the refund was created in the payment provider's system. Null
1055
+ * if not available from the provider.
1018
1056
  */
1019
1057
  provider_created_at: string | null;
1020
1058
  /**
@@ -1026,21 +1064,24 @@ export declare namespace RefundCreatedWebhookEvent {
1026
1064
  */
1027
1065
  reference_type: RefundsAPI.RefundReferenceType | null;
1028
1066
  /**
1029
- * The value of the reference.
1067
+ * The tracking reference value from the payment processor, used to trace the
1068
+ * refund through banking networks. Null if no reference was provided.
1030
1069
  */
1031
1070
  reference_value: string | null;
1032
1071
  /**
1033
- * The status of the refund.
1072
+ * The current processing status of the refund, such as pending, succeeded, or
1073
+ * failed.
1034
1074
  */
1035
1075
  status: RefundsAPI.RefundStatus;
1036
1076
  }
1037
1077
  namespace Data {
1038
1078
  /**
1039
- * The payment associated with the refund.
1079
+ * The original payment that this refund was issued against. Null if the payment is
1080
+ * no longer available.
1040
1081
  */
1041
1082
  interface Payment {
1042
1083
  /**
1043
- * The payment ID
1084
+ * The unique identifier for the payment.
1044
1085
  */
1045
1086
  id: string;
1046
1087
  /**
@@ -1052,11 +1093,12 @@ export declare namespace RefundCreatedWebhookEvent {
1052
1093
  */
1053
1094
  card_brand: PaymentsAPI.CardBrands | null;
1054
1095
  /**
1055
- * The last 4 digits of the card used to make the payment.
1096
+ * The last four digits of the card used to make this payment. Null if the payment
1097
+ * was not made with a card.
1056
1098
  */
1057
1099
  card_last4: string | null;
1058
1100
  /**
1059
- * The datetime the payment was created
1101
+ * The datetime the payment was created.
1060
1102
  */
1061
1103
  created_at: string;
1062
1104
  /**
@@ -1076,7 +1118,8 @@ export declare namespace RefundCreatedWebhookEvent {
1076
1118
  */
1077
1119
  membership: Payment.Membership | null;
1078
1120
  /**
1079
- * The datetime the payment was paid
1121
+ * The time at which this payment was successfully collected. Null if the payment
1122
+ * has not yet succeeded. As a Unix timestamp.
1080
1123
  */
1081
1124
  paid_at: string | null;
1082
1125
  /**
@@ -1106,7 +1149,7 @@ export declare namespace RefundCreatedWebhookEvent {
1106
1149
  */
1107
1150
  interface Member {
1108
1151
  /**
1109
- * The ID of the member
1152
+ * The unique identifier for the company member.
1110
1153
  */
1111
1154
  id: string;
1112
1155
  /**
@@ -1119,7 +1162,7 @@ export declare namespace RefundCreatedWebhookEvent {
1119
1162
  */
1120
1163
  interface Membership {
1121
1164
  /**
1122
- * The internal ID of the membership.
1165
+ * The unique identifier for the membership.
1123
1166
  */
1124
1167
  id: string;
1125
1168
  /**
@@ -1132,19 +1175,20 @@ export declare namespace RefundCreatedWebhookEvent {
1132
1175
  */
1133
1176
  interface User {
1134
1177
  /**
1135
- * The internal ID of the user.
1178
+ * The unique identifier for the user.
1136
1179
  */
1137
1180
  id: string;
1138
1181
  /**
1139
- * The email of the user
1182
+ * The user's email address. Requires the member:email:read permission to access.
1183
+ * Null if not authorized.
1140
1184
  */
1141
1185
  email: string | null;
1142
1186
  /**
1143
- * The name of the user from their Whop account.
1187
+ * The user's display name shown on their public profile.
1144
1188
  */
1145
1189
  name: string | null;
1146
1190
  /**
1147
- * The username of the user from their Whop account.
1191
+ * The user's unique username shown on their public profile.
1148
1192
  */
1149
1193
  username: string;
1150
1194
  }
@@ -1161,7 +1205,8 @@ export interface RefundUpdatedWebhookEvent {
1161
1205
  */
1162
1206
  api_version: 'v1';
1163
1207
  /**
1164
- * An object representing a refund made on a payment.
1208
+ * A refund represents a full or partial reversal of a payment, including the
1209
+ * amount, status, and payment provider.
1165
1210
  */
1166
1211
  data: RefundUpdatedWebhookEvent.Data;
1167
1212
  /**
@@ -1179,35 +1224,39 @@ export interface RefundUpdatedWebhookEvent {
1179
1224
  }
1180
1225
  export declare namespace RefundUpdatedWebhookEvent {
1181
1226
  /**
1182
- * An object representing a refund made on a payment.
1227
+ * A refund represents a full or partial reversal of a payment, including the
1228
+ * amount, status, and payment provider.
1183
1229
  */
1184
1230
  interface Data {
1185
1231
  /**
1186
- * The ID of the refund.
1232
+ * The unique identifier for the refund.
1187
1233
  */
1188
1234
  id: string;
1189
1235
  /**
1190
- * The amount of the refund.
1236
+ * The refunded amount as a decimal in the specified currency, such as 10.43 for
1237
+ * $10.43 USD.
1191
1238
  */
1192
1239
  amount: number;
1193
1240
  /**
1194
- * The time the refund was created.
1241
+ * The datetime the refund was created.
1195
1242
  */
1196
1243
  created_at: string;
1197
1244
  /**
1198
- * The currency of the refund.
1245
+ * The three-letter ISO currency code for the refunded amount.
1199
1246
  */
1200
1247
  currency: Shared.Currency;
1201
1248
  /**
1202
- * The payment associated with the refund.
1249
+ * The original payment that this refund was issued against. Null if the payment is
1250
+ * no longer available.
1203
1251
  */
1204
1252
  payment: Data.Payment | null;
1205
1253
  /**
1206
- * The provider of the refund.
1254
+ * The payment provider that processed the refund.
1207
1255
  */
1208
1256
  provider: RefundsAPI.PaymentProvider;
1209
1257
  /**
1210
- * The time the refund was created by the provider.
1258
+ * The timestamp when the refund was created in the payment provider's system. Null
1259
+ * if not available from the provider.
1211
1260
  */
1212
1261
  provider_created_at: string | null;
1213
1262
  /**
@@ -1219,21 +1268,24 @@ export declare namespace RefundUpdatedWebhookEvent {
1219
1268
  */
1220
1269
  reference_type: RefundsAPI.RefundReferenceType | null;
1221
1270
  /**
1222
- * The value of the reference.
1271
+ * The tracking reference value from the payment processor, used to trace the
1272
+ * refund through banking networks. Null if no reference was provided.
1223
1273
  */
1224
1274
  reference_value: string | null;
1225
1275
  /**
1226
- * The status of the refund.
1276
+ * The current processing status of the refund, such as pending, succeeded, or
1277
+ * failed.
1227
1278
  */
1228
1279
  status: RefundsAPI.RefundStatus;
1229
1280
  }
1230
1281
  namespace Data {
1231
1282
  /**
1232
- * The payment associated with the refund.
1283
+ * The original payment that this refund was issued against. Null if the payment is
1284
+ * no longer available.
1233
1285
  */
1234
1286
  interface Payment {
1235
1287
  /**
1236
- * The payment ID
1288
+ * The unique identifier for the payment.
1237
1289
  */
1238
1290
  id: string;
1239
1291
  /**
@@ -1245,11 +1297,12 @@ export declare namespace RefundUpdatedWebhookEvent {
1245
1297
  */
1246
1298
  card_brand: PaymentsAPI.CardBrands | null;
1247
1299
  /**
1248
- * The last 4 digits of the card used to make the payment.
1300
+ * The last four digits of the card used to make this payment. Null if the payment
1301
+ * was not made with a card.
1249
1302
  */
1250
1303
  card_last4: string | null;
1251
1304
  /**
1252
- * The datetime the payment was created
1305
+ * The datetime the payment was created.
1253
1306
  */
1254
1307
  created_at: string;
1255
1308
  /**
@@ -1269,7 +1322,8 @@ export declare namespace RefundUpdatedWebhookEvent {
1269
1322
  */
1270
1323
  membership: Payment.Membership | null;
1271
1324
  /**
1272
- * The datetime the payment was paid
1325
+ * The time at which this payment was successfully collected. Null if the payment
1326
+ * has not yet succeeded. As a Unix timestamp.
1273
1327
  */
1274
1328
  paid_at: string | null;
1275
1329
  /**
@@ -1299,7 +1353,7 @@ export declare namespace RefundUpdatedWebhookEvent {
1299
1353
  */
1300
1354
  interface Member {
1301
1355
  /**
1302
- * The ID of the member
1356
+ * The unique identifier for the company member.
1303
1357
  */
1304
1358
  id: string;
1305
1359
  /**
@@ -1312,7 +1366,7 @@ export declare namespace RefundUpdatedWebhookEvent {
1312
1366
  */
1313
1367
  interface Membership {
1314
1368
  /**
1315
- * The internal ID of the membership.
1369
+ * The unique identifier for the membership.
1316
1370
  */
1317
1371
  id: string;
1318
1372
  /**
@@ -1325,19 +1379,20 @@ export declare namespace RefundUpdatedWebhookEvent {
1325
1379
  */
1326
1380
  interface User {
1327
1381
  /**
1328
- * The internal ID of the user.
1382
+ * The unique identifier for the user.
1329
1383
  */
1330
1384
  id: string;
1331
1385
  /**
1332
- * The email of the user
1386
+ * The user's email address. Requires the member:email:read permission to access.
1387
+ * Null if not authorized.
1333
1388
  */
1334
1389
  email: string | null;
1335
1390
  /**
1336
- * The name of the user from their Whop account.
1391
+ * The user's display name shown on their public profile.
1337
1392
  */
1338
1393
  name: string | null;
1339
1394
  /**
1340
- * The username of the user from their Whop account.
1395
+ * The user's unique username shown on their public profile.
1341
1396
  */
1342
1397
  username: string;
1343
1398
  }
@@ -1354,8 +1409,8 @@ export interface MembershipCancelAtPeriodEndChangedWebhookEvent {
1354
1409
  */
1355
1410
  api_version: 'v1';
1356
1411
  /**
1357
- * A membership represents a purchase between a User and a Company for a specific
1358
- * Product.
1412
+ * A membership represents an active relationship between a user and a product. It
1413
+ * tracks the user's access, billing status, and renewal schedule.
1359
1414
  */
1360
1415
  data: Shared.Membership;
1361
1416
  /**
@@ -1424,7 +1479,7 @@ export interface WebhookUpdateParams {
1424
1479
  }
1425
1480
  export interface WebhookListParams extends CursorPageParams {
1426
1481
  /**
1427
- * The ID of the company to list webhooks for
1482
+ * The unique identifier of the company to list webhooks for.
1428
1483
  */
1429
1484
  company_id: string;
1430
1485
  /**