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
@@ -4,13 +4,12 @@ module WhopSDK
4
4
  {
5
5
  certificate_after_completion_enabled: bool?,
6
6
  chapters: ::Array[WhopSDK::CourseUpdateParams::Chapter]?,
7
- cover_image: String?,
8
7
  description: String?,
9
8
  language: WhopSDK::Models::languages?,
10
9
  order: String?,
11
10
  require_completing_lessons_in_order: bool?,
12
11
  tagline: String?,
13
- thumbnail: WhopSDK::Models::CourseUpdateParams::thumbnail?,
12
+ thumbnail: WhopSDK::CourseUpdateParams::Thumbnail?,
14
13
  title: String?,
15
14
  visibility: WhopSDK::Models::course_visibilities?
16
15
  }
@@ -24,8 +23,6 @@ module WhopSDK
24
23
 
25
24
  attr_accessor chapters: ::Array[WhopSDK::CourseUpdateParams::Chapter]?
26
25
 
27
- attr_accessor cover_image: String?
28
-
29
26
  attr_accessor description: String?
30
27
 
31
28
  attr_accessor language: WhopSDK::Models::languages?
@@ -36,7 +33,7 @@ module WhopSDK
36
33
 
37
34
  attr_accessor tagline: String?
38
35
 
39
- attr_accessor thumbnail: WhopSDK::Models::CourseUpdateParams::thumbnail?
36
+ attr_accessor thumbnail: WhopSDK::CourseUpdateParams::Thumbnail?
40
37
 
41
38
  attr_accessor title: String?
42
39
 
@@ -45,13 +42,12 @@ module WhopSDK
45
42
  def initialize: (
46
43
  ?certificate_after_completion_enabled: bool?,
47
44
  ?chapters: ::Array[WhopSDK::CourseUpdateParams::Chapter]?,
48
- ?cover_image: String?,
49
45
  ?description: String?,
50
46
  ?language: WhopSDK::Models::languages?,
51
47
  ?order: String?,
52
48
  ?require_completing_lessons_in_order: bool?,
53
49
  ?tagline: String?,
54
- ?thumbnail: WhopSDK::Models::CourseUpdateParams::thumbnail?,
50
+ ?thumbnail: WhopSDK::CourseUpdateParams::Thumbnail?,
55
51
  ?title: String?,
56
52
  ?visibility: WhopSDK::Models::course_visibilities?,
57
53
  ?request_options: WhopSDK::request_opts
@@ -60,13 +56,12 @@ module WhopSDK
60
56
  def to_hash: -> {
61
57
  certificate_after_completion_enabled: bool?,
62
58
  chapters: ::Array[WhopSDK::CourseUpdateParams::Chapter]?,
63
- cover_image: String?,
64
59
  description: String?,
65
60
  language: WhopSDK::Models::languages?,
66
61
  order: String?,
67
62
  require_completing_lessons_in_order: bool?,
68
63
  tagline: String?,
69
- thumbnail: WhopSDK::Models::CourseUpdateParams::thumbnail?,
64
+ thumbnail: WhopSDK::CourseUpdateParams::Thumbnail?,
70
65
  title: String?,
71
66
  visibility: WhopSDK::Models::course_visibilities?,
72
67
  request_options: WhopSDK::RequestOptions
@@ -131,35 +126,14 @@ module WhopSDK
131
126
  end
132
127
  end
133
128
 
134
- type thumbnail =
135
- WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID
136
- | WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithID
137
-
138
- module Thumbnail
139
- extend WhopSDK::Internal::Type::Union
140
-
141
- type attachment_input_with_direct_upload_id =
142
- { direct_upload_id: String }
143
-
144
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
145
- attr_accessor direct_upload_id: String
146
-
147
- def initialize: (direct_upload_id: String) -> void
148
-
149
- def to_hash: -> { direct_upload_id: String }
150
- end
151
-
152
- type attachment_input_with_id = { id: String }
153
-
154
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
155
- attr_accessor id: String
129
+ type thumbnail = { id: String }
156
130
 
157
- def initialize: (id: String) -> void
131
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
132
+ attr_accessor id: String
158
133
 
159
- def to_hash: -> { id: String }
160
- end
134
+ def initialize: (id: String) -> void
161
135
 
162
- def self?.variants: -> ::Array[WhopSDK::Models::CourseUpdateParams::thumbnail]
136
+ def to_hash: -> { id: String }
163
137
  end
164
138
  end
165
139
  end
@@ -6,7 +6,8 @@ module WhopSDK
6
6
  api_version: :v1,
7
7
  data: WhopSDK::Dispute,
8
8
  timestamp: Time,
9
- type: :"dispute.created"
9
+ type: :"dispute.created",
10
+ company_id: String?
10
11
  }
11
12
 
12
13
  class DisputeCreatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
@@ -20,10 +21,13 @@ module WhopSDK
20
21
 
21
22
  attr_accessor type: :"dispute.created"
22
23
 
24
+ attr_accessor company_id: String?
25
+
23
26
  def initialize: (
24
27
  id: String,
25
28
  data: WhopSDK::Dispute,
26
29
  timestamp: Time,
30
+ ?company_id: String?,
27
31
  ?api_version: :v1,
28
32
  ?type: :"dispute.created"
29
33
  ) -> void
@@ -33,7 +37,8 @@ module WhopSDK
33
37
  api_version: :v1,
34
38
  data: WhopSDK::Dispute,
35
39
  timestamp: Time,
36
- type: :"dispute.created"
40
+ type: :"dispute.created",
41
+ company_id: String?
37
42
  }
38
43
  end
39
44
  end
@@ -4,18 +4,18 @@ module WhopSDK
4
4
  {
5
5
  access_activity_log: String?,
6
6
  billing_address: String?,
7
- cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?,
7
+ cancellation_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment?,
8
8
  cancellation_policy_disclosure: String?,
9
- customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?,
9
+ customer_communication_attachment: WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment?,
10
10
  customer_email_address: String?,
11
11
  customer_name: String?,
12
12
  notes: String?,
13
13
  product_description: String?,
14
- refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?,
14
+ refund_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment?,
15
15
  refund_policy_disclosure: String?,
16
16
  refund_refusal_explanation: String?,
17
17
  service_date: String?,
18
- uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?
18
+ uncategorized_attachment: WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment?
19
19
  }
20
20
  & WhopSDK::Internal::Type::request_parameters
21
21
 
@@ -27,11 +27,11 @@ module WhopSDK
27
27
 
28
28
  attr_accessor billing_address: String?
29
29
 
30
- attr_accessor cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?
30
+ attr_accessor cancellation_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment?
31
31
 
32
32
  attr_accessor cancellation_policy_disclosure: String?
33
33
 
34
- attr_accessor customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?
34
+ attr_accessor customer_communication_attachment: WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment?
35
35
 
36
36
  attr_accessor customer_email_address: String?
37
37
 
@@ -41,7 +41,7 @@ module WhopSDK
41
41
 
42
42
  attr_accessor product_description: String?
43
43
 
44
- attr_accessor refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?
44
+ attr_accessor refund_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment?
45
45
 
46
46
  attr_accessor refund_policy_disclosure: String?
47
47
 
@@ -49,166 +49,82 @@ module WhopSDK
49
49
 
50
50
  attr_accessor service_date: String?
51
51
 
52
- attr_accessor uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?
52
+ attr_accessor uncategorized_attachment: WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment?
53
53
 
54
54
  def initialize: (
55
55
  ?access_activity_log: String?,
56
56
  ?billing_address: String?,
57
- ?cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?,
57
+ ?cancellation_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment?,
58
58
  ?cancellation_policy_disclosure: String?,
59
- ?customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?,
59
+ ?customer_communication_attachment: WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment?,
60
60
  ?customer_email_address: String?,
61
61
  ?customer_name: String?,
62
62
  ?notes: String?,
63
63
  ?product_description: String?,
64
- ?refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?,
64
+ ?refund_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment?,
65
65
  ?refund_policy_disclosure: String?,
66
66
  ?refund_refusal_explanation: String?,
67
67
  ?service_date: String?,
68
- ?uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?,
68
+ ?uncategorized_attachment: WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment?,
69
69
  ?request_options: WhopSDK::request_opts
70
70
  ) -> void
71
71
 
72
72
  def to_hash: -> {
73
73
  access_activity_log: String?,
74
74
  billing_address: String?,
75
- cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?,
75
+ cancellation_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment?,
76
76
  cancellation_policy_disclosure: String?,
77
- customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?,
77
+ customer_communication_attachment: WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment?,
78
78
  customer_email_address: String?,
79
79
  customer_name: String?,
80
80
  notes: String?,
81
81
  product_description: String?,
82
- refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?,
82
+ refund_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment?,
83
83
  refund_policy_disclosure: String?,
84
84
  refund_refusal_explanation: String?,
85
85
  service_date: String?,
86
- uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?,
86
+ uncategorized_attachment: WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment?,
87
87
  request_options: WhopSDK::RequestOptions
88
88
  }
89
89
 
90
- type cancellation_policy_attachment =
91
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID
92
- | WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID
90
+ type cancellation_policy_attachment = { id: String }
93
91
 
94
- module CancellationPolicyAttachment
95
- extend WhopSDK::Internal::Type::Union
92
+ class CancellationPolicyAttachment < WhopSDK::Internal::Type::BaseModel
93
+ attr_accessor id: String
96
94
 
97
- type attachment_input_with_direct_upload_id =
98
- { direct_upload_id: String }
95
+ def initialize: (id: String) -> void
99
96
 
100
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
101
- attr_accessor direct_upload_id: String
102
-
103
- def initialize: (direct_upload_id: String) -> void
104
-
105
- def to_hash: -> { direct_upload_id: String }
106
- end
107
-
108
- type attachment_input_with_id = { id: String }
109
-
110
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
111
- attr_accessor id: String
112
-
113
- def initialize: (id: String) -> void
114
-
115
- def to_hash: -> { id: String }
116
- end
117
-
118
- def self?.variants: -> ::Array[WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment]
97
+ def to_hash: -> { id: String }
119
98
  end
120
99
 
121
- type customer_communication_attachment =
122
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID
123
- | WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID
124
-
125
- module CustomerCommunicationAttachment
126
- extend WhopSDK::Internal::Type::Union
127
-
128
- type attachment_input_with_direct_upload_id =
129
- { direct_upload_id: String }
130
-
131
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
132
- attr_accessor direct_upload_id: String
133
-
134
- def initialize: (direct_upload_id: String) -> void
135
-
136
- def to_hash: -> { direct_upload_id: String }
137
- end
138
-
139
- type attachment_input_with_id = { id: String }
140
-
141
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
142
- attr_accessor id: String
100
+ type customer_communication_attachment = { id: String }
143
101
 
144
- def initialize: (id: String) -> void
102
+ class CustomerCommunicationAttachment < WhopSDK::Internal::Type::BaseModel
103
+ attr_accessor id: String
145
104
 
146
- def to_hash: -> { id: String }
147
- end
105
+ def initialize: (id: String) -> void
148
106
 
149
- def self?.variants: -> ::Array[WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment]
107
+ def to_hash: -> { id: String }
150
108
  end
151
109
 
152
- type refund_policy_attachment =
153
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID
154
- | WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID
110
+ type refund_policy_attachment = { id: String }
155
111
 
156
- module RefundPolicyAttachment
157
- extend WhopSDK::Internal::Type::Union
112
+ class RefundPolicyAttachment < WhopSDK::Internal::Type::BaseModel
113
+ attr_accessor id: String
158
114
 
159
- type attachment_input_with_direct_upload_id =
160
- { direct_upload_id: String }
115
+ def initialize: (id: String) -> void
161
116
 
162
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
163
- attr_accessor direct_upload_id: String
164
-
165
- def initialize: (direct_upload_id: String) -> void
166
-
167
- def to_hash: -> { direct_upload_id: String }
168
- end
169
-
170
- type attachment_input_with_id = { id: String }
171
-
172
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
173
- attr_accessor id: String
174
-
175
- def initialize: (id: String) -> void
176
-
177
- def to_hash: -> { id: String }
178
- end
179
-
180
- def self?.variants: -> ::Array[WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment]
117
+ def to_hash: -> { id: String }
181
118
  end
182
119
 
183
- type uncategorized_attachment =
184
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID
185
- | WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID
186
-
187
- module UncategorizedAttachment
188
- extend WhopSDK::Internal::Type::Union
189
-
190
- type attachment_input_with_direct_upload_id =
191
- { direct_upload_id: String }
192
-
193
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
194
- attr_accessor direct_upload_id: String
195
-
196
- def initialize: (direct_upload_id: String) -> void
197
-
198
- def to_hash: -> { direct_upload_id: String }
199
- end
200
-
201
- type attachment_input_with_id = { id: String }
202
-
203
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
204
- attr_accessor id: String
120
+ type uncategorized_attachment = { id: String }
205
121
 
206
- def initialize: (id: String) -> void
122
+ class UncategorizedAttachment < WhopSDK::Internal::Type::BaseModel
123
+ attr_accessor id: String
207
124
 
208
- def to_hash: -> { id: String }
209
- end
125
+ def initialize: (id: String) -> void
210
126
 
211
- def self?.variants: -> ::Array[WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment]
127
+ def to_hash: -> { id: String }
212
128
  end
213
129
  end
214
130
  end
@@ -6,7 +6,8 @@ module WhopSDK
6
6
  api_version: :v1,
7
7
  data: WhopSDK::Dispute,
8
8
  timestamp: Time,
9
- type: :"dispute.updated"
9
+ type: :"dispute.updated",
10
+ company_id: String?
10
11
  }
11
12
 
12
13
  class DisputeUpdatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
@@ -20,10 +21,13 @@ module WhopSDK
20
21
 
21
22
  attr_accessor type: :"dispute.updated"
22
23
 
24
+ attr_accessor company_id: String?
25
+
23
26
  def initialize: (
24
27
  id: String,
25
28
  data: WhopSDK::Dispute,
26
29
  timestamp: Time,
30
+ ?company_id: String?,
27
31
  ?api_version: :v1,
28
32
  ?type: :"dispute.updated"
29
33
  ) -> void
@@ -33,7 +37,8 @@ module WhopSDK
33
37
  api_version: :v1,
34
38
  data: WhopSDK::Dispute,
35
39
  timestamp: Time,
36
- type: :"dispute.updated"
40
+ type: :"dispute.updated",
41
+ company_id: String?
37
42
  }
38
43
  end
39
44
  end
@@ -6,7 +6,8 @@ module WhopSDK
6
6
  api_version: :v1,
7
7
  data: WhopSDK::Entry,
8
8
  timestamp: Time,
9
- type: :"entry.approved"
9
+ type: :"entry.approved",
10
+ company_id: String?
10
11
  }
11
12
 
12
13
  class EntryApprovedWebhookEvent < WhopSDK::Internal::Type::BaseModel
@@ -20,10 +21,13 @@ module WhopSDK
20
21
 
21
22
  attr_accessor type: :"entry.approved"
22
23
 
24
+ attr_accessor company_id: String?
25
+
23
26
  def initialize: (
24
27
  id: String,
25
28
  data: WhopSDK::Entry,
26
29
  timestamp: Time,
30
+ ?company_id: String?,
27
31
  ?api_version: :v1,
28
32
  ?type: :"entry.approved"
29
33
  ) -> void
@@ -33,7 +37,8 @@ module WhopSDK
33
37
  api_version: :v1,
34
38
  data: WhopSDK::Entry,
35
39
  timestamp: Time,
36
- type: :"entry.approved"
40
+ type: :"entry.approved",
41
+ company_id: String?
37
42
  }
38
43
  end
39
44
  end
@@ -6,7 +6,8 @@ module WhopSDK
6
6
  api_version: :v1,
7
7
  data: WhopSDK::Entry,
8
8
  timestamp: Time,
9
- type: :"entry.created"
9
+ type: :"entry.created",
10
+ company_id: String?
10
11
  }
11
12
 
12
13
  class EntryCreatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
@@ -20,10 +21,13 @@ module WhopSDK
20
21
 
21
22
  attr_accessor type: :"entry.created"
22
23
 
24
+ attr_accessor company_id: String?
25
+
23
26
  def initialize: (
24
27
  id: String,
25
28
  data: WhopSDK::Entry,
26
29
  timestamp: Time,
30
+ ?company_id: String?,
27
31
  ?api_version: :v1,
28
32
  ?type: :"entry.created"
29
33
  ) -> void
@@ -33,7 +37,8 @@ module WhopSDK
33
37
  api_version: :v1,
34
38
  data: WhopSDK::Entry,
35
39
  timestamp: Time,
36
- type: :"entry.created"
40
+ type: :"entry.created",
41
+ company_id: String?
37
42
  }
38
43
  end
39
44
  end
@@ -6,7 +6,8 @@ module WhopSDK
6
6
  api_version: :v1,
7
7
  data: WhopSDK::Entry,
8
8
  timestamp: Time,
9
- type: :"entry.deleted"
9
+ type: :"entry.deleted",
10
+ company_id: String?
10
11
  }
11
12
 
12
13
  class EntryDeletedWebhookEvent < WhopSDK::Internal::Type::BaseModel
@@ -20,10 +21,13 @@ module WhopSDK
20
21
 
21
22
  attr_accessor type: :"entry.deleted"
22
23
 
24
+ attr_accessor company_id: String?
25
+
23
26
  def initialize: (
24
27
  id: String,
25
28
  data: WhopSDK::Entry,
26
29
  timestamp: Time,
30
+ ?company_id: String?,
27
31
  ?api_version: :v1,
28
32
  ?type: :"entry.deleted"
29
33
  ) -> void
@@ -33,7 +37,8 @@ module WhopSDK
33
37
  api_version: :v1,
34
38
  data: WhopSDK::Entry,
35
39
  timestamp: Time,
36
- type: :"entry.deleted"
40
+ type: :"entry.deleted",
41
+ company_id: String?
37
42
  }
38
43
  end
39
44
  end
@@ -6,7 +6,8 @@ module WhopSDK
6
6
  api_version: :v1,
7
7
  data: WhopSDK::Entry,
8
8
  timestamp: Time,
9
- type: :"entry.denied"
9
+ type: :"entry.denied",
10
+ company_id: String?
10
11
  }
11
12
 
12
13
  class EntryDeniedWebhookEvent < WhopSDK::Internal::Type::BaseModel
@@ -20,10 +21,13 @@ module WhopSDK
20
21
 
21
22
  attr_accessor type: :"entry.denied"
22
23
 
24
+ attr_accessor company_id: String?
25
+
23
26
  def initialize: (
24
27
  id: String,
25
28
  data: WhopSDK::Entry,
26
29
  timestamp: Time,
30
+ ?company_id: String?,
27
31
  ?api_version: :v1,
28
32
  ?type: :"entry.denied"
29
33
  ) -> void
@@ -33,7 +37,8 @@ module WhopSDK
33
37
  api_version: :v1,
34
38
  data: WhopSDK::Entry,
35
39
  timestamp: Time,
36
- type: :"entry.denied"
40
+ type: :"entry.denied",
41
+ company_id: String?
37
42
  }
38
43
  end
39
44
  end
@@ -5,6 +5,7 @@ module WhopSDK
5
5
  app_id: String,
6
6
  company_id: String,
7
7
  is_public: bool?,
8
+ logo: WhopSDK::ExperienceCreateParams::Logo?,
8
9
  name: String?,
9
10
  section_id: String?
10
11
  }
@@ -20,6 +21,8 @@ module WhopSDK
20
21
 
21
22
  attr_accessor is_public: bool?
22
23
 
24
+ attr_accessor logo: WhopSDK::ExperienceCreateParams::Logo?
25
+
23
26
  attr_accessor name: String?
24
27
 
25
28
  attr_accessor section_id: String?
@@ -28,6 +31,7 @@ module WhopSDK
28
31
  app_id: String,
29
32
  company_id: String,
30
33
  ?is_public: bool?,
34
+ ?logo: WhopSDK::ExperienceCreateParams::Logo?,
31
35
  ?name: String?,
32
36
  ?section_id: String?,
33
37
  ?request_options: WhopSDK::request_opts
@@ -37,10 +41,21 @@ module WhopSDK
37
41
  app_id: String,
38
42
  company_id: String,
39
43
  is_public: bool?,
44
+ logo: WhopSDK::ExperienceCreateParams::Logo?,
40
45
  name: String?,
41
46
  section_id: String?,
42
47
  request_options: WhopSDK::RequestOptions
43
48
  }
49
+
50
+ type logo = { id: String }
51
+
52
+ class Logo < WhopSDK::Internal::Type::BaseModel
53
+ attr_accessor id: String
54
+
55
+ def initialize: (id: String) -> void
56
+
57
+ def to_hash: -> { id: String }
58
+ end
44
59
  end
45
60
  end
46
61
  end
@@ -4,7 +4,7 @@ module WhopSDK
4
4
  {
5
5
  access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
6
6
  is_public: bool?,
7
- logo: WhopSDK::Models::ExperienceUpdateParams::logo?,
7
+ logo: WhopSDK::ExperienceUpdateParams::Logo?,
8
8
  name: String?,
9
9
  order: String?,
10
10
  section_id: String?
@@ -19,7 +19,7 @@ module WhopSDK
19
19
 
20
20
  attr_accessor is_public: bool?
21
21
 
22
- attr_accessor logo: WhopSDK::Models::ExperienceUpdateParams::logo?
22
+ attr_accessor logo: WhopSDK::ExperienceUpdateParams::Logo?
23
23
 
24
24
  attr_accessor name: String?
25
25
 
@@ -30,7 +30,7 @@ module WhopSDK
30
30
  def initialize: (
31
31
  ?access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
32
32
  ?is_public: bool?,
33
- ?logo: WhopSDK::Models::ExperienceUpdateParams::logo?,
33
+ ?logo: WhopSDK::ExperienceUpdateParams::Logo?,
34
34
  ?name: String?,
35
35
  ?order: String?,
36
36
  ?section_id: String?,
@@ -40,7 +40,7 @@ module WhopSDK
40
40
  def to_hash: -> {
41
41
  access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
42
42
  is_public: bool?,
43
- logo: WhopSDK::Models::ExperienceUpdateParams::logo?,
43
+ logo: WhopSDK::ExperienceUpdateParams::Logo?,
44
44
  name: String?,
45
45
  order: String?,
46
46
  section_id: String?,
@@ -58,35 +58,14 @@ module WhopSDK
58
58
  def self?.values: -> ::Array[WhopSDK::Models::ExperienceUpdateParams::access_level]
59
59
  end
60
60
 
61
- type logo =
62
- WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID
63
- | WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID
61
+ type logo = { id: String }
64
62
 
65
- module Logo
66
- extend WhopSDK::Internal::Type::Union
63
+ class Logo < WhopSDK::Internal::Type::BaseModel
64
+ attr_accessor id: String
67
65
 
68
- type attachment_input_with_direct_upload_id =
69
- { direct_upload_id: String }
66
+ def initialize: (id: String) -> void
70
67
 
71
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
72
- attr_accessor direct_upload_id: String
73
-
74
- def initialize: (direct_upload_id: String) -> void
75
-
76
- def to_hash: -> { direct_upload_id: String }
77
- end
78
-
79
- type attachment_input_with_id = { id: String }
80
-
81
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
82
- attr_accessor id: String
83
-
84
- def initialize: (id: String) -> void
85
-
86
- def to_hash: -> { id: String }
87
- end
88
-
89
- def self?.variants: -> ::Array[WhopSDK::Models::ExperienceUpdateParams::logo]
68
+ def to_hash: -> { id: String }
90
69
  end
91
70
  end
92
71
  end