whop_sdk 0.0.20 → 0.0.23

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 (247) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +41 -0
  3. data/README.md +10 -1
  4. data/lib/whop_sdk/client.rb +16 -0
  5. data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +12 -10
  6. data/lib/whop_sdk/internal/util.rb +7 -2
  7. data/lib/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rb +9 -1
  8. data/lib/whop_sdk/models/dispute_created_webhook_event.rb +9 -1
  9. data/lib/whop_sdk/models/dispute_updated_webhook_event.rb +9 -1
  10. data/lib/whop_sdk/models/entry_approved_webhook_event.rb +9 -1
  11. data/lib/whop_sdk/models/entry_created_webhook_event.rb +9 -1
  12. data/lib/whop_sdk/models/entry_deleted_webhook_event.rb +9 -1
  13. data/lib/whop_sdk/models/entry_denied_webhook_event.rb +9 -1
  14. data/lib/whop_sdk/models/file_create_params.rb +22 -0
  15. data/lib/whop_sdk/models/file_create_response.rb +90 -0
  16. data/lib/whop_sdk/models/file_retrieve_params.rb +14 -0
  17. data/lib/whop_sdk/models/file_retrieve_response.rb +74 -0
  18. data/lib/whop_sdk/models/invoice_created_webhook_event.rb +9 -1
  19. data/lib/whop_sdk/models/invoice_paid_webhook_event.rb +9 -1
  20. data/lib/whop_sdk/models/invoice_past_due_webhook_event.rb +9 -1
  21. data/lib/whop_sdk/models/invoice_voided_webhook_event.rb +9 -1
  22. data/lib/whop_sdk/models/lead_create_params.rb +58 -0
  23. data/lib/whop_sdk/models/lead_create_response.rb +149 -0
  24. data/lib/whop_sdk/models/lead_list_params.rb +78 -0
  25. data/lib/whop_sdk/models/lead_list_response.rb +149 -0
  26. data/lib/whop_sdk/models/lead_retrieve_params.rb +14 -0
  27. data/lib/whop_sdk/models/lead_retrieve_response.rb +149 -0
  28. data/lib/whop_sdk/models/lead_update_params.rb +30 -0
  29. data/lib/whop_sdk/models/lead_update_response.rb +149 -0
  30. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +106 -1
  31. data/lib/whop_sdk/models/membership_activated_webhook_event.rb +9 -1
  32. data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +61 -0
  33. data/lib/whop_sdk/models/membership_deactivated_webhook_event.rb +9 -1
  34. data/lib/whop_sdk/models/membership_status.rb +1 -0
  35. data/lib/whop_sdk/models/payment.rb +3 -3
  36. data/lib/whop_sdk/models/payment_create_params.rb +9 -1
  37. data/lib/whop_sdk/models/payment_created_webhook_event.rb +9 -1
  38. data/lib/whop_sdk/models/payment_failed_webhook_event.rb +9 -1
  39. data/lib/whop_sdk/models/payment_list_fees_response.rb +1 -0
  40. data/lib/whop_sdk/models/payment_list_response.rb +3 -3
  41. data/lib/whop_sdk/models/payment_method_list_params.rb +16 -8
  42. data/lib/whop_sdk/models/payment_method_retrieve_params.rb +13 -5
  43. data/lib/whop_sdk/models/payment_method_types.rb +30 -30
  44. data/lib/whop_sdk/models/payment_pending_webhook_event.rb +9 -1
  45. data/lib/whop_sdk/models/payment_succeeded_webhook_event.rb +9 -1
  46. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +176 -0
  47. data/lib/whop_sdk/models/payout_method_list_response.rb +31 -1
  48. data/lib/whop_sdk/models/payout_method_retrieve_params.rb +14 -0
  49. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +125 -0
  50. data/lib/whop_sdk/models/plan_create_params.rb +9 -1
  51. data/lib/whop_sdk/models/plan_update_params.rb +9 -1
  52. data/lib/whop_sdk/models/refund_created_webhook_event.rb +9 -1
  53. data/lib/whop_sdk/models/refund_updated_webhook_event.rb +9 -1
  54. data/lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb +9 -1
  55. data/lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb +9 -1
  56. data/lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb +9 -1
  57. data/lib/whop_sdk/models/support_channel_create_params.rb +2 -2
  58. data/lib/whop_sdk/models/topup_create_params.rb +46 -0
  59. data/lib/whop_sdk/models/topup_create_response.rb +67 -0
  60. data/lib/whop_sdk/models/unwrap_webhook_event.rb +8 -1
  61. data/lib/whop_sdk/models/verification_retrieve_params.rb +14 -0
  62. data/lib/whop_sdk/models/verification_retrieve_response.rb +99 -0
  63. data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +150 -0
  64. data/lib/whop_sdk/models/webhook_create_params.rb +117 -0
  65. data/lib/whop_sdk/models/webhook_create_response.rb +184 -0
  66. data/lib/whop_sdk/models/webhook_delete_params.rb +14 -0
  67. data/lib/whop_sdk/models/webhook_delete_response.rb +8 -0
  68. data/lib/whop_sdk/models/webhook_list_params.rb +54 -0
  69. data/lib/whop_sdk/models/webhook_list_response.rb +123 -0
  70. data/lib/whop_sdk/models/webhook_retrieve_params.rb +14 -0
  71. data/lib/whop_sdk/models/webhook_retrieve_response.rb +176 -0
  72. data/lib/whop_sdk/models/webhook_update_params.rb +104 -0
  73. data/lib/whop_sdk/models/webhook_update_response.rb +176 -0
  74. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +9 -1
  75. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +9 -1
  76. data/lib/whop_sdk/models.rb +35 -0
  77. data/lib/whop_sdk/resources/files.rb +56 -0
  78. data/lib/whop_sdk/resources/leads.rb +158 -0
  79. data/lib/whop_sdk/resources/payment_methods.rb +12 -8
  80. data/lib/whop_sdk/resources/payments.rb +3 -1
  81. data/lib/whop_sdk/resources/payout_methods.rb +24 -0
  82. data/lib/whop_sdk/resources/plans.rb +6 -2
  83. data/lib/whop_sdk/resources/support_channels.rb +1 -1
  84. data/lib/whop_sdk/resources/topups.rb +46 -0
  85. data/lib/whop_sdk/resources/verifications.rb +38 -0
  86. data/lib/whop_sdk/resources/webhooks.rb +159 -1
  87. data/lib/whop_sdk/version.rb +1 -1
  88. data/lib/whop_sdk.rb +35 -0
  89. data/rbi/whop_sdk/client.rbi +12 -0
  90. data/rbi/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbi +9 -1
  91. data/rbi/whop_sdk/models/dispute_created_webhook_event.rbi +9 -1
  92. data/rbi/whop_sdk/models/dispute_updated_webhook_event.rbi +9 -1
  93. data/rbi/whop_sdk/models/entry_approved_webhook_event.rbi +9 -1
  94. data/rbi/whop_sdk/models/entry_created_webhook_event.rbi +9 -1
  95. data/rbi/whop_sdk/models/entry_deleted_webhook_event.rbi +9 -1
  96. data/rbi/whop_sdk/models/entry_denied_webhook_event.rbi +9 -1
  97. data/rbi/whop_sdk/models/file_create_params.rbi +40 -0
  98. data/rbi/whop_sdk/models/file_create_response.rbi +140 -0
  99. data/rbi/whop_sdk/models/file_retrieve_params.rbi +27 -0
  100. data/rbi/whop_sdk/models/file_retrieve_response.rbi +129 -0
  101. data/rbi/whop_sdk/models/invoice_created_webhook_event.rbi +9 -1
  102. data/rbi/whop_sdk/models/invoice_paid_webhook_event.rbi +9 -1
  103. data/rbi/whop_sdk/models/invoice_past_due_webhook_event.rbi +9 -1
  104. data/rbi/whop_sdk/models/invoice_voided_webhook_event.rbi +9 -1
  105. data/rbi/whop_sdk/models/lead_create_params.rbi +77 -0
  106. data/rbi/whop_sdk/models/lead_create_response.rbi +234 -0
  107. data/rbi/whop_sdk/models/lead_list_params.rbi +99 -0
  108. data/rbi/whop_sdk/models/lead_list_response.rbi +230 -0
  109. data/rbi/whop_sdk/models/lead_retrieve_params.rbi +27 -0
  110. data/rbi/whop_sdk/models/lead_retrieve_response.rbi +238 -0
  111. data/rbi/whop_sdk/models/lead_update_params.rbi +51 -0
  112. data/rbi/whop_sdk/models/lead_update_response.rbi +234 -0
  113. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +318 -0
  114. data/rbi/whop_sdk/models/membership_activated_webhook_event.rbi +9 -1
  115. data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +85 -0
  116. data/rbi/whop_sdk/models/membership_deactivated_webhook_event.rbi +9 -1
  117. data/rbi/whop_sdk/models/membership_status.rbi +1 -0
  118. data/rbi/whop_sdk/models/payment.rbi +4 -4
  119. data/rbi/whop_sdk/models/payment_create_params.rbi +8 -0
  120. data/rbi/whop_sdk/models/payment_created_webhook_event.rbi +9 -1
  121. data/rbi/whop_sdk/models/payment_failed_webhook_event.rbi +9 -1
  122. data/rbi/whop_sdk/models/payment_list_fees_response.rbi +5 -0
  123. data/rbi/whop_sdk/models/payment_list_response.rbi +4 -4
  124. data/rbi/whop_sdk/models/payment_method_list_params.rbi +16 -8
  125. data/rbi/whop_sdk/models/payment_method_retrieve_params.rbi +17 -6
  126. data/rbi/whop_sdk/models/payment_method_types.rbi +33 -33
  127. data/rbi/whop_sdk/models/payment_pending_webhook_event.rbi +9 -1
  128. data/rbi/whop_sdk/models/payment_succeeded_webhook_event.rbi +9 -1
  129. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +348 -0
  130. data/rbi/whop_sdk/models/payout_method_list_response.rbi +58 -0
  131. data/rbi/whop_sdk/models/payout_method_retrieve_params.rbi +27 -0
  132. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +262 -0
  133. data/rbi/whop_sdk/models/plan_create_params.rbi +8 -0
  134. data/rbi/whop_sdk/models/plan_update_params.rbi +8 -0
  135. data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +9 -1
  136. data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +9 -1
  137. data/rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi +9 -1
  138. data/rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi +9 -1
  139. data/rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi +9 -1
  140. data/rbi/whop_sdk/models/support_channel_create_params.rbi +2 -2
  141. data/rbi/whop_sdk/models/topup_create_params.rbi +67 -0
  142. data/rbi/whop_sdk/models/topup_create_response.rbi +89 -0
  143. data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +4 -1
  144. data/rbi/whop_sdk/models/verification_retrieve_params.rbi +27 -0
  145. data/rbi/whop_sdk/models/verification_retrieve_response.rbi +290 -0
  146. data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +375 -0
  147. data/rbi/whop_sdk/models/webhook_create_params.rbi +275 -0
  148. data/rbi/whop_sdk/models/webhook_create_response.rbi +494 -0
  149. data/rbi/whop_sdk/models/webhook_delete_params.rbi +27 -0
  150. data/rbi/whop_sdk/models/webhook_delete_response.rbi +8 -0
  151. data/rbi/whop_sdk/models/webhook_list_params.rbi +75 -0
  152. data/rbi/whop_sdk/models/webhook_list_response.rbi +297 -0
  153. data/rbi/whop_sdk/models/webhook_retrieve_params.rbi +27 -0
  154. data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +491 -0
  155. data/rbi/whop_sdk/models/webhook_update_params.rbi +263 -0
  156. data/rbi/whop_sdk/models/webhook_update_response.rbi +486 -0
  157. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +9 -1
  158. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +9 -1
  159. data/rbi/whop_sdk/models.rbi +37 -0
  160. data/rbi/whop_sdk/resources/files.rbi +40 -0
  161. data/rbi/whop_sdk/resources/leads.rbi +138 -0
  162. data/rbi/whop_sdk/resources/payment_methods.rbi +13 -7
  163. data/rbi/whop_sdk/resources/payments.rbi +3 -0
  164. data/rbi/whop_sdk/resources/payout_methods.rbi +18 -0
  165. data/rbi/whop_sdk/resources/plans.rbi +6 -0
  166. data/rbi/whop_sdk/resources/support_channels.rbi +1 -1
  167. data/rbi/whop_sdk/resources/topups.rbi +39 -0
  168. data/rbi/whop_sdk/resources/verifications.rbi +30 -0
  169. data/rbi/whop_sdk/resources/webhooks.rbi +144 -1
  170. data/sig/whop_sdk/client.rbs +8 -0
  171. data/sig/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbs +7 -2
  172. data/sig/whop_sdk/models/dispute_created_webhook_event.rbs +7 -2
  173. data/sig/whop_sdk/models/dispute_updated_webhook_event.rbs +7 -2
  174. data/sig/whop_sdk/models/entry_approved_webhook_event.rbs +7 -2
  175. data/sig/whop_sdk/models/entry_created_webhook_event.rbs +7 -2
  176. data/sig/whop_sdk/models/entry_deleted_webhook_event.rbs +7 -2
  177. data/sig/whop_sdk/models/entry_denied_webhook_event.rbs +7 -2
  178. data/sig/whop_sdk/models/file_create_params.rbs +23 -0
  179. data/sig/whop_sdk/models/file_create_response.rbs +68 -0
  180. data/sig/whop_sdk/models/file_retrieve_params.rbs +15 -0
  181. data/sig/whop_sdk/models/file_retrieve_response.rbs +58 -0
  182. data/sig/whop_sdk/models/invoice_created_webhook_event.rbs +7 -2
  183. data/sig/whop_sdk/models/invoice_paid_webhook_event.rbs +7 -2
  184. data/sig/whop_sdk/models/invoice_past_due_webhook_event.rbs +7 -2
  185. data/sig/whop_sdk/models/invoice_voided_webhook_event.rbs +7 -2
  186. data/sig/whop_sdk/models/lead_create_params.rbs +46 -0
  187. data/sig/whop_sdk/models/lead_create_response.rbs +104 -0
  188. data/sig/whop_sdk/models/lead_list_params.rbs +61 -0
  189. data/sig/whop_sdk/models/lead_list_response.rbs +104 -0
  190. data/sig/whop_sdk/models/lead_retrieve_params.rbs +15 -0
  191. data/sig/whop_sdk/models/lead_retrieve_response.rbs +104 -0
  192. data/sig/whop_sdk/models/lead_update_params.rbs +28 -0
  193. data/sig/whop_sdk/models/lead_update_response.rbs +104 -0
  194. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +119 -0
  195. data/sig/whop_sdk/models/membership_activated_webhook_event.rbs +7 -2
  196. data/sig/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbs +45 -0
  197. data/sig/whop_sdk/models/membership_deactivated_webhook_event.rbs +7 -2
  198. data/sig/whop_sdk/models/membership_status.rbs +2 -0
  199. data/sig/whop_sdk/models/payment_create_params.rbs +5 -0
  200. data/sig/whop_sdk/models/payment_created_webhook_event.rbs +7 -2
  201. data/sig/whop_sdk/models/payment_failed_webhook_event.rbs +7 -2
  202. data/sig/whop_sdk/models/payment_list_fees_response.rbs +2 -0
  203. data/sig/whop_sdk/models/payment_method_list_params.rbs +11 -6
  204. data/sig/whop_sdk/models/payment_method_retrieve_params.rbs +9 -4
  205. data/sig/whop_sdk/models/payment_method_types.rbs +61 -61
  206. data/sig/whop_sdk/models/payment_pending_webhook_event.rbs +7 -2
  207. data/sig/whop_sdk/models/payment_succeeded_webhook_event.rbs +7 -2
  208. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +145 -0
  209. data/sig/whop_sdk/models/payout_method_list_response.rbs +20 -0
  210. data/sig/whop_sdk/models/payout_method_retrieve_params.rbs +15 -0
  211. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +103 -0
  212. data/sig/whop_sdk/models/plan_create_params.rbs +5 -0
  213. data/sig/whop_sdk/models/plan_update_params.rbs +5 -0
  214. data/sig/whop_sdk/models/refund_created_webhook_event.rbs +7 -2
  215. data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +7 -2
  216. data/sig/whop_sdk/models/setup_intent_canceled_webhook_event.rbs +7 -2
  217. data/sig/whop_sdk/models/setup_intent_requires_action_webhook_event.rbs +7 -2
  218. data/sig/whop_sdk/models/setup_intent_succeeded_webhook_event.rbs +7 -2
  219. data/sig/whop_sdk/models/topup_create_params.rbs +41 -0
  220. data/sig/whop_sdk/models/topup_create_response.rbs +50 -0
  221. data/sig/whop_sdk/models/unwrap_webhook_event.rbs +3 -0
  222. data/sig/whop_sdk/models/verification_retrieve_params.rbs +15 -0
  223. data/sig/whop_sdk/models/verification_retrieve_response.rbs +117 -0
  224. data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +159 -0
  225. data/sig/whop_sdk/models/webhook_create_params.rbs +126 -0
  226. data/sig/whop_sdk/models/webhook_create_response.rbs +203 -0
  227. data/sig/whop_sdk/models/webhook_delete_params.rbs +15 -0
  228. data/sig/whop_sdk/models/webhook_delete_response.rbs +5 -0
  229. data/sig/whop_sdk/models/webhook_list_params.rbs +46 -0
  230. data/sig/whop_sdk/models/webhook_list_response.rbs +125 -0
  231. data/sig/whop_sdk/models/webhook_retrieve_params.rbs +15 -0
  232. data/sig/whop_sdk/models/webhook_retrieve_response.rbs +198 -0
  233. data/sig/whop_sdk/models/webhook_update_params.rbs +121 -0
  234. data/sig/whop_sdk/models/webhook_update_response.rbs +198 -0
  235. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +7 -2
  236. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +7 -2
  237. data/sig/whop_sdk/models.rbs +34 -0
  238. data/sig/whop_sdk/resources/files.rbs +17 -0
  239. data/sig/whop_sdk/resources/leads.rbs +40 -0
  240. data/sig/whop_sdk/resources/payment_methods.rbs +4 -2
  241. data/sig/whop_sdk/resources/payments.rbs +1 -0
  242. data/sig/whop_sdk/resources/payout_methods.rbs +5 -0
  243. data/sig/whop_sdk/resources/plans.rbs +2 -0
  244. data/sig/whop_sdk/resources/topups.rbs +15 -0
  245. data/sig/whop_sdk/resources/verifications.rbs +12 -0
  246. data/sig/whop_sdk/resources/webhooks.rbs +40 -1
  247. metadata +107 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d32dcd76f73b594a7fb102d804def660554a926905cf81c5ad81a2835721a71
4
- data.tar.gz: 0b65615f3d8e3eaf643936cae943966f0351d2728d0882fbafa16ea33cd0c9f4
3
+ metadata.gz: 1c724e98153a9b2da18320ec44a1a8c6210873521c6eb4525c5f93207913190e
4
+ data.tar.gz: 418b37092a6facdd88dfc74ff4e273767fcb62efa4dfed034cd783cf3ee8790c
5
5
  SHA512:
6
- metadata.gz: f2a29382fe7f2ab33548b34e2ce073daf549a99081e436b5e985fdd5b10357918f81f995f58c468ea22897ecb8672384f112d53922a06b1a3930915d7b57eac4
7
- data.tar.gz: 74cb5af4f78fc63f224055e5059b6470f94aff83886ff98307312d10a0efc3be3ac3c1b29a609c25e159dae0a6de5ba2db25bbfac3ac4367c5cc653f05222cb8
6
+ metadata.gz: 121e768b3fd4815b3e63d0a40e519468bca26dd2768ebaaf9ee885c653a876e295abdac34f0e584c952054a019ce22bda4785fac3f14c8d54819833b40589026
7
+ data.tar.gz: 2e92c54e7a0c90b4c5df4357b1ba0744cb2bf0f2cd4e40e35d4f53f8f029073fd35d7dfb4f1b330bb5abb3f64c463868944458f753e8517a9f44ae31ecbaaa56
data/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.23 (2026-01-09)
4
+
5
+ Full Changelog: [v0.0.22...v0.0.23](https://github.com/whopio/whopsdk-ruby/compare/v0.0.22...v0.0.23)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([6d0422b](https://github.com/whopio/whopsdk-ruby/commit/6d0422b645c0755c08f35bd45f6cacb9b2a1ea11))
10
+ * **api:** api update ([0d95b1b](https://github.com/whopio/whopsdk-ruby/commit/0d95b1be6569e8b6432fd10f0357d56a675af676))
11
+ * **api:** manual updates ([55c8224](https://github.com/whopio/whopsdk-ruby/commit/55c822404713c1762d0a25b4d6541fa7d7236ecb))
12
+
13
+ ## 0.0.22 (2026-01-07)
14
+
15
+ Full Changelog: [v0.0.20...v0.0.22](https://github.com/whopio/whopsdk-ruby/compare/v0.0.20...v0.0.22)
16
+
17
+ ### Features
18
+
19
+ * **api:** api update ([3632c09](https://github.com/whopio/whopsdk-ruby/commit/3632c093586872857f605313dc80935152ceb2b4))
20
+ * **api:** api update ([1369d6a](https://github.com/whopio/whopsdk-ruby/commit/1369d6a6a970fda437f47d398f14fdbd240326ba))
21
+ * **api:** api update ([185c3ca](https://github.com/whopio/whopsdk-ruby/commit/185c3cad5d43af42c98004dfb6320bba79a4eb37))
22
+ * **api:** api update ([7b79b5e](https://github.com/whopio/whopsdk-ruby/commit/7b79b5ecb10e297b2b40c6e9bcd8710486738370))
23
+ * **api:** api update ([6b01cd6](https://github.com/whopio/whopsdk-ruby/commit/6b01cd6184c20f7b58f6b290afce78daf4fcb4ef))
24
+ * **api:** api update ([f6a40eb](https://github.com/whopio/whopsdk-ruby/commit/f6a40eb1748db6b849c3857c8dd80ea2c2ce2402))
25
+ * **api:** api update ([131ef7d](https://github.com/whopio/whopsdk-ruby/commit/131ef7d9396af31afbbc4cedb3f62835453cd4ca))
26
+ * **api:** api update ([789ca6d](https://github.com/whopio/whopsdk-ruby/commit/789ca6d43533a22f94370de9c05c4ecf9714a044))
27
+ * **api:** api update ([d165256](https://github.com/whopio/whopsdk-ruby/commit/d16525653fc3bb992650b120b2b63f3bac07dd77))
28
+ * **api:** api update ([fe37424](https://github.com/whopio/whopsdk-ruby/commit/fe37424c5fd9a258bea07a1c003148ab6fbd02bd))
29
+ * **api:** api update ([43788a0](https://github.com/whopio/whopsdk-ruby/commit/43788a0bdefecbcd1bea6393fb6959cf082a1b44))
30
+ * **api:** api update ([72d8b00](https://github.com/whopio/whopsdk-ruby/commit/72d8b0022e186f3e9e3235fb95cbbe353e3a73a9))
31
+ * **api:** manual updates ([6e8e692](https://github.com/whopio/whopsdk-ruby/commit/6e8e692bef8870ba11108e1febdefdeb70e9edbd))
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * calling `break` out of streams should be instantaneous ([7503ef5](https://github.com/whopio/whopsdk-ruby/commit/7503ef5800775d0c158500da07554f6f4e3e8d95))
37
+ * issue where json.parse errors when receiving HTTP 204 with nobody ([919e4e1](https://github.com/whopio/whopsdk-ruby/commit/919e4e1a8a9dcada6957cbf07884c5cba26663fa))
38
+
39
+
40
+ ### Documentation
41
+
42
+ * prominently feature MCP server setup in root SDK readmes ([8a808ef](https://github.com/whopio/whopsdk-ruby/commit/8a808ef1e408cc29afcdfce17d03dd828c09d7cb))
43
+
3
44
  ## 0.0.20 (2025-12-16)
4
45
 
5
46
  Full Changelog: [v0.0.19...v0.0.20](https://github.com/whopio/whopsdk-ruby/compare/v0.0.19...v0.0.20)
data/README.md CHANGED
@@ -4,6 +4,15 @@ The Whop Ruby library provides convenient access to the Whop REST API from any R
4
4
 
5
5
  It is generated with [Stainless](https://www.stainless.com/).
6
6
 
7
+ ## MCP Server
8
+
9
+ Use the Whop MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
10
+
11
+ [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40whop%2Fmcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB3aG9wL21jcCJdfQ)
12
+ [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40whop%2Fmcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40whop%2Fmcp%22%5D%7D)
13
+
14
+ > Note: You may need to set environment variables in your MCP client.
15
+
7
16
  ## Documentation
8
17
 
9
18
  Documentation for releases of this gem can be found [on RubyDoc](https://gemdocs.org/gems/whop_sdk).
@@ -17,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
17
26
  <!-- x-release-please-start-version -->
18
27
 
19
28
  ```ruby
20
- gem "whop_sdk", "~> 0.0.20"
29
+ gem "whop_sdk", "~> 0.0.23"
21
30
  ```
22
31
 
23
32
  <!-- x-release-please-end -->
@@ -147,6 +147,18 @@ module WhopSDK
147
147
  # @return [WhopSDK::Resources::PayoutMethods]
148
148
  attr_reader :payout_methods
149
149
 
150
+ # @return [WhopSDK::Resources::Verifications]
151
+ attr_reader :verifications
152
+
153
+ # @return [WhopSDK::Resources::Leads]
154
+ attr_reader :leads
155
+
156
+ # @return [WhopSDK::Resources::Topups]
157
+ attr_reader :topups
158
+
159
+ # @return [WhopSDK::Resources::Files]
160
+ attr_reader :files
161
+
150
162
  # @api private
151
163
  #
152
164
  # @return [Hash{String=>String}]
@@ -245,6 +257,10 @@ module WhopSDK
245
257
  @payment_methods = WhopSDK::Resources::PaymentMethods.new(client: self)
246
258
  @fee_markups = WhopSDK::Resources::FeeMarkups.new(client: self)
247
259
  @payout_methods = WhopSDK::Resources::PayoutMethods.new(client: self)
260
+ @verifications = WhopSDK::Resources::Verifications.new(client: self)
261
+ @leads = WhopSDK::Resources::Leads.new(client: self)
262
+ @topups = WhopSDK::Resources::Topups.new(client: self)
263
+ @files = WhopSDK::Resources::Files.new(client: self)
248
264
  end
249
265
 
250
266
  # Verifies a Whop user token
@@ -153,17 +153,19 @@ module WhopSDK
153
153
  end
154
154
 
155
155
  self.class.calibrate_socket_timeout(conn, deadline)
156
- conn.request(req) do |rsp|
157
- y << [req, rsp]
158
- break if finished
159
-
160
- rsp.read_body do |bytes|
161
- y << bytes.force_encoding(Encoding::BINARY)
162
- break if finished
163
-
164
- self.class.calibrate_socket_timeout(conn, deadline)
156
+ ::Kernel.catch(:jump) do
157
+ conn.request(req) do |rsp|
158
+ y << [req, rsp]
159
+ ::Kernel.throw(:jump) if finished
160
+
161
+ rsp.read_body do |bytes|
162
+ y << bytes.force_encoding(Encoding::BINARY)
163
+ ::Kernel.throw(:jump) if finished
164
+
165
+ self.class.calibrate_socket_timeout(conn, deadline)
166
+ end
167
+ eof = true
165
168
  end
166
- eof = true
167
169
  end
168
170
  end
169
171
  ensure
@@ -657,7 +657,8 @@ module WhopSDK
657
657
  def decode_content(headers, stream:, suppress_error: false)
658
658
  case (content_type = headers["content-type"])
659
659
  in WhopSDK::Internal::Util::JSON_CONTENT
660
- json = stream.to_a.join
660
+ return nil if (json = stream.to_a.join).empty?
661
+
661
662
  begin
662
663
  JSON.parse(json, symbolize_names: true)
663
664
  rescue JSON::ParserError => e
@@ -667,7 +668,11 @@ module WhopSDK
667
668
  in WhopSDK::Internal::Util::JSONL_CONTENT
668
669
  lines = decode_lines(stream)
669
670
  chain_fused(lines) do |y|
670
- lines.each { y << JSON.parse(_1, symbolize_names: true) }
671
+ lines.each do
672
+ next if _1.empty?
673
+
674
+ y << JSON.parse(_1, symbolize_names: true)
675
+ end
671
676
  end
672
677
  in %r{^text/event-stream}
673
678
  lines = decode_lines(stream)
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"course_lesson_interaction.completed"]
34
34
  required :type, const: :"course_lesson_interaction.completed"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"course_lesson_interaction.completed")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"course_lesson_interaction.completed")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::CourseLessonInteraction] A lesson interaction tracking user progress in courses
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"course_lesson_interaction.completed"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"dispute.created"]
34
34
  required :type, const: :"dispute.created"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"dispute.created")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"dispute.created")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Dispute] An object representing a dispute against a company.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"dispute.created"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"dispute.updated"]
34
34
  required :type, const: :"dispute.updated"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"dispute.updated")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"dispute.updated")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Dispute] An object representing a dispute against a company.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"dispute.updated"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"entry.approved"]
34
34
  required :type, const: :"entry.approved"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"entry.approved")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"entry.approved")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Entry] An object representing an entry in a waitlist.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"entry.approved"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"entry.created"]
34
34
  required :type, const: :"entry.created"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"entry.created")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"entry.created")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Entry] An object representing an entry in a waitlist.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"entry.created"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"entry.deleted"]
34
34
  required :type, const: :"entry.deleted"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"entry.deleted")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"entry.deleted")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Entry] An object representing an entry in a waitlist.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"entry.deleted"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"entry.denied"]
34
34
  required :type, const: :"entry.denied"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"entry.denied")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"entry.denied")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Entry] An object representing an entry in a waitlist.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"entry.denied"] The webhook event type
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::Files#create
6
+ class FileCreateParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute filename
11
+ # The filename of the file
12
+ #
13
+ # @return [String]
14
+ required :filename, String
15
+
16
+ # @!method initialize(filename:, request_options: {})
17
+ # @param filename [String] The filename of the file
18
+ #
19
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,90 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::Files#create
6
+ class FileCreateResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The ID of the file
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute content_type
14
+ # The MIME type of the file (e.g., image/jpeg, video/mp4)
15
+ #
16
+ # @return [String, nil]
17
+ required :content_type, String, nil?: true
18
+
19
+ # @!attribute filename
20
+ # The name of the file
21
+ #
22
+ # @return [String, nil]
23
+ required :filename, String, nil?: true
24
+
25
+ # @!attribute size
26
+ # The size of the file in bytes
27
+ #
28
+ # @return [String, nil]
29
+ required :size, String, nil?: true
30
+
31
+ # @!attribute upload_headers
32
+ # Headers to include in the upload request (only on create)
33
+ #
34
+ # @return [Hash{Symbol=>Object}, nil]
35
+ required :upload_headers, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
36
+
37
+ # @!attribute upload_status
38
+ # The upload status of the file
39
+ #
40
+ # @return [Symbol, WhopSDK::Models::FileCreateResponse::UploadStatus]
41
+ required :upload_status, enum: -> { WhopSDK::Models::FileCreateResponse::UploadStatus }
42
+
43
+ # @!attribute upload_url
44
+ # The presigned URL to upload the file to (only on create)
45
+ #
46
+ # @return [String, nil]
47
+ required :upload_url, String, nil?: true
48
+
49
+ # @!attribute url
50
+ # The URL to access the file
51
+ #
52
+ # @return [String, nil]
53
+ required :url, String, nil?: true
54
+
55
+ # @!method initialize(id:, content_type:, filename:, size:, upload_headers:, upload_status:, upload_url:, url:)
56
+ # A file that has been uploaded or is pending upload
57
+ #
58
+ # @param id [String] The ID of the file
59
+ #
60
+ # @param content_type [String, nil] The MIME type of the file (e.g., image/jpeg, video/mp4)
61
+ #
62
+ # @param filename [String, nil] The name of the file
63
+ #
64
+ # @param size [String, nil] The size of the file in bytes
65
+ #
66
+ # @param upload_headers [Hash{Symbol=>Object}, nil] Headers to include in the upload request (only on create)
67
+ #
68
+ # @param upload_status [Symbol, WhopSDK::Models::FileCreateResponse::UploadStatus] The upload status of the file
69
+ #
70
+ # @param upload_url [String, nil] The presigned URL to upload the file to (only on create)
71
+ #
72
+ # @param url [String, nil] The URL to access the file
73
+
74
+ # The upload status of the file
75
+ #
76
+ # @see WhopSDK::Models::FileCreateResponse#upload_status
77
+ module UploadStatus
78
+ extend WhopSDK::Internal::Type::Enum
79
+
80
+ PENDING = :pending
81
+ PROCESSING = :processing
82
+ READY = :ready
83
+ FAILED = :failed
84
+
85
+ # @!method self.values
86
+ # @return [Array<Symbol>]
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::Files#retrieve
6
+ class FileRetrieveParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::Files#retrieve
6
+ class FileRetrieveResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The ID of the file
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute content_type
14
+ # The MIME type of the file (e.g., image/jpeg, video/mp4)
15
+ #
16
+ # @return [String, nil]
17
+ required :content_type, String, nil?: true
18
+
19
+ # @!attribute filename
20
+ # The name of the file
21
+ #
22
+ # @return [String, nil]
23
+ required :filename, String, nil?: true
24
+
25
+ # @!attribute size
26
+ # The size of the file in bytes
27
+ #
28
+ # @return [String, nil]
29
+ required :size, String, nil?: true
30
+
31
+ # @!attribute upload_status
32
+ # The upload status of the file
33
+ #
34
+ # @return [Symbol, WhopSDK::Models::FileRetrieveResponse::UploadStatus]
35
+ required :upload_status, enum: -> { WhopSDK::Models::FileRetrieveResponse::UploadStatus }
36
+
37
+ # @!attribute url
38
+ # The URL to access the file
39
+ #
40
+ # @return [String, nil]
41
+ required :url, String, nil?: true
42
+
43
+ # @!method initialize(id:, content_type:, filename:, size:, upload_status:, url:)
44
+ # A file that has been uploaded or is pending upload
45
+ #
46
+ # @param id [String] The ID of the file
47
+ #
48
+ # @param content_type [String, nil] The MIME type of the file (e.g., image/jpeg, video/mp4)
49
+ #
50
+ # @param filename [String, nil] The name of the file
51
+ #
52
+ # @param size [String, nil] The size of the file in bytes
53
+ #
54
+ # @param upload_status [Symbol, WhopSDK::Models::FileRetrieveResponse::UploadStatus] The upload status of the file
55
+ #
56
+ # @param url [String, nil] The URL to access the file
57
+
58
+ # The upload status of the file
59
+ #
60
+ # @see WhopSDK::Models::FileRetrieveResponse#upload_status
61
+ module UploadStatus
62
+ extend WhopSDK::Internal::Type::Enum
63
+
64
+ PENDING = :pending
65
+ PROCESSING = :processing
66
+ READY = :ready
67
+ FAILED = :failed
68
+
69
+ # @!method self.values
70
+ # @return [Array<Symbol>]
71
+ end
72
+ end
73
+ end
74
+ end
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"invoice.created"]
34
34
  required :type, const: :"invoice.created"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"invoice.created")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"invoice.created")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Invoice] A statement that defines an amount due by a customer.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"invoice.created"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"invoice.paid"]
34
34
  required :type, const: :"invoice.paid"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"invoice.paid")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"invoice.paid")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Invoice] A statement that defines an amount due by a customer.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"invoice.paid"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"invoice.past_due"]
34
34
  required :type, const: :"invoice.past_due"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"invoice.past_due")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"invoice.past_due")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Invoice] A statement that defines an amount due by a customer.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"invoice.past_due"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"invoice.voided"]
34
34
  required :type, const: :"invoice.voided"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"invoice.voided")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"invoice.voided")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Invoice] A statement that defines an amount due by a customer.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"invoice.voided"] The webhook event type