whop_sdk 2.3.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 (402) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +3 -3
  3. data/.fern/replay.lock +403 -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/accounts/types/post_account_financing_disabled_payload_api_version.rb +13 -0
  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/ad_groups/types/post_ad_group_updated_payload.rb +25 -0
  32. data/lib/whop_sdk/{partners/types/referred_users_partners_request_user_id.rb → ad_groups/types/post_ad_group_updated_payload_api_version.rb} +3 -3
  33. data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data.rb +77 -0
  34. data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_bid_type.rb +15 -0
  35. data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_budget_type.rb +14 -0
  36. data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_conversion_location.rb +21 -0
  37. data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_delivery_status.rb +27 -0
  38. data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_message_apps_item.rb +15 -0
  39. data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_optimization_goal.rb +30 -0
  40. data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_platform.rb +15 -0
  41. data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_status.rb +16 -0
  42. data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_type.rb +13 -0
  43. data/lib/whop_sdk/ad_pixels/client.rb +241 -0
  44. data/lib/whop_sdk/ad_pixels/types/create_ad_pixels_request.rb +17 -0
  45. data/lib/whop_sdk/ad_pixels/types/create_ad_pixels_request_platform.rb +13 -0
  46. data/lib/whop_sdk/ad_pixels/types/delete_ad_pixels_request.rb +11 -0
  47. data/lib/whop_sdk/ad_pixels/types/delete_ad_pixels_response.rb +13 -0
  48. data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_request.rb +23 -0
  49. data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_request_direction.rb +14 -0
  50. data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_request_order.rb +13 -0
  51. data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_response.rb +13 -0
  52. data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_response_page_info.rb +17 -0
  53. data/lib/whop_sdk/ad_pixels/types/retrieve_ad_pixels_request.rb +11 -0
  54. data/lib/whop_sdk/ad_pixels/types/update_ad_pixels_request.rb +13 -0
  55. data/lib/whop_sdk/ads/client.rb +1 -2
  56. data/lib/whop_sdk/affiliates/client.rb +5 -5
  57. data/lib/whop_sdk/api_keys/client.rb +2 -2
  58. data/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +5 -0
  59. data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +5 -0
  60. data/lib/whop_sdk/app_builds/client.rb +2 -2
  61. data/lib/whop_sdk/app_builds/types/create_app_builds_request_attachment.rb +2 -1
  62. data/lib/whop_sdk/apps/client.rb +2 -4
  63. data/lib/whop_sdk/apps/types/create_apps_request.rb +2 -0
  64. data/lib/whop_sdk/apps/types/list_apps_request_order.rb +1 -0
  65. data/lib/whop_sdk/audiences/client.rb +5 -5
  66. data/lib/whop_sdk/authorized_users/client.rb +3 -4
  67. data/lib/whop_sdk/bounty_submissions/client.rb +7 -10
  68. data/lib/whop_sdk/bounty_submissions/types/submit_bounty_submissions_request_deliverable.rb +3 -1
  69. data/lib/whop_sdk/card_transactions/client.rb +9 -6
  70. data/lib/whop_sdk/card_transactions/types/list_card_transactions_request.rb +2 -0
  71. data/lib/whop_sdk/card_transactions/types/retrieve_card_transactions_request.rb +2 -0
  72. data/lib/whop_sdk/cards/client.rb +4 -4
  73. data/lib/whop_sdk/cashback_rules/client.rb +16 -20
  74. data/lib/whop_sdk/chat_channels/client.rb +2 -2
  75. data/lib/whop_sdk/checkout_configurations/client.rb +2 -1
  76. data/lib/whop_sdk/claim_links/client.rb +8 -8
  77. data/lib/whop_sdk/client.rb +6 -1
  78. data/lib/whop_sdk/company_token_transactions/client.rb +3 -4
  79. data/lib/whop_sdk/confirmation_tokens/client.rb +3 -3
  80. data/lib/whop_sdk/course_lesson_interactions/client.rb +2 -1
  81. data/lib/whop_sdk/courses/client.rb +4 -2
  82. data/lib/whop_sdk/deposits/client.rb +3 -2
  83. data/lib/whop_sdk/disputes/client.rb +5 -12
  84. data/lib/whop_sdk/dm_channels/client.rb +5 -6
  85. data/lib/whop_sdk/domains/client.rb +9 -3
  86. data/lib/whop_sdk/domains/types/create_domains_request.rb +4 -0
  87. data/lib/whop_sdk/domains/types/create_domains_request_apple_pay.rb +13 -0
  88. data/lib/whop_sdk/domains/types/create_domains_request_pixel.rb +12 -0
  89. data/lib/whop_sdk/domains/types/list_domains_request.rb +9 -3
  90. data/lib/whop_sdk/domains/types/list_domains_request_apple_pay.rb +17 -0
  91. data/lib/whop_sdk/domains/types/list_domains_request_order.rb +2 -0
  92. data/lib/whop_sdk/domains/types/list_domains_request_pixel.rb +17 -0
  93. data/lib/whop_sdk/domains/types/list_domains_request_platform.rb +17 -0
  94. data/lib/whop_sdk/domains/types/list_domains_request_registration.rb +17 -0
  95. data/lib/whop_sdk/domains/types/list_domains_request_verification.rb +17 -0
  96. data/lib/whop_sdk/domains/types/list_domains_request_website.rb +17 -0
  97. data/lib/whop_sdk/domains/types/update_domains_request.rb +4 -0
  98. data/lib/whop_sdk/domains/types/update_domains_request_apple_pay.rb +13 -0
  99. data/lib/whop_sdk/domains/types/update_domains_request_pixel.rb +12 -0
  100. data/lib/whop_sdk/economic_intelligence/client.rb +6 -6
  101. data/lib/whop_sdk/events/client.rb +12 -16
  102. data/lib/whop_sdk/experiences/client.rb +15 -9
  103. data/lib/whop_sdk/experiments/client.rb +17 -35
  104. data/lib/whop_sdk/exports/client.rb +1 -1
  105. data/lib/whop_sdk/external_accounts/client.rb +3 -5
  106. data/lib/whop_sdk/fee_markups/client.rb +5 -6
  107. data/lib/whop_sdk/feedback_submissions/client.rb +2 -3
  108. data/lib/whop_sdk/files/client.rb +2 -2
  109. data/lib/whop_sdk/financial_reports/breakdown/client.rb +3 -1
  110. data/lib/whop_sdk/forum_posts/client.rb +1 -1
  111. data/lib/whop_sdk/forums/client.rb +1 -1
  112. data/lib/whop_sdk/identity_profiles/client.rb +4 -4
  113. data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
  114. data/lib/whop_sdk/invoices/client.rb +1 -1
  115. data/lib/whop_sdk/leads/client.rb +3 -3
  116. data/lib/whop_sdk/members/client.rb +21 -1
  117. data/lib/whop_sdk/members/logs/client.rb +1 -1
  118. data/lib/whop_sdk/members/notes/client.rb +121 -0
  119. data/lib/whop_sdk/members/notes/types/create_notes_request.rb +15 -0
  120. data/lib/whop_sdk/members/notes/types/list_notes_request.rb +21 -0
  121. data/lib/whop_sdk/members/notes/types/list_notes_response.rb +15 -0
  122. data/lib/whop_sdk/members/notes/types/list_notes_response_page_info.rb +19 -0
  123. data/lib/whop_sdk/members/types/list_members_request.rb +10 -0
  124. data/lib/whop_sdk/members/types/list_members_request_membership_status.rb +14 -0
  125. data/lib/whop_sdk/members/types/list_members_request_most_recent_actions_item.rb +25 -0
  126. data/lib/whop_sdk/members/types/list_members_request_order.rb +1 -0
  127. data/lib/whop_sdk/memberships/client.rb +30 -28
  128. data/lib/whop_sdk/memberships/types/cancel_memberships_request.rb +2 -0
  129. data/lib/whop_sdk/memberships/types/list_memberships_request.rb +10 -0
  130. data/lib/whop_sdk/memberships/types/list_memberships_request_status.rb +4 -0
  131. data/lib/whop_sdk/memberships/types/list_memberships_request_statuses_item.rb +24 -0
  132. data/lib/whop_sdk/messages/client.rb +5 -7
  133. data/lib/whop_sdk/notifications/client.rb +6 -9
  134. data/lib/whop_sdk/notifications/topics/client.rb +1 -1
  135. data/lib/whop_sdk/partner_referral_requests/client.rb +3 -3
  136. data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_code.rb +1 -2
  137. data/lib/whop_sdk/partners/businesses/client.rb +99 -0
  138. data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_request_income_source_item.rb +1 -0
  139. data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_response_data_item_income_source.rb +1 -0
  140. data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_request.rb +21 -0
  141. data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_request_acknowledgments_item.rb +17 -0
  142. data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_response.rb +15 -0
  143. data/lib/whop_sdk/partners/businesses/types/list_businesses_request.rb +2 -0
  144. data/lib/whop_sdk/partners/businesses/types/list_businesses_request_advance_status.rb +22 -0
  145. data/lib/whop_sdk/partners/businesses/types/list_businesses_response_data_item.rb +2 -0
  146. data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response.rb +2 -0
  147. data/lib/whop_sdk/partners/businesses/types/update_businesses_request.rb +17 -0
  148. data/lib/whop_sdk/partners/businesses/types/update_businesses_response.rb +15 -0
  149. data/lib/whop_sdk/partners/client.rb +6 -11
  150. data/lib/whop_sdk/partners/types/referred_users_partners_request.rb +0 -2
  151. data/lib/whop_sdk/payment_method_domains/client.rb +4 -5
  152. data/lib/whop_sdk/payment_methods/client.rb +4 -5
  153. data/lib/whop_sdk/payment_quotes/client.rb +8 -10
  154. data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request.rb +4 -2
  155. data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request_address.rb +1 -1
  156. data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request_line_items_item.rb +13 -0
  157. data/lib/whop_sdk/payment_rules/client.rb +19 -8
  158. data/lib/whop_sdk/payments/client.rb +64 -24
  159. data/lib/whop_sdk/payments/direct/client.rb +5 -6
  160. data/lib/whop_sdk/payments/direct/types/create_direct_request.rb +2 -2
  161. data/lib/whop_sdk/payments/direct/types/create_direct_request_line_items_item.rb +15 -0
  162. data/lib/whop_sdk/payments/types/create_payments_request.rb +2 -2
  163. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item.rb +13 -0
  164. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan.rb +46 -0
  165. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_currency.rb +102 -0
  166. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_override_tax_type.rb +15 -0
  167. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_plan_type.rb +14 -0
  168. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product.rb +34 -0
  169. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product_global_affiliate_status.rb +14 -0
  170. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product_visibility.rb +16 -0
  171. data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_visibility.rb +16 -0
  172. data/lib/whop_sdk/payments/types/generate_pdf_payments_request.rb +11 -0
  173. data/lib/whop_sdk/payments/types/resume_payments_request.rb +2 -0
  174. data/lib/whop_sdk/payout_methods/client.rb +1 -1
  175. data/lib/whop_sdk/payouts/client.rb +15 -12
  176. data/lib/whop_sdk/payouts/methods/client.rb +2 -2
  177. data/lib/whop_sdk/payouts/methods/types/create_methods_request.rb +2 -0
  178. data/lib/whop_sdk/payouts/methods/types/list_methods_response_limits_standard_error_code.rb +1 -1
  179. data/lib/whop_sdk/payouts/paypal_link_sessions/client.rb +67 -0
  180. data/lib/whop_sdk/payouts/paypal_link_sessions/types/create_paypal_link_sessions_request.rb +21 -0
  181. data/lib/whop_sdk/payouts/paypal_link_sessions/types/create_paypal_link_sessions_response.rb +15 -0
  182. data/lib/whop_sdk/payouts/supported_methods/client.rb +2 -1
  183. data/lib/whop_sdk/payouts/supported_methods/types/list_supported_methods_response_data_item.rb +2 -0
  184. data/lib/whop_sdk/people/client.rb +3 -5
  185. data/lib/whop_sdk/plans/client.rb +1 -1
  186. data/lib/whop_sdk/products/client.rb +2 -2
  187. data/lib/whop_sdk/promo_codes/client.rb +2 -2
  188. data/lib/whop_sdk/refunds/client.rb +1 -2
  189. data/lib/whop_sdk/reviews/client.rb +59 -19
  190. data/lib/whop_sdk/reviews/types/delete_reviews_request.rb +11 -0
  191. data/lib/whop_sdk/reviews/types/delete_reviews_response.rb +13 -0
  192. data/lib/whop_sdk/reviews/types/list_reviews_request.rb +14 -8
  193. data/lib/whop_sdk/reviews/types/list_reviews_request_direction.rb +14 -0
  194. data/lib/whop_sdk/reviews/types/list_reviews_request_order.rb +14 -0
  195. data/lib/whop_sdk/reviews/types/list_reviews_response.rb +1 -2
  196. data/lib/whop_sdk/reviews/types/list_reviews_response_page_info.rb +17 -0
  197. data/lib/whop_sdk/setup_intents/client.rb +8 -10
  198. data/lib/whop_sdk/setup_intents/direct/client.rb +6 -7
  199. data/lib/whop_sdk/shipments/client.rb +2 -2
  200. data/lib/whop_sdk/stats/client.rb +2 -3
  201. data/lib/whop_sdk/stats/reports/client.rb +6 -10
  202. data/lib/whop_sdk/stats/time_series/client.rb +3 -8
  203. data/lib/whop_sdk/support_channels/client.rb +12 -4
  204. data/lib/whop_sdk/support_channels/types/list_support_channels_request.rb +8 -0
  205. data/lib/whop_sdk/swaps/client.rb +6 -6
  206. data/lib/whop_sdk/team_members/client.rb +7 -10
  207. data/lib/whop_sdk/topups/client.rb +2 -2
  208. data/lib/whop_sdk/trades/client.rb +6 -8
  209. data/lib/whop_sdk/trades/types/create_trades_request.rb +21 -1
  210. data/lib/whop_sdk/trades/types/create_trades_request_instrument_type.rb +14 -0
  211. data/lib/whop_sdk/trades/types/create_trades_request_order_type.rb +14 -0
  212. data/lib/whop_sdk/trades/types/create_trades_request_side.rb +14 -0
  213. data/lib/whop_sdk/trades/types/create_trades_request_type.rb +3 -1
  214. data/lib/whop_sdk/trades/types/list_trades_request_type.rb +3 -1
  215. data/lib/whop_sdk/transfers/client.rb +9 -9
  216. data/lib/whop_sdk/transfers/types/create_transfers_request_body.rb +17 -0
  217. data/lib/whop_sdk/transfers/types/{create_transfers_request.rb → create_transfers_request_body_balance.rb} +6 -10
  218. data/lib/whop_sdk/transfers/types/{create_transfers_request_feed_type.rb → create_transfers_request_body_balance_feed_type.rb} +1 -1
  219. data/lib/whop_sdk/transfers/types/create_transfers_request_body_claim_link.rb +18 -0
  220. data/lib/whop_sdk/transfers/types/create_transfers_response.rb +0 -2
  221. data/lib/whop_sdk/transfers/types/create_transfers_response_transfer.rb +15 -17
  222. data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_destination.rb +5 -5
  223. data/lib/whop_sdk/transfers/types/{create_transfers_request_type.rb → create_transfers_response_transfer_destination_object.rb} +3 -4
  224. data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_origin.rb +5 -5
  225. data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_origin_object.rb +14 -0
  226. data/lib/whop_sdk/transfers/types/list_transfers_response_data_item.rb +16 -14
  227. data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_destination.rb +18 -0
  228. data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_destination_object.rb +14 -0
  229. data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_origin.rb +18 -0
  230. data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_origin_object.rb +14 -0
  231. data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data.rb +16 -18
  232. data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_destination.rb +5 -5
  233. data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_destination_object.rb +14 -0
  234. data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_origin.rb +5 -5
  235. data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_origin_object.rb +14 -0
  236. data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data.rb +16 -18
  237. data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_destination.rb +5 -5
  238. data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_destination_object.rb +14 -0
  239. data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_origin.rb +5 -5
  240. data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_origin_object.rb +14 -0
  241. data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data.rb +16 -18
  242. data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_destination.rb +5 -5
  243. data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_destination_object.rb +14 -0
  244. data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_origin.rb +5 -5
  245. data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_origin_object.rb +14 -0
  246. data/lib/whop_sdk/transfers/types/retrieve_transfers_response.rb +16 -18
  247. data/lib/whop_sdk/transfers/types/retrieve_transfers_response_destination.rb +5 -5
  248. data/lib/whop_sdk/transfers/types/retrieve_transfers_response_destination_object.rb +14 -0
  249. data/lib/whop_sdk/transfers/types/retrieve_transfers_response_origin.rb +5 -5
  250. data/lib/whop_sdk/transfers/types/retrieve_transfers_response_origin_object.rb +14 -0
  251. data/lib/whop_sdk/types/account.rb +2 -2
  252. data/lib/whop_sdk/types/account_level.rb +19 -0
  253. data/lib/whop_sdk/types/account_payment_controls_restricted_payment_methods_item.rb +39 -0
  254. data/lib/whop_sdk/types/account_preferences.rb +2 -0
  255. data/lib/whop_sdk/types/ad_campaign_delivery_status.rb +1 -0
  256. data/lib/whop_sdk/types/ad_pixel.rb +25 -0
  257. data/lib/whop_sdk/types/ad_pixel_platform.rb +11 -0
  258. data/lib/whop_sdk/types/ad_pixel_status.rb +13 -0
  259. data/lib/whop_sdk/types/api_key_api_version_date.rb +5 -0
  260. data/lib/whop_sdk/types/app.rb +3 -3
  261. data/lib/whop_sdk/types/app_list_item.rb +3 -3
  262. data/lib/whop_sdk/types/cancel_options.rb +1 -0
  263. data/lib/whop_sdk/types/dispute_evidence_document.rb +12 -0
  264. data/lib/whop_sdk/types/domain.rb +8 -0
  265. data/lib/whop_sdk/types/domain_apple_pay.rb +9 -0
  266. data/lib/whop_sdk/types/domain_apple_pay_state.rb +14 -0
  267. data/lib/whop_sdk/types/domain_issue.rb +2 -0
  268. data/lib/whop_sdk/types/domain_issue_capability.rb +3 -0
  269. data/lib/whop_sdk/types/domain_issue_code.rb +6 -2
  270. data/lib/whop_sdk/types/domain_list_item.rb +8 -0
  271. data/lib/whop_sdk/types/domain_pixel.rb +9 -0
  272. data/lib/whop_sdk/types/domain_pixel_state.rb +13 -0
  273. data/lib/whop_sdk/types/domain_platform.rb +9 -0
  274. data/lib/whop_sdk/types/domain_platform_state.rb +14 -0
  275. data/lib/whop_sdk/types/domain_stats.rb +9 -0
  276. data/lib/whop_sdk/types/domain_website.rb +1 -1
  277. data/lib/whop_sdk/types/domain_website_app.rb +11 -0
  278. data/lib/whop_sdk/types/feedback_option.rb +13 -0
  279. data/lib/whop_sdk/types/feedback_option_category.rb +17 -0
  280. data/lib/whop_sdk/types/file.rb +12 -0
  281. data/lib/whop_sdk/types/financing_access_change.rb +19 -0
  282. data/lib/whop_sdk/types/financing_access_change_disabled_payment_methods_item.rb +33 -0
  283. data/lib/whop_sdk/types/financing_access_change_object.rb +11 -0
  284. data/lib/whop_sdk/types/financing_access_change_provider.rb +15 -0
  285. data/lib/whop_sdk/types/financing_access_change_reason.rb +11 -0
  286. data/lib/whop_sdk/types/member.rb +10 -0
  287. data/lib/whop_sdk/types/member_most_recent_action.rb +23 -0
  288. data/lib/whop_sdk/types/member_note.rb +19 -0
  289. data/lib/whop_sdk/types/membership.rb +24 -0
  290. data/lib/whop_sdk/types/membership_cancel_option.rb +18 -0
  291. data/lib/whop_sdk/types/membership_collection_method.rb +12 -0
  292. data/lib/whop_sdk/types/membership_feedback_option.rb +9 -0
  293. data/lib/whop_sdk/types/membership_legacy.rb +2 -0
  294. data/lib/whop_sdk/types/membership_legacy_feedback_option.rb +11 -0
  295. data/lib/whop_sdk/types/membership_list_item.rb +2 -0
  296. data/lib/whop_sdk/types/membership_list_item_feedback_option.rb +11 -0
  297. data/lib/whop_sdk/types/membership_most_recent_action.rb +21 -0
  298. data/lib/whop_sdk/types/membership_product.rb +13 -0
  299. data/lib/whop_sdk/types/owner_level.rb +17 -0
  300. data/lib/whop_sdk/types/owner_level_points.rb +13 -0
  301. data/lib/whop_sdk/types/partner_advance.rb +41 -0
  302. data/lib/whop_sdk/types/partner_advance_status.rb +17 -0
  303. data/lib/whop_sdk/types/payment.rb +2 -2
  304. data/lib/whop_sdk/types/payment_input.rb +1 -4
  305. data/lib/whop_sdk/types/payment_input_plan.rb +2 -0
  306. data/lib/whop_sdk/types/payment_method_types.rb +3 -0
  307. data/lib/whop_sdk/types/payment_pdf.rb +11 -0
  308. data/lib/whop_sdk/types/payment_quote_located_by.rb +1 -0
  309. data/lib/whop_sdk/types/payment_rule_condition_value.rb +2 -2
  310. data/lib/whop_sdk/types/permission_action.rb +5 -0
  311. data/lib/whop_sdk/types/review.rb +2 -3
  312. data/lib/whop_sdk/types/{review_company.rb → review_account.rb} +1 -2
  313. data/lib/whop_sdk/types/{review_attachments_item.rb → review_attachment.rb} +1 -2
  314. data/lib/whop_sdk/types/review_list_item.rb +3 -4
  315. data/lib/whop_sdk/types/review_list_item_status.rb +11 -0
  316. data/lib/whop_sdk/types/review_product.rb +0 -1
  317. data/lib/whop_sdk/types/review_user.rb +0 -1
  318. data/lib/whop_sdk/types/support_channel.rb +8 -0
  319. data/lib/whop_sdk/types/support_channel_last_message.rb +23 -0
  320. data/lib/whop_sdk/types/{review_list_item_attachments_item.rb → support_channel_last_message_attachments_item.rb} +1 -5
  321. data/lib/whop_sdk/types/support_channel_last_message_gifs_item.rb +10 -0
  322. data/lib/whop_sdk/types/support_channel_last_message_poll.rb +10 -0
  323. data/lib/whop_sdk/types/support_channel_last_message_poll_options_item.rb +10 -0
  324. data/lib/whop_sdk/types/support_channel_list_item.rb +8 -0
  325. data/lib/whop_sdk/types/support_channel_list_item_last_message.rb +23 -0
  326. data/lib/whop_sdk/types/support_channel_list_item_last_message_attachments_item.rb +12 -0
  327. data/lib/whop_sdk/types/support_channel_list_item_last_message_gifs_item.rb +10 -0
  328. data/lib/whop_sdk/types/support_channel_list_item_last_message_poll.rb +10 -0
  329. data/lib/whop_sdk/types/support_channel_list_item_last_message_poll_options_item.rb +10 -0
  330. data/lib/whop_sdk/types/trade.rb +17 -1
  331. data/lib/whop_sdk/types/trade_failure_code.rb +1 -0
  332. data/lib/whop_sdk/types/trade_instrument_type.rb +12 -0
  333. data/lib/whop_sdk/types/trade_order_type.rb +12 -0
  334. data/lib/whop_sdk/types/trade_side.rb +12 -0
  335. data/lib/whop_sdk/types/trade_status_detail.rb +0 -3
  336. data/lib/whop_sdk/types/trade_type.rb +3 -1
  337. data/lib/whop_sdk/types/user.rb +9 -1
  338. data/lib/whop_sdk/types/user_preferences.rb +2 -0
  339. data/lib/whop_sdk/types/user_social_link.rb +15 -0
  340. data/lib/whop_sdk/types/user_social_link_website.rb +18 -0
  341. data/lib/whop_sdk/types/webhook_event.rb +2 -0
  342. data/lib/whop_sdk/types/webhook_events_item.rb +2 -0
  343. data/lib/whop_sdk/types/webhook_list_item_events_item.rb +2 -0
  344. data/lib/whop_sdk/types/webhook_testable_events_item.rb +2 -0
  345. data/lib/whop_sdk/users/client.rb +13 -18
  346. data/lib/whop_sdk/users/oauth_grants/client.rb +9 -11
  347. data/lib/whop_sdk/users/passkeys/client.rb +3 -3
  348. data/lib/whop_sdk/users/preferences/client.rb +1 -2
  349. data/lib/whop_sdk/users/preferences/notifications/client.rb +4 -13
  350. data/lib/whop_sdk/users/preferences/notifications/topics/client.rb +2 -2
  351. data/lib/whop_sdk/users/preferences/notifications/types/set_notifications_request_preferences_item_scope.rb +3 -1
  352. data/lib/whop_sdk/users/preferences/types/update_preferences_request.rb +2 -0
  353. data/lib/whop_sdk/variants/client.rb +18 -11
  354. data/lib/whop_sdk/variants/types/list_variants_request.rb +2 -0
  355. data/lib/whop_sdk/variants/types/retrieve_variants_request.rb +2 -0
  356. data/lib/whop_sdk/verifications/client.rb +7 -9
  357. data/lib/whop_sdk/verifications/types/create_verifications_request_body_business.rb +6 -0
  358. data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_documents.rb +18 -0
  359. data/lib/whop_sdk/verifications/types/create_verifications_response.rb +2 -0
  360. data/lib/whop_sdk/verifications/types/list_verifications_response_data_item.rb +2 -0
  361. data/lib/whop_sdk/verifications/types/retrieve_verifications_response.rb +2 -0
  362. data/lib/whop_sdk/verifications/types/update_verifications_response.rb +2 -0
  363. data/lib/whop_sdk/version.rb +1 -1
  364. data/lib/whop_sdk/waitlist_entries/client.rb +14 -14
  365. data/lib/whop_sdk/webhooks/client.rb +11 -12
  366. data/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb +2 -0
  367. data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +2 -0
  368. data/lib/whop_sdk.rb +152 -41
  369. data/reference.md +1944 -664
  370. metadata +152 -41
  371. data/lib/whop_sdk/transfers/types/create_transfers_response_send.rb +0 -20
  372. data/lib/whop_sdk/transfers/types/create_transfers_response_send_destination.rb +0 -13
  373. data/lib/whop_sdk/transfers/types/create_transfers_response_send_source.rb +0 -13
  374. data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_created_by_user.rb +0 -17
  375. data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_destination_company.rb +0 -15
  376. data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_destination_user.rb +0 -15
  377. data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_origin_company.rb +0 -15
  378. data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_origin_user.rb +0 -15
  379. data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_created_by_user.rb +0 -17
  380. data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_created_by_user.rb +0 -17
  381. data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_destination_company.rb +0 -15
  382. data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_destination_user.rb +0 -15
  383. data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_origin_company.rb +0 -15
  384. data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_origin_user.rb +0 -15
  385. data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_created_by_user.rb +0 -17
  386. data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_destination_company.rb +0 -15
  387. data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_destination_user.rb +0 -15
  388. data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_origin_company.rb +0 -15
  389. data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_origin_user.rb +0 -15
  390. data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_created_by_user.rb +0 -17
  391. data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_destination_company.rb +0 -15
  392. data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_destination_user.rb +0 -15
  393. data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_origin_company.rb +0 -15
  394. data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_origin_user.rb +0 -15
  395. data/lib/whop_sdk/transfers/types/retrieve_transfers_response_created_by_user.rb +0 -17
  396. data/lib/whop_sdk/transfers/types/retrieve_transfers_response_destination_company.rb +0 -15
  397. data/lib/whop_sdk/transfers/types/retrieve_transfers_response_destination_user.rb +0 -15
  398. data/lib/whop_sdk/transfers/types/retrieve_transfers_response_origin_company.rb +0 -15
  399. data/lib/whop_sdk/transfers/types/retrieve_transfers_response_origin_user.rb +0 -15
  400. data/lib/whop_sdk/types/payment_input_line_items_item.rb +0 -11
  401. data/lib/whop_sdk/types/review_list_item_user.rb +0 -14
  402. data/lib/whop_sdk/types/user_staff_access.rb +0 -15
@@ -14,8 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of authorized team members for a company, with optional filtering by user, role, and
18
- # creation date.
17
+ # Lists the authorized users on an account's team.
19
18
  #
20
19
  # Required permissions:
21
20
  # - `company:authorized_user:read`
@@ -91,7 +90,7 @@ module Whop_sdk
91
90
  end
92
91
  end
93
92
 
94
- # Add a new authorized user to a company.
93
+ # Adds a user to an account's team as an authorized user with the given role.
95
94
  #
96
95
  # Required permissions:
97
96
  # - `authorized_user:create`
@@ -177,7 +176,7 @@ module Whop_sdk
177
176
  end
178
177
  end
179
178
 
180
- # Remove an authorized user from a company.
179
+ # Removes an authorized user from an account's team.
181
180
  #
182
181
  # Required permissions:
183
182
  # - `authorized_user:delete`
@@ -85,11 +85,10 @@ module Whop_sdk
85
85
  end
86
86
  end
87
87
 
88
- # Creates a submission on a workforce bounty. Include a `deliverable` payload — any combination of links and
89
- # uploaded files, with at least one of the two — and the submission goes straight to review; create is the only
90
- # step. For `data_capture` bounties, omit the deliverable: this starts a claimed attempt whose proof accumulates
91
- # server-side, and the separate submit endpoint sends it to review once complete. Requires a user credential —
92
- # account API keys cannot author submissions.
88
+ # Creates a submission on a workforce bounty. Include a `deliverable` and the submission goes straight to review;
89
+ # create is the only step. For `data_capture` bounties, omit the deliverable: this starts a claimed attempt whose
90
+ # proof accumulates server-side, and `POST /bounty_submissions/:id/submit` sends it to review once complete.
91
+ # Requires a user credential — account API keys cannot author submissions.
93
92
  #
94
93
  # @param request_options [Hash]
95
94
  # @param params [Whop_sdk::BountySubmissions::Types::CreateBountySubmissionsRequest]
@@ -208,11 +207,9 @@ module Whop_sdk
208
207
  end
209
208
  end
210
209
 
211
- # Submits a claimed attempt for review. A livestream attempt needs an ended proof stream and can attach an
212
- # optional `deliverable` — links, files, and a caption in any combination; if the attempt already went to review
213
- # when its stream ended, the payload attaches to it once, until reviewers start voting. A data capture attempt
214
- # instead needs enough validated clip time and takes no payload. Only the worker who started the attempt can
215
- # submit it — account API keys cannot.
210
+ # Submits a claimed attempt for review. A livestream attempt needs an ended proof stream and can attach a
211
+ # `deliverable`; a data capture attempt instead needs enough validated clip time and takes no payload. Only the
212
+ # worker who started the attempt can submit it — account API keys cannot.
216
213
  #
217
214
  # @param request_options [Hash]
218
215
  # @param params [Whop_sdk::BountySubmissions::Types::SubmitBountySubmissionsRequest]
@@ -3,7 +3,9 @@
3
3
  module Whop_sdk
4
4
  module BountySubmissions
5
5
  module Types
6
- # Work to attach to the submission. Combine `urls`, `file_ids`, and `caption` freely; all are optional.
6
+ # Work to attach to a livestream attempt. Combine `urls`, `file_ids`, and `caption` freely; all are optional. If
7
+ # the attempt already went to review when its stream ended, the deliverable attaches to it once, until reviewers
8
+ # start voting. Data capture attempts take no deliverable.
7
9
  class SubmitBountySubmissionsRequestDeliverable < Internal::Types::Model
8
10
  field :caption, -> { String }, optional: true, nullable: false
9
11
 
@@ -14,10 +14,9 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Lists an account's card transactions, newest first. Defaults to the account the credential belongs to. Covers
18
- # every card the owner has ever had, including canceled cards and spend that predates a re-application, and team
19
- # members only see transactions on the cards assigned to them. Pass `transaction_ids` to fetch specific
20
- # transactions instead of paging for them.
17
+ # Lists the card transactions of an account or a user, newest first. Covers every card the owner has ever had,
18
+ # including canceled cards and spend that predates a re-application, and team members only see transactions on the
19
+ # cards assigned to them. Pass `transaction_ids` to fetch specific transactions instead of paging for them.
21
20
  #
22
21
  # @param request_options [Hash]
23
22
  # @param params [Hash]
@@ -27,6 +26,7 @@ module Whop_sdk
27
26
  # @option request_options [Hash{String => Object}] :additional_body_parameters
28
27
  # @option request_options [Integer] :timeout_in_seconds
29
28
  # @option params [String, nil] :account_id
29
+ # @option params [String, nil] :user_id
30
30
  # @option params [String, nil] :transaction_ids
31
31
  # @option params [String, nil] :card_id
32
32
  # @option params [String, nil] :cardholder_id
@@ -52,6 +52,7 @@ module Whop_sdk
52
52
  params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
53
53
  query_params = {}
54
54
  query_params["account_id"] = params[:account_id] if params.key?(:account_id)
55
+ query_params["user_id"] = params[:user_id] if params.key?(:user_id)
55
56
  query_params["transaction_ids"] = params[:transaction_ids] if params.key?(:transaction_ids)
56
57
  query_params["card_id"] = params[:card_id] if params.key?(:card_id)
57
58
  query_params["cardholder_id"] = params[:cardholder_id] if params.key?(:cardholder_id)
@@ -94,8 +95,8 @@ module Whop_sdk
94
95
  end
95
96
  end
96
97
 
97
- # Fetches a single card transaction by its `citx_` identifier. The owner defaults to the account the credential
98
- # belongs to.
98
+ # Retrieves a single card transaction from any card the owner has ever had, including canceled cards. Team members
99
+ # can retrieve only transactions on the cards assigned to them.
99
100
  #
100
101
  # @param request_options [Hash]
101
102
  # @param params [Hash]
@@ -106,6 +107,7 @@ module Whop_sdk
106
107
  # @option request_options [Integer] :timeout_in_seconds
107
108
  # @option params [String] :id
108
109
  # @option params [String, nil] :account_id
110
+ # @option params [String, nil] :user_id
109
111
  #
110
112
  # @example
111
113
  # client.card_transactions.retrieve(id: "id")
@@ -115,6 +117,7 @@ module Whop_sdk
115
117
  params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
116
118
  query_params = {}
117
119
  query_params["account_id"] = params[:account_id] if params.key?(:account_id)
120
+ query_params["user_id"] = params[:user_id] if params.key?(:user_id)
118
121
 
119
122
  request = Whop_sdk::Internal::JSON::Request.new(
120
123
  base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
@@ -6,6 +6,8 @@ module Whop_sdk
6
6
  class ListCardTransactionsRequest < Internal::Types::Model
7
7
  field :account_id, -> { String }, optional: true, nullable: false
8
8
 
9
+ field :user_id, -> { String }, optional: true, nullable: false
10
+
9
11
  field :transaction_ids, -> { String }, optional: true, nullable: false
10
12
 
11
13
  field :card_id, -> { String }, optional: true, nullable: false
@@ -7,6 +7,8 @@ module Whop_sdk
7
7
  field :id, -> { String }, optional: false, nullable: false
8
8
 
9
9
  field :account_id, -> { String }, optional: true, nullable: false
10
+
11
+ field :user_id, -> { String }, optional: true, nullable: false
10
12
  end
11
13
  end
12
14
  end
@@ -58,8 +58,8 @@ module Whop_sdk
58
58
  end
59
59
  end
60
60
 
61
- # Issue a virtual card, or apply for card issuing. An account with no application files one here and gets back a
62
- # `202`; call again to issue the card once it is approved.
61
+ # Issues a virtual card, or applies for card issuing. An account with no application files one here and gets back
62
+ # a `202`; call again to issue the card once it is approved.
63
63
  #
64
64
  # @param request_options [Hash]
65
65
  # @param params [Whop_sdk::Cards::Types::CreateCardsRequest]
@@ -96,7 +96,7 @@ module Whop_sdk
96
96
  end
97
97
  end
98
98
 
99
- # Retrieve a single card.
99
+ # Retrieves a single card, including its `secrets` (card number, CVC, and PIN), which List Cards does not return.
100
100
  #
101
101
  # @param request_options [Hash]
102
102
  # @param params [Hash]
@@ -140,7 +140,7 @@ module Whop_sdk
140
140
  end
141
141
  end
142
142
 
143
- # Update, freeze, or cancel a card. Updating the card's name, billing address, or limits requires both
143
+ # Updates, freezes, or cancels a card. Updating the card's name, billing address, or limits requires both
144
144
  # `payout:account:update` and `company:balance:read`; a card's assigned holder may update their own card's pin and
145
145
  # frozen state with any user token.
146
146
  #
@@ -14,11 +14,9 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Creates a future-dated card cashback rule funded by the authenticated platform account. Requires
18
- # payout:transfer_funds. Merchant name and MCC are optional. Every supplied merchant filter must match. When both
19
- # are omitted or null, scoped_account_id is required and all eligible transactions for that account match.
20
- # Optionally limit the rule to one direct connected account. The funding account is derived from the credential
21
- # and cannot be supplied. Creation does not transfer funds. Supports Idempotency-Key for safe retries.
17
+ # Creates a future-dated card cashback rule for your direct connected accounts, funded by the authenticated
18
+ # platform account. Creating a rule does not transfer funds; pay cashback out with `POST /cashback_rules/payout`.
19
+ # Requires `payout:transfer_funds`. Supports `Idempotency-Key` for safe retries.
22
20
  #
23
21
  # @param request_options [Hash]
24
22
  # @param params [Whop_sdk::CashbackRules::Types::CreateCashbackRulesRequest]
@@ -58,9 +56,8 @@ module Whop_sdk
58
56
  end
59
57
  end
60
58
 
61
- # Lists all cashback rules funded by the authenticated platform account. Includes scheduled, expired, and
62
- # discarded rules. Requires payout:transfer:read. Account-scoped credentials are required; there is no
63
- # caller-supplied funding-account filter.
59
+ # Lists the cashback rules funded by the authenticated platform account, including scheduled, expired, and
60
+ # discarded rules. Requires an account-scoped credential with `payout:transfer:read`.
64
61
  #
65
62
  # @param request_options [Hash]
66
63
  # @param params [Hash]
@@ -119,14 +116,13 @@ module Whop_sdk
119
116
  end
120
117
  end
121
118
 
122
- # Distributes cashback on demand from the authenticated platform's available USD balance to its direct connected
123
- # accounts. Requires payout:transfer_funds. Optional filters combine; an empty body includes all eligible
124
- # transactions. Only completed, unpaid transactions created before this request are considered. The latest
125
- # matching rule wins; its funding account must be the authenticated platform. Amounts are calculated when
126
- # processed. Returns status `processing` and echoes supplied filters when background processing is queued. Status
127
- # `failed` with HTTP 200 means the queue rejected the request. This is not a payment confirmation. Failed
128
- # transaction jobs retry automatically; insufficient funds requires adding USD to the funding wallet. Supports
129
- # Idempotency-Key, and overlapping requests cannot pay the same card transaction twice.
119
+ # Pays out cashback on demand from the authenticated platform's available USD balance to its direct connected
120
+ # accounts. Covers completed, unpaid card transactions created before the request, each under its latest matching
121
+ # rule, which must be funded by the authenticated platform. Filters combine, and an empty body includes every
122
+ # eligible transaction. Payouts process in the background and amounts are calculated then, so the response
123
+ # confirms queuing, not payment. If a payout fails for insufficient funds, add USD to the platform's balance.
124
+ # Requires `payout:transfer_funds`. Supports `Idempotency-Key`, and overlapping requests cannot pay the same card
125
+ # transaction twice.
130
126
  #
131
127
  # @param request_options [Hash]
132
128
  # @param params [Whop_sdk::CashbackRules::Types::PayoutCashbackRulesRequest]
@@ -163,10 +159,10 @@ module Whop_sdk
163
159
  end
164
160
  end
165
161
 
166
- # Updates a cashback rule funded by the authenticated platform account. Requires payout:transfer_funds. Only
167
- # merchant_name, merchant_category_code, description, and expires_at can change; starts_at, rate_bps,
168
- # funding_account_id, and scoped_account_id are immutable. Omitted fields stay unchanged. Scheduled, active, and
169
- # expired rules can be updated; discarded rules cannot. Updating a rule does not transfer funds.
162
+ # Updates the merchant filters, description, or expiration of a cashback rule funded by the authenticated platform
163
+ # account; its start, rate, and accounts can't change. Omitted fields stay unchanged. Scheduled, active, and
164
+ # expired rules can be updated, but discarded rules can't. Updating a rule does not transfer funds. Requires
165
+ # `payout:transfer_funds`.
170
166
  #
171
167
  # @param request_options [Hash]
172
168
  # @param params [Whop_sdk::CashbackRules::Types::UpdateCashbackRulesRequest]
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of chat channels within a specific company, with optional filtering by product.
17
+ # Lists the chat channels in an account.
18
18
  #
19
19
  # Required permissions:
20
20
  # - `chat:read`
@@ -121,7 +121,7 @@ module Whop_sdk
121
121
  end
122
122
  end
123
123
 
124
- # Update moderation settings for a chat channel, such as who can post, banned words, and media restrictions.
124
+ # Updates a chat channel's moderation settings, such as who can post, banned words, and media restrictions.
125
125
  #
126
126
  # Required permissions:
127
127
  # - `chat:moderate`
@@ -77,7 +77,8 @@ module Whop_sdk
77
77
  end
78
78
  end
79
79
 
80
- # Creates a reusable checkout configuration for an existing or inline variant.
80
+ # Creates a reusable checkout configuration for an existing or inline variant. Send customers to its
81
+ # `purchase_url` to check out.
81
82
  #
82
83
  # @param request_options [Hash]
83
84
  # @param params [Whop_sdk::CheckoutConfigurations::Types::CreateCheckoutConfigurationsRequest]
@@ -14,11 +14,11 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Retrieves a funded claim link. IDs require `airdrop_link:basic:read` on the funding account, or the personal
18
- # account's owner. Claim codes allow unauthenticated previews of the sender, amount, expiry, and claim
19
- # availability. Treat codes as secrets: anyone holding one can claim after signing in. By ID, the code and URL
20
- # require `airdrop_link:manage` on the funding company or `payout:withdraw_funds` on the personal account;
21
- # read-only credentials receive null values.
17
+ # Retrieves a funded claim link by ID or by its public claim code. By ID, the caller needs
18
+ # `airdrop_link:basic:read` on the funding account, or must own the funding personal account; `code` and
19
+ # `claim_url` are `null` without `airdrop_link:manage` on the funding account or `payout:withdraw_funds` on the
20
+ # personal account. A claim code previews the sender, amount, expiry, and claim availability without
21
+ # authentication. Treat codes as secrets: anyone holding one can claim after signing in.
22
22
  #
23
23
  # @param request_options [Hash]
24
24
  # @param params [Hash]
@@ -56,9 +56,9 @@ module Whop_sdk
56
56
  end
57
57
 
58
58
  # Claims a funded link into the authenticated user's personal balance and returns the updated link. Requires a
59
- # signed-in user and the public claim code; company API keys cannot claim on a recipient's behalf. Each user can
60
- # claim a link once. Reuse the same Idempotency-Key when retrying the same request. On-chain claims wait for the
61
- # existing transfer workflow and may take several minutes.
59
+ # signed-in user and the public claim code; account API keys cannot claim on a recipient's behalf. Each user can
60
+ # claim a link once. Reuse the same `Idempotency-Key` when retrying the same request. On-chain claims may take
61
+ # several minutes to complete.
62
62
  #
63
63
  # @param request_options [Hash]
64
64
  # @param params [Hash]
@@ -10,7 +10,7 @@ module Whop_sdk
10
10
  # @param max_retries [Integer]
11
11
  #
12
12
  # @return [void]
13
- def initialize(token:, base_url: nil, environment: Whop_sdk::Environment::PRODUCTION, api_version_date: "2026-10-08", idempotency_key: nil, max_retries: 2)
13
+ def initialize(token:, base_url: nil, environment: Whop_sdk::Environment::PRODUCTION, api_version_date: "2026-10-13-1", idempotency_key: nil, max_retries: 2)
14
14
  @base_url = base_url
15
15
  @environment = environment
16
16
 
@@ -58,6 +58,11 @@ module Whop_sdk
58
58
  @ad_groups ||= Whop_sdk::AdGroups::Client.new(client: @raw_client, base_url: @base_url, environment: @environment)
59
59
  end
60
60
 
61
+ # @return [Whop_sdk::AdPixels::Client]
62
+ def ad_pixels
63
+ @ad_pixels ||= Whop_sdk::AdPixels::Client.new(client: @raw_client, base_url: @base_url, environment: @environment)
64
+ end
65
+
61
66
  # @return [Whop_sdk::Ads::Client]
62
67
  def ads
63
68
  @ads ||= Whop_sdk::Ads::Client.new(client: @raw_client, base_url: @base_url, environment: @environment)
@@ -14,8 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of token transactions for a user or company, depending on the authenticated actor, with
18
- # optional filtering by user and transaction type.
17
+ # Lists an account's token transactions, newest first.
19
18
  #
20
19
  # Required permissions:
21
20
  # - `company_token_transaction:read`
@@ -86,7 +85,7 @@ module Whop_sdk
86
85
  end
87
86
  end
88
87
 
89
- # Create a token transaction to add, subtract, or transfer tokens for a member within a company.
88
+ # Creates a token transaction that adds, subtracts, or transfers tokens for a member of an account.
90
89
  #
91
90
  # Required permissions:
92
91
  # - `company_token_transaction:create`
@@ -128,7 +127,7 @@ module Whop_sdk
128
127
  end
129
128
  end
130
129
 
131
- # Retrieves the details of an existing company token transaction.
130
+ # Retrieves a token transaction.
132
131
  #
133
132
  # Required permissions:
134
133
  # - `company_token_transaction:read`
@@ -14,9 +14,9 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Retrieves a token's payment method and billing details — never the underlying payment credential. Public and
18
- # rate-limited: the account_id query param must match the account the token was minted for. A bearer credential
19
- # with payment:basic:read on that account also receives the collected billing address.
17
+ # Retrieves a confirmation token's payment method and billing details, never the underlying payment credential, to
18
+ # display what the buyer chose or check that the token is still usable. Requires no authentication and is
19
+ # rate-limited.
20
20
  #
21
21
  # @param request_options [Hash]
22
22
  # @param params [Hash]
@@ -14,7 +14,8 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of lesson interactions, filtered by lesson, course, user, or completion status.
17
+ # Returns a paginated list of lesson interactions for a lesson or course. Callers without admin access to the
18
+ # course's experience see only their own interactions.
18
19
  #
19
20
  # Required permissions:
20
21
  # - `courses:read`
@@ -14,7 +14,8 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of courses, filtered by either an experience or a company.
17
+ # Returns a paginated list of the courses in an experience or an account. `hidden` courses are included only for
18
+ # callers with `courses:update`.
18
19
  #
19
20
  # Required permissions:
20
21
  # - `courses:read`
@@ -124,7 +125,8 @@ module Whop_sdk
124
125
  end
125
126
  end
126
127
 
127
- # Retrieves the details of an existing course.
128
+ # Retrieves the details of an existing course. A `hidden` course is returned only to callers with
129
+ # `courses:update`.
128
130
  #
129
131
  # Required permissions:
130
132
  # - `courses:read`
@@ -14,8 +14,9 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Retrieve the deposit methods for an account, including crypto and bank transfer. Bitcoin deposits are converted
18
- # by Relay directly to USDT on Plasma in the destination account's wallet. Crypto deposits require a $10 minimum.
17
+ # Returns the deposit methods for an account or user, including crypto addresses, bank transfer instructions, and,
18
+ # for a business, a hosted deposit page. Bitcoin deposits are converted to USDT on Plasma in the destination's
19
+ # wallet. Business destinations require no authentication.
19
20
  #
20
21
  # @param request_options [Hash]
21
22
  # @param params [Whop_sdk::Deposits::Types::CreateDepositsRequest]
@@ -172,9 +172,8 @@ module Whop_sdk
172
172
  end
173
173
  end
174
174
 
175
- # Edits a dispute's evidence, while it is still editable. Sending it is a separate call. `evidence.documents`,
176
- # when provided, replaces the full set of documents beyond the four fixed evidence slots — see its own
177
- # description.
175
+ # Edits a dispute's evidence while it is still editable. When the evidence is ready, send it to the payment
176
+ # processor with `POST /disputes/:id/submit`.
178
177
  #
179
178
  # @param request_options [Hash]
180
179
  # @param params [Whop_sdk::Disputes::Types::UpdateDisputesRequest]
@@ -253,15 +252,9 @@ module Whop_sdk
253
252
  end
254
253
  end
255
254
 
256
- # Prefer `PATCH /disputes/{id}` with `evidence.documents` — it does the same replace alongside every other
257
- # evidence field in one call. Replaces the full set of uploaded evidence documents on a dispute, beyond the four
258
- # fixed evidence slots. Upload files through `POST /files` and reference them by `id`, or send the files as
259
- # multipart file parts to upload and attach in one call. Send every document the packet should carry — up to 10,
260
- # 10MB each and 25MB in total; an empty list removes them all. Accepted content types: application/pdf,
261
- # application/json, image/jpeg, image/png, image/webp — any other type is rejected. Policy documents
262
- # (`return_policy`, `shipping_policy`, `cancellation_policy`, `terms_of_service`) default from the account's own
263
- # documents; uploading one here replaces the account copy for this dispute, and a `cancellation_policy` or
264
- # `return_policy` upload also takes precedence over the matching fixed evidence slot.
255
+ # Replaces the full set of uploaded evidence documents on a dispute, beyond the four fixed evidence slots. Prefer
256
+ # `PATCH /disputes/:id` with `evidence.documents`, which does the same replace alongside every other evidence
257
+ # field in one call.
265
258
  #
266
259
  # @param request_options [Hash]
267
260
  # @param params [Whop_sdk::Disputes::Types::UploadEvidenceDisputesRequest]
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of DM channels for the currently authenticated user, sorted by most recently active.
17
+ # Lists the authenticated user's DM channels, most recently active first.
18
18
  #
19
19
  # Required permissions:
20
20
  # - `dms:read`
@@ -78,8 +78,8 @@ module Whop_sdk
78
78
  end
79
79
  end
80
80
 
81
- # Create a new DM channel between two or more users, optionally scoped to a specific company. Returns the existing
82
- # channel if one already exists.
81
+ # Creates a DM channel between two or more users, optionally scoped to an account. Returns the existing channel if
82
+ # one already exists.
83
83
  #
84
84
  # Required permissions:
85
85
  # - `dms:channel:manage`
@@ -160,7 +160,7 @@ module Whop_sdk
160
160
  end
161
161
  end
162
162
 
163
- # Permanently delete a DM channel and all of its messages. Only an admin of the channel can perform this action.
163
+ # Permanently deletes a DM channel and all of its messages. Only a channel admin can delete it.
164
164
  #
165
165
  # Required permissions (one of):
166
166
  # - `dms:channel:manage`
@@ -201,8 +201,7 @@ module Whop_sdk
201
201
  end
202
202
  end
203
203
 
204
- # Update the settings of an existing DM channel, such as its display name. Only an admin of the channel can
205
- # perform this action.
204
+ # Updates a DM channel's settings, such as its display name. Only a channel admin can update it.
206
205
  #
207
206
  # Required permissions (one of):
208
207
  # - `dms:channel:manage`
@@ -38,9 +38,12 @@ module Whop_sdk
38
38
  # @option params [String, nil] :search
39
39
  # @option params [String, nil] :tlds
40
40
  # @option params [String, nil] :domain
41
- # @option params [String, nil] :verification
42
- # @option params [String, nil] :registration
43
- # @option params [String, nil] :website
41
+ # @option params [Whop_sdk::Domains::Types::ListDomainsRequestVerification, nil] :verification
42
+ # @option params [Whop_sdk::Domains::Types::ListDomainsRequestRegistration, nil] :registration
43
+ # @option params [Whop_sdk::Domains::Types::ListDomainsRequestPlatform, nil] :platform
44
+ # @option params [Whop_sdk::Domains::Types::ListDomainsRequestWebsite, nil] :website
45
+ # @option params [Whop_sdk::Domains::Types::ListDomainsRequestApplePay, nil] :apple_pay
46
+ # @option params [Whop_sdk::Domains::Types::ListDomainsRequestPixel, nil] :pixel
44
47
  #
45
48
  # @example
46
49
  # client.domains.list(tlds: ["com"])
@@ -63,7 +66,10 @@ module Whop_sdk
63
66
  query_params["domain"] = params[:domain] if params.key?(:domain)
64
67
  query_params["verification"] = params[:verification] if params.key?(:verification)
65
68
  query_params["registration"] = params[:registration] if params.key?(:registration)
69
+ query_params["platform"] = params[:platform] if params.key?(:platform)
66
70
  query_params["website"] = params[:website] if params.key?(:website)
71
+ query_params["apple_pay"] = params[:apple_pay] if params.key?(:apple_pay)
72
+ query_params["pixel"] = params[:pixel] if params.key?(:pixel)
67
73
 
68
74
  Whop_sdk::Internal::CursorItemIterator.new(
69
75
  cursor_field: :end_cursor,
@@ -6,10 +6,14 @@ module Whop_sdk
6
6
  class CreateDomainsRequest < Internal::Types::Model
7
7
  field :account_id, -> { String }, optional: true, nullable: false
8
8
 
9
+ field :apple_pay, -> { Whop_sdk::Domains::Types::CreateDomainsRequestApplePay }, optional: true, nullable: false
10
+
9
11
  field :domain, -> { String }, optional: false, nullable: false
10
12
 
11
13
  field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
12
14
 
15
+ field :pixel, -> { Whop_sdk::Domains::Types::CreateDomainsRequestPixel }, optional: true, nullable: false
16
+
13
17
  field :registration, -> { Whop_sdk::Domains::Types::CreateDomainsRequestRegistration }, optional: true, nullable: false
14
18
 
15
19
  field :verification, -> { Whop_sdk::Domains::Types::CreateDomainsRequestVerification }, optional: true, nullable: false
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Domains
5
+ module Types
6
+ # Accept Apple Pay at checkout on the domain. It needs no other capability. Whop registers the domain with Apple:
7
+ # it stays `pending` until Apple answers, then turns `ready`, or `action_required` when Apple couldn't fetch the
8
+ # domain association file. Serve the file, then check the domain to register it again. Pass `null` to turn Apple
9
+ # Pay off: Whop removes the domain from Apple, and the domain stays, like releasing any other capability.
10
+ class CreateDomainsRequestApplePay < Internal::Types::Model; end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Domains
5
+ module Types
6
+ # Track page views on the domain with the Whop pixel. It needs no other capability: it stays `pending` until the
7
+ # pixel records a page view, and turns `action_required` if it goes 7 days without one. Pass `null` to stop
8
+ # tracking.
9
+ class CreateDomainsRequestPixel < Internal::Types::Model; end
10
+ end
11
+ end
12
+ end
@@ -28,11 +28,17 @@ module Whop_sdk
28
28
 
29
29
  field :domain, -> { String }, optional: true, nullable: false
30
30
 
31
- field :verification, -> { String }, optional: true, nullable: false
31
+ field :verification, -> { Whop_sdk::Domains::Types::ListDomainsRequestVerification }, optional: true, nullable: false
32
32
 
33
- field :registration, -> { String }, optional: true, nullable: false
33
+ field :registration, -> { Whop_sdk::Domains::Types::ListDomainsRequestRegistration }, optional: true, nullable: false
34
34
 
35
- field :website, -> { String }, optional: true, nullable: false
35
+ field :platform, -> { Whop_sdk::Domains::Types::ListDomainsRequestPlatform }, optional: true, nullable: false
36
+
37
+ field :website, -> { Whop_sdk::Domains::Types::ListDomainsRequestWebsite }, optional: true, nullable: false
38
+
39
+ field :apple_pay, -> { Whop_sdk::Domains::Types::ListDomainsRequestApplePay }, optional: true, nullable: false
40
+
41
+ field :pixel, -> { Whop_sdk::Domains::Types::ListDomainsRequestPixel }, optional: true, nullable: false
36
42
  end
37
43
  end
38
44
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Domains
5
+ module Types
6
+ module ListDomainsRequestApplePay
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ PENDING = "pending"
10
+ READY = "ready"
11
+ ACTION_REQUIRED = "action_required"
12
+ RELEASING = "releasing"
13
+ ANY = "any"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -6,8 +6,10 @@ module Whop_sdk
6
6
  module ListDomainsRequestOrder
7
7
  extend Whop_sdk::Internal::Types::Enum
8
8
 
9
+ UNIQUE_VISITORS_LAST7DAYS = "unique_visitors_last_7_days"
9
10
  CREATED_AT = "created_at"
10
11
  UPDATED_AT = "updated_at"
12
+ DOMAIN = "domain"
11
13
  end
12
14
  end
13
15
  end