whop_sdk 2.4.0 → 2.5.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 (289) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +3 -3
  3. data/.fern/replay.lock +313 -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 +8 -19
  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/post_account_financing_disabled_payload.rb +25 -0
  22. data/lib/whop_sdk/{partners/types/referred_users_partners_request_user_id.rb → accounts/types/post_account_financing_disabled_payload_api_version.rb} +3 -3
  23. data/lib/whop_sdk/accounts/types/post_account_financing_disabled_payload_type.rb +13 -0
  24. data/lib/whop_sdk/accounts/types/transfer_ownership_accounts_request.rb +2 -0
  25. data/lib/whop_sdk/accounts/types/update_accounts_request.rb +2 -6
  26. data/lib/whop_sdk/ad_campaigns/client.rb +4 -4
  27. data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_payment_failed_payload_data_delivery_status.rb +1 -0
  28. data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_updated_payload_data_delivery_status.rb +1 -0
  29. data/lib/whop_sdk/ad_conversion_value_rules/client.rb +11 -9
  30. data/lib/whop_sdk/ad_groups/client.rb +7 -11
  31. data/lib/whop_sdk/ads/client.rb +1 -2
  32. data/lib/whop_sdk/affiliates/client.rb +5 -5
  33. data/lib/whop_sdk/api_keys/client.rb +2 -2
  34. data/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +2 -0
  35. data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +2 -0
  36. data/lib/whop_sdk/app_builds/client.rb +2 -2
  37. data/lib/whop_sdk/app_builds/types/create_app_builds_request_attachment.rb +2 -1
  38. data/lib/whop_sdk/apps/client.rb +2 -4
  39. data/lib/whop_sdk/audiences/client.rb +5 -5
  40. data/lib/whop_sdk/authorized_users/client.rb +3 -4
  41. data/lib/whop_sdk/bounty_submissions/client.rb +7 -10
  42. data/lib/whop_sdk/bounty_submissions/types/submit_bounty_submissions_request_deliverable.rb +3 -1
  43. data/lib/whop_sdk/card_transactions/client.rb +5 -6
  44. data/lib/whop_sdk/cards/client.rb +4 -4
  45. data/lib/whop_sdk/cashback_rules/client.rb +16 -20
  46. data/lib/whop_sdk/chat_channels/client.rb +2 -2
  47. data/lib/whop_sdk/checkout_configurations/client.rb +2 -1
  48. data/lib/whop_sdk/claim_links/client.rb +8 -8
  49. data/lib/whop_sdk/client.rb +1 -1
  50. data/lib/whop_sdk/company_token_transactions/client.rb +3 -4
  51. data/lib/whop_sdk/confirmation_tokens/client.rb +3 -3
  52. data/lib/whop_sdk/course_lesson_interactions/client.rb +2 -1
  53. data/lib/whop_sdk/courses/client.rb +4 -2
  54. data/lib/whop_sdk/deposits/client.rb +3 -2
  55. data/lib/whop_sdk/disputes/client.rb +5 -12
  56. data/lib/whop_sdk/dm_channels/client.rb +5 -6
  57. data/lib/whop_sdk/domains/client.rb +4 -0
  58. data/lib/whop_sdk/domains/types/create_domains_request.rb +4 -0
  59. data/lib/whop_sdk/domains/types/create_domains_request_apple_pay.rb +13 -0
  60. data/lib/whop_sdk/domains/types/create_domains_request_pixel.rb +12 -0
  61. data/lib/whop_sdk/domains/types/list_domains_request.rb +4 -0
  62. data/lib/whop_sdk/domains/types/list_domains_request_apple_pay.rb +17 -0
  63. data/lib/whop_sdk/domains/types/list_domains_request_order.rb +2 -0
  64. data/lib/whop_sdk/domains/types/list_domains_request_pixel.rb +17 -0
  65. data/lib/whop_sdk/domains/types/update_domains_request.rb +4 -0
  66. data/lib/whop_sdk/domains/types/update_domains_request_apple_pay.rb +13 -0
  67. data/lib/whop_sdk/domains/types/update_domains_request_pixel.rb +12 -0
  68. data/lib/whop_sdk/economic_intelligence/client.rb +6 -8
  69. data/lib/whop_sdk/events/client.rb +12 -16
  70. data/lib/whop_sdk/experiences/client.rb +15 -9
  71. data/lib/whop_sdk/experiments/client.rb +16 -29
  72. data/lib/whop_sdk/exports/client.rb +1 -1
  73. data/lib/whop_sdk/external_accounts/client.rb +3 -5
  74. data/lib/whop_sdk/fee_markups/client.rb +5 -6
  75. data/lib/whop_sdk/feedback_submissions/client.rb +0 -1
  76. data/lib/whop_sdk/files/client.rb +2 -2
  77. data/lib/whop_sdk/financial_reports/breakdown/client.rb +3 -1
  78. data/lib/whop_sdk/forum_posts/client.rb +1 -1
  79. data/lib/whop_sdk/forums/client.rb +1 -1
  80. data/lib/whop_sdk/identity_profiles/client.rb +4 -4
  81. data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
  82. data/lib/whop_sdk/invoices/client.rb +1 -1
  83. data/lib/whop_sdk/leads/client.rb +3 -3
  84. data/lib/whop_sdk/members/client.rb +21 -1
  85. data/lib/whop_sdk/members/logs/client.rb +1 -1
  86. data/lib/whop_sdk/members/notes/client.rb +121 -0
  87. data/lib/whop_sdk/members/notes/types/create_notes_request.rb +15 -0
  88. data/lib/whop_sdk/members/notes/types/list_notes_request.rb +21 -0
  89. data/lib/whop_sdk/members/notes/types/list_notes_response.rb +15 -0
  90. data/lib/whop_sdk/members/notes/types/list_notes_response_page_info.rb +19 -0
  91. data/lib/whop_sdk/members/types/list_members_request.rb +10 -0
  92. data/lib/whop_sdk/members/types/list_members_request_membership_status.rb +14 -0
  93. data/lib/whop_sdk/members/types/list_members_request_most_recent_actions_item.rb +25 -0
  94. data/lib/whop_sdk/members/types/list_members_request_order.rb +1 -0
  95. data/lib/whop_sdk/memberships/client.rb +30 -28
  96. data/lib/whop_sdk/memberships/types/cancel_memberships_request.rb +2 -0
  97. data/lib/whop_sdk/memberships/types/list_memberships_request.rb +10 -0
  98. data/lib/whop_sdk/memberships/types/list_memberships_request_status.rb +4 -0
  99. data/lib/whop_sdk/memberships/types/list_memberships_request_statuses_item.rb +24 -0
  100. data/lib/whop_sdk/messages/client.rb +5 -7
  101. data/lib/whop_sdk/notifications/client.rb +6 -9
  102. data/lib/whop_sdk/partner_referral_requests/client.rb +3 -3
  103. data/lib/whop_sdk/partners/businesses/client.rb +99 -0
  104. data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_request_income_source_item.rb +1 -0
  105. data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_response_data_item_income_source.rb +1 -0
  106. data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_request.rb +21 -0
  107. data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_request_acknowledgments_item.rb +17 -0
  108. data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_response.rb +15 -0
  109. data/lib/whop_sdk/partners/businesses/types/list_businesses_request.rb +2 -0
  110. data/lib/whop_sdk/partners/businesses/types/list_businesses_request_advance_status.rb +22 -0
  111. data/lib/whop_sdk/partners/businesses/types/list_businesses_response_data_item.rb +2 -0
  112. data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response.rb +2 -0
  113. data/lib/whop_sdk/partners/businesses/types/update_businesses_request.rb +17 -0
  114. data/lib/whop_sdk/partners/businesses/types/update_businesses_response.rb +15 -0
  115. data/lib/whop_sdk/partners/client.rb +6 -11
  116. data/lib/whop_sdk/partners/types/referred_users_partners_request.rb +0 -2
  117. data/lib/whop_sdk/payment_method_domains/client.rb +4 -5
  118. data/lib/whop_sdk/payment_methods/client.rb +4 -5
  119. data/lib/whop_sdk/payment_quotes/client.rb +8 -10
  120. data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request.rb +2 -2
  121. data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request_line_items_item.rb +13 -0
  122. data/lib/whop_sdk/payment_rules/client.rb +19 -8
  123. data/lib/whop_sdk/payments/client.rb +26 -24
  124. data/lib/whop_sdk/payments/direct/client.rb +5 -6
  125. data/lib/whop_sdk/payments/direct/types/create_direct_request.rb +2 -2
  126. data/lib/whop_sdk/payments/direct/types/create_direct_request_line_items_item.rb +15 -0
  127. data/lib/whop_sdk/payments/types/create_payments_request.rb +2 -2
  128. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item.rb +13 -0
  129. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan.rb +46 -0
  130. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_currency.rb +102 -0
  131. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_override_tax_type.rb +15 -0
  132. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_plan_type.rb +14 -0
  133. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product.rb +34 -0
  134. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product_global_affiliate_status.rb +14 -0
  135. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product_visibility.rb +16 -0
  136. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_visibility.rb +16 -0
  137. data/lib/whop_sdk/payments/types/resume_payments_request.rb +2 -0
  138. data/lib/whop_sdk/payout_methods/client.rb +1 -1
  139. data/lib/whop_sdk/payouts/client.rb +15 -12
  140. data/lib/whop_sdk/payouts/methods/client.rb +2 -2
  141. data/lib/whop_sdk/payouts/methods/types/create_methods_request.rb +2 -0
  142. data/lib/whop_sdk/payouts/methods/types/list_methods_response_limits_standard_error_code.rb +1 -1
  143. data/lib/whop_sdk/payouts/paypal_link_sessions/client.rb +67 -0
  144. data/lib/whop_sdk/payouts/paypal_link_sessions/types/create_paypal_link_sessions_request.rb +21 -0
  145. data/lib/whop_sdk/payouts/paypal_link_sessions/types/create_paypal_link_sessions_response.rb +15 -0
  146. data/lib/whop_sdk/payouts/supported_methods/client.rb +2 -1
  147. data/lib/whop_sdk/payouts/supported_methods/types/list_supported_methods_response_data_item.rb +2 -0
  148. data/lib/whop_sdk/people/client.rb +3 -5
  149. data/lib/whop_sdk/plans/client.rb +1 -1
  150. data/lib/whop_sdk/products/client.rb +2 -2
  151. data/lib/whop_sdk/promo_codes/client.rb +1 -1
  152. data/lib/whop_sdk/refunds/client.rb +1 -2
  153. data/lib/whop_sdk/reviews/client.rb +59 -19
  154. data/lib/whop_sdk/reviews/types/delete_reviews_request.rb +11 -0
  155. data/lib/whop_sdk/reviews/types/delete_reviews_response.rb +13 -0
  156. data/lib/whop_sdk/reviews/types/list_reviews_request.rb +14 -8
  157. data/lib/whop_sdk/reviews/types/list_reviews_request_direction.rb +14 -0
  158. data/lib/whop_sdk/reviews/types/list_reviews_request_order.rb +14 -0
  159. data/lib/whop_sdk/reviews/types/list_reviews_response.rb +1 -2
  160. data/lib/whop_sdk/reviews/types/list_reviews_response_page_info.rb +17 -0
  161. data/lib/whop_sdk/setup_intents/client.rb +8 -10
  162. data/lib/whop_sdk/setup_intents/direct/client.rb +6 -7
  163. data/lib/whop_sdk/shipments/client.rb +2 -2
  164. data/lib/whop_sdk/stats/client.rb +2 -3
  165. data/lib/whop_sdk/stats/reports/client.rb +6 -10
  166. data/lib/whop_sdk/stats/time_series/client.rb +3 -8
  167. data/lib/whop_sdk/support_channels/client.rb +12 -4
  168. data/lib/whop_sdk/support_channels/types/list_support_channels_request.rb +8 -0
  169. data/lib/whop_sdk/swaps/client.rb +6 -6
  170. data/lib/whop_sdk/team_members/client.rb +7 -10
  171. data/lib/whop_sdk/topups/client.rb +2 -2
  172. data/lib/whop_sdk/trades/client.rb +6 -8
  173. data/lib/whop_sdk/trades/types/create_trades_request.rb +21 -1
  174. data/lib/whop_sdk/trades/types/create_trades_request_instrument_type.rb +14 -0
  175. data/lib/whop_sdk/trades/types/create_trades_request_order_type.rb +14 -0
  176. data/lib/whop_sdk/trades/types/create_trades_request_side.rb +14 -0
  177. data/lib/whop_sdk/trades/types/create_trades_request_type.rb +3 -1
  178. data/lib/whop_sdk/trades/types/list_trades_request_type.rb +3 -1
  179. data/lib/whop_sdk/transfers/client.rb +6 -3
  180. data/lib/whop_sdk/types/account.rb +2 -2
  181. data/lib/whop_sdk/types/account_level.rb +19 -0
  182. data/lib/whop_sdk/types/account_payment_controls_restricted_payment_methods_item.rb +39 -0
  183. data/lib/whop_sdk/types/account_preferences.rb +2 -0
  184. data/lib/whop_sdk/types/ad_campaign_delivery_status.rb +1 -0
  185. data/lib/whop_sdk/types/api_key_api_version_date.rb +2 -0
  186. data/lib/whop_sdk/types/cancel_options.rb +1 -0
  187. data/lib/whop_sdk/types/dispute_evidence_document.rb +12 -0
  188. data/lib/whop_sdk/types/domain.rb +6 -0
  189. data/lib/whop_sdk/types/domain_apple_pay.rb +9 -0
  190. data/lib/whop_sdk/types/domain_apple_pay_state.rb +14 -0
  191. data/lib/whop_sdk/types/domain_issue.rb +2 -0
  192. data/lib/whop_sdk/types/domain_issue_capability.rb +2 -0
  193. data/lib/whop_sdk/types/domain_issue_code.rb +6 -2
  194. data/lib/whop_sdk/types/domain_list_item.rb +6 -0
  195. data/lib/whop_sdk/types/domain_pixel.rb +9 -0
  196. data/lib/whop_sdk/types/domain_pixel_state.rb +13 -0
  197. data/lib/whop_sdk/types/domain_stats.rb +9 -0
  198. data/lib/whop_sdk/types/domain_website.rb +1 -1
  199. data/lib/whop_sdk/types/domain_website_app.rb +11 -0
  200. data/lib/whop_sdk/types/feedback_option.rb +13 -0
  201. data/lib/whop_sdk/types/feedback_option_category.rb +17 -0
  202. data/lib/whop_sdk/types/file.rb +12 -0
  203. data/lib/whop_sdk/types/financing_access_change.rb +19 -0
  204. data/lib/whop_sdk/types/financing_access_change_disabled_payment_methods_item.rb +33 -0
  205. data/lib/whop_sdk/types/financing_access_change_object.rb +11 -0
  206. data/lib/whop_sdk/types/financing_access_change_provider.rb +15 -0
  207. data/lib/whop_sdk/types/financing_access_change_reason.rb +11 -0
  208. data/lib/whop_sdk/types/member.rb +10 -0
  209. data/lib/whop_sdk/types/member_most_recent_action.rb +23 -0
  210. data/lib/whop_sdk/types/member_note.rb +19 -0
  211. data/lib/whop_sdk/types/membership.rb +24 -0
  212. data/lib/whop_sdk/types/membership_cancel_option.rb +18 -0
  213. data/lib/whop_sdk/types/membership_collection_method.rb +12 -0
  214. data/lib/whop_sdk/types/membership_feedback_option.rb +9 -0
  215. data/lib/whop_sdk/types/membership_legacy.rb +2 -0
  216. data/lib/whop_sdk/types/membership_legacy_feedback_option.rb +11 -0
  217. data/lib/whop_sdk/types/membership_list_item.rb +2 -0
  218. data/lib/whop_sdk/types/membership_list_item_feedback_option.rb +11 -0
  219. data/lib/whop_sdk/types/membership_most_recent_action.rb +21 -0
  220. data/lib/whop_sdk/types/membership_product.rb +13 -0
  221. data/lib/whop_sdk/types/owner_level.rb +17 -0
  222. data/lib/whop_sdk/types/owner_level_points.rb +13 -0
  223. data/lib/whop_sdk/types/partner_advance.rb +41 -0
  224. data/lib/whop_sdk/types/partner_advance_status.rb +17 -0
  225. data/lib/whop_sdk/types/payment.rb +2 -0
  226. data/lib/whop_sdk/types/payment_input.rb +1 -4
  227. data/lib/whop_sdk/types/payment_input_plan.rb +2 -0
  228. data/lib/whop_sdk/types/payment_method_types.rb +3 -0
  229. data/lib/whop_sdk/types/payment_rule_condition_value.rb +2 -2
  230. data/lib/whop_sdk/types/permission_action.rb +3 -0
  231. data/lib/whop_sdk/types/review.rb +2 -3
  232. data/lib/whop_sdk/types/{review_company.rb → review_account.rb} +1 -2
  233. data/lib/whop_sdk/types/{review_attachments_item.rb → review_attachment.rb} +1 -2
  234. data/lib/whop_sdk/types/review_list_item.rb +3 -4
  235. data/lib/whop_sdk/types/review_list_item_status.rb +11 -0
  236. data/lib/whop_sdk/types/review_product.rb +0 -1
  237. data/lib/whop_sdk/types/review_user.rb +0 -1
  238. data/lib/whop_sdk/types/support_channel.rb +8 -0
  239. data/lib/whop_sdk/types/support_channel_last_message.rb +23 -0
  240. data/lib/whop_sdk/types/{review_list_item_attachments_item.rb → support_channel_last_message_attachments_item.rb} +1 -5
  241. data/lib/whop_sdk/types/support_channel_last_message_gifs_item.rb +10 -0
  242. data/lib/whop_sdk/types/support_channel_last_message_poll.rb +10 -0
  243. data/lib/whop_sdk/types/support_channel_last_message_poll_options_item.rb +10 -0
  244. data/lib/whop_sdk/types/support_channel_list_item.rb +8 -0
  245. data/lib/whop_sdk/types/support_channel_list_item_last_message.rb +23 -0
  246. data/lib/whop_sdk/types/support_channel_list_item_last_message_attachments_item.rb +12 -0
  247. data/lib/whop_sdk/types/support_channel_list_item_last_message_gifs_item.rb +10 -0
  248. data/lib/whop_sdk/types/support_channel_list_item_last_message_poll.rb +10 -0
  249. data/lib/whop_sdk/types/support_channel_list_item_last_message_poll_options_item.rb +10 -0
  250. data/lib/whop_sdk/types/trade.rb +17 -1
  251. data/lib/whop_sdk/types/trade_failure_code.rb +1 -0
  252. data/lib/whop_sdk/types/trade_instrument_type.rb +12 -0
  253. data/lib/whop_sdk/types/trade_order_type.rb +12 -0
  254. data/lib/whop_sdk/types/trade_side.rb +12 -0
  255. data/lib/whop_sdk/types/trade_status_detail.rb +0 -3
  256. data/lib/whop_sdk/types/trade_type.rb +3 -1
  257. data/lib/whop_sdk/types/user.rb +7 -1
  258. data/lib/whop_sdk/types/user_social_link.rb +15 -0
  259. data/lib/whop_sdk/types/user_social_link_website.rb +18 -0
  260. data/lib/whop_sdk/types/webhook_event.rb +1 -0
  261. data/lib/whop_sdk/types/webhook_events_item.rb +1 -0
  262. data/lib/whop_sdk/types/webhook_list_item_events_item.rb +1 -0
  263. data/lib/whop_sdk/types/webhook_testable_events_item.rb +1 -0
  264. data/lib/whop_sdk/users/client.rb +13 -18
  265. data/lib/whop_sdk/users/oauth_grants/client.rb +9 -11
  266. data/lib/whop_sdk/users/passkeys/client.rb +3 -3
  267. data/lib/whop_sdk/users/preferences/client.rb +1 -2
  268. data/lib/whop_sdk/users/preferences/notifications/client.rb +4 -13
  269. data/lib/whop_sdk/users/preferences/notifications/topics/client.rb +2 -2
  270. data/lib/whop_sdk/users/preferences/notifications/types/set_notifications_request_preferences_item_scope.rb +3 -1
  271. data/lib/whop_sdk/variants/client.rb +10 -9
  272. data/lib/whop_sdk/verifications/client.rb +7 -9
  273. data/lib/whop_sdk/verifications/types/create_verifications_request_body_business.rb +6 -0
  274. data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_documents.rb +18 -0
  275. data/lib/whop_sdk/verifications/types/create_verifications_response.rb +2 -0
  276. data/lib/whop_sdk/verifications/types/list_verifications_response_data_item.rb +2 -0
  277. data/lib/whop_sdk/verifications/types/retrieve_verifications_response.rb +2 -0
  278. data/lib/whop_sdk/verifications/types/update_verifications_response.rb +2 -0
  279. data/lib/whop_sdk/version.rb +1 -1
  280. data/lib/whop_sdk/waitlist_entries/client.rb +14 -14
  281. data/lib/whop_sdk/webhooks/client.rb +11 -12
  282. data/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb +1 -0
  283. data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +1 -0
  284. data/lib/whop_sdk.rb +99 -9
  285. data/reference.md +1431 -573
  286. metadata +99 -9
  287. data/lib/whop_sdk/types/payment_input_line_items_item.rb +0 -11
  288. data/lib/whop_sdk/types/review_list_item_user.rb +0 -14
  289. data/lib/whop_sdk/types/user_staff_access.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37de13ce2e8b45ea24de87eb9b2febdce20606ab0ce85ae9000497cedbcd5ce0
4
- data.tar.gz: 532730f7ee68ab780c0bde3d6bbd01ab6983242181ed022abb153a6c5649a6b7
3
+ metadata.gz: cdc7f3d1a438845206944c7acd9a317071dc593ec59cc4d02d531598507cd682
4
+ data.tar.gz: 2e12a500767d014a4dc8e67a3e8bfebf300c0ff53a4e492f702db30a423380a4
5
5
  SHA512:
6
- metadata.gz: 3c2e566f631f86a259a268e86f387afdcba5f9a4ec269057361a1e94a5f06bc91be7480cf967d0febbfaf8160bf3a47f0dcb81ac0a30285ea2e6b07e08dba229
7
- data.tar.gz: e8ae8a19396e9644209d516b332807388d8272df75a4dfaf26ea3311d76b7d3a360788ae3ac4d05ef8c4594908fef05815f9920456ee361ef2da6533132f4be0
6
+ metadata.gz: abec39a9bc133721e684f6aa0759bdc0711b8d0d5d119a4a53c4eca7725999d147f48ed21364a071097fac5a45339b0e89813ef40d853e6116d3f5c97b3e0df4
7
+ data.tar.gz: 98c387dbec72ebe1c23611a78fd1a10ce33f43175e681a67782f64e11f6359811b5a79c41cf5e93168af6dbf2ba495d5d6754b896975dd318d2a8dbcca87af02
data/.fern/metadata.json CHANGED
@@ -13,10 +13,10 @@
13
13
  "standardwebhooks": ">= 1.0"
14
14
  }
15
15
  },
16
- "originGitCommit": "ef7837ec6b6220e91a7a7f1363fb43b70081fcce",
16
+ "originGitCommit": "2d810768c9248951ed3b87c8432d7e2b8e30932b",
17
17
  "originGitCommitIsDirty": false,
18
18
  "invokedBy": "ci",
19
- "requestedVersion": "2.4.0",
19
+ "requestedVersion": "2.5.0",
20
20
  "ciProvider": "unknown",
21
- "sdkVersion": "2.4.0"
21
+ "sdkVersion": "2.5.0"
22
22
  }
data/.fern/replay.lock CHANGED
@@ -2286,5 +2286,317 @@ generations:
2286
2286
  cli_version: unknown
2287
2287
  generator_versions:
2288
2288
  fernapi/fern-ruby-sdk: 1.28.3
2289
- current_generation: efd5a8cd40ef8c4ce1a899fcad92eca522c3ffab
2289
+ - commit_sha: e193faa62adcd35aae521631479509e988f421c6
2290
+ tree_hash: 6f3287f37fc5c835479e9b082278ad88105ba425
2291
+ timestamp: 2026-10-10T21:21:59.503Z
2292
+ cli_version: unknown
2293
+ generator_versions:
2294
+ fernapi/fern-ruby-sdk: 1.28.3
2295
+ - commit_sha: c1f21022a944b49dba8dd56234cc0afa422c0046
2296
+ tree_hash: 2bc53f30583a368ed8a3fd3d1258b1ba7e40b53d
2297
+ timestamp: 2026-10-10T22:25:12.804Z
2298
+ cli_version: unknown
2299
+ generator_versions:
2300
+ fernapi/fern-ruby-sdk: 1.28.3
2301
+ - commit_sha: 3112a44154f0b9a795c92956fd1a7e4a96169310
2302
+ tree_hash: c95924a7b45474215283c4d2328e6a22df875573
2303
+ timestamp: 2026-10-11T21:36:37.631Z
2304
+ cli_version: unknown
2305
+ generator_versions:
2306
+ fernapi/fern-ruby-sdk: 1.28.3
2307
+ - commit_sha: 16ff13237632df54fe0ebe1a10f18a2e02d4a626
2308
+ tree_hash: 2db260db1acd98b203003a4095d33e3a6c5296dc
2309
+ timestamp: 2026-10-12T06:02:33.678Z
2310
+ cli_version: unknown
2311
+ generator_versions:
2312
+ fernapi/fern-ruby-sdk: 1.28.3
2313
+ - commit_sha: f38c7caa9ecaa8aa16070da04a70668e776a6a8a
2314
+ tree_hash: 6c1a48479e7fee9f40e7f29416ccf3a5b1235ab3
2315
+ timestamp: 2026-10-12T17:57:36.715Z
2316
+ cli_version: unknown
2317
+ generator_versions:
2318
+ fernapi/fern-ruby-sdk: 1.28.3
2319
+ - commit_sha: 0db72ec94c82cc21119e337298caff20054e76b8
2320
+ tree_hash: 1471844f2c1400305a648d241698d0c0814e63be
2321
+ timestamp: 2026-10-12T19:03:13.809Z
2322
+ cli_version: unknown
2323
+ generator_versions:
2324
+ fernapi/fern-ruby-sdk: 1.28.3
2325
+ - commit_sha: a2027ceb58db2e5eaeac6577e1ad4b4bae218f49
2326
+ tree_hash: 312d5fc165809794c911ba4abcfd079bc70df9c6
2327
+ timestamp: 2026-10-12T20:25:48.666Z
2328
+ cli_version: unknown
2329
+ generator_versions:
2330
+ fernapi/fern-ruby-sdk: 1.28.3
2331
+ - commit_sha: 96188087ab50b60fde31a9707357092c1dc9c2a4
2332
+ tree_hash: 5869b8ad44ae422e5779b5de1a9965d3f3a0073f
2333
+ timestamp: 2026-10-12T21:52:47.225Z
2334
+ cli_version: unknown
2335
+ generator_versions:
2336
+ fernapi/fern-ruby-sdk: 1.28.3
2337
+ - commit_sha: b3a15509faf53dd682992f2933e2de39b609935a
2338
+ tree_hash: ec72c6a2a9594ca92678be21da1e8818f018b017
2339
+ timestamp: 2026-10-12T22:40:13.998Z
2340
+ cli_version: unknown
2341
+ generator_versions:
2342
+ fernapi/fern-ruby-sdk: 1.28.3
2343
+ - commit_sha: 1a237bee9d36fbb255ccd895108a7b36e839fc8e
2344
+ tree_hash: 0bb55140cf1a4e7a79ea646daccc349e943c5b4b
2345
+ timestamp: 2026-10-12T22:58:22.180Z
2346
+ cli_version: unknown
2347
+ generator_versions:
2348
+ fernapi/fern-ruby-sdk: 1.28.3
2349
+ - commit_sha: 805658ae5c69dfbb3fd673a772422ce769c91028
2350
+ tree_hash: 0ee77ea774ebe4ec234d63acaf5ed4e45c7a9815
2351
+ timestamp: 2026-10-12T23:26:25.714Z
2352
+ cli_version: unknown
2353
+ generator_versions:
2354
+ fernapi/fern-ruby-sdk: 1.28.3
2355
+ - commit_sha: 29abc0332aa429e55f73f89ea16868342a8347ab
2356
+ tree_hash: b4ace5b56692a8579e0abc9db38fbdbbdef5be0f
2357
+ timestamp: 2026-10-12T23:51:04.999Z
2358
+ cli_version: unknown
2359
+ generator_versions:
2360
+ fernapi/fern-ruby-sdk: 1.28.3
2361
+ - commit_sha: 29946bd52cad320ae940c68f52b124e40074fc30
2362
+ tree_hash: b8d0f5f4896ec9ae41f7e1aec7589914f8467570
2363
+ timestamp: 2026-10-13T00:01:54.866Z
2364
+ cli_version: unknown
2365
+ generator_versions:
2366
+ fernapi/fern-ruby-sdk: 1.28.3
2367
+ - commit_sha: 64da5461391c5fd17befcb5bec702c18a78def09
2368
+ tree_hash: fa700fa6ad9979a0969117657f92031ba130443e
2369
+ timestamp: 2026-10-13T00:13:15.351Z
2370
+ cli_version: unknown
2371
+ generator_versions:
2372
+ fernapi/fern-ruby-sdk: 1.28.3
2373
+ - commit_sha: 4daadbe477aad85a9b6e3c6d30cb847719c9314b
2374
+ tree_hash: 2aff7fd964b1140ec2f98863ecf34d6318a03e6a
2375
+ timestamp: 2026-10-13T00:39:44.285Z
2376
+ cli_version: unknown
2377
+ generator_versions:
2378
+ fernapi/fern-ruby-sdk: 1.28.3
2379
+ - commit_sha: 2bcd3b17d39e866a7cfa392dd2d6de89e46a42ee
2380
+ tree_hash: 0cf184a95563e7943a99dae1be97baa2f4adaa85
2381
+ timestamp: 2026-10-13T01:39:45.917Z
2382
+ cli_version: unknown
2383
+ generator_versions:
2384
+ fernapi/fern-ruby-sdk: 1.28.3
2385
+ - commit_sha: 9af0482e590cf1f11e8969efe63931854e4fe47b
2386
+ tree_hash: b5f4ef1dea1954378c038e17aeb93265edcbb158
2387
+ timestamp: 2026-10-13T01:51:16.461Z
2388
+ cli_version: unknown
2389
+ generator_versions:
2390
+ fernapi/fern-ruby-sdk: 1.28.3
2391
+ - commit_sha: 5e914705ecf2445bc030e09e39ab91cc62d25be6
2392
+ tree_hash: 1131fc32ca9fbef8b2aed1739b2183b99dea75d0
2393
+ timestamp: 2026-10-13T02:14:00.426Z
2394
+ cli_version: unknown
2395
+ generator_versions:
2396
+ fernapi/fern-ruby-sdk: 1.28.3
2397
+ - commit_sha: 39d73be7cddcfd2783132b17cc1b6542529bf7ca
2398
+ tree_hash: c6642b6fbf5d892286ff207c048574bd14bdafd2
2399
+ timestamp: 2026-10-13T02:25:56.957Z
2400
+ cli_version: unknown
2401
+ generator_versions:
2402
+ fernapi/fern-ruby-sdk: 1.28.3
2403
+ - commit_sha: bb114296221f647522211a7a07ae33d9b8fe706d
2404
+ tree_hash: dccac8559498294242ebb3db86f3f248eb53d44e
2405
+ timestamp: 2026-10-13T03:55:46.814Z
2406
+ cli_version: unknown
2407
+ generator_versions:
2408
+ fernapi/fern-ruby-sdk: 1.28.3
2409
+ - commit_sha: 8b80cd633c5f5680732b34f3e38f6fbb29ca2473
2410
+ tree_hash: 390af5ec8d8dfdd57a12506cb1e7e9913422eae2
2411
+ timestamp: 2026-10-13T04:09:56.111Z
2412
+ cli_version: unknown
2413
+ generator_versions:
2414
+ fernapi/fern-ruby-sdk: 1.28.3
2415
+ - commit_sha: 75afea03cd295505c4fa60efd4d0a779bf7f3f81
2416
+ tree_hash: e73ad81bde7c5d19df202363d4e48ecca08b7d80
2417
+ timestamp: 2026-10-13T05:04:10.450Z
2418
+ cli_version: unknown
2419
+ generator_versions:
2420
+ fernapi/fern-ruby-sdk: 1.28.3
2421
+ - commit_sha: 85989ab6cac5f8cfa0fee37cb096cfc20a1e0928
2422
+ tree_hash: a72f1bd178454d4ef5ab337ef26037fbe38a3530
2423
+ timestamp: 2026-10-13T05:15:26.964Z
2424
+ cli_version: unknown
2425
+ generator_versions:
2426
+ fernapi/fern-ruby-sdk: 1.28.3
2427
+ - commit_sha: eea1ecca632efde15c6e59a9f4ab944f85858603
2428
+ tree_hash: 5b94cdde1f7ec99b1ee09f4f282a8b1ec1d41fc5
2429
+ timestamp: 2026-10-13T05:34:28.649Z
2430
+ cli_version: unknown
2431
+ generator_versions:
2432
+ fernapi/fern-ruby-sdk: 1.28.3
2433
+ - commit_sha: 2caf1d0edf5c0369c1321038b514b8ff7fff08fa
2434
+ tree_hash: da9b2f48851ec5e7b1d49ab7e29b9d44ba410a48
2435
+ timestamp: 2026-10-13T06:49:33.782Z
2436
+ cli_version: unknown
2437
+ generator_versions:
2438
+ fernapi/fern-ruby-sdk: 1.28.3
2439
+ - commit_sha: 6ba2d6bd70aed0d57805f3b78482a52016e6a138
2440
+ tree_hash: 599d56ba134a742266b888e1dc70bcaf7437b154
2441
+ timestamp: 2026-10-13T07:35:21.972Z
2442
+ cli_version: unknown
2443
+ generator_versions:
2444
+ fernapi/fern-ruby-sdk: 1.28.3
2445
+ - commit_sha: 5588d045c05e4f2a898309243e85b103d13998dd
2446
+ tree_hash: d1541defbd5a4eca2bca1a5c2062e54d2d4a99db
2447
+ timestamp: 2026-10-13T07:58:28.368Z
2448
+ cli_version: unknown
2449
+ generator_versions:
2450
+ fernapi/fern-ruby-sdk: 1.28.3
2451
+ - commit_sha: 7197ee3355d9c21b3559bf0617f9352ff1aede4a
2452
+ tree_hash: 553b53ca23866dd8bd48f57213583418e657a897
2453
+ timestamp: 2026-10-13T09:07:28.441Z
2454
+ cli_version: unknown
2455
+ generator_versions:
2456
+ fernapi/fern-ruby-sdk: 1.28.3
2457
+ - commit_sha: 704292285f4d7a9a8a11c78bb8e87bc171463ee1
2458
+ tree_hash: 6fae8b475b9fd774bb601a548fcad831f3287c4c
2459
+ timestamp: 2026-10-13T10:50:39.579Z
2460
+ cli_version: unknown
2461
+ generator_versions:
2462
+ fernapi/fern-ruby-sdk: 1.28.3
2463
+ - commit_sha: ee149b8f91a67f1656a92fc5400dd4b961001042
2464
+ tree_hash: 5a9c901f644b49aa7cd48758e9da6e4ee811fdec
2465
+ timestamp: 2026-10-13T17:11:53.936Z
2466
+ cli_version: unknown
2467
+ generator_versions:
2468
+ fernapi/fern-ruby-sdk: 1.28.3
2469
+ - commit_sha: 5d854990a055c12dffecb4569a90b37ef6369843
2470
+ tree_hash: d6f2f87b9d4de6f70add94ef9e95b0d40e339b1a
2471
+ timestamp: 2026-10-13T17:23:49.207Z
2472
+ cli_version: unknown
2473
+ generator_versions:
2474
+ fernapi/fern-ruby-sdk: 1.28.3
2475
+ - commit_sha: a4afa120dac2d073f5ededa674fe7faf891e3c4c
2476
+ tree_hash: b8bfa4a6b6d2a1480b9f3a3e796c0e7573d7bd36
2477
+ timestamp: 2026-10-13T18:54:53.586Z
2478
+ cli_version: unknown
2479
+ generator_versions:
2480
+ fernapi/fern-ruby-sdk: 1.28.3
2481
+ - commit_sha: 5d04e0f63be4f985b5d99e745c24d5c0cf229df8
2482
+ tree_hash: da6a4755cd5182522f7de9bfa814db013b2cbc21
2483
+ timestamp: 2026-10-13T19:59:20.453Z
2484
+ cli_version: unknown
2485
+ generator_versions:
2486
+ fernapi/fern-ruby-sdk: 1.28.3
2487
+ - commit_sha: 4ed457239c5eb9915a32ae03eea3ceb3f0fc7a79
2488
+ tree_hash: 957af87bb1714ddb010aec2af22f2ab0c793b2e8
2489
+ timestamp: 2026-10-13T20:10:59.415Z
2490
+ cli_version: unknown
2491
+ generator_versions:
2492
+ fernapi/fern-ruby-sdk: 1.28.3
2493
+ - commit_sha: 7f8b189696231633f1868d55aca1730b71fed23e
2494
+ tree_hash: fac28fef45bc17ea70a81956614bc3f0a6d5aef8
2495
+ timestamp: 2026-10-13T20:23:03.787Z
2496
+ cli_version: unknown
2497
+ generator_versions:
2498
+ fernapi/fern-ruby-sdk: 1.28.3
2499
+ - commit_sha: 45150fa923f363b235226a53dc7ed4b177b78cfa
2500
+ tree_hash: 996881e86bca0e45548ce23da2642ff2f55b3a0d
2501
+ timestamp: 2026-10-13T20:43:45.534Z
2502
+ cli_version: unknown
2503
+ generator_versions:
2504
+ fernapi/fern-ruby-sdk: 1.28.3
2505
+ - commit_sha: 590ffadb565a2cba9ff4425ca764a54c6667959a
2506
+ tree_hash: 5743406e0ab163ca671a35bd1869ec2339af515a
2507
+ timestamp: 2026-10-13T21:43:30.918Z
2508
+ cli_version: unknown
2509
+ generator_versions:
2510
+ fernapi/fern-ruby-sdk: 1.28.3
2511
+ - commit_sha: be3e4cbcdf6e4ca002354897ebb5fbd15a5b1edb
2512
+ tree_hash: 773ec19b9d19ff065b0dba57ee2c5d2799a4190f
2513
+ timestamp: 2026-10-13T22:52:20.834Z
2514
+ cli_version: unknown
2515
+ generator_versions:
2516
+ fernapi/fern-ruby-sdk: 1.28.3
2517
+ - commit_sha: bff94b4b7e9c6279572c464598a175a7fea983d3
2518
+ tree_hash: 0dc83880771666d61eea6bff9bd2cf76c7d09165
2519
+ timestamp: 2026-10-13T23:06:04.780Z
2520
+ cli_version: unknown
2521
+ generator_versions:
2522
+ fernapi/fern-ruby-sdk: 1.28.3
2523
+ - commit_sha: 6c23af5976aabf55f3805e9b9bef8e68cc6b5b8c
2524
+ tree_hash: 3d74eae4bf1a723fdcce0927d80d6be6fd6ceb3b
2525
+ timestamp: 2026-10-13T23:38:30.586Z
2526
+ cli_version: unknown
2527
+ generator_versions:
2528
+ fernapi/fern-ruby-sdk: 1.28.3
2529
+ - commit_sha: 4648031dea7388e5f341f29c22256cc7bbfdec7f
2530
+ tree_hash: d61a8bf151205b5d298d8762d70aa7c8ac470296
2531
+ timestamp: 2026-10-13T23:58:49.827Z
2532
+ cli_version: unknown
2533
+ generator_versions:
2534
+ fernapi/fern-ruby-sdk: 1.28.3
2535
+ - commit_sha: 0acfc44ecc0164610537e83330aa3e2af35de11d
2536
+ tree_hash: 87fe29b59afbbd9476d510922e30c75a06aef7a4
2537
+ timestamp: 2026-10-14T00:10:07.198Z
2538
+ cli_version: unknown
2539
+ generator_versions:
2540
+ fernapi/fern-ruby-sdk: 1.28.3
2541
+ - commit_sha: 1b68e3b2cac847c9f0f4b43bafa7bd983b00331a
2542
+ tree_hash: f40401ddb2173df58e7eeec0c1cfe1e14f560140
2543
+ timestamp: 2026-10-14T02:41:15.627Z
2544
+ cli_version: unknown
2545
+ generator_versions:
2546
+ fernapi/fern-ruby-sdk: 1.28.3
2547
+ - commit_sha: 30d73903ba6dee0b6c17d1ebbb77810f58189873
2548
+ tree_hash: 3d497b816cd5fe910b667c97974c28d527fe4ad6
2549
+ timestamp: 2026-10-14T03:46:02.640Z
2550
+ cli_version: unknown
2551
+ generator_versions:
2552
+ fernapi/fern-ruby-sdk: 1.28.3
2553
+ - commit_sha: c1b7d4ff31ac28ec98e4048de07bbe072f304b5f
2554
+ tree_hash: ef0fb016061f77d1aad6c0de0acec6012d26c983
2555
+ timestamp: 2026-10-14T04:02:33.532Z
2556
+ cli_version: unknown
2557
+ generator_versions:
2558
+ fernapi/fern-ruby-sdk: 1.28.3
2559
+ - commit_sha: 65c5b99191b4355c4bc07cab33865108bbf4ea6d
2560
+ tree_hash: a263df0b34a6aea588f9174fd5536e6b5ff91cb6
2561
+ timestamp: 2026-10-14T05:13:53.706Z
2562
+ cli_version: unknown
2563
+ generator_versions:
2564
+ fernapi/fern-ruby-sdk: 1.28.3
2565
+ - commit_sha: 75a35649b203f479c1adee5b166191ab71bb8651
2566
+ tree_hash: 351fcf2d384eada8d22cfe2f3957538308f26e50
2567
+ timestamp: 2026-10-14T06:17:48.268Z
2568
+ cli_version: unknown
2569
+ generator_versions:
2570
+ fernapi/fern-ruby-sdk: 1.28.3
2571
+ - commit_sha: c512c00b7ad8b0f78c1bb84a0ab6a48ba1cd0eeb
2572
+ tree_hash: 249c2c5a5d365e08d3a1a8d8220001c30884a5d6
2573
+ timestamp: 2026-10-14T06:28:42.304Z
2574
+ cli_version: unknown
2575
+ generator_versions:
2576
+ fernapi/fern-ruby-sdk: 1.28.3
2577
+ - commit_sha: be28f576aadaf718279d037b18a183566dfe300a
2578
+ tree_hash: efc6916935e096613cf8d87d21e9cab84f7545b5
2579
+ timestamp: 2026-10-14T08:02:24.145Z
2580
+ cli_version: unknown
2581
+ generator_versions:
2582
+ fernapi/fern-ruby-sdk: 1.28.3
2583
+ - commit_sha: 575914fe3f553587bcfcd49a2035fda5ca87d816
2584
+ tree_hash: 99bc65346d774a6ea060b7e26e69e33c68dbae90
2585
+ timestamp: 2026-10-14T16:28:02.393Z
2586
+ cli_version: unknown
2587
+ generator_versions:
2588
+ fernapi/fern-ruby-sdk: 1.28.3
2589
+ - commit_sha: 6e13b3ce315dfbe308e24f7a790f5ba5d16c0b6b
2590
+ tree_hash: 004bb6412fc547c3d3efd34ffb5eb2ee4711386f
2591
+ timestamp: 2026-10-14T16:40:33.110Z
2592
+ cli_version: unknown
2593
+ generator_versions:
2594
+ fernapi/fern-ruby-sdk: 1.28.3
2595
+ - commit_sha: 47aab6e40a1d9c1936a33fb1bdbf2b430a6a2154
2596
+ tree_hash: 5cefaba8175c54e095f89388c349c255eb5ac04b
2597
+ timestamp: 2026-10-14T18:24:26.709Z
2598
+ cli_version: unknown
2599
+ generator_versions:
2600
+ fernapi/fern-ruby-sdk: 1.28.3
2601
+ current_generation: 47aab6e40a1d9c1936a33fb1bdbf2b430a6a2154
2290
2602
  patches: []
@@ -14,9 +14,8 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Create a short-lived access token for authenticating API requests. When using API key authentication, provide
18
- # account_id or user_id. When using OAuth, the user is derived from the token. Use this token with Whop's web and
19
- # mobile embedded components.
17
+ # Creates a short-lived access token for Whop's web and mobile embedded components. With API key authentication,
18
+ # pass `account_id` or `user_id`; with OAuth, the token is issued for the OAuth user.
20
19
  #
21
20
  # @param request_options [Hash]
22
21
  # @param params [Whop_sdk::AccessTokens::Types::CreateAccessTokensRequest]
@@ -14,8 +14,8 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Generate a URL that directs a sub-merchant to their account portal, such as the hosted payouts dashboard or the
18
- # KYC onboarding flow.
17
+ # Generates a URL that sends a sub-merchant to a hosted Whop page, such as the payouts dashboard or the KYC
18
+ # onboarding flow. Requires an API key.
19
19
  #
20
20
  # @param request_options [Hash]
21
21
  # @param params [Whop_sdk::AccountLinks::Types::CreateAccountLinksRequest]
@@ -15,9 +15,7 @@ module Whop_sdk
15
15
  end
16
16
 
17
17
  # Lists accounts visible to the credential. User tokens return the user's business accounts; Account API keys
18
- # return the requesting account and its connected accounts. Pass `parent_account_id` to return only that parent
19
- # account's connected accounts. Includes each account's `cards` application summary when the caller has
20
- # `company:balance:read` access to that account.
18
+ # return the requesting account and its connected accounts.
21
19
  #
22
20
  # @param request_options [Hash]
23
21
  # @param params [Hash]
@@ -170,9 +168,7 @@ module Whop_sdk
170
168
  end
171
169
  end
172
170
 
173
- # Retrieves a single account by ID or public route when it is visible to the credential, including its crypto
174
- # wallet. The reserved id `me` retrieves the account associated with the current Account API key; user tokens have
175
- # no single account, so they must address one by ID or route.
171
+ # Retrieves an account visible to the credential by ID or public route, including its crypto wallet.
176
172
  #
177
173
  # @param request_options [Hash]
178
174
  # @param params [Hash]
@@ -256,8 +252,6 @@ module Whop_sdk
256
252
  end
257
253
 
258
254
  # Updates an account. User tokens can update business accounts; Account API keys can update connected accounts.
259
- # The reserved id `me` — accepted on Retrieve Account — resolves to the requesting account, which an Account API
260
- # key cannot edit, so updates must name the connected account by its `biz_` id.
261
255
  #
262
256
  # @param request_options [Hash]
263
257
  # @param params [Whop_sdk::Accounts::Types::UpdateAccountsRequest]
@@ -299,10 +293,8 @@ module Whop_sdk
299
293
  end
300
294
  end
301
295
 
302
- # Starts an LLC or C-Corp formation for a business account. Defaults to an LLC; set `entity_type` to `c_corp` to
303
- # form a C-Corp, which additionally requires `share_structure` and officer `roles` on every founder. On
304
- # submission, the application is validated and the response returns a hosted checkout URL. Once paid, the filing
305
- # is submitted. Track progress through the account's
296
+ # Starts an LLC or C-Corp formation for a business account. The application is validated and the response returns
297
+ # a hosted checkout URL; once paid, the filing is submitted. Track progress through the account's
306
298
  # [`company_formation`](/api-reference/beta/accounts/retrieve-account) field on Retrieve Account.
307
299
  #
308
300
  # @param request_options [Hash]
@@ -327,7 +319,6 @@ module Whop_sdk
327
319
  # },
328
320
  # business_name: "Shine Time Auto Detailing",
329
321
  # business_phone: "+15125550142",
330
- # business_type: "brick_and_mortar",
331
322
  # business_website: "https://shinetime.example",
332
323
  # entity_suffix: "LLC",
333
324
  # entity_type: "llc",
@@ -352,8 +343,6 @@ module Whop_sdk
352
343
  # roles: ["president"],
353
344
  # ssn: "123-45-6789"
354
345
  # }],
355
- # industry_group: "automotive",
356
- # industry_type: "car_wash",
357
346
  # share_structure: {
358
347
  # number_of_shares: 123,
359
348
  # value: 123
@@ -390,10 +379,10 @@ module Whop_sdk
390
379
  end
391
380
 
392
381
  # Queues one background retry of the account's failed ads payments across its campaigns, using the account's
393
- # configured ads payment methods. A queued response does not mean payment succeeded. Read campaign delivery_status
394
- # and issues for the outcome. Successful settlement clears the payment block without changing configured active or
395
- # paused status; legacy payment_failed status becomes paused. Another request while the account retry is queued or
396
- # running returns an error asking you to wait.
382
+ # configured ads payment methods. A queued response does not mean payment succeeded; read each campaign's
383
+ # `delivery_status` and `issues` for the outcome. Successful settlement clears the payment block without changing
384
+ # a configured `active` or `paused` status; a legacy `payment_failed` status becomes `paused`. Returns an error
385
+ # when the account has no failed ads payments, or while a previous retry for the account is queued or running.
397
386
  #
398
387
  # @param request_options [Hash]
399
388
  # @param params [Hash]
@@ -15,9 +15,9 @@ module Whop_sdk
15
15
  @environment = environment
16
16
  end
17
17
 
18
- # Retrieves the account's fees: a singleton document keyed by fee, with any markups its platform adds. Connected
19
- # accounts see their effective rates, with covered payouts shown as zero; pricing provenance and comparisons are
20
- # null without parent-account access. `adjustable` on each fee says what the caller may change.
18
+ # Retrieves the account's fees as a single document keyed by fee, with any markups its platform adds. Connected
19
+ # accounts see the rates in effect for them. `adjustable` on each fee says what you may change with Update
20
+ # Account Fees.
21
21
  #
22
22
  # @param request_options [Hash]
23
23
  # @param params [Hash]
@@ -54,9 +54,8 @@ module Whop_sdk
54
54
  end
55
55
  end
56
56
 
57
- # Updates the account's fees. The response shows effective rates and hides pricing provenance and comparisons
58
- # without parent-account access. Each key present in the body is replaced; omitted keys are left untouched. Only
59
- # fees the document reports as `adjustable` can be changed.
57
+ # Updates the account's fees. Each key present in the body is replaced; omitted keys are left untouched. Only
58
+ # fees that Retrieve Account Fees reports as `adjustable` can be changed.
60
59
  #
61
60
  # @param request_options [Hash]
62
61
  # @param params [Whop_sdk::Accounts::Fees::Types::UpdateFeesRequest]
@@ -15,9 +15,8 @@ module Whop_sdk
15
15
  @environment = environment
16
16
  end
17
17
 
18
- # Lists payment-financing applications for the account in the URL. Account credentials can access their own
19
- # account and direct sub-accounts, excluding deeper descendants. User credentials require the read permission on
20
- # each account. Filters only narrow this visibility.
18
+ # Lists payment-financing applications for an account. Account credentials can list their own account and its
19
+ # direct connected accounts, but not deeper descendants; user credentials need read access to the account.
21
20
  #
22
21
  # @param request_options [Hash]
23
22
  # @param params [Hash]
@@ -83,11 +82,11 @@ module Whop_sdk
83
82
  end
84
83
  end
85
84
 
86
- # Creates an application for merchant payment-financing approval. Requires an existing ledger account. Returns
87
- # an existing application collecting information or awaiting review; applications awaiting review take
88
- # precedence. Restricted industries cannot apply. Closed applications allow reapplication. This does not submit
89
- # the application for review. Supports Idempotency-Key replay; open applications are also reused across
90
- # different keys.
85
+ # Starts an application for payment-financing approval, or returns the account's open one: an application in
86
+ # `awaiting_review` takes precedence over one in `requires_collection`, and the open application is reused
87
+ # across different `Idempotency-Key` values. Creating an application does not submit it for review. The account
88
+ # must have a Whop balance set up, and accounts in restricted industries cannot apply. Once an application
89
+ # closes, the account can apply again.
91
90
  #
92
91
  # @param request_options [Hash]
93
92
  # @param params [Whop_sdk::Accounts::FinancingApplications::Types::CreateFinancingApplicationsRequest]
@@ -129,9 +128,8 @@ module Whop_sdk
129
128
  end
130
129
  end
131
130
 
132
- # Retrieves a payment-financing application's review state, requirements, saved answers, documents, current
133
- # terms, and public review feedback. Requires read access to its owning account. Internal review notes and risk
134
- # metrics are not exposed.
131
+ # Retrieves a payment-financing application with its review state, requirements, saved answers, documents,
132
+ # current terms, and review feedback. Requires read access to the account that owns it.
135
133
  #
136
134
  # @param request_options [Hash]
137
135
  # @param params [Hash]
@@ -172,12 +170,9 @@ module Whop_sdk
172
170
  end
173
171
  end
174
172
 
175
- # Saves merchant answers while the application requires_collection. The entire batch is atomic. Omitted
176
- # requirements and answer fields are unchanged; empty arrays clear values or documents, and null money clears a
177
- # price. Only merchant requirement IDs returned by this application are accepted. Upload documents through the
178
- # Files API first: new files must belong to the caller, be ready and private, and satisfy the requirement's
179
- # formats and 20 MB limit. file_ids replaces the requirement's attachments. This does not submit the
180
- # application.
173
+ # Saves merchant answers to an application in `requires_collection`. The batch is atomic: if any answer is
174
+ # rejected, none are saved. Omitted requirements and answer fields are left unchanged. Saving answers does not
175
+ # submit the application; call Submit Financing Application when it is complete.
181
176
  #
182
177
  # @param request_options [Hash]
183
178
  # @param params [Whop_sdk::Accounts::FinancingApplications::Types::UpdateFinancingApplicationsRequest]
@@ -226,13 +221,12 @@ module Whop_sdk
226
221
  end
227
222
  end
228
223
 
229
- # Submits a complete application for financing review. Present the application's terms.content, policies, and
230
- # disclosure to the merchant and collect affirmative acceptance before calling this endpoint. Pass the
231
- # terms.version that was presented; stale versions are rejected. The server records acceptance, submitting
232
- # actor, and submission time before entering awaiting_review. Only requires_collection applications may submit,
233
- # including after a reviewer requests more information. Resubmissions require acceptance again. Use
234
- # Idempotency-Key for retries; submitting an application already in review without replay returns an error.
235
- # Approval does not itself enable financing payment methods.
224
+ # Submits a complete application for financing review, recording the merchant's acceptance, who submitted, and
225
+ # when, then moving it to `awaiting_review`. Before calling, present the application's `terms.content`,
226
+ # policies, and disclosure to the merchant and collect affirmative acceptance; every resubmission needs
227
+ # acceptance again. Only an application in `requires_collection` can be submitted, including after a reviewer
228
+ # requests more information. Retry with the same `Idempotency-Key`: submitting an application already in review
229
+ # without a replay returns an error. Approval does not by itself enable financing payment methods.
236
230
  #
237
231
  # @param request_options [Hash]
238
232
  # @param params [Whop_sdk::Accounts::FinancingApplications::Types::SubmitFinancingApplicationsRequest]
@@ -4,6 +4,7 @@ module Whop_sdk
4
4
  module Accounts
5
5
  module FinancingApplications
6
6
  module Types
7
+ # Price answer, such as `max_product_price`. `null` clears the price.
7
8
  class UpdateFinancingApplicationsRequestAnswersItemMoney < Internal::Types::Model
8
9
  field :amount, -> { String }, optional: false, nullable: false
9
10
 
@@ -64,6 +64,7 @@ module Whop_sdk
64
64
  # | `cards_auto_top_up`, `cards_notifications` | `payout:account:update` |
65
65
  # | `dispute_fighter_enabled` | `payment:dispute` |
66
66
  # | `economic_intelligence_duration_key`, `economic_intelligence_auto_renew` | `company:update` |
67
+ # | `feedback_options` | `company:manage_checkout` |
67
68
  #
68
69
  # When updating preferences from multiple rows, all corresponding scopes are required for the account.
69
70
  #
@@ -37,6 +37,8 @@ module Whop_sdk
37
37
 
38
38
  field :economic_intelligence_previous_period, -> { Whop_sdk::Accounts::Preferences::Types::RetrievePreferencesResponseEconomicIntelligencePreviousPeriod }, optional: false, nullable: true
39
39
 
40
+ field :feedback_options, -> { Internal::Types::Array[Whop_sdk::Accounts::Preferences::Types::RetrievePreferencesResponseFeedbackOptionsItem] }, optional: false, nullable: false
41
+
40
42
  field :preferred_settlement_currency, -> { Whop_sdk::Accounts::Preferences::Types::RetrievePreferencesResponsePreferredSettlementCurrency }, optional: false, nullable: true
41
43
 
42
44
  field :preferred_settlement_currency_changeable_at, -> { String }, optional: false, nullable: true
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Accounts
5
+ module Preferences
6
+ module Types
7
+ class RetrievePreferencesResponseFeedbackOptionsItem < Internal::Types::Model
8
+ field :category, -> { Whop_sdk::Accounts::Preferences::Types::RetrievePreferencesResponseFeedbackOptionsItemCategory }, optional: false, nullable: false
9
+
10
+ field :id, -> { String }, optional: false, nullable: false
11
+
12
+ field :label, -> { String }, optional: false, nullable: false
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Accounts
5
+ module Preferences
6
+ module Types
7
+ module RetrievePreferencesResponseFeedbackOptionsItemCategory
8
+ extend Whop_sdk::Internal::Types::Enum
9
+
10
+ TOO_EXPENSIVE = "too_expensive"
11
+ SWITCHING = "switching"
12
+ MISSING_FEATURES = "missing_features"
13
+ TECHNICAL_ISSUES = "technical_issues"
14
+ BAD_EXPERIENCE = "bad_experience"
15
+ UNUSED = "unused"
16
+ OTHER = "other"
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -27,6 +27,8 @@ module Whop_sdk
27
27
 
28
28
  field :economic_intelligence_duration_key, -> { Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequestEconomicIntelligenceDurationKey }, optional: true, nullable: false
29
29
 
30
+ field :feedback_options, -> { Internal::Types::Array[Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequestFeedbackOptionsItem] }, optional: true, nullable: false
31
+
30
32
  field :preferred_settlement_currency, -> { Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequestPreferredSettlementCurrency }, optional: true, nullable: false
31
33
 
32
34
  field :subscription_failure_behavior, -> { Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequestSubscriptionFailureBehavior }, optional: true, nullable: false
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Accounts
5
+ module Preferences
6
+ module Types
7
+ class UpdatePreferencesRequestFeedbackOptionsItem < Internal::Types::Model
8
+ field :category, -> { Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequestFeedbackOptionsItemCategory }, optional: false, nullable: false
9
+
10
+ field :id, -> { String }, optional: true, nullable: false
11
+
12
+ field :label, -> { String }, optional: false, nullable: false
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end