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
@@ -15,9 +15,9 @@ module Whop_sdk
15
15
  @environment = environment
16
16
  end
17
17
 
18
- # Lists the authenticated user's own passkeys, newest first. The list is always the caller's own; there is no
19
- # parameter for reading another user's passkeys. Requires a user session: an API key or an OAuth token is
20
- # refused, because a passkey confirms the account holder before a sensitive action and no app may enumerate one.
18
+ # Lists the authenticated user's own passkeys, newest first. You cannot read another user's passkeys. Requires a
19
+ # user session: an API key or an OAuth token is refused, because a passkey confirms the account holder before a
20
+ # sensitive action and no app may enumerate one.
21
21
  #
22
22
  # @param request_options [Hash]
23
23
  # @param params [Hash]
@@ -15,8 +15,7 @@ module Whop_sdk
15
15
  @environment = environment
16
16
  end
17
17
 
18
- # Retrieves the authenticated user's settings document. Addressed only as `me` — the document always belongs to
19
- # the session user.
18
+ # Retrieves the authenticated user's settings document.
20
19
  #
21
20
  # @param request_options [Hash]
22
21
  # @param _params [Hash]
@@ -16,19 +16,10 @@ module Whop_sdk
16
16
  @environment = environment
17
17
  end
18
18
 
19
- # Sets the authenticated user's notification preferences. Each preference is addressed by `scope`, not by id,
20
- # so a scope read back from either list endpoint can be sent straight here.
21
- #
22
- # A scope naming an experience with no topic sets that experience's level, and accepts all three levels. Any
23
- # other scope sets a topic override, which is binary — `all` or `nothing`. A topic override with no `channel`
24
- # applies to every delivery channel.
25
- #
26
- # `level: null` clears the preference. Preferences are stored as overrides, so clearing one means the scope
27
- # inherits its default again rather than being switched off.
28
- #
29
- # The batch is applied in one transaction: if any entry is rejected, none are written. Experience levels are
30
- # applied before topic overrides, because setting a level replaces every topic preference for that experience
31
- # — so an override sent alongside a level wins. The response reports what each scope now resolves to, in the
19
+ # Sets the authenticated user's notification preferences, each addressed by `scope` rather than by ID. The
20
+ # batch is applied in one transaction: if any entry is rejected, none are written. Experience levels are
21
+ # applied before topic overrides, because setting a level replaces every topic preference for that experience,
22
+ # so an override sent alongside a level wins. The response reports what each scope now resolves to, in the
32
23
  # order the entries were sent.
33
24
  #
34
25
  # @param request_options [Hash]
@@ -18,8 +18,8 @@ module Whop_sdk
18
18
  end
19
19
 
20
20
  # Lists the authenticated user's topic-scoped notification preferences, plus user-agnostic platform
21
- # defaults. Each filter matches preferences scoped to its value or not narrowed on that dimension.
22
- # Per-experience levels are listed separately, by `GET /users/me/preferences/notifications/experiences`.
21
+ # defaults. Per-experience levels are listed separately, by `GET
22
+ # /users/me/preferences/notifications/experiences`.
23
23
  #
24
24
  # @param request_options [Hash]
25
25
  # @param params [Hash]
@@ -5,7 +5,9 @@ module Whop_sdk
5
5
  module Preferences
6
6
  module Notifications
7
7
  module Types
8
- # What the preference applies to. `null` on a dimension means the preference is not narrowed there.
8
+ # What the preference applies to. `null` on a dimension means the preference is not narrowed there. A scope
9
+ # read back from either list endpoint can be sent as-is. A scope naming an experience with no topic sets that
10
+ # experience's level; any other scope sets a topic override.
9
11
  class SetNotificationsRequestPreferencesItemScope < Internal::Types::Model
10
12
  field :account_id, -> { String }, optional: true, nullable: false
11
13
 
@@ -14,8 +14,8 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of variants. Omit `account_id` and pass `product_ids` to list a product's public
18
- # buyable variants.
17
+ # Lists an account's variants. To list a product's public, buyable variants without authentication, omit
18
+ # `account_id` and pass `product_ids`.
19
19
  #
20
20
  # @param request_options [Hash]
21
21
  # @param params [Hash]
@@ -102,8 +102,8 @@ module Whop_sdk
102
102
  end
103
103
  end
104
104
 
105
- # Create a new pricing variant for a product. The variant defines the billing interval, price, and availability
106
- # for customers.
105
+ # Creates a pricing variant for a product, defining the billing interval, price, and availability customers buy it
106
+ # with.
107
107
  #
108
108
  # @param request_options [Hash]
109
109
  # @param params [Whop_sdk::Variants::Types::CreateVariantsRequest]
@@ -140,7 +140,8 @@ module Whop_sdk
140
140
  end
141
141
  end
142
142
 
143
- # Retrieves the details of an existing variant.
143
+ # Retrieves a variant. Requires no authentication; fields that need a permission are `null` for callers without
144
+ # it.
144
145
  #
145
146
  # @param request_options [Hash]
146
147
  # @param params [Hash]
@@ -191,8 +192,7 @@ module Whop_sdk
191
192
  end
192
193
  end
193
194
 
194
- # Delete a variant from a product. It stops selling immediately; existing memberships on this variant will not be
195
- # affected.
195
+ # Deletes a variant from a product. It stops selling immediately; existing memberships on it are unaffected.
196
196
  #
197
197
  # @param request_options [Hash]
198
198
  # @param params [Hash]
@@ -229,7 +229,7 @@ module Whop_sdk
229
229
  end
230
230
  end
231
231
 
232
- # Update a variant's pricing, billing interval, visibility, stock, and other settings.
232
+ # Updates a variant's pricing, billing interval, visibility, stock, and other settings.
233
233
  #
234
234
  # @param request_options [Hash]
235
235
  # @param params [Whop_sdk::Variants::Types::UpdateVariantsRequest]
@@ -271,7 +271,8 @@ module Whop_sdk
271
271
  end
272
272
  end
273
273
 
274
- # Previews tax for a variant before checkout, based on the buyer's location.
274
+ # Deprecated. Quote tax with `POST /payment_quotes` instead. Previews tax for a variant before checkout, based on
275
+ # the buyer's location.
275
276
  #
276
277
  # @param request_options [Hash]
277
278
  # @param params [Whop_sdk::Variants::Types::CalculateTaxVariantsRequest]
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns verifications for an account, including their status and any required actions.
17
+ # Lists the verifications for an account or user, including their status and any required actions.
18
18
  #
19
19
  # @param request_options [Hash]
20
20
  # @param params [Hash]
@@ -62,13 +62,13 @@ module Whop_sdk
62
62
  end
63
63
 
64
64
  # Starts a hosted verification session for an account or user, or returns the active session when one already
65
- # exists. Any fields you include in the request body are used to prefill the session. Send `documents` (with
66
- # `document_type`) to instead verify the person from identity documents included in this request — no hosted
67
- # session involved. Send `share_token` to reuse a verification another Sumsub account has already completed for
68
- # this person, instead of verifying them again. Send `verification_id` to reuse a verification the signed-in user
69
- # already completed on Whop. Every mode except `verification_id` is rejected once the account has an `approved`
70
- # verification — unlink it first to start a new one — while `verification_id` replaces whichever verification of
71
- # that kind the account currently has.
65
+ # exists; any fields you send prefill it. To skip the hosted session, send `documents` to verify the person from
66
+ # files in this request, `share_token` to reuse a verification another Sumsub account completed, or
67
+ # `verification_id` to reuse one the signed-in user completed on Whop. For a business, `documents` and `owners`
68
+ # add company formation documents and owners to the verification, and once everything is in this call sends the
69
+ # business for review — call it again after Update Verification to send it. Until then it stays `pending` and the
70
+ # hosted session collects anything left out. Once the account has an `approved` verification, every mode except
71
+ # `verification_id` is rejected — unlink it first to start a new one.
72
72
  #
73
73
  # @param request_options [Hash]
74
74
  # @param params [Whop_sdk::Verifications::Types::CreateVerificationsRequestBody]
@@ -114,7 +114,7 @@ module Whop_sdk
114
114
  end
115
115
  end
116
116
 
117
- # Returns verifications for an account, including their status and any required actions.
117
+ # Retrieves a verification by ID, including its status and any information or documents still required.
118
118
  #
119
119
  # @param request_options [Hash]
120
120
  # @param params [Hash]
@@ -151,8 +151,13 @@ module Whop_sdk
151
151
  end
152
152
  end
153
153
 
154
- # Updates editable profile details or submits answers for items returned in `requested_information`. Once a
155
- # verification is `approved` its profile details are locked and can no longer be edited.
154
+ # Updates editable profile details or submits answers for items returned in `requested_information`. On a business
155
+ # verification still collecting details, company details, `documents`, and `owners` also go to the verification
156
+ # provider; call Create Verification again to send the business for review once everything is in. Under review,
157
+ # `registration_number`, `incorporation_date`, `place_of_incorporation`, and `documents` are refused. While the
158
+ # review waits on owners, owners can still be added, changed, or removed with `remove`; otherwise only an owner's
159
+ # missing documents can still be sent. Once a verification is `approved` its profile details are locked and can no
160
+ # longer be edited.
156
161
  #
157
162
  # @param request_options [Hash]
158
163
  # @param params [Whop_sdk::Verifications::Types::UpdateVerificationsRequestBody]
@@ -20,12 +20,20 @@ module Whop_sdk
20
20
 
21
21
  field :date_of_birth, -> { String }, optional: true, nullable: false
22
22
 
23
+ field :documents, -> { Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessDocuments }, optional: true, nullable: false
24
+
23
25
  field :first_name, -> { String }, optional: true, nullable: false
24
26
 
27
+ field :incorporation_date, -> { String }, optional: true, nullable: false
28
+
25
29
  field :last_name, -> { String }, optional: true, nullable: false
26
30
 
31
+ field :owners, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItem] }, optional: true, nullable: false
32
+
27
33
  field :place_of_incorporation, -> { String }, optional: true, nullable: false
28
34
 
35
+ field :registration_number, -> { String }, optional: true, nullable: false
36
+
29
37
  field :share_token, -> { String }, optional: true, nullable: false
30
38
 
31
39
  field :tax_identification_number, -> { String }, optional: true, nullable: false
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ # Company formation documents, each the ID of a file uploaded with Create File and not yet attached to anything
7
+ # else, prefixed `file_`. Send the ID once its `upload_status` is `ready`. Each file must be a PDF, JPEG, or PNG
8
+ # of up to 10MB. They are filed under the business's country, from `country`, `address`, or an earlier request. A
9
+ # document of a kind already on file is kept unless it was rejected, so a retried request does not add a second
10
+ # copy. The hosted session at `session_url` collects anything still missing.
11
+ class CreateVerificationsRequestBodyBusinessDocuments < Internal::Types::Model
12
+ field :articles_of_incorporation, -> { String }, optional: true, nullable: false
13
+
14
+ field :certificate_of_incorporation, -> { String }, optional: true, nullable: false
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ # An owner of the business. Send `verification_id` to add someone with an approved verification on this account or
7
+ # on a member of its team, or a new owner's details and documents to verify them from this request. An owner
8
+ # already on the verification is not added twice, so a retried request is safe.
9
+ class CreateVerificationsRequestBodyBusinessOwnersItem < Internal::Types::Model
10
+ field :address, -> { Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItemAddress }, optional: true, nullable: false
11
+
12
+ field :country, -> { String }, optional: true, nullable: false
13
+
14
+ field :date_of_birth, -> { String }, optional: true, nullable: false
15
+
16
+ field :document_type, -> { Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItemDocumentType }, optional: true, nullable: false
17
+
18
+ field :documents, -> { Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItemDocuments }, optional: true, nullable: false
19
+
20
+ field :email, -> { String }, optional: true, nullable: false
21
+
22
+ field :first_name, -> { String }, optional: true, nullable: false
23
+
24
+ field :last_name, -> { String }, optional: true, nullable: false
25
+
26
+ field :ownership_percentage, -> { Integer }, optional: true, nullable: false
27
+
28
+ field :phone, -> { String }, optional: true, nullable: false
29
+
30
+ field :roles, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItemRolesItem] }, optional: true, nullable: false
31
+
32
+ field :tax_identification_number, -> { String }, optional: true, nullable: false
33
+
34
+ field :verification_id, -> { String }, optional: true, nullable: false
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ # The new owner's home address, with `line1`, `city`, `state`, and `postal_code`.
7
+ class CreateVerificationsRequestBodyBusinessOwnersItemAddress < Internal::Types::Model
8
+ field :city, -> { String }, optional: true, nullable: false
9
+
10
+ field :country, -> { String }, optional: true, nullable: false
11
+
12
+ field :line1, -> { String }, optional: true, nullable: false
13
+
14
+ field :line2, -> { String }, optional: true, nullable: false
15
+
16
+ field :postal_code, -> { String }, optional: true, nullable: false
17
+
18
+ field :state, -> { String }, optional: true, nullable: false
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ module CreateVerificationsRequestBodyBusinessOwnersItemDocumentType
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ ID_CARD = "id_card"
10
+ DRIVERS = "drivers"
11
+ RESIDENCE_PERMIT = "residence_permit"
12
+ PASSPORT = "passport"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ # The owner's identity document and selfie, each the ID of a ready file uploaded with Create File and not yet
7
+ # attached to anything else, prefixed `file_`. Send every slot for `document_type` plus `selfie`. Document files
8
+ # can be a PDF, JPEG, or PNG and the selfie a JPEG or PNG, each up to 10MB. They're sent to the verification
9
+ # provider in the background: the owner reads `processing` until then, and `action_required`, with a
10
+ # `rejection_reason` on each document, if a file couldn't be used.
11
+ class CreateVerificationsRequestBodyBusinessOwnersItemDocuments < Internal::Types::Model
12
+ field :drivers_back, -> { String }, optional: true, nullable: false
13
+
14
+ field :drivers_front, -> { String }, optional: true, nullable: false
15
+
16
+ field :id_card_back, -> { String }, optional: true, nullable: false
17
+
18
+ field :id_card_front, -> { String }, optional: true, nullable: false
19
+
20
+ field :passport_front, -> { String }, optional: true, nullable: false
21
+
22
+ field :residence_permit_back, -> { String }, optional: true, nullable: false
23
+
24
+ field :residence_permit_front, -> { String }, optional: true, nullable: false
25
+
26
+ field :selfie, -> { String }, optional: true, nullable: false
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ module CreateVerificationsRequestBodyBusinessOwnersItemRolesItem
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ UBO = "ubo"
10
+ DIRECTOR = "director"
11
+ REPRESENTATIVE = "representative"
12
+ SHAREHOLDER = "shareholder"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -6,10 +6,10 @@ module Whop_sdk
6
6
  module CreateVerificationsRequestBodyIndividualDocumentType
7
7
  extend Whop_sdk::Internal::Types::Enum
8
8
 
9
- ID_CARD = "ID_CARD"
10
- DRIVERS = "DRIVERS"
11
- RESIDENCE_PERMIT = "RESIDENCE_PERMIT"
12
- PASSPORT = "PASSPORT"
9
+ ID_CARD = "id_card"
10
+ DRIVERS = "drivers"
11
+ RESIDENCE_PERMIT = "residence_permit"
12
+ PASSPORT = "passport"
13
13
  end
14
14
  end
15
15
  end
@@ -26,8 +26,12 @@ module Whop_sdk
26
26
 
27
27
  field :last_name, -> { String }, optional: true, nullable: false
28
28
 
29
+ field :owners, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItem] }, optional: false, nullable: false
30
+
29
31
  field :phone, -> { String }, optional: true, nullable: false
30
32
 
33
+ field :registration_number, -> { String }, optional: true, nullable: false
34
+
31
35
  field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseRequestedInformationItem] }, optional: true, nullable: false
32
36
 
33
37
  field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseRequiredDocumentsItem] }, optional: true, nullable: false
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ class CreateVerificationsResponseOwnersItem < Internal::Types::Model
7
+ field :first_name, -> { String }, optional: false, nullable: true
8
+
9
+ field :id, -> { String }, optional: false, nullable: false
10
+
11
+ field :last_name, -> { String }, optional: false, nullable: true
12
+
13
+ field :ownership_percentage, -> { Integer }, optional: false, nullable: true
14
+
15
+ field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItemRequiredDocumentsItem] }, optional: false, nullable: false
16
+
17
+ field :roles, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItemRolesItem] }, optional: false, nullable: false
18
+
19
+ field :status, -> { Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItemStatus }, optional: false, nullable: false
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ class CreateVerificationsResponseOwnersItemRequiredDocumentsItem < Internal::Types::Model
7
+ field :document, -> { String }, optional: true, nullable: false
8
+
9
+ field :rejection_reason, -> { String }, optional: true, nullable: false
10
+
11
+ field :status, -> { Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItemRequiredDocumentsItemStatus }, optional: true, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ module CreateVerificationsResponseOwnersItemRequiredDocumentsItemStatus
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ PENDING_UPLOAD = "pending_upload"
10
+ SUBMITTED = "submitted"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ module CreateVerificationsResponseOwnersItemRolesItem
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ UBO = "ubo"
10
+ DIRECTOR = "director"
11
+ REPRESENTATIVE = "representative"
12
+ SHAREHOLDER = "shareholder"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ module CreateVerificationsResponseOwnersItemStatus
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ NOT_STARTED = "not_started"
10
+ PENDING = "pending"
11
+ PROCESSING = "processing"
12
+ MANUAL_REVIEW = "manual_review"
13
+ APPROVED = "approved"
14
+ REJECTED = "rejected"
15
+ ACTION_REQUIRED = "action_required"
16
+ end
17
+ end
18
+ end
19
+ end
@@ -26,8 +26,12 @@ module Whop_sdk
26
26
 
27
27
  field :last_name, -> { String }, optional: true, nullable: false
28
28
 
29
+ field :owners, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItem] }, optional: false, nullable: false
30
+
29
31
  field :phone, -> { String }, optional: true, nullable: false
30
32
 
33
+ field :registration_number, -> { String }, optional: true, nullable: false
34
+
31
35
  field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemRequestedInformationItem] }, optional: true, nullable: false
32
36
 
33
37
  field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemRequiredDocumentsItem] }, optional: true, nullable: false
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ class ListVerificationsResponseDataItemOwnersItem < Internal::Types::Model
7
+ field :first_name, -> { String }, optional: false, nullable: true
8
+
9
+ field :id, -> { String }, optional: false, nullable: false
10
+
11
+ field :last_name, -> { String }, optional: false, nullable: true
12
+
13
+ field :ownership_percentage, -> { Integer }, optional: false, nullable: true
14
+
15
+ field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItemRequiredDocumentsItem] }, optional: false, nullable: false
16
+
17
+ field :roles, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItemRolesItem] }, optional: false, nullable: false
18
+
19
+ field :status, -> { Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItemStatus }, optional: false, nullable: false
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ class ListVerificationsResponseDataItemOwnersItemRequiredDocumentsItem < Internal::Types::Model
7
+ field :document, -> { String }, optional: true, nullable: false
8
+
9
+ field :rejection_reason, -> { String }, optional: true, nullable: false
10
+
11
+ field :status, -> { Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItemRequiredDocumentsItemStatus }, optional: true, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ module ListVerificationsResponseDataItemOwnersItemRequiredDocumentsItemStatus
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ PENDING_UPLOAD = "pending_upload"
10
+ SUBMITTED = "submitted"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ module ListVerificationsResponseDataItemOwnersItemRolesItem
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ UBO = "ubo"
10
+ DIRECTOR = "director"
11
+ REPRESENTATIVE = "representative"
12
+ SHAREHOLDER = "shareholder"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ module ListVerificationsResponseDataItemOwnersItemStatus
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ NOT_STARTED = "not_started"
10
+ PENDING = "pending"
11
+ PROCESSING = "processing"
12
+ MANUAL_REVIEW = "manual_review"
13
+ APPROVED = "approved"
14
+ REJECTED = "rejected"
15
+ ACTION_REQUIRED = "action_required"
16
+ end
17
+ end
18
+ end
19
+ end
@@ -26,8 +26,12 @@ module Whop_sdk
26
26
 
27
27
  field :last_name, -> { String }, optional: true, nullable: false
28
28
 
29
+ field :owners, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseOwnersItem] }, optional: false, nullable: false
30
+
29
31
  field :phone, -> { String }, optional: true, nullable: false
30
32
 
33
+ field :registration_number, -> { String }, optional: true, nullable: false
34
+
31
35
  field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseRequestedInformationItem] }, optional: true, nullable: false
32
36
 
33
37
  field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseRequiredDocumentsItem] }, optional: true, nullable: false
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Verifications
5
+ module Types
6
+ class RetrieveVerificationsResponseOwnersItem < Internal::Types::Model
7
+ field :first_name, -> { String }, optional: false, nullable: true
8
+
9
+ field :id, -> { String }, optional: false, nullable: false
10
+
11
+ field :last_name, -> { String }, optional: false, nullable: true
12
+
13
+ field :ownership_percentage, -> { Integer }, optional: false, nullable: true
14
+
15
+ field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseOwnersItemRequiredDocumentsItem] }, optional: false, nullable: false
16
+
17
+ field :roles, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseOwnersItemRolesItem] }, optional: false, nullable: false
18
+
19
+ field :status, -> { Whop_sdk::Verifications::Types::RetrieveVerificationsResponseOwnersItemStatus }, optional: false, nullable: false
20
+ end
21
+ end
22
+ end
23
+ end