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
@@ -0,0 +1,68 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_token_transaction_list_params =
4
+ {
5
+ company_id: String,
6
+ after: String?,
7
+ before: String?,
8
+ first: Integer?,
9
+ last: Integer?,
10
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionListParams::transaction_type?,
11
+ user_id: String?
12
+ }
13
+ & WhopSDK::Internal::Type::request_parameters
14
+
15
+ class CompanyTokenTransactionListParams < WhopSDK::Internal::Type::BaseModel
16
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
17
+ include WhopSDK::Internal::Type::RequestParameters
18
+
19
+ attr_accessor company_id: String
20
+
21
+ attr_accessor after: String?
22
+
23
+ attr_accessor before: String?
24
+
25
+ attr_accessor first: Integer?
26
+
27
+ attr_accessor last: Integer?
28
+
29
+ attr_accessor transaction_type: WhopSDK::Models::CompanyTokenTransactionListParams::transaction_type?
30
+
31
+ attr_accessor user_id: String?
32
+
33
+ def initialize: (
34
+ company_id: String,
35
+ ?after: String?,
36
+ ?before: String?,
37
+ ?first: Integer?,
38
+ ?last: Integer?,
39
+ ?transaction_type: WhopSDK::Models::CompanyTokenTransactionListParams::transaction_type?,
40
+ ?user_id: String?,
41
+ ?request_options: WhopSDK::request_opts
42
+ ) -> void
43
+
44
+ def to_hash: -> {
45
+ company_id: String,
46
+ after: String?,
47
+ before: String?,
48
+ first: Integer?,
49
+ last: Integer?,
50
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionListParams::transaction_type?,
51
+ user_id: String?,
52
+ request_options: WhopSDK::RequestOptions
53
+ }
54
+
55
+ type transaction_type = :add | :subtract | :transfer
56
+
57
+ module TransactionType
58
+ extend WhopSDK::Internal::Type::Enum
59
+
60
+ ADD: :add
61
+ SUBTRACT: :subtract
62
+ TRANSFER: :transfer
63
+
64
+ def self?.values: -> ::Array[WhopSDK::Models::CompanyTokenTransactionListParams::transaction_type]
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,115 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_token_transaction_list_response =
4
+ {
5
+ id: String,
6
+ amount: Float,
7
+ company: WhopSDK::Models::CompanyTokenTransactionListResponse::Company,
8
+ created_at: Time,
9
+ description: String?,
10
+ idempotency_key: String?,
11
+ linked_transaction_id: String?,
12
+ member: WhopSDK::Models::CompanyTokenTransactionListResponse::Member,
13
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionListResponse::transaction_type,
14
+ user: WhopSDK::Models::CompanyTokenTransactionListResponse::User
15
+ }
16
+
17
+ class CompanyTokenTransactionListResponse < WhopSDK::Internal::Type::BaseModel
18
+ attr_accessor id: String
19
+
20
+ attr_accessor amount: Float
21
+
22
+ attr_accessor company: WhopSDK::Models::CompanyTokenTransactionListResponse::Company
23
+
24
+ attr_accessor created_at: Time
25
+
26
+ attr_accessor description: String?
27
+
28
+ attr_accessor idempotency_key: String?
29
+
30
+ attr_accessor linked_transaction_id: String?
31
+
32
+ attr_accessor member: WhopSDK::Models::CompanyTokenTransactionListResponse::Member
33
+
34
+ attr_accessor transaction_type: WhopSDK::Models::CompanyTokenTransactionListResponse::transaction_type
35
+
36
+ attr_accessor user: WhopSDK::Models::CompanyTokenTransactionListResponse::User
37
+
38
+ def initialize: (
39
+ id: String,
40
+ amount: Float,
41
+ company: WhopSDK::Models::CompanyTokenTransactionListResponse::Company,
42
+ created_at: Time,
43
+ description: String?,
44
+ idempotency_key: String?,
45
+ linked_transaction_id: String?,
46
+ member: WhopSDK::Models::CompanyTokenTransactionListResponse::Member,
47
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionListResponse::transaction_type,
48
+ user: WhopSDK::Models::CompanyTokenTransactionListResponse::User
49
+ ) -> void
50
+
51
+ def to_hash: -> {
52
+ id: String,
53
+ amount: Float,
54
+ company: WhopSDK::Models::CompanyTokenTransactionListResponse::Company,
55
+ created_at: Time,
56
+ description: String?,
57
+ idempotency_key: String?,
58
+ linked_transaction_id: String?,
59
+ member: WhopSDK::Models::CompanyTokenTransactionListResponse::Member,
60
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionListResponse::transaction_type,
61
+ user: WhopSDK::Models::CompanyTokenTransactionListResponse::User
62
+ }
63
+
64
+ type company = { id: String, route: String, title: String }
65
+
66
+ class Company < WhopSDK::Internal::Type::BaseModel
67
+ attr_accessor id: String
68
+
69
+ attr_accessor route: String
70
+
71
+ attr_accessor title: String
72
+
73
+ def initialize: (id: String, route: String, title: String) -> void
74
+
75
+ def to_hash: -> { id: String, route: String, title: String }
76
+ end
77
+
78
+ type member = { id: String }
79
+
80
+ class Member < WhopSDK::Internal::Type::BaseModel
81
+ attr_accessor id: String
82
+
83
+ def initialize: (id: String) -> void
84
+
85
+ def to_hash: -> { id: String }
86
+ end
87
+
88
+ type transaction_type = :add | :subtract | :transfer
89
+
90
+ module TransactionType
91
+ extend WhopSDK::Internal::Type::Enum
92
+
93
+ ADD: :add
94
+ SUBTRACT: :subtract
95
+ TRANSFER: :transfer
96
+
97
+ def self?.values: -> ::Array[WhopSDK::Models::CompanyTokenTransactionListResponse::transaction_type]
98
+ end
99
+
100
+ type user = { id: String, name: String?, username: String }
101
+
102
+ class User < WhopSDK::Internal::Type::BaseModel
103
+ attr_accessor id: String
104
+
105
+ attr_accessor name: String?
106
+
107
+ attr_accessor username: String
108
+
109
+ def initialize: (id: String, name: String?, username: String) -> void
110
+
111
+ def to_hash: -> { id: String, name: String?, username: String }
112
+ end
113
+ end
114
+ end
115
+ end
@@ -0,0 +1,15 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_token_transaction_retrieve_params =
4
+ { } & WhopSDK::Internal::Type::request_parameters
5
+
6
+ class CompanyTokenTransactionRetrieveParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ def initialize: (?request_options: WhopSDK::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: WhopSDK::RequestOptions }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,115 @@
1
+ module WhopSDK
2
+ module Models
3
+ type company_token_transaction_retrieve_response =
4
+ {
5
+ id: String,
6
+ amount: Float,
7
+ company: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Company,
8
+ created_at: Time,
9
+ description: String?,
10
+ idempotency_key: String?,
11
+ linked_transaction_id: String?,
12
+ member: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Member,
13
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::transaction_type,
14
+ user: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::User
15
+ }
16
+
17
+ class CompanyTokenTransactionRetrieveResponse < WhopSDK::Internal::Type::BaseModel
18
+ attr_accessor id: String
19
+
20
+ attr_accessor amount: Float
21
+
22
+ attr_accessor company: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Company
23
+
24
+ attr_accessor created_at: Time
25
+
26
+ attr_accessor description: String?
27
+
28
+ attr_accessor idempotency_key: String?
29
+
30
+ attr_accessor linked_transaction_id: String?
31
+
32
+ attr_accessor member: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Member
33
+
34
+ attr_accessor transaction_type: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::transaction_type
35
+
36
+ attr_accessor user: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::User
37
+
38
+ def initialize: (
39
+ id: String,
40
+ amount: Float,
41
+ company: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Company,
42
+ created_at: Time,
43
+ description: String?,
44
+ idempotency_key: String?,
45
+ linked_transaction_id: String?,
46
+ member: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Member,
47
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::transaction_type,
48
+ user: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::User
49
+ ) -> void
50
+
51
+ def to_hash: -> {
52
+ id: String,
53
+ amount: Float,
54
+ company: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Company,
55
+ created_at: Time,
56
+ description: String?,
57
+ idempotency_key: String?,
58
+ linked_transaction_id: String?,
59
+ member: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::Member,
60
+ transaction_type: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::transaction_type,
61
+ user: WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::User
62
+ }
63
+
64
+ type company = { id: String, route: String, title: String }
65
+
66
+ class Company < WhopSDK::Internal::Type::BaseModel
67
+ attr_accessor id: String
68
+
69
+ attr_accessor route: String
70
+
71
+ attr_accessor title: String
72
+
73
+ def initialize: (id: String, route: String, title: String) -> void
74
+
75
+ def to_hash: -> { id: String, route: String, title: String }
76
+ end
77
+
78
+ type member = { id: String }
79
+
80
+ class Member < WhopSDK::Internal::Type::BaseModel
81
+ attr_accessor id: String
82
+
83
+ def initialize: (id: String) -> void
84
+
85
+ def to_hash: -> { id: String }
86
+ end
87
+
88
+ type transaction_type = :add | :subtract | :transfer
89
+
90
+ module TransactionType
91
+ extend WhopSDK::Internal::Type::Enum
92
+
93
+ ADD: :add
94
+ SUBTRACT: :subtract
95
+ TRANSFER: :transfer
96
+
97
+ def self?.values: -> ::Array[WhopSDK::Models::CompanyTokenTransactionRetrieveResponse::transaction_type]
98
+ end
99
+
100
+ type user = { id: String, name: String?, username: String }
101
+
102
+ class User < WhopSDK::Internal::Type::BaseModel
103
+ attr_accessor id: String
104
+
105
+ attr_accessor name: String?
106
+
107
+ attr_accessor username: String
108
+
109
+ def initialize: (id: String, name: String?, username: String) -> void
110
+
111
+ def to_hash: -> { id: String, name: String?, username: String }
112
+ end
113
+ end
114
+ end
115
+ end
@@ -2,10 +2,10 @@ module WhopSDK
2
2
  module Models
3
3
  type company_update_params =
4
4
  {
5
- banner_image: WhopSDK::Models::CompanyUpdateParams::banner_image?,
5
+ banner_image: WhopSDK::CompanyUpdateParams::BannerImage?,
6
6
  business_type: WhopSDK::Models::business_types?,
7
7
  industry_type: WhopSDK::Models::industry_types?,
8
- logo: WhopSDK::Models::CompanyUpdateParams::logo?,
8
+ logo: WhopSDK::CompanyUpdateParams::Logo?,
9
9
  send_customer_emails: bool?,
10
10
  title: String?
11
11
  }
@@ -15,98 +15,56 @@ module WhopSDK
15
15
  extend WhopSDK::Internal::Type::RequestParameters::Converter
16
16
  include WhopSDK::Internal::Type::RequestParameters
17
17
 
18
- attr_accessor banner_image: WhopSDK::Models::CompanyUpdateParams::banner_image?
18
+ attr_accessor banner_image: WhopSDK::CompanyUpdateParams::BannerImage?
19
19
 
20
20
  attr_accessor business_type: WhopSDK::Models::business_types?
21
21
 
22
22
  attr_accessor industry_type: WhopSDK::Models::industry_types?
23
23
 
24
- attr_accessor logo: WhopSDK::Models::CompanyUpdateParams::logo?
24
+ attr_accessor logo: WhopSDK::CompanyUpdateParams::Logo?
25
25
 
26
26
  attr_accessor send_customer_emails: bool?
27
27
 
28
28
  attr_accessor title: String?
29
29
 
30
30
  def initialize: (
31
- ?banner_image: WhopSDK::Models::CompanyUpdateParams::banner_image?,
31
+ ?banner_image: WhopSDK::CompanyUpdateParams::BannerImage?,
32
32
  ?business_type: WhopSDK::Models::business_types?,
33
33
  ?industry_type: WhopSDK::Models::industry_types?,
34
- ?logo: WhopSDK::Models::CompanyUpdateParams::logo?,
34
+ ?logo: WhopSDK::CompanyUpdateParams::Logo?,
35
35
  ?send_customer_emails: bool?,
36
36
  ?title: String?,
37
37
  ?request_options: WhopSDK::request_opts
38
38
  ) -> void
39
39
 
40
40
  def to_hash: -> {
41
- banner_image: WhopSDK::Models::CompanyUpdateParams::banner_image?,
41
+ banner_image: WhopSDK::CompanyUpdateParams::BannerImage?,
42
42
  business_type: WhopSDK::Models::business_types?,
43
43
  industry_type: WhopSDK::Models::industry_types?,
44
- logo: WhopSDK::Models::CompanyUpdateParams::logo?,
44
+ logo: WhopSDK::CompanyUpdateParams::Logo?,
45
45
  send_customer_emails: bool?,
46
46
  title: String?,
47
47
  request_options: WhopSDK::RequestOptions
48
48
  }
49
49
 
50
- type banner_image =
51
- WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID
52
- | WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID
50
+ type banner_image = { id: String }
53
51
 
54
- module BannerImage
55
- extend WhopSDK::Internal::Type::Union
52
+ class BannerImage < WhopSDK::Internal::Type::BaseModel
53
+ attr_accessor id: String
56
54
 
57
- type attachment_input_with_direct_upload_id =
58
- { direct_upload_id: String }
55
+ def initialize: (id: String) -> void
59
56
 
60
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
61
- attr_accessor direct_upload_id: String
62
-
63
- def initialize: (direct_upload_id: String) -> void
64
-
65
- def to_hash: -> { direct_upload_id: String }
66
- end
67
-
68
- type attachment_input_with_id = { id: String }
69
-
70
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
71
- attr_accessor id: String
72
-
73
- def initialize: (id: String) -> void
74
-
75
- def to_hash: -> { id: String }
76
- end
77
-
78
- def self?.variants: -> ::Array[WhopSDK::Models::CompanyUpdateParams::banner_image]
57
+ def to_hash: -> { id: String }
79
58
  end
80
59
 
81
- type logo =
82
- WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID
83
- | WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
84
-
85
- module Logo
86
- extend WhopSDK::Internal::Type::Union
87
-
88
- type attachment_input_with_direct_upload_id =
89
- { direct_upload_id: String }
90
-
91
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
92
- attr_accessor direct_upload_id: String
93
-
94
- def initialize: (direct_upload_id: String) -> void
95
-
96
- def to_hash: -> { direct_upload_id: String }
97
- end
98
-
99
- type attachment_input_with_id = { id: String }
100
-
101
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
102
- attr_accessor id: String
60
+ type logo = { id: String }
103
61
 
104
- def initialize: (id: String) -> void
62
+ class Logo < WhopSDK::Internal::Type::BaseModel
63
+ attr_accessor id: String
105
64
 
106
- def to_hash: -> { id: String }
107
- end
65
+ def initialize: (id: String) -> void
108
66
 
109
- def self?.variants: -> ::Array[WhopSDK::Models::CompanyUpdateParams::logo]
67
+ def to_hash: -> { id: String }
110
68
  end
111
69
  end
112
70
  end
@@ -5,11 +5,10 @@ module WhopSDK
5
5
  experience_id: String,
6
6
  title: String,
7
7
  certificate_after_completion_enabled: bool?,
8
- cover_image: String?,
9
8
  order: String?,
10
9
  require_completing_lessons_in_order: bool?,
11
10
  tagline: String?,
12
- thumbnail: WhopSDK::Models::CourseCreateParams::thumbnail?,
11
+ thumbnail: WhopSDK::CourseCreateParams::Thumbnail?,
13
12
  visibility: WhopSDK::Models::course_visibilities?
14
13
  }
15
14
  & WhopSDK::Internal::Type::request_parameters
@@ -24,15 +23,13 @@ module WhopSDK
24
23
 
25
24
  attr_accessor certificate_after_completion_enabled: bool?
26
25
 
27
- attr_accessor cover_image: String?
28
-
29
26
  attr_accessor order: String?
30
27
 
31
28
  attr_accessor require_completing_lessons_in_order: bool?
32
29
 
33
30
  attr_accessor tagline: String?
34
31
 
35
- attr_accessor thumbnail: WhopSDK::Models::CourseCreateParams::thumbnail?
32
+ attr_accessor thumbnail: WhopSDK::CourseCreateParams::Thumbnail?
36
33
 
37
34
  attr_accessor visibility: WhopSDK::Models::course_visibilities?
38
35
 
@@ -40,11 +37,10 @@ module WhopSDK
40
37
  experience_id: String,
41
38
  title: String,
42
39
  ?certificate_after_completion_enabled: bool?,
43
- ?cover_image: String?,
44
40
  ?order: String?,
45
41
  ?require_completing_lessons_in_order: bool?,
46
42
  ?tagline: String?,
47
- ?thumbnail: WhopSDK::Models::CourseCreateParams::thumbnail?,
43
+ ?thumbnail: WhopSDK::CourseCreateParams::Thumbnail?,
48
44
  ?visibility: WhopSDK::Models::course_visibilities?,
49
45
  ?request_options: WhopSDK::request_opts
50
46
  ) -> void
@@ -53,44 +49,22 @@ module WhopSDK
53
49
  experience_id: String,
54
50
  title: String,
55
51
  certificate_after_completion_enabled: bool?,
56
- cover_image: String?,
57
52
  order: String?,
58
53
  require_completing_lessons_in_order: bool?,
59
54
  tagline: String?,
60
- thumbnail: WhopSDK::Models::CourseCreateParams::thumbnail?,
55
+ thumbnail: WhopSDK::CourseCreateParams::Thumbnail?,
61
56
  visibility: WhopSDK::Models::course_visibilities?,
62
57
  request_options: WhopSDK::RequestOptions
63
58
  }
64
59
 
65
- type thumbnail =
66
- WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID
67
- | WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID
68
-
69
- module Thumbnail
70
- extend WhopSDK::Internal::Type::Union
71
-
72
- type attachment_input_with_direct_upload_id =
73
- { direct_upload_id: String }
74
-
75
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
76
- attr_accessor direct_upload_id: String
77
-
78
- def initialize: (direct_upload_id: String) -> void
79
-
80
- def to_hash: -> { direct_upload_id: String }
81
- end
82
-
83
- type attachment_input_with_id = { id: String }
84
-
85
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
86
- attr_accessor id: String
60
+ type thumbnail = { id: String }
87
61
 
88
- def initialize: (id: String) -> void
62
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
63
+ attr_accessor id: String
89
64
 
90
- def to_hash: -> { id: String }
91
- end
65
+ def initialize: (id: String) -> void
92
66
 
93
- def self?.variants: -> ::Array[WhopSDK::Models::CourseCreateParams::thumbnail]
67
+ def to_hash: -> { id: String }
94
68
  end
95
69
  end
96
70
  end
@@ -8,7 +8,7 @@ module WhopSDK
8
8
  days_from_course_start_until_unlock: Integer?,
9
9
  embed_id: String?,
10
10
  embed_type: WhopSDK::Models::embed_type?,
11
- thumbnail: WhopSDK::Models::CourseLessonCreateParams::thumbnail?,
11
+ thumbnail: WhopSDK::CourseLessonCreateParams::Thumbnail?,
12
12
  title: String?
13
13
  }
14
14
  & WhopSDK::Internal::Type::request_parameters
@@ -29,7 +29,7 @@ module WhopSDK
29
29
 
30
30
  attr_accessor embed_type: WhopSDK::Models::embed_type?
31
31
 
32
- attr_accessor thumbnail: WhopSDK::Models::CourseLessonCreateParams::thumbnail?
32
+ attr_accessor thumbnail: WhopSDK::CourseLessonCreateParams::Thumbnail?
33
33
 
34
34
  attr_accessor title: String?
35
35
 
@@ -40,7 +40,7 @@ module WhopSDK
40
40
  ?days_from_course_start_until_unlock: Integer?,
41
41
  ?embed_id: String?,
42
42
  ?embed_type: WhopSDK::Models::embed_type?,
43
- ?thumbnail: WhopSDK::Models::CourseLessonCreateParams::thumbnail?,
43
+ ?thumbnail: WhopSDK::CourseLessonCreateParams::Thumbnail?,
44
44
  ?title: String?,
45
45
  ?request_options: WhopSDK::request_opts
46
46
  ) -> void
@@ -52,40 +52,19 @@ module WhopSDK
52
52
  days_from_course_start_until_unlock: Integer?,
53
53
  embed_id: String?,
54
54
  embed_type: WhopSDK::Models::embed_type?,
55
- thumbnail: WhopSDK::Models::CourseLessonCreateParams::thumbnail?,
55
+ thumbnail: WhopSDK::CourseLessonCreateParams::Thumbnail?,
56
56
  title: String?,
57
57
  request_options: WhopSDK::RequestOptions
58
58
  }
59
59
 
60
- type thumbnail =
61
- WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID
62
- | WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID
60
+ type thumbnail = { id: String }
63
61
 
64
- module Thumbnail
65
- extend WhopSDK::Internal::Type::Union
62
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
63
+ attr_accessor id: String
66
64
 
67
- type attachment_input_with_direct_upload_id =
68
- { direct_upload_id: String }
65
+ def initialize: (id: String) -> void
69
66
 
70
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
71
- attr_accessor direct_upload_id: String
72
-
73
- def initialize: (direct_upload_id: String) -> void
74
-
75
- def to_hash: -> { direct_upload_id: String }
76
- end
77
-
78
- type attachment_input_with_id = { id: String }
79
-
80
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
81
- attr_accessor id: String
82
-
83
- def initialize: (id: String) -> void
84
-
85
- def to_hash: -> { id: String }
86
- end
87
-
88
- def self?.variants: -> ::Array[WhopSDK::Models::CourseLessonCreateParams::thumbnail]
67
+ def to_hash: -> { id: String }
89
68
  end
90
69
  end
91
70
  end