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
@@ -22,9 +22,9 @@ module WhopSDK
22
22
  # @!attribute cancellation_policy_attachment
23
23
  # A file containing the cancellation policy from the company.
24
24
  #
25
- # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID, nil]
25
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment, nil]
26
26
  optional :cancellation_policy_attachment,
27
- union: -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment },
27
+ -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment },
28
28
  nil?: true
29
29
 
30
30
  # @!attribute cancellation_policy_disclosure
@@ -36,9 +36,9 @@ module WhopSDK
36
36
  # @!attribute customer_communication_attachment
37
37
  # A file containing the customer communication from the company (An image).
38
38
  #
39
- # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID, nil]
39
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment, nil]
40
40
  optional :customer_communication_attachment,
41
- union: -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment },
41
+ -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment },
42
42
  nil?: true
43
43
 
44
44
  # @!attribute customer_email_address
@@ -68,9 +68,9 @@ module WhopSDK
68
68
  # @!attribute refund_policy_attachment
69
69
  # A file containing the refund policy from the company.
70
70
  #
71
- # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID, nil]
71
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment, nil]
72
72
  optional :refund_policy_attachment,
73
- union: -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment },
73
+ -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment },
74
74
  nil?: true
75
75
 
76
76
  # @!attribute refund_policy_disclosure
@@ -94,9 +94,9 @@ module WhopSDK
94
94
  # @!attribute uncategorized_attachment
95
95
  # A file that does not fit in the other categories.
96
96
  #
97
- # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID, nil]
97
+ # @return [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment, nil]
98
98
  optional :uncategorized_attachment,
99
- union: -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment },
99
+ -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment },
100
100
  nil?: true
101
101
 
102
102
  # @!method initialize(access_activity_log: nil, billing_address: nil, cancellation_policy_attachment: nil, cancellation_policy_disclosure: nil, customer_communication_attachment: nil, customer_email_address: nil, customer_name: nil, notes: nil, product_description: nil, refund_policy_attachment: nil, refund_policy_disclosure: nil, refund_refusal_explanation: nil, service_date: nil, uncategorized_attachment: nil, request_options: {})
@@ -104,11 +104,11 @@ module WhopSDK
104
104
  #
105
105
  # @param billing_address [String, nil] The billing address of the user from their payment details.
106
106
  #
107
- # @param cancellation_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID, nil] A file containing the cancellation policy from the company.
107
+ # @param cancellation_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment, nil] A file containing the cancellation policy from the company.
108
108
  #
109
109
  # @param cancellation_policy_disclosure [String, nil] A cancellation policy disclosure from the company.
110
110
  #
111
- # @param customer_communication_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID, nil] A file containing the customer communication from the company (An image).
111
+ # @param customer_communication_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment, nil] A file containing the customer communication from the company (An image).
112
112
  #
113
113
  # @param customer_email_address [String, nil] The email of the customer from their payment details.
114
114
  #
@@ -118,7 +118,7 @@ module WhopSDK
118
118
  #
119
119
  # @param product_description [String, nil] The description of the product from the company.
120
120
  #
121
- # @param refund_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID, nil] A file containing the refund policy from the company.
121
+ # @param refund_policy_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment, nil] A file containing the refund policy from the company.
122
122
  #
123
123
  # @param refund_policy_disclosure [String, nil] A refund policy disclosure from the company.
124
124
  #
@@ -126,216 +126,60 @@ module WhopSDK
126
126
  #
127
127
  # @param service_date [String, nil] When the product was delivered by the company.
128
128
  #
129
- # @param uncategorized_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID, nil] A file that does not fit in the other categories.
129
+ # @param uncategorized_attachment [WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment, nil] A file that does not fit in the other categories.
130
130
  #
131
131
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
132
132
 
133
- # A file containing the cancellation policy from the company.
134
- module CancellationPolicyAttachment
135
- extend WhopSDK::Internal::Type::Union
136
-
137
- # Input for an attachment
138
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID }
139
-
140
- # Input for an attachment
141
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID }
142
-
143
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
144
- # @!attribute direct_upload_id
145
- # This ID should be used the first time you upload an attachment. It is the ID of
146
- # the direct upload that was created when uploading the file to S3 via the
147
- # mediaDirectUpload mutation.
148
- #
149
- # @return [String]
150
- required :direct_upload_id, String
151
-
152
- # @!method initialize(direct_upload_id:)
153
- # Some parameter documentations has been truncated, see
154
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID}
155
- # for more details.
156
- #
157
- # Input for an attachment
158
- #
159
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
160
- end
161
-
162
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
163
- # @!attribute id
164
- # The ID of an existing attachment object. Use this when updating a resource and
165
- # keeping a subset of the attachments. Don't use this unless you know what you're
166
- # doing.
167
- #
168
- # @return [String]
169
- required :id, String
170
-
171
- # @!method initialize(id:)
172
- # Some parameter documentations has been truncated, see
173
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID}
174
- # for more details.
175
- #
176
- # Input for an attachment
177
- #
178
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
179
- end
180
-
181
- # @!method self.variants
182
- # @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID)]
133
+ class CancellationPolicyAttachment < WhopSDK::Internal::Type::BaseModel
134
+ # @!attribute id
135
+ # The ID of an existing file object.
136
+ #
137
+ # @return [String]
138
+ required :id, String
139
+
140
+ # @!method initialize(id:)
141
+ # A file containing the cancellation policy from the company.
142
+ #
143
+ # @param id [String] The ID of an existing file object.
183
144
  end
184
145
 
185
- # A file containing the customer communication from the company (An image).
186
- module CustomerCommunicationAttachment
187
- extend WhopSDK::Internal::Type::Union
188
-
189
- # Input for an attachment
190
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID }
191
-
192
- # Input for an attachment
193
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID }
194
-
195
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
196
- # @!attribute direct_upload_id
197
- # This ID should be used the first time you upload an attachment. It is the ID of
198
- # the direct upload that was created when uploading the file to S3 via the
199
- # mediaDirectUpload mutation.
200
- #
201
- # @return [String]
202
- required :direct_upload_id, String
203
-
204
- # @!method initialize(direct_upload_id:)
205
- # Some parameter documentations has been truncated, see
206
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID}
207
- # for more details.
208
- #
209
- # Input for an attachment
210
- #
211
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
212
- end
213
-
214
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
215
- # @!attribute id
216
- # The ID of an existing attachment object. Use this when updating a resource and
217
- # keeping a subset of the attachments. Don't use this unless you know what you're
218
- # doing.
219
- #
220
- # @return [String]
221
- required :id, String
222
-
223
- # @!method initialize(id:)
224
- # Some parameter documentations has been truncated, see
225
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID}
226
- # for more details.
227
- #
228
- # Input for an attachment
229
- #
230
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
231
- end
232
-
233
- # @!method self.variants
234
- # @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID)]
146
+ class CustomerCommunicationAttachment < WhopSDK::Internal::Type::BaseModel
147
+ # @!attribute id
148
+ # The ID of an existing file object.
149
+ #
150
+ # @return [String]
151
+ required :id, String
152
+
153
+ # @!method initialize(id:)
154
+ # A file containing the customer communication from the company (An image).
155
+ #
156
+ # @param id [String] The ID of an existing file object.
235
157
  end
236
158
 
237
- # A file containing the refund policy from the company.
238
- module RefundPolicyAttachment
239
- extend WhopSDK::Internal::Type::Union
240
-
241
- # Input for an attachment
242
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID }
243
-
244
- # Input for an attachment
245
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID }
246
-
247
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
248
- # @!attribute direct_upload_id
249
- # This ID should be used the first time you upload an attachment. It is the ID of
250
- # the direct upload that was created when uploading the file to S3 via the
251
- # mediaDirectUpload mutation.
252
- #
253
- # @return [String]
254
- required :direct_upload_id, String
255
-
256
- # @!method initialize(direct_upload_id:)
257
- # Some parameter documentations has been truncated, see
258
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID}
259
- # for more details.
260
- #
261
- # Input for an attachment
262
- #
263
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
264
- end
265
-
266
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
267
- # @!attribute id
268
- # The ID of an existing attachment object. Use this when updating a resource and
269
- # keeping a subset of the attachments. Don't use this unless you know what you're
270
- # doing.
271
- #
272
- # @return [String]
273
- required :id, String
274
-
275
- # @!method initialize(id:)
276
- # Some parameter documentations has been truncated, see
277
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID}
278
- # for more details.
279
- #
280
- # Input for an attachment
281
- #
282
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
283
- end
284
-
285
- # @!method self.variants
286
- # @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID)]
159
+ class RefundPolicyAttachment < WhopSDK::Internal::Type::BaseModel
160
+ # @!attribute id
161
+ # The ID of an existing file object.
162
+ #
163
+ # @return [String]
164
+ required :id, String
165
+
166
+ # @!method initialize(id:)
167
+ # A file containing the refund policy from the company.
168
+ #
169
+ # @param id [String] The ID of an existing file object.
287
170
  end
288
171
 
289
- # A file that does not fit in the other categories.
290
- module UncategorizedAttachment
291
- extend WhopSDK::Internal::Type::Union
292
-
293
- # Input for an attachment
294
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID }
295
-
296
- # Input for an attachment
297
- variant -> { WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID }
298
-
299
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
300
- # @!attribute direct_upload_id
301
- # This ID should be used the first time you upload an attachment. It is the ID of
302
- # the direct upload that was created when uploading the file to S3 via the
303
- # mediaDirectUpload mutation.
304
- #
305
- # @return [String]
306
- required :direct_upload_id, String
307
-
308
- # @!method initialize(direct_upload_id:)
309
- # Some parameter documentations has been truncated, see
310
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID}
311
- # for more details.
312
- #
313
- # Input for an attachment
314
- #
315
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
316
- end
317
-
318
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
319
- # @!attribute id
320
- # The ID of an existing attachment object. Use this when updating a resource and
321
- # keeping a subset of the attachments. Don't use this unless you know what you're
322
- # doing.
323
- #
324
- # @return [String]
325
- required :id, String
326
-
327
- # @!method initialize(id:)
328
- # Some parameter documentations has been truncated, see
329
- # {WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID}
330
- # for more details.
331
- #
332
- # Input for an attachment
333
- #
334
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
335
- end
336
-
337
- # @!method self.variants
338
- # @return [Array(WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID)]
172
+ class UncategorizedAttachment < WhopSDK::Internal::Type::BaseModel
173
+ # @!attribute id
174
+ # The ID of an existing file object.
175
+ #
176
+ # @return [String]
177
+ required :id, String
178
+
179
+ # @!method initialize(id:)
180
+ # A file that does not fit in the other categories.
181
+ #
182
+ # @param id [String] The ID of an existing file object.
339
183
  end
340
184
  end
341
185
  end
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"dispute.updated"]
34
34
  required :type, const: :"dispute.updated"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"dispute.updated")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"dispute.updated")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Dispute] An object representing a dispute against a company.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"dispute.updated"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"entry.approved"]
34
34
  required :type, const: :"entry.approved"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"entry.approved")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"entry.approved")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Entry] An object representing an entry in a waitlist.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"entry.approved"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"entry.created"]
34
34
  required :type, const: :"entry.created"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"entry.created")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"entry.created")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Entry] An object representing an entry in a waitlist.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"entry.created"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"entry.deleted"]
34
34
  required :type, const: :"entry.deleted"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"entry.deleted")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"entry.deleted")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Entry] An object representing an entry in a waitlist.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"entry.deleted"] The webhook event type
@@ -33,13 +33,21 @@ module WhopSDK
33
33
  # @return [Symbol, :"entry.denied"]
34
34
  required :type, const: :"entry.denied"
35
35
 
36
- # @!method initialize(id:, data:, timestamp:, api_version: :v1, type: :"entry.denied")
36
+ # @!attribute company_id
37
+ # The company ID that this webhook event is associated with
38
+ #
39
+ # @return [String, nil]
40
+ optional :company_id, String, nil?: true
41
+
42
+ # @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"entry.denied")
37
43
  # @param id [String] A unique ID for every single webhook request
38
44
  #
39
45
  # @param data [WhopSDK::Models::Entry] An object representing an entry in a waitlist.
40
46
  #
41
47
  # @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
42
48
  #
49
+ # @param company_id [String, nil] The company ID that this webhook event is associated with
50
+ #
43
51
  # @param api_version [Symbol, :v1] The API version for this webhook
44
52
  #
45
53
  # @param type [Symbol, :"entry.denied"] The webhook event type
@@ -25,6 +25,12 @@ module WhopSDK
25
25
  # @return [Boolean, nil]
26
26
  optional :is_public, WhopSDK::Internal::Type::Boolean, nil?: true
27
27
 
28
+ # @!attribute logo
29
+ # The logo for the experience
30
+ #
31
+ # @return [WhopSDK::Models::ExperienceCreateParams::Logo, nil]
32
+ optional :logo, -> { WhopSDK::ExperienceCreateParams::Logo }, nil?: true
33
+
28
34
  # @!attribute name
29
35
  # The name of the experience
30
36
  #
@@ -37,18 +43,33 @@ module WhopSDK
37
43
  # @return [String, nil]
38
44
  optional :section_id, String, nil?: true
39
45
 
40
- # @!method initialize(app_id:, company_id:, is_public: nil, name: nil, section_id: nil, request_options: {})
46
+ # @!method initialize(app_id:, company_id:, is_public: nil, logo: nil, name: nil, section_id: nil, request_options: {})
41
47
  # @param app_id [String] The ID of the app to create the experience for
42
48
  #
43
49
  # @param company_id [String] The ID of the company to create the experience for
44
50
  #
45
51
  # @param is_public [Boolean, nil] Whether the experience is publicly accessible
46
52
  #
53
+ # @param logo [WhopSDK::Models::ExperienceCreateParams::Logo, nil] The logo for the experience
54
+ #
47
55
  # @param name [String, nil] The name of the experience
48
56
  #
49
57
  # @param section_id [String, nil] The ID of the section to create the experience in
50
58
  #
51
59
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
60
+
61
+ class Logo < WhopSDK::Internal::Type::BaseModel
62
+ # @!attribute id
63
+ # The ID of an existing file object.
64
+ #
65
+ # @return [String]
66
+ required :id, String
67
+
68
+ # @!method initialize(id:)
69
+ # The logo for the experience
70
+ #
71
+ # @param id [String] The ID of an existing file object.
72
+ end
52
73
  end
53
74
  end
54
75
  end
@@ -22,8 +22,8 @@ module WhopSDK
22
22
  # @!attribute logo
23
23
  # The logo for the experience
24
24
  #
25
- # @return [WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID, nil]
26
- optional :logo, union: -> { WhopSDK::ExperienceUpdateParams::Logo }, nil?: true
25
+ # @return [WhopSDK::Models::ExperienceUpdateParams::Logo, nil]
26
+ optional :logo, -> { WhopSDK::ExperienceUpdateParams::Logo }, nil?: true
27
27
 
28
28
  # @!attribute name
29
29
  # The name of the experience.
@@ -48,7 +48,7 @@ module WhopSDK
48
48
  #
49
49
  # @param is_public [Boolean, nil] Whether the experience is publicly accessible.
50
50
  #
51
- # @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the experience
51
+ # @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo, nil] The logo for the experience
52
52
  #
53
53
  # @param name [String, nil] The name of the experience.
54
54
  #
@@ -69,56 +69,17 @@ module WhopSDK
69
69
  # @return [Array<Symbol>]
70
70
  end
71
71
 
72
- # The logo for the experience
73
- module Logo
74
- extend WhopSDK::Internal::Type::Union
75
-
76
- # Input for an attachment
77
- variant -> { WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID }
78
-
79
- # Input for an attachment
80
- variant -> { WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID }
81
-
82
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
83
- # @!attribute direct_upload_id
84
- # This ID should be used the first time you upload an attachment. It is the ID of
85
- # the direct upload that was created when uploading the file to S3 via the
86
- # mediaDirectUpload mutation.
87
- #
88
- # @return [String]
89
- required :direct_upload_id, String
90
-
91
- # @!method initialize(direct_upload_id:)
92
- # Some parameter documentations has been truncated, see
93
- # {WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID}
94
- # for more details.
95
- #
96
- # Input for an attachment
97
- #
98
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
99
- end
100
-
101
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
102
- # @!attribute id
103
- # The ID of an existing attachment object. Use this when updating a resource and
104
- # keeping a subset of the attachments. Don't use this unless you know what you're
105
- # doing.
106
- #
107
- # @return [String]
108
- required :id, String
109
-
110
- # @!method initialize(id:)
111
- # Some parameter documentations has been truncated, see
112
- # {WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID} for more
113
- # details.
114
- #
115
- # Input for an attachment
116
- #
117
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
118
- end
119
-
120
- # @!method self.variants
121
- # @return [Array(WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID)]
72
+ class Logo < WhopSDK::Internal::Type::BaseModel
73
+ # @!attribute id
74
+ # The ID of an existing file object.
75
+ #
76
+ # @return [String]
77
+ required :id, String
78
+
79
+ # @!method initialize(id:)
80
+ # The logo for the experience
81
+ #
82
+ # @param id [String] The ID of an existing file object.
122
83
  end
123
84
  end
124
85
  end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::Files#create
6
+ class FileCreateParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute filename
11
+ # The filename of the file
12
+ #
13
+ # @return [String]
14
+ required :filename, String
15
+
16
+ # @!method initialize(filename:, request_options: {})
17
+ # @param filename [String] The filename of the file
18
+ #
19
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
20
+ end
21
+ end
22
+ end