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
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Lists experiments for one account with experiment:read permission.
17
+ # Lists the experiments and feature flags owned by an account. Requires `experiment:read` on the account.
18
18
  #
19
19
  # @param request_options [Hash]
20
20
  # @param params [Hash]
@@ -79,7 +79,8 @@ module Whop_sdk
79
79
  end
80
80
  end
81
81
 
82
- # Creates a draft experiment for the specified account.
82
+ # Creates an experiment or feature flag in `draft` status for an account. Nothing is served until you activate it
83
+ # with `POST /experiments/:id/activate`. Requires `experiment:manage` on the account.
83
84
  #
84
85
  # @param request_options [Hash]
85
86
  # @param params [Whop_sdk::Experiments::Types::CreateExperimentsRequest]
@@ -119,23 +120,10 @@ module Whop_sdk
119
120
  end
120
121
  end
121
122
 
122
- # Evaluates and records an exposure without requiring authentication. When credentials resolve, their
123
- # authentication method, API key ID, and signed-in user ID are recorded on the exposure event. Pass subject for
124
- # bucketing identity and account_id for experiment ownership.
125
- #
126
- # Pass `flag_key` to check a single flag, or omit it to fetch active flags in the account and related resource
127
- # scope.
128
- #
129
- # Assignments use exactly the configured `bucket_by`: `subject[user_id]`, `subject[account_id]`, or
130
- # `subject[anonymous_id]`. Missing the required identity fails single evaluation and omits the experiment from
131
- # batch evaluation. Subjects outside all treatment ranges receive control.
132
- #
133
- # Pass `subject[account_id]` to enable account-level targeting rules. Pass `properties` as a JSON object to supply
134
- # the values that `property` targeting conditions match against.
135
- #
136
- # Pass `log_exposure=false` to read an assignment without recording an exposure, for a client that caches
137
- # assignments up front and records the exposure when the arm is actually rendered. Omitted records the exposure,
138
- # so pinned callers are unchanged.
123
+ # Evaluates experiments and feature flags for a subject and records an exposure. Pass `flag_key` to evaluate one
124
+ # flag, or omit it to evaluate every active flag in the account and related resource scope. Requires no
125
+ # authentication; when a credential resolves, its authentication method, API key ID, and signed-in user ID are
126
+ # recorded on the exposure event.
139
127
  #
140
128
  # @param request_options [Hash]
141
129
  # @param params [Hash]
@@ -186,8 +174,8 @@ module Whop_sdk
186
174
  end
187
175
  end
188
176
 
189
- # Retrieves a single experiment or feature flag by its `expt_` id or flag_key handle. Requires the corresponding
190
- # experiment permission on the owning account.
177
+ # Retrieves an experiment or feature flag by its `expt_` ID or `flag_key` handle. Requires `experiment:read` on
178
+ # the owning account.
191
179
  #
192
180
  # @param request_options [Hash]
193
181
  # @param params [Hash]
@@ -229,10 +217,9 @@ module Whop_sdk
229
217
  end
230
218
  end
231
219
 
232
- # Updates the targeting rules, treatment allocation, metrics, or hypothesis of an existing experiment or feature
233
- # flag. Weights and metrics can only grow, so enrolled users never change arms and an existing metric is never
234
- # dropped. Lifecycle moves through the transition endpoints (`activate`, `pause`, `end`), never through this
235
- # update. Requires the corresponding experiment permission on the owning account.
220
+ # Updates the targeting rules, treatment allocation, or hypothesis of an existing experiment or feature flag. To
221
+ # change its lifecycle, use the `activate`, `pause`, and `end` endpoints instead. Requires `experiment:manage` on
222
+ # the owning account.
236
223
  #
237
224
  # @param request_options [Hash]
238
225
  # @param params [Whop_sdk::Experiments::Types::UpdateExperimentsRequest]
@@ -281,7 +268,7 @@ module Whop_sdk
281
268
 
282
269
  # Starts (or resumes) an experiment or feature flag so evaluation begins serving it. Activating a draft stamps
283
270
  # `started_at`; resuming a paused experiment keeps the original start. Only drafts and paused experiments can be
284
- # activated. Requires the corresponding experiment permission on the owning account.
271
+ # activated. Requires `experiment:manage` on the owning account.
285
272
  #
286
273
  # @param request_options [Hash]
287
274
  # @param params [Whop_sdk::Experiments::Types::ActivateExperimentsRequest]
@@ -330,7 +317,7 @@ module Whop_sdk
330
317
 
331
318
  # Concludes the experiment and records required `findings`. Pass `winning_arm` to serve the winning treatment to
332
319
  # everyone; omit it when control won. Ended experiments cannot restart, but may be ended again to correct the
333
- # winner. Requires experiment:manage on the account.
320
+ # winner. Requires `experiment:manage` on the owning account.
334
321
  #
335
322
  # @param request_options [Hash]
336
323
  # @param params [Whop_sdk::Experiments::Types::EndExperimentsRequest]
@@ -381,8 +368,8 @@ module Whop_sdk
381
368
  end
382
369
 
383
370
  # Pauses an active experiment or feature flag: evaluation stops serving it and exposures stop flowing. Assignments
384
- # are keyed on stable identity, so users return to their original arm when the experiment resumes. Requires the
385
- # corresponding experiment permission on the owning account.
371
+ # are keyed on stable identity, so users return to their original arm when the experiment resumes. Requires
372
+ # `experiment:manage` on the owning account.
386
373
  #
387
374
  # @param request_options [Hash]
388
375
  # @param params [Hash]
@@ -69,7 +69,7 @@ module Whop_sdk
69
69
  end
70
70
 
71
71
  # Starts an asynchronous export of a resource for an account. Returns the export in `pending`; poll `GET
72
- # /exports/{id}` until `download_url` is set.
72
+ # /exports/:id` until `download_url` is set.
73
73
  #
74
74
  # @param request_options [Hash]
75
75
  # @param params [Whop_sdk::Exports::Types::CreateExportsRequest]
@@ -122,11 +122,9 @@ module Whop_sdk
122
122
  end
123
123
  end
124
124
 
125
- # Starts an OAuth connection flow and returns an authorize_url where the user can connect an external account.
126
- # LinkedIn supports personal profiles only, with scopes omitted. TikTok connects the authenticated user’s profile
127
- # when scopes are omitted or company advertising assets with advertise. Meta Business and Snapchat support
128
- # advertising connections only and require advertise. Personal profile connections must be completed in a browser
129
- # signed in as the initiating Whop user.
125
+ # Starts an OAuth connection flow and returns an `authorize_url` to send the user to, where they connect an
126
+ # external account. Personal profile connections must be completed in a browser signed in as the Whop user who
127
+ # started the flow.
130
128
  #
131
129
  # @param request_options [Hash]
132
130
  # @param params [Whop_sdk::ExternalAccounts::Types::ConnectExternalAccountsRequest]
@@ -14,8 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of fee markups configured for a company. If the company is a platform account, returns
18
- # the platform default markups.
17
+ # Lists the fee markups configured for an account. For a platform account, returns the platform's default markups.
19
18
  #
20
19
  # Required permissions:
21
20
  # - `company:update_child_fees`
@@ -79,8 +78,8 @@ module Whop_sdk
79
78
  end
80
79
  end
81
80
 
82
- # Create or update a fee markup for a company. If a markup for the specified fee type already exists, it will be
83
- # updated with the new values.
81
+ # Creates or updates an account's markup for one fee type. If the account already has a markup for that
82
+ # `fee_type`, it is updated with the new values.
84
83
  #
85
84
  # Required permissions:
86
85
  # - `company:update_child_fees`
@@ -123,8 +122,8 @@ module Whop_sdk
123
122
  end
124
123
  end
125
124
 
126
- # Delete a fee markup configuration for a company. This removes the custom fee override and reverts to the parent
127
- # company's default fees.
125
+ # Deletes a fee markup, removing the custom fee override so the account reverts to its parent account's default
126
+ # fees.
128
127
  #
129
128
  # Required permissions:
130
129
  # - `company:update_child_fees`
@@ -16,7 +16,6 @@ module Whop_sdk
16
16
 
17
17
  # Submits an issue or an unanswered question to Whop for review, recorded under the authenticated user, account,
18
18
  # or app. Returns a receipt once the submission is accepted; processing is asynchronous and no reply is sent.
19
- # Accepts user, account, and app credentials.
20
19
  #
21
20
  # @param request_options [Hash]
22
21
  # @param params [Whop_sdk::FeedbackSubmissions::Types::CreateFeedbackSubmissionsRequest]
@@ -16,8 +16,8 @@ module Whop_sdk
16
16
 
17
17
  # Returns the files with the given IDs, newest first — fetch a batch in one request instead of retrieving each
18
18
  # file individually. Only files you created are returned; IDs that do not exist, or that another credential
19
- # created, are omitted. A request for up to 100 IDs answers in a single page by default; a larger batch pages at
20
- # up to 100 files per response — follow `page_info` with the same `file_ids` to walk the rest.
19
+ # created, are omitted. For a batch larger than one page, follow `page_info` with the same `file_ids` to walk the
20
+ # rest.
21
21
  #
22
22
  # @param request_options [Hash]
23
23
  # @param params [Hash]
@@ -15,7 +15,9 @@ module Whop_sdk
15
15
  @environment = environment
16
16
  end
17
17
 
18
- # Returns the top entities behind one high-level financial report bucket and an aggregate remainder.
18
+ # Breaks one bucket of a financial report, such as payments received or card spend, into the customers,
19
+ # accounts, merchants, or campaigns that contributed most, with the rest summed as a remainder. Use it to
20
+ # explain a total from `GET /financial_reports`.
19
21
  #
20
22
  # @param request_options [Hash]
21
23
  # @param params [Hash]
@@ -86,7 +86,7 @@ module Whop_sdk
86
86
  end
87
87
 
88
88
  # Create a new forum post or comment within an experience. Supports text content, attachments, polls, paywalling,
89
- # and pinning. Pass experience_id 'public' with an account_id to post to an account's public forum.
89
+ # and pinning.
90
90
  #
91
91
  # Required permissions:
92
92
  # - `forum:post:create`
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of forums within a specific company, with optional filtering by product.
17
+ # Returns a paginated list of forums for an account, with optional filtering by product.
18
18
  #
19
19
  # Required permissions:
20
20
  # - `forum:read`
@@ -14,9 +14,8 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of identity profiles. When account_id is provided, lists IPs currently linked to that
18
- # account's ledger. When omitted, lists IPs linked to any ledger the actor can read (including child accounts
19
- # under a parent).
17
+ # Lists the identity profiles currently linked to an account, or to every account you can read when `account_id`
18
+ # is omitted.
20
19
  #
21
20
  # Required permissions:
22
21
  # - `identity:read`
@@ -124,7 +123,8 @@ module Whop_sdk
124
123
  end
125
124
  end
126
125
 
127
- # Unlinks an IdentityProfile from a LedgerAccount (flips the matching link to is_current=false).
126
+ # Unlinks an identity profile from the account or user that owns `ledger_account_id`. Requires `identity:write` on
127
+ # that account or user.
128
128
  #
129
129
  # @param request_options [Hash]
130
130
  # @param params [Hash]
@@ -35,7 +35,7 @@ module Whop_sdk
35
35
  @default_headers = {
36
36
  "X-Fern-Language": "Ruby",
37
37
  "X-Fern-SDK-Name": "whop_sdk",
38
- "X-Fern-SDK-Version": "2.4.0"
38
+ "X-Fern-SDK-Version": "2.5.0"
39
39
  }.merge(headers)
40
40
  @overridable_headers = overridable_headers.to_set { |name| name.to_s.downcase }
41
41
  end
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of invoices for a company, with optional filtering by product, status, collection
17
+ # Returns a paginated list of invoices for an account, with optional filtering by product, status, collection
18
18
  # method, and creation date.
19
19
  #
20
20
  # Required permissions:
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of leads for a company, with optional filtering by product and creation date.
17
+ # Lists an account's leads, newest first.
18
18
  #
19
19
  # Required permissions:
20
20
  # - `lead:basic:read`
@@ -89,7 +89,7 @@ module Whop_sdk
89
89
  end
90
90
  end
91
91
 
92
- # Record a new lead for a company, capturing a potential customer's interest in a specific product.
92
+ # Records a lead: a potential customer's interest in an account or one of its products.
93
93
  #
94
94
  # Required permissions:
95
95
  # - `lead:manage`
@@ -175,7 +175,7 @@ module Whop_sdk
175
175
  end
176
176
  end
177
177
 
178
- # Update the metadata or referrer information on an existing lead record.
178
+ # Updates a lead's `metadata` or `referrer`.
179
179
  #
180
180
  # Required permissions:
181
181
  # - `lead:manage`
@@ -28,6 +28,11 @@ module Whop_sdk
28
28
  # @option params [Whop_sdk::Members::Types::ListMembersRequestAccessLevel, nil] :access_level
29
29
  # @option params [Whop_sdk::Members::Types::ListMembersRequestStatus, nil] :status
30
30
  # @option params [String, nil] :user_ids
31
+ # @option params [Whop_sdk::Members::Types::ListMembersRequestMostRecentActionsItem, nil] :most_recent_actions
32
+ # @option params [Whop_sdk::Members::Types::ListMembersRequestMembershipStatus, nil] :membership_status
33
+ # @option params [String, nil] :product_ids
34
+ # @option params [String, nil] :plan_ids
35
+ # @option params [String, nil] :promo_code_ids
31
36
  # @option params [String, nil] :query
32
37
  # @option params [String, nil] :created_after
33
38
  # @option params [String, nil] :created_before
@@ -39,7 +44,12 @@ module Whop_sdk
39
44
  # @option params [String, nil] :before
40
45
  #
41
46
  # @example
42
- # client.members.list(user_ids: ["user_xxxxxxxxxxxxxx"])
47
+ # client.members.list(
48
+ # user_ids: ["user_xxxxxxxxxxxxxx"],
49
+ # product_ids: ["prod_xxxxxxxxxxxxx"],
50
+ # plan_ids: ["plan_xxxxxxxxxxxxx"],
51
+ # promo_code_ids: ["promo_xxxxxxxxxxxx"]
52
+ # )
43
53
  #
44
54
  # @return [Whop_sdk::Members::Types::ListMembersResponse]
45
55
  def list(request_options: {}, **params)
@@ -49,6 +59,11 @@ module Whop_sdk
49
59
  query_params["access_level"] = params[:access_level] if params.key?(:access_level)
50
60
  query_params["status"] = params[:status] if params.key?(:status)
51
61
  query_params["user_ids"] = params[:user_ids] if params.key?(:user_ids)
62
+ query_params["most_recent_actions"] = params[:most_recent_actions] if params.key?(:most_recent_actions)
63
+ query_params["membership_status"] = params[:membership_status] if params.key?(:membership_status)
64
+ query_params["product_ids"] = params[:product_ids] if params.key?(:product_ids)
65
+ query_params["plan_ids"] = params[:plan_ids] if params.key?(:plan_ids)
66
+ query_params["promo_code_ids"] = params[:promo_code_ids] if params.key?(:promo_code_ids)
52
67
  query_params["query"] = params[:query] if params.key?(:query)
53
68
  query_params["created_after"] = params[:created_after] if params.key?(:created_after)
54
69
  query_params["created_before"] = params[:created_before] if params.key?(:created_before)
@@ -129,6 +144,11 @@ module Whop_sdk
129
144
  def logs
130
145
  @logs ||= Whop_sdk::Members::Logs::Client.new(client: @client, base_url: @base_url, environment: @environment)
131
146
  end
147
+
148
+ # @return [Whop_sdk::Notes::Client]
149
+ def notes
150
+ @notes ||= Whop_sdk::Members::Notes::Client.new(client: @client, base_url: @base_url, environment: @environment)
151
+ end
132
152
  end
133
153
  end
134
154
  end
@@ -15,7 +15,7 @@ module Whop_sdk
15
15
  @environment = environment
16
16
  end
17
17
 
18
- # Lists activity for a member and all of their non-drafted memberships, most recent first.
18
+ # Lists activity for a member and all of their memberships that are not `drafted`, most recent first.
19
19
  #
20
20
  # @param request_options [Hash]
21
21
  # @param params [Hash]
@@ -0,0 +1,121 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Members
5
+ module Notes
6
+ class Client
7
+ # @param client [Whop_sdk::Internal::Http::RawClient]
8
+ # @param base_url [String, nil]
9
+ # @param environment [Hash[Symbol, String], nil]
10
+ #
11
+ # @return [void]
12
+ def initialize(client:, base_url: nil, environment: nil)
13
+ @client = client
14
+ @base_url = base_url
15
+ @environment = environment
16
+ end
17
+
18
+ # Lists a member's notes, newest first. Notes are visible to the account's team.
19
+ #
20
+ # @param request_options [Hash]
21
+ # @param params [Hash]
22
+ # @option request_options [String] :base_url
23
+ # @option request_options [Hash{String => Object}] :additional_headers
24
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
25
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
26
+ # @option request_options [Integer] :timeout_in_seconds
27
+ # @option params [String] :member_id
28
+ # @option params [Integer, nil] :first
29
+ # @option params [String, nil] :after
30
+ # @option params [Integer, nil] :last
31
+ # @option params [String, nil] :before
32
+ #
33
+ # @example
34
+ # client.members.notes.list(member_id: "member_id")
35
+ #
36
+ # @return [Whop_sdk::Members::Notes::Types::ListNotesResponse]
37
+ def list(request_options: {}, **params)
38
+ params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
39
+ query_params = {}
40
+ query_params["first"] = params[:first] if params.key?(:first)
41
+ query_params["after"] = params[:after] if params.key?(:after)
42
+ query_params["last"] = params[:last] if params.key?(:last)
43
+ query_params["before"] = params[:before] if params.key?(:before)
44
+
45
+ Whop_sdk::Internal::CursorItemIterator.new(
46
+ cursor_field: :end_cursor,
47
+ item_field: :data,
48
+ initial_cursor: query_params["after"]
49
+ ) do |next_cursor|
50
+ query_params["after"] = next_cursor
51
+ request = Whop_sdk::Internal::JSON::Request.new(
52
+ base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
53
+ method: "GET",
54
+ path: "members/#{URI.encode_uri_component(params[:member_id].to_s)}/notes",
55
+ query: query_params,
56
+ request_options: request_options
57
+ )
58
+ begin
59
+ response = @client.send(request)
60
+ rescue Net::HTTPRequestTimeout
61
+ raise Whop_sdk::Errors::TimeoutError
62
+ end
63
+ code = response.code.to_i
64
+ if code.between?(200, 299)
65
+ parsed_response = (response.body.to_s.empty? ? nil : Whop_sdk::Members::Notes::Types::ListNotesResponse.load(response.body))
66
+ [parsed_response, response]
67
+ else
68
+ error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
69
+ raise error_class.new(response.body, code: code)
70
+ end
71
+ end
72
+ end
73
+
74
+ # Adds a note to a member. Notes are visible to the account's team.
75
+ #
76
+ # @param request_options [Hash]
77
+ # @param params [Whop_sdk::Members::Notes::Types::CreateNotesRequest]
78
+ # @option request_options [String] :base_url
79
+ # @option request_options [Hash{String => Object}] :additional_headers
80
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
81
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
82
+ # @option request_options [Integer] :timeout_in_seconds
83
+ # @option params [String] :member_id
84
+ #
85
+ # @example
86
+ # client.members.notes.create(
87
+ # member_id: "member_id",
88
+ # content: "Wants a call next week."
89
+ # )
90
+ #
91
+ # @return [Whop_sdk::Types::MemberNote]
92
+ def create(request_options: {}, **params)
93
+ params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
94
+ request_data = Whop_sdk::Members::Notes::Types::CreateNotesRequest.new(params).to_h
95
+ non_body_param_names = %w[member_id]
96
+ body = request_data.except(*non_body_param_names)
97
+
98
+ request = Whop_sdk::Internal::JSON::Request.new(
99
+ base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
100
+ method: "POST",
101
+ path: "members/#{URI.encode_uri_component(params[:member_id].to_s)}/notes",
102
+ body: body,
103
+ request_options: request_options
104
+ )
105
+ begin
106
+ response = @client.send(request)
107
+ rescue Net::HTTPRequestTimeout
108
+ raise Whop_sdk::Errors::TimeoutError
109
+ end
110
+ code = response.code.to_i
111
+ if code.between?(200, 299)
112
+ (response.body.to_s.empty? ? nil : Whop_sdk::Types::MemberNote.load(response.body))
113
+ else
114
+ error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
115
+ raise error_class.new(response.body, code: code)
116
+ end
117
+ end
118
+ end
119
+ end
120
+ end
121
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Members
5
+ module Notes
6
+ module Types
7
+ class CreateNotesRequest < Internal::Types::Model
8
+ field :member_id, -> { String }, optional: false, nullable: false
9
+
10
+ field :content, -> { String }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Members
5
+ module Notes
6
+ module Types
7
+ class ListNotesRequest < Internal::Types::Model
8
+ field :member_id, -> { String }, optional: false, nullable: false
9
+
10
+ field :first, -> { Integer }, optional: true, nullable: false
11
+
12
+ field :after, -> { String }, optional: true, nullable: false
13
+
14
+ field :last, -> { Integer }, optional: true, nullable: false
15
+
16
+ field :before, -> { String }, optional: true, nullable: false
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Members
5
+ module Notes
6
+ module Types
7
+ class ListNotesResponse < Internal::Types::Model
8
+ field :data, -> { Internal::Types::Array[Whop_sdk::Types::MemberNote] }, optional: false, nullable: false
9
+
10
+ field :page_info, -> { Whop_sdk::Members::Notes::Types::ListNotesResponsePageInfo }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Members
5
+ module Notes
6
+ module Types
7
+ class ListNotesResponsePageInfo < Internal::Types::Model
8
+ field :end_cursor, -> { String }, optional: false, nullable: true
9
+
10
+ field :has_next_page, -> { Internal::Types::Boolean }, optional: false, nullable: false
11
+
12
+ field :has_previous_page, -> { Internal::Types::Boolean }, optional: false, nullable: false
13
+
14
+ field :start_cursor, -> { String }, optional: false, nullable: true
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -12,6 +12,16 @@ module Whop_sdk
12
12
 
13
13
  field :user_ids, -> { String }, optional: true, nullable: false
14
14
 
15
+ field :most_recent_actions, -> { Whop_sdk::Members::Types::ListMembersRequestMostRecentActionsItem }, optional: true, nullable: false
16
+
17
+ field :membership_status, -> { Whop_sdk::Members::Types::ListMembersRequestMembershipStatus }, optional: true, nullable: false
18
+
19
+ field :product_ids, -> { String }, optional: true, nullable: false
20
+
21
+ field :plan_ids, -> { String }, optional: true, nullable: false
22
+
23
+ field :promo_code_ids, -> { String }, optional: true, nullable: false
24
+
15
25
  field :query, -> { String }, optional: true, nullable: false
16
26
 
17
27
  field :created_after, -> { String }, optional: true, nullable: false
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Members
5
+ module Types
6
+ module ListMembersRequestMembershipStatus
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ ACTIVE = "active"
10
+ INACTIVE = "inactive"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Members
5
+ module Types
6
+ module ListMembersRequestMostRecentActionsItem
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ CANCELING = "canceling"
10
+ CHURNED = "churned"
11
+ FINISHED_SPLIT_PAY = "finished_split_pay"
12
+ PAUSED = "paused"
13
+ PAID_SUBSCRIBER = "paid_subscriber"
14
+ PAID_ONCE = "paid_once"
15
+ EXPIRING = "expiring"
16
+ JOINED = "joined"
17
+ LEFT = "left"
18
+ TRIALING = "trialing"
19
+ PENDING_ENTRY = "pending_entry"
20
+ RENEWING = "renewing"
21
+ PAST_DUE = "past_due"
22
+ end
23
+ end
24
+ end
25
+ end
@@ -9,6 +9,7 @@ module Whop_sdk
9
9
  CREATED_AT = "created_at"
10
10
  JOINED_AT = "joined_at"
11
11
  LAST_ACCESSED_AT = "last_accessed_at"
12
+ MOST_RECENT_ACTION_AT = "most_recent_action_at"
12
13
  USD_TOTAL_SPENT = "usd_total_spent"
13
14
  end
14
15
  end