whop_sdk 0.0.22 → 0.0.24

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 (299) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +45 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +4 -0
  5. data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
  6. data/lib/whop_sdk/models/app_create_params.rb +22 -1
  7. data/lib/whop_sdk/models/app_list_params.rb +5 -0
  8. data/lib/whop_sdk/models/app_update_params.rb +14 -53
  9. data/lib/whop_sdk/models/card_brands.rb +16 -0
  10. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
  11. data/lib/whop_sdk/models/company_create_params.rb +22 -1
  12. data/lib/whop_sdk/models/company_update_params.rb +28 -106
  13. data/lib/whop_sdk/models/course_create_params.rb +15 -62
  14. data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
  15. data/lib/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rb +9 -1
  16. data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
  17. data/lib/whop_sdk/models/course_update_params.rb +14 -61
  18. data/lib/whop_sdk/models/dispute_created_webhook_event.rb +9 -1
  19. data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
  20. data/lib/whop_sdk/models/dispute_updated_webhook_event.rb +9 -1
  21. data/lib/whop_sdk/models/entry_approved_webhook_event.rb +9 -1
  22. data/lib/whop_sdk/models/entry_created_webhook_event.rb +9 -1
  23. data/lib/whop_sdk/models/entry_deleted_webhook_event.rb +9 -1
  24. data/lib/whop_sdk/models/entry_denied_webhook_event.rb +9 -1
  25. data/lib/whop_sdk/models/experience_create_params.rb +22 -1
  26. data/lib/whop_sdk/models/experience_update_params.rb +14 -53
  27. data/lib/whop_sdk/models/file_create_params.rb +22 -0
  28. data/lib/whop_sdk/models/file_create_response.rb +90 -0
  29. data/lib/whop_sdk/models/file_retrieve_params.rb +14 -0
  30. data/lib/whop_sdk/models/file_retrieve_response.rb +74 -0
  31. data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
  32. data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
  33. data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
  34. data/lib/whop_sdk/models/invoice_created_webhook_event.rb +9 -1
  35. data/lib/whop_sdk/models/invoice_paid_webhook_event.rb +9 -1
  36. data/lib/whop_sdk/models/invoice_past_due_webhook_event.rb +9 -1
  37. data/lib/whop_sdk/models/invoice_voided_webhook_event.rb +9 -1
  38. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
  39. data/lib/whop_sdk/models/member_list_response.rb +9 -1
  40. data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
  41. data/lib/whop_sdk/models/membership.rb +76 -2
  42. data/lib/whop_sdk/models/membership_activated_webhook_event.rb +9 -1
  43. data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +9 -1
  44. data/lib/whop_sdk/models/membership_deactivated_webhook_event.rb +9 -1
  45. data/lib/whop_sdk/models/membership_list_response.rb +38 -2
  46. data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
  47. data/lib/whop_sdk/models/message_create_params.rb +13 -52
  48. data/lib/whop_sdk/models/message_update_params.rb +14 -53
  49. data/lib/whop_sdk/models/payment.rb +17 -1
  50. data/lib/whop_sdk/models/payment_created_webhook_event.rb +9 -1
  51. data/lib/whop_sdk/models/payment_failed_webhook_event.rb +9 -1
  52. data/lib/whop_sdk/models/payment_list_response.rb +17 -1
  53. data/lib/whop_sdk/models/payment_method_types.rb +38 -37
  54. data/lib/whop_sdk/models/payment_pending_webhook_event.rb +9 -1
  55. data/lib/whop_sdk/models/payment_provider.rb +1 -0
  56. data/lib/whop_sdk/models/payment_succeeded_webhook_event.rb +9 -1
  57. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +35 -2
  58. data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
  59. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
  60. data/lib/whop_sdk/models/plan_create_params.rb +23 -54
  61. data/lib/whop_sdk/models/plan_update_params.rb +23 -54
  62. data/lib/whop_sdk/models/refund_created_webhook_event.rb +9 -1
  63. data/lib/whop_sdk/models/refund_updated_webhook_event.rb +9 -1
  64. data/lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb +9 -1
  65. data/lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb +9 -1
  66. data/lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb +9 -1
  67. data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +9 -1
  68. data/lib/whop_sdk/models/webhook_create_params.rb +117 -0
  69. data/lib/whop_sdk/models/webhook_create_response.rb +184 -0
  70. data/lib/whop_sdk/models/webhook_delete_params.rb +14 -0
  71. data/lib/whop_sdk/models/webhook_delete_response.rb +8 -0
  72. data/lib/whop_sdk/models/webhook_list_params.rb +54 -0
  73. data/lib/whop_sdk/models/webhook_list_response.rb +123 -0
  74. data/lib/whop_sdk/models/webhook_retrieve_params.rb +14 -0
  75. data/lib/whop_sdk/models/webhook_retrieve_response.rb +176 -0
  76. data/lib/whop_sdk/models/webhook_update_params.rb +104 -0
  77. data/lib/whop_sdk/models/webhook_update_response.rb +176 -0
  78. data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
  79. data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
  80. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +11 -10
  81. data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
  82. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
  83. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +11 -10
  84. data/lib/whop_sdk/models.rb +16 -2
  85. data/lib/whop_sdk/resources/app_builds.rb +1 -1
  86. data/lib/whop_sdk/resources/apps.rb +4 -2
  87. data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
  88. data/lib/whop_sdk/resources/companies.rb +5 -3
  89. data/lib/whop_sdk/resources/course_lessons.rb +4 -4
  90. data/lib/whop_sdk/resources/courses.rb +4 -8
  91. data/lib/whop_sdk/resources/disputes.rb +4 -4
  92. data/lib/whop_sdk/resources/experiences.rb +4 -2
  93. data/lib/whop_sdk/resources/files.rb +56 -0
  94. data/lib/whop_sdk/resources/forum_posts.rb +2 -2
  95. data/lib/whop_sdk/resources/memberships.rb +32 -0
  96. data/lib/whop_sdk/resources/messages.rb +2 -2
  97. data/lib/whop_sdk/resources/notifications.rb +4 -0
  98. data/lib/whop_sdk/resources/plans.rb +8 -4
  99. data/lib/whop_sdk/resources/webhooks.rb +158 -0
  100. data/lib/whop_sdk/resources/withdrawals.rb +8 -1
  101. data/lib/whop_sdk/version.rb +1 -1
  102. data/lib/whop_sdk.rb +16 -1
  103. data/rbi/whop_sdk/client.rbi +3 -0
  104. data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
  105. data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
  106. data/rbi/whop_sdk/models/app_list_params.rbi +10 -0
  107. data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
  108. data/rbi/whop_sdk/models/card_brands.rbi +17 -0
  109. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
  110. data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
  111. data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
  112. data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
  113. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
  114. data/rbi/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbi +9 -1
  115. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
  116. data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
  117. data/rbi/whop_sdk/models/dispute_created_webhook_event.rbi +9 -1
  118. data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
  119. data/rbi/whop_sdk/models/dispute_updated_webhook_event.rbi +9 -1
  120. data/rbi/whop_sdk/models/entry_approved_webhook_event.rbi +9 -1
  121. data/rbi/whop_sdk/models/entry_created_webhook_event.rbi +9 -1
  122. data/rbi/whop_sdk/models/entry_deleted_webhook_event.rbi +9 -1
  123. data/rbi/whop_sdk/models/entry_denied_webhook_event.rbi +9 -1
  124. data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
  125. data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
  126. data/rbi/whop_sdk/models/file_create_params.rbi +40 -0
  127. data/rbi/whop_sdk/models/file_create_response.rbi +140 -0
  128. data/rbi/whop_sdk/models/file_retrieve_params.rbi +27 -0
  129. data/rbi/whop_sdk/models/file_retrieve_response.rbi +129 -0
  130. data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
  131. data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
  132. data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
  133. data/rbi/whop_sdk/models/invoice_created_webhook_event.rbi +9 -1
  134. data/rbi/whop_sdk/models/invoice_paid_webhook_event.rbi +9 -1
  135. data/rbi/whop_sdk/models/invoice_past_due_webhook_event.rbi +9 -1
  136. data/rbi/whop_sdk/models/invoice_voided_webhook_event.rbi +9 -1
  137. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
  138. data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
  139. data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
  140. data/rbi/whop_sdk/models/membership.rbi +126 -4
  141. data/rbi/whop_sdk/models/membership_activated_webhook_event.rbi +9 -1
  142. data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +9 -1
  143. data/rbi/whop_sdk/models/membership_deactivated_webhook_event.rbi +9 -1
  144. data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
  145. data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
  146. data/rbi/whop_sdk/models/message_create_params.rbi +18 -94
  147. data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
  148. data/rbi/whop_sdk/models/payment.rbi +16 -0
  149. data/rbi/whop_sdk/models/payment_created_webhook_event.rbi +9 -1
  150. data/rbi/whop_sdk/models/payment_failed_webhook_event.rbi +9 -1
  151. data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
  152. data/rbi/whop_sdk/models/payment_method_types.rbi +45 -43
  153. data/rbi/whop_sdk/models/payment_pending_webhook_event.rbi +9 -1
  154. data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
  155. data/rbi/whop_sdk/models/payment_succeeded_webhook_event.rbi +9 -1
  156. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +35 -1
  157. data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
  158. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
  159. data/rbi/whop_sdk/models/plan_create_params.rbi +29 -93
  160. data/rbi/whop_sdk/models/plan_update_params.rbi +29 -93
  161. data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +9 -1
  162. data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +9 -1
  163. data/rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi +9 -1
  164. data/rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi +9 -1
  165. data/rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi +9 -1
  166. data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +9 -1
  167. data/rbi/whop_sdk/models/webhook_create_params.rbi +275 -0
  168. data/rbi/whop_sdk/models/webhook_create_response.rbi +494 -0
  169. data/rbi/whop_sdk/models/webhook_delete_params.rbi +27 -0
  170. data/rbi/whop_sdk/models/webhook_delete_response.rbi +8 -0
  171. data/rbi/whop_sdk/models/webhook_list_params.rbi +75 -0
  172. data/rbi/whop_sdk/models/webhook_list_response.rbi +297 -0
  173. data/rbi/whop_sdk/models/webhook_retrieve_params.rbi +27 -0
  174. data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +491 -0
  175. data/rbi/whop_sdk/models/webhook_update_params.rbi +263 -0
  176. data/rbi/whop_sdk/models/webhook_update_response.rbi +486 -0
  177. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
  178. data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
  179. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +17 -12
  180. data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
  181. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
  182. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +17 -12
  183. data/rbi/whop_sdk/models.rbi +16 -2
  184. data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
  185. data/rbi/whop_sdk/resources/apps.rbi +4 -7
  186. data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
  187. data/rbi/whop_sdk/resources/companies.rbi +5 -13
  188. data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
  189. data/rbi/whop_sdk/resources/courses.rbi +2 -20
  190. data/rbi/whop_sdk/resources/disputes.rbi +4 -16
  191. data/rbi/whop_sdk/resources/experiences.rbi +4 -7
  192. data/rbi/whop_sdk/resources/files.rbi +40 -0
  193. data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
  194. data/rbi/whop_sdk/resources/memberships.rbi +26 -0
  195. data/rbi/whop_sdk/resources/messages.rbi +2 -12
  196. data/rbi/whop_sdk/resources/notifications.rbi +4 -0
  197. data/rbi/whop_sdk/resources/plans.rbi +8 -14
  198. data/rbi/whop_sdk/resources/webhooks.rbi +140 -0
  199. data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
  200. data/sig/whop_sdk/client.rbs +2 -0
  201. data/sig/whop_sdk/models/app_build_create_params.rbs +9 -30
  202. data/sig/whop_sdk/models/app_create_params.rbs +20 -1
  203. data/sig/whop_sdk/models/app_list_params.rbs +10 -0
  204. data/sig/whop_sdk/models/app_update_params.rbs +9 -30
  205. data/sig/whop_sdk/models/card_brands.rbs +32 -0
  206. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +19 -30
  207. data/sig/whop_sdk/models/company_create_params.rbs +15 -0
  208. data/sig/whop_sdk/models/company_update_params.rbs +18 -60
  209. data/sig/whop_sdk/models/course_create_params.rbs +9 -35
  210. data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
  211. data/sig/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbs +7 -2
  212. data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
  213. data/sig/whop_sdk/models/course_update_params.rbs +9 -35
  214. data/sig/whop_sdk/models/dispute_created_webhook_event.rbs +7 -2
  215. data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
  216. data/sig/whop_sdk/models/dispute_updated_webhook_event.rbs +7 -2
  217. data/sig/whop_sdk/models/entry_approved_webhook_event.rbs +7 -2
  218. data/sig/whop_sdk/models/entry_created_webhook_event.rbs +7 -2
  219. data/sig/whop_sdk/models/entry_deleted_webhook_event.rbs +7 -2
  220. data/sig/whop_sdk/models/entry_denied_webhook_event.rbs +7 -2
  221. data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
  222. data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
  223. data/sig/whop_sdk/models/file_create_params.rbs +23 -0
  224. data/sig/whop_sdk/models/file_create_response.rbs +68 -0
  225. data/sig/whop_sdk/models/file_retrieve_params.rbs +15 -0
  226. data/sig/whop_sdk/models/file_retrieve_response.rbs +58 -0
  227. data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
  228. data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
  229. data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
  230. data/sig/whop_sdk/models/invoice_created_webhook_event.rbs +7 -2
  231. data/sig/whop_sdk/models/invoice_paid_webhook_event.rbs +7 -2
  232. data/sig/whop_sdk/models/invoice_past_due_webhook_event.rbs +7 -2
  233. data/sig/whop_sdk/models/invoice_voided_webhook_event.rbs +7 -2
  234. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
  235. data/sig/whop_sdk/models/member_list_response.rbs +5 -0
  236. data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
  237. data/sig/whop_sdk/models/membership.rbs +65 -4
  238. data/sig/whop_sdk/models/membership_activated_webhook_event.rbs +7 -2
  239. data/sig/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbs +7 -2
  240. data/sig/whop_sdk/models/membership_deactivated_webhook_event.rbs +7 -2
  241. data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
  242. data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
  243. data/sig/whop_sdk/models/message_create_params.rbs +9 -30
  244. data/sig/whop_sdk/models/message_update_params.rbs +9 -30
  245. data/sig/whop_sdk/models/payment.rbs +10 -0
  246. data/sig/whop_sdk/models/payment_created_webhook_event.rbs +7 -2
  247. data/sig/whop_sdk/models/payment_failed_webhook_event.rbs +7 -2
  248. data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
  249. data/sig/whop_sdk/models/payment_method_types.rbs +76 -74
  250. data/sig/whop_sdk/models/payment_pending_webhook_event.rbs +7 -2
  251. data/sig/whop_sdk/models/payment_provider.rbs +2 -0
  252. data/sig/whop_sdk/models/payment_succeeded_webhook_event.rbs +7 -2
  253. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +22 -2
  254. data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
  255. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
  256. data/sig/whop_sdk/models/plan_create_params.rbs +14 -30
  257. data/sig/whop_sdk/models/plan_update_params.rbs +14 -30
  258. data/sig/whop_sdk/models/refund_created_webhook_event.rbs +7 -2
  259. data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +7 -2
  260. data/sig/whop_sdk/models/setup_intent_canceled_webhook_event.rbs +7 -2
  261. data/sig/whop_sdk/models/setup_intent_requires_action_webhook_event.rbs +7 -2
  262. data/sig/whop_sdk/models/setup_intent_succeeded_webhook_event.rbs +7 -2
  263. data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +7 -2
  264. data/sig/whop_sdk/models/webhook_create_params.rbs +126 -0
  265. data/sig/whop_sdk/models/webhook_create_response.rbs +203 -0
  266. data/sig/whop_sdk/models/webhook_delete_params.rbs +15 -0
  267. data/sig/whop_sdk/models/webhook_delete_response.rbs +5 -0
  268. data/sig/whop_sdk/models/webhook_list_params.rbs +46 -0
  269. data/sig/whop_sdk/models/webhook_list_response.rbs +125 -0
  270. data/sig/whop_sdk/models/webhook_retrieve_params.rbs +15 -0
  271. data/sig/whop_sdk/models/webhook_retrieve_response.rbs +198 -0
  272. data/sig/whop_sdk/models/webhook_update_params.rbs +121 -0
  273. data/sig/whop_sdk/models/webhook_update_response.rbs +198 -0
  274. data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
  275. data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
  276. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +12 -10
  277. data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
  278. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
  279. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +12 -10
  280. data/sig/whop_sdk/models.rbs +16 -2
  281. data/sig/whop_sdk/resources/app_builds.rbs +1 -1
  282. data/sig/whop_sdk/resources/apps.rbs +2 -1
  283. data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
  284. data/sig/whop_sdk/resources/companies.rbs +3 -2
  285. data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
  286. data/sig/whop_sdk/resources/courses.rbs +2 -4
  287. data/sig/whop_sdk/resources/disputes.rbs +4 -4
  288. data/sig/whop_sdk/resources/experiences.rbs +2 -1
  289. data/sig/whop_sdk/resources/files.rbs +17 -0
  290. data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
  291. data/sig/whop_sdk/resources/memberships.rbs +5 -0
  292. data/sig/whop_sdk/resources/messages.rbs +2 -2
  293. data/sig/whop_sdk/resources/plans.rbs +4 -2
  294. data/sig/whop_sdk/resources/webhooks.rbs +36 -0
  295. data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
  296. metadata +64 -5
  297. data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
  298. data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
  299. data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
@@ -18,6 +18,7 @@ module WhopSDK
18
18
  PLATFORM_BALANCE =
19
19
  T.let(:platform_balance, WhopSDK::PaymentProvider::TaggedSymbol)
20
20
  MULTI_PSP = T.let(:multi_psp, WhopSDK::PaymentProvider::TaggedSymbol)
21
+ ADYEN = T.let(:adyen, WhopSDK::PaymentProvider::TaggedSymbol)
21
22
 
22
23
  sig { override.returns(T::Array[WhopSDK::PaymentProvider::TaggedSymbol]) }
23
24
  def self.values
@@ -34,11 +34,16 @@ module WhopSDK
34
34
  sig { returns(Symbol) }
35
35
  attr_accessor :type
36
36
 
37
+ # The company ID that this webhook event is associated with
38
+ sig { returns(T.nilable(String)) }
39
+ attr_accessor :company_id
40
+
37
41
  sig do
38
42
  params(
39
43
  id: String,
40
44
  data: WhopSDK::Payment::OrHash,
41
45
  timestamp: Time,
46
+ company_id: T.nilable(String),
42
47
  api_version: Symbol,
43
48
  type: Symbol
44
49
  ).returns(T.attached_class)
@@ -50,6 +55,8 @@ module WhopSDK
50
55
  data:,
51
56
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
52
57
  timestamp:,
58
+ # The company ID that this webhook event is associated with
59
+ company_id: nil,
53
60
  # The API version for this webhook
54
61
  api_version: :v1,
55
62
  # The webhook event type
@@ -64,7 +71,8 @@ module WhopSDK
64
71
  api_version: Symbol,
65
72
  data: WhopSDK::Payment,
66
73
  timestamp: Time,
67
- type: Symbol
74
+ type: Symbol,
75
+ company_id: T.nilable(String)
68
76
  }
69
77
  )
70
78
  end
@@ -38,11 +38,16 @@ module WhopSDK
38
38
  sig { returns(Symbol) }
39
39
  attr_accessor :type
40
40
 
41
+ # The company ID that this webhook event is associated with
42
+ sig { returns(T.nilable(String)) }
43
+ attr_accessor :company_id
44
+
41
45
  sig do
42
46
  params(
43
47
  id: String,
44
48
  data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::OrHash,
45
49
  timestamp: Time,
50
+ company_id: T.nilable(String),
46
51
  api_version: Symbol,
47
52
  type: Symbol
48
53
  ).returns(T.attached_class)
@@ -54,6 +59,8 @@ module WhopSDK
54
59
  data:,
55
60
  # The timestamp in ISO 8601 format that the webhook was sent at on the server
56
61
  timestamp:,
62
+ # The company ID that this webhook event is associated with
63
+ company_id: nil,
57
64
  # The API version for this webhook
58
65
  api_version: :v1,
59
66
  # The webhook event type
@@ -68,7 +75,8 @@ module WhopSDK
68
75
  api_version: Symbol,
69
76
  data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
70
77
  timestamp: Time,
71
- type: Symbol
78
+ type: Symbol,
79
+ company_id: T.nilable(String)
72
80
  }
73
81
  )
74
82
  end
@@ -88,6 +96,11 @@ module WhopSDK
88
96
  sig { returns(String) }
89
97
  attr_accessor :id
90
98
 
99
+ # A reference to identify the payout destination, such as the last 4 digits of an
100
+ # account number or an email address.
101
+ sig { returns(T.nilable(String)) }
102
+ attr_accessor :account_reference
103
+
91
104
  # The company associated with the payout token
92
105
  sig do
93
106
  returns(
@@ -106,6 +119,10 @@ module WhopSDK
106
119
  end
107
120
  attr_writer :company
108
121
 
122
+ # The date and time the payout token was created
123
+ sig { returns(Time) }
124
+ attr_accessor :created_at
125
+
109
126
  # The currency code of the payout destination. This is the currency that payouts
110
127
  # will be made in for this token.
111
128
  sig { returns(String) }
@@ -131,6 +148,10 @@ module WhopSDK
131
148
  end
132
149
  attr_writer :destination
133
150
 
151
+ # The name of the bank or financial institution.
152
+ sig { returns(T.nilable(String)) }
153
+ attr_accessor :institution_name
154
+
134
155
  # Whether this payout token is the default for the payout account
135
156
  sig { returns(T::Boolean) }
136
157
  attr_accessor :is_default
@@ -144,15 +165,18 @@ module WhopSDK
144
165
  sig do
145
166
  params(
146
167
  id: String,
168
+ account_reference: T.nilable(String),
147
169
  company:
148
170
  T.nilable(
149
171
  WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company::OrHash
150
172
  ),
173
+ created_at: Time,
151
174
  currency: String,
152
175
  destination:
153
176
  T.nilable(
154
177
  WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::OrHash
155
178
  ),
179
+ institution_name: T.nilable(String),
156
180
  is_default: T::Boolean,
157
181
  nickname: T.nilable(String)
158
182
  ).returns(T.attached_class)
@@ -160,13 +184,20 @@ module WhopSDK
160
184
  def self.new(
161
185
  # The ID of the payout token
162
186
  id:,
187
+ # A reference to identify the payout destination, such as the last 4 digits of an
188
+ # account number or an email address.
189
+ account_reference:,
163
190
  # The company associated with the payout token
164
191
  company:,
192
+ # The date and time the payout token was created
193
+ created_at:,
165
194
  # The currency code of the payout destination. This is the currency that payouts
166
195
  # will be made in for this token.
167
196
  currency:,
168
197
  # The payout destination associated with the payout token
169
198
  destination:,
199
+ # The name of the bank or financial institution.
200
+ institution_name:,
170
201
  # Whether this payout token is the default for the payout account
171
202
  is_default:,
172
203
  # An optional nickname for the payout token to help the user identify it. This is
@@ -179,15 +210,18 @@ module WhopSDK
179
210
  override.returns(
180
211
  {
181
212
  id: String,
213
+ account_reference: T.nilable(String),
182
214
  company:
183
215
  T.nilable(
184
216
  WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company
185
217
  ),
218
+ created_at: Time,
186
219
  currency: String,
187
220
  destination:
188
221
  T.nilable(
189
222
  WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination
190
223
  ),
224
+ institution_name: T.nilable(String),
191
225
  is_default: T::Boolean,
192
226
  nickname: T.nilable(String)
193
227
  }
@@ -15,6 +15,11 @@ module WhopSDK
15
15
  sig { returns(String) }
16
16
  attr_accessor :id
17
17
 
18
+ # A reference to identify the payout destination, such as the last 4 digits of an
19
+ # account number or an email address.
20
+ sig { returns(T.nilable(String)) }
21
+ attr_accessor :account_reference
22
+
18
23
  # The company associated with the payout token
19
24
  sig do
20
25
  returns(T.nilable(WhopSDK::Models::PayoutMethodListResponse::Company))
@@ -31,6 +36,10 @@ module WhopSDK
31
36
  end
32
37
  attr_writer :company
33
38
 
39
+ # The date and time the payout token was created
40
+ sig { returns(Time) }
41
+ attr_accessor :created_at
42
+
34
43
  # The currency code of the payout destination. This is the currency that payouts
35
44
  # will be made in for this token.
36
45
  sig { returns(String) }
@@ -54,6 +63,10 @@ module WhopSDK
54
63
  end
55
64
  attr_writer :destination
56
65
 
66
+ # The name of the bank or financial institution.
67
+ sig { returns(T.nilable(String)) }
68
+ attr_accessor :institution_name
69
+
57
70
  # Whether this payout token is the default for the payout account
58
71
  sig { returns(T::Boolean) }
59
72
  attr_accessor :is_default
@@ -67,15 +80,18 @@ module WhopSDK
67
80
  sig do
68
81
  params(
69
82
  id: String,
83
+ account_reference: T.nilable(String),
70
84
  company:
71
85
  T.nilable(
72
86
  WhopSDK::Models::PayoutMethodListResponse::Company::OrHash
73
87
  ),
88
+ created_at: Time,
74
89
  currency: String,
75
90
  destination:
76
91
  T.nilable(
77
92
  WhopSDK::Models::PayoutMethodListResponse::Destination::OrHash
78
93
  ),
94
+ institution_name: T.nilable(String),
79
95
  is_default: T::Boolean,
80
96
  nickname: T.nilable(String)
81
97
  ).returns(T.attached_class)
@@ -83,13 +99,20 @@ module WhopSDK
83
99
  def self.new(
84
100
  # The ID of the payout token
85
101
  id:,
102
+ # A reference to identify the payout destination, such as the last 4 digits of an
103
+ # account number or an email address.
104
+ account_reference:,
86
105
  # The company associated with the payout token
87
106
  company:,
107
+ # The date and time the payout token was created
108
+ created_at:,
88
109
  # The currency code of the payout destination. This is the currency that payouts
89
110
  # will be made in for this token.
90
111
  currency:,
91
112
  # The payout destination associated with the payout token
92
113
  destination:,
114
+ # The name of the bank or financial institution.
115
+ institution_name:,
93
116
  # Whether this payout token is the default for the payout account
94
117
  is_default:,
95
118
  # An optional nickname for the payout token to help the user identify it. This is
@@ -102,11 +125,14 @@ module WhopSDK
102
125
  override.returns(
103
126
  {
104
127
  id: String,
128
+ account_reference: T.nilable(String),
105
129
  company:
106
130
  T.nilable(WhopSDK::Models::PayoutMethodListResponse::Company),
131
+ created_at: Time,
107
132
  currency: String,
108
133
  destination:
109
134
  T.nilable(WhopSDK::Models::PayoutMethodListResponse::Destination),
135
+ institution_name: T.nilable(String),
110
136
  is_default: T::Boolean,
111
137
  nickname: T.nilable(String)
112
138
  }
@@ -15,6 +15,11 @@ module WhopSDK
15
15
  sig { returns(String) }
16
16
  attr_accessor :id
17
17
 
18
+ # A reference to identify the payout destination, such as the last 4 digits of an
19
+ # account number or an email address.
20
+ sig { returns(T.nilable(String)) }
21
+ attr_accessor :account_reference
22
+
18
23
  # The company associated with the payout token
19
24
  sig do
20
25
  returns(
@@ -33,6 +38,10 @@ module WhopSDK
33
38
  end
34
39
  attr_writer :company
35
40
 
41
+ # The date and time the payout token was created
42
+ sig { returns(Time) }
43
+ attr_accessor :created_at
44
+
36
45
  # The currency code of the payout destination. This is the currency that payouts
37
46
  # will be made in for this token.
38
47
  sig { returns(String) }
@@ -56,6 +65,10 @@ module WhopSDK
56
65
  end
57
66
  attr_writer :destination
58
67
 
68
+ # The name of the bank or financial institution.
69
+ sig { returns(T.nilable(String)) }
70
+ attr_accessor :institution_name
71
+
59
72
  # Whether this payout token is the default for the payout account
60
73
  sig { returns(T::Boolean) }
61
74
  attr_accessor :is_default
@@ -69,15 +82,18 @@ module WhopSDK
69
82
  sig do
70
83
  params(
71
84
  id: String,
85
+ account_reference: T.nilable(String),
72
86
  company:
73
87
  T.nilable(
74
88
  WhopSDK::Models::PayoutMethodRetrieveResponse::Company::OrHash
75
89
  ),
90
+ created_at: Time,
76
91
  currency: String,
77
92
  destination:
78
93
  T.nilable(
79
94
  WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::OrHash
80
95
  ),
96
+ institution_name: T.nilable(String),
81
97
  is_default: T::Boolean,
82
98
  nickname: T.nilable(String)
83
99
  ).returns(T.attached_class)
@@ -85,13 +101,20 @@ module WhopSDK
85
101
  def self.new(
86
102
  # The ID of the payout token
87
103
  id:,
104
+ # A reference to identify the payout destination, such as the last 4 digits of an
105
+ # account number or an email address.
106
+ account_reference:,
88
107
  # The company associated with the payout token
89
108
  company:,
109
+ # The date and time the payout token was created
110
+ created_at:,
90
111
  # The currency code of the payout destination. This is the currency that payouts
91
112
  # will be made in for this token.
92
113
  currency:,
93
114
  # The payout destination associated with the payout token
94
115
  destination:,
116
+ # The name of the bank or financial institution.
117
+ institution_name:,
95
118
  # Whether this payout token is the default for the payout account
96
119
  is_default:,
97
120
  # An optional nickname for the payout token to help the user identify it. This is
@@ -104,13 +127,16 @@ module WhopSDK
104
127
  override.returns(
105
128
  {
106
129
  id: String,
130
+ account_reference: T.nilable(String),
107
131
  company:
108
132
  T.nilable(WhopSDK::Models::PayoutMethodRetrieveResponse::Company),
133
+ created_at: Time,
109
134
  currency: String,
110
135
  destination:
111
136
  T.nilable(
112
137
  WhopSDK::Models::PayoutMethodRetrieveResponse::Destination
113
138
  ),
139
+ institution_name: T.nilable(String),
114
140
  is_default: T::Boolean,
115
141
  nickname: T.nilable(String)
116
142
  }
@@ -42,17 +42,13 @@ module WhopSDK
42
42
  attr_accessor :expiration_days
43
43
 
44
44
  # An image for the plan. This will be visible on the product page to customers.
45
+ sig { returns(T.nilable(WhopSDK::PlanCreateParams::Image)) }
46
+ attr_reader :image
47
+
45
48
  sig do
46
- returns(
47
- T.nilable(
48
- T.any(
49
- WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID,
50
- WhopSDK::PlanCreateParams::Image::AttachmentInputWithID
51
- )
52
- )
53
- )
49
+ params(image: T.nilable(WhopSDK::PlanCreateParams::Image::OrHash)).void
54
50
  end
55
- attr_accessor :image
51
+ attr_writer :image
56
52
 
57
53
  # An additional amount charged upon first purchase. Use only if a one time payment
58
54
  # OR you want to charge an additional amount on top of the renewal price. Provided
@@ -64,6 +60,10 @@ module WhopSDK
64
60
  sig { returns(T.nilable(String)) }
65
61
  attr_accessor :internal_notes
66
62
 
63
+ # Whether this plan uses legacy payment method controls
64
+ sig { returns(T.nilable(T::Boolean)) }
65
+ attr_accessor :legacy_payment_method_controls
66
+
67
67
  # Whether or not the tax is included in a plan's price (or if it hasn't been set
68
68
  # up)
69
69
  sig { returns(T.nilable(WhopSDK::TaxType::OrSymbol)) }
@@ -135,15 +135,10 @@ module WhopSDK
135
135
  T.nilable(T::Array[WhopSDK::PlanCreateParams::CustomField::OrHash]),
136
136
  description: T.nilable(String),
137
137
  expiration_days: T.nilable(Integer),
138
- image:
139
- T.nilable(
140
- T.any(
141
- WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID::OrHash,
142
- WhopSDK::PlanCreateParams::Image::AttachmentInputWithID::OrHash
143
- )
144
- ),
138
+ image: T.nilable(WhopSDK::PlanCreateParams::Image::OrHash),
145
139
  initial_price: T.nilable(Float),
146
140
  internal_notes: T.nilable(String),
141
+ legacy_payment_method_controls: T.nilable(T::Boolean),
147
142
  override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
148
143
  payment_method_configuration:
149
144
  T.nilable(
@@ -184,6 +179,8 @@ module WhopSDK
184
179
  initial_price: nil,
185
180
  # A personal description or notes section for the business.
186
181
  internal_notes: nil,
182
+ # Whether this plan uses legacy payment method controls
183
+ legacy_payment_method_controls: nil,
187
184
  # Whether or not the tax is included in a plan's price (or if it hasn't been set
188
185
  # up)
189
186
  override_tax_type: nil,
@@ -224,15 +221,10 @@ module WhopSDK
224
221
  T.nilable(T::Array[WhopSDK::PlanCreateParams::CustomField]),
225
222
  description: T.nilable(String),
226
223
  expiration_days: T.nilable(Integer),
227
- image:
228
- T.nilable(
229
- T.any(
230
- WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID,
231
- WhopSDK::PlanCreateParams::Image::AttachmentInputWithID
232
- )
233
- ),
224
+ image: T.nilable(WhopSDK::PlanCreateParams::Image),
234
225
  initial_price: T.nilable(Float),
235
226
  internal_notes: T.nilable(String),
227
+ legacy_payment_method_controls: T.nilable(T::Boolean),
236
228
  override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
237
229
  payment_method_configuration:
238
230
  T.nilable(WhopSDK::PlanCreateParams::PaymentMethodConfiguration),
@@ -327,82 +319,26 @@ module WhopSDK
327
319
  end
328
320
  end
329
321
 
330
- # An image for the plan. This will be visible on the product page to customers.
331
- module Image
332
- extend WhopSDK::Internal::Type::Union
333
-
334
- Variants =
322
+ class Image < WhopSDK::Internal::Type::BaseModel
323
+ OrHash =
335
324
  T.type_alias do
336
- T.any(
337
- WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID,
338
- WhopSDK::PlanCreateParams::Image::AttachmentInputWithID
339
- )
340
- end
341
-
342
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
343
- OrHash =
344
- T.type_alias do
345
- T.any(
346
- WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID,
347
- WhopSDK::Internal::AnyHash
348
- )
349
- end
350
-
351
- # This ID should be used the first time you upload an attachment. It is the ID of
352
- # the direct upload that was created when uploading the file to S3 via the
353
- # mediaDirectUpload mutation.
354
- sig { returns(String) }
355
- attr_accessor :direct_upload_id
356
-
357
- # Input for an attachment
358
- sig { params(direct_upload_id: String).returns(T.attached_class) }
359
- def self.new(
360
- # This ID should be used the first time you upload an attachment. It is the ID of
361
- # the direct upload that was created when uploading the file to S3 via the
362
- # mediaDirectUpload mutation.
363
- direct_upload_id:
364
- )
365
- end
366
-
367
- sig { override.returns({ direct_upload_id: String }) }
368
- def to_hash
325
+ T.any(WhopSDK::PlanCreateParams::Image, WhopSDK::Internal::AnyHash)
369
326
  end
370
- end
371
327
 
372
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
373
- OrHash =
374
- T.type_alias do
375
- T.any(
376
- WhopSDK::PlanCreateParams::Image::AttachmentInputWithID,
377
- WhopSDK::Internal::AnyHash
378
- )
379
- end
380
-
381
- # The ID of an existing attachment object. Use this when updating a resource and
382
- # keeping a subset of the attachments. Don't use this unless you know what you're
383
- # doing.
384
- sig { returns(String) }
385
- attr_accessor :id
386
-
387
- # Input for an attachment
388
- sig { params(id: String).returns(T.attached_class) }
389
- def self.new(
390
- # The ID of an existing attachment object. Use this when updating a resource and
391
- # keeping a subset of the attachments. Don't use this unless you know what you're
392
- # doing.
393
- id:
394
- )
395
- end
328
+ # The ID of an existing file object.
329
+ sig { returns(String) }
330
+ attr_accessor :id
396
331
 
397
- sig { override.returns({ id: String }) }
398
- def to_hash
399
- end
332
+ # An image for the plan. This will be visible on the product page to customers.
333
+ sig { params(id: String).returns(T.attached_class) }
334
+ def self.new(
335
+ # The ID of an existing file object.
336
+ id:
337
+ )
400
338
  end
401
339
 
402
- sig do
403
- override.returns(T::Array[WhopSDK::PlanCreateParams::Image::Variants])
404
- end
405
- def self.variants
340
+ sig { override.returns({ id: String }) }
341
+ def to_hash
406
342
  end
407
343
  end
408
344