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
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Payments
5
+ module Types
6
+ module CreatePaymentsRequestLineItemsItemPlanVisibility
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ VISIBLE = "visible"
10
+ HIDDEN = "hidden"
11
+ ARCHIVED = "archived"
12
+ QUICK_LINK = "quick_link"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -5,6 +5,8 @@ module Whop_sdk
5
5
  module Types
6
6
  class ResumePaymentsRequest < Internal::Types::Model
7
7
  field :payment_id, -> { String }, optional: false, nullable: false
8
+
9
+ field :return_url, -> { String }, optional: true, nullable: false
8
10
  end
9
11
  end
10
12
  end
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a list of active payout methods configured for a company, ordered by most recently created.
17
+ # Lists the active payout methods configured for an account, newest first.
18
18
  #
19
19
  # Required permissions:
20
20
  # - `payout:destination:read`
@@ -125,8 +125,8 @@ module Whop_sdk
125
125
  end
126
126
  end
127
127
 
128
- # Creates a short-lived, provider-backed quote for a payout. No funds move until the returned quote_token is
129
- # submitted to POST /payouts. An Idempotency-Key header is required.
128
+ # Creates a short-lived, provider-backed quote of a payout's fee, exchange rate, and destination amount. No funds
129
+ # move until you submit the returned `quote_token` to `POST /payouts`.
130
130
  #
131
131
  # @param request_options [Hash]
132
132
  # @param params [Whop_sdk::Payouts::Types::CreateQuotePayoutsRequest]
@@ -166,11 +166,10 @@ module Whop_sdk
166
166
  end
167
167
  end
168
168
 
169
- # Fetches one payout by its `wdrl_` ID, or by the `cofr_` conversion request ID a stablecoin payout carries as
170
- # `payout_request_id` — both ids answer with the same payout object. Authentication is optional. Anyone with the
171
- # ID can view payout tracking details, including notes, trace code, exchange rate, and payout request ID.
172
- # Accounting fields require payout:withdrawal:read on the owning ledger. A supplied invalid credential returns
173
- # 401.
169
+ # Retrieves a payout by its `wdrl_` ID, or by the `cofr_` conversion request ID a stablecoin payout carries as
170
+ # `payout_request_id`. Authentication is optional: anyone with the ID can view tracking details, including notes,
171
+ # trace code, exchange rate, and payout request ID, while accounting fields require `payout:withdrawal:read` on
172
+ # the account or user that owns the payout. A supplied invalid credential returns 401.
174
173
  #
175
174
  # @param request_options [Hash]
176
175
  # @param params [Hash]
@@ -214,11 +213,10 @@ module Whop_sdk
214
213
  end
215
214
  end
216
215
 
217
- # Cancels a payout that is still in review and returns the funds, fees included, to the balance. A payout can be
218
- # canceled while its status is `in_review`. A `requested` payout is still being prepared (its funds may be
219
- # converting) and answers 409 until it reaches review; from `processing` on, the money is on its way and the
220
- # answer is 409 with error type `not_cancelable`. Canceling a payout that is already canceled succeeds and returns
221
- # it unchanged.
216
+ # Cancels a payout whose `status` is `in_review` and returns the funds, fees included, to the balance. A
217
+ # `requested` payout is still being prepared (its funds may be converting) and returns 409 until it reaches
218
+ # review; from `processing` on, the money is on its way and the response is 409 with error type `not_cancelable`.
219
+ # Canceling an already-canceled payout succeeds and returns it unchanged.
222
220
  #
223
221
  # @param request_options [Hash]
224
222
  # @param params [Hash]
@@ -267,6 +265,11 @@ module Whop_sdk
267
265
  @methods ||= Whop_sdk::Payouts::Methods::Client.new(client: @client, base_url: @base_url, environment: @environment)
268
266
  end
269
267
 
268
+ # @return [Whop_sdk::PaypalLinkSessions::Client]
269
+ def paypal_link_sessions
270
+ @paypal_link_sessions ||= Whop_sdk::Payouts::PaypalLinkSessions::Client.new(client: @client, base_url: @base_url, environment: @environment)
271
+ end
272
+
270
273
  # @return [Whop_sdk::SupportedMethods::Client]
271
274
  def supported_methods
272
275
  @supported_methods ||= Whop_sdk::Payouts::SupportedMethods::Client.new(client: @client, base_url: @base_url, environment: @environment)
@@ -84,8 +84,8 @@ module Whop_sdk
84
84
  end
85
85
  end
86
86
 
87
- # Saves a new place an account or user can pay out to. Sensitive details are vaulted in transit and never stored
88
- # raw.
87
+ # Saves a bank account, wallet, or crypto address an account or user can pay out to, from a method listed by
88
+ # `GET /payouts/supported_methods`. Sensitive details are vaulted in transit and never stored raw.
89
89
  #
90
90
  # @param request_options [Hash]
91
91
  # @param params [Whop_sdk::Payouts::Methods::Types::CreateMethodsRequest]
@@ -15,6 +15,8 @@ module Whop_sdk
15
15
 
16
16
  field :nickname, -> { String }, optional: true, nullable: false
17
17
 
18
+ field :paypal_link_token, -> { String }, optional: true, nullable: false
19
+
18
20
  field :recipient, -> { Whop_sdk::Payouts::Methods::Types::CreateMethodsRequestRecipient }, optional: true, nullable: false
19
21
 
20
22
  field :supported_payout_method_id, -> { String }, optional: false, nullable: false
@@ -9,8 +9,8 @@ module Whop_sdk
9
9
 
10
10
  ACCOUNT_SUSPENDED = "account_suspended"
11
11
  BLOCK_MOVE_MONEY_OUT_BECAUSE_CLAWBACK = "block_move_money_out_because_clawback"
12
- SUPPORTABILITY_CHECK_PAYOUT_STATUS_HOLD = "supportability_check_payout_status_hold"
13
12
  CARD_USAGE_REVIEW_PAYOUT_STATUS_HOLD = "card_usage_review_payout_status_hold"
13
+ UNDER_REVIEW = "under_review"
14
14
  KYC_COMPLETED = "kyc_completed"
15
15
  RMI_CLEAR = "rmi_clear"
16
16
  IDENTITY_RFI_CLEAR = "identity_rfi_clear"
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Payouts
5
+ module PaypalLinkSessions
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
+ # Starts a Log in with PayPal session so PayPal itself can confirm the account holder owns a verified PayPal
19
+ # account. Send the holder to `authorize_url`; after they log in, PayPal returns them to Whop, and Whop
20
+ # redirects the browser to your `return_url` with a `paypal_link_token` query parameter to pass to `POST
21
+ # /payouts/methods`. If the login fails or is canceled, `return_url` receives an `error` query parameter
22
+ # (`paypal_login_canceled` or `paypal_login_failed`) instead. The payout method saved this way pays the email on
23
+ # the PayPal account, and its holder name must match the name on the account's payout setup. PayPal login is
24
+ # rolling out per account: until it is enabled for the account this answers `403 forbidden`, and
25
+ # `supports_paypal_login` on `GET /payouts/supported_methods` is false.
26
+ #
27
+ # @param request_options [Hash]
28
+ # @param params [Whop_sdk::Payouts::PaypalLinkSessions::Types::CreatePaypalLinkSessionsRequest]
29
+ # @option request_options [String] :base_url
30
+ # @option request_options [Hash{String => Object}] :additional_headers
31
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
32
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
33
+ # @option request_options [Integer] :timeout_in_seconds
34
+ #
35
+ # @example
36
+ # client.payouts.paypal_link_sessions.create(
37
+ # return_url: "https://example.com/settings/payouts",
38
+ # supported_payout_method_id: "podst_xxxxxxxxxxxxxx"
39
+ # )
40
+ #
41
+ # @return [Whop_sdk::Payouts::PaypalLinkSessions::Types::CreatePaypalLinkSessionsResponse]
42
+ def create(request_options: {}, **params)
43
+ params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
44
+ request = Whop_sdk::Internal::JSON::Request.new(
45
+ base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
46
+ method: "POST",
47
+ path: "payouts/paypal_link_sessions",
48
+ body: Whop_sdk::Payouts::PaypalLinkSessions::Types::CreatePaypalLinkSessionsRequest.new(params).to_h,
49
+ request_options: request_options
50
+ )
51
+ begin
52
+ response = @client.send(request)
53
+ rescue Net::HTTPRequestTimeout
54
+ raise Whop_sdk::Errors::TimeoutError
55
+ end
56
+ code = response.code.to_i
57
+ if code.between?(200, 299)
58
+ (response.body.to_s.empty? ? nil : Whop_sdk::Payouts::PaypalLinkSessions::Types::CreatePaypalLinkSessionsResponse.load(response.body))
59
+ else
60
+ error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
61
+ raise error_class.new(response.body, code: code)
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Payouts
5
+ module PaypalLinkSessions
6
+ module Types
7
+ class CreatePaypalLinkSessionsRequest < Internal::Types::Model
8
+ field :account_id, -> { String }, optional: true, nullable: false
9
+
10
+ field :destination_currency, -> { String }, optional: true, nullable: false
11
+
12
+ field :return_url, -> { String }, optional: false, nullable: false
13
+
14
+ field :supported_payout_method_id, -> { String }, optional: false, nullable: false
15
+
16
+ field :user_id, -> { 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 Payouts
5
+ module PaypalLinkSessions
6
+ module Types
7
+ class CreatePaypalLinkSessionsResponse < Internal::Types::Model
8
+ field :authorize_url, -> { String }, optional: false, nullable: false
9
+
10
+ field :expires_at, -> { String }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -15,7 +15,8 @@ module Whop_sdk
15
15
  @environment = environment
16
16
  end
17
17
 
18
- # Lists the payout methods an account or user is eligible to add.
18
+ # Lists the payout methods an account or user is eligible to add. Pass a result's ID as
19
+ # `supported_payout_method_id` to `POST /payouts/methods` to save one.
19
20
  #
20
21
  # @param request_options [Hash]
21
22
  # @param params [Hash]
@@ -21,6 +21,8 @@ module Whop_sdk
21
21
 
22
22
  field :supports_instant_delivery, -> { Internal::Types::Boolean }, optional: false, nullable: false
23
23
 
24
+ field :supports_paypal_login, -> { Internal::Types::Boolean }, optional: true, nullable: false
25
+
24
26
  field :supports_standard_delivery, -> { Internal::Types::Boolean }, optional: false, nullable: false
25
27
  end
26
28
  end
@@ -14,9 +14,8 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Lists the people (visitors and customers) of an account: the identity-linked person profiles aggregated from
18
- # every pixel, payment, and platform event — identities, purchases and LTV, geo/device profile, traffic sources,
19
- # and first/last marketing touches.
17
+ # Lists the people (visitors and customers) of an account: identity-linked profiles assembled from every pixel,
18
+ # payment, and platform event. Filter and sort them to segment an account's audience.
20
19
  #
21
20
  # @param request_options [Hash]
22
21
  # @param params [Hash]
@@ -156,8 +155,7 @@ module Whop_sdk
156
155
  end
157
156
  end
158
157
 
159
- # Retrieves one person for an account. The identifier can be a person ID (prefixed `prsn_`), a user ID (prefixed
160
- # `user_`), an email address, or a phone number — merged people resolve to the surviving profile.
158
+ # Retrieves one person for an account, looked up by person ID, user ID, email address, or phone number.
161
159
  #
162
160
  # @param request_options [Hash]
163
161
  # @param params [Hash]
@@ -240,7 +240,7 @@ module Whop_sdk
240
240
  end
241
241
  end
242
242
 
243
- # Deprecated compatibility endpoint. Preview variant tax with `POST /variants/{id}/calculate_tax` instead.
243
+ # Deprecated compatibility endpoint. Quote tax with `POST /payment_quotes` instead.
244
244
  #
245
245
  # @param request_options [Hash]
246
246
  # @param params [Whop_sdk::Plans::Types::CalculateTaxPlansRequest]
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of products. Omit `account_id` to search the public marketplace.
17
+ # Lists an account's products, or searches the public marketplace when you omit `account_id`.
18
18
  #
19
19
  # @param request_options [Hash]
20
20
  # @param params [Hash]
@@ -135,7 +135,7 @@ module Whop_sdk
135
135
  end
136
136
  end
137
137
 
138
- # Retrieves a product. Public — no credentials.
138
+ # Retrieves a product. Requires no authentication.
139
139
  #
140
140
  # @param request_options [Hash]
141
141
  # @param params [Hash]
@@ -14,7 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Lists promo codes for an account with cursor pagination, filters, and sorting.
17
+ # Lists an account's promo codes.
18
18
  #
19
19
  # @param request_options [Hash]
20
20
  # @param params [Hash]
@@ -14,8 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Lists refunds, newest first. Without filters this is every refund the caller can read; narrow it to one payment
18
- # with `payment_id`, one account with `account_id`, or one buyer with `user_id`.
17
+ # Lists refunds the caller can read, newest first. Filter by payment, account, or buyer to narrow the results.
19
18
  #
20
19
  # @param request_options [Hash]
21
20
  # @param params [Hash]
@@ -14,8 +14,9 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of customer reviews for a specific product, with optional filtering by star rating and
18
- # creation date.
17
+ # Lists the published reviews for a product or account. Without `account_id` or `product_id`, a user lists the
18
+ # reviews they wrote, an account or app API key lists its account's reviews, and a request without credentials
19
+ # returns 400.
19
20
  #
20
21
  # @param request_options [Hash]
21
22
  # @param params [Hash]
@@ -24,40 +25,41 @@ module Whop_sdk
24
25
  # @option request_options [Hash{String => Object}] :additional_query_parameters
25
26
  # @option request_options [Hash{String => Object}] :additional_body_parameters
26
27
  # @option request_options [Integer] :timeout_in_seconds
27
- # @option params [String, nil] :after
28
- # @option params [String, nil] :before
29
- # @option params [Integer, nil] :first
30
- # @option params [Integer, nil] :last
31
- # @option params [String] :product_id
28
+ # @option params [String, nil] :account_id
29
+ # @option params [String, nil] :product_id
32
30
  # @option params [Integer, nil] :min_stars
33
31
  # @option params [Integer, nil] :max_stars
34
32
  # @option params [String, nil] :created_before
35
33
  # @option params [String, nil] :created_after
34
+ # @option params [Whop_sdk::Reviews::Types::ListReviewsRequestOrder, nil] :order
35
+ # @option params [Whop_sdk::Reviews::Types::ListReviewsRequestDirection, nil] :direction
36
+ # @option params [Integer, nil] :first
37
+ # @option params [String, nil] :after
38
+ # @option params [Integer, nil] :last
39
+ # @option params [String, nil] :before
36
40
  #
37
41
  # @example
38
42
  # client.reviews.list(
39
- # first: 42,
40
- # last: 42,
41
- # product_id: "prod_xxxxxxxxxxxxx",
42
- # min_stars: 42,
43
- # max_stars: 42,
44
- # created_before: "2023-12-01T05:00:00Z",
45
- # created_after: "2023-12-01T05:00:00Z"
43
+ # account_id: "biz_xxxxxxxxxxxxxx",
44
+ # product_id: "prod_xxxxxxxxxxxxx"
46
45
  # )
47
46
  #
48
47
  # @return [Whop_sdk::Reviews::Types::ListReviewsResponse]
49
48
  def list(request_options: {}, **params)
50
49
  params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
51
50
  query_params = {}
52
- query_params["after"] = params[:after] if params.key?(:after)
53
- query_params["before"] = params[:before] if params.key?(:before)
54
- query_params["first"] = params[:first] if params.key?(:first)
55
- query_params["last"] = params[:last] if params.key?(:last)
51
+ query_params["account_id"] = params[:account_id] if params.key?(:account_id)
56
52
  query_params["product_id"] = params[:product_id] if params.key?(:product_id)
57
53
  query_params["min_stars"] = params[:min_stars] if params.key?(:min_stars)
58
54
  query_params["max_stars"] = params[:max_stars] if params.key?(:max_stars)
59
55
  query_params["created_before"] = params[:created_before] if params.key?(:created_before)
60
56
  query_params["created_after"] = params[:created_after] if params.key?(:created_after)
57
+ query_params["order"] = params[:order] if params.key?(:order)
58
+ query_params["direction"] = params[:direction] if params.key?(:direction)
59
+ query_params["first"] = params[:first] if params.key?(:first)
60
+ query_params["after"] = params[:after] if params.key?(:after)
61
+ query_params["last"] = params[:last] if params.key?(:last)
62
+ query_params["before"] = params[:before] if params.key?(:before)
61
63
 
62
64
  Whop_sdk::Internal::CursorItemIterator.new(
63
65
  cursor_field: :end_cursor,
@@ -88,7 +90,7 @@ module Whop_sdk
88
90
  end
89
91
  end
90
92
 
91
- # Retrieves the details of an existing review.
93
+ # Retrieves a published review. Reviews that are not published return 404.
92
94
  #
93
95
  # @param request_options [Hash]
94
96
  # @param params [Hash]
@@ -124,6 +126,44 @@ module Whop_sdk
124
126
  raise error_class.new(response.body, code: code)
125
127
  end
126
128
  end
129
+
130
+ # Deletes a review the signed-in user wrote. Requires the `review:delete` scope, and returns 404 for a review
131
+ # another user wrote.
132
+ #
133
+ # @param request_options [Hash]
134
+ # @param params [Hash]
135
+ # @option request_options [String] :base_url
136
+ # @option request_options [Hash{String => Object}] :additional_headers
137
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
138
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
139
+ # @option request_options [Integer] :timeout_in_seconds
140
+ # @option params [String] :id
141
+ #
142
+ # @example
143
+ # client.reviews.delete(id: "rev_xxxxxxxxxxxxxx")
144
+ #
145
+ # @return [Whop_sdk::Reviews::Types::DeleteReviewsResponse]
146
+ def delete(request_options: {}, **params)
147
+ params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
148
+ request = Whop_sdk::Internal::JSON::Request.new(
149
+ base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
150
+ method: "DELETE",
151
+ path: "reviews/#{URI.encode_uri_component(params[:id].to_s)}",
152
+ request_options: request_options
153
+ )
154
+ begin
155
+ response = @client.send(request)
156
+ rescue Net::HTTPRequestTimeout
157
+ raise Whop_sdk::Errors::TimeoutError
158
+ end
159
+ code = response.code.to_i
160
+ if code.between?(200, 299)
161
+ (response.body.to_s.empty? ? nil : Whop_sdk::Reviews::Types::DeleteReviewsResponse.load(response.body))
162
+ else
163
+ error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
164
+ raise error_class.new(response.body, code: code)
165
+ end
166
+ end
127
167
  end
128
168
  end
129
169
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Reviews
5
+ module Types
6
+ class DeleteReviewsRequest < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Reviews
5
+ module Types
6
+ class DeleteReviewsResponse < Internal::Types::Model
7
+ field :deleted, -> { Internal::Types::Boolean }, optional: false, nullable: false
8
+
9
+ field :id, -> { String }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -4,15 +4,9 @@ module Whop_sdk
4
4
  module Reviews
5
5
  module Types
6
6
  class ListReviewsRequest < Internal::Types::Model
7
- field :after, -> { String }, optional: true, nullable: false
7
+ field :account_id, -> { String }, optional: true, nullable: false
8
8
 
9
- field :before, -> { String }, optional: true, nullable: false
10
-
11
- field :first, -> { Integer }, optional: true, nullable: false
12
-
13
- field :last, -> { Integer }, optional: true, nullable: false
14
-
15
- field :product_id, -> { String }, optional: false, nullable: false
9
+ field :product_id, -> { String }, optional: true, nullable: false
16
10
 
17
11
  field :min_stars, -> { Integer }, optional: true, nullable: false
18
12
 
@@ -21,6 +15,18 @@ module Whop_sdk
21
15
  field :created_before, -> { String }, optional: true, nullable: false
22
16
 
23
17
  field :created_after, -> { String }, optional: true, nullable: false
18
+
19
+ field :order, -> { Whop_sdk::Reviews::Types::ListReviewsRequestOrder }, optional: true, nullable: false
20
+
21
+ field :direction, -> { Whop_sdk::Reviews::Types::ListReviewsRequestDirection }, optional: true, nullable: false
22
+
23
+ field :first, -> { Integer }, optional: true, nullable: false
24
+
25
+ field :after, -> { String }, optional: true, nullable: false
26
+
27
+ field :last, -> { Integer }, optional: true, nullable: false
28
+
29
+ field :before, -> { String }, optional: true, nullable: false
24
30
  end
25
31
  end
26
32
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Reviews
5
+ module Types
6
+ module ListReviewsRequestDirection
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ ASC = "asc"
10
+ DESC = "desc"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Reviews
5
+ module Types
6
+ module ListReviewsRequestOrder
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ CREATED_AT = "created_at"
10
+ STARS = "stars"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -3,11 +3,10 @@
3
3
  module Whop_sdk
4
4
  module Reviews
5
5
  module Types
6
- # The connection type for Review.
7
6
  class ListReviewsResponse < Internal::Types::Model
8
7
  field :data, -> { Internal::Types::Array[Whop_sdk::Types::ReviewListItem] }, optional: false, nullable: false
9
8
 
10
- field :page_info, -> { Whop_sdk::Types::PageInfo }, optional: false, nullable: false
9
+ field :page_info, -> { Whop_sdk::Reviews::Types::ListReviewsResponsePageInfo }, optional: false, nullable: false
11
10
  end
12
11
  end
13
12
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Reviews
5
+ module Types
6
+ class ListReviewsResponsePageInfo < Internal::Types::Model
7
+ field :end_cursor, -> { String }, optional: false, nullable: true
8
+
9
+ field :has_next_page, -> { Internal::Types::Boolean }, optional: false, nullable: false
10
+
11
+ field :has_previous_page, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+
13
+ field :start_cursor, -> { String }, optional: false, nullable: true
14
+ end
15
+ end
16
+ end
17
+ end
@@ -15,8 +15,7 @@ module Whop_sdk
15
15
  end
16
16
 
17
17
  # Lists setup intents newest first. An account API key lists its own account; a user token lists every account it
18
- # can read, or one account with `account_id`. `client_secret` is always null on list rows — retrieve the setup
19
- # intent for it.
18
+ # can read, or one account with `account_id`.
20
19
  #
21
20
  # @param request_options [Hash]
22
21
  # @param params [Hash]
@@ -83,12 +82,11 @@ module Whop_sdk
83
82
  end
84
83
  end
85
84
 
86
- # Saves a buyer's payment method for later without charging it. Pass a `confirmation_token` for a method the buyer
87
- # just supplied through the payment elements in setup mode, or a `payment_method_id` already on file to re-verify
88
- # it. The response is the setup intent as created, not its outcome: it is `processing` while the payment method is
89
- # saved in the background, and `requires_action` when the buyer still has a step. Hand `client_secret` to the
90
- # elements' `handleNextAction`, or poll Retrieve setup status, for the outcome. A buyer's own token holding
91
- # `member:payment_methods:use` may create a setup intent for itself from a confirmation token.
85
+ # Saves a buyer's payment method for later without charging it — one the buyer just supplied through the payment
86
+ # elements in setup mode, or one already on file to re-verify. The setup completes in the background, so the
87
+ # response is the setup intent as created, not its outcome: hand `client_secret` to the elements'
88
+ # `handleNextAction`, or poll Retrieve setup status. A buyer's own token holding `member:payment_methods:use` may
89
+ # create a setup intent for itself from a confirmation token.
92
90
  #
93
91
  # @param request_options [Hash]
94
92
  # @param params [Whop_sdk::SetupIntents::Types::CreateSetupIntentsRequest]
@@ -125,8 +123,8 @@ module Whop_sdk
125
123
  end
126
124
  end
127
125
 
128
- # Returns one setup intent. Related records are ids — once `status` is `succeeded`, `payment_method_id` is the
129
- # saved method to charge or retrieve. The buyer's own token may retrieve a setup intent that belongs to it.
126
+ # Retrieves a setup intent. Once its `status` is `succeeded`, charge the saved method by its `payment_method_id`.
127
+ # The buyer's own token may retrieve a setup intent that belongs to it.
130
128
  #
131
129
  # @param request_options [Hash]
132
130
  # @param params [Hash]
@@ -15,13 +15,12 @@ module Whop_sdk
15
15
  @environment = environment
16
16
  end
17
17
 
18
- # Saves a card for later charges from card details the caller holds itself, for integrators whose own systems
19
- # are PCI compliant. Card details are accepted only on the vault host, where the card is tokenized before it
20
- # reaches Whop; the official SDKs route this operation there, and raw card details sent to the regular host are
21
- # refused. (Whop's own clients, which tokenize with the Basis Theory SDK, send the resulting token intent id to
22
- # the regular host.) The setup runs in the background: poll Retrieve setup status for its outcome and for
23
- # anything the buyer must still do, such as 3D Secure. Once it succeeds, the saved payment method arrives on the
24
- # `setup_intent.succeeded` webhook and in List payment methods for the member.
18
+ # Saves a card for later charges from card details you hold yourself, for integrators whose own systems are PCI
19
+ # compliant. Send this operation to the vault host, which tokenizes the card before it reaches Whop; the
20
+ # official SDKs route it there, and raw card details sent to the regular host are refused. The setup runs in the
21
+ # background: poll Retrieve setup status for its outcome and for anything the buyer must still do, such as 3D
22
+ # Secure. Once it succeeds, the saved payment method arrives on the `setup_intent.succeeded` webhook and in List
23
+ # payment methods for the member.
25
24
  #
26
25
  # @param request_options [Hash]
27
26
  # @param params [Whop_sdk::SetupIntents::Direct::Types::CreateDirectRequest]