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,8 +14,7 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Lists payment method domains. Without `account_id`, returns the caller's own domains and those of every
18
- # connected account.
17
+ # Lists the payment method domains registered for your account and its connected accounts.
19
18
  #
20
19
  # @param request_options [Hash]
21
20
  # @param params [Hash]
@@ -88,8 +87,8 @@ module Whop_sdk
88
87
 
89
88
  # Registers a hostname with the wallet provider and attempts verification inline. Returns `verified` when the
90
89
  # provider fetched the domain-association file (for Apple Pay,
91
- # `/.well-known/apple-developer-merchantid-domain-association`), or `pending` when it could not — host the file,
92
- # then retry with the verify endpoint.
90
+ # `/.well-known/apple-developer-merchantid-domain-association`), or `pending` when it could not: host the file,
91
+ # then retry with `POST /payment_method_domains/:id/verify`.
93
92
  #
94
93
  # @param request_options [Hash]
95
94
  # @param params [Whop_sdk::PaymentMethodDomains::Types::CreatePaymentMethodDomainsRequest]
@@ -100,7 +99,7 @@ module Whop_sdk
100
99
  # @option request_options [Integer] :timeout_in_seconds
101
100
  #
102
101
  # @example
103
- # client.payment_method_domains.create(hostname: "pending.shinetime.example")
102
+ # client.payment_method_domains.create(hostname: "pending.shinetime.com")
104
103
  #
105
104
  # @return [Whop_sdk::Types::PaymentMethodDomain]
106
105
  def create(request_options: {}, **params)
@@ -14,9 +14,8 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Returns a paginated list of payment methods for a member or company, or for the authenticated user when neither
18
- # is given, with optional filtering by creation date. A payment method is a stored representation of how a
19
- # customer intends to pay, such as a card, bank account, or digital wallet.
17
+ # Returns a paginated list of saved payment methods for a member or account, or for the authenticated user when
18
+ # you pass neither.
20
19
  #
21
20
  # Required permissions:
22
21
  # - `member:payment_methods:read`
@@ -105,8 +104,8 @@ module Whop_sdk
105
104
  end
106
105
  end
107
106
 
108
- # Retrieves the details of an existing payment method. Addresses a member's wallet when member_id or account_id is
109
- # given, otherwise your own.
107
+ # Retrieves a saved payment method from a member's wallet when you pass `member_id` or `account_id`, or from your
108
+ # own otherwise.
110
109
  #
111
110
  # Required permissions:
112
111
  # - `member:payment_methods:read`
@@ -14,14 +14,12 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Prices a purchase the way a payment for it will be charged, for a buyer located by the shipping address, then
18
- # the billing address, then the IP address you pass. The body is the `PaymentInput` a payment takes plus where the
19
- # buyer is (`address`, `shipping_address`, `tax_ids`, `ip_address`); a seller that collects no tax on the purchase
20
- # can be quoted without them. The purchase is priced from exactly what you send: no buyer is looked up, so no
21
- # stored registration or purchase history applies. Quote what you are about to charge and pass the quote's `id` as
22
- # `quote_id` when you create the payment: it then charges exactly the purchase, promo code and tax shown here. A
23
- # quote is priced once, in the plans' own currency or the `presentment_currency` you ask for, and may be consumed
24
- # by one payment before `expires_at`.
17
+ # Prices a purchase the way a payment for it will be charged. The body is the `PaymentInput` a payment takes plus
18
+ # where the buyer is, which a seller that collects no tax on the purchase can leave out. The purchase is priced
19
+ # from exactly what you send: no buyer is looked up, so no stored registration or purchase history applies. Pass
20
+ # the quote's `id` as `quote_id` when you create the payment to charge exactly the purchase, promo code, and tax
21
+ # shown here. A quote is priced once and may be consumed by one payment before `expires_at`. Cart entries must
22
+ # name existing variants with `plan_id`.
25
23
  #
26
24
  # @param request_options [Hash]
27
25
  # @param params [Whop_sdk::PaymentQuotes::Types::CreatePaymentQuotesRequest]
@@ -58,8 +56,8 @@ module Whop_sdk
58
56
  end
59
57
  end
60
58
 
61
- # Retrieves a payment quote, including the payment holding it (`payment_id`, whose `status` says whether it
62
- # collected) and when it expires.
59
+ # Retrieves a payment quote. Use it to check which payment holds the quote, through `payment_id`, and when it
60
+ # expires.
63
61
  #
64
62
  # @param request_options [Hash]
65
63
  # @param params [Hash]
@@ -8,6 +8,8 @@ module Whop_sdk
8
8
 
9
9
  field :ip_address, -> { String }, optional: true, nullable: false
10
10
 
11
+ field :line_items, -> { Internal::Types::Array[Whop_sdk::PaymentQuotes::Types::CreatePaymentQuotesRequestLineItemsItem] }, optional: true, nullable: false
12
+
11
13
  field :presentment_country, -> { String }, optional: true, nullable: false
12
14
 
13
15
  field :presentment_currency, -> { String }, optional: true, nullable: false
@@ -18,8 +20,6 @@ module Whop_sdk
18
20
 
19
21
  field :account_id, -> { String }, optional: false, nullable: false
20
22
 
21
- field :line_items, -> { Internal::Types::Array[Whop_sdk::Types::PaymentInputLineItemsItem] }, optional: true, nullable: false
22
-
23
23
  field :plan, -> { Whop_sdk::Types::PaymentInputPlan }, optional: true, nullable: false
24
24
 
25
25
  field :plan_id, -> { String }, optional: true, nullable: false
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module PaymentQuotes
5
+ module Types
6
+ class CreatePaymentQuotesRequestLineItemsItem < Internal::Types::Model
7
+ field :plan_id, -> { String }, optional: false, nullable: false
8
+
9
+ field :quantity, -> { Integer }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -14,6 +14,8 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
+ # Lists the payment rules on an account.
18
+ #
17
19
  # @param request_options [Hash]
18
20
  # @param params [Hash]
19
21
  # @option request_options [String] :base_url
@@ -77,6 +79,9 @@ module Whop_sdk
77
79
  end
78
80
  end
79
81
 
82
+ # Creates a payment rule. It is created `active` and applies its `action` to new payments that match all of its
83
+ # `conditions`.
84
+ #
80
85
  # @param request_options [Hash]
81
86
  # @param params [Whop_sdk::PaymentRules::Types::CreatePaymentRulesRequest]
82
87
  # @option request_options [String] :base_url
@@ -122,7 +127,8 @@ module Whop_sdk
122
127
  end
123
128
  end
124
129
 
125
- # Small and returned in full on one page.
130
+ # Lists the payment attributes a rule condition can read, with the operators and values each one accepts. Small
131
+ # and returned in full on one page.
126
132
  #
127
133
  # @param request_options [Hash]
128
134
  # @param _params [Hash]
@@ -157,6 +163,8 @@ module Whop_sdk
157
163
  end
158
164
  end
159
165
 
166
+ # Retrieves a payment rule.
167
+ #
160
168
  # @param request_options [Hash]
161
169
  # @param params [Hash]
162
170
  # @option request_options [String] :base_url
@@ -192,7 +200,8 @@ module Whop_sdk
192
200
  end
193
201
  end
194
202
 
195
- # The rule stops applying to new payments and is kept, so the payments it already decided still name it.
203
+ # Deletes a payment rule. It stops applying to new payments but is kept, so the payments it already decided still
204
+ # name it.
196
205
  #
197
206
  # @param request_options [Hash]
198
207
  # @param params [Hash]
@@ -227,9 +236,9 @@ module Whop_sdk
227
236
  raise error_class.new(response.body, code: code)
228
237
  end
229
238
 
230
- # Changes the rule's name or metadata, keeping its ID and everything recorded against it. What the rule *does* is
231
- # fixed once created, so the payments it decided keep naming the rule that decided them; use replace to change
232
- # that.
239
+ # Updates a payment rule's name or metadata, keeping its ID and everything recorded against it. A rule's `action`
240
+ # and `conditions` are fixed once created, so the payments it decided keep naming the rule that decided them; use
241
+ # `POST /payment_rules/:id/replace` to change them.
233
242
  #
234
243
  # @param request_options [Hash]
235
244
  # @param params [Whop_sdk::PaymentRules::Types::UpdatePaymentRulesRequest]
@@ -271,6 +280,8 @@ module Whop_sdk
271
280
  end
272
281
  end
273
282
 
283
+ # Activates an inactive payment rule so it applies to new payments again. A deleted rule cannot be activated.
284
+ #
274
285
  # @param request_options [Hash]
275
286
  # @param params [Hash]
276
287
  # @option request_options [String] :base_url
@@ -306,7 +317,7 @@ module Whop_sdk
306
317
  end
307
318
  end
308
319
 
309
- # The rule stops applying to new payments. It keeps its ID and can be activated again.
320
+ # Deactivates a payment rule so it stops applying to new payments. It keeps its ID and can be activated again.
310
321
  #
311
322
  # @param request_options [Hash]
312
323
  # @param params [Hash]
@@ -343,8 +354,8 @@ module Whop_sdk
343
354
  end
344
355
  end
345
356
 
346
- # Deletes this rule and creates its successor in one step. The successor carries a new ID and the metadata of the
347
- # rule it replaced,.
357
+ # Changes a payment rule's `action` and `conditions` by deleting it and creating its successor in one step. The
358
+ # successor has a new ID and keeps the replaced rule's name, metadata, and `active` or `inactive` status.
348
359
  #
349
360
  # @param request_options [Hash]
350
361
  # @param params [Whop_sdk::PaymentRules::Types::ReplacePaymentRulesRequest]
@@ -14,13 +14,9 @@ module Whop_sdk
14
14
  @environment = environment
15
15
  end
16
16
 
17
- # Lists payments, newest first. By default, returns account sales: a company credential's own account, or for a
18
- # user every account they can read payments for. Set `mode=user_sales` to list only the sales received by the
19
- # signed-in user's primary ledger account, without a company. This mode requires the user's own Whop login session
20
- # and cannot be combined with `account_id`. Filters narrow by account, buyer, product, plan, membership, status,
21
- # billing reason, currency, and creation window. Filtering by `billing_reason=subscription_cycle` also matches
22
- # renewals recorded as `subscription_update`. `settlement_time_at` is null on list rows — retrieve the payment for
23
- # it.
17
+ # Lists payments, newest first. By default, returns sales for the accounts your credential can read: an account
18
+ # credential's own account, or every account a user can read payments for. Set `mode` to `user_sales` to list the
19
+ # sales the signed-in user received personally, outside any account.
24
20
  #
25
21
  # @param request_options [Hash]
26
22
  # @param params [Hash]
@@ -105,12 +101,10 @@ module Whop_sdk
105
101
  end
106
102
  end
107
103
 
108
- # Charges a buyer for one or more variants. Pass a payment method already on file (`member_id` and
109
- # `payment_method_id`), or a `confirmation_token` describing a method the buyer just supplied. Collection runs in
110
- # the background: the response is the payment as created, not its outcome — poll Retrieve status for how far it
111
- # has got and, for a confirmation-token payment, what the buyer must still do. Pass `line_items` for one or more
112
- # variants with quantities, `plan_id` for an existing variant, or the compatibility input `plan` to find or create
113
- # one inline. These inputs are mutually exclusive.
104
+ # Charges a buyer for one or more variants with a payment method already on file (`member_id` and
105
+ # `payment_method_id`), or with a `confirmation_token` for a method the buyer just supplied. Collection runs in
106
+ # the background, so the response is the payment as created, not its outcome: poll Retrieve payment status for how
107
+ # far it has got and what the buyer must still do.
114
108
  #
115
109
  # @param request_options [Hash]
116
110
  # @param params [Whop_sdk::Payments::Types::CreatePaymentsRequest]
@@ -186,8 +180,7 @@ module Whop_sdk
186
180
  end
187
181
  end
188
182
 
189
- # Updates a payment's `shipping_address` or `return_url`. Send the complete `shipping_address`, because it
190
- # replaces the existing address and any field you leave out is cleared.
183
+ # Updates a payment's `shipping_address` or `return_url`.
191
184
  #
192
185
  # @param request_options [Hash]
193
186
  # @param params [Whop_sdk::Payments::Types::UpdatePaymentsRequest]
@@ -345,8 +338,9 @@ module Whop_sdk
345
338
  end
346
339
  end
347
340
 
348
- # Issues a full or partial refund for a payment. The refund is processed through the original payment processor
349
- # and the membership status is updated accordingly.
341
+ # Refunds all or part of a payment through the processor that charged it, and updates its membership to match. The
342
+ # buyer is emailed, the affiliate commission on the payment is clawed back, and any open Resolution Center case on
343
+ # the payment is closed.
350
344
  #
351
345
  # @param request_options [Hash]
352
346
  # @param params [Whop_sdk::Payments::Types::RefundPaymentsRequest]
@@ -388,8 +382,9 @@ module Whop_sdk
388
382
  end
389
383
  end
390
384
 
391
- # Retries a failed or pending payment. This re-attempts the charge using the original payment method and variant
392
- # details.
385
+ # Charges an unpaid payment again with its original payment method and variant. A payment can typically be retried
386
+ # once, and only while its membership is active, trialing or past due, or when it is a membership's failed first
387
+ # payment.
393
388
  #
394
389
  # @param request_options [Hash]
395
390
  # @param params [Hash]
@@ -465,13 +460,15 @@ module Whop_sdk
465
460
  end
466
461
  end
467
462
 
468
- # Starts a fresh on-session attempt with the saved card for a subscription renewal that is waiting on the customer
469
- # to authenticate; the bank's step then arrives in `next_action` on the following status reads. Only the payment's
470
- # own customer may call it — with the payment's `client_secret` or their own session — and it is a no-op for any
471
- # payment that is not a parked renewal.
463
+ # Charges the saved card again, with the buyer present, for a payment their bank declined until they authenticate
464
+ # (such as with 3DS). Retrieve the payment afterward to get the bank's challenge from `next_action`; once the
465
+ # buyer completes it, they land on `return_url`, or on Whop's hosted verification page if none was given. Only the
466
+ # buyer can call this, with the payment's `client_secret`, an OAuth token for their own account with the
467
+ # `member:payment_methods:use` scope, or the token from a verified `payment` session intent. An API key gets a
468
+ # `403`. Has no effect on a payment that is not waiting on authentication.
472
469
  #
473
470
  # @param request_options [Hash]
474
- # @param params [Hash]
471
+ # @param params [Whop_sdk::Payments::Types::ResumePaymentsRequest]
475
472
  # @option request_options [String] :base_url
476
473
  # @option request_options [Hash{String => Object}] :additional_headers
477
474
  # @option request_options [Hash{String => Object}] :additional_query_parameters
@@ -485,10 +482,15 @@ module Whop_sdk
485
482
  # @return [Whop_sdk::Types::PaymentStatus]
486
483
  def resume(request_options: {}, **params)
487
484
  params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
485
+ request_data = Whop_sdk::Payments::Types::ResumePaymentsRequest.new(params).to_h
486
+ non_body_param_names = %w[payment_id]
487
+ body = request_data.except(*non_body_param_names)
488
+
488
489
  request = Whop_sdk::Internal::JSON::Request.new(
489
490
  base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
490
491
  method: "POST",
491
492
  path: "payments/#{URI.encode_uri_component(params[:payment_id].to_s)}/resume",
493
+ body: body,
492
494
  request_options: request_options
493
495
  )
494
496
  begin
@@ -15,12 +15,11 @@ module Whop_sdk
15
15
  @environment = environment
16
16
  end
17
17
 
18
- # Charges a buyer for a variant from card details the caller holds itself, for integrators whose own systems are
19
- # PCI compliant. Card details are accepted only on the vault host, where the card is tokenized before it reaches
20
- # Whop; the official SDKs route this operation there, and raw card details sent to the regular host are refused.
21
- # (Whop's own clients, which tokenize with the Basis Theory SDK, send the resulting token intent id to the
22
- # regular host.) Collection runs in the background: the response is the payment as created, not its outcome —
23
- # poll Retrieve status for how far it has got and what the buyer must still do, such as 3D Secure.
18
+ # Charges a buyer for a variant from card details you hold yourself, for integrators whose own systems are PCI
19
+ # compliant. Card details are accepted only on the vault host, which tokenizes the card before it reaches Whop;
20
+ # the official SDKs route this operation there, and raw card details sent to the regular host are refused.
21
+ # Collection runs in the background, so the response is the payment as created, not its outcome: poll Retrieve
22
+ # payment status for how far it has got and what the buyer must still do, such as 3D Secure.
24
23
  #
25
24
  # @param request_options [Hash]
26
25
  # @param params [Whop_sdk::Payments::Direct::Types::CreateDirectRequest]
@@ -13,6 +13,8 @@ module Whop_sdk
13
13
 
14
14
  field :capture, -> { Internal::Types::Boolean }, optional: true, nullable: false
15
15
 
16
+ field :line_items, -> { Internal::Types::Array[Whop_sdk::Payments::Direct::Types::CreateDirectRequestLineItemsItem] }, optional: true, nullable: false
17
+
16
18
  field :member_id, -> { String }, optional: true, nullable: false
17
19
 
18
20
  field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
@@ -31,8 +33,6 @@ module Whop_sdk
31
33
 
32
34
  field :account_id, -> { String }, optional: false, nullable: false
33
35
 
34
- field :line_items, -> { Internal::Types::Array[Whop_sdk::Types::PaymentInputLineItemsItem] }, optional: true, nullable: false
35
-
36
36
  field :plan, -> { Whop_sdk::Types::PaymentInputPlan }, optional: true, nullable: false
37
37
 
38
38
  field :plan_id, -> { String }, optional: true, nullable: false
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Payments
5
+ module Direct
6
+ module Types
7
+ class CreateDirectRequestLineItemsItem < Internal::Types::Model
8
+ field :plan_id, -> { String }, optional: false, nullable: false
9
+
10
+ field :quantity, -> { Integer }, optional: true, nullable: false
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -16,6 +16,8 @@ module Whop_sdk
16
16
 
17
17
  field :ip_address, -> { String }, optional: true, nullable: false
18
18
 
19
+ field :line_items, -> { Internal::Types::Array[Whop_sdk::Payments::Types::CreatePaymentsRequestLineItemsItem] }, optional: true, nullable: false
20
+
19
21
  field :member_id, -> { String }, optional: true, nullable: false
20
22
 
21
23
  field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
@@ -36,8 +38,6 @@ module Whop_sdk
36
38
 
37
39
  field :account_id, -> { String }, optional: false, nullable: false
38
40
 
39
- field :line_items, -> { Internal::Types::Array[Whop_sdk::Types::PaymentInputLineItemsItem] }, optional: true, nullable: false
40
-
41
41
  field :plan, -> { Whop_sdk::Types::PaymentInputPlan }, optional: true, nullable: false
42
42
 
43
43
  field :plan_id, -> { String }, optional: true, nullable: false
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Payments
5
+ module Types
6
+ class CreatePaymentsRequestLineItemsItem < Internal::Types::Model
7
+ extend Whop_sdk::Internal::Types::Union
8
+
9
+ member -> { Object }
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Payments
5
+ module Types
6
+ # Find or create the variant for this entry through the compatibility input `plan`. Unknown properties return an
7
+ # error. Creating a variant requires `plan:create`, and creating or updating a product requires the matching
8
+ # product permission.
9
+ class CreatePaymentsRequestLineItemsItemPlan < Internal::Types::Model
10
+ field :allow_multiple_quantity, -> { Internal::Types::Boolean }, optional: true, nullable: false
11
+
12
+ field :application_fee_amount, -> { Integer }, optional: true, nullable: false
13
+
14
+ field :billing_period, -> { Integer }, optional: true, nullable: false
15
+
16
+ field :currency, -> { Whop_sdk::Payments::Types::CreatePaymentsRequestLineItemsItemPlanCurrency }, optional: false, nullable: false
17
+
18
+ field :description, -> { String }, optional: true, nullable: false
19
+
20
+ field :expiration_days, -> { Integer }, optional: true, nullable: false
21
+
22
+ field :force_create_new_plan, -> { Internal::Types::Boolean }, optional: true, nullable: false
23
+
24
+ field :initial_price, -> { Integer }, optional: true, nullable: false
25
+
26
+ field :internal_notes, -> { String }, optional: true, nullable: false
27
+
28
+ field :override_tax_type, -> { Whop_sdk::Payments::Types::CreatePaymentsRequestLineItemsItemPlanOverrideTaxType }, optional: true, nullable: false
29
+
30
+ field :plan_type, -> { Whop_sdk::Payments::Types::CreatePaymentsRequestLineItemsItemPlanPlanType }, optional: true, nullable: false
31
+
32
+ field :product, -> { Whop_sdk::Payments::Types::CreatePaymentsRequestLineItemsItemPlanProduct }, optional: true, nullable: false
33
+
34
+ field :product_id, -> { String }, optional: true, nullable: false
35
+
36
+ field :renewal_price, -> { Integer }, optional: true, nullable: false
37
+
38
+ field :title, -> { String }, optional: true, nullable: false
39
+
40
+ field :trial_period_days, -> { Integer }, optional: true, nullable: false
41
+
42
+ field :visibility, -> { Whop_sdk::Payments::Types::CreatePaymentsRequestLineItemsItemPlanVisibility }, optional: true, nullable: false
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,102 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Payments
5
+ module Types
6
+ module CreatePaymentsRequestLineItemsItemPlanCurrency
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ USD = "usd"
10
+ SGD = "sgd"
11
+ INR = "inr"
12
+ AUD = "aud"
13
+ BRL = "brl"
14
+ CAD = "cad"
15
+ DKK = "dkk"
16
+ EUR = "eur"
17
+ NOK = "nok"
18
+ GBP = "gbp"
19
+ SEK = "sek"
20
+ CHF = "chf"
21
+ HKD = "hkd"
22
+ HUF = "huf"
23
+ JPY = "jpy"
24
+ MXN = "mxn"
25
+ MYR = "myr"
26
+ PLN = "pln"
27
+ CZK = "czk"
28
+ NZD = "nzd"
29
+ AED = "aed"
30
+ ETH = "eth"
31
+ APE = "ape"
32
+ COP = "cop"
33
+ RON = "ron"
34
+ THB = "thb"
35
+ BGN = "bgn"
36
+ IDR = "idr"
37
+ DOP = "dop"
38
+ PHP = "php"
39
+ TRY = "try"
40
+ KRW = "krw"
41
+ TWD = "twd"
42
+ VND = "vnd"
43
+ PKR = "pkr"
44
+ CLP = "clp"
45
+ UYU = "uyu"
46
+ ARS = "ars"
47
+ ZAR = "zar"
48
+ DZD = "dzd"
49
+ TND = "tnd"
50
+ MAD = "mad"
51
+ KES = "kes"
52
+ KWD = "kwd"
53
+ JOD = "jod"
54
+ ALL = "all"
55
+ XCD = "xcd"
56
+ AMD = "amd"
57
+ BSD = "bsd"
58
+ BHD = "bhd"
59
+ BOB = "bob"
60
+ BAM = "bam"
61
+ KHR = "khr"
62
+ CRC = "crc"
63
+ XOF = "xof"
64
+ EGP = "egp"
65
+ ETB = "etb"
66
+ GMD = "gmd"
67
+ GHS = "ghs"
68
+ GTQ = "gtq"
69
+ GYD = "gyd"
70
+ ILS = "ils"
71
+ JMD = "jmd"
72
+ MOP = "mop"
73
+ MGA = "mga"
74
+ MUR = "mur"
75
+ MDL = "mdl"
76
+ MNT = "mnt"
77
+ NAD = "nad"
78
+ NGN = "ngn"
79
+ MKD = "mkd"
80
+ OMR = "omr"
81
+ PYG = "pyg"
82
+ PEN = "pen"
83
+ QAR = "qar"
84
+ RWF = "rwf"
85
+ SAR = "sar"
86
+ RSD = "rsd"
87
+ LKR = "lkr"
88
+ TZS = "tzs"
89
+ TTD = "ttd"
90
+ UZS = "uzs"
91
+ RUB = "rub"
92
+ BTC = "btc"
93
+ CNY = "cny"
94
+ USDT = "usdt"
95
+ KZT = "kzt"
96
+ AWG = "awg"
97
+ WHOP_USD = "whop_usd"
98
+ XAU = "xau"
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Payments
5
+ module Types
6
+ module CreatePaymentsRequestLineItemsItemPlanOverrideTaxType
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ EXCLUSIVE = "exclusive"
10
+ INCLUSIVE = "inclusive"
11
+ UNSPECIFIED = "unspecified"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Payments
5
+ module Types
6
+ module CreatePaymentsRequestLineItemsItemPlanPlanType
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ RENEWAL = "renewal"
10
+ ONE_TIME = "one_time"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Payments
5
+ module Types
6
+ # Find or create a product by external identifier. Mutually exclusive with product_id.
7
+ class CreatePaymentsRequestLineItemsItemPlanProduct < Internal::Types::Model
8
+ field :collect_shipping_address, -> { Internal::Types::Boolean }, optional: true, nullable: false
9
+
10
+ field :custom_statement_descriptor, -> { String }, optional: true, nullable: false
11
+
12
+ field :description, -> { String }, optional: true, nullable: false
13
+
14
+ field :external_identifier, -> { String }, optional: false, nullable: false
15
+
16
+ field :global_affiliate_percentage, -> { Integer }, optional: true, nullable: false
17
+
18
+ field :global_affiliate_status, -> { Whop_sdk::Payments::Types::CreatePaymentsRequestLineItemsItemPlanProductGlobalAffiliateStatus }, optional: true, nullable: false
19
+
20
+ field :headline, -> { String }, optional: true, nullable: false
21
+
22
+ field :product_tax_code_id, -> { String }, optional: true, nullable: false
23
+
24
+ field :redirect_purchase_url, -> { String }, optional: true, nullable: false
25
+
26
+ field :route, -> { String }, optional: true, nullable: false
27
+
28
+ field :title, -> { String }, optional: false, nullable: false
29
+
30
+ field :visibility, -> { Whop_sdk::Payments::Types::CreatePaymentsRequestLineItemsItemPlanProductVisibility }, optional: true, nullable: false
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Payments
5
+ module Types
6
+ module CreatePaymentsRequestLineItemsItemPlanProductGlobalAffiliateStatus
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ ENABLED = "enabled"
10
+ DISABLED = "disabled"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module Payments
5
+ module Types
6
+ module CreatePaymentsRequestLineItemsItemPlanProductVisibility
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