@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
@@ -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
  *
@@ -138,53 +139,54 @@ export type WebhookListResponsesCursorPage = CursorPage<WebhookListResponse>;
138
139
  export type APIVersion = 'v1' | 'v2' | 'v5';
139
140
 
140
141
  /**
141
- * A webhook object, which can be configured to be sent updates about a company
142
+ * A webhook endpoint that receives event notifications for a company via HTTP
143
+ * POST.
142
144
  */
143
145
  export interface Webhook {
144
146
  /**
145
- * The ID of the webhook
147
+ * The unique identifier for the webhook.
146
148
  */
147
149
  id: string;
148
150
 
149
151
  /**
150
- * The API version for this webhook
152
+ * The API version used to format payloads sent to this webhook endpoint.
151
153
  */
152
154
  api_version: APIVersion;
153
155
 
154
156
  /**
155
- * Whether or not to send events for child resources. For example, if the webhook
156
- * is created for a Company, enabling this will only send events from the Company's
157
- * 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).
158
160
  */
159
161
  child_resource_events: boolean;
160
162
 
161
163
  /**
162
- * The timestamp of when the webhook was created
164
+ * The datetime the webhook was created.
163
165
  */
164
166
  created_at: string;
165
167
 
166
168
  /**
167
- * Whether or not this webhook is turned on or not
169
+ * Whether this webhook endpoint is currently active and receiving events.
168
170
  */
169
171
  enabled: boolean;
170
172
 
171
173
  /**
172
- * The number of events this webhooks is configured to receive
174
+ * The list of event types this webhook is subscribed to.
173
175
  */
174
176
  events: Array<WebhookEvent>;
175
177
 
176
178
  /**
177
- * The resource ID
179
+ * The ID of the resource (company or product) this webhook is attached to.
178
180
  */
179
181
  resource_id: string;
180
182
 
181
183
  /**
182
- * The list of events that can be tested with this webhook
184
+ * The subset of subscribed event types that support sending test payloads.
183
185
  */
184
186
  testable_events: Array<WebhookEvent>;
185
187
 
186
188
  /**
187
- * The URL the webhook events will be sent to
189
+ * The destination URL where webhook payloads are delivered via HTTP POST.
188
190
  */
189
191
  url: string;
190
192
  }
@@ -222,100 +224,103 @@ export type WebhookEvent =
222
224
  | 'membership.cancel_at_period_end_changed';
223
225
 
224
226
  /**
225
- * A webhook object, which can be configured to be sent updates about a company
227
+ * A webhook endpoint that receives event notifications for a company via HTTP
228
+ * POST.
226
229
  */
227
230
  export interface WebhookCreateResponse {
228
231
  /**
229
- * The ID of the webhook
232
+ * The unique identifier for the webhook.
230
233
  */
231
234
  id: string;
232
235
 
233
236
  /**
234
- * The API version for this webhook
237
+ * The API version used to format payloads sent to this webhook endpoint.
235
238
  */
236
239
  api_version: APIVersion;
237
240
 
238
241
  /**
239
- * Whether or not to send events for child resources. For example, if the webhook
240
- * is created for a Company, enabling this will only send events from the Company's
241
- * 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).
242
245
  */
243
246
  child_resource_events: boolean;
244
247
 
245
248
  /**
246
- * The timestamp of when the webhook was created
249
+ * The datetime the webhook was created.
247
250
  */
248
251
  created_at: string;
249
252
 
250
253
  /**
251
- * Whether or not this webhook is turned on or not
254
+ * Whether this webhook endpoint is currently active and receiving events.
252
255
  */
253
256
  enabled: boolean;
254
257
 
255
258
  /**
256
- * The number of events this webhooks is configured to receive
259
+ * The list of event types this webhook is subscribed to.
257
260
  */
258
261
  events: Array<WebhookEvent>;
259
262
 
260
263
  /**
261
- * The resource ID
264
+ * The ID of the resource (company or product) this webhook is attached to.
262
265
  */
263
266
  resource_id: string;
264
267
 
265
268
  /**
266
- * The list of events that can be tested with this webhook
269
+ * The subset of subscribed event types that support sending test payloads.
267
270
  */
268
271
  testable_events: Array<WebhookEvent>;
269
272
 
270
273
  /**
271
- * The URL the webhook events will be sent to
274
+ * The destination URL where webhook payloads are delivered via HTTP POST.
272
275
  */
273
276
  url: string;
274
277
 
275
278
  /**
276
- * 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.
277
281
  */
278
282
  webhook_secret: string;
279
283
  }
280
284
 
281
285
  /**
282
- * A webhook object, which can be configured to be sent updates about a company
286
+ * A webhook endpoint that receives event notifications for a company via HTTP
287
+ * POST.
283
288
  */
284
289
  export interface WebhookListResponse {
285
290
  /**
286
- * The ID of the webhook
291
+ * The unique identifier for the webhook.
287
292
  */
288
293
  id: string;
289
294
 
290
295
  /**
291
- * The API version for this webhook
296
+ * The API version used to format payloads sent to this webhook endpoint.
292
297
  */
293
298
  api_version: APIVersion;
294
299
 
295
300
  /**
296
- * Whether or not to send events for child resources. For example, if the webhook
297
- * is created for a Company, enabling this will only send events from the Company's
298
- * 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).
299
304
  */
300
305
  child_resource_events: boolean;
301
306
 
302
307
  /**
303
- * The timestamp of when the webhook was created
308
+ * The datetime the webhook was created.
304
309
  */
305
310
  created_at: string;
306
311
 
307
312
  /**
308
- * Whether or not this webhook is turned on or not
313
+ * Whether this webhook endpoint is currently active and receiving events.
309
314
  */
310
315
  enabled: boolean;
311
316
 
312
317
  /**
313
- * The number of events this webhooks is configured to receive
318
+ * The list of event types this webhook is subscribed to.
314
319
  */
315
320
  events: Array<WebhookEvent>;
316
321
 
317
322
  /**
318
- * The URL the webhook events will be sent to
323
+ * The destination URL where webhook payloads are delivered via HTTP POST.
319
324
  */
320
325
  url: string;
321
326
  }
@@ -337,7 +342,9 @@ export interface InvoiceCreatedWebhookEvent {
337
342
  api_version: 'v1';
338
343
 
339
344
  /**
340
- * 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.
341
348
  */
342
349
  data: Shared.Invoice;
343
350
 
@@ -369,7 +376,9 @@ export interface InvoicePaidWebhookEvent {
369
376
  api_version: 'v1';
370
377
 
371
378
  /**
372
- * 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.
373
382
  */
374
383
  data: Shared.Invoice;
375
384
 
@@ -401,7 +410,9 @@ export interface InvoicePastDueWebhookEvent {
401
410
  api_version: 'v1';
402
411
 
403
412
  /**
404
- * 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.
405
416
  */
406
417
  data: Shared.Invoice;
407
418
 
@@ -433,7 +444,9 @@ export interface InvoiceVoidedWebhookEvent {
433
444
  api_version: 'v1';
434
445
 
435
446
  /**
436
- * 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.
437
450
  */
438
451
  data: Shared.Invoice;
439
452
 
@@ -465,8 +478,8 @@ export interface MembershipActivatedWebhookEvent {
465
478
  api_version: 'v1';
466
479
 
467
480
  /**
468
- * A membership represents a purchase between a User and a Company for a specific
469
- * Product.
481
+ * A membership represents an active relationship between a user and a product. It
482
+ * tracks the user's access, billing status, and renewal schedule.
470
483
  */
471
484
  data: Shared.Membership;
472
485
 
@@ -498,8 +511,8 @@ export interface MembershipDeactivatedWebhookEvent {
498
511
  api_version: 'v1';
499
512
 
500
513
  /**
501
- * A membership represents a purchase between a User and a Company for a specific
502
- * Product.
514
+ * A membership represents an active relationship between a user and a product. It
515
+ * tracks the user's access, billing status, and renewal schedule.
503
516
  */
504
517
  data: Shared.Membership;
505
518
 
@@ -531,7 +544,7 @@ export interface EntryCreatedWebhookEvent {
531
544
  api_version: 'v1';
532
545
 
533
546
  /**
534
- * An object representing an entry in a waitlist.
547
+ * An entry represents a user's signup for a waitlisted plan.
535
548
  */
536
549
  data: Shared.Entry;
537
550
 
@@ -563,7 +576,7 @@ export interface EntryApprovedWebhookEvent {
563
576
  api_version: 'v1';
564
577
 
565
578
  /**
566
- * An object representing an entry in a waitlist.
579
+ * An entry represents a user's signup for a waitlisted plan.
567
580
  */
568
581
  data: Shared.Entry;
569
582
 
@@ -595,7 +608,7 @@ export interface EntryDeniedWebhookEvent {
595
608
  api_version: 'v1';
596
609
 
597
610
  /**
598
- * An object representing an entry in a waitlist.
611
+ * An entry represents a user's signup for a waitlisted plan.
599
612
  */
600
613
  data: Shared.Entry;
601
614
 
@@ -627,7 +640,7 @@ export interface EntryDeletedWebhookEvent {
627
640
  api_version: 'v1';
628
641
 
629
642
  /**
630
- * An object representing an entry in a waitlist.
643
+ * An entry represents a user's signup for a waitlisted plan.
631
644
  */
632
645
  data: Shared.Entry;
633
646
 
@@ -659,8 +672,8 @@ export interface SetupIntentRequiresActionWebhookEvent {
659
672
  api_version: 'v1';
660
673
 
661
674
  /**
662
- * An object representing a setup intent, which is a flow for allowing a customer
663
- * to add a payment method to their account 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.
664
677
  */
665
678
  data: SetupIntentsAPI.SetupIntent;
666
679
 
@@ -692,8 +705,8 @@ export interface SetupIntentSucceededWebhookEvent {
692
705
  api_version: 'v1';
693
706
 
694
707
  /**
695
- * An object representing a setup intent, which is a flow for allowing a customer
696
- * to add a payment method to their account 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.
697
710
  */
698
711
  data: SetupIntentsAPI.SetupIntent;
699
712
 
@@ -725,8 +738,8 @@ export interface SetupIntentCanceledWebhookEvent {
725
738
  api_version: 'v1';
726
739
 
727
740
  /**
728
- * An object representing a setup intent, which is a flow for allowing a customer
729
- * to add a payment method to their account 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,7 +771,8 @@ export interface WithdrawalCreatedWebhookEvent {
758
771
  api_version: 'v1';
759
772
 
760
773
  /**
761
- * A withdrawal request.
774
+ * A withdrawal represents a request to transfer funds from a ledger account to an
775
+ * external payout method.
762
776
  */
763
777
  data: WithdrawalsAPI.Withdrawal;
764
778
 
@@ -790,7 +804,8 @@ export interface WithdrawalUpdatedWebhookEvent {
790
804
  api_version: 'v1';
791
805
 
792
806
  /**
793
- * A withdrawal request.
807
+ * A withdrawal represents a request to transfer funds from a ledger account to an
808
+ * external payout method.
794
809
  */
795
810
  data: WithdrawalsAPI.Withdrawal;
796
811
 
@@ -822,7 +837,8 @@ export interface CourseLessonInteractionCompletedWebhookEvent {
822
837
  api_version: 'v1';
823
838
 
824
839
  /**
825
- * 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.
826
842
  */
827
843
  data: Shared.CourseLessonInteraction;
828
844
 
@@ -854,7 +870,8 @@ export interface PayoutMethodCreatedWebhookEvent {
854
870
  api_version: 'v1';
855
871
 
856
872
  /**
857
- * 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.
858
875
  */
859
876
  data: PayoutMethodCreatedWebhookEvent.Data;
860
877
 
@@ -876,71 +893,78 @@ export interface PayoutMethodCreatedWebhookEvent {
876
893
 
877
894
  export namespace PayoutMethodCreatedWebhookEvent {
878
895
  /**
879
- * 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.
880
898
  */
881
899
  export interface Data {
882
900
  /**
883
- * The ID of the payout token
901
+ * The unique identifier for the payout token.
884
902
  */
885
903
  id: string;
886
904
 
887
905
  /**
888
- * A reference to identify the payout destination, such as the last 4 digits of an
889
- * 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.
890
908
  */
891
909
  account_reference: string | null;
892
910
 
893
911
  /**
894
- * The company associated with the payout token
912
+ * The company associated with this payout destination. Null if not linked to a
913
+ * specific company.
895
914
  */
896
915
  company: Data.Company | null;
897
916
 
898
917
  /**
899
- * The date and time the payout token was created
918
+ * The datetime the payout token was created.
900
919
  */
901
920
  created_at: string;
902
921
 
903
922
  /**
904
- * The currency code of the payout destination. This is the currency that payouts
905
- * will be made in for this token.
923
+ * The three-letter ISO currency code that payouts are delivered in for this
924
+ * destination.
906
925
  */
907
926
  currency: string;
908
927
 
909
928
  /**
910
- * The payout destination associated with the payout token
929
+ * The payout destination configuration linked to this token. Null if not yet
930
+ * configured.
911
931
  */
912
932
  destination: Data.Destination | null;
913
933
 
914
934
  /**
915
- * 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.
916
937
  */
917
938
  institution_name: string | null;
918
939
 
919
940
  /**
920
- * 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.
921
943
  */
922
944
  is_default: boolean;
923
945
 
924
946
  /**
925
- * An optional nickname for the payout token to help the user identify it. This is
926
- * 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.
927
949
  */
928
950
  nickname: string | null;
929
951
  }
930
952
 
931
953
  export namespace Data {
932
954
  /**
933
- * The company associated with the payout token
955
+ * The company associated with this payout destination. Null if not linked to a
956
+ * specific company.
934
957
  */
935
958
  export interface Company {
936
959
  /**
937
- * The ID (tag) of the company.
960
+ * The unique identifier for the company.
938
961
  */
939
962
  id: string;
940
963
  }
941
964
 
942
965
  /**
943
- * The payout destination associated with the payout token
966
+ * The payout destination configuration linked to this token. Null if not yet
967
+ * configured.
944
968
  */
945
969
  export interface Destination {
946
970
  /**
@@ -973,7 +997,8 @@ export interface VerificationSucceededWebhookEvent {
973
997
  api_version: 'v1';
974
998
 
975
999
  /**
976
- * 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.
977
1002
  */
978
1003
  data: VerificationSucceededWebhookEvent.Data;
979
1004
 
@@ -995,11 +1020,12 @@ export interface VerificationSucceededWebhookEvent {
995
1020
 
996
1021
  export namespace VerificationSucceededWebhookEvent {
997
1022
  /**
998
- * 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.
999
1025
  */
1000
1026
  export interface Data {
1001
1027
  /**
1002
- * A unique identifier for the verification.
1028
+ * The unique identifier for the verification.
1003
1029
  */
1004
1030
  id: string;
1005
1031
 
@@ -1009,12 +1035,13 @@ export namespace VerificationSucceededWebhookEvent {
1009
1035
  last_error_code: VerificationsAPI.VerificationErrorCode | null;
1010
1036
 
1011
1037
  /**
1012
- * 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.
1013
1040
  */
1014
1041
  last_error_reason: string | null;
1015
1042
 
1016
1043
  /**
1017
- * The status of the verification.
1044
+ * The current status of this verification session.
1018
1045
  */
1019
1046
  status: VerificationsAPI.VerificationStatus;
1020
1047
  }
@@ -1032,7 +1059,8 @@ export interface PaymentCreatedWebhookEvent {
1032
1059
  api_version: 'v1';
1033
1060
 
1034
1061
  /**
1035
- * An object representing a receipt for a membership.
1062
+ * A payment represents a completed or attempted charge. Payments track the amount,
1063
+ * status, currency, and payment method used.
1036
1064
  */
1037
1065
  data: Shared.Payment;
1038
1066
 
@@ -1064,7 +1092,8 @@ export interface PaymentSucceededWebhookEvent {
1064
1092
  api_version: 'v1';
1065
1093
 
1066
1094
  /**
1067
- * An object representing a receipt for a membership.
1095
+ * A payment represents a completed or attempted charge. Payments track the amount,
1096
+ * status, currency, and payment method used.
1068
1097
  */
1069
1098
  data: Shared.Payment;
1070
1099
 
@@ -1096,7 +1125,8 @@ export interface PaymentFailedWebhookEvent {
1096
1125
  api_version: 'v1';
1097
1126
 
1098
1127
  /**
1099
- * An object representing a receipt for a membership.
1128
+ * A payment represents a completed or attempted charge. Payments track the amount,
1129
+ * status, currency, and payment method used.
1100
1130
  */
1101
1131
  data: Shared.Payment;
1102
1132
 
@@ -1128,7 +1158,8 @@ export interface PaymentPendingWebhookEvent {
1128
1158
  api_version: 'v1';
1129
1159
 
1130
1160
  /**
1131
- * An object representing a receipt for a membership.
1161
+ * A payment represents a completed or attempted charge. Payments track the amount,
1162
+ * status, currency, and payment method used.
1132
1163
  */
1133
1164
  data: Shared.Payment;
1134
1165
 
@@ -1160,7 +1191,8 @@ export interface DisputeCreatedWebhookEvent {
1160
1191
  api_version: 'v1';
1161
1192
 
1162
1193
  /**
1163
- * An object representing a dispute against a company.
1194
+ * A dispute is a chargeback or payment challenge filed against a company,
1195
+ * including evidence and response status.
1164
1196
  */
1165
1197
  data: DisputesAPI.Dispute;
1166
1198
 
@@ -1192,7 +1224,8 @@ export interface DisputeUpdatedWebhookEvent {
1192
1224
  api_version: 'v1';
1193
1225
 
1194
1226
  /**
1195
- * An object representing a dispute against a company.
1227
+ * A dispute is a chargeback or payment challenge filed against a company,
1228
+ * including evidence and response status.
1196
1229
  */
1197
1230
  data: DisputesAPI.Dispute;
1198
1231
 
@@ -1224,7 +1257,8 @@ export interface RefundCreatedWebhookEvent {
1224
1257
  api_version: 'v1';
1225
1258
 
1226
1259
  /**
1227
- * An object representing a refund made on a payment.
1260
+ * A refund represents a full or partial reversal of a payment, including the
1261
+ * amount, status, and payment provider.
1228
1262
  */
1229
1263
  data: RefundCreatedWebhookEvent.Data;
1230
1264
 
@@ -1246,41 +1280,45 @@ export interface RefundCreatedWebhookEvent {
1246
1280
 
1247
1281
  export namespace RefundCreatedWebhookEvent {
1248
1282
  /**
1249
- * An object representing a refund made on a payment.
1283
+ * A refund represents a full or partial reversal of a payment, including the
1284
+ * amount, status, and payment provider.
1250
1285
  */
1251
1286
  export interface Data {
1252
1287
  /**
1253
- * The ID of the refund.
1288
+ * The unique identifier for the refund.
1254
1289
  */
1255
1290
  id: string;
1256
1291
 
1257
1292
  /**
1258
- * The amount of the refund.
1293
+ * The refunded amount as a decimal in the specified currency, such as 10.43 for
1294
+ * $10.43 USD.
1259
1295
  */
1260
1296
  amount: number;
1261
1297
 
1262
1298
  /**
1263
- * The time the refund was created.
1299
+ * The datetime the refund was created.
1264
1300
  */
1265
1301
  created_at: string;
1266
1302
 
1267
1303
  /**
1268
- * The currency of the refund.
1304
+ * The three-letter ISO currency code for the refunded amount.
1269
1305
  */
1270
1306
  currency: Shared.Currency;
1271
1307
 
1272
1308
  /**
1273
- * 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.
1274
1311
  */
1275
1312
  payment: Data.Payment | null;
1276
1313
 
1277
1314
  /**
1278
- * The provider of the refund.
1315
+ * The payment provider that processed the refund.
1279
1316
  */
1280
1317
  provider: RefundsAPI.PaymentProvider;
1281
1318
 
1282
1319
  /**
1283
- * 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.
1284
1322
  */
1285
1323
  provider_created_at: string | null;
1286
1324
 
@@ -1295,23 +1333,26 @@ export namespace RefundCreatedWebhookEvent {
1295
1333
  reference_type: RefundsAPI.RefundReferenceType | null;
1296
1334
 
1297
1335
  /**
1298
- * 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.
1299
1338
  */
1300
1339
  reference_value: string | null;
1301
1340
 
1302
1341
  /**
1303
- * The status of the refund.
1342
+ * The current processing status of the refund, such as pending, succeeded, or
1343
+ * failed.
1304
1344
  */
1305
1345
  status: RefundsAPI.RefundStatus;
1306
1346
  }
1307
1347
 
1308
1348
  export namespace Data {
1309
1349
  /**
1310
- * 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.
1311
1352
  */
1312
1353
  export interface Payment {
1313
1354
  /**
1314
- * The payment ID
1355
+ * The unique identifier for the payment.
1315
1356
  */
1316
1357
  id: string;
1317
1358
 
@@ -1326,12 +1367,13 @@ export namespace RefundCreatedWebhookEvent {
1326
1367
  card_brand: PaymentsAPI.CardBrands | null;
1327
1368
 
1328
1369
  /**
1329
- * 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.
1330
1372
  */
1331
1373
  card_last4: string | null;
1332
1374
 
1333
1375
  /**
1334
- * The datetime the payment was created
1376
+ * The datetime the payment was created.
1335
1377
  */
1336
1378
  created_at: string;
1337
1379
 
@@ -1356,7 +1398,8 @@ export namespace RefundCreatedWebhookEvent {
1356
1398
  membership: Payment.Membership | null;
1357
1399
 
1358
1400
  /**
1359
- * 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.
1360
1403
  */
1361
1404
  paid_at: string | null;
1362
1405
 
@@ -1392,7 +1435,7 @@ export namespace RefundCreatedWebhookEvent {
1392
1435
  */
1393
1436
  export interface Member {
1394
1437
  /**
1395
- * The ID of the member
1438
+ * The unique identifier for the company member.
1396
1439
  */
1397
1440
  id: string;
1398
1441
 
@@ -1407,7 +1450,7 @@ export namespace RefundCreatedWebhookEvent {
1407
1450
  */
1408
1451
  export interface Membership {
1409
1452
  /**
1410
- * The internal ID of the membership.
1453
+ * The unique identifier for the membership.
1411
1454
  */
1412
1455
  id: string;
1413
1456
 
@@ -1422,22 +1465,23 @@ export namespace RefundCreatedWebhookEvent {
1422
1465
  */
1423
1466
  export interface User {
1424
1467
  /**
1425
- * The internal ID of the user.
1468
+ * The unique identifier for the user.
1426
1469
  */
1427
1470
  id: string;
1428
1471
 
1429
1472
  /**
1430
- * The email of the user
1473
+ * The user's email address. Requires the member:email:read permission to access.
1474
+ * Null if not authorized.
1431
1475
  */
1432
1476
  email: string | null;
1433
1477
 
1434
1478
  /**
1435
- * The name of the user from their Whop account.
1479
+ * The user's display name shown on their public profile.
1436
1480
  */
1437
1481
  name: string | null;
1438
1482
 
1439
1483
  /**
1440
- * The username of the user from their Whop account.
1484
+ * The user's unique username shown on their public profile.
1441
1485
  */
1442
1486
  username: string;
1443
1487
  }
@@ -1457,7 +1501,8 @@ export interface RefundUpdatedWebhookEvent {
1457
1501
  api_version: 'v1';
1458
1502
 
1459
1503
  /**
1460
- * An object representing a refund made on a payment.
1504
+ * A refund represents a full or partial reversal of a payment, including the
1505
+ * amount, status, and payment provider.
1461
1506
  */
1462
1507
  data: RefundUpdatedWebhookEvent.Data;
1463
1508
 
@@ -1479,41 +1524,45 @@ export interface RefundUpdatedWebhookEvent {
1479
1524
 
1480
1525
  export namespace RefundUpdatedWebhookEvent {
1481
1526
  /**
1482
- * An object representing a refund made on a payment.
1527
+ * A refund represents a full or partial reversal of a payment, including the
1528
+ * amount, status, and payment provider.
1483
1529
  */
1484
1530
  export interface Data {
1485
1531
  /**
1486
- * The ID of the refund.
1532
+ * The unique identifier for the refund.
1487
1533
  */
1488
1534
  id: string;
1489
1535
 
1490
1536
  /**
1491
- * The amount of the refund.
1537
+ * The refunded amount as a decimal in the specified currency, such as 10.43 for
1538
+ * $10.43 USD.
1492
1539
  */
1493
1540
  amount: number;
1494
1541
 
1495
1542
  /**
1496
- * The time the refund was created.
1543
+ * The datetime the refund was created.
1497
1544
  */
1498
1545
  created_at: string;
1499
1546
 
1500
1547
  /**
1501
- * The currency of the refund.
1548
+ * The three-letter ISO currency code for the refunded amount.
1502
1549
  */
1503
1550
  currency: Shared.Currency;
1504
1551
 
1505
1552
  /**
1506
- * 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.
1507
1555
  */
1508
1556
  payment: Data.Payment | null;
1509
1557
 
1510
1558
  /**
1511
- * The provider of the refund.
1559
+ * The payment provider that processed the refund.
1512
1560
  */
1513
1561
  provider: RefundsAPI.PaymentProvider;
1514
1562
 
1515
1563
  /**
1516
- * 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.
1517
1566
  */
1518
1567
  provider_created_at: string | null;
1519
1568
 
@@ -1528,23 +1577,26 @@ export namespace RefundUpdatedWebhookEvent {
1528
1577
  reference_type: RefundsAPI.RefundReferenceType | null;
1529
1578
 
1530
1579
  /**
1531
- * 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.
1532
1582
  */
1533
1583
  reference_value: string | null;
1534
1584
 
1535
1585
  /**
1536
- * The status of the refund.
1586
+ * The current processing status of the refund, such as pending, succeeded, or
1587
+ * failed.
1537
1588
  */
1538
1589
  status: RefundsAPI.RefundStatus;
1539
1590
  }
1540
1591
 
1541
1592
  export namespace Data {
1542
1593
  /**
1543
- * 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.
1544
1596
  */
1545
1597
  export interface Payment {
1546
1598
  /**
1547
- * The payment ID
1599
+ * The unique identifier for the payment.
1548
1600
  */
1549
1601
  id: string;
1550
1602
 
@@ -1559,12 +1611,13 @@ export namespace RefundUpdatedWebhookEvent {
1559
1611
  card_brand: PaymentsAPI.CardBrands | null;
1560
1612
 
1561
1613
  /**
1562
- * 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.
1563
1616
  */
1564
1617
  card_last4: string | null;
1565
1618
 
1566
1619
  /**
1567
- * The datetime the payment was created
1620
+ * The datetime the payment was created.
1568
1621
  */
1569
1622
  created_at: string;
1570
1623
 
@@ -1589,7 +1642,8 @@ export namespace RefundUpdatedWebhookEvent {
1589
1642
  membership: Payment.Membership | null;
1590
1643
 
1591
1644
  /**
1592
- * 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.
1593
1647
  */
1594
1648
  paid_at: string | null;
1595
1649
 
@@ -1625,7 +1679,7 @@ export namespace RefundUpdatedWebhookEvent {
1625
1679
  */
1626
1680
  export interface Member {
1627
1681
  /**
1628
- * The ID of the member
1682
+ * The unique identifier for the company member.
1629
1683
  */
1630
1684
  id: string;
1631
1685
 
@@ -1640,7 +1694,7 @@ export namespace RefundUpdatedWebhookEvent {
1640
1694
  */
1641
1695
  export interface Membership {
1642
1696
  /**
1643
- * The internal ID of the membership.
1697
+ * The unique identifier for the membership.
1644
1698
  */
1645
1699
  id: string;
1646
1700
 
@@ -1655,22 +1709,23 @@ export namespace RefundUpdatedWebhookEvent {
1655
1709
  */
1656
1710
  export interface User {
1657
1711
  /**
1658
- * The internal ID of the user.
1712
+ * The unique identifier for the user.
1659
1713
  */
1660
1714
  id: string;
1661
1715
 
1662
1716
  /**
1663
- * The email of the user
1717
+ * The user's email address. Requires the member:email:read permission to access.
1718
+ * Null if not authorized.
1664
1719
  */
1665
1720
  email: string | null;
1666
1721
 
1667
1722
  /**
1668
- * The name of the user from their Whop account.
1723
+ * The user's display name shown on their public profile.
1669
1724
  */
1670
1725
  name: string | null;
1671
1726
 
1672
1727
  /**
1673
- * The username of the user from their Whop account.
1728
+ * The user's unique username shown on their public profile.
1674
1729
  */
1675
1730
  username: string;
1676
1731
  }
@@ -1690,8 +1745,8 @@ export interface MembershipCancelAtPeriodEndChangedWebhookEvent {
1690
1745
  api_version: 'v1';
1691
1746
 
1692
1747
  /**
1693
- * A membership represents a purchase between a User and a Company for a specific
1694
- * Product.
1748
+ * A membership represents an active relationship between a user and a product. It
1749
+ * tracks the user's access, billing status, and renewal schedule.
1695
1750
  */
1696
1751
  data: Shared.Membership;
1697
1752
 
@@ -1803,7 +1858,7 @@ export interface WebhookUpdateParams {
1803
1858
 
1804
1859
  export interface WebhookListParams extends CursorPageParams {
1805
1860
  /**
1806
- * The ID of the company to list webhooks for
1861
+ * The unique identifier of the company to list webhooks for.
1807
1862
  */
1808
1863
  company_id: string;
1809
1864