whop_sdk 0.0.24 → 0.0.26

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 (283) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -0
  3. data/README.md +3 -3
  4. data/lib/whop_sdk/client.rb +16 -0
  5. data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +1 -1
  6. data/lib/whop_sdk/models/ai_chat.rb +89 -0
  7. data/lib/whop_sdk/models/ai_chat_create_params.rb +22 -0
  8. data/lib/whop_sdk/models/ai_chat_delete_params.rb +14 -0
  9. data/lib/whop_sdk/models/ai_chat_delete_response.rb +8 -0
  10. data/lib/whop_sdk/models/ai_chat_list_params.rb +46 -0
  11. data/lib/whop_sdk/models/ai_chat_list_response.rb +89 -0
  12. data/lib/whop_sdk/models/ai_chat_retrieve_params.rb +14 -0
  13. data/lib/whop_sdk/models/ai_chat_update_params.rb +22 -0
  14. data/lib/whop_sdk/models/api_version.rb +17 -0
  15. data/lib/whop_sdk/models/app_list_params.rb +1 -0
  16. data/lib/whop_sdk/models/authorized_user_list_params.rb +9 -9
  17. data/lib/whop_sdk/models/authorized_user_list_response.rb +31 -1
  18. data/lib/whop_sdk/models/authorized_user_retrieve_response.rb +31 -1
  19. data/lib/whop_sdk/models/bot_token_transaction_types.rb +17 -0
  20. data/lib/whop_sdk/models/cancel_options.rb +22 -0
  21. data/lib/whop_sdk/models/company_token_transaction.rb +165 -0
  22. data/lib/whop_sdk/models/company_token_transaction_create_params.rb +69 -0
  23. data/lib/whop_sdk/models/company_token_transaction_list_params.rb +70 -0
  24. data/lib/whop_sdk/models/company_token_transaction_list_response.rb +165 -0
  25. data/lib/whop_sdk/models/company_token_transaction_retrieve_params.rb +14 -0
  26. data/lib/whop_sdk/models/dm_channel.rb +43 -0
  27. data/lib/whop_sdk/models/dm_channel_create_params.rb +38 -0
  28. data/lib/whop_sdk/models/dm_channel_delete_params.rb +14 -0
  29. data/lib/whop_sdk/models/dm_channel_delete_response.rb +8 -0
  30. data/lib/whop_sdk/models/dm_channel_list_params.rb +54 -0
  31. data/lib/whop_sdk/models/dm_channel_list_response.rb +43 -0
  32. data/lib/whop_sdk/models/dm_channel_retrieve_params.rb +14 -0
  33. data/lib/whop_sdk/models/dm_channel_update_params.rb +22 -0
  34. data/lib/whop_sdk/models/dm_feed_member_notification_preferences.rb +17 -0
  35. data/lib/whop_sdk/models/dm_feed_member_statuses.rb +19 -0
  36. data/lib/whop_sdk/models/dm_member.rb +63 -0
  37. data/lib/whop_sdk/models/dm_member_create_params.rb +30 -0
  38. data/lib/whop_sdk/models/dm_member_delete_params.rb +14 -0
  39. data/lib/whop_sdk/models/dm_member_delete_response.rb +8 -0
  40. data/lib/whop_sdk/models/dm_member_list_params.rb +54 -0
  41. data/lib/whop_sdk/models/dm_member_list_response.rb +55 -0
  42. data/lib/whop_sdk/models/dm_member_retrieve_params.rb +14 -0
  43. data/lib/whop_sdk/models/dm_member_update_params.rb +30 -0
  44. data/lib/whop_sdk/models/file_create_response.rb +3 -18
  45. data/lib/whop_sdk/models/file_retrieve_response.rb +3 -18
  46. data/lib/whop_sdk/models/{lead_create_response.rb → lead.rb} +13 -13
  47. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +6 -63
  48. data/lib/whop_sdk/models/member_list_params.rb +9 -9
  49. data/lib/whop_sdk/models/membership.rb +3 -22
  50. data/lib/whop_sdk/models/membership_list_params.rb +3 -20
  51. data/lib/whop_sdk/models/membership_list_response.rb +3 -22
  52. data/lib/whop_sdk/models/message_create_params.rb +9 -1
  53. data/lib/whop_sdk/models/message_delete_params.rb +14 -0
  54. data/lib/whop_sdk/models/message_delete_response.rb +8 -0
  55. data/lib/whop_sdk/models/payment.rb +63 -1
  56. data/lib/whop_sdk/models/payment_list_response.rb +63 -1
  57. data/lib/whop_sdk/models/payment_method_types.rb +1 -0
  58. data/lib/whop_sdk/models/payout_destination_category.rb +20 -0
  59. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +3 -20
  60. data/lib/whop_sdk/models/payout_method_list_response.rb +3 -20
  61. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +3 -20
  62. data/lib/whop_sdk/models/reaction_create_params.rb +10 -1
  63. data/lib/whop_sdk/models/reaction_delete_params.rb +22 -0
  64. data/lib/whop_sdk/models/reaction_delete_response.rb +8 -0
  65. data/lib/whop_sdk/models/upload_status.rb +18 -0
  66. data/lib/whop_sdk/models/verification_error_code.rb +33 -0
  67. data/lib/whop_sdk/models/verification_retrieve_response.rb +6 -62
  68. data/lib/whop_sdk/models/verification_status.rb +27 -0
  69. data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +6 -62
  70. data/lib/whop_sdk/models/webhook.rb +88 -0
  71. data/lib/whop_sdk/models/webhook_create_params.rb +6 -56
  72. data/lib/whop_sdk/models/webhook_create_response.rb +9 -97
  73. data/lib/whop_sdk/models/webhook_event.rb +41 -0
  74. data/lib/whop_sdk/models/webhook_list_response.rb +6 -57
  75. data/lib/whop_sdk/models/webhook_update_params.rb +6 -56
  76. data/lib/whop_sdk/models/{withdrawal_create_response.rb → withdrawal.rb} +15 -15
  77. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +3 -267
  78. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +3 -267
  79. data/lib/whop_sdk/models.rb +74 -0
  80. data/lib/whop_sdk/resources/ai_chats.rb +141 -0
  81. data/lib/whop_sdk/resources/authorized_users.rb +4 -4
  82. data/lib/whop_sdk/resources/company_token_transactions.rb +121 -0
  83. data/lib/whop_sdk/resources/dm_channels.rb +151 -0
  84. data/lib/whop_sdk/resources/dm_members.rb +155 -0
  85. data/lib/whop_sdk/resources/leads.rb +6 -12
  86. data/lib/whop_sdk/resources/members.rb +4 -4
  87. data/lib/whop_sdk/resources/memberships.rb +1 -1
  88. data/lib/whop_sdk/resources/messages.rb +27 -1
  89. data/lib/whop_sdk/resources/reactions.rb +34 -1
  90. data/lib/whop_sdk/resources/webhooks.rb +8 -8
  91. data/lib/whop_sdk/resources/withdrawals.rb +4 -4
  92. data/lib/whop_sdk/version.rb +1 -1
  93. data/lib/whop_sdk.rb +50 -7
  94. data/rbi/whop_sdk/client.rbi +12 -0
  95. data/rbi/whop_sdk/models/ai_chat.rbi +118 -0
  96. data/rbi/whop_sdk/models/ai_chat_create_params.rbi +40 -0
  97. data/rbi/whop_sdk/models/ai_chat_delete_params.rbi +27 -0
  98. data/rbi/whop_sdk/models/ai_chat_delete_response.rbi +7 -0
  99. data/rbi/whop_sdk/models/ai_chat_list_params.rbi +67 -0
  100. data/rbi/whop_sdk/models/ai_chat_list_response.rbi +125 -0
  101. data/rbi/whop_sdk/models/ai_chat_retrieve_params.rbi +27 -0
  102. data/rbi/whop_sdk/models/ai_chat_update_params.rbi +40 -0
  103. data/rbi/whop_sdk/models/api_version.rbi +21 -0
  104. data/rbi/whop_sdk/models/app_list_params.rbi +2 -0
  105. data/rbi/whop_sdk/models/authorized_user_list_params.rbi +8 -8
  106. data/rbi/whop_sdk/models/authorized_user_list_response.rbi +47 -0
  107. data/rbi/whop_sdk/models/authorized_user_retrieve_response.rbi +49 -0
  108. data/rbi/whop_sdk/models/bot_token_transaction_types.rbi +28 -0
  109. data/rbi/whop_sdk/models/cancel_options.rbi +30 -0
  110. data/rbi/whop_sdk/models/company_token_transaction.rbi +237 -0
  111. data/rbi/whop_sdk/models/company_token_transaction_create_params.rbi +92 -0
  112. data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +96 -0
  113. data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +262 -0
  114. data/rbi/whop_sdk/models/company_token_transaction_retrieve_params.rbi +30 -0
  115. data/rbi/whop_sdk/models/dm_channel.rbi +60 -0
  116. data/rbi/whop_sdk/models/dm_channel_create_params.rbi +59 -0
  117. data/rbi/whop_sdk/models/dm_channel_delete_params.rbi +27 -0
  118. data/rbi/whop_sdk/models/dm_channel_delete_response.rbi +8 -0
  119. data/rbi/whop_sdk/models/dm_channel_list_params.rbi +75 -0
  120. data/rbi/whop_sdk/models/dm_channel_list_response.rbi +65 -0
  121. data/rbi/whop_sdk/models/dm_channel_retrieve_params.rbi +27 -0
  122. data/rbi/whop_sdk/models/dm_channel_update_params.rbi +43 -0
  123. data/rbi/whop_sdk/models/dm_feed_member_notification_preferences.rbi +34 -0
  124. data/rbi/whop_sdk/models/dm_feed_member_statuses.rbi +26 -0
  125. data/rbi/whop_sdk/models/dm_member.rbi +82 -0
  126. data/rbi/whop_sdk/models/dm_member_create_params.rbi +51 -0
  127. data/rbi/whop_sdk/models/dm_member_delete_params.rbi +27 -0
  128. data/rbi/whop_sdk/models/dm_member_delete_response.rbi +8 -0
  129. data/rbi/whop_sdk/models/dm_member_list_params.rbi +75 -0
  130. data/rbi/whop_sdk/models/dm_member_list_response.rbi +75 -0
  131. data/rbi/whop_sdk/models/dm_member_retrieve_params.rbi +27 -0
  132. data/rbi/whop_sdk/models/dm_member_update_params.rbi +57 -0
  133. data/rbi/whop_sdk/models/file_create_response.rbi +3 -49
  134. data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -51
  135. data/rbi/whop_sdk/models/{lead_update_response.rbi → lead.rbi} +17 -42
  136. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +6 -230
  137. data/rbi/whop_sdk/models/member_list_params.rbi +8 -8
  138. data/rbi/whop_sdk/models/membership.rbi +3 -47
  139. data/rbi/whop_sdk/models/membership_list_params.rbi +3 -70
  140. data/rbi/whop_sdk/models/membership_list_response.rbi +3 -73
  141. data/rbi/whop_sdk/models/message_create_params.rbi +8 -0
  142. data/rbi/whop_sdk/models/message_delete_params.rbi +27 -0
  143. data/rbi/whop_sdk/models/message_delete_response.rbi +8 -0
  144. data/rbi/whop_sdk/models/payment.rbi +88 -0
  145. data/rbi/whop_sdk/models/payment_list_response.rbi +100 -0
  146. data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
  147. data/rbi/whop_sdk/models/payout_destination_category.rbi +33 -0
  148. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +3 -64
  149. data/rbi/whop_sdk/models/payout_method_list_response.rbi +3 -64
  150. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +3 -64
  151. data/rbi/whop_sdk/models/reaction_create_params.rbi +10 -0
  152. data/rbi/whop_sdk/models/reaction_delete_params.rbi +40 -0
  153. data/rbi/whop_sdk/models/reaction_delete_response.rbi +8 -0
  154. data/rbi/whop_sdk/models/upload_status.rbi +22 -0
  155. data/rbi/whop_sdk/models/verification_error_code.rbi +101 -0
  156. data/rbi/whop_sdk/models/verification_retrieve_response.rbi +6 -230
  157. data/rbi/whop_sdk/models/verification_status.rbi +38 -0
  158. data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +6 -232
  159. data/rbi/whop_sdk/models/webhook.rbi +104 -0
  160. data/rbi/whop_sdk/models/webhook_create_params.rbi +6 -194
  161. data/rbi/whop_sdk/models/webhook_create_response.rbi +9 -386
  162. data/rbi/whop_sdk/models/webhook_event.rbi +79 -0
  163. data/rbi/whop_sdk/models/webhook_list_response.rbi +6 -210
  164. data/rbi/whop_sdk/models/webhook_update_params.rbi +6 -194
  165. data/rbi/whop_sdk/models/{withdrawal_create_response.rbi → withdrawal.rbi} +63 -127
  166. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +4 -571
  167. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +4 -571
  168. data/rbi/whop_sdk/models.rbi +78 -0
  169. data/rbi/whop_sdk/resources/ai_chats.rbi +108 -0
  170. data/rbi/whop_sdk/resources/authorized_users.rbi +3 -3
  171. data/rbi/whop_sdk/resources/company_token_transactions.rbi +112 -0
  172. data/rbi/whop_sdk/resources/dm_channels.rbi +121 -0
  173. data/rbi/whop_sdk/resources/dm_members.rbi +126 -0
  174. data/rbi/whop_sdk/resources/leads.rbi +3 -3
  175. data/rbi/whop_sdk/resources/members.rbi +3 -3
  176. data/rbi/whop_sdk/resources/memberships.rbi +1 -4
  177. data/rbi/whop_sdk/resources/messages.rbi +21 -0
  178. data/rbi/whop_sdk/resources/reactions.rbi +26 -0
  179. data/rbi/whop_sdk/resources/webhooks.rbi +6 -10
  180. data/rbi/whop_sdk/resources/withdrawals.rbi +2 -2
  181. data/sig/whop_sdk/client.rbs +8 -0
  182. data/sig/whop_sdk/models/ai_chat.rbs +65 -0
  183. data/sig/whop_sdk/models/ai_chat_create_params.rbs +23 -0
  184. data/sig/whop_sdk/models/ai_chat_delete_params.rbs +15 -0
  185. data/sig/whop_sdk/models/ai_chat_delete_response.rbs +5 -0
  186. data/sig/whop_sdk/models/ai_chat_list_params.rbs +36 -0
  187. data/sig/whop_sdk/models/ai_chat_list_response.rbs +65 -0
  188. data/sig/whop_sdk/models/ai_chat_retrieve_params.rbs +15 -0
  189. data/sig/whop_sdk/models/ai_chat_update_params.rbs +23 -0
  190. data/sig/whop_sdk/models/api_version.rbs +15 -0
  191. data/sig/whop_sdk/models/app_list_params.rbs +3 -1
  192. data/sig/whop_sdk/models/authorized_user_list_params.rbs +5 -5
  193. data/sig/whop_sdk/models/authorized_user_list_response.rbs +17 -0
  194. data/sig/whop_sdk/models/authorized_user_retrieve_response.rbs +17 -0
  195. data/sig/whop_sdk/models/bot_token_transaction_types.rbs +15 -0
  196. data/sig/whop_sdk/models/cancel_options.rbs +26 -0
  197. data/sig/whop_sdk/models/company_token_transaction.rbs +103 -0
  198. data/sig/whop_sdk/models/company_token_transaction_create_params.rbs +56 -0
  199. data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +56 -0
  200. data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +103 -0
  201. data/sig/whop_sdk/models/company_token_transaction_retrieve_params.rbs +15 -0
  202. data/sig/whop_sdk/models/dm_channel.rbs +30 -0
  203. data/sig/whop_sdk/models/dm_channel_create_params.rbs +36 -0
  204. data/sig/whop_sdk/models/dm_channel_delete_params.rbs +15 -0
  205. data/sig/whop_sdk/models/dm_channel_delete_response.rbs +5 -0
  206. data/sig/whop_sdk/models/dm_channel_list_params.rbs +46 -0
  207. data/sig/whop_sdk/models/dm_channel_list_response.rbs +30 -0
  208. data/sig/whop_sdk/models/dm_channel_retrieve_params.rbs +15 -0
  209. data/sig/whop_sdk/models/dm_channel_update_params.rbs +23 -0
  210. data/sig/whop_sdk/models/dm_feed_member_notification_preferences.rbs +15 -0
  211. data/sig/whop_sdk/models/dm_feed_member_statuses.rbs +18 -0
  212. data/sig/whop_sdk/models/dm_member.rbs +45 -0
  213. data/sig/whop_sdk/models/dm_member_create_params.rbs +28 -0
  214. data/sig/whop_sdk/models/dm_member_delete_params.rbs +15 -0
  215. data/sig/whop_sdk/models/dm_member_delete_response.rbs +5 -0
  216. data/sig/whop_sdk/models/dm_member_list_params.rbs +46 -0
  217. data/sig/whop_sdk/models/dm_member_list_response.rbs +40 -0
  218. data/sig/whop_sdk/models/dm_member_retrieve_params.rbs +15 -0
  219. data/sig/whop_sdk/models/dm_member_update_params.rbs +31 -0
  220. data/sig/whop_sdk/models/file_create_response.rbs +4 -17
  221. data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -17
  222. data/sig/whop_sdk/models/{lead_create_response.rbs → lead.rbs} +14 -14
  223. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +8 -90
  224. data/sig/whop_sdk/models/member_list_params.rbs +5 -5
  225. data/sig/whop_sdk/models/membership.rbs +4 -27
  226. data/sig/whop_sdk/models/membership_list_params.rbs +4 -27
  227. data/sig/whop_sdk/models/membership_list_response.rbs +4 -27
  228. data/sig/whop_sdk/models/message_create_params.rbs +6 -1
  229. data/sig/whop_sdk/models/message_delete_params.rbs +15 -0
  230. data/sig/whop_sdk/models/message_delete_response.rbs +5 -0
  231. data/sig/whop_sdk/models/payment.rbs +47 -0
  232. data/sig/whop_sdk/models/payment_list_response.rbs +47 -0
  233. data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
  234. data/sig/whop_sdk/models/payout_destination_category.rbs +19 -0
  235. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +4 -25
  236. data/sig/whop_sdk/models/payout_method_list_response.rbs +4 -25
  237. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +4 -25
  238. data/sig/whop_sdk/models/reaction_create_params.rbs +5 -1
  239. data/sig/whop_sdk/models/reaction_delete_params.rbs +23 -0
  240. data/sig/whop_sdk/models/reaction_delete_response.rbs +5 -0
  241. data/sig/whop_sdk/models/upload_status.rbs +16 -0
  242. data/sig/whop_sdk/models/verification_error_code.rbs +50 -0
  243. data/sig/whop_sdk/models/verification_retrieve_response.rbs +8 -90
  244. data/sig/whop_sdk/models/verification_status.rbs +38 -0
  245. data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +8 -90
  246. data/sig/whop_sdk/models/webhook.rbs +60 -0
  247. data/sig/whop_sdk/models/webhook_create_params.rbs +8 -83
  248. data/sig/whop_sdk/models/webhook_create_response.rbs +12 -150
  249. data/sig/whop_sdk/models/webhook_event.rbs +66 -0
  250. data/sig/whop_sdk/models/webhook_list_response.rbs +8 -83
  251. data/sig/whop_sdk/models/webhook_update_params.rbs +8 -83
  252. data/sig/whop_sdk/models/{withdrawal_create_response.rbs → withdrawal.rbs} +15 -15
  253. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +4 -241
  254. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +4 -241
  255. data/sig/whop_sdk/models.rbs +74 -0
  256. data/sig/whop_sdk/resources/ai_chats.rbs +33 -0
  257. data/sig/whop_sdk/resources/authorized_users.rbs +1 -1
  258. data/sig/whop_sdk/resources/company_token_transactions.rbs +34 -0
  259. data/sig/whop_sdk/resources/dm_channels.rbs +36 -0
  260. data/sig/whop_sdk/resources/dm_members.rbs +36 -0
  261. data/sig/whop_sdk/resources/leads.rbs +3 -3
  262. data/sig/whop_sdk/resources/members.rbs +1 -1
  263. data/sig/whop_sdk/resources/memberships.rbs +1 -1
  264. data/sig/whop_sdk/resources/messages.rbs +3 -0
  265. data/sig/whop_sdk/resources/reactions.rbs +7 -0
  266. data/sig/whop_sdk/resources/webhooks.rbs +6 -6
  267. data/sig/whop_sdk/resources/withdrawals.rbs +2 -2
  268. metadata +152 -23
  269. data/lib/whop_sdk/models/lead_retrieve_response.rb +0 -149
  270. data/lib/whop_sdk/models/lead_update_response.rb +0 -149
  271. data/lib/whop_sdk/models/webhook_retrieve_response.rb +0 -176
  272. data/lib/whop_sdk/models/webhook_update_response.rb +0 -176
  273. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +0 -268
  274. data/rbi/whop_sdk/models/lead_create_response.rbi +0 -234
  275. data/rbi/whop_sdk/models/lead_retrieve_response.rbi +0 -238
  276. data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +0 -491
  277. data/rbi/whop_sdk/models/webhook_update_response.rbi +0 -486
  278. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +0 -568
  279. data/sig/whop_sdk/models/lead_retrieve_response.rbs +0 -104
  280. data/sig/whop_sdk/models/lead_update_response.rbs +0 -104
  281. data/sig/whop_sdk/models/webhook_retrieve_response.rbs +0 -198
  282. data/sig/whop_sdk/models/webhook_update_response.rbs +0 -198
  283. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +0 -240
@@ -20,8 +20,8 @@ module WhopSDK
20
20
  # The different reasons a user can choose for why they are canceling their
21
21
  # membership.
22
22
  #
23
- # @return [Symbol, WhopSDK::Models::Membership::CancelOption, nil]
24
- required :cancel_option, enum: -> { WhopSDK::Membership::CancelOption }, nil?: true
23
+ # @return [Symbol, WhopSDK::Models::CancelOptions, nil]
24
+ required :cancel_option, enum: -> { WhopSDK::CancelOptions }, nil?: true
25
25
 
26
26
  # @!attribute canceled_at
27
27
  # The epoch timestamp of when the customer initiated a cancellation.
@@ -152,7 +152,7 @@ module WhopSDK
152
152
  #
153
153
  # @param cancel_at_period_end [Boolean] Whether this Membership is set to cancel at the end of the current billing cycle
154
154
  #
155
- # @param cancel_option [Symbol, WhopSDK::Models::Membership::CancelOption, nil] The different reasons a user can choose for why they are canceling their members
155
+ # @param cancel_option [Symbol, WhopSDK::Models::CancelOptions, nil] The different reasons a user can choose for why they are canceling their members
156
156
  #
157
157
  # @param canceled_at [Time, nil] The epoch timestamp of when the customer initiated a cancellation.
158
158
  #
@@ -192,25 +192,6 @@ module WhopSDK
192
192
  #
193
193
  # @param user [WhopSDK::Models::Membership::User, nil] The user this membership belongs to
194
194
 
195
- # The different reasons a user can choose for why they are canceling their
196
- # membership.
197
- #
198
- # @see WhopSDK::Models::Membership#cancel_option
199
- module CancelOption
200
- extend WhopSDK::Internal::Type::Enum
201
-
202
- TOO_EXPENSIVE = :too_expensive
203
- SWITCHING = :switching
204
- MISSING_FEATURES = :missing_features
205
- TECHNICAL_ISSUES = :technical_issues
206
- BAD_EXPERIENCE = :bad_experience
207
- OTHER = :other
208
- TESTING = :testing
209
-
210
- # @!method self.values
211
- # @return [Array<Symbol>]
212
- end
213
-
214
195
  # @see WhopSDK::Models::Membership#company
215
196
  class Company < WhopSDK::Internal::Type::BaseModel
216
197
  # @!attribute id
@@ -22,9 +22,9 @@ module WhopSDK
22
22
  # @!attribute cancel_options
23
23
  # The cancel options to filter the memberships by
24
24
  #
25
- # @return [Array<Symbol, WhopSDK::Models::MembershipListParams::CancelOption>, nil]
25
+ # @return [Array<Symbol, WhopSDK::Models::CancelOptions>, nil]
26
26
  optional :cancel_options,
27
- -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::MembershipListParams::CancelOption] },
27
+ -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::CancelOptions] },
28
28
  nil?: true
29
29
 
30
30
  # @!attribute company_id
@@ -104,7 +104,7 @@ module WhopSDK
104
104
  #
105
105
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
106
106
  #
107
- # @param cancel_options [Array<Symbol, WhopSDK::Models::MembershipListParams::CancelOption>, nil] The cancel options to filter the memberships by
107
+ # @param cancel_options [Array<Symbol, WhopSDK::Models::CancelOptions>, nil] The cancel options to filter the memberships by
108
108
  #
109
109
  # @param company_id [String, nil] The ID of the company to list memberships for
110
110
  #
@@ -132,23 +132,6 @@ module WhopSDK
132
132
  #
133
133
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
134
134
 
135
- # The different reasons a user can choose for why they are canceling their
136
- # membership.
137
- module CancelOption
138
- extend WhopSDK::Internal::Type::Enum
139
-
140
- TOO_EXPENSIVE = :too_expensive
141
- SWITCHING = :switching
142
- MISSING_FEATURES = :missing_features
143
- TECHNICAL_ISSUES = :technical_issues
144
- BAD_EXPERIENCE = :bad_experience
145
- OTHER = :other
146
- TESTING = :testing
147
-
148
- # @!method self.values
149
- # @return [Array<Symbol>]
150
- end
151
-
152
135
  # Which columns can be used to sort.
153
136
  module Order
154
137
  extend WhopSDK::Internal::Type::Enum
@@ -21,8 +21,8 @@ module WhopSDK
21
21
  # The different reasons a user can choose for why they are canceling their
22
22
  # membership.
23
23
  #
24
- # @return [Symbol, WhopSDK::Models::MembershipListResponse::CancelOption, nil]
25
- required :cancel_option, enum: -> { WhopSDK::Models::MembershipListResponse::CancelOption }, nil?: true
24
+ # @return [Symbol, WhopSDK::Models::CancelOptions, nil]
25
+ required :cancel_option, enum: -> { WhopSDK::CancelOptions }, nil?: true
26
26
 
27
27
  # @!attribute canceled_at
28
28
  # The epoch timestamp of when the customer initiated a cancellation.
@@ -146,7 +146,7 @@ module WhopSDK
146
146
  #
147
147
  # @param cancel_at_period_end [Boolean] Whether this Membership is set to cancel at the end of the current billing cycle
148
148
  #
149
- # @param cancel_option [Symbol, WhopSDK::Models::MembershipListResponse::CancelOption, nil] The different reasons a user can choose for why they are canceling their members
149
+ # @param cancel_option [Symbol, WhopSDK::Models::CancelOptions, nil] The different reasons a user can choose for why they are canceling their members
150
150
  #
151
151
  # @param canceled_at [Time, nil] The epoch timestamp of when the customer initiated a cancellation.
152
152
  #
@@ -184,25 +184,6 @@ module WhopSDK
184
184
  #
185
185
  # @param user [WhopSDK::Models::MembershipListResponse::User, nil] The user this membership belongs to
186
186
 
187
- # The different reasons a user can choose for why they are canceling their
188
- # membership.
189
- #
190
- # @see WhopSDK::Models::MembershipListResponse#cancel_option
191
- module CancelOption
192
- extend WhopSDK::Internal::Type::Enum
193
-
194
- TOO_EXPENSIVE = :too_expensive
195
- SWITCHING = :switching
196
- MISSING_FEATURES = :missing_features
197
- TECHNICAL_ISSUES = :technical_issues
198
- BAD_EXPERIENCE = :bad_experience
199
- OTHER = :other
200
- TESTING = :testing
201
-
202
- # @!method self.values
203
- # @return [Array<Symbol>]
204
- end
205
-
206
187
  # @see WhopSDK::Models::MembershipListResponse#company
207
188
  class Company < WhopSDK::Internal::Type::BaseModel
208
189
  # @!attribute id
@@ -33,7 +33,13 @@ module WhopSDK
33
33
  # @return [WhopSDK::Models::MessageCreateParams::Poll, nil]
34
34
  optional :poll, -> { WhopSDK::MessageCreateParams::Poll }, nil?: true
35
35
 
36
- # @!method initialize(channel_id:, content:, attachments: nil, poll: nil, request_options: {})
36
+ # @!attribute replying_to_message_id
37
+ # The ID of the message this is replying to, if applicable.
38
+ #
39
+ # @return [String, nil]
40
+ optional :replying_to_message_id, String, nil?: true
41
+
42
+ # @!method initialize(channel_id:, content:, attachments: nil, poll: nil, replying_to_message_id: nil, request_options: {})
37
43
  # @param channel_id [String] The ID of the channel or experience to send to.
38
44
  #
39
45
  # @param content [String] The content of the message in Markdown format.
@@ -42,6 +48,8 @@ module WhopSDK
42
48
  #
43
49
  # @param poll [WhopSDK::Models::MessageCreateParams::Poll, nil] The poll for this message
44
50
  #
51
+ # @param replying_to_message_id [String, nil] The ID of the message this is replying to, if applicable.
52
+ #
45
53
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
46
54
 
47
55
  class Attachment < WhopSDK::Internal::Type::BaseModel
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::Messages#delete
6
+ class MessageDeleteParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @type [WhopSDK::Internal::Type::Converter]
6
+ MessageDeleteResponse = WhopSDK::Internal::Type::Boolean
7
+ end
8
+ end
@@ -15,6 +15,12 @@ module WhopSDK
15
15
  # @return [Float]
16
16
  required :amount_after_fees, Float
17
17
 
18
+ # @!attribute application_fee
19
+ # The application fee charged on this payment.
20
+ #
21
+ # @return [WhopSDK::Models::Payment::ApplicationFee, nil]
22
+ required :application_fee, -> { WhopSDK::Payment::ApplicationFee }, nil?: true
23
+
18
24
  # @!attribute auto_refunded
19
25
  # Whether this payment was auto refunded or not
20
26
  #
@@ -218,7 +224,7 @@ module WhopSDK
218
224
  # @return [Boolean]
219
225
  required :voidable, WhopSDK::Internal::Type::Boolean
220
226
 
221
- # @!method initialize(id:, amount_after_fees:, auto_refunded:, billing_address:, billing_reason:, card_brand:, card_last4:, company:, created_at:, currency:, dispute_alerted_at:, failure_message:, last_payment_attempt:, member:, membership:, metadata:, next_payment_attempt:, paid_at:, payment_method:, payment_method_type:, payments_failed:, plan:, product:, promo_code:, refundable:, refunded_amount:, refunded_at:, retryable:, status:, substatus:, subtotal:, total:, usd_total:, user:, voidable:)
227
+ # @!method initialize(id:, amount_after_fees:, application_fee:, auto_refunded:, billing_address:, billing_reason:, card_brand:, card_last4:, company:, created_at:, currency:, dispute_alerted_at:, failure_message:, last_payment_attempt:, member:, membership:, metadata:, next_payment_attempt:, paid_at:, payment_method:, payment_method_type:, payments_failed:, plan:, product:, promo_code:, refundable:, refunded_amount:, refunded_at:, retryable:, status:, substatus:, subtotal:, total:, usd_total:, user:, voidable:)
222
228
  # Some parameter documentations has been truncated, see {WhopSDK::Models::Payment}
223
229
  # for more details.
224
230
  #
@@ -228,6 +234,8 @@ module WhopSDK
228
234
  #
229
235
  # @param amount_after_fees [Float] How much the payment is for after fees
230
236
  #
237
+ # @param application_fee [WhopSDK::Models::Payment::ApplicationFee, nil] The application fee charged on this payment.
238
+ #
231
239
  # @param auto_refunded [Boolean] Whether this payment was auto refunded or not
232
240
  #
233
241
  # @param billing_address [WhopSDK::Models::Payment::BillingAddress, nil] The address of the user who made the payment.
@@ -294,6 +302,60 @@ module WhopSDK
294
302
  #
295
303
  # @param voidable [Boolean] True when the payment is tied to a membership in `past_due`, the payment status
296
304
 
305
+ # @see WhopSDK::Models::Payment#application_fee
306
+ class ApplicationFee < WhopSDK::Internal::Type::BaseModel
307
+ # @!attribute id
308
+ # The unique identifier for the application fee.
309
+ #
310
+ # @return [String]
311
+ required :id, String
312
+
313
+ # @!attribute amount
314
+ # The application fee amount.
315
+ #
316
+ # @return [Float]
317
+ required :amount, Float
318
+
319
+ # @!attribute amount_captured
320
+ # The amount of the application fee that has been captured.
321
+ #
322
+ # @return [Float]
323
+ required :amount_captured, Float
324
+
325
+ # @!attribute amount_refunded
326
+ # The amount of the application fee that has been refunded.
327
+ #
328
+ # @return [Float]
329
+ required :amount_refunded, Float
330
+
331
+ # @!attribute created_at
332
+ # When the application fee was created.
333
+ #
334
+ # @return [Time]
335
+ required :created_at, Time
336
+
337
+ # @!attribute currency
338
+ # The currency of the application fee.
339
+ #
340
+ # @return [Symbol, WhopSDK::Models::Currency]
341
+ required :currency, enum: -> { WhopSDK::Currency }
342
+
343
+ # @!method initialize(id:, amount:, amount_captured:, amount_refunded:, created_at:, currency:)
344
+ # The application fee charged on this payment.
345
+ #
346
+ # @param id [String] The unique identifier for the application fee.
347
+ #
348
+ # @param amount [Float] The application fee amount.
349
+ #
350
+ # @param amount_captured [Float] The amount of the application fee that has been captured.
351
+ #
352
+ # @param amount_refunded [Float] The amount of the application fee that has been refunded.
353
+ #
354
+ # @param created_at [Time] When the application fee was created.
355
+ #
356
+ # @param currency [Symbol, WhopSDK::Models::Currency] The currency of the application fee.
357
+ end
358
+
297
359
  # @see WhopSDK::Models::Payment#billing_address
298
360
  class BillingAddress < WhopSDK::Internal::Type::BaseModel
299
361
  # @!attribute city
@@ -16,6 +16,12 @@ module WhopSDK
16
16
  # @return [Float]
17
17
  required :amount_after_fees, Float
18
18
 
19
+ # @!attribute application_fee
20
+ # The application fee charged on this payment.
21
+ #
22
+ # @return [WhopSDK::Models::PaymentListResponse::ApplicationFee, nil]
23
+ required :application_fee, -> { WhopSDK::Models::PaymentListResponse::ApplicationFee }, nil?: true
24
+
19
25
  # @!attribute auto_refunded
20
26
  # Whether this payment was auto refunded or not
21
27
  #
@@ -219,7 +225,7 @@ module WhopSDK
219
225
  # @return [Boolean]
220
226
  required :voidable, WhopSDK::Internal::Type::Boolean
221
227
 
222
- # @!method initialize(id:, amount_after_fees:, auto_refunded:, billing_address:, billing_reason:, card_brand:, card_last4:, company:, created_at:, currency:, dispute_alerted_at:, failure_message:, last_payment_attempt:, member:, membership:, metadata:, next_payment_attempt:, paid_at:, payment_method:, payment_method_type:, payments_failed:, plan:, product:, promo_code:, refundable:, refunded_amount:, refunded_at:, retryable:, status:, substatus:, subtotal:, total:, usd_total:, user:, voidable:)
228
+ # @!method initialize(id:, amount_after_fees:, application_fee:, auto_refunded:, billing_address:, billing_reason:, card_brand:, card_last4:, company:, created_at:, currency:, dispute_alerted_at:, failure_message:, last_payment_attempt:, member:, membership:, metadata:, next_payment_attempt:, paid_at:, payment_method:, payment_method_type:, payments_failed:, plan:, product:, promo_code:, refundable:, refunded_amount:, refunded_at:, retryable:, status:, substatus:, subtotal:, total:, usd_total:, user:, voidable:)
223
229
  # Some parameter documentations has been truncated, see
224
230
  # {WhopSDK::Models::PaymentListResponse} for more details.
225
231
  #
@@ -229,6 +235,8 @@ module WhopSDK
229
235
  #
230
236
  # @param amount_after_fees [Float] How much the payment is for after fees
231
237
  #
238
+ # @param application_fee [WhopSDK::Models::PaymentListResponse::ApplicationFee, nil] The application fee charged on this payment.
239
+ #
232
240
  # @param auto_refunded [Boolean] Whether this payment was auto refunded or not
233
241
  #
234
242
  # @param billing_address [WhopSDK::Models::PaymentListResponse::BillingAddress, nil] The address of the user who made the payment.
@@ -295,6 +303,60 @@ module WhopSDK
295
303
  #
296
304
  # @param voidable [Boolean] True when the payment is tied to a membership in `past_due`, the payment status
297
305
 
306
+ # @see WhopSDK::Models::PaymentListResponse#application_fee
307
+ class ApplicationFee < WhopSDK::Internal::Type::BaseModel
308
+ # @!attribute id
309
+ # The unique identifier for the application fee.
310
+ #
311
+ # @return [String]
312
+ required :id, String
313
+
314
+ # @!attribute amount
315
+ # The application fee amount.
316
+ #
317
+ # @return [Float]
318
+ required :amount, Float
319
+
320
+ # @!attribute amount_captured
321
+ # The amount of the application fee that has been captured.
322
+ #
323
+ # @return [Float]
324
+ required :amount_captured, Float
325
+
326
+ # @!attribute amount_refunded
327
+ # The amount of the application fee that has been refunded.
328
+ #
329
+ # @return [Float]
330
+ required :amount_refunded, Float
331
+
332
+ # @!attribute created_at
333
+ # When the application fee was created.
334
+ #
335
+ # @return [Time]
336
+ required :created_at, Time
337
+
338
+ # @!attribute currency
339
+ # The currency of the application fee.
340
+ #
341
+ # @return [Symbol, WhopSDK::Models::Currency]
342
+ required :currency, enum: -> { WhopSDK::Currency }
343
+
344
+ # @!method initialize(id:, amount:, amount_captured:, amount_refunded:, created_at:, currency:)
345
+ # The application fee charged on this payment.
346
+ #
347
+ # @param id [String] The unique identifier for the application fee.
348
+ #
349
+ # @param amount [Float] The application fee amount.
350
+ #
351
+ # @param amount_captured [Float] The amount of the application fee that has been captured.
352
+ #
353
+ # @param amount_refunded [Float] The amount of the application fee that has been refunded.
354
+ #
355
+ # @param created_at [Time] When the application fee was created.
356
+ #
357
+ # @param currency [Symbol, WhopSDK::Models::Currency] The currency of the application fee.
358
+ end
359
+
298
360
  # @see WhopSDK::Models::PaymentListResponse#billing_address
299
361
  class BillingAddress < WhopSDK::Internal::Type::BaseModel
300
362
  # @!attribute city
@@ -38,6 +38,7 @@ module WhopSDK
38
38
  GRABPAY = :grabpay
39
39
  ID_BANK_TRANSFER = :id_bank_transfer
40
40
  IDEAL = :ideal
41
+ INTERAC = :interac
41
42
  KAKAO_PAY = :kakao_pay
42
43
  KLARNA = :klarna
43
44
  KONBINI = :konbini
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # The category of a payout destination.
6
+ module PayoutDestinationCategory
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ CRYPTO = :crypto
10
+ RTP = :rtp
11
+ NEXT_DAY_BANK = :next_day_bank
12
+ BANK_WIRE = :bank_wire
13
+ DIGITAL_WALLET = :digital_wallet
14
+ UNKNOWN = :unknown
15
+
16
+ # @!method self.values
17
+ # @return [Array<Symbol>]
18
+ end
19
+ end
20
+ end
@@ -154,8 +154,8 @@ module WhopSDK
154
154
  # @!attribute category
155
155
  # The category of the payout destination
156
156
  #
157
- # @return [Symbol, WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::Category]
158
- required :category, enum: -> { WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category }
157
+ # @return [Symbol, WhopSDK::Models::PayoutDestinationCategory]
158
+ required :category, enum: -> { WhopSDK::PayoutDestinationCategory }
159
159
 
160
160
  # @!attribute country_code
161
161
  # The country code of the payout destination
@@ -172,28 +172,11 @@ module WhopSDK
172
172
  # @!method initialize(category:, country_code:, name:)
173
173
  # The payout destination associated with the payout token
174
174
  #
175
- # @param category [Symbol, WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::Category] The category of the payout destination
175
+ # @param category [Symbol, WhopSDK::Models::PayoutDestinationCategory] The category of the payout destination
176
176
  #
177
177
  # @param country_code [String] The country code of the payout destination
178
178
  #
179
179
  # @param name [String] The name of the payer associated with the payout destination
180
-
181
- # The category of the payout destination
182
- #
183
- # @see WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination#category
184
- module Category
185
- extend WhopSDK::Internal::Type::Enum
186
-
187
- CRYPTO = :crypto
188
- RTP = :rtp
189
- NEXT_DAY_BANK = :next_day_bank
190
- BANK_WIRE = :bank_wire
191
- DIGITAL_WALLET = :digital_wallet
192
- UNKNOWN = :unknown
193
-
194
- # @!method self.values
195
- # @return [Array<Symbol>]
196
- end
197
180
  end
198
181
  end
199
182
  end
@@ -104,8 +104,8 @@ module WhopSDK
104
104
  # @!attribute category
105
105
  # The category of the payout destination
106
106
  #
107
- # @return [Symbol, WhopSDK::Models::PayoutMethodListResponse::Destination::Category]
108
- required :category, enum: -> { WhopSDK::Models::PayoutMethodListResponse::Destination::Category }
107
+ # @return [Symbol, WhopSDK::Models::PayoutDestinationCategory]
108
+ required :category, enum: -> { WhopSDK::PayoutDestinationCategory }
109
109
 
110
110
  # @!attribute country_code
111
111
  # The country code of the payout destination
@@ -122,28 +122,11 @@ module WhopSDK
122
122
  # @!method initialize(category:, country_code:, name:)
123
123
  # The payout destination associated with the payout token
124
124
  #
125
- # @param category [Symbol, WhopSDK::Models::PayoutMethodListResponse::Destination::Category] The category of the payout destination
125
+ # @param category [Symbol, WhopSDK::Models::PayoutDestinationCategory] The category of the payout destination
126
126
  #
127
127
  # @param country_code [String] The country code of the payout destination
128
128
  #
129
129
  # @param name [String] The name of the payer associated with the payout destination
130
-
131
- # The category of the payout destination
132
- #
133
- # @see WhopSDK::Models::PayoutMethodListResponse::Destination#category
134
- module Category
135
- extend WhopSDK::Internal::Type::Enum
136
-
137
- CRYPTO = :crypto
138
- RTP = :rtp
139
- NEXT_DAY_BANK = :next_day_bank
140
- BANK_WIRE = :bank_wire
141
- DIGITAL_WALLET = :digital_wallet
142
- UNKNOWN = :unknown
143
-
144
- # @!method self.values
145
- # @return [Array<Symbol>]
146
- end
147
130
  end
148
131
  end
149
132
  end
@@ -104,8 +104,8 @@ module WhopSDK
104
104
  # @!attribute category
105
105
  # The category of the payout destination
106
106
  #
107
- # @return [Symbol, WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category]
108
- required :category, enum: -> { WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category }
107
+ # @return [Symbol, WhopSDK::Models::PayoutDestinationCategory]
108
+ required :category, enum: -> { WhopSDK::PayoutDestinationCategory }
109
109
 
110
110
  # @!attribute country_code
111
111
  # The country code of the payout destination
@@ -122,28 +122,11 @@ module WhopSDK
122
122
  # @!method initialize(category:, country_code:, name:)
123
123
  # The payout destination associated with the payout token
124
124
  #
125
- # @param category [Symbol, WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::Category] The category of the payout destination
125
+ # @param category [Symbol, WhopSDK::Models::PayoutDestinationCategory] The category of the payout destination
126
126
  #
127
127
  # @param country_code [String] The country code of the payout destination
128
128
  #
129
129
  # @param name [String] The name of the payer associated with the payout destination
130
-
131
- # The category of the payout destination
132
- #
133
- # @see WhopSDK::Models::PayoutMethodRetrieveResponse::Destination#category
134
- module Category
135
- extend WhopSDK::Internal::Type::Enum
136
-
137
- CRYPTO = :crypto
138
- RTP = :rtp
139
- NEXT_DAY_BANK = :next_day_bank
140
- BANK_WIRE = :bank_wire
141
- DIGITAL_WALLET = :digital_wallet
142
- UNKNOWN = :unknown
143
-
144
- # @!method self.values
145
- # @return [Array<Symbol>]
146
- end
147
130
  end
148
131
  end
149
132
  end
@@ -20,7 +20,14 @@ module WhopSDK
20
20
  # @return [String, nil]
21
21
  optional :emoji, String, nil?: true
22
22
 
23
- # @!method initialize(resource_id:, emoji: nil, request_options: {})
23
+ # @!attribute poll_option_id
24
+ # The ID of the poll option to vote for. Only valid for messages or posts with
25
+ # polls.
26
+ #
27
+ # @return [String, nil]
28
+ optional :poll_option_id, String, nil?: true
29
+
30
+ # @!method initialize(resource_id:, emoji: nil, poll_option_id: nil, request_options: {})
24
31
  # Some parameter documentations has been truncated, see
25
32
  # {WhopSDK::Models::ReactionCreateParams} for more details.
26
33
  #
@@ -28,6 +35,8 @@ module WhopSDK
28
35
  #
29
36
  # @param emoji [String, nil] The emoji to react with (e.g., :heart: or '😀'). It will be ignored in forums, a
30
37
  #
38
+ # @param poll_option_id [String, nil] The ID of the poll option to vote for. Only valid for messages or posts with pol
39
+ #
31
40
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
32
41
  end
33
42
  end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::Reactions#delete
6
+ class ReactionDeleteParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute emoji
11
+ # The emoji to remove (e.g., :heart: or '😀').
12
+ #
13
+ # @return [String, nil]
14
+ optional :emoji, String, nil?: true
15
+
16
+ # @!method initialize(emoji: nil, request_options: {})
17
+ # @param emoji [String, nil] The emoji to remove (e.g., :heart: or '😀').
18
+ #
19
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @type [WhopSDK::Internal::Type::Converter]
6
+ ReactionDeleteResponse = WhopSDK::Internal::Type::Boolean
7
+ end
8
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # The upload status of a file
6
+ module UploadStatus
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ PENDING = :pending
10
+ PROCESSING = :processing
11
+ READY = :ready
12
+ FAILED = :failed
13
+
14
+ # @!method self.values
15
+ # @return [Array<Symbol>]
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # An error code for a verification attempt.
6
+ module VerificationErrorCode
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ ABANDONED = :abandoned
10
+ CONSENT_DECLINED = :consent_declined
11
+ COUNTRY_NOT_SUPPORTED = :country_not_supported
12
+ DEVICE_NOT_SUPPORTED = :device_not_supported
13
+ DOCUMENT_EXPIRED = :document_expired
14
+ DOCUMENT_TYPE_NOT_SUPPORTED = :document_type_not_supported
15
+ DOCUMENT_UNVERIFIED_OTHER = :document_unverified_other
16
+ EMAIL_UNVERIFIED_OTHER = :email_unverified_other
17
+ EMAIL_VERIFICATION_DECLINED = :email_verification_declined
18
+ ID_NUMBER_INSUFFICIENT_DOCUMENT_DATA = :id_number_insufficient_document_data
19
+ ID_NUMBER_MISMATCH = :id_number_mismatch
20
+ ID_NUMBER_UNVERIFIED_OTHER = :id_number_unverified_other
21
+ PHONE_UNVERIFIED_OTHER = :phone_unverified_other
22
+ PHONE_VERIFICATION_DECLINED = :phone_verification_declined
23
+ SELFIE_DOCUMENT_MISSING_PHOTO = :selfie_document_missing_photo
24
+ SELFIE_FACE_MISMATCH = :selfie_face_mismatch
25
+ SELFIE_MANIPULATED = :selfie_manipulated
26
+ SELFIE_UNVERIFIED_OTHER = :selfie_unverified_other
27
+ UNDER_SUPPORTED_AGE = :under_supported_age
28
+
29
+ # @!method self.values
30
+ # @return [Array<Symbol>]
31
+ end
32
+ end
33
+ end