whop_sdk 2.4.0 → 2.6.0

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 (396) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +3 -3
  3. data/.fern/replay.lock +565 -1
  4. data/lib/whop_sdk/access_tokens/client.rb +2 -3
  5. data/lib/whop_sdk/account_links/client.rb +2 -2
  6. data/lib/whop_sdk/accounts/client.rb +74 -20
  7. data/lib/whop_sdk/accounts/fees/client.rb +5 -6
  8. data/lib/whop_sdk/accounts/financing_applications/client.rb +18 -24
  9. data/lib/whop_sdk/accounts/financing_applications/types/update_financing_applications_request_answers_item_money.rb +1 -0
  10. data/lib/whop_sdk/accounts/preferences/client.rb +1 -0
  11. data/lib/whop_sdk/accounts/preferences/types/retrieve_preferences_response.rb +2 -0
  12. data/lib/whop_sdk/accounts/preferences/types/retrieve_preferences_response_feedback_options_item.rb +17 -0
  13. data/lib/whop_sdk/accounts/preferences/types/retrieve_preferences_response_feedback_options_item_category.rb +21 -0
  14. data/lib/whop_sdk/accounts/preferences/types/update_preferences_request.rb +2 -0
  15. data/lib/whop_sdk/accounts/preferences/types/update_preferences_request_feedback_options_item.rb +17 -0
  16. data/lib/whop_sdk/accounts/preferences/types/update_preferences_request_feedback_options_item_category.rb +21 -0
  17. data/lib/whop_sdk/accounts/preferences/types/update_preferences_response.rb +2 -0
  18. data/lib/whop_sdk/accounts/preferences/types/update_preferences_response_feedback_options_item.rb +17 -0
  19. data/lib/whop_sdk/accounts/preferences/types/update_preferences_response_feedback_options_item_category.rb +21 -0
  20. data/lib/whop_sdk/accounts/types/form_company_accounts_request.rb +0 -6
  21. data/lib/whop_sdk/accounts/types/list_accounts_request.rb +2 -0
  22. data/lib/whop_sdk/accounts/types/post_account_financing_disabled_payload.rb +25 -0
  23. data/lib/whop_sdk/accounts/types/post_account_financing_disabled_payload_api_version.rb +13 -0
  24. data/lib/whop_sdk/accounts/types/post_account_financing_disabled_payload_type.rb +13 -0
  25. data/lib/whop_sdk/accounts/types/search_accounts_request.rb +23 -0
  26. data/lib/whop_sdk/accounts/types/search_accounts_request_direction.rb +14 -0
  27. data/lib/whop_sdk/accounts/types/search_accounts_request_order.rb +13 -0
  28. data/lib/whop_sdk/accounts/types/search_accounts_response.rb +13 -0
  29. data/lib/whop_sdk/accounts/types/search_accounts_response_page_info.rb +17 -0
  30. data/lib/whop_sdk/accounts/types/transfer_ownership_accounts_request.rb +2 -0
  31. data/lib/whop_sdk/accounts/types/update_accounts_request.rb +4 -6
  32. data/lib/whop_sdk/ad_campaigns/client.rb +4 -4
  33. data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_payment_failed_payload_data_delivery_status.rb +1 -0
  34. data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_updated_payload_data_delivery_status.rb +1 -0
  35. data/lib/whop_sdk/ad_conversion_value_rules/client.rb +11 -9
  36. data/lib/whop_sdk/ad_groups/client.rb +7 -11
  37. data/lib/whop_sdk/ads/client.rb +1 -2
  38. data/lib/whop_sdk/affiliates/client.rb +5 -5
  39. data/lib/whop_sdk/api_keys/client.rb +2 -2
  40. data/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +6 -0
  41. data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +6 -0
  42. data/lib/whop_sdk/app_builds/client.rb +2 -2
  43. data/lib/whop_sdk/app_builds/types/create_app_builds_request_attachment.rb +2 -1
  44. data/lib/whop_sdk/apps/client.rb +2 -4
  45. data/lib/whop_sdk/audiences/client.rb +5 -5
  46. data/lib/whop_sdk/authorized_users/client.rb +3 -4
  47. data/lib/whop_sdk/bounty_submissions/client.rb +7 -10
  48. data/lib/whop_sdk/bounty_submissions/types/submit_bounty_submissions_request_deliverable.rb +3 -1
  49. data/lib/whop_sdk/card_transactions/client.rb +5 -6
  50. data/lib/whop_sdk/cards/client.rb +4 -4
  51. data/lib/whop_sdk/cashback_rules/client.rb +16 -20
  52. data/lib/whop_sdk/chat_channels/client.rb +2 -2
  53. data/lib/whop_sdk/checkout_configurations/client.rb +2 -1
  54. data/lib/whop_sdk/claim_links/client.rb +8 -8
  55. data/lib/whop_sdk/client.rb +1 -6
  56. data/lib/whop_sdk/company_token_transactions/client.rb +3 -4
  57. data/lib/whop_sdk/confirmation_tokens/client.rb +3 -3
  58. data/lib/whop_sdk/course_lesson_interactions/client.rb +2 -1
  59. data/lib/whop_sdk/courses/client.rb +4 -2
  60. data/lib/whop_sdk/deposits/client.rb +5 -2
  61. data/lib/whop_sdk/deposits/types/create_deposits_request.rb +2 -0
  62. data/lib/whop_sdk/deposits/types/create_deposits_response_methods.rb +2 -0
  63. data/lib/whop_sdk/deposits/types/create_deposits_response_methods_card.rb +14 -0
  64. data/lib/whop_sdk/disputes/client.rb +44 -12
  65. data/lib/whop_sdk/disputes/types/accept_disputes_request.rb +11 -0
  66. data/lib/whop_sdk/dm_channels/client.rb +5 -6
  67. data/lib/whop_sdk/domains/client.rb +4 -0
  68. data/lib/whop_sdk/domains/types/create_domains_request.rb +4 -0
  69. data/lib/whop_sdk/domains/types/create_domains_request_apple_pay.rb +13 -0
  70. data/lib/whop_sdk/domains/types/create_domains_request_pixel.rb +12 -0
  71. data/lib/whop_sdk/domains/types/list_domains_request.rb +4 -0
  72. data/lib/whop_sdk/domains/types/list_domains_request_apple_pay.rb +17 -0
  73. data/lib/whop_sdk/domains/types/list_domains_request_order.rb +2 -0
  74. data/lib/whop_sdk/domains/types/list_domains_request_pixel.rb +17 -0
  75. data/lib/whop_sdk/domains/types/update_domains_request.rb +4 -0
  76. data/lib/whop_sdk/domains/types/update_domains_request_apple_pay.rb +13 -0
  77. data/lib/whop_sdk/domains/types/update_domains_request_pixel.rb +12 -0
  78. data/lib/whop_sdk/economic_intelligence/client.rb +6 -8
  79. data/lib/whop_sdk/events/client.rb +12 -16
  80. data/lib/whop_sdk/experiences/client.rb +15 -9
  81. data/lib/whop_sdk/experiments/client.rb +16 -29
  82. data/lib/whop_sdk/exports/client.rb +1 -1
  83. data/lib/whop_sdk/external_accounts/client.rb +3 -5
  84. data/lib/whop_sdk/external_accounts/types/connect_external_accounts_request_platform.rb +1 -0
  85. data/lib/whop_sdk/fee_markups/client.rb +5 -6
  86. data/lib/whop_sdk/feedback_submissions/client.rb +0 -1
  87. data/lib/whop_sdk/files/client.rb +2 -2
  88. data/lib/whop_sdk/financial_activity/types/list_financial_activity_request_line_types_item.rb +2 -0
  89. data/lib/whop_sdk/financial_reports/breakdown/client.rb +3 -1
  90. data/lib/whop_sdk/financial_reports/types/retrieve_financial_reports_request_line_types_item.rb +2 -0
  91. data/lib/whop_sdk/financial_reports/types/retrieve_financial_reports_response_rows_item_line_category.rb +2 -0
  92. data/lib/whop_sdk/forum_posts/client.rb +1 -1
  93. data/lib/whop_sdk/forums/client.rb +1 -1
  94. data/lib/whop_sdk/identity_profiles/client.rb +7 -4
  95. data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
  96. data/lib/whop_sdk/invoices/client.rb +1 -1
  97. data/lib/whop_sdk/leads/client.rb +3 -3
  98. data/lib/whop_sdk/members/client.rb +21 -1
  99. data/lib/whop_sdk/members/logs/client.rb +1 -1
  100. data/lib/whop_sdk/members/notes/client.rb +121 -0
  101. data/lib/whop_sdk/members/notes/types/create_notes_request.rb +15 -0
  102. data/lib/whop_sdk/members/notes/types/list_notes_request.rb +21 -0
  103. data/lib/whop_sdk/members/notes/types/list_notes_response.rb +15 -0
  104. data/lib/whop_sdk/members/notes/types/list_notes_response_page_info.rb +19 -0
  105. data/lib/whop_sdk/members/types/list_members_request.rb +10 -0
  106. data/lib/whop_sdk/members/types/list_members_request_membership_status.rb +14 -0
  107. data/lib/whop_sdk/members/types/list_members_request_most_recent_actions_item.rb +25 -0
  108. data/lib/whop_sdk/members/types/list_members_request_order.rb +1 -0
  109. data/lib/whop_sdk/memberships/client.rb +30 -28
  110. data/lib/whop_sdk/memberships/types/cancel_memberships_request.rb +2 -0
  111. data/lib/whop_sdk/memberships/types/list_memberships_request.rb +10 -0
  112. data/lib/whop_sdk/memberships/types/list_memberships_request_status.rb +4 -0
  113. data/lib/whop_sdk/memberships/types/list_memberships_request_statuses_item.rb +24 -0
  114. data/lib/whop_sdk/messages/client.rb +5 -7
  115. data/lib/whop_sdk/notifications/client.rb +6 -9
  116. data/lib/whop_sdk/partner_referral_requests/client.rb +3 -3
  117. data/lib/whop_sdk/partners/businesses/client.rb +147 -1
  118. data/lib/whop_sdk/partners/businesses/earnings/client.rb +2 -1
  119. data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_request_income_source_item.rb +1 -0
  120. data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_response_data_item_income_source.rb +1 -0
  121. data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_request.rb +21 -0
  122. data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_request_acknowledgments_item.rb +17 -0
  123. data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_response.rb +15 -0
  124. data/lib/whop_sdk/partners/businesses/types/list_businesses_request.rb +2 -0
  125. data/lib/whop_sdk/partners/businesses/types/list_businesses_request_advance_status.rb +23 -0
  126. data/lib/whop_sdk/partners/businesses/types/list_businesses_response_data_item.rb +2 -0
  127. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_request.rb +15 -0
  128. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response.rb +45 -0
  129. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_account.rb +26 -0
  130. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_blueprint_partner.rb +20 -0
  131. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_blueprint_partner_profile_picture.rb +14 -0
  132. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_earnings_usd.rb +17 -0
  133. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_first_tier_partner.rb +21 -0
  134. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_first_tier_partner_profile_picture.rb +14 -0
  135. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_my_partner_tier.rb +17 -0
  136. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_object.rb +15 -0
  137. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_owner.rb +22 -0
  138. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_owner_profile_picture.rb +14 -0
  139. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_payout_percentages.rb +22 -0
  140. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_pending_owner_invites_item.rb +15 -0
  141. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_second_tier_partner.rb +21 -0
  142. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_second_tier_partner_profile_picture.rb +14 -0
  143. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_status.rb +16 -0
  144. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_volume_usd.rb +19 -0
  145. data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response.rb +4 -0
  146. data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response_pending_owner_invites_item.rb +15 -0
  147. data/lib/whop_sdk/partners/businesses/types/update_businesses_request.rb +17 -0
  148. data/lib/whop_sdk/partners/businesses/types/update_businesses_response.rb +15 -0
  149. data/lib/whop_sdk/partners/client.rb +44 -11
  150. data/lib/whop_sdk/partners/types/fee_options_partners_response.rb +13 -0
  151. data/lib/whop_sdk/partners/types/{referred_users_partners_request_user_id.rb → fee_options_partners_response_object.rb} +2 -2
  152. data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item.rb +19 -0
  153. data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_fee.rb +18 -0
  154. data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_fee_regions_item.rb +15 -0
  155. data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_income_stream.rb +20 -0
  156. data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_unadjustable_reason.rb +16 -0
  157. data/lib/whop_sdk/partners/types/referred_users_partners_request.rb +0 -2
  158. data/lib/whop_sdk/payment_method_domains/client.rb +13 -8
  159. data/lib/whop_sdk/payment_methods/client.rb +4 -5
  160. data/lib/whop_sdk/payment_quotes/client.rb +8 -10
  161. data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request.rb +2 -2
  162. data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request_line_items_item.rb +13 -0
  163. data/lib/whop_sdk/payment_rules/client.rb +19 -8
  164. data/lib/whop_sdk/payments/client.rb +26 -24
  165. data/lib/whop_sdk/payments/direct/client.rb +5 -6
  166. data/lib/whop_sdk/payments/direct/types/create_direct_request.rb +2 -2
  167. data/lib/whop_sdk/payments/direct/types/create_direct_request_line_items_item.rb +15 -0
  168. data/lib/whop_sdk/payments/types/create_payments_request.rb +2 -2
  169. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item.rb +13 -0
  170. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan.rb +46 -0
  171. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_currency.rb +102 -0
  172. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_override_tax_type.rb +15 -0
  173. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_plan_type.rb +14 -0
  174. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product.rb +34 -0
  175. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product_global_affiliate_status.rb +14 -0
  176. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product_visibility.rb +16 -0
  177. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_visibility.rb +16 -0
  178. data/lib/whop_sdk/payments/types/refund_payments_request.rb +2 -0
  179. data/lib/whop_sdk/payments/types/resume_payments_request.rb +2 -0
  180. data/lib/whop_sdk/payout_methods/client.rb +1 -1
  181. data/lib/whop_sdk/payouts/client.rb +17 -12
  182. data/lib/whop_sdk/payouts/methods/client.rb +2 -2
  183. data/lib/whop_sdk/payouts/methods/types/create_methods_request.rb +2 -0
  184. data/lib/whop_sdk/payouts/methods/types/list_methods_response_limits_standard_error_code.rb +1 -1
  185. data/lib/whop_sdk/payouts/paypal_link_sessions/client.rb +67 -0
  186. data/lib/whop_sdk/payouts/paypal_link_sessions/types/create_paypal_link_sessions_request.rb +21 -0
  187. data/lib/whop_sdk/payouts/paypal_link_sessions/types/create_paypal_link_sessions_response.rb +15 -0
  188. data/lib/whop_sdk/payouts/supported_methods/client.rb +2 -1
  189. data/lib/whop_sdk/payouts/supported_methods/types/list_supported_methods_response_data_item.rb +2 -0
  190. data/lib/whop_sdk/payouts/types/cancel_payouts_response.rb +2 -0
  191. data/lib/whop_sdk/payouts/types/create_payouts_response.rb +2 -0
  192. data/lib/whop_sdk/payouts/types/list_payouts_response_data_item.rb +2 -0
  193. data/lib/whop_sdk/payouts/types/post_payout_created_payload_data.rb +2 -0
  194. data/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data.rb +2 -0
  195. data/lib/whop_sdk/payouts/types/post_payout_updated_payload_data.rb +2 -0
  196. data/lib/whop_sdk/payouts/types/retrieve_payouts_response.rb +2 -0
  197. data/lib/whop_sdk/people/client.rb +3 -5
  198. data/lib/whop_sdk/plans/client.rb +1 -1
  199. data/lib/whop_sdk/products/client.rb +2 -2
  200. data/lib/whop_sdk/promo_codes/client.rb +1 -1
  201. data/lib/whop_sdk/refunds/client.rb +1 -2
  202. data/lib/whop_sdk/reviews/client.rb +59 -19
  203. data/lib/whop_sdk/reviews/types/delete_reviews_request.rb +11 -0
  204. data/lib/whop_sdk/reviews/types/delete_reviews_response.rb +13 -0
  205. data/lib/whop_sdk/reviews/types/list_reviews_request.rb +14 -8
  206. data/lib/whop_sdk/reviews/types/list_reviews_request_direction.rb +14 -0
  207. data/lib/whop_sdk/reviews/types/list_reviews_request_order.rb +14 -0
  208. data/lib/whop_sdk/reviews/types/list_reviews_response.rb +1 -2
  209. data/lib/whop_sdk/reviews/types/list_reviews_response_page_info.rb +17 -0
  210. data/lib/whop_sdk/setup_intents/client.rb +8 -10
  211. data/lib/whop_sdk/setup_intents/direct/client.rb +6 -7
  212. data/lib/whop_sdk/setup_intents/types/create_setup_intents_request.rb +2 -0
  213. data/lib/whop_sdk/shipments/client.rb +2 -2
  214. data/lib/whop_sdk/social_accounts/types/connect_social_accounts_request_platform.rb +1 -0
  215. data/lib/whop_sdk/stats/client.rb +4 -3
  216. data/lib/whop_sdk/stats/reports/client.rb +8 -10
  217. data/lib/whop_sdk/stats/reports/types/platform_trends_reports_request.rb +2 -0
  218. data/lib/whop_sdk/stats/reports/types/platform_trends_reports_request_breakdown_by.rb +1 -0
  219. data/lib/whop_sdk/stats/reports/types/platform_trends_reports_response_data_reports_item_rows_item.rb +2 -0
  220. data/lib/whop_sdk/stats/reports/types/platform_trends_reports_response_data_reports_item_rows_item_product_category.rb +15 -0
  221. data/lib/whop_sdk/stats/time_series/client.rb +5 -8
  222. data/lib/whop_sdk/stats/time_series/types/retrieve_time_series_request.rb +2 -0
  223. data/lib/whop_sdk/stats/types/retrieve_stats_request.rb +2 -0
  224. data/lib/whop_sdk/support_channels/client.rb +14 -4
  225. data/lib/whop_sdk/support_channels/types/list_support_channels_request.rb +10 -0
  226. data/lib/whop_sdk/swaps/client.rb +6 -6
  227. data/lib/whop_sdk/team_members/client.rb +16 -10
  228. data/lib/whop_sdk/team_members/types/list_team_members_request.rb +8 -0
  229. data/lib/whop_sdk/trades/client.rb +6 -8
  230. data/lib/whop_sdk/trades/types/create_trades_request.rb +21 -1
  231. data/lib/whop_sdk/trades/types/create_trades_request_instrument_type.rb +14 -0
  232. data/lib/whop_sdk/trades/types/create_trades_request_order_type.rb +14 -0
  233. data/lib/whop_sdk/trades/types/create_trades_request_side.rb +14 -0
  234. data/lib/whop_sdk/trades/types/create_trades_request_type.rb +3 -1
  235. data/lib/whop_sdk/trades/types/list_trades_request_type.rb +3 -1
  236. data/lib/whop_sdk/transfers/client.rb +6 -3
  237. data/lib/whop_sdk/transfers/types/create_transfers_request_body_balance.rb +2 -2
  238. data/lib/whop_sdk/types/account.rb +8 -4
  239. data/lib/whop_sdk/types/account_level.rb +19 -0
  240. data/lib/whop_sdk/types/account_payment_controls_restricted_payment_methods_item.rb +39 -0
  241. data/lib/whop_sdk/types/account_preferences.rb +2 -0
  242. data/lib/whop_sdk/types/account_required_action_action.rb +1 -0
  243. data/lib/whop_sdk/types/account_search_result.rb +15 -0
  244. data/lib/whop_sdk/types/ad_campaign_delivery_status.rb +1 -0
  245. data/lib/whop_sdk/types/api_key_api_version_date.rb +6 -0
  246. data/lib/whop_sdk/types/cancel_options.rb +1 -0
  247. data/lib/whop_sdk/types/dispute.rb +2 -0
  248. data/lib/whop_sdk/types/dispute_evidence_document.rb +12 -0
  249. data/lib/whop_sdk/types/domain.rb +6 -0
  250. data/lib/whop_sdk/types/domain_apple_pay.rb +9 -0
  251. data/lib/whop_sdk/types/domain_apple_pay_state.rb +14 -0
  252. data/lib/whop_sdk/types/domain_issue.rb +2 -0
  253. data/lib/whop_sdk/types/domain_issue_capability.rb +2 -0
  254. data/lib/whop_sdk/types/domain_issue_code.rb +6 -2
  255. data/lib/whop_sdk/types/domain_list_item.rb +6 -0
  256. data/lib/whop_sdk/types/domain_pixel.rb +9 -0
  257. data/lib/whop_sdk/types/domain_pixel_state.rb +13 -0
  258. data/lib/whop_sdk/types/domain_stats.rb +9 -0
  259. data/lib/whop_sdk/types/domain_website.rb +1 -1
  260. data/lib/whop_sdk/types/domain_website_app.rb +11 -0
  261. data/lib/whop_sdk/types/feedback_option.rb +13 -0
  262. data/lib/whop_sdk/types/feedback_option_category.rb +17 -0
  263. data/lib/whop_sdk/types/file.rb +12 -0
  264. data/lib/whop_sdk/types/financing_access_change.rb +19 -0
  265. data/lib/whop_sdk/types/financing_access_change_disabled_payment_methods_item.rb +33 -0
  266. data/lib/whop_sdk/types/financing_access_change_object.rb +11 -0
  267. data/lib/whop_sdk/types/financing_access_change_provider.rb +15 -0
  268. data/lib/whop_sdk/types/financing_access_change_reason.rb +11 -0
  269. data/lib/whop_sdk/types/ledger_activity_line_type.rb +2 -0
  270. data/lib/whop_sdk/types/member.rb +10 -0
  271. data/lib/whop_sdk/types/member_most_recent_action.rb +23 -0
  272. data/lib/whop_sdk/types/member_note.rb +19 -0
  273. data/lib/whop_sdk/types/membership.rb +24 -0
  274. data/lib/whop_sdk/types/membership_cancel_option.rb +18 -0
  275. data/lib/whop_sdk/types/membership_collection_method.rb +12 -0
  276. data/lib/whop_sdk/types/membership_feedback_option.rb +9 -0
  277. data/lib/whop_sdk/types/membership_legacy.rb +2 -0
  278. data/lib/whop_sdk/types/membership_legacy_feedback_option.rb +11 -0
  279. data/lib/whop_sdk/types/membership_list_item.rb +2 -0
  280. data/lib/whop_sdk/types/membership_list_item_feedback_option.rb +11 -0
  281. data/lib/whop_sdk/types/membership_most_recent_action.rb +21 -0
  282. data/lib/whop_sdk/types/membership_product.rb +13 -0
  283. data/lib/whop_sdk/types/owner_level.rb +17 -0
  284. data/lib/whop_sdk/types/owner_level_points.rb +13 -0
  285. data/lib/whop_sdk/types/partner_advance.rb +41 -0
  286. data/lib/whop_sdk/types/partner_advance_status.rb +18 -0
  287. data/lib/whop_sdk/types/payment.rb +2 -0
  288. data/lib/whop_sdk/types/payment_input.rb +1 -4
  289. data/lib/whop_sdk/types/payment_input_plan.rb +2 -0
  290. data/lib/whop_sdk/types/payment_method_list_item_us_bank_account_payment_method_us_bank_account.rb +3 -3
  291. data/lib/whop_sdk/types/payment_method_types.rb +3 -0
  292. data/lib/whop_sdk/types/payment_method_us_bank_account_payment_method_us_bank_account.rb +3 -3
  293. data/lib/whop_sdk/types/payment_rule_condition_value.rb +2 -2
  294. data/lib/whop_sdk/types/permission_action.rb +5 -0
  295. data/lib/whop_sdk/types/refund.rb +2 -0
  296. data/lib/whop_sdk/types/refund_legacy.rb +2 -0
  297. data/lib/whop_sdk/types/refund_list_item.rb +2 -0
  298. data/lib/whop_sdk/types/review.rb +2 -3
  299. data/lib/whop_sdk/types/{review_company.rb → review_account.rb} +1 -2
  300. data/lib/whop_sdk/types/{review_attachments_item.rb → review_attachment.rb} +1 -2
  301. data/lib/whop_sdk/types/review_list_item.rb +3 -4
  302. data/lib/whop_sdk/types/review_list_item_status.rb +11 -0
  303. data/lib/whop_sdk/types/review_product.rb +0 -1
  304. data/lib/whop_sdk/types/review_user.rb +0 -1
  305. data/lib/whop_sdk/types/support_channel.rb +8 -0
  306. data/lib/whop_sdk/types/support_channel_last_message.rb +23 -0
  307. data/lib/whop_sdk/types/{review_list_item_attachments_item.rb → support_channel_last_message_attachments_item.rb} +1 -5
  308. data/lib/whop_sdk/types/support_channel_last_message_gifs_item.rb +10 -0
  309. data/lib/whop_sdk/types/support_channel_last_message_poll.rb +10 -0
  310. data/lib/whop_sdk/types/support_channel_last_message_poll_options_item.rb +10 -0
  311. data/lib/whop_sdk/types/support_channel_list_item.rb +8 -0
  312. data/lib/whop_sdk/types/support_channel_list_item_last_message.rb +23 -0
  313. data/lib/whop_sdk/types/support_channel_list_item_last_message_attachments_item.rb +12 -0
  314. data/lib/whop_sdk/types/support_channel_list_item_last_message_gifs_item.rb +10 -0
  315. data/lib/whop_sdk/types/support_channel_list_item_last_message_poll.rb +10 -0
  316. data/lib/whop_sdk/types/support_channel_list_item_last_message_poll_options_item.rb +10 -0
  317. data/lib/whop_sdk/types/team_member.rb +4 -0
  318. data/lib/whop_sdk/types/trade.rb +17 -1
  319. data/lib/whop_sdk/types/trade_failure_code.rb +1 -0
  320. data/lib/whop_sdk/types/trade_instrument_type.rb +12 -0
  321. data/lib/whop_sdk/types/trade_order_type.rb +12 -0
  322. data/lib/whop_sdk/types/trade_side.rb +12 -0
  323. data/lib/whop_sdk/types/trade_status_detail.rb +0 -3
  324. data/lib/whop_sdk/types/trade_type.rb +3 -1
  325. data/lib/whop_sdk/types/user.rb +7 -1
  326. data/lib/whop_sdk/types/user_fees.rb +17 -0
  327. data/lib/whop_sdk/types/user_social_link.rb +15 -0
  328. data/lib/whop_sdk/types/user_social_link_website.rb +18 -0
  329. data/lib/whop_sdk/types/webhook_event.rb +4 -0
  330. data/lib/whop_sdk/types/webhook_events_item.rb +4 -0
  331. data/lib/whop_sdk/types/webhook_list_item_events_item.rb +4 -0
  332. data/lib/whop_sdk/types/webhook_testable_events_item.rb +4 -0
  333. data/lib/whop_sdk/users/client.rb +18 -18
  334. data/lib/whop_sdk/users/fees/client.rb +59 -0
  335. data/lib/whop_sdk/users/fees/types/retrieve_fees_request.rb +13 -0
  336. data/lib/whop_sdk/users/oauth_grants/client.rb +9 -11
  337. data/lib/whop_sdk/users/passkeys/client.rb +3 -3
  338. data/lib/whop_sdk/users/preferences/client.rb +1 -2
  339. data/lib/whop_sdk/users/preferences/notifications/client.rb +4 -13
  340. data/lib/whop_sdk/users/preferences/notifications/topics/client.rb +2 -2
  341. data/lib/whop_sdk/users/preferences/notifications/types/set_notifications_request_preferences_item_scope.rb +3 -1
  342. data/lib/whop_sdk/variants/client.rb +10 -9
  343. data/lib/whop_sdk/verifications/client.rb +16 -11
  344. data/lib/whop_sdk/verifications/types/create_verifications_request_body_business.rb +8 -0
  345. data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_documents.rb +18 -0
  346. data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item.rb +38 -0
  347. data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_address.rb +22 -0
  348. data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_document_type.rb +16 -0
  349. data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_documents.rb +30 -0
  350. data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_roles_item.rb +16 -0
  351. data/lib/whop_sdk/verifications/types/create_verifications_request_body_individual_document_type.rb +4 -4
  352. data/lib/whop_sdk/verifications/types/create_verifications_response.rb +4 -0
  353. data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item.rb +23 -0
  354. data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_required_documents_item.rb +15 -0
  355. data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_required_documents_item_status.rb +14 -0
  356. data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_roles_item.rb +16 -0
  357. data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_status.rb +19 -0
  358. data/lib/whop_sdk/verifications/types/list_verifications_response_data_item.rb +4 -0
  359. data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item.rb +23 -0
  360. data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_required_documents_item.rb +15 -0
  361. data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_required_documents_item_status.rb +14 -0
  362. data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_roles_item.rb +16 -0
  363. data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_status.rb +19 -0
  364. data/lib/whop_sdk/verifications/types/retrieve_verifications_response.rb +4 -0
  365. data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item.rb +23 -0
  366. data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_required_documents_item.rb +15 -0
  367. data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_required_documents_item_status.rb +14 -0
  368. data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_roles_item.rb +16 -0
  369. data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_status.rb +19 -0
  370. data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address.rb +10 -0
  371. data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_documents.rb +18 -0
  372. data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item.rb +43 -0
  373. data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_address.rb +22 -0
  374. data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_document_type.rb +16 -0
  375. data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_documents.rb +30 -0
  376. data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_roles_item.rb +16 -0
  377. data/lib/whop_sdk/verifications/types/update_verifications_response.rb +4 -0
  378. data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item.rb +23 -0
  379. data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_required_documents_item.rb +15 -0
  380. data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_required_documents_item_status.rb +14 -0
  381. data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_roles_item.rb +16 -0
  382. data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_status.rb +19 -0
  383. data/lib/whop_sdk/version.rb +1 -1
  384. data/lib/whop_sdk/waitlist_entries/client.rb +14 -14
  385. data/lib/whop_sdk/webhooks/client.rb +11 -12
  386. data/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb +4 -0
  387. data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +4 -0
  388. data/lib/whop_sdk.rb +168 -12
  389. data/reference.md +1803 -575
  390. metadata +168 -12
  391. data/lib/whop_sdk/topups/client.rb +0 -64
  392. data/lib/whop_sdk/topups/types/create_topups_request.rb +0 -17
  393. data/lib/whop_sdk/types/payment_input_line_items_item.rb +0 -11
  394. data/lib/whop_sdk/types/review_list_item_user.rb +0 -14
  395. data/lib/whop_sdk/types/topup.rb +0 -23
  396. data/lib/whop_sdk/types/user_staff_access.rb +0 -15
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Reviews
5
+ module Types
6
+ module ListReviewsRequestDirection
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ ASC = "asc"
10
+ DESC = "desc"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Reviews
5
+ module Types
6
+ module ListReviewsRequestOrder
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ CREATED_AT = "created_at"
10
+ STARS = "stars"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -3,11 +3,10 @@
3
3
  module Whop_sdk
4
4
  module Reviews
5
5
  module Types
6
- # The connection type for Review.
7
6
  class ListReviewsResponse < Internal::Types::Model
8
7
  field :data, -> { Internal::Types::Array[Whop_sdk::Types::ReviewListItem] }, optional: false, nullable: false
9
8
 
10
- field :page_info, -> { Whop_sdk::Types::PageInfo }, optional: false, nullable: false
9
+ field :page_info, -> { Whop_sdk::Reviews::Types::ListReviewsResponsePageInfo }, optional: false, nullable: false
11
10
  end
12
11
  end
13
12
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Reviews
5
+ module Types
6
+ class ListReviewsResponsePageInfo < Internal::Types::Model
7
+ field :end_cursor, -> { String }, optional: false, nullable: true
8
+
9
+ field :has_next_page, -> { Internal::Types::Boolean }, optional: false, nullable: false
10
+
11
+ field :has_previous_page, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+
13
+ field :start_cursor, -> { String }, optional: false, nullable: true
14
+ end
15
+ end
16
+ end
17
+ end
@@ -15,8 +15,7 @@ module Whop_sdk
15
15
  end
16
16
 
17
17
  # Lists setup intents newest first. An account API key lists its own account; a user token lists every account it
18
- # can read, or one account with `account_id`. `client_secret` is always null on list rows — retrieve the setup
19
- # intent for it.
18
+ # can read, or one account with `account_id`.
20
19
  #
21
20
  # @param request_options [Hash]
22
21
  # @param params [Hash]
@@ -83,12 +82,11 @@ module Whop_sdk
83
82
  end
84
83
  end
85
84
 
86
- # Saves a buyer's payment method for later without charging it. Pass a `confirmation_token` for a method the buyer
87
- # just supplied through the payment elements in setup mode, or a `payment_method_id` already on file to re-verify
88
- # it. The response is the setup intent as created, not its outcome: it is `processing` while the payment method is
89
- # saved in the background, and `requires_action` when the buyer still has a step. Hand `client_secret` to the
90
- # elements' `handleNextAction`, or poll Retrieve setup status, for the outcome. A buyer's own token holding
91
- # `member:payment_methods:use` may create a setup intent for itself from a confirmation token.
85
+ # Saves a buyer's payment method for later without charging it — one the buyer just supplied through the payment
86
+ # elements in setup mode, or one already on file to re-verify. The setup completes in the background, so the
87
+ # response is the setup intent as created, not its outcome: hand `client_secret` to the elements'
88
+ # `handleNextAction`, or poll Retrieve setup status. A buyer's own token holding `member:payment_methods:use` may
89
+ # create a setup intent for itself from a confirmation token.
92
90
  #
93
91
  # @param request_options [Hash]
94
92
  # @param params [Whop_sdk::SetupIntents::Types::CreateSetupIntentsRequest]
@@ -125,8 +123,8 @@ module Whop_sdk
125
123
  end
126
124
  end
127
125
 
128
- # Returns one setup intent. Related records are ids — once `status` is `succeeded`, `payment_method_id` is the
129
- # saved method to charge or retrieve. The buyer's own token may retrieve a setup intent that belongs to it.
126
+ # Retrieves a setup intent. Once its `status` is `succeeded`, charge the saved method by its `payment_method_id`.
127
+ # The buyer's own token may retrieve a setup intent that belongs to it.
130
128
  #
131
129
  # @param request_options [Hash]
132
130
  # @param params [Hash]
@@ -15,13 +15,12 @@ module Whop_sdk
15
15
  @environment = environment
16
16
  end
17
17
 
18
- # Saves a card for later charges from card details the caller holds itself, for integrators whose own systems
19
- # are PCI compliant. Card details are accepted only on the vault host, where the card is tokenized before it
20
- # reaches Whop; the official SDKs route this operation there, and raw card details sent to the regular host are
21
- # refused. (Whop's own clients, which tokenize with the Basis Theory SDK, send the resulting token intent id to
22
- # the regular host.) The setup runs in the background: poll Retrieve setup status for its outcome and for
23
- # anything the buyer must still do, such as 3D Secure. Once it succeeds, the saved payment method arrives on the
24
- # `setup_intent.succeeded` webhook and in List payment methods for the member.
18
+ # Saves a card for later charges from card details you hold yourself, for integrators whose own systems are PCI
19
+ # compliant. Send this operation to the vault host, which tokenizes the card before it reaches Whop; the
20
+ # official SDKs route it there, and raw card details sent to the regular host are refused. The setup runs in the
21
+ # background: poll Retrieve setup status for its outcome and for anything the buyer must still do, such as 3D
22
+ # Secure. Once it succeeds, the saved payment method arrives on the `setup_intent.succeeded` webhook and in List
23
+ # payment methods for the member.
25
24
  #
26
25
  # @param request_options [Hash]
27
26
  # @param params [Whop_sdk::SetupIntents::Direct::Types::CreateDirectRequest]
@@ -14,6 +14,8 @@ module Whop_sdk
14
14
 
15
15
  field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
16
16
 
17
+ field :owner_id, -> { String }, optional: true, nullable: false
18
+
17
19
  field :payment_method_id, -> { String }, optional: true, nullable: false
18
20
 
19
21
  field :purpose, -> { Whop_sdk::SetupIntents::Types::CreateSetupIntentsRequestPurpose }, optional: true, nullable: false
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of shipments for an account.
17
+ # Lists an account's shipments.
18
18
  #
19
19
  # @param request_options [Hash]
20
20
  # @param params [Hash]
@@ -123,7 +123,7 @@ module Whop_sdk
123
123
  end
124
124
  end
125
125
 
126
- # Retrieves a shipment by its id, or by the payment id it fulfills.
126
+ # Retrieves a shipment by its ID, or by the ID of the payment it fulfills.
127
127
  #
128
128
  # @param request_options [Hash]
129
129
  # @param params [Hash]
@@ -10,6 +10,7 @@ module Whop_sdk
10
10
  TIKTOK = "tiktok"
11
11
  LINKEDIN = "linkedin"
12
12
  YOUTUBE = "youtube"
13
+ X = "x"
13
14
  SNAPCHAT = "snapchat"
14
15
  end
15
16
  end
@@ -14,9 +14,8 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Deprecated. Lists every metric, which no longer says which of them a projection accepts. List the ones you can
18
- # chart with `GET /stats/time_series`. Aggregates that are not bucketed over time are reports, listed at `GET
19
- # /stats/reports`.
17
+ # Deprecated. Lists every metric without saying which ones you can chart. List chartable metrics with `GET
18
+ # /stats/time_series`, and aggregates that are not bucketed over time with `GET /stats/reports`.
20
19
  #
21
20
  # @param request_options [Hash]
22
21
  # @param _params [Hash]
@@ -98,6 +97,7 @@ module Whop_sdk
98
97
  # @option params [String, nil] :event
99
98
  # @option params [String, nil] :business_type
100
99
  # @option params [String, nil] :industry_type
100
+ # @option params [String, nil] :product_category
101
101
  # @option params [String, nil] :issuer
102
102
  # @option params [String, nil] :conversion_window
103
103
  # @option params [Boolean, nil] :mature_only
@@ -183,6 +183,7 @@ module Whop_sdk
183
183
  query_params["event"] = params[:event] if params.key?(:event)
184
184
  query_params["business_type"] = params[:business_type] if params.key?(:business_type)
185
185
  query_params["industry_type"] = params[:industry_type] if params.key?(:industry_type)
186
+ query_params["product_category"] = params[:product_category] if params.key?(:product_category)
186
187
  query_params["issuer"] = params[:issuer] if params.key?(:issuer)
187
188
  query_params["conversion_window"] = params[:conversion_window] if params.key?(:conversion_window)
188
189
  query_params["mature_only"] = params[:mature_only] if params.key?(:mature_only)
@@ -15,11 +15,9 @@ module Whop_sdk
15
15
  @environment = environment
16
16
  end
17
17
 
18
- # Lists every report: the aggregates that are not bucketed over time. Each entry names the report's path, its
19
- # window kind, the breakdowns it accepts and its columns. A property column is an attribute of the row and lists
20
- # the breakdowns it can ride along with. A metric column is a number measured over the row, with the unit that
21
- # sets its JSON type, the aggregate that says how to combine it across rows, and the breakdowns and windows it
22
- # supports. For a bucketed series, use `GET /stats/time_series`.
18
+ # Lists every report: the aggregates that are not bucketed over time, with the breakdowns and columns each one
19
+ # accepts. Use it to discover what a report can return before you retrieve it. For a bucketed series, use `GET
20
+ # /stats/time_series`.
23
21
  #
24
22
  # @param request_options [Hash]
25
23
  # @param _params [Hash]
@@ -54,11 +52,9 @@ module Whop_sdk
54
52
  end
55
53
  end
56
54
 
57
- # Payments across all of Whop, for up to four windows at once. Break rows down by business type, industry type,
58
- # account country or customer country, and let the business type ride along on industry type rows. The report
59
- # covers the whole platform, so it takes no `account_id` and any authenticated caller can read it. A breakdown
60
- # value with fewer than three businesses behind it is left out, and a filtered total that small comes back with
61
- # every metric `null`.
55
+ # Retrieves payments across all of Whop for up to four windows at once, optionally broken down by business type,
56
+ # industry type, product category, account country or customer country. The report covers the whole platform, so
57
+ # it takes no `account_id` and any authenticated caller can read it.
62
58
  #
63
59
  # @param request_options [Hash]
64
60
  # @param params [Hash]
@@ -76,6 +72,7 @@ module Whop_sdk
76
72
  # @option params [String, nil] :convert_to
77
73
  # @option params [String, nil] :business_type
78
74
  # @option params [String, nil] :industry_type
75
+ # @option params [String, nil] :product_category
79
76
  # @option params [String, nil] :account_country
80
77
  # @option params [String, nil] :customer_country
81
78
  # @option params [Integer, nil] :first
@@ -97,6 +94,7 @@ module Whop_sdk
97
94
  query_params["convert_to"] = params[:convert_to] if params.key?(:convert_to)
98
95
  query_params["business_type"] = params[:business_type] if params.key?(:business_type)
99
96
  query_params["industry_type"] = params[:industry_type] if params.key?(:industry_type)
97
+ query_params["product_category"] = params[:product_category] if params.key?(:product_category)
100
98
  query_params["account_country"] = params[:account_country] if params.key?(:account_country)
101
99
  query_params["customer_country"] = params[:customer_country] if params.key?(:customer_country)
102
100
  query_params["first"] = params[:first] if params.key?(:first)
@@ -23,6 +23,8 @@ module Whop_sdk
23
23
 
24
24
  field :industry_type, -> { String }, optional: true, nullable: false
25
25
 
26
+ field :product_category, -> { String }, optional: true, nullable: false
27
+
26
28
  field :account_country, -> { String }, optional: true, nullable: false
27
29
 
28
30
  field :customer_country, -> { String }, optional: true, nullable: false
@@ -9,6 +9,7 @@ module Whop_sdk
9
9
 
10
10
  BUSINESS_TYPE = "business_type"
11
11
  INDUSTRY_TYPE = "industry_type"
12
+ PRODUCT_CATEGORY = "product_category"
12
13
  ACCOUNT_COUNTRY = "account_country"
13
14
  CUSTOMER_COUNTRY = "customer_country"
14
15
  end
@@ -33,6 +33,8 @@ module Whop_sdk
33
33
 
34
34
  field :payments, -> { Integer }, optional: true, nullable: false
35
35
 
36
+ field :product_category, -> { Whop_sdk::Stats::Reports::Types::PlatformTrendsReportsResponseDataReportsItemRowsItemProductCategory }, optional: true, nullable: false
37
+
36
38
  field :repeat_rate, -> { Integer }, optional: true, nullable: false
37
39
  end
38
40
  end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Stats
5
+ module Reports
6
+ module Types
7
+ class PlatformTrendsReportsResponseDataReportsItemRowsItemProductCategory < Internal::Types::Model
8
+ field :id, -> { String }, optional: false, nullable: false
9
+
10
+ field :name, -> { String }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -51,14 +51,9 @@ module Whop_sdk
51
51
  end
52
52
  end
53
53
 
54
- # Retrieves a metric as a time series of points for an account or user over a time range. For an aggregate that
55
- # is not bucketed over time, use a report from `GET /stats/reports`. The `market_prices` metric is public and
56
- # requires no authentication. The `funnel` metric measures 2 to 10 ordered events per person. Its first matching
57
- # event inside from/to anchors the cohort, breakdown and conversion window; later entries do not restart it.
58
- # Intervening events are allowed, and conversions may occur after to. Funnel values are final conversion
59
- # percentages; steps include counts and cumulative conversion percentages. Experiment funnels use
60
- # experiment.exposure as step 1 and breakdown_by=variant. Pass steps using bracket parameters such as
61
- # steps[1][event]=pixel.page&steps[1][page]=/pricing*&steps[2][event]=payment.completed.
54
+ # Retrieves a metric as a series of points over a time range for an account or user. For an aggregate that is
55
+ # not bucketed over time, use a report from `GET /stats/reports`. The `market_prices` metric is public and
56
+ # requires no authentication.
62
57
  #
63
58
  # @param request_options [Hash]
64
59
  # @param params [Hash]
@@ -104,6 +99,7 @@ module Whop_sdk
104
99
  # @option params [String, nil] :event
105
100
  # @option params [String, nil] :business_type
106
101
  # @option params [String, nil] :industry_type
102
+ # @option params [String, nil] :product_category
107
103
  # @option params [String, nil] :issuer
108
104
  # @option params [String, nil] :conversion_window
109
105
  # @option params [Boolean, nil] :mature_only
@@ -189,6 +185,7 @@ module Whop_sdk
189
185
  query_params["event"] = params[:event] if params.key?(:event)
190
186
  query_params["business_type"] = params[:business_type] if params.key?(:business_type)
191
187
  query_params["industry_type"] = params[:industry_type] if params.key?(:industry_type)
188
+ query_params["product_category"] = params[:product_category] if params.key?(:product_category)
192
189
  query_params["issuer"] = params[:issuer] if params.key?(:issuer)
193
190
  query_params["conversion_window"] = params[:conversion_window] if params.key?(:conversion_window)
194
191
  query_params["mature_only"] = params[:mature_only] if params.key?(:mature_only)
@@ -79,6 +79,8 @@ module Whop_sdk
79
79
 
80
80
  field :industry_type, -> { String }, optional: true, nullable: false
81
81
 
82
+ field :product_category, -> { String }, optional: true, nullable: false
83
+
82
84
  field :issuer, -> { String }, optional: true, nullable: false
83
85
 
84
86
  field :conversion_window, -> { String }, optional: true, nullable: false
@@ -78,6 +78,8 @@ module Whop_sdk
78
78
 
79
79
  field :industry_type, -> { String }, optional: true, nullable: false
80
80
 
81
+ field :product_category, -> { String }, optional: true, nullable: false
82
+
81
83
  field :issuer, -> { String }, optional: true, nullable: false
82
84
 
83
85
  field :conversion_window, -> { String }, optional: true, nullable: false
@@ -14,8 +14,8 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of support channels for a specific company, with optional filtering by resolution
18
- # status and custom sorting.
17
+ # Lists support channels between an account's team and its customers, most recently active first by default. Pass
18
+ # `open=true` to find channels awaiting a support response.
19
19
  #
20
20
  # Required permissions:
21
21
  # - `support_chat:read`
@@ -33,6 +33,11 @@ module Whop_sdk
33
33
  # @option params [Integer, nil] :last
34
34
  # @option params [Whop_sdk::Types::SupportChannelView, nil] :view
35
35
  # @option params [Boolean, nil] :open
36
+ # @option params [String, nil] :customer_user_id
37
+ # @option params [String, nil] :customer_user_ids
38
+ # @option params [Boolean, nil] :participated
39
+ # @option params [Boolean, nil] :include_last_message
40
+ # @option params [Boolean, nil] :include_participated
36
41
  # @option params [Whop_sdk::Types::Direction, nil] :direction
37
42
  # @option params [Whop_sdk::Types::MessageChannelOrder, nil] :order
38
43
  # @option params [String, nil] :account_id
@@ -54,6 +59,11 @@ module Whop_sdk
54
59
  query_params["last"] = params[:last] if params.key?(:last)
55
60
  query_params["view"] = params[:view] if params.key?(:view)
56
61
  query_params["open"] = params[:open] if params.key?(:open)
62
+ query_params["customer_user_id"] = params[:customer_user_id] if params.key?(:customer_user_id)
63
+ query_params["customer_user_ids"] = params[:customer_user_ids] if params.key?(:customer_user_ids)
64
+ query_params["participated"] = params[:participated] if params.key?(:participated)
65
+ query_params["include_last_message"] = params[:include_last_message] if params.key?(:include_last_message)
66
+ query_params["include_participated"] = params[:include_participated] if params.key?(:include_participated)
57
67
  query_params["direction"] = params[:direction] if params.key?(:direction)
58
68
  query_params["order"] = params[:order] if params.key?(:order)
59
69
  query_params["account_id"] = params[:account_id] if params.key?(:account_id)
@@ -87,8 +97,8 @@ module Whop_sdk
87
97
  end
88
98
  end
89
99
 
90
- # Open a new support channel between a company team member and a customer. Returns the existing channel if one
91
- # already exists for that user.
100
+ # Opens a support channel between an account's team and a customer. Returns the existing channel if that customer
101
+ # already has one.
92
102
  #
93
103
  # Required permissions:
94
104
  # - `support_chat:create`
@@ -16,6 +16,16 @@ module Whop_sdk
16
16
 
17
17
  field :open, -> { Internal::Types::Boolean }, optional: true, nullable: false
18
18
 
19
+ field :customer_user_id, -> { String }, optional: true, nullable: false
20
+
21
+ field :customer_user_ids, -> { String }, optional: true, nullable: false
22
+
23
+ field :participated, -> { Internal::Types::Boolean }, optional: true, nullable: false
24
+
25
+ field :include_last_message, -> { Internal::Types::Boolean }, optional: true, nullable: false
26
+
27
+ field :include_participated, -> { Internal::Types::Boolean }, optional: true, nullable: false
28
+
19
29
  field :direction, -> { Whop_sdk::Types::Direction }, optional: true, nullable: false
20
30
 
21
31
  field :order, -> { Whop_sdk::Types::MessageChannelOrder }, optional: true, nullable: false
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Retrieve the account's completed or pending swaps — currently just the latest one.
17
+ # Lists the completed or pending swaps for an account or user — currently only the most recent one.
18
18
  #
19
19
  # @param request_options [Hash]
20
20
  # @param params [Hash]
@@ -57,8 +57,8 @@ module Whop_sdk
57
57
  end
58
58
  end
59
59
 
60
- # Swaps one token for another from the account's wallet, or converts between fiat currencies in the account's
61
- # ledger at the mid-market rate. Crypto swaps finish in the background — check the swap for its status.
60
+ # Swaps one token for another in an account or user's wallet, or converts between their fiat balances at the
61
+ # mid-market rate. Crypto swaps finish in the background — retrieve the swap to follow its status.
62
62
  #
63
63
  # @param request_options [Hash]
64
64
  # @param params [Whop_sdk::Swaps::Types::CreateSwapsRequest]
@@ -98,8 +98,8 @@ module Whop_sdk
98
98
  end
99
99
  end
100
100
 
101
- # Previews the price of a swap. Fiat pairs quote the in-ledger mid-market conversion — the same rate creating the
102
- # swap fills at. No funds move and nothing is saved.
101
+ # Previews the price of a swap before you create it. Fiat pairs quote the mid-market rate — the same rate creating
102
+ # the swap fills at. No funds move, nothing is saved, and no authentication is required.
103
103
  #
104
104
  # @param request_options [Hash]
105
105
  # @param params [Whop_sdk::Swaps::Types::CreateQuoteSwapsRequest]
@@ -140,7 +140,7 @@ module Whop_sdk
140
140
  end
141
141
  end
142
142
 
143
- # Retrieves a single swap and its status.
143
+ # Retrieves a swap and its status. Poll it after creating a crypto swap, which finishes in the background.
144
144
  #
145
145
  # @param request_options [Hash]
146
146
  # @param params [Hash]
@@ -14,11 +14,10 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Lists an account's team members, including pending invites (`status: "pending"`, `ausri_` ids; `user` is `null`
18
- # for invites sent to an email with no Whop account yet). For accepted members, `email` requires the
19
- # `company:authorized_user:email:read` scope and is `null` otherwise. A user credential with `company:basic:read`
20
- # may list only its own joined membership by passing its own `user_id` and `status=joined`. Listing
21
- # `role=workforce` is also allowed with the `bounty:create` scope.
17
+ # Lists an account's team members, including pending invites. A user credential with `company:basic:read` may list
18
+ # only its own joined membership by passing its own `user_id` and `status=joined`. Listing `role=workforce` is
19
+ # also allowed with the `bounty:create` scope. Members with the view-only Partner role are listed after all other
20
+ # members.
22
21
  #
23
22
  # @param request_options [Hash]
24
23
  # @param params [Hash]
@@ -31,6 +30,10 @@ module Whop_sdk
31
30
  # @option params [Whop_sdk::TeamMembers::Types::ListTeamMembersRequestStatus, nil] :status
32
31
  # @option params [String, nil] :user_id
33
32
  # @option params [Whop_sdk::TeamMembers::Types::ListTeamMembersRequestRole, nil] :role
33
+ # @option params [String, nil] :query
34
+ # @option params [String, nil] :reports_to_id
35
+ # @option params [Integer, nil] :direct_reports_min
36
+ # @option params [Integer, nil] :direct_reports_max
34
37
  # @option params [String, nil] :created_before
35
38
  # @option params [String, nil] :created_after
36
39
  # @option params [Whop_sdk::TeamMembers::Types::ListTeamMembersRequestOrder, nil] :order
@@ -51,6 +54,10 @@ module Whop_sdk
51
54
  query_params["status"] = params[:status] if params.key?(:status)
52
55
  query_params["user_id"] = params[:user_id] if params.key?(:user_id)
53
56
  query_params["role"] = params[:role] if params.key?(:role)
57
+ query_params["query"] = params[:query] if params.key?(:query)
58
+ query_params["reports_to_id"] = params[:reports_to_id] if params.key?(:reports_to_id)
59
+ query_params["direct_reports_min"] = params[:direct_reports_min] if params.key?(:direct_reports_min)
60
+ query_params["direct_reports_max"] = params[:direct_reports_max] if params.key?(:direct_reports_max)
54
61
  query_params["created_before"] = params[:created_before] if params.key?(:created_before)
55
62
  query_params["created_after"] = params[:created_after] if params.key?(:created_after)
56
63
  query_params["order"] = params[:order] if params.key?(:order)
@@ -91,9 +98,9 @@ module Whop_sdk
91
98
 
92
99
  # Adds a member to an account's team with a system role. Identify them by exactly one of `user_id` or `email`. If
93
100
  # the person has not yet accepted — or the email does not belong to a Whop account yet — an invitation is sent
94
- # instead and the response is `202` with `{ "object": "team_member_invite", "invitation_sent": true }`. If they
95
- # already have a pending invite, the request fails with a `400`. Custom roles cannot be granted via the API.
96
- # Granting the `workforce` role is also allowed with the `bounty:create` scope.
101
+ # instead and the response is `202` with an `object` of `team_member_invite`. If they already have a pending
102
+ # invite, the request fails with a `400`. Granting the `workforce` role is also allowed with the `bounty:create`
103
+ # scope.
97
104
  #
98
105
  # @param request_options [Hash]
99
106
  # @param params [Whop_sdk::TeamMembers::Types::CreateTeamMembersRequest]
@@ -133,8 +140,7 @@ module Whop_sdk
133
140
  end
134
141
  end
135
142
 
136
- # Retrieves a team member by ID. `email` requires the `company:authorized_user:email:read` scope and is `null`
137
- # otherwise.
143
+ # Retrieves a team member or pending invite by ID.
138
144
  #
139
145
  # @param request_options [Hash]
140
146
  # @param params [Hash]
@@ -12,6 +12,14 @@ module Whop_sdk
12
12
 
13
13
  field :role, -> { Whop_sdk::TeamMembers::Types::ListTeamMembersRequestRole }, optional: true, nullable: false
14
14
 
15
+ field :query, -> { String }, optional: true, nullable: false
16
+
17
+ field :reports_to_id, -> { String }, optional: true, nullable: false
18
+
19
+ field :direct_reports_min, -> { Integer }, optional: true, nullable: false
20
+
21
+ field :direct_reports_max, -> { Integer }, optional: true, nullable: false
22
+
15
23
  field :created_before, -> { String }, optional: true, nullable: false
16
24
 
17
25
  field :created_after, -> { String }, optional: true, nullable: false
@@ -80,12 +80,11 @@ module Whop_sdk
80
80
  end
81
81
  end
82
82
 
83
- # Creates a trade on the Whop-managed wallet of an account or user and answers `201` with the trade in `pending`.
84
- # The trade runs in the background; read it with `GET /trades/{id}` until it is `completed`, `failed` or
85
- # `in_review`. A `buy` bridges `amount` USDT0 to the trading account, sets `leverage` (cross) on `market`, and
86
- # places one market buy. If the buy does not fill, its money goes back to the wallet. A `close` closes the
87
- # position in `market`, if one is open, and sends all withdrawable USDC back to the wallet. One trade runs at a
88
- # time for each wallet. A retry with the same `Idempotency-Key` returns the same trade.
83
+ # Places an order, closes a perpetual position, or deposits to or withdraws from the trading balance, from the
84
+ # Whop-managed wallet of an account or user. Answers `201` with the trade in `pending`; it runs in the background,
85
+ # so read it with `GET /trades/:id` until its `status` is `completed`, `failed` or `in_review`. Trades run
86
+ # alongside each other, except a second order on one market at a different leverage, which answers `409`. A retry
87
+ # with the same `Idempotency-Key` returns the same trade.
89
88
  #
90
89
  # @param request_options [Hash]
91
90
  # @param params [Whop_sdk::Trades::Types::CreateTradesRequest]
@@ -98,8 +97,7 @@ module Whop_sdk
98
97
  # @example
99
98
  # client.trades.create(
100
99
  # account_id: "biz_xxxxxxxxxxxxxx",
101
- # market: "BTC",
102
- # type: "buy"
100
+ # type: "close"
103
101
  # )
104
102
  #
105
103
  # @return [Whop_sdk::Types::Trade]
@@ -8,9 +8,29 @@ module Whop_sdk
8
8
 
9
9
  field :amount, -> { String }, optional: true, nullable: false
10
10
 
11
+ field :client_order_id, -> { String }, optional: true, nullable: false
12
+
13
+ field :instrument_type, -> { Whop_sdk::Trades::Types::CreateTradesRequestInstrumentType }, optional: true, nullable: false
14
+
11
15
  field :leverage, -> { Integer }, optional: true, nullable: false
12
16
 
13
- field :market, -> { String }, optional: false, nullable: false
17
+ field :market, -> { String }, optional: true, nullable: false
18
+
19
+ field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
20
+
21
+ field :notional, -> { String }, optional: true, nullable: false
22
+
23
+ field :order_type, -> { Whop_sdk::Trades::Types::CreateTradesRequestOrderType }, optional: true, nullable: false
24
+
25
+ field :price, -> { String }, optional: true, nullable: false
26
+
27
+ field :reduce_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
28
+
29
+ field :side, -> { Whop_sdk::Trades::Types::CreateTradesRequestSide }, optional: true, nullable: false
30
+
31
+ field :size, -> { String }, optional: true, nullable: false
32
+
33
+ field :slippage_bps, -> { Integer }, optional: true, nullable: false
14
34
 
15
35
  field :type, -> { Whop_sdk::Trades::Types::CreateTradesRequestType }, optional: false, nullable: false
16
36
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Trades
5
+ module Types
6
+ module CreateTradesRequestInstrumentType
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ PERPETUAL = "perpetual"
10
+ SPOT = "spot"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Trades
5
+ module Types
6
+ module CreateTradesRequestOrderType
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ MARKET = "market"
10
+ LIMIT = "limit"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Trades
5
+ module Types
6
+ module CreateTradesRequestSide
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ BUY = "buy"
10
+ SELL = "sell"
11
+ end
12
+ end
13
+ end
14
+ end