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
@@ -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,11 @@ 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` adds company
68
+ # formation documents to the verification and the hosted session collects the rest. Once the account has an
69
+ # `approved` verification, every mode except `verification_id` is rejected — unlink it first to start a new one.
72
70
  #
73
71
  # @param request_options [Hash]
74
72
  # @param params [Whop_sdk::Verifications::Types::CreateVerificationsRequestBody]
@@ -114,7 +112,7 @@ module Whop_sdk
114
112
  end
115
113
  end
116
114
 
117
- # Returns verifications for an account, including their status and any required actions.
115
+ # Retrieves a verification by ID, including its status and any information or documents still required.
118
116
  #
119
117
  # @param request_options [Hash]
120
118
  # @param params [Hash]
@@ -20,12 +20,18 @@ 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
 
27
31
  field :place_of_incorporation, -> { String }, optional: true, nullable: false
28
32
 
33
+ field :registration_number, -> { String }, optional: true, nullable: false
34
+
29
35
  field :share_token, -> { String }, optional: true, nullable: false
30
36
 
31
37
  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
@@ -28,6 +28,8 @@ module Whop_sdk
28
28
 
29
29
  field :phone, -> { String }, optional: true, nullable: false
30
30
 
31
+ field :registration_number, -> { String }, optional: true, nullable: false
32
+
31
33
  field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseRequestedInformationItem] }, optional: true, nullable: false
32
34
 
33
35
  field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseRequiredDocumentsItem] }, optional: true, nullable: false
@@ -28,6 +28,8 @@ module Whop_sdk
28
28
 
29
29
  field :phone, -> { String }, optional: true, nullable: false
30
30
 
31
+ field :registration_number, -> { String }, optional: true, nullable: false
32
+
31
33
  field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemRequestedInformationItem] }, optional: true, nullable: false
32
34
 
33
35
  field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemRequiredDocumentsItem] }, optional: true, nullable: false
@@ -28,6 +28,8 @@ module Whop_sdk
28
28
 
29
29
  field :phone, -> { String }, optional: true, nullable: false
30
30
 
31
+ field :registration_number, -> { String }, optional: true, nullable: false
32
+
31
33
  field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseRequestedInformationItem] }, optional: true, nullable: false
32
34
 
33
35
  field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseRequiredDocumentsItem] }, optional: true, nullable: false
@@ -28,6 +28,8 @@ module Whop_sdk
28
28
 
29
29
  field :phone, -> { String }, optional: true, nullable: false
30
30
 
31
+ field :registration_number, -> { String }, optional: true, nullable: false
32
+
31
33
  field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::UpdateVerificationsResponseRequestedInformationItem] }, optional: true, nullable: false
32
34
 
33
35
  field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::UpdateVerificationsResponseRequiredDocumentsItem] }, optional: true, nullable: false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Whop_sdk
4
- VERSION = "2.4.0"
4
+ VERSION = "2.5.0"
5
5
  end
@@ -14,9 +14,9 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Lists visible waitlist signups. waitlist_entry:read grants the user's own signups; plan:waitlist:read grants
18
- # signups for authorized seller accounts. With both permissions, returns their union. Account credentials are
19
- # limited to their account. Filters narrow this set.
17
+ # Lists the waitlist signups you can see. `waitlist_entry:read` returns the user's own signups and
18
+ # `plan:waitlist:read` returns signups to the seller accounts they are authorized on; with both, you get both
19
+ # sets. Account credentials see only their own account's signups.
20
20
  #
21
21
  # @param request_options [Hash]
22
22
  # @param params [Hash]
@@ -87,9 +87,9 @@ module Whop_sdk
87
87
  end
88
88
  end
89
89
 
90
- # Joins a free waitlist variant as the authenticated user. Requires waitlist_entry:create. Repeated joins return
91
- # the existing pending entry, or an approved entry with a valid membership. Paid variants are rejected; no payment
92
- # method is collected and no membership is granted.
90
+ # Joins a free waitlist variant as the authenticated user. Requires `waitlist_entry:create`. Joining again returns
91
+ # the existing pending signup, or the approved one while its membership is valid. Paid variants are rejected;
92
+ # joining collects no payment method and grants no membership.
93
93
  #
94
94
  # @param request_options [Hash]
95
95
  # @param params [Whop_sdk::WaitlistEntries::Types::CreateWaitlistEntriesRequest]
@@ -127,9 +127,9 @@ module Whop_sdk
127
127
  end
128
128
 
129
129
  # Queues approval of every pending signup for an account, optionally narrowed to a variant. Requires
130
- # plan:waitlist:manage. Paid signups may charge saved payment methods. Approval runs asynchronously: list signups
131
- # with `status` set to `pending` to follow progress, and retrieve a signup to read its outcome. Signups created
132
- # after this request are excluded.
130
+ # `plan:waitlist:manage`. Paid signups may charge saved payment methods. Approval runs asynchronously: list
131
+ # signups with `status` set to `pending` to follow progress, and retrieve a signup to read its outcome. Signups
132
+ # created after this request are excluded.
133
133
  #
134
134
  # @param request_options [Hash]
135
135
  # @param params [Whop_sdk::WaitlistEntries::Types::ApproveAllWaitlistEntriesRequest]
@@ -166,8 +166,8 @@ module Whop_sdk
166
166
  end
167
167
  end
168
168
 
169
- # Retrieves a signup owned by the caller with waitlist_entry:read, or submitted to an account they can read with
170
- # plan:waitlist:read.
169
+ # Retrieves a signup the caller owns, with `waitlist_entry:read`, or one submitted to an account they can read,
170
+ # with `plan:waitlist:read`.
171
171
  #
172
172
  # @param request_options [Hash]
173
173
  # @param params [Hash]
@@ -204,7 +204,7 @@ module Whop_sdk
204
204
  end
205
205
  end
206
206
 
207
- # Queues approval of a pending signup. Requires plan:waitlist:manage on its seller account. Paid signups may
207
+ # Queues approval of a pending signup. Requires `plan:waitlist:manage` on its seller account. Paid signups may
208
208
  # charge their saved payment method. Returns the signup's current state; retrieve it to read `status` and
209
209
  # `approval_failure_reason` after processing.
210
210
  #
@@ -243,7 +243,7 @@ module Whop_sdk
243
243
  end
244
244
  end
245
245
 
246
- # Withdraws the caller's pending personal signup. Requires waitlist_entry:cancel. Does not cancel an approved
246
+ # Withdraws the caller's own pending signup. Requires `waitlist_entry:cancel`. Does not cancel an approved
247
247
  # membership.
248
248
  #
249
249
  # @param request_options [Hash]
@@ -281,7 +281,7 @@ module Whop_sdk
281
281
  end
282
282
  end
283
283
 
284
- # Denies a pending signup. Requires plan:waitlist:manage on its seller account.
284
+ # Denies a pending signup. Requires `plan:waitlist:manage` on its seller account.
285
285
  #
286
286
  # @param request_options [Hash]
287
287
  # @param params [Hash]
@@ -151,7 +151,8 @@ module Whop_sdk
151
151
  end
152
152
  end
153
153
 
154
- # Permanently deletes a webhook endpoint. Returns `true` on success, matching the legacy proxy response.
154
+ # Permanently deletes a webhook endpoint. To stop deliveries without deleting it, set `enabled` to `false` with
155
+ # `PATCH /webhooks/:id`.
155
156
  #
156
157
  # @param request_options [Hash]
157
158
  # @param params [Hash]
@@ -283,11 +284,10 @@ module Whop_sdk
283
284
  end
284
285
  end
285
286
 
286
- # Re-sends the exact payload of a past delivery to the webhook's current URL and returns the delivery result. By
287
- # default the replay keeps the original `webhook-id`, so consumers that deduplicate on it can drop events they
288
- # already processed. Pass `regenerate_id` to re-send under a freshly generated `webhook-id` instead, so a
289
- # deduplicating consumer processes the replay as a new message. Only available for enabled webhooks on API version
290
- # v1; deliveries are retained for 30 days.
287
+ # Re-sends the exact payload of a past delivery to the webhook's current URL and returns the delivery result. The
288
+ # replay keeps the original `webhook-id` unless you pass `regenerate_id`, so consumers that deduplicate on it can
289
+ # drop events they already processed. Only available for enabled webhooks on API version `v1`; deliveries are
290
+ # retained for 30 days.
291
291
  #
292
292
  # @param request_options [Hash]
293
293
  # @param params [Whop_sdk::Webhooks::Types::ReplayDeliveryWebhooksRequest]
@@ -333,12 +333,11 @@ module Whop_sdk
333
333
  end
334
334
  end
335
335
 
336
- # Re-sends the webhook's past deliveries within a time window, optionally limited to specific events or to
337
- # messages whose most recent delivery attempt failed. Fire and forget: nothing about the replay is stored, and
338
- # each re-send appears as a new entry in the webhook's delivery log. Each matching message is re-sent once, by
339
- # default with its original `webhook-id`, so consumers that deduplicate are unaffected; pass `regenerate_ids` to
340
- # re-send under freshly generated ids instead. Only available for enabled webhooks on API version v1; deliveries
341
- # are retained for 30 days.
336
+ # Re-sends the webhook's past deliveries within a time window, optionally limited to specific events or to failed
337
+ # deliveries. Use it to recover events your endpoint missed. The replay runs asynchronously and nothing about it
338
+ # is stored: each re-send appears as a new entry in the webhook's delivery log. Each matching message is re-sent
339
+ # once, with its original `webhook-id` unless you pass `regenerate_ids`. Only available for enabled webhooks on
340
+ # API version `v1`; deliveries are retained for 30 days.
342
341
  #
343
342
  # @param request_options [Hash]
344
343
  # @param params [Whop_sdk::Webhooks::Types::ReplayWebhooksRequest]
@@ -9,6 +9,7 @@ module Whop_sdk
9
9
  ACCOUNT_UPDATED = "account.updated"
10
10
  ACCOUNT_FINANCING_APPROVED = "account.financing_approved"
11
11
  ACCOUNT_FINANCING_DENIED = "account.financing_denied"
12
+ ACCOUNT_FINANCING_DISABLED = "account.financing_disabled"
12
13
  INVOICE_CREATED = "invoice.created"
13
14
  INVOICE_MARKED_UNCOLLECTIBLE = "invoice.marked_uncollectible"
14
15
  INVOICE_PAID = "invoice.paid"
@@ -9,6 +9,7 @@ module Whop_sdk
9
9
  ACCOUNT_UPDATED = "account.updated"
10
10
  ACCOUNT_FINANCING_APPROVED = "account.financing_approved"
11
11
  ACCOUNT_FINANCING_DENIED = "account.financing_denied"
12
+ ACCOUNT_FINANCING_DISABLED = "account.financing_disabled"
12
13
  INVOICE_CREATED = "invoice.created"
13
14
  INVOICE_MARKED_UNCOLLECTIBLE = "invoice.marked_uncollectible"
14
15
  INVOICE_PAID = "invoice.paid"