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
@@ -66,6 +66,10 @@ module WhopSDK
66
66
  sig { returns(T.nilable(String)) }
67
67
  attr_accessor :redirect_url
68
68
 
69
+ # The URL of the page where the checkout is being initiated from.
70
+ sig { returns(T.nilable(String)) }
71
+ attr_accessor :source_url
72
+
69
73
  # The ID of the plan to use for the checkout configuration
70
74
  sig { returns(String) }
71
75
  attr_accessor :plan_id
@@ -88,6 +92,7 @@ module WhopSDK
88
92
  WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration::OrHash
89
93
  ),
90
94
  redirect_url: T.nilable(String),
95
+ source_url: T.nilable(String),
91
96
  mode: Symbol,
92
97
  request_options: WhopSDK::RequestOptions::OrHash
93
98
  ).returns(T.attached_class)
@@ -112,6 +117,8 @@ module WhopSDK
112
117
  payment_method_configuration: nil,
113
118
  # The URL to redirect the user to after the checkout configuration is created
114
119
  redirect_url: nil,
120
+ # The URL of the page where the checkout is being initiated from.
121
+ source_url: nil,
115
122
  mode: :setup,
116
123
  request_options: {}
117
124
  )
@@ -130,6 +137,7 @@ module WhopSDK
130
137
  WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration
131
138
  ),
132
139
  redirect_url: T.nilable(String),
140
+ source_url: T.nilable(String),
133
141
  plan_id: String,
134
142
  company_id: String,
135
143
  request_options: WhopSDK::RequestOptions
@@ -194,15 +202,20 @@ module WhopSDK
194
202
  # An image for the plan. This will be visible on the product page to customers.
195
203
  sig do
196
204
  returns(
197
- T.nilable(
198
- T.any(
199
- WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID,
200
- WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID
201
- )
202
- )
205
+ T.nilable(WhopSDK::CheckoutConfigurationCreateParams::Plan::Image)
203
206
  )
204
207
  end
205
- attr_accessor :image
208
+ attr_reader :image
209
+
210
+ sig do
211
+ params(
212
+ image:
213
+ T.nilable(
214
+ WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::OrHash
215
+ )
216
+ ).void
217
+ end
218
+ attr_writer :image
206
219
 
207
220
  # An additional amount charged upon first purchase.
208
221
  sig { returns(T.nilable(Float)) }
@@ -277,6 +290,10 @@ module WhopSDK
277
290
  sig { returns(T.nilable(Integer)) }
278
291
  attr_accessor :split_pay_required_payments
279
292
 
293
+ # The number of units available for purchase. If not provided, stock is unlimited.
294
+ sig { returns(T.nilable(Integer)) }
295
+ attr_accessor :stock
296
+
280
297
  # The title of the plan. This will be visible on the product page to customers.
281
298
  sig { returns(T.nilable(String)) }
282
299
  attr_accessor :title
@@ -307,10 +324,7 @@ module WhopSDK
307
324
  force_create_new_plan: T.nilable(T::Boolean),
308
325
  image:
309
326
  T.nilable(
310
- T.any(
311
- WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID::OrHash,
312
- WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID::OrHash
313
- )
327
+ WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::OrHash
314
328
  ),
315
329
  initial_price: T.nilable(Float),
316
330
  internal_notes: T.nilable(String),
@@ -328,6 +342,7 @@ module WhopSDK
328
342
  release_method: T.nilable(WhopSDK::ReleaseMethod::OrSymbol),
329
343
  renewal_price: T.nilable(Float),
330
344
  split_pay_required_payments: T.nilable(Integer),
345
+ stock: T.nilable(Integer),
331
346
  title: T.nilable(String),
332
347
  trial_period_days: T.nilable(Integer),
333
348
  visibility: T.nilable(WhopSDK::Visibility::OrSymbol)
@@ -378,6 +393,8 @@ module WhopSDK
378
393
  renewal_price: nil,
379
394
  # The number of payments required before pausing the subscription.
380
395
  split_pay_required_payments: nil,
396
+ # The number of units available for purchase. If not provided, stock is unlimited.
397
+ stock: nil,
381
398
  # The title of the plan. This will be visible on the product page to customers.
382
399
  title: nil,
383
400
  # The number of free trial days added before a renewal plan.
@@ -405,10 +422,7 @@ module WhopSDK
405
422
  force_create_new_plan: T.nilable(T::Boolean),
406
423
  image:
407
424
  T.nilable(
408
- T.any(
409
- WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID,
410
- WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID
411
- )
425
+ WhopSDK::CheckoutConfigurationCreateParams::Plan::Image
412
426
  ),
413
427
  initial_price: T.nilable(Float),
414
428
  internal_notes: T.nilable(String),
@@ -426,6 +440,7 @@ module WhopSDK
426
440
  release_method: T.nilable(WhopSDK::ReleaseMethod::OrSymbol),
427
441
  renewal_price: T.nilable(Float),
428
442
  split_pay_required_payments: T.nilable(Integer),
443
+ stock: T.nilable(Integer),
429
444
  title: T.nilable(String),
430
445
  trial_period_days: T.nilable(Integer),
431
446
  visibility: T.nilable(WhopSDK::Visibility::OrSymbol)
@@ -510,86 +525,29 @@ module WhopSDK
510
525
  end
511
526
  end
512
527
 
513
- # An image for the plan. This will be visible on the product page to customers.
514
- module Image
515
- extend WhopSDK::Internal::Type::Union
516
-
517
- Variants =
528
+ class Image < WhopSDK::Internal::Type::BaseModel
529
+ OrHash =
518
530
  T.type_alias do
519
531
  T.any(
520
- WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID,
521
- WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID
532
+ WhopSDK::CheckoutConfigurationCreateParams::Plan::Image,
533
+ WhopSDK::Internal::AnyHash
522
534
  )
523
535
  end
524
536
 
525
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
526
- OrHash =
527
- T.type_alias do
528
- T.any(
529
- WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID,
530
- WhopSDK::Internal::AnyHash
531
- )
532
- end
533
-
534
- # This ID should be used the first time you upload an attachment. It is the ID of
535
- # the direct upload that was created when uploading the file to S3 via the
536
- # mediaDirectUpload mutation.
537
- sig { returns(String) }
538
- attr_accessor :direct_upload_id
539
-
540
- # Input for an attachment
541
- sig { params(direct_upload_id: String).returns(T.attached_class) }
542
- def self.new(
543
- # This ID should be used the first time you upload an attachment. It is the ID of
544
- # the direct upload that was created when uploading the file to S3 via the
545
- # mediaDirectUpload mutation.
546
- direct_upload_id:
547
- )
548
- end
549
-
550
- sig { override.returns({ direct_upload_id: String }) }
551
- def to_hash
552
- end
553
- end
554
-
555
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
556
- OrHash =
557
- T.type_alias do
558
- T.any(
559
- WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID,
560
- WhopSDK::Internal::AnyHash
561
- )
562
- end
563
-
564
- # The ID of an existing attachment object. Use this when updating a resource and
565
- # keeping a subset of the attachments. Don't use this unless you know what you're
566
- # doing.
567
- sig { returns(String) }
568
- attr_accessor :id
569
-
570
- # Input for an attachment
571
- sig { params(id: String).returns(T.attached_class) }
572
- def self.new(
573
- # The ID of an existing attachment object. Use this when updating a resource and
574
- # keeping a subset of the attachments. Don't use this unless you know what you're
575
- # doing.
576
- id:
577
- )
578
- end
537
+ # The ID of an existing file object.
538
+ sig { returns(String) }
539
+ attr_accessor :id
579
540
 
580
- sig { override.returns({ id: String }) }
581
- def to_hash
582
- end
541
+ # An image for the plan. This will be visible on the product page to customers.
542
+ sig { params(id: String).returns(T.attached_class) }
543
+ def self.new(
544
+ # The ID of an existing file object.
545
+ id:
546
+ )
583
547
  end
584
548
 
585
- sig do
586
- override.returns(
587
- T::Array[
588
- WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::Variants
589
- ]
590
- )
591
- end
592
- def self.variants
549
+ sig { override.returns({ id: String }) }
550
+ def to_hash
593
551
  end
594
552
  end
595
553
 
@@ -31,6 +31,15 @@ module WhopSDK
31
31
  sig { returns(T.nilable(WhopSDK::IndustryTypes::OrSymbol)) }
32
32
  attr_accessor :industry_type
33
33
 
34
+ # The logo for the company in png, jpeg, or gif format
35
+ sig { returns(T.nilable(WhopSDK::CompanyCreateParams::Logo)) }
36
+ attr_reader :logo
37
+
38
+ sig do
39
+ params(logo: T.nilable(WhopSDK::CompanyCreateParams::Logo::OrHash)).void
40
+ end
41
+ attr_writer :logo
42
+
34
43
  # Additional metadata for the account
35
44
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
36
45
  attr_accessor :metadata
@@ -49,6 +58,7 @@ module WhopSDK
49
58
  title: String,
50
59
  business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
51
60
  industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
61
+ logo: T.nilable(WhopSDK::CompanyCreateParams::Logo::OrHash),
52
62
  metadata: T.nilable(T::Hash[Symbol, T.anything]),
53
63
  send_customer_emails: T.nilable(T::Boolean),
54
64
  request_options: WhopSDK::RequestOptions::OrHash
@@ -65,6 +75,8 @@ module WhopSDK
65
75
  business_type: nil,
66
76
  # The different industry types a company can be in.
67
77
  industry_type: nil,
78
+ # The logo for the company in png, jpeg, or gif format
79
+ logo: nil,
68
80
  # Additional metadata for the account
69
81
  metadata: nil,
70
82
  # Whether Whop sends transactional emails to customers on behalf of this company.
@@ -84,6 +96,7 @@ module WhopSDK
84
96
  title: String,
85
97
  business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
86
98
  industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
99
+ logo: T.nilable(WhopSDK::CompanyCreateParams::Logo),
87
100
  metadata: T.nilable(T::Hash[Symbol, T.anything]),
88
101
  send_customer_emails: T.nilable(T::Boolean),
89
102
  request_options: WhopSDK::RequestOptions
@@ -92,6 +105,32 @@ module WhopSDK
92
105
  end
93
106
  def to_hash
94
107
  end
108
+
109
+ class Logo < WhopSDK::Internal::Type::BaseModel
110
+ OrHash =
111
+ T.type_alias do
112
+ T.any(
113
+ WhopSDK::CompanyCreateParams::Logo,
114
+ WhopSDK::Internal::AnyHash
115
+ )
116
+ end
117
+
118
+ # The ID of an existing file object.
119
+ sig { returns(String) }
120
+ attr_accessor :id
121
+
122
+ # The logo for the company in png, jpeg, or gif format
123
+ sig { params(id: String).returns(T.attached_class) }
124
+ def self.new(
125
+ # The ID of an existing file object.
126
+ id:
127
+ )
128
+ end
129
+
130
+ sig { override.returns({ id: String }) }
131
+ def to_hash
132
+ end
133
+ end
95
134
  end
96
135
  end
97
136
  end
@@ -12,17 +12,16 @@ module WhopSDK
12
12
  end
13
13
 
14
14
  # The banner image for the company in png or jpeg format
15
+ sig { returns(T.nilable(WhopSDK::CompanyUpdateParams::BannerImage)) }
16
+ attr_reader :banner_image
17
+
15
18
  sig do
16
- returns(
17
- T.nilable(
18
- T.any(
19
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
20
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID
21
- )
22
- )
23
- )
19
+ params(
20
+ banner_image:
21
+ T.nilable(WhopSDK::CompanyUpdateParams::BannerImage::OrHash)
22
+ ).void
24
23
  end
25
- attr_accessor :banner_image
24
+ attr_writer :banner_image
26
25
 
27
26
  # The different business types a company can be.
28
27
  sig { returns(T.nilable(WhopSDK::BusinessTypes::OrSymbol)) }
@@ -33,17 +32,13 @@ module WhopSDK
33
32
  attr_accessor :industry_type
34
33
 
35
34
  # The logo for the company in png, jpeg, or gif format
35
+ sig { returns(T.nilable(WhopSDK::CompanyUpdateParams::Logo)) }
36
+ attr_reader :logo
37
+
36
38
  sig do
37
- returns(
38
- T.nilable(
39
- T.any(
40
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID,
41
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
42
- )
43
- )
44
- )
39
+ params(logo: T.nilable(WhopSDK::CompanyUpdateParams::Logo::OrHash)).void
45
40
  end
46
- attr_accessor :logo
41
+ attr_writer :logo
47
42
 
48
43
  # Whether Whop sends transactional emails to customers on behalf of this company.
49
44
  # Includes: order confirmations, payment failures, refund notifications, upcoming
@@ -59,21 +54,10 @@ module WhopSDK
59
54
  sig do
60
55
  params(
61
56
  banner_image:
62
- T.nilable(
63
- T.any(
64
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID::OrHash,
65
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID::OrHash
66
- )
67
- ),
57
+ T.nilable(WhopSDK::CompanyUpdateParams::BannerImage::OrHash),
68
58
  business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
69
59
  industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
70
- logo:
71
- T.nilable(
72
- T.any(
73
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID::OrHash,
74
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID::OrHash
75
- )
76
- ),
60
+ logo: T.nilable(WhopSDK::CompanyUpdateParams::Logo::OrHash),
77
61
  send_customer_emails: T.nilable(T::Boolean),
78
62
  title: T.nilable(String),
79
63
  request_options: WhopSDK::RequestOptions::OrHash
@@ -102,22 +86,10 @@ module WhopSDK
102
86
  sig do
103
87
  override.returns(
104
88
  {
105
- banner_image:
106
- T.nilable(
107
- T.any(
108
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
109
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID
110
- )
111
- ),
89
+ banner_image: T.nilable(WhopSDK::CompanyUpdateParams::BannerImage),
112
90
  business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
113
91
  industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
114
- logo:
115
- T.nilable(
116
- T.any(
117
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID,
118
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
119
- )
120
- ),
92
+ logo: T.nilable(WhopSDK::CompanyUpdateParams::Logo),
121
93
  send_customer_emails: T.nilable(T::Boolean),
122
94
  title: T.nilable(String),
123
95
  request_options: WhopSDK::RequestOptions
@@ -127,165 +99,55 @@ module WhopSDK
127
99
  def to_hash
128
100
  end
129
101
 
130
- # The banner image for the company in png or jpeg format
131
- module BannerImage
132
- extend WhopSDK::Internal::Type::Union
133
-
134
- Variants =
102
+ class BannerImage < WhopSDK::Internal::Type::BaseModel
103
+ OrHash =
135
104
  T.type_alias do
136
105
  T.any(
137
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
138
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID
106
+ WhopSDK::CompanyUpdateParams::BannerImage,
107
+ WhopSDK::Internal::AnyHash
139
108
  )
140
109
  end
141
110
 
142
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
143
- OrHash =
144
- T.type_alias do
145
- T.any(
146
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
147
- WhopSDK::Internal::AnyHash
148
- )
149
- end
150
-
151
- # This ID should be used the first time you upload an attachment. It is the ID of
152
- # the direct upload that was created when uploading the file to S3 via the
153
- # mediaDirectUpload mutation.
154
- sig { returns(String) }
155
- attr_accessor :direct_upload_id
156
-
157
- # Input for an attachment
158
- sig { params(direct_upload_id: String).returns(T.attached_class) }
159
- def self.new(
160
- # This ID should be used the first time you upload an attachment. It is the ID of
161
- # the direct upload that was created when uploading the file to S3 via the
162
- # mediaDirectUpload mutation.
163
- direct_upload_id:
164
- )
165
- end
166
-
167
- sig { override.returns({ direct_upload_id: String }) }
168
- def to_hash
169
- end
170
- end
171
-
172
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
173
- OrHash =
174
- T.type_alias do
175
- T.any(
176
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID,
177
- WhopSDK::Internal::AnyHash
178
- )
179
- end
180
-
181
- # The ID of an existing attachment object. Use this when updating a resource and
182
- # keeping a subset of the attachments. Don't use this unless you know what you're
183
- # doing.
184
- sig { returns(String) }
185
- attr_accessor :id
186
-
187
- # Input for an attachment
188
- sig { params(id: String).returns(T.attached_class) }
189
- def self.new(
190
- # The ID of an existing attachment object. Use this when updating a resource and
191
- # keeping a subset of the attachments. Don't use this unless you know what you're
192
- # doing.
193
- id:
194
- )
195
- end
111
+ # The ID of an existing file object.
112
+ sig { returns(String) }
113
+ attr_accessor :id
196
114
 
197
- sig { override.returns({ id: String }) }
198
- def to_hash
199
- end
115
+ # The banner image for the company in png or jpeg format
116
+ sig { params(id: String).returns(T.attached_class) }
117
+ def self.new(
118
+ # The ID of an existing file object.
119
+ id:
120
+ )
200
121
  end
201
122
 
202
- sig do
203
- override.returns(
204
- T::Array[WhopSDK::CompanyUpdateParams::BannerImage::Variants]
205
- )
206
- end
207
- def self.variants
123
+ sig { override.returns({ id: String }) }
124
+ def to_hash
208
125
  end
209
126
  end
210
127
 
211
- # The logo for the company in png, jpeg, or gif format
212
- module Logo
213
- extend WhopSDK::Internal::Type::Union
214
-
215
- Variants =
128
+ class Logo < WhopSDK::Internal::Type::BaseModel
129
+ OrHash =
216
130
  T.type_alias do
217
131
  T.any(
218
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID,
219
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
132
+ WhopSDK::CompanyUpdateParams::Logo,
133
+ WhopSDK::Internal::AnyHash
220
134
  )
221
135
  end
222
136
 
223
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
224
- OrHash =
225
- T.type_alias do
226
- T.any(
227
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID,
228
- WhopSDK::Internal::AnyHash
229
- )
230
- end
231
-
232
- # This ID should be used the first time you upload an attachment. It is the ID of
233
- # the direct upload that was created when uploading the file to S3 via the
234
- # mediaDirectUpload mutation.
235
- sig { returns(String) }
236
- attr_accessor :direct_upload_id
137
+ # The ID of an existing file object.
138
+ sig { returns(String) }
139
+ attr_accessor :id
237
140
 
238
- # Input for an attachment
239
- sig { params(direct_upload_id: String).returns(T.attached_class) }
240
- def self.new(
241
- # This ID should be used the first time you upload an attachment. It is the ID of
242
- # the direct upload that was created when uploading the file to S3 via the
243
- # mediaDirectUpload mutation.
244
- direct_upload_id:
245
- )
246
- end
247
-
248
- sig { override.returns({ direct_upload_id: String }) }
249
- def to_hash
250
- end
251
- end
252
-
253
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
254
- OrHash =
255
- T.type_alias do
256
- T.any(
257
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID,
258
- WhopSDK::Internal::AnyHash
259
- )
260
- end
261
-
262
- # The ID of an existing attachment object. Use this when updating a resource and
263
- # keeping a subset of the attachments. Don't use this unless you know what you're
264
- # doing.
265
- sig { returns(String) }
266
- attr_accessor :id
267
-
268
- # Input for an attachment
269
- sig { params(id: String).returns(T.attached_class) }
270
- def self.new(
271
- # The ID of an existing attachment object. Use this when updating a resource and
272
- # keeping a subset of the attachments. Don't use this unless you know what you're
273
- # doing.
274
- id:
275
- )
276
- end
277
-
278
- sig { override.returns({ id: String }) }
279
- def to_hash
280
- end
141
+ # The logo for the company in png, jpeg, or gif format
142
+ sig { params(id: String).returns(T.attached_class) }
143
+ def self.new(
144
+ # The ID of an existing file object.
145
+ id:
146
+ )
281
147
  end
282
148
 
283
- sig do
284
- override.returns(
285
- T::Array[WhopSDK::CompanyUpdateParams::Logo::Variants]
286
- )
287
- end
288
- def self.variants
149
+ sig { override.returns({ id: String }) }
150
+ def to_hash
289
151
  end
290
152
  end
291
153
  end