whop_sdk 0.0.23 → 0.0.25

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 (284) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +52 -0
  3. data/README.md +3 -3
  4. data/lib/whop_sdk/client.rb +12 -0
  5. data/lib/whop_sdk/models/ai_chat_create_params.rb +22 -0
  6. data/lib/whop_sdk/models/ai_chat_create_response.rb +89 -0
  7. data/lib/whop_sdk/models/ai_chat_delete_params.rb +14 -0
  8. data/lib/whop_sdk/models/ai_chat_delete_response.rb +8 -0
  9. data/lib/whop_sdk/models/ai_chat_list_params.rb +46 -0
  10. data/lib/whop_sdk/models/ai_chat_list_response.rb +89 -0
  11. data/lib/whop_sdk/models/ai_chat_retrieve_params.rb +14 -0
  12. data/lib/whop_sdk/models/ai_chat_retrieve_response.rb +89 -0
  13. data/lib/whop_sdk/models/ai_chat_update_params.rb +22 -0
  14. data/lib/whop_sdk/models/ai_chat_update_response.rb +89 -0
  15. data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
  16. data/lib/whop_sdk/models/app_create_params.rb +22 -1
  17. data/lib/whop_sdk/models/app_list_params.rb +6 -0
  18. data/lib/whop_sdk/models/app_update_params.rb +14 -53
  19. data/lib/whop_sdk/models/card_brands.rb +16 -0
  20. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
  21. data/lib/whop_sdk/models/company_create_params.rb +22 -1
  22. data/lib/whop_sdk/models/company_token_transaction_create_params.rb +69 -0
  23. data/lib/whop_sdk/models/company_token_transaction_create_response.rb +180 -0
  24. data/lib/whop_sdk/models/company_token_transaction_list_params.rb +84 -0
  25. data/lib/whop_sdk/models/company_token_transaction_list_response.rb +180 -0
  26. data/lib/whop_sdk/models/company_token_transaction_retrieve_params.rb +14 -0
  27. data/lib/whop_sdk/models/company_token_transaction_retrieve_response.rb +180 -0
  28. data/lib/whop_sdk/models/company_update_params.rb +28 -106
  29. data/lib/whop_sdk/models/course_create_params.rb +15 -62
  30. data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
  31. data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
  32. data/lib/whop_sdk/models/course_update_params.rb +14 -61
  33. data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
  34. data/lib/whop_sdk/models/dm_member_create_params.rb +30 -0
  35. data/lib/whop_sdk/models/dm_member_create_response.rb +94 -0
  36. data/lib/whop_sdk/models/dm_member_delete_params.rb +14 -0
  37. data/lib/whop_sdk/models/dm_member_delete_response.rb +8 -0
  38. data/lib/whop_sdk/models/dm_member_list_params.rb +54 -0
  39. data/lib/whop_sdk/models/dm_member_list_response.rb +71 -0
  40. data/lib/whop_sdk/models/dm_member_retrieve_params.rb +14 -0
  41. data/lib/whop_sdk/models/dm_member_retrieve_response.rb +94 -0
  42. data/lib/whop_sdk/models/dm_member_update_params.rb +58 -0
  43. data/lib/whop_sdk/models/dm_member_update_response.rb +94 -0
  44. data/lib/whop_sdk/models/experience_create_params.rb +22 -1
  45. data/lib/whop_sdk/models/experience_update_params.rb +14 -53
  46. data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
  47. data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
  48. data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
  49. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
  50. data/lib/whop_sdk/models/member_list_response.rb +9 -1
  51. data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
  52. data/lib/whop_sdk/models/membership.rb +76 -2
  53. data/lib/whop_sdk/models/membership_list_response.rb +38 -2
  54. data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
  55. data/lib/whop_sdk/models/message_create_params.rb +22 -53
  56. data/lib/whop_sdk/models/message_delete_params.rb +14 -0
  57. data/lib/whop_sdk/models/message_delete_response.rb +8 -0
  58. data/lib/whop_sdk/models/message_update_params.rb +14 -53
  59. data/lib/whop_sdk/models/payment.rb +17 -1
  60. data/lib/whop_sdk/models/payment_list_response.rb +17 -1
  61. data/lib/whop_sdk/models/payment_method_types.rb +59 -57
  62. data/lib/whop_sdk/models/payment_provider.rb +1 -0
  63. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +26 -1
  64. data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
  65. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
  66. data/lib/whop_sdk/models/plan_create_params.rb +14 -53
  67. data/lib/whop_sdk/models/plan_update_params.rb +14 -53
  68. data/lib/whop_sdk/models/reaction_create_params.rb +10 -1
  69. data/lib/whop_sdk/models/reaction_delete_params.rb +22 -0
  70. data/lib/whop_sdk/models/reaction_delete_response.rb +8 -0
  71. data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
  72. data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
  73. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +2 -9
  74. data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
  75. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
  76. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +2 -9
  77. data/lib/whop_sdk/models.rb +32 -2
  78. data/lib/whop_sdk/resources/ai_chats.rb +141 -0
  79. data/lib/whop_sdk/resources/app_builds.rb +1 -1
  80. data/lib/whop_sdk/resources/apps.rb +4 -2
  81. data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
  82. data/lib/whop_sdk/resources/companies.rb +5 -3
  83. data/lib/whop_sdk/resources/company_token_transactions.rb +121 -0
  84. data/lib/whop_sdk/resources/course_lessons.rb +4 -4
  85. data/lib/whop_sdk/resources/courses.rb +4 -8
  86. data/lib/whop_sdk/resources/disputes.rb +4 -4
  87. data/lib/whop_sdk/resources/dm_members.rb +155 -0
  88. data/lib/whop_sdk/resources/experiences.rb +4 -2
  89. data/lib/whop_sdk/resources/forum_posts.rb +2 -2
  90. data/lib/whop_sdk/resources/memberships.rb +32 -0
  91. data/lib/whop_sdk/resources/messages.rb +29 -3
  92. data/lib/whop_sdk/resources/notifications.rb +4 -0
  93. data/lib/whop_sdk/resources/plans.rb +2 -2
  94. data/lib/whop_sdk/resources/reactions.rb +34 -1
  95. data/lib/whop_sdk/resources/withdrawals.rb +8 -1
  96. data/lib/whop_sdk/version.rb +1 -1
  97. data/lib/whop_sdk.rb +34 -1
  98. data/rbi/whop_sdk/client.rbi +9 -0
  99. data/rbi/whop_sdk/models/ai_chat_create_params.rbi +40 -0
  100. data/rbi/whop_sdk/models/ai_chat_create_response.rbi +128 -0
  101. data/rbi/whop_sdk/models/ai_chat_delete_params.rbi +27 -0
  102. data/rbi/whop_sdk/models/ai_chat_delete_response.rbi +7 -0
  103. data/rbi/whop_sdk/models/ai_chat_list_params.rbi +67 -0
  104. data/rbi/whop_sdk/models/ai_chat_list_response.rbi +125 -0
  105. data/rbi/whop_sdk/models/ai_chat_retrieve_params.rbi +27 -0
  106. data/rbi/whop_sdk/models/ai_chat_retrieve_response.rbi +128 -0
  107. data/rbi/whop_sdk/models/ai_chat_update_params.rbi +40 -0
  108. data/rbi/whop_sdk/models/ai_chat_update_response.rbi +128 -0
  109. data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
  110. data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
  111. data/rbi/whop_sdk/models/app_list_params.rbi +12 -0
  112. data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
  113. data/rbi/whop_sdk/models/card_brands.rbi +17 -0
  114. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
  115. data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
  116. data/rbi/whop_sdk/models/company_token_transaction_create_params.rbi +92 -0
  117. data/rbi/whop_sdk/models/company_token_transaction_create_response.rbi +308 -0
  118. data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +146 -0
  119. data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +308 -0
  120. data/rbi/whop_sdk/models/company_token_transaction_retrieve_params.rbi +30 -0
  121. data/rbi/whop_sdk/models/company_token_transaction_retrieve_response.rbi +312 -0
  122. data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
  123. data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
  124. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
  125. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
  126. data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
  127. data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
  128. data/rbi/whop_sdk/models/dm_member_create_params.rbi +51 -0
  129. data/rbi/whop_sdk/models/dm_member_create_response.rbi +179 -0
  130. data/rbi/whop_sdk/models/dm_member_delete_params.rbi +27 -0
  131. data/rbi/whop_sdk/models/dm_member_delete_response.rbi +8 -0
  132. data/rbi/whop_sdk/models/dm_member_list_params.rbi +75 -0
  133. data/rbi/whop_sdk/models/dm_member_list_response.rbi +124 -0
  134. data/rbi/whop_sdk/models/dm_member_retrieve_params.rbi +27 -0
  135. data/rbi/whop_sdk/models/dm_member_retrieve_response.rbi +179 -0
  136. data/rbi/whop_sdk/models/dm_member_update_params.rbi +130 -0
  137. data/rbi/whop_sdk/models/dm_member_update_response.rbi +179 -0
  138. data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
  139. data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
  140. data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
  141. data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
  142. data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
  143. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
  144. data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
  145. data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
  146. data/rbi/whop_sdk/models/membership.rbi +126 -4
  147. data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
  148. data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
  149. data/rbi/whop_sdk/models/message_create_params.rbi +26 -94
  150. data/rbi/whop_sdk/models/message_delete_params.rbi +27 -0
  151. data/rbi/whop_sdk/models/message_delete_response.rbi +8 -0
  152. data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
  153. data/rbi/whop_sdk/models/payment.rbi +16 -0
  154. data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
  155. data/rbi/whop_sdk/models/payment_method_types.rbi +67 -64
  156. data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
  157. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +26 -0
  158. data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
  159. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
  160. data/rbi/whop_sdk/models/plan_create_params.rbi +21 -93
  161. data/rbi/whop_sdk/models/plan_update_params.rbi +21 -93
  162. data/rbi/whop_sdk/models/reaction_create_params.rbi +10 -0
  163. data/rbi/whop_sdk/models/reaction_delete_params.rbi +40 -0
  164. data/rbi/whop_sdk/models/reaction_delete_response.rbi +8 -0
  165. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
  166. data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
  167. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +8 -11
  168. data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
  169. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
  170. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +8 -11
  171. data/rbi/whop_sdk/models.rbi +35 -2
  172. data/rbi/whop_sdk/resources/ai_chats.rbi +108 -0
  173. data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
  174. data/rbi/whop_sdk/resources/apps.rbi +4 -7
  175. data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
  176. data/rbi/whop_sdk/resources/companies.rbi +5 -13
  177. data/rbi/whop_sdk/resources/company_token_transactions.rbi +114 -0
  178. data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
  179. data/rbi/whop_sdk/resources/courses.rbi +2 -20
  180. data/rbi/whop_sdk/resources/disputes.rbi +4 -16
  181. data/rbi/whop_sdk/resources/dm_members.rbi +128 -0
  182. data/rbi/whop_sdk/resources/experiences.rbi +4 -7
  183. data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
  184. data/rbi/whop_sdk/resources/memberships.rbi +26 -0
  185. data/rbi/whop_sdk/resources/messages.rbi +23 -12
  186. data/rbi/whop_sdk/resources/notifications.rbi +4 -0
  187. data/rbi/whop_sdk/resources/plans.rbi +2 -14
  188. data/rbi/whop_sdk/resources/reactions.rbi +26 -0
  189. data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
  190. data/sig/whop_sdk/client.rbs +6 -0
  191. data/sig/whop_sdk/models/ai_chat_create_params.rbs +23 -0
  192. data/sig/whop_sdk/models/ai_chat_create_response.rbs +65 -0
  193. data/sig/whop_sdk/models/ai_chat_delete_params.rbs +15 -0
  194. data/sig/whop_sdk/models/ai_chat_delete_response.rbs +5 -0
  195. data/sig/whop_sdk/models/ai_chat_list_params.rbs +36 -0
  196. data/sig/whop_sdk/models/ai_chat_list_response.rbs +65 -0
  197. data/sig/whop_sdk/models/ai_chat_retrieve_params.rbs +15 -0
  198. data/sig/whop_sdk/models/ai_chat_retrieve_response.rbs +65 -0
  199. data/sig/whop_sdk/models/ai_chat_update_params.rbs +23 -0
  200. data/sig/whop_sdk/models/ai_chat_update_response.rbs +65 -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 +13 -1
  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_token_transaction_create_params.rbs +56 -0
  209. data/sig/whop_sdk/models/company_token_transaction_create_response.rbs +115 -0
  210. data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +68 -0
  211. data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +115 -0
  212. data/sig/whop_sdk/models/company_token_transaction_retrieve_params.rbs +15 -0
  213. data/sig/whop_sdk/models/company_token_transaction_retrieve_response.rbs +115 -0
  214. data/sig/whop_sdk/models/company_update_params.rbs +18 -60
  215. data/sig/whop_sdk/models/course_create_params.rbs +9 -35
  216. data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
  217. data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
  218. data/sig/whop_sdk/models/course_update_params.rbs +9 -35
  219. data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
  220. data/sig/whop_sdk/models/dm_member_create_params.rbs +28 -0
  221. data/sig/whop_sdk/models/dm_member_create_response.rbs +71 -0
  222. data/sig/whop_sdk/models/dm_member_delete_params.rbs +15 -0
  223. data/sig/whop_sdk/models/dm_member_delete_response.rbs +5 -0
  224. data/sig/whop_sdk/models/dm_member_list_params.rbs +46 -0
  225. data/sig/whop_sdk/models/dm_member_list_response.rbs +54 -0
  226. data/sig/whop_sdk/models/dm_member_retrieve_params.rbs +15 -0
  227. data/sig/whop_sdk/models/dm_member_retrieve_response.rbs +71 -0
  228. data/sig/whop_sdk/models/dm_member_update_params.rbs +57 -0
  229. data/sig/whop_sdk/models/dm_member_update_response.rbs +71 -0
  230. data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
  231. data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
  232. data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
  233. data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
  234. data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
  235. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
  236. data/sig/whop_sdk/models/member_list_response.rbs +5 -0
  237. data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
  238. data/sig/whop_sdk/models/membership.rbs +65 -4
  239. data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
  240. data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
  241. data/sig/whop_sdk/models/message_create_params.rbs +15 -31
  242. data/sig/whop_sdk/models/message_delete_params.rbs +15 -0
  243. data/sig/whop_sdk/models/message_delete_response.rbs +5 -0
  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_list_response.rbs +10 -0
  247. data/sig/whop_sdk/models/payment_method_types.rbs +119 -115
  248. data/sig/whop_sdk/models/payment_provider.rbs +2 -0
  249. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +15 -0
  250. data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
  251. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
  252. data/sig/whop_sdk/models/plan_create_params.rbs +9 -30
  253. data/sig/whop_sdk/models/plan_update_params.rbs +9 -30
  254. data/sig/whop_sdk/models/reaction_create_params.rbs +5 -1
  255. data/sig/whop_sdk/models/reaction_delete_params.rbs +23 -0
  256. data/sig/whop_sdk/models/reaction_delete_response.rbs +5 -0
  257. data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
  258. data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
  259. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -8
  260. data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
  261. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
  262. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -8
  263. data/sig/whop_sdk/models.rbs +32 -2
  264. data/sig/whop_sdk/resources/ai_chats.rbs +33 -0
  265. data/sig/whop_sdk/resources/app_builds.rbs +1 -1
  266. data/sig/whop_sdk/resources/apps.rbs +2 -1
  267. data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
  268. data/sig/whop_sdk/resources/companies.rbs +3 -2
  269. data/sig/whop_sdk/resources/company_token_transactions.rbs +34 -0
  270. data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
  271. data/sig/whop_sdk/resources/courses.rbs +2 -4
  272. data/sig/whop_sdk/resources/disputes.rbs +4 -4
  273. data/sig/whop_sdk/resources/dm_members.rbs +36 -0
  274. data/sig/whop_sdk/resources/experiences.rbs +2 -1
  275. data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
  276. data/sig/whop_sdk/resources/memberships.rbs +5 -0
  277. data/sig/whop_sdk/resources/messages.rbs +5 -2
  278. data/sig/whop_sdk/resources/plans.rbs +2 -2
  279. data/sig/whop_sdk/resources/reactions.rbs +7 -0
  280. data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
  281. metadata +118 -5
  282. data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
  283. data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
  284. data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
@@ -12,17 +12,16 @@ module WhopSDK
12
12
  end
13
13
 
14
14
  # The banner image for the company in png or jpeg format
15
+ sig { returns(T.nilable(WhopSDK::CompanyUpdateParams::BannerImage)) }
16
+ attr_reader :banner_image
17
+
15
18
  sig do
16
- returns(
17
- T.nilable(
18
- T.any(
19
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
20
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID
21
- )
22
- )
23
- )
19
+ params(
20
+ banner_image:
21
+ T.nilable(WhopSDK::CompanyUpdateParams::BannerImage::OrHash)
22
+ ).void
24
23
  end
25
- attr_accessor :banner_image
24
+ attr_writer :banner_image
26
25
 
27
26
  # The different business types a company can be.
28
27
  sig { returns(T.nilable(WhopSDK::BusinessTypes::OrSymbol)) }
@@ -33,17 +32,13 @@ module WhopSDK
33
32
  attr_accessor :industry_type
34
33
 
35
34
  # The logo for the company in png, jpeg, or gif format
35
+ sig { returns(T.nilable(WhopSDK::CompanyUpdateParams::Logo)) }
36
+ attr_reader :logo
37
+
36
38
  sig do
37
- returns(
38
- T.nilable(
39
- T.any(
40
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID,
41
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
42
- )
43
- )
44
- )
39
+ params(logo: T.nilable(WhopSDK::CompanyUpdateParams::Logo::OrHash)).void
45
40
  end
46
- attr_accessor :logo
41
+ attr_writer :logo
47
42
 
48
43
  # Whether Whop sends transactional emails to customers on behalf of this company.
49
44
  # Includes: order confirmations, payment failures, refund notifications, upcoming
@@ -59,21 +54,10 @@ module WhopSDK
59
54
  sig do
60
55
  params(
61
56
  banner_image:
62
- T.nilable(
63
- T.any(
64
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID::OrHash,
65
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID::OrHash
66
- )
67
- ),
57
+ T.nilable(WhopSDK::CompanyUpdateParams::BannerImage::OrHash),
68
58
  business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
69
59
  industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
70
- logo:
71
- T.nilable(
72
- T.any(
73
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID::OrHash,
74
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID::OrHash
75
- )
76
- ),
60
+ logo: T.nilable(WhopSDK::CompanyUpdateParams::Logo::OrHash),
77
61
  send_customer_emails: T.nilable(T::Boolean),
78
62
  title: T.nilable(String),
79
63
  request_options: WhopSDK::RequestOptions::OrHash
@@ -102,22 +86,10 @@ module WhopSDK
102
86
  sig do
103
87
  override.returns(
104
88
  {
105
- banner_image:
106
- T.nilable(
107
- T.any(
108
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
109
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID
110
- )
111
- ),
89
+ banner_image: T.nilable(WhopSDK::CompanyUpdateParams::BannerImage),
112
90
  business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
113
91
  industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
114
- logo:
115
- T.nilable(
116
- T.any(
117
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID,
118
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
119
- )
120
- ),
92
+ logo: T.nilable(WhopSDK::CompanyUpdateParams::Logo),
121
93
  send_customer_emails: T.nilable(T::Boolean),
122
94
  title: T.nilable(String),
123
95
  request_options: WhopSDK::RequestOptions
@@ -127,165 +99,55 @@ module WhopSDK
127
99
  def to_hash
128
100
  end
129
101
 
130
- # The banner image for the company in png or jpeg format
131
- module BannerImage
132
- extend WhopSDK::Internal::Type::Union
133
-
134
- Variants =
102
+ class BannerImage < WhopSDK::Internal::Type::BaseModel
103
+ OrHash =
135
104
  T.type_alias do
136
105
  T.any(
137
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
138
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID
106
+ WhopSDK::CompanyUpdateParams::BannerImage,
107
+ WhopSDK::Internal::AnyHash
139
108
  )
140
109
  end
141
110
 
142
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
143
- OrHash =
144
- T.type_alias do
145
- T.any(
146
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
147
- WhopSDK::Internal::AnyHash
148
- )
149
- end
150
-
151
- # This ID should be used the first time you upload an attachment. It is the ID of
152
- # the direct upload that was created when uploading the file to S3 via the
153
- # mediaDirectUpload mutation.
154
- sig { returns(String) }
155
- attr_accessor :direct_upload_id
156
-
157
- # Input for an attachment
158
- sig { params(direct_upload_id: String).returns(T.attached_class) }
159
- def self.new(
160
- # This ID should be used the first time you upload an attachment. It is the ID of
161
- # the direct upload that was created when uploading the file to S3 via the
162
- # mediaDirectUpload mutation.
163
- direct_upload_id:
164
- )
165
- end
166
-
167
- sig { override.returns({ direct_upload_id: String }) }
168
- def to_hash
169
- end
170
- end
171
-
172
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
173
- OrHash =
174
- T.type_alias do
175
- T.any(
176
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID,
177
- WhopSDK::Internal::AnyHash
178
- )
179
- end
180
-
181
- # The ID of an existing attachment object. Use this when updating a resource and
182
- # keeping a subset of the attachments. Don't use this unless you know what you're
183
- # doing.
184
- sig { returns(String) }
185
- attr_accessor :id
186
-
187
- # Input for an attachment
188
- sig { params(id: String).returns(T.attached_class) }
189
- def self.new(
190
- # The ID of an existing attachment object. Use this when updating a resource and
191
- # keeping a subset of the attachments. Don't use this unless you know what you're
192
- # doing.
193
- id:
194
- )
195
- end
111
+ # The ID of an existing file object.
112
+ sig { returns(String) }
113
+ attr_accessor :id
196
114
 
197
- sig { override.returns({ id: String }) }
198
- def to_hash
199
- end
115
+ # The banner image for the company in png or jpeg format
116
+ sig { params(id: String).returns(T.attached_class) }
117
+ def self.new(
118
+ # The ID of an existing file object.
119
+ id:
120
+ )
200
121
  end
201
122
 
202
- sig do
203
- override.returns(
204
- T::Array[WhopSDK::CompanyUpdateParams::BannerImage::Variants]
205
- )
206
- end
207
- def self.variants
123
+ sig { override.returns({ id: String }) }
124
+ def to_hash
208
125
  end
209
126
  end
210
127
 
211
- # The logo for the company in png, jpeg, or gif format
212
- module Logo
213
- extend WhopSDK::Internal::Type::Union
214
-
215
- Variants =
128
+ class Logo < WhopSDK::Internal::Type::BaseModel
129
+ OrHash =
216
130
  T.type_alias do
217
131
  T.any(
218
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID,
219
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
132
+ WhopSDK::CompanyUpdateParams::Logo,
133
+ WhopSDK::Internal::AnyHash
220
134
  )
221
135
  end
222
136
 
223
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
224
- OrHash =
225
- T.type_alias do
226
- T.any(
227
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID,
228
- WhopSDK::Internal::AnyHash
229
- )
230
- end
231
-
232
- # This ID should be used the first time you upload an attachment. It is the ID of
233
- # the direct upload that was created when uploading the file to S3 via the
234
- # mediaDirectUpload mutation.
235
- sig { returns(String) }
236
- attr_accessor :direct_upload_id
137
+ # The ID of an existing file object.
138
+ sig { returns(String) }
139
+ attr_accessor :id
237
140
 
238
- # Input for an attachment
239
- sig { params(direct_upload_id: String).returns(T.attached_class) }
240
- def self.new(
241
- # This ID should be used the first time you upload an attachment. It is the ID of
242
- # the direct upload that was created when uploading the file to S3 via the
243
- # mediaDirectUpload mutation.
244
- direct_upload_id:
245
- )
246
- end
247
-
248
- sig { override.returns({ direct_upload_id: String }) }
249
- def to_hash
250
- end
251
- end
252
-
253
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
254
- OrHash =
255
- T.type_alias do
256
- T.any(
257
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID,
258
- WhopSDK::Internal::AnyHash
259
- )
260
- end
261
-
262
- # The ID of an existing attachment object. Use this when updating a resource and
263
- # keeping a subset of the attachments. Don't use this unless you know what you're
264
- # doing.
265
- sig { returns(String) }
266
- attr_accessor :id
267
-
268
- # Input for an attachment
269
- sig { params(id: String).returns(T.attached_class) }
270
- def self.new(
271
- # The ID of an existing attachment object. Use this when updating a resource and
272
- # keeping a subset of the attachments. Don't use this unless you know what you're
273
- # doing.
274
- id:
275
- )
276
- end
277
-
278
- sig { override.returns({ id: String }) }
279
- def to_hash
280
- end
141
+ # The logo for the company in png, jpeg, or gif format
142
+ sig { params(id: String).returns(T.attached_class) }
143
+ def self.new(
144
+ # The ID of an existing file object.
145
+ id:
146
+ )
281
147
  end
282
148
 
283
- sig do
284
- override.returns(
285
- T::Array[WhopSDK::CompanyUpdateParams::Logo::Variants]
286
- )
287
- end
288
- def self.variants
149
+ sig { override.returns({ id: String }) }
150
+ def to_hash
289
151
  end
290
152
  end
291
153
  end
@@ -24,10 +24,6 @@ module WhopSDK
24
24
  sig { returns(T.nilable(T::Boolean)) }
25
25
  attr_accessor :certificate_after_completion_enabled
26
26
 
27
- # The cover image URL of the course
28
- sig { returns(T.nilable(String)) }
29
- attr_accessor :cover_image
30
-
31
27
  # The decimal order position of the course within its experience. If not provided,
32
28
  # it will be set to the next sequential order. Use fractional values (e.g., 1.5)
33
29
  # to place between existing courses.
@@ -44,17 +40,15 @@ module WhopSDK
44
40
  attr_accessor :tagline
45
41
 
46
42
  # The thumbnail for the course in png, jpeg, or gif format
43
+ sig { returns(T.nilable(WhopSDK::CourseCreateParams::Thumbnail)) }
44
+ attr_reader :thumbnail
45
+
47
46
  sig do
48
- returns(
49
- T.nilable(
50
- T.any(
51
- WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID,
52
- WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID
53
- )
54
- )
55
- )
47
+ params(
48
+ thumbnail: T.nilable(WhopSDK::CourseCreateParams::Thumbnail::OrHash)
49
+ ).void
56
50
  end
57
- attr_accessor :thumbnail
51
+ attr_writer :thumbnail
58
52
 
59
53
  # The available visibilities for a course. Determines how / whether a course is
60
54
  # visible to users.
@@ -66,17 +60,10 @@ module WhopSDK
66
60
  experience_id: String,
67
61
  title: String,
68
62
  certificate_after_completion_enabled: T.nilable(T::Boolean),
69
- cover_image: T.nilable(String),
70
63
  order: T.nilable(String),
71
64
  require_completing_lessons_in_order: T.nilable(T::Boolean),
72
65
  tagline: T.nilable(String),
73
- thumbnail:
74
- T.nilable(
75
- T.any(
76
- WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID::OrHash,
77
- WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID::OrHash
78
- )
79
- ),
66
+ thumbnail: T.nilable(WhopSDK::CourseCreateParams::Thumbnail::OrHash),
80
67
  visibility: T.nilable(WhopSDK::CourseVisibilities::OrSymbol),
81
68
  request_options: WhopSDK::RequestOptions::OrHash
82
69
  ).returns(T.attached_class)
@@ -89,8 +76,6 @@ module WhopSDK
89
76
  # Whether the course will award its students a PDF certificate after completing
90
77
  # all lessons
91
78
  certificate_after_completion_enabled: nil,
92
- # The cover image URL of the course
93
- cover_image: nil,
94
79
  # The decimal order position of the course within its experience. If not provided,
95
80
  # it will be set to the next sequential order. Use fractional values (e.g., 1.5)
96
81
  # to place between existing courses.
@@ -115,17 +100,10 @@ module WhopSDK
115
100
  experience_id: String,
116
101
  title: String,
117
102
  certificate_after_completion_enabled: T.nilable(T::Boolean),
118
- cover_image: T.nilable(String),
119
103
  order: T.nilable(String),
120
104
  require_completing_lessons_in_order: T.nilable(T::Boolean),
121
105
  tagline: T.nilable(String),
122
- thumbnail:
123
- T.nilable(
124
- T.any(
125
- WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID,
126
- WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID
127
- )
128
- ),
106
+ thumbnail: T.nilable(WhopSDK::CourseCreateParams::Thumbnail),
129
107
  visibility: T.nilable(WhopSDK::CourseVisibilities::OrSymbol),
130
108
  request_options: WhopSDK::RequestOptions
131
109
  }
@@ -134,84 +112,29 @@ module WhopSDK
134
112
  def to_hash
135
113
  end
136
114
 
137
- # The thumbnail for the course in png, jpeg, or gif format
138
- module Thumbnail
139
- extend WhopSDK::Internal::Type::Union
140
-
141
- Variants =
115
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
116
+ OrHash =
142
117
  T.type_alias do
143
118
  T.any(
144
- WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID,
145
- WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID
119
+ WhopSDK::CourseCreateParams::Thumbnail,
120
+ WhopSDK::Internal::AnyHash
146
121
  )
147
122
  end
148
123
 
149
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
150
- OrHash =
151
- T.type_alias do
152
- T.any(
153
- WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID,
154
- WhopSDK::Internal::AnyHash
155
- )
156
- end
157
-
158
- # This ID should be used the first time you upload an attachment. It is the ID of
159
- # the direct upload that was created when uploading the file to S3 via the
160
- # mediaDirectUpload mutation.
161
- sig { returns(String) }
162
- attr_accessor :direct_upload_id
163
-
164
- # Input for an attachment
165
- sig { params(direct_upload_id: String).returns(T.attached_class) }
166
- def self.new(
167
- # This ID should be used the first time you upload an attachment. It is the ID of
168
- # the direct upload that was created when uploading the file to S3 via the
169
- # mediaDirectUpload mutation.
170
- direct_upload_id:
171
- )
172
- end
124
+ # The ID of an existing file object.
125
+ sig { returns(String) }
126
+ attr_accessor :id
173
127
 
174
- sig { override.returns({ direct_upload_id: String }) }
175
- def to_hash
176
- end
177
- end
178
-
179
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
180
- OrHash =
181
- T.type_alias do
182
- T.any(
183
- WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID,
184
- WhopSDK::Internal::AnyHash
185
- )
186
- end
187
-
188
- # The ID of an existing attachment object. Use this when updating a resource and
189
- # keeping a subset of the attachments. Don't use this unless you know what you're
190
- # doing.
191
- sig { returns(String) }
192
- attr_accessor :id
193
-
194
- # Input for an attachment
195
- sig { params(id: String).returns(T.attached_class) }
196
- def self.new(
197
- # The ID of an existing attachment object. Use this when updating a resource and
198
- # keeping a subset of the attachments. Don't use this unless you know what you're
199
- # doing.
200
- id:
201
- )
202
- end
203
-
204
- sig { override.returns({ id: String }) }
205
- def to_hash
206
- end
128
+ # The thumbnail for the course in png, jpeg, or gif format
129
+ sig { params(id: String).returns(T.attached_class) }
130
+ def self.new(
131
+ # The ID of an existing file object.
132
+ id:
133
+ )
207
134
  end
208
135
 
209
- sig do
210
- override.returns(
211
- T::Array[WhopSDK::CourseCreateParams::Thumbnail::Variants]
212
- )
213
- end
214
- def self.variants
136
+ sig { override.returns({ id: String }) }
137
+ def to_hash
215
138
  end
216
139
  end
217
140
  end
@@ -36,17 +36,16 @@ module WhopSDK
36
36
  attr_accessor :embed_type
37
37
 
38
38
  # The thumbnail for the lesson in png, jpeg, or gif format
39
+ sig { returns(T.nilable(WhopSDK::CourseLessonCreateParams::Thumbnail)) }
40
+ attr_reader :thumbnail
41
+
39
42
  sig do
40
- returns(
41
- T.nilable(
42
- T.any(
43
- WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID,
44
- WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID
45
- )
46
- )
47
- )
43
+ params(
44
+ thumbnail:
45
+ T.nilable(WhopSDK::CourseLessonCreateParams::Thumbnail::OrHash)
46
+ ).void
48
47
  end
49
- attr_accessor :thumbnail
48
+ attr_writer :thumbnail
50
49
 
51
50
  # The title of the lesson
52
51
  sig { returns(T.nilable(String)) }
@@ -61,12 +60,7 @@ module WhopSDK
61
60
  embed_id: T.nilable(String),
62
61
  embed_type: T.nilable(WhopSDK::EmbedType::OrSymbol),
63
62
  thumbnail:
64
- T.nilable(
65
- T.any(
66
- WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID::OrHash,
67
- WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID::OrHash
68
- )
69
- ),
63
+ T.nilable(WhopSDK::CourseLessonCreateParams::Thumbnail::OrHash),
70
64
  title: T.nilable(String),
71
65
  request_options: WhopSDK::RequestOptions::OrHash
72
66
  ).returns(T.attached_class)
@@ -101,13 +95,7 @@ module WhopSDK
101
95
  days_from_course_start_until_unlock: T.nilable(Integer),
102
96
  embed_id: T.nilable(String),
103
97
  embed_type: T.nilable(WhopSDK::EmbedType::OrSymbol),
104
- thumbnail:
105
- T.nilable(
106
- T.any(
107
- WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID,
108
- WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID
109
- )
110
- ),
98
+ thumbnail: T.nilable(WhopSDK::CourseLessonCreateParams::Thumbnail),
111
99
  title: T.nilable(String),
112
100
  request_options: WhopSDK::RequestOptions
113
101
  }
@@ -116,84 +104,29 @@ module WhopSDK
116
104
  def to_hash
117
105
  end
118
106
 
119
- # The thumbnail for the lesson in png, jpeg, or gif format
120
- module Thumbnail
121
- extend WhopSDK::Internal::Type::Union
122
-
123
- Variants =
107
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
108
+ OrHash =
124
109
  T.type_alias do
125
110
  T.any(
126
- WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID,
127
- WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID
111
+ WhopSDK::CourseLessonCreateParams::Thumbnail,
112
+ WhopSDK::Internal::AnyHash
128
113
  )
129
114
  end
130
115
 
131
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
132
- OrHash =
133
- T.type_alias do
134
- T.any(
135
- WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID,
136
- WhopSDK::Internal::AnyHash
137
- )
138
- end
139
-
140
- # This ID should be used the first time you upload an attachment. It is the ID of
141
- # the direct upload that was created when uploading the file to S3 via the
142
- # mediaDirectUpload mutation.
143
- sig { returns(String) }
144
- attr_accessor :direct_upload_id
145
-
146
- # Input for an attachment
147
- sig { params(direct_upload_id: String).returns(T.attached_class) }
148
- def self.new(
149
- # This ID should be used the first time you upload an attachment. It is the ID of
150
- # the direct upload that was created when uploading the file to S3 via the
151
- # mediaDirectUpload mutation.
152
- direct_upload_id:
153
- )
154
- end
155
-
156
- sig { override.returns({ direct_upload_id: String }) }
157
- def to_hash
158
- end
159
- end
160
-
161
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
162
- OrHash =
163
- T.type_alias do
164
- T.any(
165
- WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID,
166
- WhopSDK::Internal::AnyHash
167
- )
168
- end
169
-
170
- # The ID of an existing attachment object. Use this when updating a resource and
171
- # keeping a subset of the attachments. Don't use this unless you know what you're
172
- # doing.
173
- sig { returns(String) }
174
- attr_accessor :id
175
-
176
- # Input for an attachment
177
- sig { params(id: String).returns(T.attached_class) }
178
- def self.new(
179
- # The ID of an existing attachment object. Use this when updating a resource and
180
- # keeping a subset of the attachments. Don't use this unless you know what you're
181
- # doing.
182
- id:
183
- )
184
- end
116
+ # The ID of an existing file object.
117
+ sig { returns(String) }
118
+ attr_accessor :id
185
119
 
186
- sig { override.returns({ id: String }) }
187
- def to_hash
188
- end
120
+ # The thumbnail for the lesson in png, jpeg, or gif format
121
+ sig { params(id: String).returns(T.attached_class) }
122
+ def self.new(
123
+ # The ID of an existing file object.
124
+ id:
125
+ )
189
126
  end
190
127
 
191
- sig do
192
- override.returns(
193
- T::Array[WhopSDK::CourseLessonCreateParams::Thumbnail::Variants]
194
- )
195
- end
196
- def self.variants
128
+ sig { override.returns({ id: String }) }
129
+ def to_hash
197
130
  end
198
131
  end
199
132
  end