@whop/sdk 0.0.27 → 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 (459) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/client.d.mts +4 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +7 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +7 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/access-tokens.d.mts +19 -20
  12. package/resources/access-tokens.d.mts.map +1 -1
  13. package/resources/access-tokens.d.ts +19 -20
  14. package/resources/access-tokens.d.ts.map +1 -1
  15. package/resources/access-tokens.js +4 -4
  16. package/resources/access-tokens.mjs +4 -4
  17. package/resources/account-links.d.mts +15 -13
  18. package/resources/account-links.d.mts.map +1 -1
  19. package/resources/account-links.d.ts +15 -13
  20. package/resources/account-links.d.ts.map +1 -1
  21. package/resources/account-links.js +2 -3
  22. package/resources/account-links.js.map +1 -1
  23. package/resources/account-links.mjs +2 -3
  24. package/resources/account-links.mjs.map +1 -1
  25. package/resources/ai-chats.d.mts +38 -26
  26. package/resources/ai-chats.d.mts.map +1 -1
  27. package/resources/ai-chats.d.ts +38 -26
  28. package/resources/ai-chats.d.ts.map +1 -1
  29. package/resources/ai-chats.js +5 -5
  30. package/resources/ai-chats.mjs +5 -5
  31. package/resources/app-builds.d.mts +35 -33
  32. package/resources/app-builds.d.mts.map +1 -1
  33. package/resources/app-builds.d.ts +35 -33
  34. package/resources/app-builds.d.ts.map +1 -1
  35. package/resources/app-builds.js +7 -4
  36. package/resources/app-builds.js.map +1 -1
  37. package/resources/app-builds.mjs +7 -4
  38. package/resources/app-builds.mjs.map +1 -1
  39. package/resources/apps.d.mts +81 -56
  40. package/resources/apps.d.mts.map +1 -1
  41. package/resources/apps.d.ts +81 -56
  42. package/resources/apps.d.ts.map +1 -1
  43. package/resources/apps.js +7 -4
  44. package/resources/apps.js.map +1 -1
  45. package/resources/apps.mjs +7 -4
  46. package/resources/apps.mjs.map +1 -1
  47. package/resources/authorized-users.d.mts +32 -26
  48. package/resources/authorized-users.d.mts.map +1 -1
  49. package/resources/authorized-users.d.ts +32 -26
  50. package/resources/authorized-users.d.ts.map +1 -1
  51. package/resources/authorized-users.js +3 -2
  52. package/resources/authorized-users.js.map +1 -1
  53. package/resources/authorized-users.mjs +3 -2
  54. package/resources/authorized-users.mjs.map +1 -1
  55. package/resources/chat-channels.d.mts +27 -19
  56. package/resources/chat-channels.d.mts.map +1 -1
  57. package/resources/chat-channels.d.ts +27 -19
  58. package/resources/chat-channels.d.ts.map +1 -1
  59. package/resources/chat-channels.js +5 -3
  60. package/resources/chat-channels.js.map +1 -1
  61. package/resources/chat-channels.mjs +5 -3
  62. package/resources/chat-channels.mjs.map +1 -1
  63. package/resources/checkout-configurations.d.mts +55 -46
  64. package/resources/checkout-configurations.d.mts.map +1 -1
  65. package/resources/checkout-configurations.d.ts +55 -46
  66. package/resources/checkout-configurations.d.ts.map +1 -1
  67. package/resources/checkout-configurations.js +3 -2
  68. package/resources/checkout-configurations.js.map +1 -1
  69. package/resources/checkout-configurations.mjs +3 -2
  70. package/resources/checkout-configurations.mjs.map +1 -1
  71. package/resources/companies.d.mts +65 -46
  72. package/resources/companies.d.mts.map +1 -1
  73. package/resources/companies.d.ts +65 -46
  74. package/resources/companies.d.ts.map +1 -1
  75. package/resources/companies.js +7 -8
  76. package/resources/companies.js.map +1 -1
  77. package/resources/companies.mjs +7 -8
  78. package/resources/companies.mjs.map +1 -1
  79. package/resources/company-token-transactions.d.mts +80 -57
  80. package/resources/company-token-transactions.d.mts.map +1 -1
  81. package/resources/company-token-transactions.d.ts +80 -57
  82. package/resources/company-token-transactions.d.ts.map +1 -1
  83. package/resources/company-token-transactions.js +6 -3
  84. package/resources/company-token-transactions.js.map +1 -1
  85. package/resources/company-token-transactions.mjs +6 -3
  86. package/resources/company-token-transactions.mjs.map +1 -1
  87. package/resources/course-chapters.d.mts +24 -19
  88. package/resources/course-chapters.d.mts.map +1 -1
  89. package/resources/course-chapters.d.ts +24 -19
  90. package/resources/course-chapters.d.ts.map +1 -1
  91. package/resources/course-chapters.js +5 -5
  92. package/resources/course-chapters.mjs +5 -5
  93. package/resources/course-lesson-interactions.d.mts +7 -6
  94. package/resources/course-lesson-interactions.d.mts.map +1 -1
  95. package/resources/course-lesson-interactions.d.ts +7 -6
  96. package/resources/course-lesson-interactions.d.ts.map +1 -1
  97. package/resources/course-lesson-interactions.js +3 -2
  98. package/resources/course-lesson-interactions.js.map +1 -1
  99. package/resources/course-lesson-interactions.mjs +3 -2
  100. package/resources/course-lesson-interactions.mjs.map +1 -1
  101. package/resources/course-lessons.d.mts +126 -84
  102. package/resources/course-lessons.d.mts.map +1 -1
  103. package/resources/course-lessons.d.ts +126 -84
  104. package/resources/course-lessons.d.ts.map +1 -1
  105. package/resources/course-lessons.js +12 -8
  106. package/resources/course-lessons.js.map +1 -1
  107. package/resources/course-lessons.mjs +12 -8
  108. package/resources/course-lessons.mjs.map +1 -1
  109. package/resources/course-students.d.mts +38 -29
  110. package/resources/course-students.d.mts.map +1 -1
  111. package/resources/course-students.d.ts +38 -29
  112. package/resources/course-students.d.ts.map +1 -1
  113. package/resources/course-students.js +3 -2
  114. package/resources/course-students.js.map +1 -1
  115. package/resources/course-students.mjs +3 -2
  116. package/resources/course-students.mjs.map +1 -1
  117. package/resources/courses.d.mts +132 -91
  118. package/resources/courses.d.mts.map +1 -1
  119. package/resources/courses.d.ts +132 -91
  120. package/resources/courses.d.ts.map +1 -1
  121. package/resources/courses.js +9 -5
  122. package/resources/courses.js.map +1 -1
  123. package/resources/courses.mjs +9 -5
  124. package/resources/courses.mjs.map +1 -1
  125. package/resources/disputes.d.mts +156 -102
  126. package/resources/disputes.d.mts.map +1 -1
  127. package/resources/disputes.d.ts +156 -102
  128. package/resources/disputes.d.ts.map +1 -1
  129. package/resources/disputes.js +4 -2
  130. package/resources/disputes.js.map +1 -1
  131. package/resources/disputes.mjs +4 -2
  132. package/resources/disputes.mjs.map +1 -1
  133. package/resources/dm-channels.d.mts +29 -16
  134. package/resources/dm-channels.d.mts.map +1 -1
  135. package/resources/dm-channels.d.ts +29 -16
  136. package/resources/dm-channels.d.ts.map +1 -1
  137. package/resources/dm-channels.js +9 -5
  138. package/resources/dm-channels.js.map +1 -1
  139. package/resources/dm-channels.mjs +9 -5
  140. package/resources/dm-channels.mjs.map +1 -1
  141. package/resources/dm-members.d.mts +30 -21
  142. package/resources/dm-members.d.mts.map +1 -1
  143. package/resources/dm-members.d.ts +30 -21
  144. package/resources/dm-members.d.ts.map +1 -1
  145. package/resources/dm-members.js +9 -5
  146. package/resources/dm-members.js.map +1 -1
  147. package/resources/dm-members.mjs +9 -5
  148. package/resources/dm-members.mjs.map +1 -1
  149. package/resources/entries.d.mts +29 -21
  150. package/resources/entries.d.mts.map +1 -1
  151. package/resources/entries.d.ts +29 -21
  152. package/resources/entries.d.ts.map +1 -1
  153. package/resources/entries.js +7 -4
  154. package/resources/entries.js.map +1 -1
  155. package/resources/entries.mjs +7 -4
  156. package/resources/entries.mjs.map +1 -1
  157. package/resources/experiences.d.mts +53 -45
  158. package/resources/experiences.d.mts.map +1 -1
  159. package/resources/experiences.d.ts +53 -45
  160. package/resources/experiences.d.ts.map +1 -1
  161. package/resources/experiences.js +6 -5
  162. package/resources/experiences.js.map +1 -1
  163. package/resources/experiences.mjs +6 -5
  164. package/resources/experiences.mjs.map +1 -1
  165. package/resources/fee-markups.d.mts +32 -21
  166. package/resources/fee-markups.d.mts.map +1 -1
  167. package/resources/fee-markups.d.ts +32 -21
  168. package/resources/fee-markups.d.ts.map +1 -1
  169. package/resources/fee-markups.js +6 -3
  170. package/resources/fee-markups.js.map +1 -1
  171. package/resources/fee-markups.mjs +6 -3
  172. package/resources/fee-markups.mjs.map +1 -1
  173. package/resources/files.d.mts +21 -17
  174. package/resources/files.d.mts.map +1 -1
  175. package/resources/files.d.ts +21 -17
  176. package/resources/files.d.ts.map +1 -1
  177. package/resources/files.js +3 -2
  178. package/resources/files.js.map +1 -1
  179. package/resources/files.mjs +3 -2
  180. package/resources/files.mjs.map +1 -1
  181. package/resources/forum-posts.d.mts +62 -43
  182. package/resources/forum-posts.d.mts.map +1 -1
  183. package/resources/forum-posts.d.ts +62 -43
  184. package/resources/forum-posts.d.ts.map +1 -1
  185. package/resources/forum-posts.js +8 -4
  186. package/resources/forum-posts.js.map +1 -1
  187. package/resources/forum-posts.mjs +8 -4
  188. package/resources/forum-posts.mjs.map +1 -1
  189. package/resources/forums.d.mts +20 -12
  190. package/resources/forums.d.mts.map +1 -1
  191. package/resources/forums.d.ts +20 -12
  192. package/resources/forums.d.ts.map +1 -1
  193. package/resources/forums.js +5 -3
  194. package/resources/forums.js.map +1 -1
  195. package/resources/forums.mjs +5 -3
  196. package/resources/forums.mjs.map +1 -1
  197. package/resources/index.d.mts +2 -2
  198. package/resources/index.d.mts.map +1 -1
  199. package/resources/index.d.ts +2 -2
  200. package/resources/index.d.ts.map +1 -1
  201. package/resources/index.js.map +1 -1
  202. package/resources/index.mjs.map +1 -1
  203. package/resources/invoices.d.mts +108 -80
  204. package/resources/invoices.d.mts.map +1 -1
  205. package/resources/invoices.d.ts +108 -80
  206. package/resources/invoices.d.ts.map +1 -1
  207. package/resources/invoices.js +7 -4
  208. package/resources/invoices.js.map +1 -1
  209. package/resources/invoices.mjs +7 -4
  210. package/resources/invoices.mjs.map +1 -1
  211. package/resources/leads.d.mts +64 -42
  212. package/resources/leads.d.mts.map +1 -1
  213. package/resources/leads.d.ts +64 -42
  214. package/resources/leads.d.ts.map +1 -1
  215. package/resources/leads.js +6 -4
  216. package/resources/leads.js.map +1 -1
  217. package/resources/leads.mjs +6 -4
  218. package/resources/leads.mjs.map +1 -1
  219. package/resources/ledger-accounts.d.mts +10 -8
  220. package/resources/ledger-accounts.d.mts.map +1 -1
  221. package/resources/ledger-accounts.d.ts +10 -8
  222. package/resources/ledger-accounts.d.ts.map +1 -1
  223. package/resources/ledger-accounts.js +1 -1
  224. package/resources/ledger-accounts.mjs +1 -1
  225. package/resources/members.d.mts +18 -19
  226. package/resources/members.d.mts.map +1 -1
  227. package/resources/members.d.ts +18 -19
  228. package/resources/members.d.ts.map +1 -1
  229. package/resources/members.js +3 -2
  230. package/resources/members.js.map +1 -1
  231. package/resources/members.mjs +3 -2
  232. package/resources/members.mjs.map +1 -1
  233. package/resources/memberships.d.mts +69 -51
  234. package/resources/memberships.d.mts.map +1 -1
  235. package/resources/memberships.d.ts +69 -51
  236. package/resources/memberships.d.ts.map +1 -1
  237. package/resources/memberships.js +12 -8
  238. package/resources/memberships.js.map +1 -1
  239. package/resources/memberships.mjs +12 -8
  240. package/resources/memberships.mjs.map +1 -1
  241. package/resources/messages.d.mts +46 -32
  242. package/resources/messages.d.mts.map +1 -1
  243. package/resources/messages.d.ts +46 -32
  244. package/resources/messages.d.ts.map +1 -1
  245. package/resources/messages.js +9 -5
  246. package/resources/messages.js.map +1 -1
  247. package/resources/messages.mjs +9 -5
  248. package/resources/messages.mjs.map +1 -1
  249. package/resources/notifications.d.mts +33 -25
  250. package/resources/notifications.d.mts.map +1 -1
  251. package/resources/notifications.d.ts +33 -25
  252. package/resources/notifications.d.ts.map +1 -1
  253. package/resources/notifications.js +2 -1
  254. package/resources/notifications.js.map +1 -1
  255. package/resources/notifications.mjs +2 -1
  256. package/resources/notifications.mjs.map +1 -1
  257. package/resources/payment-methods.d.mts +212 -114
  258. package/resources/payment-methods.d.mts.map +1 -1
  259. package/resources/payment-methods.d.ts +212 -114
  260. package/resources/payment-methods.d.ts.map +1 -1
  261. package/resources/payment-methods.js +5 -10
  262. package/resources/payment-methods.js.map +1 -1
  263. package/resources/payment-methods.mjs +5 -10
  264. package/resources/payment-methods.mjs.map +1 -1
  265. package/resources/payments.d.mts +73 -40
  266. package/resources/payments.d.mts.map +1 -1
  267. package/resources/payments.d.ts +73 -40
  268. package/resources/payments.d.ts.map +1 -1
  269. package/resources/payments.js +23 -10
  270. package/resources/payments.js.map +1 -1
  271. package/resources/payments.mjs +23 -10
  272. package/resources/payments.mjs.map +1 -1
  273. package/resources/payout-methods.d.mts +44 -29
  274. package/resources/payout-methods.d.mts.map +1 -1
  275. package/resources/payout-methods.d.ts +44 -29
  276. package/resources/payout-methods.d.ts.map +1 -1
  277. package/resources/payout-methods.js +3 -2
  278. package/resources/payout-methods.js.map +1 -1
  279. package/resources/payout-methods.mjs +3 -2
  280. package/resources/payout-methods.mjs.map +1 -1
  281. package/resources/plans.d.mts +121 -90
  282. package/resources/plans.d.mts.map +1 -1
  283. package/resources/plans.d.ts +121 -90
  284. package/resources/plans.d.ts.map +1 -1
  285. package/resources/plans.js +9 -5
  286. package/resources/plans.js.map +1 -1
  287. package/resources/plans.mjs +9 -5
  288. package/resources/plans.mjs.map +1 -1
  289. package/resources/products.d.mts +76 -65
  290. package/resources/products.d.mts.map +1 -1
  291. package/resources/products.d.ts +76 -65
  292. package/resources/products.d.ts.map +1 -1
  293. package/resources/products.js +7 -5
  294. package/resources/products.js.map +1 -1
  295. package/resources/products.mjs +7 -5
  296. package/resources/products.mjs.map +1 -1
  297. package/resources/promo-codes.d.mts +41 -31
  298. package/resources/promo-codes.d.mts.map +1 -1
  299. package/resources/promo-codes.d.ts +41 -31
  300. package/resources/promo-codes.d.ts.map +1 -1
  301. package/resources/promo-codes.js +7 -4
  302. package/resources/promo-codes.js.map +1 -1
  303. package/resources/promo-codes.mjs +7 -4
  304. package/resources/promo-codes.mjs.map +1 -1
  305. package/resources/reactions.d.mts +24 -18
  306. package/resources/reactions.d.mts.map +1 -1
  307. package/resources/reactions.d.ts +24 -18
  308. package/resources/reactions.d.ts.map +1 -1
  309. package/resources/reactions.js +7 -4
  310. package/resources/reactions.js.map +1 -1
  311. package/resources/reactions.mjs +7 -4
  312. package/resources/reactions.mjs.map +1 -1
  313. package/resources/refunds.d.mts +43 -29
  314. package/resources/refunds.d.mts.map +1 -1
  315. package/resources/refunds.d.ts +43 -29
  316. package/resources/refunds.d.ts.map +1 -1
  317. package/resources/refunds.js +3 -2
  318. package/resources/refunds.js.map +1 -1
  319. package/resources/refunds.mjs +3 -2
  320. package/resources/refunds.mjs.map +1 -1
  321. package/resources/reviews.d.mts +66 -50
  322. package/resources/reviews.d.mts.map +1 -1
  323. package/resources/reviews.d.ts +66 -50
  324. package/resources/reviews.d.ts.map +1 -1
  325. package/resources/reviews.js +3 -2
  326. package/resources/reviews.js.map +1 -1
  327. package/resources/reviews.mjs +3 -2
  328. package/resources/reviews.mjs.map +1 -1
  329. package/resources/setup-intents.d.mts +61 -43
  330. package/resources/setup-intents.d.mts.map +1 -1
  331. package/resources/setup-intents.d.ts +61 -43
  332. package/resources/setup-intents.d.ts.map +1 -1
  333. package/resources/setup-intents.js +4 -10
  334. package/resources/setup-intents.js.map +1 -1
  335. package/resources/setup-intents.mjs +4 -10
  336. package/resources/setup-intents.mjs.map +1 -1
  337. package/resources/shared.d.mts +695 -388
  338. package/resources/shared.d.mts.map +1 -1
  339. package/resources/shared.d.ts +695 -388
  340. package/resources/shared.d.ts.map +1 -1
  341. package/resources/shipments.d.mts +26 -17
  342. package/resources/shipments.d.mts.map +1 -1
  343. package/resources/shipments.d.ts +26 -17
  344. package/resources/shipments.d.ts.map +1 -1
  345. package/resources/shipments.js +5 -3
  346. package/resources/shipments.js.map +1 -1
  347. package/resources/shipments.mjs +5 -3
  348. package/resources/shipments.mjs.map +1 -1
  349. package/resources/support-channels.d.mts +27 -19
  350. package/resources/support-channels.d.mts.map +1 -1
  351. package/resources/support-channels.d.ts +27 -19
  352. package/resources/support-channels.d.ts.map +1 -1
  353. package/resources/support-channels.js +5 -4
  354. package/resources/support-channels.js.map +1 -1
  355. package/resources/support-channels.mjs +5 -4
  356. package/resources/support-channels.mjs.map +1 -1
  357. package/resources/topups.d.mts +11 -9
  358. package/resources/topups.d.mts.map +1 -1
  359. package/resources/topups.d.ts +11 -9
  360. package/resources/topups.d.ts.map +1 -1
  361. package/resources/topups.js +2 -1
  362. package/resources/topups.js.map +1 -1
  363. package/resources/topups.mjs +2 -1
  364. package/resources/topups.mjs.map +1 -1
  365. package/resources/transfers.d.mts +35 -29
  366. package/resources/transfers.d.mts.map +1 -1
  367. package/resources/transfers.d.ts +35 -29
  368. package/resources/transfers.d.ts.map +1 -1
  369. package/resources/transfers.js +5 -3
  370. package/resources/transfers.js.map +1 -1
  371. package/resources/transfers.mjs +5 -3
  372. package/resources/transfers.mjs.map +1 -1
  373. package/resources/users.d.mts +20 -16
  374. package/resources/users.d.mts.map +1 -1
  375. package/resources/users.d.ts +20 -16
  376. package/resources/users.d.ts.map +1 -1
  377. package/resources/users.js +4 -3
  378. package/resources/users.js.map +1 -1
  379. package/resources/users.mjs +4 -3
  380. package/resources/users.mjs.map +1 -1
  381. package/resources/verifications.d.mts +6 -4
  382. package/resources/verifications.d.mts.map +1 -1
  383. package/resources/verifications.d.ts +6 -4
  384. package/resources/verifications.d.ts.map +1 -1
  385. package/resources/verifications.js +1 -1
  386. package/resources/verifications.mjs +1 -1
  387. package/resources/webhooks.d.mts +136 -95
  388. package/resources/webhooks.d.mts.map +1 -1
  389. package/resources/webhooks.d.ts +136 -95
  390. package/resources/webhooks.d.ts.map +1 -1
  391. package/resources/webhooks.js +3 -2
  392. package/resources/webhooks.js.map +1 -1
  393. package/resources/webhooks.mjs +3 -2
  394. package/resources/webhooks.mjs.map +1 -1
  395. package/resources/withdrawals.d.mts +53 -44
  396. package/resources/withdrawals.d.mts.map +1 -1
  397. package/resources/withdrawals.d.ts +53 -44
  398. package/resources/withdrawals.d.ts.map +1 -1
  399. package/resources/withdrawals.js +3 -2
  400. package/resources/withdrawals.js.map +1 -1
  401. package/resources/withdrawals.mjs +3 -2
  402. package/resources/withdrawals.mjs.map +1 -1
  403. package/src/client.ts +13 -3
  404. package/src/resources/access-tokens.ts +19 -20
  405. package/src/resources/account-links.ts +15 -13
  406. package/src/resources/ai-chats.ts +39 -26
  407. package/src/resources/app-builds.ts +35 -33
  408. package/src/resources/apps.ts +84 -56
  409. package/src/resources/authorized-users.ts +32 -26
  410. package/src/resources/chat-channels.ts +27 -19
  411. package/src/resources/checkout-configurations.ts +56 -46
  412. package/src/resources/companies.ts +68 -46
  413. package/src/resources/company-token-transactions.ts +81 -58
  414. package/src/resources/course-chapters.ts +24 -19
  415. package/src/resources/course-lesson-interactions.ts +7 -6
  416. package/src/resources/course-lessons.ts +126 -84
  417. package/src/resources/course-students.ts +38 -29
  418. package/src/resources/courses.ts +132 -91
  419. package/src/resources/disputes.ts +156 -102
  420. package/src/resources/dm-channels.ts +29 -16
  421. package/src/resources/dm-members.ts +30 -21
  422. package/src/resources/entries.ts +29 -21
  423. package/src/resources/experiences.ts +53 -45
  424. package/src/resources/fee-markups.ts +32 -21
  425. package/src/resources/files.ts +21 -17
  426. package/src/resources/forum-posts.ts +63 -43
  427. package/src/resources/forums.ts +20 -12
  428. package/src/resources/index.ts +2 -1
  429. package/src/resources/invoices.ts +112 -80
  430. package/src/resources/leads.ts +64 -42
  431. package/src/resources/ledger-accounts.ts +10 -8
  432. package/src/resources/members.ts +18 -19
  433. package/src/resources/memberships.ts +69 -51
  434. package/src/resources/messages.ts +46 -32
  435. package/src/resources/notifications.ts +33 -25
  436. package/src/resources/payment-methods.ts +212 -114
  437. package/src/resources/payments.ts +77 -39
  438. package/src/resources/payout-methods.ts +44 -29
  439. package/src/resources/plans.ts +121 -90
  440. package/src/resources/products.ts +215 -68
  441. package/src/resources/promo-codes.ts +41 -31
  442. package/src/resources/reactions.ts +24 -18
  443. package/src/resources/refunds.ts +44 -29
  444. package/src/resources/reviews.ts +66 -50
  445. package/src/resources/setup-intents.ts +61 -43
  446. package/src/resources/shared.ts +2637 -387
  447. package/src/resources/shipments.ts +26 -17
  448. package/src/resources/support-channels.ts +27 -19
  449. package/src/resources/topups.ts +11 -9
  450. package/src/resources/transfers.ts +35 -29
  451. package/src/resources/users.ts +20 -16
  452. package/src/resources/verifications.ts +6 -4
  453. package/src/resources/webhooks.ts +136 -95
  454. package/src/resources/withdrawals.ts +53 -43
  455. package/src/version.ts +1 -1
  456. package/version.d.mts +1 -1
  457. package/version.d.ts +1 -1
  458. package/version.js +1 -1
  459. package/version.mjs +1 -1
@@ -35,7 +35,7 @@ export class Webhooks extends APIResource {
35
35
  }
36
36
 
37
37
  /**
38
- * Retrieves a webhook by ID
38
+ * Retrieves the details of an existing webhook.
39
39
  *
40
40
  * Required permissions:
41
41
  *
@@ -75,7 +75,8 @@ export class Webhooks extends APIResource {
75
75
  }
76
76
 
77
77
  /**
78
- * Lists webhooks for a company
78
+ * Returns a paginated list of webhook endpoints configured for a company, ordered
79
+ * by most recently created.
79
80
  *
80
81
  * Required permissions:
81
82
  *
@@ -148,14 +149,14 @@ export interface Webhook {
148
149
  id: string;
149
150
 
150
151
  /**
151
- * The API version for this webhook
152
+ * The API version used to format payloads sent to this webhook endpoint.
152
153
  */
153
154
  api_version: APIVersion;
154
155
 
155
156
  /**
156
- * Whether or not to send events for child resources. For example, if the webhook
157
- * is created for a Company, enabling this will only send events from the Company's
158
- * sub-merchants (child companies).
157
+ * Whether events are sent for child resources. For example, if the webhook is on a
158
+ * company, enabling this sends events only from the company's sub-merchants (child
159
+ * companies).
159
160
  */
160
161
  child_resource_events: boolean;
161
162
 
@@ -165,27 +166,27 @@ export interface Webhook {
165
166
  created_at: string;
166
167
 
167
168
  /**
168
- * Whether or not this webhook is turned on or not
169
+ * Whether this webhook endpoint is currently active and receiving events.
169
170
  */
170
171
  enabled: boolean;
171
172
 
172
173
  /**
173
- * The number of events this webhooks is configured to receive
174
+ * The list of event types this webhook is subscribed to.
174
175
  */
175
176
  events: Array<WebhookEvent>;
176
177
 
177
178
  /**
178
- * The resource ID
179
+ * The ID of the resource (company or product) this webhook is attached to.
179
180
  */
180
181
  resource_id: string;
181
182
 
182
183
  /**
183
- * The list of events that can be tested with this webhook
184
+ * The subset of subscribed event types that support sending test payloads.
184
185
  */
185
186
  testable_events: Array<WebhookEvent>;
186
187
 
187
188
  /**
188
- * The URL the webhook events will be sent to
189
+ * The destination URL where webhook payloads are delivered via HTTP POST.
189
190
  */
190
191
  url: string;
191
192
  }
@@ -233,14 +234,14 @@ export interface WebhookCreateResponse {
233
234
  id: string;
234
235
 
235
236
  /**
236
- * The API version for this webhook
237
+ * The API version used to format payloads sent to this webhook endpoint.
237
238
  */
238
239
  api_version: APIVersion;
239
240
 
240
241
  /**
241
- * Whether or not to send events for child resources. For example, if the webhook
242
- * is created for a Company, enabling this will only send events from the Company's
243
- * sub-merchants (child companies).
242
+ * Whether events are sent for child resources. For example, if the webhook is on a
243
+ * company, enabling this sends events only from the company's sub-merchants (child
244
+ * companies).
244
245
  */
245
246
  child_resource_events: boolean;
246
247
 
@@ -250,32 +251,33 @@ export interface WebhookCreateResponse {
250
251
  created_at: string;
251
252
 
252
253
  /**
253
- * Whether or not this webhook is turned on or not
254
+ * Whether this webhook endpoint is currently active and receiving events.
254
255
  */
255
256
  enabled: boolean;
256
257
 
257
258
  /**
258
- * The number of events this webhooks is configured to receive
259
+ * The list of event types this webhook is subscribed to.
259
260
  */
260
261
  events: Array<WebhookEvent>;
261
262
 
262
263
  /**
263
- * The resource ID
264
+ * The ID of the resource (company or product) this webhook is attached to.
264
265
  */
265
266
  resource_id: string;
266
267
 
267
268
  /**
268
- * The list of events that can be tested with this webhook
269
+ * The subset of subscribed event types that support sending test payloads.
269
270
  */
270
271
  testable_events: Array<WebhookEvent>;
271
272
 
272
273
  /**
273
- * The URL the webhook events will be sent to
274
+ * The destination URL where webhook payloads are delivered via HTTP POST.
274
275
  */
275
276
  url: string;
276
277
 
277
278
  /**
278
- * A unique secret key that will be sent with each webhook event
279
+ * The secret key used to sign webhook payloads for verification. Include this in
280
+ * your HMAC validation logic.
279
281
  */
280
282
  webhook_secret: string;
281
283
  }
@@ -291,14 +293,14 @@ export interface WebhookListResponse {
291
293
  id: string;
292
294
 
293
295
  /**
294
- * The API version for this webhook
296
+ * The API version used to format payloads sent to this webhook endpoint.
295
297
  */
296
298
  api_version: APIVersion;
297
299
 
298
300
  /**
299
- * Whether or not to send events for child resources. For example, if the webhook
300
- * is created for a Company, enabling this will only send events from the Company's
301
- * sub-merchants (child companies).
301
+ * Whether events are sent for child resources. For example, if the webhook is on a
302
+ * company, enabling this sends events only from the company's sub-merchants (child
303
+ * companies).
302
304
  */
303
305
  child_resource_events: boolean;
304
306
 
@@ -308,17 +310,17 @@ export interface WebhookListResponse {
308
310
  created_at: string;
309
311
 
310
312
  /**
311
- * Whether or not this webhook is turned on or not
313
+ * Whether this webhook endpoint is currently active and receiving events.
312
314
  */
313
315
  enabled: boolean;
314
316
 
315
317
  /**
316
- * The number of events this webhooks is configured to receive
318
+ * The list of event types this webhook is subscribed to.
317
319
  */
318
320
  events: Array<WebhookEvent>;
319
321
 
320
322
  /**
321
- * The URL the webhook events will be sent to
323
+ * The destination URL where webhook payloads are delivered via HTTP POST.
322
324
  */
323
325
  url: string;
324
326
  }
@@ -340,7 +342,9 @@ export interface InvoiceCreatedWebhookEvent {
340
342
  api_version: 'v1';
341
343
 
342
344
  /**
343
- * A statement that defines an amount due by a customer.
345
+ * An invoice represents an itemized bill sent by a company to a customer for a
346
+ * specific product and plan, tracking the amount owed, due date, and payment
347
+ * status.
344
348
  */
345
349
  data: Shared.Invoice;
346
350
 
@@ -372,7 +376,9 @@ export interface InvoicePaidWebhookEvent {
372
376
  api_version: 'v1';
373
377
 
374
378
  /**
375
- * A statement that defines an amount due by a customer.
379
+ * An invoice represents an itemized bill sent by a company to a customer for a
380
+ * specific product and plan, tracking the amount owed, due date, and payment
381
+ * status.
376
382
  */
377
383
  data: Shared.Invoice;
378
384
 
@@ -404,7 +410,9 @@ export interface InvoicePastDueWebhookEvent {
404
410
  api_version: 'v1';
405
411
 
406
412
  /**
407
- * A statement that defines an amount due by a customer.
413
+ * An invoice represents an itemized bill sent by a company to a customer for a
414
+ * specific product and plan, tracking the amount owed, due date, and payment
415
+ * status.
408
416
  */
409
417
  data: Shared.Invoice;
410
418
 
@@ -436,7 +444,9 @@ export interface InvoiceVoidedWebhookEvent {
436
444
  api_version: 'v1';
437
445
 
438
446
  /**
439
- * A statement that defines an amount due by a customer.
447
+ * An invoice represents an itemized bill sent by a company to a customer for a
448
+ * specific product and plan, tracking the amount owed, due date, and payment
449
+ * status.
440
450
  */
441
451
  data: Shared.Invoice;
442
452
 
@@ -662,7 +672,8 @@ export interface SetupIntentRequiresActionWebhookEvent {
662
672
  api_version: 'v1';
663
673
 
664
674
  /**
665
- * A setup intent allows a user to save a payment method without making a purchase.
675
+ * A setup intent allows a user to save a payment method for future use without
676
+ * making an immediate purchase.
666
677
  */
667
678
  data: SetupIntentsAPI.SetupIntent;
668
679
 
@@ -694,7 +705,8 @@ export interface SetupIntentSucceededWebhookEvent {
694
705
  api_version: 'v1';
695
706
 
696
707
  /**
697
- * A setup intent allows a user to save a payment method without making a purchase.
708
+ * A setup intent allows a user to save a payment method for future use without
709
+ * making an immediate purchase.
698
710
  */
699
711
  data: SetupIntentsAPI.SetupIntent;
700
712
 
@@ -726,7 +738,8 @@ export interface SetupIntentCanceledWebhookEvent {
726
738
  api_version: 'v1';
727
739
 
728
740
  /**
729
- * A setup intent allows a user to save a payment method without making a purchase.
741
+ * A setup intent allows a user to save a payment method for future use without
742
+ * making an immediate purchase.
730
743
  */
731
744
  data: SetupIntentsAPI.SetupIntent;
732
745
 
@@ -758,8 +771,8 @@ export interface WithdrawalCreatedWebhookEvent {
758
771
  api_version: 'v1';
759
772
 
760
773
  /**
761
- * A withdrawal represents a request to transfer funds from a company's ledger
762
- * account to an external payout method.
774
+ * A withdrawal represents a request to transfer funds from a ledger account to an
775
+ * external payout method.
763
776
  */
764
777
  data: WithdrawalsAPI.Withdrawal;
765
778
 
@@ -791,8 +804,8 @@ export interface WithdrawalUpdatedWebhookEvent {
791
804
  api_version: 'v1';
792
805
 
793
806
  /**
794
- * A withdrawal represents a request to transfer funds from a company's ledger
795
- * account to an external payout method.
807
+ * A withdrawal represents a request to transfer funds from a ledger account to an
808
+ * external payout method.
796
809
  */
797
810
  data: WithdrawalsAPI.Withdrawal;
798
811
 
@@ -824,7 +837,8 @@ export interface CourseLessonInteractionCompletedWebhookEvent {
824
837
  api_version: 'v1';
825
838
 
826
839
  /**
827
- * A lesson interaction tracking user progress in courses
840
+ * A record of a user's progress on a specific lesson, tracking whether they have
841
+ * completed it.
828
842
  */
829
843
  data: Shared.CourseLessonInteraction;
830
844
 
@@ -856,7 +870,8 @@ export interface PayoutMethodCreatedWebhookEvent {
856
870
  api_version: 'v1';
857
871
 
858
872
  /**
859
- * An object representing an user's setup payout destination.
873
+ * A configured payout destination where a user receives earned funds, such as a
874
+ * bank account or digital wallet.
860
875
  */
861
876
  data: PayoutMethodCreatedWebhookEvent.Data;
862
877
 
@@ -878,7 +893,8 @@ export interface PayoutMethodCreatedWebhookEvent {
878
893
 
879
894
  export namespace PayoutMethodCreatedWebhookEvent {
880
895
  /**
881
- * An object representing an user's setup payout destination.
896
+ * A configured payout destination where a user receives earned funds, such as a
897
+ * bank account or digital wallet.
882
898
  */
883
899
  export interface Data {
884
900
  /**
@@ -887,13 +903,14 @@ export namespace PayoutMethodCreatedWebhookEvent {
887
903
  id: string;
888
904
 
889
905
  /**
890
- * A reference to identify the payout destination, such as the last 4 digits of an
891
- * account number or an email address.
906
+ * A masked identifier for the payout destination, such as the last four digits of
907
+ * a bank account or an email address. Null if no reference is available.
892
908
  */
893
909
  account_reference: string | null;
894
910
 
895
911
  /**
896
- * The company associated with the payout token
912
+ * The company associated with this payout destination. Null if not linked to a
913
+ * specific company.
897
914
  */
898
915
  company: Data.Company | null;
899
916
 
@@ -903,36 +920,40 @@ export namespace PayoutMethodCreatedWebhookEvent {
903
920
  created_at: string;
904
921
 
905
922
  /**
906
- * The currency code of the payout destination. This is the currency that payouts
907
- * will be made in for this token.
923
+ * The three-letter ISO currency code that payouts are delivered in for this
924
+ * destination.
908
925
  */
909
926
  currency: string;
910
927
 
911
928
  /**
912
- * The payout destination associated with the payout token
929
+ * The payout destination configuration linked to this token. Null if not yet
930
+ * configured.
913
931
  */
914
932
  destination: Data.Destination | null;
915
933
 
916
934
  /**
917
- * The name of the bank or financial institution.
935
+ * The name of the bank or financial institution receiving payouts. Null if not
936
+ * applicable or not provided.
918
937
  */
919
938
  institution_name: string | null;
920
939
 
921
940
  /**
922
- * Whether this payout token is the default for the payout account
941
+ * Whether this is the default payout destination for the associated payout
942
+ * account.
923
943
  */
924
944
  is_default: boolean;
925
945
 
926
946
  /**
927
- * An optional nickname for the payout token to help the user identify it. This is
928
- * not used by the provider and is only for the user's reference.
947
+ * A user-defined label to help identify this payout destination. Not sent to the
948
+ * provider. Null if no nickname has been set.
929
949
  */
930
950
  nickname: string | null;
931
951
  }
932
952
 
933
953
  export namespace Data {
934
954
  /**
935
- * The company associated with the payout token
955
+ * The company associated with this payout destination. Null if not linked to a
956
+ * specific company.
936
957
  */
937
958
  export interface Company {
938
959
  /**
@@ -942,7 +963,8 @@ export namespace PayoutMethodCreatedWebhookEvent {
942
963
  }
943
964
 
944
965
  /**
945
- * The payout destination associated with the payout token
966
+ * The payout destination configuration linked to this token. Null if not yet
967
+ * configured.
946
968
  */
947
969
  export interface Destination {
948
970
  /**
@@ -975,7 +997,8 @@ export interface VerificationSucceededWebhookEvent {
975
997
  api_version: 'v1';
976
998
 
977
999
  /**
978
- * An object representing an identity verification session
1000
+ * An identity verification session used to confirm a person or entity's identity
1001
+ * for payout account eligibility.
979
1002
  */
980
1003
  data: VerificationSucceededWebhookEvent.Data;
981
1004
 
@@ -997,7 +1020,8 @@ export interface VerificationSucceededWebhookEvent {
997
1020
 
998
1021
  export namespace VerificationSucceededWebhookEvent {
999
1022
  /**
1000
- * An object representing an identity verification session
1023
+ * An identity verification session used to confirm a person or entity's identity
1024
+ * for payout account eligibility.
1001
1025
  */
1002
1026
  export interface Data {
1003
1027
  /**
@@ -1011,12 +1035,13 @@ export namespace VerificationSucceededWebhookEvent {
1011
1035
  last_error_code: VerificationsAPI.VerificationErrorCode | null;
1012
1036
 
1013
1037
  /**
1014
- * The last error reason that occurred during the verification.
1038
+ * A human-readable explanation of the most recent verification error. Null if no
1039
+ * error has occurred.
1015
1040
  */
1016
1041
  last_error_reason: string | null;
1017
1042
 
1018
1043
  /**
1019
- * The status of the verification.
1044
+ * The current status of this verification session.
1020
1045
  */
1021
1046
  status: VerificationsAPI.VerificationStatus;
1022
1047
  }
@@ -1034,8 +1059,8 @@ export interface PaymentCreatedWebhookEvent {
1034
1059
  api_version: 'v1';
1035
1060
 
1036
1061
  /**
1037
- * A payment represents a completed or attempted charge for a membership. Payments
1038
- * track the amount, status, currency, and payment method used.
1062
+ * A payment represents a completed or attempted charge. Payments track the amount,
1063
+ * status, currency, and payment method used.
1039
1064
  */
1040
1065
  data: Shared.Payment;
1041
1066
 
@@ -1067,8 +1092,8 @@ export interface PaymentSucceededWebhookEvent {
1067
1092
  api_version: 'v1';
1068
1093
 
1069
1094
  /**
1070
- * A payment represents a completed or attempted charge for a membership. Payments
1071
- * track the amount, status, currency, and payment method used.
1095
+ * A payment represents a completed or attempted charge. Payments track the amount,
1096
+ * status, currency, and payment method used.
1072
1097
  */
1073
1098
  data: Shared.Payment;
1074
1099
 
@@ -1100,8 +1125,8 @@ export interface PaymentFailedWebhookEvent {
1100
1125
  api_version: 'v1';
1101
1126
 
1102
1127
  /**
1103
- * A payment represents a completed or attempted charge for a membership. Payments
1104
- * track the amount, status, currency, and payment method used.
1128
+ * A payment represents a completed or attempted charge. Payments track the amount,
1129
+ * status, currency, and payment method used.
1105
1130
  */
1106
1131
  data: Shared.Payment;
1107
1132
 
@@ -1133,8 +1158,8 @@ export interface PaymentPendingWebhookEvent {
1133
1158
  api_version: 'v1';
1134
1159
 
1135
1160
  /**
1136
- * A payment represents a completed or attempted charge for a membership. Payments
1137
- * track the amount, status, currency, and payment method used.
1161
+ * A payment represents a completed or attempted charge. Payments track the amount,
1162
+ * status, currency, and payment method used.
1138
1163
  */
1139
1164
  data: Shared.Payment;
1140
1165
 
@@ -1265,8 +1290,8 @@ export namespace RefundCreatedWebhookEvent {
1265
1290
  id: string;
1266
1291
 
1267
1292
  /**
1268
- * The amount of the refund. Provided as a number in the specified currency. Eg:
1269
- * 10.43 for $10.43 USD.
1293
+ * The refunded amount as a decimal in the specified currency, such as 10.43 for
1294
+ * $10.43 USD.
1270
1295
  */
1271
1296
  amount: number;
1272
1297
 
@@ -1276,22 +1301,24 @@ export namespace RefundCreatedWebhookEvent {
1276
1301
  created_at: string;
1277
1302
 
1278
1303
  /**
1279
- * The currency of the refund.
1304
+ * The three-letter ISO currency code for the refunded amount.
1280
1305
  */
1281
1306
  currency: Shared.Currency;
1282
1307
 
1283
1308
  /**
1284
- * The payment associated with the refund.
1309
+ * The original payment that this refund was issued against. Null if the payment is
1310
+ * no longer available.
1285
1311
  */
1286
1312
  payment: Data.Payment | null;
1287
1313
 
1288
1314
  /**
1289
- * The provider of the refund.
1315
+ * The payment provider that processed the refund.
1290
1316
  */
1291
1317
  provider: RefundsAPI.PaymentProvider;
1292
1318
 
1293
1319
  /**
1294
- * The time the refund was created by the provider.
1320
+ * The timestamp when the refund was created in the payment provider's system. Null
1321
+ * if not available from the provider.
1295
1322
  */
1296
1323
  provider_created_at: string | null;
1297
1324
 
@@ -1306,19 +1333,22 @@ export namespace RefundCreatedWebhookEvent {
1306
1333
  reference_type: RefundsAPI.RefundReferenceType | null;
1307
1334
 
1308
1335
  /**
1309
- * The value of the reference.
1336
+ * The tracking reference value from the payment processor, used to trace the
1337
+ * refund through banking networks. Null if no reference was provided.
1310
1338
  */
1311
1339
  reference_value: string | null;
1312
1340
 
1313
1341
  /**
1314
- * The status of the refund.
1342
+ * The current processing status of the refund, such as pending, succeeded, or
1343
+ * failed.
1315
1344
  */
1316
1345
  status: RefundsAPI.RefundStatus;
1317
1346
  }
1318
1347
 
1319
1348
  export namespace Data {
1320
1349
  /**
1321
- * The payment associated with the refund.
1350
+ * The original payment that this refund was issued against. Null if the payment is
1351
+ * no longer available.
1322
1352
  */
1323
1353
  export interface Payment {
1324
1354
  /**
@@ -1337,7 +1367,8 @@ export namespace RefundCreatedWebhookEvent {
1337
1367
  card_brand: PaymentsAPI.CardBrands | null;
1338
1368
 
1339
1369
  /**
1340
- * The last 4 digits of the card used to make the payment.
1370
+ * The last four digits of the card used to make this payment. Null if the payment
1371
+ * was not made with a card.
1341
1372
  */
1342
1373
  card_last4: string | null;
1343
1374
 
@@ -1367,7 +1398,8 @@ export namespace RefundCreatedWebhookEvent {
1367
1398
  membership: Payment.Membership | null;
1368
1399
 
1369
1400
  /**
1370
- * The datetime the payment was paid
1401
+ * The time at which this payment was successfully collected. Null if the payment
1402
+ * has not yet succeeded. As a Unix timestamp.
1371
1403
  */
1372
1404
  paid_at: string | null;
1373
1405
 
@@ -1438,17 +1470,18 @@ export namespace RefundCreatedWebhookEvent {
1438
1470
  id: string;
1439
1471
 
1440
1472
  /**
1441
- * The email of the user
1473
+ * The user's email address. Requires the member:email:read permission to access.
1474
+ * Null if not authorized.
1442
1475
  */
1443
1476
  email: string | null;
1444
1477
 
1445
1478
  /**
1446
- * The name of the user from their Whop account.
1479
+ * The user's display name shown on their public profile.
1447
1480
  */
1448
1481
  name: string | null;
1449
1482
 
1450
1483
  /**
1451
- * The username of the user from their Whop account.
1484
+ * The user's unique username shown on their public profile.
1452
1485
  */
1453
1486
  username: string;
1454
1487
  }
@@ -1501,8 +1534,8 @@ export namespace RefundUpdatedWebhookEvent {
1501
1534
  id: string;
1502
1535
 
1503
1536
  /**
1504
- * The amount of the refund. Provided as a number in the specified currency. Eg:
1505
- * 10.43 for $10.43 USD.
1537
+ * The refunded amount as a decimal in the specified currency, such as 10.43 for
1538
+ * $10.43 USD.
1506
1539
  */
1507
1540
  amount: number;
1508
1541
 
@@ -1512,22 +1545,24 @@ export namespace RefundUpdatedWebhookEvent {
1512
1545
  created_at: string;
1513
1546
 
1514
1547
  /**
1515
- * The currency of the refund.
1548
+ * The three-letter ISO currency code for the refunded amount.
1516
1549
  */
1517
1550
  currency: Shared.Currency;
1518
1551
 
1519
1552
  /**
1520
- * The payment associated with the refund.
1553
+ * The original payment that this refund was issued against. Null if the payment is
1554
+ * no longer available.
1521
1555
  */
1522
1556
  payment: Data.Payment | null;
1523
1557
 
1524
1558
  /**
1525
- * The provider of the refund.
1559
+ * The payment provider that processed the refund.
1526
1560
  */
1527
1561
  provider: RefundsAPI.PaymentProvider;
1528
1562
 
1529
1563
  /**
1530
- * The time the refund was created by the provider.
1564
+ * The timestamp when the refund was created in the payment provider's system. Null
1565
+ * if not available from the provider.
1531
1566
  */
1532
1567
  provider_created_at: string | null;
1533
1568
 
@@ -1542,19 +1577,22 @@ export namespace RefundUpdatedWebhookEvent {
1542
1577
  reference_type: RefundsAPI.RefundReferenceType | null;
1543
1578
 
1544
1579
  /**
1545
- * The value of the reference.
1580
+ * The tracking reference value from the payment processor, used to trace the
1581
+ * refund through banking networks. Null if no reference was provided.
1546
1582
  */
1547
1583
  reference_value: string | null;
1548
1584
 
1549
1585
  /**
1550
- * The status of the refund.
1586
+ * The current processing status of the refund, such as pending, succeeded, or
1587
+ * failed.
1551
1588
  */
1552
1589
  status: RefundsAPI.RefundStatus;
1553
1590
  }
1554
1591
 
1555
1592
  export namespace Data {
1556
1593
  /**
1557
- * The payment associated with the refund.
1594
+ * The original payment that this refund was issued against. Null if the payment is
1595
+ * no longer available.
1558
1596
  */
1559
1597
  export interface Payment {
1560
1598
  /**
@@ -1573,7 +1611,8 @@ export namespace RefundUpdatedWebhookEvent {
1573
1611
  card_brand: PaymentsAPI.CardBrands | null;
1574
1612
 
1575
1613
  /**
1576
- * The last 4 digits of the card used to make the payment.
1614
+ * The last four digits of the card used to make this payment. Null if the payment
1615
+ * was not made with a card.
1577
1616
  */
1578
1617
  card_last4: string | null;
1579
1618
 
@@ -1603,7 +1642,8 @@ export namespace RefundUpdatedWebhookEvent {
1603
1642
  membership: Payment.Membership | null;
1604
1643
 
1605
1644
  /**
1606
- * The datetime the payment was paid
1645
+ * The time at which this payment was successfully collected. Null if the payment
1646
+ * has not yet succeeded. As a Unix timestamp.
1607
1647
  */
1608
1648
  paid_at: string | null;
1609
1649
 
@@ -1674,17 +1714,18 @@ export namespace RefundUpdatedWebhookEvent {
1674
1714
  id: string;
1675
1715
 
1676
1716
  /**
1677
- * The email of the user
1717
+ * The user's email address. Requires the member:email:read permission to access.
1718
+ * Null if not authorized.
1678
1719
  */
1679
1720
  email: string | null;
1680
1721
 
1681
1722
  /**
1682
- * The name of the user from their Whop account.
1723
+ * The user's display name shown on their public profile.
1683
1724
  */
1684
1725
  name: string | null;
1685
1726
 
1686
1727
  /**
1687
- * The username of the user from their Whop account.
1728
+ * The user's unique username shown on their public profile.
1688
1729
  */
1689
1730
  username: string;
1690
1731
  }
@@ -1817,7 +1858,7 @@ export interface WebhookUpdateParams {
1817
1858
 
1818
1859
  export interface WebhookListParams extends CursorPageParams {
1819
1860
  /**
1820
- * The ID of the company to list webhooks for
1861
+ * The unique identifier of the company to list webhooks for.
1821
1862
  */
1822
1863
  company_id: string;
1823
1864