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
@@ -1,568 +0,0 @@
1
- # typed: strong
2
-
3
- module WhopSDK
4
- module Models
5
- class WithdrawalRetrieveResponse < WhopSDK::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(
9
- WhopSDK::Models::WithdrawalRetrieveResponse,
10
- WhopSDK::Internal::AnyHash
11
- )
12
- end
13
-
14
- # Internal ID of the withdrawal request.
15
- sig { returns(String) }
16
- attr_accessor :id
17
-
18
- # How much money was attempted to be withdrawn, in a float type.
19
- sig { returns(Float) }
20
- attr_accessor :amount
21
-
22
- # When the withdrawal request was created.
23
- sig { returns(Time) }
24
- attr_accessor :created_at
25
-
26
- # The currency of the withdrawal request.
27
- sig { returns(WhopSDK::Currency::TaggedSymbol) }
28
- attr_accessor :currency
29
-
30
- # The different error codes a payout can be in.
31
- sig do
32
- returns(
33
- T.nilable(
34
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
35
- )
36
- )
37
- end
38
- attr_accessor :error_code
39
-
40
- # The error message for the withdrawal, if any.
41
- sig { returns(T.nilable(String)) }
42
- attr_accessor :error_message
43
-
44
- # The estimated availability date for the withdrawal, if any.
45
- sig { returns(T.nilable(Time)) }
46
- attr_accessor :estimated_availability
47
-
48
- # The fee amount that was charged for the withdrawal. This is in the same currency
49
- # as the withdrawal amount.
50
- sig { returns(Float) }
51
- attr_accessor :fee_amount
52
-
53
- # The different fee types for a withdrawal.
54
- sig { returns(T.nilable(WhopSDK::WithdrawalFeeTypes::TaggedSymbol)) }
55
- attr_accessor :fee_type
56
-
57
- # The ledger account associated with the withdrawal.
58
- sig do
59
- returns(WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount)
60
- end
61
- attr_reader :ledger_account
62
-
63
- sig do
64
- params(
65
- ledger_account:
66
- WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount::OrHash
67
- ).void
68
- end
69
- attr_writer :ledger_account
70
-
71
- # The markup fee that was charged for the withdrawal. This is in the same currency
72
- # as the withdrawal amount. This only applies to platform accounts using Whop
73
- # Rails.
74
- sig { returns(Float) }
75
- attr_accessor :markup_fee
76
-
77
- # The payout token used for the withdrawal, if applicable.
78
- sig do
79
- returns(
80
- T.nilable(WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken)
81
- )
82
- end
83
- attr_reader :payout_token
84
-
85
- sig do
86
- params(
87
- payout_token:
88
- T.nilable(
89
- WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken::OrHash
90
- )
91
- ).void
92
- end
93
- attr_writer :payout_token
94
-
95
- # The speed of the withdrawal.
96
- sig { returns(WhopSDK::WithdrawalSpeeds::TaggedSymbol) }
97
- attr_accessor :speed
98
-
99
- # Status of the withdrawal.
100
- sig { returns(WhopSDK::WithdrawalStatus::TaggedSymbol) }
101
- attr_accessor :status
102
-
103
- # The trace code for the payout, if applicable. Provided on ACH transactions when
104
- # available.
105
- sig { returns(T.nilable(String)) }
106
- attr_accessor :trace_code
107
-
108
- # A withdrawal request.
109
- sig do
110
- params(
111
- id: String,
112
- amount: Float,
113
- created_at: Time,
114
- currency: WhopSDK::Currency::OrSymbol,
115
- error_code:
116
- T.nilable(
117
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::OrSymbol
118
- ),
119
- error_message: T.nilable(String),
120
- estimated_availability: T.nilable(Time),
121
- fee_amount: Float,
122
- fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::OrSymbol),
123
- ledger_account:
124
- WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount::OrHash,
125
- markup_fee: Float,
126
- payout_token:
127
- T.nilable(
128
- WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken::OrHash
129
- ),
130
- speed: WhopSDK::WithdrawalSpeeds::OrSymbol,
131
- status: WhopSDK::WithdrawalStatus::OrSymbol,
132
- trace_code: T.nilable(String)
133
- ).returns(T.attached_class)
134
- end
135
- def self.new(
136
- # Internal ID of the withdrawal request.
137
- id:,
138
- # How much money was attempted to be withdrawn, in a float type.
139
- amount:,
140
- # When the withdrawal request was created.
141
- created_at:,
142
- # The currency of the withdrawal request.
143
- currency:,
144
- # The different error codes a payout can be in.
145
- error_code:,
146
- # The error message for the withdrawal, if any.
147
- error_message:,
148
- # The estimated availability date for the withdrawal, if any.
149
- estimated_availability:,
150
- # The fee amount that was charged for the withdrawal. This is in the same currency
151
- # as the withdrawal amount.
152
- fee_amount:,
153
- # The different fee types for a withdrawal.
154
- fee_type:,
155
- # The ledger account associated with the withdrawal.
156
- ledger_account:,
157
- # The markup fee that was charged for the withdrawal. This is in the same currency
158
- # as the withdrawal amount. This only applies to platform accounts using Whop
159
- # Rails.
160
- markup_fee:,
161
- # The payout token used for the withdrawal, if applicable.
162
- payout_token:,
163
- # The speed of the withdrawal.
164
- speed:,
165
- # Status of the withdrawal.
166
- status:,
167
- # The trace code for the payout, if applicable. Provided on ACH transactions when
168
- # available.
169
- trace_code:
170
- )
171
- end
172
-
173
- sig do
174
- override.returns(
175
- {
176
- id: String,
177
- amount: Float,
178
- created_at: Time,
179
- currency: WhopSDK::Currency::TaggedSymbol,
180
- error_code:
181
- T.nilable(
182
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
183
- ),
184
- error_message: T.nilable(String),
185
- estimated_availability: T.nilable(Time),
186
- fee_amount: Float,
187
- fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::TaggedSymbol),
188
- ledger_account:
189
- WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount,
190
- markup_fee: Float,
191
- payout_token:
192
- T.nilable(
193
- WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken
194
- ),
195
- speed: WhopSDK::WithdrawalSpeeds::TaggedSymbol,
196
- status: WhopSDK::WithdrawalStatus::TaggedSymbol,
197
- trace_code: T.nilable(String)
198
- }
199
- )
200
- end
201
- def to_hash
202
- end
203
-
204
- # The different error codes a payout can be in.
205
- module ErrorCode
206
- extend WhopSDK::Internal::Type::Enum
207
-
208
- TaggedSymbol =
209
- T.type_alias do
210
- T.all(
211
- Symbol,
212
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode
213
- )
214
- end
215
- OrSymbol = T.type_alias { T.any(Symbol, String) }
216
-
217
- ACCOUNT_CLOSED =
218
- T.let(
219
- :account_closed,
220
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
221
- )
222
- ACCOUNT_DOES_NOT_EXIST =
223
- T.let(
224
- :account_does_not_exist,
225
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
226
- )
227
- ACCOUNT_INFORMATION_INVALID =
228
- T.let(
229
- :account_information_invalid,
230
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
231
- )
232
- ACCOUNT_NUMBER_INVALID_REGION =
233
- T.let(
234
- :account_number_invalid_region,
235
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
236
- )
237
- ACCOUNT_FROZEN =
238
- T.let(
239
- :account_frozen,
240
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
241
- )
242
- ACCOUNT_LOOKUP_FAILED =
243
- T.let(
244
- :account_lookup_failed,
245
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
246
- )
247
- ACCOUNT_NOT_FOUND =
248
- T.let(
249
- :account_not_found,
250
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
251
- )
252
- AMOUNT_OUT_OF_BOUNDS =
253
- T.let(
254
- :amount_out_of_bounds,
255
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
256
- )
257
- ATTRIBUTES_NOT_VALIDATED =
258
- T.let(
259
- :attributes_not_validated,
260
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
261
- )
262
- B2B_PAYMENTS_PROHIBITED =
263
- T.let(
264
- :b2b_payments_prohibited,
265
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
266
- )
267
- BANK_STATEMENT_REQUIRED =
268
- T.let(
269
- :bank_statement_required,
270
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
271
- )
272
- COMPLIANCE_REVIEW =
273
- T.let(
274
- :compliance_review,
275
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
276
- )
277
- CURRENCY_NOT_SUPPORTED =
278
- T.let(
279
- :currency_not_supported,
280
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
281
- )
282
- DEPOSIT_CANCELED =
283
- T.let(
284
- :deposit_canceled,
285
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
286
- )
287
- DEPOSIT_FAILED =
288
- T.let(
289
- :deposit_failed,
290
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
291
- )
292
- DEPOSIT_REJECTED =
293
- T.let(
294
- :deposit_rejected,
295
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
296
- )
297
- DESTINATION_UNAVAILABLE =
298
- T.let(
299
- :destination_unavailable,
300
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
301
- )
302
- EXCEEDED_ACCOUNT_LIMIT =
303
- T.let(
304
- :exceeded_account_limit,
305
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
306
- )
307
- EXPIRED_QUOTE =
308
- T.let(
309
- :expired_quote,
310
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
311
- )
312
- GENERIC_PAYOUT_ERROR =
313
- T.let(
314
- :generic_payout_error,
315
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
316
- )
317
- TECHNICAL_PROBLEM =
318
- T.let(
319
- :technical_problem,
320
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
321
- )
322
- IDENTIFICATION_NUMBER_INVALID =
323
- T.let(
324
- :identification_number_invalid,
325
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
326
- )
327
- INVALID_ACCOUNT_NUMBER =
328
- T.let(
329
- :invalid_account_number,
330
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
331
- )
332
- INVALID_BANK_CODE =
333
- T.let(
334
- :invalid_bank_code,
335
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
336
- )
337
- INVALID_BENEFICIARY =
338
- T.let(
339
- :invalid_beneficiary,
340
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
341
- )
342
- INVALID_MAILING_ADDRESS =
343
- T.let(
344
- :invalid_mailing_address,
345
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
346
- )
347
- INVALID_BRANCH_NUMBER =
348
- T.let(
349
- :invalid_branch_number,
350
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
351
- )
352
- INVALID_BRANCH_CODE =
353
- T.let(
354
- :invalid_branch_code,
355
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
356
- )
357
- INVALID_PHONE_NUMBER =
358
- T.let(
359
- :invalid_phone_number,
360
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
361
- )
362
- INVALID_ROUTING_NUMBER =
363
- T.let(
364
- :invalid_routing_number,
365
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
366
- )
367
- INVALID_SWIFT_CODE =
368
- T.let(
369
- :invalid_swift_code,
370
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
371
- )
372
- INVALID_COMPANY_DETAILS =
373
- T.let(
374
- :invalid_company_details,
375
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
376
- )
377
- MANUAL_CANCELATION =
378
- T.let(
379
- :manual_cancelation,
380
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
381
- )
382
- MISC_ERROR =
383
- T.let(
384
- :misc_error,
385
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
386
- )
387
- MISSING_CITY_AND_COUNTRY =
388
- T.let(
389
- :missing_city_and_country,
390
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
391
- )
392
- MISSING_PHONE_NUMBER =
393
- T.let(
394
- :missing_phone_number,
395
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
396
- )
397
- MISSING_REMITTANCE_INFO =
398
- T.let(
399
- :missing_remittance_info,
400
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
401
- )
402
- PAYEE_NAME_INVALID =
403
- T.let(
404
- :payee_name_invalid,
405
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
406
- )
407
- RECEIVING_ACCOUNT_LOCKED =
408
- T.let(
409
- :receiving_account_locked,
410
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
411
- )
412
- REJECTED_BY_COMPLIANCE =
413
- T.let(
414
- :rejected_by_compliance,
415
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
416
- )
417
- RTP_NOT_SUPPORTED =
418
- T.let(
419
- :rtp_not_supported,
420
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
421
- )
422
- NON_TRANSACTION_ACCOUNT =
423
- T.let(
424
- :non_transaction_account,
425
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
426
- )
427
- SOURCE_TOKEN_INSUFFICIENT_FUNDS =
428
- T.let(
429
- :source_token_insufficient_funds,
430
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
431
- )
432
- SSN_INVALID =
433
- T.let(
434
- :ssn_invalid,
435
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
436
- )
437
- WALLET_SCREENSHOT_REQUIRED =
438
- T.let(
439
- :wallet_screenshot_required,
440
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
441
- )
442
- UNSUPPORTED_REGION =
443
- T.let(
444
- :unsupported_region,
445
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
446
- )
447
-
448
- sig do
449
- override.returns(
450
- T::Array[
451
- WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
452
- ]
453
- )
454
- end
455
- def self.values
456
- end
457
- end
458
-
459
- class LedgerAccount < WhopSDK::Internal::Type::BaseModel
460
- OrHash =
461
- T.type_alias do
462
- T.any(
463
- WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount,
464
- WhopSDK::Internal::AnyHash
465
- )
466
- end
467
-
468
- # The ID of the LedgerAccount.
469
- sig { returns(String) }
470
- attr_accessor :id
471
-
472
- # The ID of the company associated with this ledger account.
473
- sig { returns(T.nilable(String)) }
474
- attr_accessor :company_id
475
-
476
- # The ledger account associated with the withdrawal.
477
- sig do
478
- params(id: String, company_id: T.nilable(String)).returns(
479
- T.attached_class
480
- )
481
- end
482
- def self.new(
483
- # The ID of the LedgerAccount.
484
- id:,
485
- # The ID of the company associated with this ledger account.
486
- company_id:
487
- )
488
- end
489
-
490
- sig { override.returns({ id: String, company_id: T.nilable(String) }) }
491
- def to_hash
492
- end
493
- end
494
-
495
- class PayoutToken < WhopSDK::Internal::Type::BaseModel
496
- OrHash =
497
- T.type_alias do
498
- T.any(
499
- WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken,
500
- WhopSDK::Internal::AnyHash
501
- )
502
- end
503
-
504
- # The ID of the payout token
505
- sig { returns(String) }
506
- attr_accessor :id
507
-
508
- # The date and time the payout token was created
509
- sig { returns(Time) }
510
- attr_accessor :created_at
511
-
512
- # The currency code of the payout destination. This is the currency that payouts
513
- # will be made in for this token.
514
- sig { returns(String) }
515
- attr_accessor :destination_currency_code
516
-
517
- # An optional nickname for the payout token to help the user identify it. This is
518
- # not used by the provider and is only for the user's reference.
519
- sig { returns(T.nilable(String)) }
520
- attr_accessor :nickname
521
-
522
- # The name of the payer associated with the payout token.
523
- sig { returns(T.nilable(String)) }
524
- attr_accessor :payer_name
525
-
526
- # The payout token used for the withdrawal, if applicable.
527
- sig do
528
- params(
529
- id: String,
530
- created_at: Time,
531
- destination_currency_code: String,
532
- nickname: T.nilable(String),
533
- payer_name: T.nilable(String)
534
- ).returns(T.attached_class)
535
- end
536
- def self.new(
537
- # The ID of the payout token
538
- id:,
539
- # The date and time the payout token was created
540
- created_at:,
541
- # The currency code of the payout destination. This is the currency that payouts
542
- # will be made in for this token.
543
- destination_currency_code:,
544
- # An optional nickname for the payout token to help the user identify it. This is
545
- # not used by the provider and is only for the user's reference.
546
- nickname:,
547
- # The name of the payer associated with the payout token.
548
- payer_name:
549
- )
550
- end
551
-
552
- sig do
553
- override.returns(
554
- {
555
- id: String,
556
- created_at: Time,
557
- destination_currency_code: String,
558
- nickname: T.nilable(String),
559
- payer_name: T.nilable(String)
560
- }
561
- )
562
- end
563
- def to_hash
564
- end
565
- end
566
- end
567
- end
568
- end
@@ -1,104 +0,0 @@
1
- module WhopSDK
2
- module Models
3
- type lead_retrieve_response =
4
- {
5
- id: String,
6
- created_at: Time,
7
- member: WhopSDK::Models::LeadRetrieveResponse::Member?,
8
- metadata: ::Hash[Symbol, top]?,
9
- product: WhopSDK::Models::LeadRetrieveResponse::Product?,
10
- referrer: String?,
11
- updated_at: Time,
12
- user: WhopSDK::Models::LeadRetrieveResponse::User
13
- }
14
-
15
- class LeadRetrieveResponse < WhopSDK::Internal::Type::BaseModel
16
- attr_accessor id: String
17
-
18
- attr_accessor created_at: Time
19
-
20
- attr_accessor member: WhopSDK::Models::LeadRetrieveResponse::Member?
21
-
22
- attr_accessor metadata: ::Hash[Symbol, top]?
23
-
24
- attr_accessor product: WhopSDK::Models::LeadRetrieveResponse::Product?
25
-
26
- attr_accessor referrer: String?
27
-
28
- attr_accessor updated_at: Time
29
-
30
- attr_accessor user: WhopSDK::Models::LeadRetrieveResponse::User
31
-
32
- def initialize: (
33
- id: String,
34
- created_at: Time,
35
- member: WhopSDK::Models::LeadRetrieveResponse::Member?,
36
- metadata: ::Hash[Symbol, top]?,
37
- product: WhopSDK::Models::LeadRetrieveResponse::Product?,
38
- referrer: String?,
39
- updated_at: Time,
40
- user: WhopSDK::Models::LeadRetrieveResponse::User
41
- ) -> void
42
-
43
- def to_hash: -> {
44
- id: String,
45
- created_at: Time,
46
- member: WhopSDK::Models::LeadRetrieveResponse::Member?,
47
- metadata: ::Hash[Symbol, top]?,
48
- product: WhopSDK::Models::LeadRetrieveResponse::Product?,
49
- referrer: String?,
50
- updated_at: Time,
51
- user: WhopSDK::Models::LeadRetrieveResponse::User
52
- }
53
-
54
- type member = { id: String }
55
-
56
- class Member < WhopSDK::Internal::Type::BaseModel
57
- attr_accessor id: String
58
-
59
- def initialize: (id: String) -> void
60
-
61
- def to_hash: -> { id: String }
62
- end
63
-
64
- type product = { id: String, title: String }
65
-
66
- class Product < WhopSDK::Internal::Type::BaseModel
67
- attr_accessor id: String
68
-
69
- attr_accessor title: String
70
-
71
- def initialize: (id: String, title: String) -> void
72
-
73
- def to_hash: -> { id: String, title: String }
74
- end
75
-
76
- type user =
77
- { id: String, email: String?, name: String?, username: String }
78
-
79
- class User < WhopSDK::Internal::Type::BaseModel
80
- attr_accessor id: String
81
-
82
- attr_accessor email: String?
83
-
84
- attr_accessor name: String?
85
-
86
- attr_accessor username: String
87
-
88
- def initialize: (
89
- id: String,
90
- email: String?,
91
- name: String?,
92
- username: String
93
- ) -> void
94
-
95
- def to_hash: -> {
96
- id: String,
97
- email: String?,
98
- name: String?,
99
- username: String
100
- }
101
- end
102
- end
103
- end
104
- end