whop_sdk 0.0.39 → 0.0.41

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 (897) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/README.md +3 -3
  4. data/lib/whop_sdk/client.rb +227 -72
  5. data/lib/whop_sdk/internal/transport/base_client.rb +5 -0
  6. data/lib/whop_sdk/internal/type/union.rb +6 -6
  7. data/lib/whop_sdk/models/account.rb +967 -0
  8. data/lib/whop_sdk/models/account_create_params.rb +43 -0
  9. data/lib/whop_sdk/models/account_list_params.rb +83 -0
  10. data/lib/whop_sdk/models/account_me_params.rb +14 -0
  11. data/lib/whop_sdk/models/account_recommend_actions_params.rb +20 -0
  12. data/lib/whop_sdk/models/account_recommend_actions_response.rb +143 -0
  13. data/lib/whop_sdk/models/account_retrieve_params.rb +20 -0
  14. data/lib/whop_sdk/models/account_social_link.rb +60 -0
  15. data/lib/whop_sdk/models/account_update_params.rb +512 -0
  16. data/lib/whop_sdk/models/accounts/preference_retrieve_params.rb +22 -0
  17. data/lib/whop_sdk/models/accounts/preference_retrieve_response.rb +129 -0
  18. data/lib/whop_sdk/models/accounts/preference_update_params.rb +142 -0
  19. data/lib/whop_sdk/models/accounts/preference_update_response.rb +129 -0
  20. data/lib/whop_sdk/models/ad.rb +808 -0
  21. data/lib/whop_sdk/models/ad_campaign.rb +635 -0
  22. data/lib/whop_sdk/models/ad_campaign_create_params.rb +194 -0
  23. data/lib/whop_sdk/models/{payout_method_retrieve_params.rb → ad_campaign_delete_params.rb} +2 -2
  24. data/lib/whop_sdk/models/ad_campaign_delete_response.rb +8 -0
  25. data/lib/whop_sdk/models/ad_campaign_list_params.rb +120 -36
  26. data/lib/whop_sdk/models/ad_campaign_retrieve_params.rb +26 -1
  27. data/lib/whop_sdk/models/ad_campaign_update_params.rb +99 -6
  28. data/lib/whop_sdk/models/ad_create_params.rb +660 -0
  29. data/lib/whop_sdk/models/ad_delete_params.rb +20 -0
  30. data/lib/whop_sdk/models/ad_delete_response.rb +8 -0
  31. data/lib/whop_sdk/models/ad_group.rb +774 -0
  32. data/lib/whop_sdk/models/ad_group_create_params.rb +346 -0
  33. data/lib/whop_sdk/models/ad_group_list_params.rb +114 -44
  34. data/lib/whop_sdk/models/ad_group_pause_params.rb +20 -0
  35. data/lib/whop_sdk/models/ad_group_retrieve_params.rb +26 -1
  36. data/lib/whop_sdk/models/ad_group_unpause_params.rb +20 -0
  37. data/lib/whop_sdk/models/ad_group_update_params.rb +238 -3109
  38. data/lib/whop_sdk/models/ad_list_params.rb +127 -42
  39. data/lib/whop_sdk/models/ad_pause_params.rb +20 -0
  40. data/lib/whop_sdk/models/ad_report_retrieve_params.rb +53 -23
  41. data/lib/whop_sdk/models/ad_report_retrieve_response.rb +403 -130
  42. data/lib/whop_sdk/models/ad_retrieve_params.rb +26 -1
  43. data/lib/whop_sdk/models/ad_unpause_params.rb +20 -0
  44. data/lib/whop_sdk/models/ad_update_params.rb +650 -0
  45. data/lib/whop_sdk/models/app.rb +81 -1
  46. data/lib/whop_sdk/models/app_build_create_params.rb +2 -2
  47. data/lib/whop_sdk/models/app_create_params.rb +10 -1
  48. data/lib/whop_sdk/models/app_list_response.rb +19 -1
  49. data/lib/whop_sdk/models/app_logs_params.rb +103 -0
  50. data/lib/whop_sdk/models/app_logs_response.rb +157 -0
  51. data/lib/whop_sdk/models/app_update_params.rb +21 -1
  52. data/lib/whop_sdk/models/audience.rb +191 -0
  53. data/lib/whop_sdk/models/audience_create_params.rb +96 -0
  54. data/lib/whop_sdk/models/audience_delete_params.rb +20 -0
  55. data/lib/whop_sdk/models/audience_delete_response.rb +16 -0
  56. data/lib/whop_sdk/models/audience_list_params.rb +46 -0
  57. data/lib/whop_sdk/models/authorized_user_create_params.rb +70 -1
  58. data/lib/whop_sdk/models/bounty_create_params.rb +70 -3
  59. data/lib/whop_sdk/models/bounty_create_response.rb +1 -0
  60. data/lib/whop_sdk/models/bounty_list_params.rb +1 -0
  61. data/lib/whop_sdk/models/bounty_list_response.rb +1 -0
  62. data/lib/whop_sdk/models/bounty_retrieve_response.rb +1 -0
  63. data/lib/whop_sdk/models/card_brands.rb +1 -0
  64. data/lib/whop_sdk/models/card_create_params.rb +88 -0
  65. data/lib/whop_sdk/models/card_create_response.rb +277 -0
  66. data/lib/whop_sdk/models/card_list_params.rb +30 -0
  67. data/lib/whop_sdk/models/card_list_response.rb +287 -0
  68. data/lib/whop_sdk/models/card_retrieve_params.rb +37 -0
  69. data/lib/whop_sdk/models/card_retrieve_response.rb +277 -0
  70. data/lib/whop_sdk/models/card_update_params.rb +181 -0
  71. data/lib/whop_sdk/models/card_update_response.rb +277 -0
  72. data/lib/whop_sdk/models/chat_message_created_webhook_event.rb +151 -0
  73. data/lib/whop_sdk/models/chat_reaction_created_webhook_event.rb +159 -0
  74. data/lib/whop_sdk/models/checkout_configuration.rb +35 -24
  75. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +303 -1021
  76. data/lib/whop_sdk/models/checkout_configuration_create_response.rb +275 -0
  77. data/lib/whop_sdk/models/checkout_configuration_delete_params.rb +20 -0
  78. data/lib/whop_sdk/models/checkout_configuration_list_params.rb +50 -41
  79. data/lib/whop_sdk/models/checkout_configuration_list_response.rb +136 -122
  80. data/lib/whop_sdk/models/checkout_configuration_retrieve_response.rb +275 -0
  81. data/lib/whop_sdk/models/company.rb +2 -2
  82. data/lib/whop_sdk/models/company_list_response.rb +2 -2
  83. data/lib/whop_sdk/models/course.rb +2 -2
  84. data/lib/whop_sdk/models/course_list_response.rb +2 -2
  85. data/lib/whop_sdk/models/currency.rb +3 -0
  86. data/lib/whop_sdk/models/deposit_create_params.rb +90 -0
  87. data/lib/whop_sdk/models/deposit_create_response.rb +228 -0
  88. data/lib/whop_sdk/models/deposit_list_params.rb +22 -0
  89. data/lib/whop_sdk/models/deposit_list_response.rb +101 -0
  90. data/lib/whop_sdk/models/dispute.rb +14 -15
  91. data/lib/whop_sdk/models/dispute_alert_created_webhook_event.rb +4 -4
  92. data/lib/whop_sdk/models/dispute_alert_retrieve_response.rb +4 -4
  93. data/lib/whop_sdk/models/dispute_list_response.rb +2 -3
  94. data/lib/whop_sdk/models/{conversion_create_params.rb → event_create_params.rb} +294 -32
  95. data/lib/whop_sdk/models/event_create_response.rb +16 -0
  96. data/lib/whop_sdk/models/event_list_params.rb +75 -0
  97. data/lib/whop_sdk/models/event_list_response.rb +242 -0
  98. data/lib/whop_sdk/models/experience.rb +5 -8
  99. data/lib/whop_sdk/models/experience_list_response.rb +2 -5
  100. data/lib/whop_sdk/models/file_create_params.rb +3 -15
  101. data/lib/whop_sdk/models/file_create_response.rb +3 -16
  102. data/lib/whop_sdk/models/file_retrieve_response.rb +3 -16
  103. data/lib/whop_sdk/models/file_visibility.rb +17 -0
  104. data/lib/whop_sdk/models/financial_activity_list_params.rb +113 -0
  105. data/lib/whop_sdk/models/financial_activity_list_response.rb +1174 -0
  106. data/lib/whop_sdk/models/forum_post.rb +2 -2
  107. data/lib/whop_sdk/models/forum_post_list_response.rb +2 -2
  108. data/lib/whop_sdk/models/granularities.rb +18 -0
  109. data/lib/whop_sdk/models/identity_profile_approved_webhook_event.rb +431 -0
  110. data/lib/whop_sdk/models/identity_profile_needs_action_webhook_event.rb +432 -0
  111. data/lib/whop_sdk/models/identity_profile_rejected_webhook_event.rb +431 -0
  112. data/lib/whop_sdk/models/identity_profile_updated_webhook_event.rb +431 -0
  113. data/lib/whop_sdk/models/invoice_create_params.rb +34 -2
  114. data/lib/whop_sdk/models/invoice_update_params.rb +17 -1
  115. data/lib/whop_sdk/models/ledger_account_funds_available_webhook_event.rb +578 -0
  116. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +67 -7
  117. data/lib/whop_sdk/models/lesson.rb +6 -6
  118. data/lib/whop_sdk/models/media_asset.rb +224 -0
  119. data/lib/whop_sdk/models/media_generate_params.rb +105 -0
  120. data/lib/whop_sdk/models/media_retrieve_params.rb +20 -0
  121. data/lib/whop_sdk/models/member_list_response.rb +3 -2
  122. data/lib/whop_sdk/models/member_retrieve_response.rb +3 -2
  123. data/lib/whop_sdk/models/membership.rb +26 -3
  124. data/lib/whop_sdk/models/membership_list_response.rb +26 -3
  125. data/lib/whop_sdk/models/membership_trial_ending_soon_webhook_event.rb +60 -0
  126. data/lib/whop_sdk/models/payment.rb +213 -26
  127. data/lib/whop_sdk/models/payment_create_params.rb +22 -2
  128. data/lib/whop_sdk/models/payment_list_params.rb +9 -1
  129. data/lib/whop_sdk/models/payment_list_response.rb +118 -17
  130. data/lib/whop_sdk/models/payout_create_params.rb +58 -0
  131. data/lib/whop_sdk/models/payout_create_response.rb +185 -0
  132. data/lib/whop_sdk/models/payout_list_params.rb +70 -0
  133. data/lib/whop_sdk/models/payout_list_response.rb +195 -0
  134. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +20 -3
  135. data/lib/whop_sdk/models/payouts/method_list_params.rb +120 -0
  136. data/lib/whop_sdk/models/payouts/method_list_response.rb +315 -0
  137. data/lib/whop_sdk/models/person_list_params.rb +103 -0
  138. data/lib/whop_sdk/models/person_list_response.rb +167 -0
  139. data/lib/whop_sdk/models/person_retrieve_params.rb +50 -0
  140. data/lib/whop_sdk/models/person_retrieve_response.rb +179 -0
  141. data/lib/whop_sdk/models/plan.rb +311 -246
  142. data/lib/whop_sdk/models/plan_calculate_tax_params.rb +248 -0
  143. data/lib/whop_sdk/models/plan_calculate_tax_response.rb +94 -0
  144. data/lib/whop_sdk/models/plan_create_params.rb +137 -153
  145. data/lib/whop_sdk/models/plan_list_params.rb +54 -47
  146. data/lib/whop_sdk/models/plan_list_response.rb +105 -221
  147. data/lib/whop_sdk/models/plan_update_params.rb +116 -133
  148. data/lib/whop_sdk/models/product.rb +40 -37
  149. data/lib/whop_sdk/models/product_create_params.rb +48 -189
  150. data/lib/whop_sdk/models/product_list_item.rb +20 -11
  151. data/lib/whop_sdk/models/product_list_params.rb +35 -57
  152. data/lib/whop_sdk/models/product_update_params.rb +20 -148
  153. data/lib/whop_sdk/models/referral_referred_users_params.rb +66 -0
  154. data/lib/whop_sdk/models/referral_referred_users_response.rb +127 -0
  155. data/lib/whop_sdk/models/referrals/business_leaderboard_params.rb +45 -0
  156. data/lib/whop_sdk/models/referrals/business_leaderboard_response.rb +284 -0
  157. data/lib/whop_sdk/models/referrals/business_list_params.rb +175 -0
  158. data/lib/whop_sdk/models/referrals/business_list_response.rb +361 -0
  159. data/lib/whop_sdk/models/referrals/business_retrieve_params.rb +22 -0
  160. data/lib/whop_sdk/models/referrals/business_retrieve_response.rb +881 -0
  161. data/lib/whop_sdk/models/referrals/businesses/earning_list_params.rb +131 -0
  162. data/lib/whop_sdk/models/referrals/businesses/earning_list_response.rb +371 -0
  163. data/lib/whop_sdk/models/referrals/partner_create_params.rb +16 -0
  164. data/lib/whop_sdk/models/referrals/partner_create_response.rb +31 -0
  165. data/lib/whop_sdk/models/refund_created_webhook_event.rb +86 -5
  166. data/lib/whop_sdk/models/refund_retrieve_response.rb +84 -5
  167. data/lib/whop_sdk/models/refund_updated_webhook_event.rb +86 -5
  168. data/lib/whop_sdk/models/resolution_center_case_platform_response.rb +0 -1
  169. data/lib/whop_sdk/models/result_label_keys.rb +48 -0
  170. data/lib/whop_sdk/models/review_list_response.rb +2 -2
  171. data/lib/whop_sdk/models/review_retrieve_response.rb +4 -7
  172. data/lib/whop_sdk/models/setup_intent.rb +10 -1
  173. data/lib/whop_sdk/models/social_account.rb +101 -0
  174. data/lib/whop_sdk/models/social_account_connect_params.rb +74 -0
  175. data/lib/whop_sdk/models/social_account_connect_response.rb +17 -0
  176. data/lib/whop_sdk/models/social_account_create_params.rb +45 -0
  177. data/lib/whop_sdk/models/social_account_delete_params.rb +42 -0
  178. data/lib/whop_sdk/models/social_account_delete_response.rb +8 -0
  179. data/lib/whop_sdk/models/social_account_list_params.rb +152 -0
  180. data/lib/whop_sdk/models/social_account_post.rb +99 -0
  181. data/lib/whop_sdk/models/social_account_posts_params.rb +53 -0
  182. data/lib/whop_sdk/models/social_account_posts_response.rb +39 -0
  183. data/lib/whop_sdk/models/stat_list_params.rb +14 -0
  184. data/lib/whop_sdk/models/stat_list_response.rb +89 -0
  185. data/lib/whop_sdk/models/stat_retrieve_params.rb +265 -0
  186. data/lib/whop_sdk/models/stat_retrieve_response.rb +88 -0
  187. data/lib/whop_sdk/models/swap_create_params.rb +101 -0
  188. data/lib/whop_sdk/models/swap_create_quote_params.rb +117 -0
  189. data/lib/whop_sdk/models/swap_create_quote_response.rb +130 -0
  190. data/lib/whop_sdk/models/swap_create_response.rb +82 -0
  191. data/lib/whop_sdk/models/swap_list_params.rb +22 -0
  192. data/lib/whop_sdk/models/swap_list_response.rb +77 -0
  193. data/lib/whop_sdk/models/swap_retrieve_params.rb +20 -0
  194. data/lib/whop_sdk/models/swap_retrieve_response.rb +66 -0
  195. data/lib/whop_sdk/models/tax_identifier_type.rb +2 -0
  196. data/lib/whop_sdk/models/transfer_create_params.rb +62 -27
  197. data/lib/whop_sdk/models/transfer_create_response.rb +452 -0
  198. data/lib/whop_sdk/models/transfer_list_params.rb +46 -40
  199. data/lib/whop_sdk/models/transfer_list_response.rb +29 -36
  200. data/lib/whop_sdk/models/transfer_retrieve_response.rb +267 -0
  201. data/lib/whop_sdk/models/unwrap_webhook_event.rb +46 -30
  202. data/lib/whop_sdk/models/user.rb +276 -31
  203. data/lib/whop_sdk/models/user_balance.rb +226 -0
  204. data/lib/whop_sdk/models/user_check_access_response.rb +16 -9
  205. data/lib/whop_sdk/models/user_list_params.rb +15 -15
  206. data/lib/whop_sdk/models/user_retrieve_params.rb +66 -6
  207. data/lib/whop_sdk/models/user_update_me_params.rb +70 -0
  208. data/lib/whop_sdk/models/user_update_params.rb +23 -30
  209. data/lib/whop_sdk/models/verification_create_params.rb +414 -0
  210. data/lib/whop_sdk/models/verification_create_response.rb +400 -0
  211. data/lib/whop_sdk/models/verification_list_params.rb +40 -30
  212. data/lib/whop_sdk/models/verification_list_response.rb +396 -34
  213. data/lib/whop_sdk/models/verification_retrieve_params.rb +4 -4
  214. data/lib/whop_sdk/models/verification_retrieve_response.rb +373 -21
  215. data/lib/whop_sdk/models/verification_update_params.rb +578 -0
  216. data/lib/whop_sdk/models/verification_update_response.rb +400 -0
  217. data/lib/whop_sdk/models/webhook_event.rb +8 -0
  218. data/lib/whop_sdk/models/withdrawal.rb +1 -0
  219. data/lib/whop_sdk/models/withdrawal_create_params.rb +2 -2
  220. data/lib/whop_sdk/models/workforce/bounty_list_params.rb +153 -0
  221. data/lib/whop_sdk/models/workforce/bounty_retrieve_params.rb +22 -0
  222. data/lib/whop_sdk/models/workforce/workforce_bounty.rb +351 -0
  223. data/lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb +347 -0
  224. data/lib/whop_sdk/models.rb +151 -7
  225. data/lib/whop_sdk/resources/access_tokens.rb +0 -1
  226. data/lib/whop_sdk/resources/account_links.rb +0 -1
  227. data/lib/whop_sdk/resources/accounts/preferences.rb +78 -0
  228. data/lib/whop_sdk/resources/accounts.rb +254 -0
  229. data/lib/whop_sdk/resources/ad_campaigns.rb +136 -47
  230. data/lib/whop_sdk/resources/ad_groups.rb +194 -47
  231. data/lib/whop_sdk/resources/ad_reports.rb +14 -9
  232. data/lib/whop_sdk/resources/ads.rb +210 -25
  233. data/lib/whop_sdk/resources/affiliates/overrides.rb +0 -1
  234. data/lib/whop_sdk/resources/affiliates.rb +0 -2
  235. data/lib/whop_sdk/resources/ai_chats.rb +0 -1
  236. data/lib/whop_sdk/resources/app_builds.rb +0 -1
  237. data/lib/whop_sdk/resources/apps.rb +63 -3
  238. data/lib/whop_sdk/resources/audiences.rb +104 -0
  239. data/lib/whop_sdk/resources/authorized_users.rb +3 -2
  240. data/lib/whop_sdk/resources/bounties.rb +9 -2
  241. data/lib/whop_sdk/resources/cards.rb +178 -0
  242. data/lib/whop_sdk/resources/chat_channels.rb +0 -1
  243. data/lib/whop_sdk/resources/checkout_configurations.rb +69 -42
  244. data/lib/whop_sdk/resources/companies.rb +0 -1
  245. data/lib/whop_sdk/resources/company_token_transactions.rb +0 -1
  246. data/lib/whop_sdk/resources/course_chapters.rb +0 -1
  247. data/lib/whop_sdk/resources/course_lesson_interactions.rb +0 -1
  248. data/lib/whop_sdk/resources/course_lessons.rb +0 -1
  249. data/lib/whop_sdk/resources/course_students.rb +0 -1
  250. data/lib/whop_sdk/resources/courses.rb +0 -1
  251. data/lib/whop_sdk/resources/deposits.rb +77 -0
  252. data/lib/whop_sdk/resources/dispute_alerts.rb +0 -1
  253. data/lib/whop_sdk/resources/disputes.rb +0 -1
  254. data/lib/whop_sdk/resources/dm_channels.rb +0 -1
  255. data/lib/whop_sdk/resources/dm_members.rb +0 -1
  256. data/lib/whop_sdk/resources/entries.rb +0 -1
  257. data/lib/whop_sdk/resources/events.rb +121 -0
  258. data/lib/whop_sdk/resources/experiences.rb +0 -1
  259. data/lib/whop_sdk/resources/fee_markups.rb +0 -1
  260. data/lib/whop_sdk/resources/files.rb +1 -2
  261. data/lib/whop_sdk/resources/financial_activity.rb +76 -0
  262. data/lib/whop_sdk/resources/forum_posts.rb +0 -1
  263. data/lib/whop_sdk/resources/forums.rb +0 -1
  264. data/lib/whop_sdk/resources/invoices.rb +0 -1
  265. data/lib/whop_sdk/resources/leads.rb +0 -1
  266. data/lib/whop_sdk/resources/ledger_accounts.rb +0 -1
  267. data/lib/whop_sdk/resources/media.rb +77 -0
  268. data/lib/whop_sdk/resources/members.rb +0 -1
  269. data/lib/whop_sdk/resources/memberships.rb +0 -1
  270. data/lib/whop_sdk/resources/messages.rb +0 -1
  271. data/lib/whop_sdk/resources/notifications.rb +0 -1
  272. data/lib/whop_sdk/resources/payment_methods.rb +0 -1
  273. data/lib/whop_sdk/resources/payments.rb +3 -2
  274. data/lib/whop_sdk/resources/payout_accounts.rb +0 -1
  275. data/lib/whop_sdk/resources/payouts/methods.rb +71 -0
  276. data/lib/whop_sdk/resources/payouts.rb +107 -0
  277. data/lib/whop_sdk/resources/people.rb +99 -0
  278. data/lib/whop_sdk/resources/plans.rb +99 -79
  279. data/lib/whop_sdk/resources/products.rb +48 -93
  280. data/lib/whop_sdk/resources/promo_codes.rb +0 -1
  281. data/lib/whop_sdk/resources/reactions.rb +0 -1
  282. data/lib/whop_sdk/resources/referrals/businesses/earnings.rb +67 -0
  283. data/lib/whop_sdk/resources/referrals/businesses.rb +132 -0
  284. data/lib/whop_sdk/resources/referrals/partners.rb +42 -0
  285. data/lib/whop_sdk/resources/referrals.rb +77 -0
  286. data/lib/whop_sdk/resources/refunds.rb +2 -1
  287. data/lib/whop_sdk/resources/resolution_center_cases.rb +0 -1
  288. data/lib/whop_sdk/resources/reviews.rb +0 -1
  289. data/lib/whop_sdk/resources/setup_intents.rb +0 -1
  290. data/lib/whop_sdk/resources/shipments.rb +0 -1
  291. data/lib/whop_sdk/resources/social_accounts.rb +192 -0
  292. data/lib/whop_sdk/resources/stats.rb +113 -0
  293. data/lib/whop_sdk/resources/support_channels.rb +0 -1
  294. data/lib/whop_sdk/resources/swaps.rb +143 -0
  295. data/lib/whop_sdk/resources/topups.rb +0 -1
  296. data/lib/whop_sdk/resources/transfers.rb +42 -42
  297. data/lib/whop_sdk/resources/users.rb +82 -33
  298. data/lib/whop_sdk/resources/verifications.rb +81 -20
  299. data/lib/whop_sdk/resources/webhooks.rb +1 -2
  300. data/lib/whop_sdk/resources/withdrawals.rb +1 -2
  301. data/lib/whop_sdk/resources/workforce/bounties.rb +97 -0
  302. data/lib/whop_sdk/resources/workforce.rb +25 -0
  303. data/lib/whop_sdk/version.rb +1 -1
  304. data/lib/whop_sdk.rb +148 -21
  305. data/rbi/whop_sdk/client.rbi +211 -69
  306. data/rbi/whop_sdk/models/account.rbi +1532 -0
  307. data/rbi/whop_sdk/models/account_create_params.rbi +72 -0
  308. data/rbi/whop_sdk/models/account_list_params.rbi +145 -0
  309. data/rbi/whop_sdk/models/account_me_params.rbi +27 -0
  310. data/rbi/whop_sdk/models/account_recommend_actions_params.rbi +38 -0
  311. data/rbi/whop_sdk/models/account_recommend_actions_response.rbi +296 -0
  312. data/rbi/whop_sdk/models/account_retrieve_params.rbi +35 -0
  313. data/rbi/whop_sdk/models/account_social_link.rbi +96 -0
  314. data/rbi/whop_sdk/models/account_update_params.rbi +1141 -0
  315. data/rbi/whop_sdk/models/accounts/preference_retrieve_params.rbi +40 -0
  316. data/rbi/whop_sdk/models/accounts/preference_retrieve_response.rbi +323 -0
  317. data/rbi/whop_sdk/models/accounts/preference_update_params.rbi +331 -0
  318. data/rbi/whop_sdk/models/accounts/preference_update_response.rbi +323 -0
  319. data/rbi/whop_sdk/models/ad.rbi +983 -0
  320. data/rbi/whop_sdk/models/ad_campaign.rbi +846 -0
  321. data/rbi/whop_sdk/models/ad_campaign_create_params.rbi +428 -0
  322. data/rbi/whop_sdk/models/{payout_method_retrieve_params.rbi → ad_campaign_delete_params.rbi} +2 -2
  323. data/rbi/whop_sdk/models/ad_campaign_delete_response.rbi +8 -0
  324. data/rbi/whop_sdk/models/ad_campaign_list_params.rbi +248 -56
  325. data/rbi/whop_sdk/models/ad_campaign_retrieve_params.rbi +41 -2
  326. data/rbi/whop_sdk/models/ad_campaign_update_params.rbi +207 -8
  327. data/rbi/whop_sdk/models/ad_create_params.rbi +1491 -0
  328. data/rbi/whop_sdk/models/ad_delete_params.rbi +35 -0
  329. data/rbi/whop_sdk/models/ad_delete_response.rbi +7 -0
  330. data/rbi/whop_sdk/models/ad_group.rbi +948 -0
  331. data/rbi/whop_sdk/models/ad_group_create_params.rbi +654 -0
  332. data/rbi/whop_sdk/models/ad_group_list_params.rbi +217 -67
  333. data/rbi/whop_sdk/models/ad_group_pause_params.rbi +35 -0
  334. data/rbi/whop_sdk/models/ad_group_retrieve_params.rbi +41 -2
  335. data/rbi/whop_sdk/models/ad_group_unpause_params.rbi +35 -0
  336. data/rbi/whop_sdk/models/ad_group_update_params.rbi +494 -5988
  337. data/rbi/whop_sdk/models/ad_list_params.rbi +220 -59
  338. data/rbi/whop_sdk/models/ad_pause_params.rbi +35 -0
  339. data/rbi/whop_sdk/models/ad_report_retrieve_params.rbi +89 -33
  340. data/rbi/whop_sdk/models/ad_report_retrieve_response.rbi +566 -378
  341. data/rbi/whop_sdk/models/ad_retrieve_params.rbi +41 -2
  342. data/rbi/whop_sdk/models/ad_unpause_params.rbi +35 -0
  343. data/rbi/whop_sdk/models/ad_update_params.rbi +1473 -0
  344. data/rbi/whop_sdk/models/app.rbi +111 -0
  345. data/rbi/whop_sdk/models/app_build_create_params.rbi +3 -3
  346. data/rbi/whop_sdk/models/app_create_params.rbi +10 -0
  347. data/rbi/whop_sdk/models/app_list_response.rbi +20 -0
  348. data/rbi/whop_sdk/models/app_logs_params.rbi +154 -0
  349. data/rbi/whop_sdk/models/app_logs_response.rbi +261 -0
  350. data/rbi/whop_sdk/models/app_update_params.rbi +24 -0
  351. data/rbi/whop_sdk/models/audience.rbi +262 -0
  352. data/rbi/whop_sdk/models/audience_create_params.rbi +160 -0
  353. data/rbi/whop_sdk/models/audience_delete_params.rbi +35 -0
  354. data/rbi/whop_sdk/models/audience_delete_response.rbi +26 -0
  355. data/rbi/whop_sdk/models/audience_list_params.rbi +76 -0
  356. data/rbi/whop_sdk/models/authorized_user_create_params.rbi +102 -0
  357. data/rbi/whop_sdk/models/bounty_create_params.rbi +164 -4
  358. data/rbi/whop_sdk/models/bounty_create_response.rbi +5 -0
  359. data/rbi/whop_sdk/models/bounty_list_params.rbi +2 -0
  360. data/rbi/whop_sdk/models/bounty_list_response.rbi +5 -0
  361. data/rbi/whop_sdk/models/bounty_retrieve_response.rbi +5 -0
  362. data/rbi/whop_sdk/models/card_brands.rbi +1 -0
  363. data/rbi/whop_sdk/models/card_create_params.rbi +167 -0
  364. data/rbi/whop_sdk/models/card_create_response.rbi +446 -0
  365. data/rbi/whop_sdk/models/card_list_params.rbi +57 -0
  366. data/rbi/whop_sdk/models/card_list_response.rbi +511 -0
  367. data/rbi/whop_sdk/models/card_retrieve_params.rbi +63 -0
  368. data/rbi/whop_sdk/models/card_retrieve_response.rbi +457 -0
  369. data/rbi/whop_sdk/models/card_update_params.rbi +299 -0
  370. data/rbi/whop_sdk/models/card_update_response.rbi +446 -0
  371. data/rbi/whop_sdk/models/chat_message_created_webhook_event.rbi +319 -0
  372. data/rbi/whop_sdk/models/chat_reaction_created_webhook_event.rbi +335 -0
  373. data/rbi/whop_sdk/models/checkout_configuration.rbi +84 -44
  374. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +404 -1537
  375. data/rbi/whop_sdk/models/checkout_configuration_create_response.rbi +420 -0
  376. data/rbi/whop_sdk/models/checkout_configuration_delete_params.rbi +38 -0
  377. data/rbi/whop_sdk/models/checkout_configuration_list_params.rbi +142 -51
  378. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +202 -161
  379. data/rbi/whop_sdk/models/checkout_configuration_retrieve_response.rbi +422 -0
  380. data/rbi/whop_sdk/models/company.rbi +2 -2
  381. data/rbi/whop_sdk/models/company_list_response.rbi +2 -2
  382. data/rbi/whop_sdk/models/course.rbi +2 -2
  383. data/rbi/whop_sdk/models/course_list_response.rbi +2 -2
  384. data/rbi/whop_sdk/models/currency.rbi +3 -0
  385. data/rbi/whop_sdk/models/deposit_create_params.rbi +165 -0
  386. data/rbi/whop_sdk/models/deposit_create_response.rbi +437 -0
  387. data/rbi/whop_sdk/models/deposit_list_params.rbi +40 -0
  388. data/rbi/whop_sdk/models/deposit_list_response.rbi +163 -0
  389. data/rbi/whop_sdk/models/dispute.rbi +15 -17
  390. data/rbi/whop_sdk/models/dispute_alert_created_webhook_event.rbi +5 -5
  391. data/rbi/whop_sdk/models/dispute_alert_retrieve_response.rbi +5 -5
  392. data/rbi/whop_sdk/models/dispute_list_response.rbi +2 -4
  393. data/rbi/whop_sdk/models/event_create_params.rbi +891 -0
  394. data/rbi/whop_sdk/models/{conversion_create_response.rbi → event_create_response.rbi} +3 -8
  395. data/rbi/whop_sdk/models/event_list_params.rbi +111 -0
  396. data/rbi/whop_sdk/models/event_list_response.rbi +350 -0
  397. data/rbi/whop_sdk/models/experience.rbi +6 -6
  398. data/rbi/whop_sdk/models/experience_list_response.rbi +2 -2
  399. data/rbi/whop_sdk/models/file_create_params.rbi +3 -30
  400. data/rbi/whop_sdk/models/file_create_response.rbi +3 -38
  401. data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -39
  402. data/rbi/whop_sdk/models/file_visibility.rbi +21 -0
  403. data/rbi/whop_sdk/models/financial_activity_list_params.rbi +175 -0
  404. data/rbi/whop_sdk/models/financial_activity_list_response.rbi +2066 -0
  405. data/rbi/whop_sdk/models/forum_post.rbi +2 -2
  406. data/rbi/whop_sdk/models/forum_post_list_response.rbi +2 -2
  407. data/rbi/whop_sdk/models/granularities.rbi +22 -0
  408. data/rbi/whop_sdk/models/identity_profile_approved_webhook_event.rbi +669 -0
  409. data/rbi/whop_sdk/models/identity_profile_needs_action_webhook_event.rbi +669 -0
  410. data/rbi/whop_sdk/models/identity_profile_rejected_webhook_event.rbi +669 -0
  411. data/rbi/whop_sdk/models/identity_profile_updated_webhook_event.rbi +669 -0
  412. data/rbi/whop_sdk/models/invoice_create_params.rbi +32 -0
  413. data/rbi/whop_sdk/models/invoice_update_params.rbi +16 -0
  414. data/rbi/whop_sdk/models/ledger_account_funds_available_webhook_event.rbi +1001 -0
  415. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +111 -5
  416. data/rbi/whop_sdk/models/lesson.rbi +6 -6
  417. data/rbi/whop_sdk/models/media_asset.rbi +325 -0
  418. data/rbi/whop_sdk/models/media_generate_params.rbi +204 -0
  419. data/rbi/whop_sdk/models/media_retrieve_params.rbi +35 -0
  420. data/rbi/whop_sdk/models/member_list_response.rbi +4 -2
  421. data/rbi/whop_sdk/models/member_retrieve_response.rbi +4 -2
  422. data/rbi/whop_sdk/models/membership.rbi +50 -7
  423. data/rbi/whop_sdk/models/membership_list_response.rbi +50 -7
  424. data/rbi/whop_sdk/models/membership_trial_ending_soon_webhook_event.rbi +85 -0
  425. data/rbi/whop_sdk/models/payment.rbi +295 -40
  426. data/rbi/whop_sdk/models/payment_create_params.rbi +30 -6
  427. data/rbi/whop_sdk/models/payment_list_params.rbi +8 -0
  428. data/rbi/whop_sdk/models/payment_list_response.rbi +188 -28
  429. data/rbi/whop_sdk/models/payout_create_params.rbi +83 -0
  430. data/rbi/whop_sdk/models/payout_create_response.rbi +352 -0
  431. data/rbi/whop_sdk/models/payout_list_params.rbi +112 -0
  432. data/rbi/whop_sdk/models/payout_list_response.rbi +353 -0
  433. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +64 -3
  434. data/rbi/whop_sdk/models/payouts/method_list_params.rbi +209 -0
  435. data/rbi/whop_sdk/models/payouts/method_list_response.rbi +554 -0
  436. data/rbi/whop_sdk/models/person_list_params.rbi +160 -0
  437. data/rbi/whop_sdk/models/person_list_response.rbi +282 -0
  438. data/rbi/whop_sdk/models/person_retrieve_params.rbi +76 -0
  439. data/rbi/whop_sdk/models/person_retrieve_response.rbi +349 -0
  440. data/rbi/whop_sdk/models/plan.rbi +346 -332
  441. data/rbi/whop_sdk/models/plan_calculate_tax_params.rbi +795 -0
  442. data/rbi/whop_sdk/models/plan_calculate_tax_response.rbi +170 -0
  443. data/rbi/whop_sdk/models/plan_create_params.rbi +267 -217
  444. data/rbi/whop_sdk/models/plan_list_params.rbi +121 -67
  445. data/rbi/whop_sdk/models/plan_list_response.rbi +127 -360
  446. data/rbi/whop_sdk/models/plan_update_params.rbi +228 -192
  447. data/rbi/whop_sdk/models/product.rbi +48 -44
  448. data/rbi/whop_sdk/models/product_create_params.rbi +69 -273
  449. data/rbi/whop_sdk/models/product_list_item.rbi +24 -14
  450. data/rbi/whop_sdk/models/product_list_params.rbi +75 -78
  451. data/rbi/whop_sdk/models/product_update_params.rbi +30 -207
  452. data/rbi/whop_sdk/models/referral_referred_users_params.rbi +106 -0
  453. data/rbi/whop_sdk/models/referral_referred_users_response.rbi +259 -0
  454. data/rbi/whop_sdk/models/referrals/business_leaderboard_params.rbi +120 -0
  455. data/rbi/whop_sdk/models/referrals/business_leaderboard_response.rbi +535 -0
  456. data/rbi/whop_sdk/models/referrals/business_list_params.rbi +376 -0
  457. data/rbi/whop_sdk/models/referrals/business_list_response.rbi +701 -0
  458. data/rbi/whop_sdk/models/referrals/business_retrieve_params.rbi +40 -0
  459. data/rbi/whop_sdk/models/referrals/business_retrieve_response.rbi +1846 -0
  460. data/rbi/whop_sdk/models/referrals/businesses/earning_list_params.rbi +308 -0
  461. data/rbi/whop_sdk/models/referrals/businesses/earning_list_response.rbi +693 -0
  462. data/rbi/whop_sdk/models/referrals/partner_create_params.rbi +32 -0
  463. data/rbi/whop_sdk/models/referrals/partner_create_response.rbi +48 -0
  464. data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +163 -5
  465. data/rbi/whop_sdk/models/refund_retrieve_response.rbi +161 -5
  466. data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +163 -5
  467. data/rbi/whop_sdk/models/resolution_center_case_platform_response.rbi +0 -5
  468. data/rbi/whop_sdk/models/result_label_keys.rbi +87 -0
  469. data/rbi/whop_sdk/models/review_list_response.rbi +2 -2
  470. data/rbi/whop_sdk/models/review_retrieve_response.rbi +4 -4
  471. data/rbi/whop_sdk/models/setup_intent.rbi +13 -3
  472. data/rbi/whop_sdk/models/social_account.rbi +129 -0
  473. data/rbi/whop_sdk/models/social_account_connect_params.rbi +146 -0
  474. data/rbi/whop_sdk/models/social_account_connect_response.rbi +30 -0
  475. data/rbi/whop_sdk/models/social_account_create_params.rbi +81 -0
  476. data/rbi/whop_sdk/models/social_account_delete_params.rbi +67 -0
  477. data/rbi/whop_sdk/models/social_account_delete_response.rbi +8 -0
  478. data/rbi/whop_sdk/models/social_account_list_params.rbi +308 -0
  479. data/rbi/whop_sdk/models/social_account_post.rbi +261 -0
  480. data/rbi/whop_sdk/models/social_account_posts_params.rbi +82 -0
  481. data/rbi/whop_sdk/models/social_account_posts_response.rbi +83 -0
  482. data/rbi/whop_sdk/models/stat_list_params.rbi +27 -0
  483. data/rbi/whop_sdk/models/stat_list_response.rbi +159 -0
  484. data/rbi/whop_sdk/models/stat_retrieve_params.rbi +411 -0
  485. data/rbi/whop_sdk/models/stat_retrieve_response.rbi +198 -0
  486. data/rbi/whop_sdk/models/swap_create_params.rbi +128 -0
  487. data/rbi/whop_sdk/models/swap_create_quote_params.rbi +154 -0
  488. data/rbi/whop_sdk/models/swap_create_quote_response.rbi +174 -0
  489. data/rbi/whop_sdk/models/swap_create_response.rbi +127 -0
  490. data/rbi/whop_sdk/models/swap_list_params.rbi +40 -0
  491. data/rbi/whop_sdk/models/swap_list_response.rbi +137 -0
  492. data/rbi/whop_sdk/models/swap_retrieve_params.rbi +35 -0
  493. data/rbi/whop_sdk/models/swap_retrieve_response.rbi +106 -0
  494. data/rbi/whop_sdk/models/tax_identifier_type.rbi +2 -0
  495. data/rbi/whop_sdk/models/transfer_create_params.rbi +94 -36
  496. data/rbi/whop_sdk/models/transfer_create_response.rbi +767 -0
  497. data/rbi/whop_sdk/models/transfer_list_params.rbi +111 -60
  498. data/rbi/whop_sdk/models/transfer_list_response.rbi +32 -40
  499. data/rbi/whop_sdk/models/transfer_retrieve_response.rbi +416 -0
  500. data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +29 -21
  501. data/rbi/whop_sdk/models/user.rbi +427 -45
  502. data/rbi/whop_sdk/models/user_balance.rbi +301 -0
  503. data/rbi/whop_sdk/models/user_check_access_response.rbi +46 -12
  504. data/rbi/whop_sdk/models/user_list_params.rbi +40 -25
  505. data/rbi/whop_sdk/models/user_retrieve_params.rbi +106 -8
  506. data/rbi/whop_sdk/models/user_update_me_params.rbi +120 -0
  507. data/rbi/whop_sdk/models/user_update_params.rbi +46 -45
  508. data/rbi/whop_sdk/models/verification_create_params.rbi +783 -0
  509. data/rbi/whop_sdk/models/verification_create_response.rbi +757 -0
  510. data/rbi/whop_sdk/models/verification_list_params.rbi +88 -34
  511. data/rbi/whop_sdk/models/verification_list_response.rbi +783 -39
  512. data/rbi/whop_sdk/models/verification_retrieve_params.rbi +4 -4
  513. data/rbi/whop_sdk/models/verification_retrieve_response.rbi +722 -30
  514. data/rbi/whop_sdk/models/verification_update_params.rbi +1187 -0
  515. data/rbi/whop_sdk/models/verification_update_response.rbi +757 -0
  516. data/rbi/whop_sdk/models/webhook_event.rbi +25 -0
  517. data/rbi/whop_sdk/models/withdrawal.rbi +5 -0
  518. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +2 -2
  519. data/rbi/whop_sdk/models/workforce/bounty_list_params.rbi +313 -0
  520. data/rbi/whop_sdk/models/workforce/bounty_retrieve_params.rbi +40 -0
  521. data/rbi/whop_sdk/models/workforce/workforce_bounty.rbi +588 -0
  522. data/rbi/whop_sdk/models/workforce/workforce_bounty_list_item.rbi +590 -0
  523. data/rbi/whop_sdk/models.rbi +160 -7
  524. data/rbi/whop_sdk/resources/access_tokens.rbi +0 -1
  525. data/rbi/whop_sdk/resources/account_links.rbi +0 -1
  526. data/rbi/whop_sdk/resources/accounts/preferences.rbi +62 -0
  527. data/rbi/whop_sdk/resources/accounts.rbi +253 -0
  528. data/rbi/whop_sdk/resources/ad_campaigns.rbi +173 -60
  529. data/rbi/whop_sdk/resources/ad_groups.rbi +287 -72
  530. data/rbi/whop_sdk/resources/ad_reports.rbi +29 -19
  531. data/rbi/whop_sdk/resources/ads.rbi +254 -39
  532. data/rbi/whop_sdk/resources/affiliates/overrides.rbi +0 -1
  533. data/rbi/whop_sdk/resources/affiliates.rbi +0 -2
  534. data/rbi/whop_sdk/resources/ai_chats.rbi +0 -1
  535. data/rbi/whop_sdk/resources/app_builds.rbi +1 -2
  536. data/rbi/whop_sdk/resources/apps.rbi +66 -1
  537. data/rbi/whop_sdk/resources/audiences.rbi +82 -0
  538. data/rbi/whop_sdk/resources/authorized_users.rbi +4 -1
  539. data/rbi/whop_sdk/resources/bounties.rbi +23 -3
  540. data/rbi/whop_sdk/resources/cards.rbi +160 -0
  541. data/rbi/whop_sdk/resources/chat_channels.rbi +0 -1
  542. data/rbi/whop_sdk/resources/checkout_configurations.rbi +82 -51
  543. data/rbi/whop_sdk/resources/companies.rbi +0 -1
  544. data/rbi/whop_sdk/resources/company_token_transactions.rbi +0 -1
  545. data/rbi/whop_sdk/resources/course_chapters.rbi +0 -1
  546. data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +0 -1
  547. data/rbi/whop_sdk/resources/course_lessons.rbi +0 -1
  548. data/rbi/whop_sdk/resources/course_students.rbi +0 -1
  549. data/rbi/whop_sdk/resources/courses.rbi +0 -1
  550. data/rbi/whop_sdk/resources/deposits.rbi +63 -0
  551. data/rbi/whop_sdk/resources/dispute_alerts.rbi +0 -1
  552. data/rbi/whop_sdk/resources/disputes.rbi +0 -1
  553. data/rbi/whop_sdk/resources/dm_channels.rbi +0 -1
  554. data/rbi/whop_sdk/resources/dm_members.rbi +0 -1
  555. data/rbi/whop_sdk/resources/entries.rbi +0 -1
  556. data/rbi/whop_sdk/resources/events.rbi +122 -0
  557. data/rbi/whop_sdk/resources/experiences.rbi +0 -1
  558. data/rbi/whop_sdk/resources/fee_markups.rbi +0 -1
  559. data/rbi/whop_sdk/resources/files.rbi +1 -3
  560. data/rbi/whop_sdk/resources/financial_activity.rbi +80 -0
  561. data/rbi/whop_sdk/resources/forum_posts.rbi +0 -1
  562. data/rbi/whop_sdk/resources/forums.rbi +0 -1
  563. data/rbi/whop_sdk/resources/invoices.rbi +0 -1
  564. data/rbi/whop_sdk/resources/leads.rbi +0 -1
  565. data/rbi/whop_sdk/resources/ledger_accounts.rbi +0 -1
  566. data/rbi/whop_sdk/resources/media.rbi +67 -0
  567. data/rbi/whop_sdk/resources/members.rbi +0 -1
  568. data/rbi/whop_sdk/resources/memberships.rbi +0 -1
  569. data/rbi/whop_sdk/resources/messages.rbi +0 -1
  570. data/rbi/whop_sdk/resources/notifications.rbi +0 -1
  571. data/rbi/whop_sdk/resources/payment_methods.rbi +0 -1
  572. data/rbi/whop_sdk/resources/payments.rbi +3 -1
  573. data/rbi/whop_sdk/resources/payout_accounts.rbi +0 -1
  574. data/rbi/whop_sdk/resources/payouts/methods.rbi +76 -0
  575. data/rbi/whop_sdk/resources/payouts.rbi +96 -0
  576. data/rbi/whop_sdk/resources/people.rbi +86 -0
  577. data/rbi/whop_sdk/resources/plans.rbi +120 -112
  578. data/rbi/whop_sdk/resources/products.rbi +67 -144
  579. data/rbi/whop_sdk/resources/promo_codes.rbi +0 -1
  580. data/rbi/whop_sdk/resources/reactions.rbi +0 -1
  581. data/rbi/whop_sdk/resources/referrals/businesses/earnings.rbi +67 -0
  582. data/rbi/whop_sdk/resources/referrals/businesses.rbi +122 -0
  583. data/rbi/whop_sdk/resources/referrals/partners.rbi +31 -0
  584. data/rbi/whop_sdk/resources/referrals.rbi +67 -0
  585. data/rbi/whop_sdk/resources/refunds.rbi +2 -1
  586. data/rbi/whop_sdk/resources/resolution_center_cases.rbi +0 -1
  587. data/rbi/whop_sdk/resources/reviews.rbi +0 -1
  588. data/rbi/whop_sdk/resources/setup_intents.rbi +0 -1
  589. data/rbi/whop_sdk/resources/shipments.rbi +0 -1
  590. data/rbi/whop_sdk/resources/social_accounts.rbi +161 -0
  591. data/rbi/whop_sdk/resources/stats.rbi +143 -0
  592. data/rbi/whop_sdk/resources/support_channels.rbi +0 -1
  593. data/rbi/whop_sdk/resources/swaps.rbi +124 -0
  594. data/rbi/whop_sdk/resources/topups.rbi +0 -1
  595. data/rbi/whop_sdk/resources/transfers.rbi +62 -59
  596. data/rbi/whop_sdk/resources/users.rbi +92 -48
  597. data/rbi/whop_sdk/resources/verifications.rbi +85 -35
  598. data/rbi/whop_sdk/resources/webhooks.rbi +29 -22
  599. data/rbi/whop_sdk/resources/withdrawals.rbi +1 -2
  600. data/rbi/whop_sdk/resources/workforce/bounties.rbi +94 -0
  601. data/rbi/whop_sdk/resources/workforce.rbi +22 -0
  602. data/sig/whop_sdk/client.rbs +31 -4
  603. data/sig/whop_sdk/models/account.rbs +706 -0
  604. data/sig/whop_sdk/models/account_create_params.rbs +38 -0
  605. data/sig/whop_sdk/models/account_list_params.rbs +88 -0
  606. data/sig/whop_sdk/models/account_me_params.rbs +14 -0
  607. data/sig/whop_sdk/models/account_recommend_actions_params.rbs +23 -0
  608. data/sig/whop_sdk/models/account_recommend_actions_response.rbs +129 -0
  609. data/sig/whop_sdk/models/account_retrieve_params.rbs +23 -0
  610. data/sig/whop_sdk/models/account_social_link.rbs +62 -0
  611. data/sig/whop_sdk/models/account_update_params.rbs +536 -0
  612. data/sig/whop_sdk/models/accounts/preference_retrieve_params.rbs +25 -0
  613. data/sig/whop_sdk/models/accounts/preference_retrieve_response.rbs +110 -0
  614. data/sig/whop_sdk/models/accounts/preference_update_params.rbs +133 -0
  615. data/sig/whop_sdk/models/accounts/preference_update_response.rbs +110 -0
  616. data/sig/whop_sdk/models/ad.rbs +597 -0
  617. data/sig/whop_sdk/models/ad_campaign.rbs +472 -0
  618. data/sig/whop_sdk/models/ad_campaign_create_params.rbs +179 -0
  619. data/sig/whop_sdk/models/{payout_method_retrieve_params.rbs → ad_campaign_delete_params.rbs} +2 -2
  620. data/sig/whop_sdk/models/ad_campaign_delete_response.rbs +5 -0
  621. data/sig/whop_sdk/models/ad_campaign_list_params.rbs +145 -41
  622. data/sig/whop_sdk/models/ad_campaign_retrieve_params.rbs +24 -2
  623. data/sig/whop_sdk/models/ad_campaign_update_params.rbs +90 -4
  624. data/sig/whop_sdk/models/ad_create_params.rbs +751 -0
  625. data/sig/whop_sdk/models/ad_delete_params.rbs +20 -0
  626. data/sig/whop_sdk/models/ad_delete_response.rbs +5 -0
  627. data/sig/whop_sdk/models/ad_group.rbs +543 -0
  628. data/sig/whop_sdk/models/ad_group_create_params.rbs +292 -0
  629. data/sig/whop_sdk/models/ad_group_list_params.rbs +141 -50
  630. data/sig/whop_sdk/models/ad_group_pause_params.rbs +20 -0
  631. data/sig/whop_sdk/models/ad_group_retrieve_params.rbs +24 -2
  632. data/sig/whop_sdk/models/ad_group_unpause_params.rbs +20 -0
  633. data/sig/whop_sdk/models/ad_group_update_params.rbs +200 -2354
  634. data/sig/whop_sdk/models/ad_list_params.rbs +157 -44
  635. data/sig/whop_sdk/models/ad_pause_params.rbs +20 -0
  636. data/sig/whop_sdk/models/ad_report_retrieve_params.rbs +38 -16
  637. data/sig/whop_sdk/models/ad_report_retrieve_response.rbs +258 -149
  638. data/sig/whop_sdk/models/ad_retrieve_params.rbs +24 -2
  639. data/sig/whop_sdk/models/ad_unpause_params.rbs +20 -0
  640. data/sig/whop_sdk/models/ad_update_params.rbs +742 -0
  641. data/sig/whop_sdk/models/app.rbs +52 -0
  642. data/sig/whop_sdk/models/app_create_params.rbs +6 -1
  643. data/sig/whop_sdk/models/app_list_response.rbs +10 -0
  644. data/sig/whop_sdk/models/app_logs_params.rbs +98 -0
  645. data/sig/whop_sdk/models/app_logs_response.rbs +162 -0
  646. data/sig/whop_sdk/models/app_update_params.rbs +10 -0
  647. data/sig/whop_sdk/models/audience.rbs +145 -0
  648. data/sig/whop_sdk/models/audience_create_params.rbs +88 -0
  649. data/sig/whop_sdk/models/audience_delete_params.rbs +23 -0
  650. data/sig/whop_sdk/models/audience_delete_response.rbs +13 -0
  651. data/sig/whop_sdk/models/audience_list_params.rbs +42 -0
  652. data/sig/whop_sdk/models/authorized_user_create_params.rbs +52 -0
  653. data/sig/whop_sdk/models/bounty_create_params.rbs +56 -1
  654. data/sig/whop_sdk/models/bounty_create_response.rbs +2 -1
  655. data/sig/whop_sdk/models/bounty_list_params.rbs +2 -1
  656. data/sig/whop_sdk/models/bounty_list_response.rbs +2 -1
  657. data/sig/whop_sdk/models/bounty_retrieve_response.rbs +2 -1
  658. data/sig/whop_sdk/models/card_brands.rbs +2 -0
  659. data/sig/whop_sdk/models/card_create_params.rbs +85 -0
  660. data/sig/whop_sdk/models/card_create_response.rbs +200 -0
  661. data/sig/whop_sdk/models/card_list_params.rbs +32 -0
  662. data/sig/whop_sdk/models/card_list_response.rbs +214 -0
  663. data/sig/whop_sdk/models/card_retrieve_params.rbs +36 -0
  664. data/sig/whop_sdk/models/card_retrieve_response.rbs +200 -0
  665. data/sig/whop_sdk/models/card_update_params.rbs +164 -0
  666. data/sig/whop_sdk/models/card_update_response.rbs +200 -0
  667. data/sig/whop_sdk/models/chat_message_created_webhook_event.rbs +149 -0
  668. data/sig/whop_sdk/models/chat_reaction_created_webhook_event.rbs +154 -0
  669. data/sig/whop_sdk/models/checkout_configuration.rbs +16 -5
  670. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +206 -649
  671. data/sig/whop_sdk/models/checkout_configuration_create_response.rbs +196 -0
  672. data/sig/whop_sdk/models/checkout_configuration_delete_params.rbs +20 -0
  673. data/sig/whop_sdk/models/checkout_configuration_list_params.rbs +66 -32
  674. data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +88 -56
  675. data/sig/whop_sdk/models/checkout_configuration_retrieve_response.rbs +196 -0
  676. data/sig/whop_sdk/models/currency.rbs +6 -0
  677. data/sig/whop_sdk/models/deposit_create_params.rbs +83 -0
  678. data/sig/whop_sdk/models/deposit_create_response.rbs +187 -0
  679. data/sig/whop_sdk/models/deposit_list_params.rbs +23 -0
  680. data/sig/whop_sdk/models/deposit_list_response.rbs +87 -0
  681. data/sig/whop_sdk/models/dispute.rbs +4 -4
  682. data/sig/whop_sdk/models/dispute_alert_created_webhook_event.rbs +4 -4
  683. data/sig/whop_sdk/models/dispute_alert_retrieve_response.rbs +4 -4
  684. data/sig/whop_sdk/models/event_create_params.rbs +639 -0
  685. data/sig/whop_sdk/models/{conversion_create_response.rbs → event_create_response.rbs} +2 -2
  686. data/sig/whop_sdk/models/event_list_params.rbs +68 -0
  687. data/sig/whop_sdk/models/event_list_response.rbs +231 -0
  688. data/sig/whop_sdk/models/file_create_params.rbs +4 -18
  689. data/sig/whop_sdk/models/file_create_response.rbs +4 -15
  690. data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -15
  691. data/sig/whop_sdk/models/file_visibility.rbs +14 -0
  692. data/sig/whop_sdk/models/financial_activity_list_params.rbs +98 -0
  693. data/sig/whop_sdk/models/financial_activity_list_response.rbs +935 -0
  694. data/sig/whop_sdk/models/granularities.rbs +16 -0
  695. data/sig/whop_sdk/models/identity_profile_approved_webhook_event.rbs +293 -0
  696. data/sig/whop_sdk/models/identity_profile_needs_action_webhook_event.rbs +293 -0
  697. data/sig/whop_sdk/models/identity_profile_rejected_webhook_event.rbs +293 -0
  698. data/sig/whop_sdk/models/identity_profile_updated_webhook_event.rbs +293 -0
  699. data/sig/whop_sdk/models/invoice_create_params.rbs +20 -0
  700. data/sig/whop_sdk/models/invoice_update_params.rbs +10 -0
  701. data/sig/whop_sdk/models/ledger_account_funds_available_webhook_event.rbs +418 -0
  702. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +50 -3
  703. data/sig/whop_sdk/models/media_asset.rbs +160 -0
  704. data/sig/whop_sdk/models/media_generate_params.rbs +99 -0
  705. data/sig/whop_sdk/models/media_retrieve_params.rbs +20 -0
  706. data/sig/whop_sdk/models/membership.rbs +19 -6
  707. data/sig/whop_sdk/models/membership_list_response.rbs +19 -6
  708. data/sig/whop_sdk/models/membership_trial_ending_soon_webhook_event.rbs +45 -0
  709. data/sig/whop_sdk/models/payment.rbs +161 -15
  710. data/sig/whop_sdk/models/payment_create_params.rbs +16 -6
  711. data/sig/whop_sdk/models/payment_list_params.rbs +5 -0
  712. data/sig/whop_sdk/models/payment_list_response.rbs +104 -15
  713. data/sig/whop_sdk/models/payout_create_params.rbs +50 -0
  714. data/sig/whop_sdk/models/payout_create_response.rbs +139 -0
  715. data/sig/whop_sdk/models/payout_list_params.rbs +70 -0
  716. data/sig/whop_sdk/models/payout_list_response.rbs +153 -0
  717. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +25 -4
  718. data/sig/whop_sdk/models/payouts/method_list_params.rbs +107 -0
  719. data/sig/whop_sdk/models/payouts/method_list_response.rbs +229 -0
  720. data/sig/whop_sdk/models/person_list_params.rbs +97 -0
  721. data/sig/whop_sdk/models/person_list_response.rbs +162 -0
  722. data/sig/whop_sdk/models/person_retrieve_params.rbs +42 -0
  723. data/sig/whop_sdk/models/person_retrieve_response.rbs +175 -0
  724. data/sig/whop_sdk/models/plan.rbs +325 -119
  725. data/sig/whop_sdk/models/plan_calculate_tax_params.rbs +344 -0
  726. data/sig/whop_sdk/models/plan_calculate_tax_response.rbs +67 -0
  727. data/sig/whop_sdk/models/plan_create_params.rbs +139 -98
  728. data/sig/whop_sdk/models/plan_list_params.rbs +93 -54
  729. data/sig/whop_sdk/models/plan_list_response.rbs +75 -126
  730. data/sig/whop_sdk/models/plan_update_params.rbs +115 -82
  731. data/sig/whop_sdk/models/product.rbs +5 -0
  732. data/sig/whop_sdk/models/product_create_params.rbs +33 -124
  733. data/sig/whop_sdk/models/product_list_item.rbs +5 -0
  734. data/sig/whop_sdk/models/product_list_params.rbs +53 -48
  735. data/sig/whop_sdk/models/product_update_params.rbs +15 -88
  736. data/sig/whop_sdk/models/referral_referred_users_params.rbs +63 -0
  737. data/sig/whop_sdk/models/referral_referred_users_response.rbs +140 -0
  738. data/sig/whop_sdk/models/referrals/business_leaderboard_params.rbs +46 -0
  739. data/sig/whop_sdk/models/referrals/business_leaderboard_response.rbs +221 -0
  740. data/sig/whop_sdk/models/referrals/business_list_params.rbs +176 -0
  741. data/sig/whop_sdk/models/referrals/business_list_response.rbs +267 -0
  742. data/sig/whop_sdk/models/referrals/business_retrieve_params.rbs +22 -0
  743. data/sig/whop_sdk/models/referrals/business_retrieve_response.rbs +677 -0
  744. data/sig/whop_sdk/models/referrals/businesses/earning_list_params.rbs +139 -0
  745. data/sig/whop_sdk/models/referrals/businesses/earning_list_response.rbs +288 -0
  746. data/sig/whop_sdk/models/referrals/partner_create_params.rbs +17 -0
  747. data/sig/whop_sdk/models/referrals/partner_create_response.rbs +21 -0
  748. data/sig/whop_sdk/models/refund_created_webhook_event.rbs +43 -4
  749. data/sig/whop_sdk/models/refund_retrieve_response.rbs +43 -4
  750. data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +43 -4
  751. data/sig/whop_sdk/models/resolution_center_case_platform_response.rbs +0 -2
  752. data/sig/whop_sdk/models/result_label_keys.rbs +80 -0
  753. data/sig/whop_sdk/models/setup_intent.rbs +8 -3
  754. data/sig/whop_sdk/models/social_account.rbs +74 -0
  755. data/sig/whop_sdk/models/social_account_connect_params.rbs +69 -0
  756. data/sig/whop_sdk/models/social_account_connect_response.rbs +13 -0
  757. data/sig/whop_sdk/models/social_account_create_params.rbs +43 -0
  758. data/sig/whop_sdk/models/social_account_delete_params.rbs +36 -0
  759. data/sig/whop_sdk/models/social_account_delete_response.rbs +5 -0
  760. data/sig/whop_sdk/models/social_account_list_params.rbs +152 -0
  761. data/sig/whop_sdk/models/social_account_post.rbs +111 -0
  762. data/sig/whop_sdk/models/social_account_posts_params.rbs +52 -0
  763. data/sig/whop_sdk/models/social_account_posts_response.rbs +37 -0
  764. data/sig/whop_sdk/models/stat_list_params.rbs +14 -0
  765. data/sig/whop_sdk/models/stat_list_response.rbs +72 -0
  766. data/sig/whop_sdk/models/stat_retrieve_params.rbs +211 -0
  767. data/sig/whop_sdk/models/stat_retrieve_response.rbs +81 -0
  768. data/sig/whop_sdk/models/swap_create_params.rbs +72 -0
  769. data/sig/whop_sdk/models/swap_create_quote_params.rbs +84 -0
  770. data/sig/whop_sdk/models/swap_create_quote_response.rbs +97 -0
  771. data/sig/whop_sdk/models/swap_create_response.rbs +73 -0
  772. data/sig/whop_sdk/models/swap_list_params.rbs +23 -0
  773. data/sig/whop_sdk/models/swap_list_response.rbs +68 -0
  774. data/sig/whop_sdk/models/swap_retrieve_params.rbs +20 -0
  775. data/sig/whop_sdk/models/swap_retrieve_response.rbs +55 -0
  776. data/sig/whop_sdk/models/tax_identifier_type.rbs +4 -0
  777. data/sig/whop_sdk/models/transfer_create_params.rbs +47 -10
  778. data/sig/whop_sdk/models/transfer_create_response.rbs +366 -0
  779. data/sig/whop_sdk/models/transfer_list_params.rbs +77 -42
  780. data/sig/whop_sdk/models/transfer_list_response.rbs +14 -14
  781. data/sig/whop_sdk/models/{transfer.rbs → transfer_retrieve_response.rbs} +83 -78
  782. data/sig/whop_sdk/models/unwrap_webhook_event.rbs +30 -22
  783. data/sig/whop_sdk/models/user.rbs +203 -16
  784. data/sig/whop_sdk/models/user_balance.rbs +171 -0
  785. data/sig/whop_sdk/models/user_check_access_response.rbs +19 -4
  786. data/sig/whop_sdk/models/user_list_params.rbs +30 -20
  787. data/sig/whop_sdk/models/user_retrieve_params.rbs +59 -4
  788. data/sig/whop_sdk/models/user_update_me_params.rbs +74 -0
  789. data/sig/whop_sdk/models/user_update_params.rbs +42 -24
  790. data/sig/whop_sdk/models/verification_create_params.rbs +364 -0
  791. data/sig/whop_sdk/models/verification_create_response.rbs +333 -0
  792. data/sig/whop_sdk/models/verification_list_params.rbs +40 -20
  793. data/sig/whop_sdk/models/verification_list_response.rbs +337 -20
  794. data/sig/whop_sdk/models/verification_retrieve_params.rbs +7 -4
  795. data/sig/whop_sdk/models/verification_retrieve_response.rbs +312 -14
  796. data/sig/whop_sdk/models/verification_update_params.rbs +570 -0
  797. data/sig/whop_sdk/models/verification_update_response.rbs +333 -0
  798. data/sig/whop_sdk/models/webhook_event.rbs +16 -0
  799. data/sig/whop_sdk/models/withdrawal.rbs +2 -0
  800. data/sig/whop_sdk/models/workforce/bounty_list_params.rbs +149 -0
  801. data/sig/whop_sdk/models/workforce/bounty_retrieve_params.rbs +22 -0
  802. data/sig/whop_sdk/models/workforce/workforce_bounty.rbs +232 -0
  803. data/sig/whop_sdk/models/workforce/workforce_bounty_list_item.rbs +227 -0
  804. data/sig/whop_sdk/models.rbs +151 -7
  805. data/sig/whop_sdk/resources/accounts/preferences.rbs +20 -0
  806. data/sig/whop_sdk/resources/accounts.rbs +76 -0
  807. data/sig/whop_sdk/resources/ad_campaigns.rbs +47 -15
  808. data/sig/whop_sdk/resources/ad_groups.rbs +77 -20
  809. data/sig/whop_sdk/resources/ad_reports.rbs +6 -4
  810. data/sig/whop_sdk/resources/ads.rbs +74 -12
  811. data/sig/whop_sdk/resources/apps.rbs +16 -0
  812. data/sig/whop_sdk/resources/audiences.rbs +28 -0
  813. data/sig/whop_sdk/resources/authorized_users.rbs +1 -0
  814. data/sig/whop_sdk/resources/bounties.rbs +4 -0
  815. data/sig/whop_sdk/resources/cards.rbs +47 -0
  816. data/sig/whop_sdk/resources/checkout_configurations.rbs +21 -11
  817. data/sig/whop_sdk/resources/deposits.rbs +20 -0
  818. data/sig/whop_sdk/resources/events.rbs +40 -0
  819. data/sig/whop_sdk/resources/files.rbs +1 -1
  820. data/sig/whop_sdk/resources/financial_activity.rbs +22 -0
  821. data/sig/whop_sdk/resources/media.rbs +22 -0
  822. data/sig/whop_sdk/resources/payments.rbs +1 -0
  823. data/sig/whop_sdk/resources/payouts/methods.rbs +23 -0
  824. data/sig/whop_sdk/resources/payouts.rbs +29 -0
  825. data/sig/whop_sdk/resources/people.rbs +28 -0
  826. data/sig/whop_sdk/resources/plans.rbs +37 -25
  827. data/sig/whop_sdk/resources/products.rbs +17 -31
  828. data/sig/whop_sdk/resources/referrals/businesses/earnings.rbs +25 -0
  829. data/sig/whop_sdk/resources/referrals/businesses.rbs +38 -0
  830. data/sig/whop_sdk/resources/referrals/partners.rbs +13 -0
  831. data/sig/whop_sdk/resources/referrals.rbs +21 -0
  832. data/sig/whop_sdk/resources/social_accounts.rbs +52 -0
  833. data/sig/whop_sdk/resources/stats.rbs +39 -0
  834. data/sig/whop_sdk/resources/swaps.rbs +41 -0
  835. data/sig/whop_sdk/resources/transfers.rbs +17 -14
  836. data/sig/whop_sdk/resources/users.rbs +26 -12
  837. data/sig/whop_sdk/resources/verifications.rbs +17 -7
  838. data/sig/whop_sdk/resources/webhooks.rbs +30 -22
  839. data/sig/whop_sdk/resources/workforce/bounties.rbs +30 -0
  840. data/sig/whop_sdk/resources/workforce.rbs +9 -0
  841. metadata +446 -65
  842. data/lib/whop_sdk/models/ad_campaign_list_response.rb +0 -126
  843. data/lib/whop_sdk/models/ad_campaign_pause_response.rb +0 -328
  844. data/lib/whop_sdk/models/ad_campaign_retrieve_response.rb +0 -328
  845. data/lib/whop_sdk/models/ad_campaign_unpause_response.rb +0 -328
  846. data/lib/whop_sdk/models/ad_campaign_update_response.rb +0 -328
  847. data/lib/whop_sdk/models/ad_group_list_response.rb +0 -118
  848. data/lib/whop_sdk/models/ad_group_retrieve_response.rb +0 -140
  849. data/lib/whop_sdk/models/ad_group_update_response.rb +0 -140
  850. data/lib/whop_sdk/models/ad_list_response.rb +0 -89
  851. data/lib/whop_sdk/models/ad_retrieve_response.rb +0 -133
  852. data/lib/whop_sdk/models/conversion_create_response.rb +0 -19
  853. data/lib/whop_sdk/models/payout_destination_category.rb +0 -20
  854. data/lib/whop_sdk/models/payout_method_list_params.rb +0 -54
  855. data/lib/whop_sdk/models/payout_method_list_response.rb +0 -140
  856. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +0 -140
  857. data/lib/whop_sdk/models/transfer.rb +0 -299
  858. data/lib/whop_sdk/models/user_list_response.rb +0 -83
  859. data/lib/whop_sdk/resources/conversions.rb +0 -67
  860. data/lib/whop_sdk/resources/payout_methods.rb +0 -76
  861. data/rbi/whop_sdk/models/ad_campaign_list_response.rbi +0 -239
  862. data/rbi/whop_sdk/models/ad_campaign_pause_response.rbi +0 -668
  863. data/rbi/whop_sdk/models/ad_campaign_retrieve_response.rbi +0 -679
  864. data/rbi/whop_sdk/models/ad_campaign_unpause_response.rbi +0 -675
  865. data/rbi/whop_sdk/models/ad_campaign_update_response.rbi +0 -670
  866. data/rbi/whop_sdk/models/ad_group_list_response.rbi +0 -228
  867. data/rbi/whop_sdk/models/ad_group_retrieve_response.rbi +0 -277
  868. data/rbi/whop_sdk/models/ad_group_update_response.rbi +0 -274
  869. data/rbi/whop_sdk/models/ad_list_response.rbi +0 -146
  870. data/rbi/whop_sdk/models/ad_retrieve_response.rbi +0 -245
  871. data/rbi/whop_sdk/models/conversion_create_params.rbi +0 -661
  872. data/rbi/whop_sdk/models/payout_destination_category.rbi +0 -33
  873. data/rbi/whop_sdk/models/payout_method_list_params.rbi +0 -75
  874. data/rbi/whop_sdk/models/payout_method_list_response.rbi +0 -234
  875. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +0 -238
  876. data/rbi/whop_sdk/models/transfer.rbi +0 -407
  877. data/rbi/whop_sdk/models/user_list_response.rbi +0 -124
  878. data/rbi/whop_sdk/resources/conversions.rbi +0 -71
  879. data/rbi/whop_sdk/resources/payout_methods.rbi +0 -66
  880. data/sig/whop_sdk/models/ad_campaign_list_response.rbs +0 -98
  881. data/sig/whop_sdk/models/ad_campaign_pause_response.rbs +0 -232
  882. data/sig/whop_sdk/models/ad_campaign_retrieve_response.rbs +0 -232
  883. data/sig/whop_sdk/models/ad_campaign_unpause_response.rbs +0 -232
  884. data/sig/whop_sdk/models/ad_campaign_update_response.rbs +0 -232
  885. data/sig/whop_sdk/models/ad_group_list_response.rbs +0 -93
  886. data/sig/whop_sdk/models/ad_group_retrieve_response.rbs +0 -108
  887. data/sig/whop_sdk/models/ad_group_update_response.rbs +0 -108
  888. data/sig/whop_sdk/models/ad_list_response.rbs +0 -72
  889. data/sig/whop_sdk/models/ad_retrieve_response.rbs +0 -102
  890. data/sig/whop_sdk/models/conversion_create_params.rbs +0 -349
  891. data/sig/whop_sdk/models/payout_destination_category.rbs +0 -19
  892. data/sig/whop_sdk/models/payout_method_list_params.rbs +0 -46
  893. data/sig/whop_sdk/models/payout_method_list_response.rbs +0 -97
  894. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +0 -97
  895. data/sig/whop_sdk/models/user_list_response.rbs +0 -55
  896. data/sig/whop_sdk/resources/conversions.rbs +0 -25
  897. data/sig/whop_sdk/resources/payout_methods.rbs +0 -21
@@ -5,281 +5,226 @@ module WhopSDK
5
5
  class Plan < WhopSDK::Internal::Type::BaseModel
6
6
  OrHash = T.type_alias { T.any(WhopSDK::Plan, WhopSDK::Internal::AnyHash) }
7
7
 
8
- # The unique identifier for the plan.
8
+ # Plan ID, prefixed `plan_`.
9
9
  sig { returns(String) }
10
10
  attr_accessor :id
11
11
 
12
- # Whether the creator has turned on adaptive pricing for this plan. Raw setting —
13
- # does not check processor compatibility or feature flags.
12
+ # Account that sells this plan; `null` for standalone invoice plans.
13
+ sig { returns(T.nilable(T.anything)) }
14
+ attr_accessor :account
15
+
16
+ # Whether this plan accepts local currency payments via adaptive pricing.
14
17
  sig { returns(T::Boolean) }
15
18
  attr_accessor :adaptive_pricing_enabled
16
19
 
17
- # The number of days between each recurring charge. Null for one-time plans. For
18
- # example, 30 for monthly or 365 for annual billing.
19
- sig { returns(T.nilable(Integer)) }
20
+ # Recurring billing interval in days, such as 30 for monthly or 365 for annual.
21
+ # `null` for one-time plans.
22
+ sig { returns(T.nilable(Float)) }
20
23
  attr_accessor :billing_period
21
24
 
22
- # Whether tax is collected on purchases of this plan, based on the company's tax
23
- # configuration.
25
+ # Whether tax is collected on purchases of this plan.
24
26
  sig { returns(T::Boolean) }
25
27
  attr_accessor :collect_tax
26
28
 
27
- # The company that sells this plan. Null for standalone invoice plans not linked
28
- # to a company.
29
- sig { returns(T.nilable(WhopSDK::Plan::Company)) }
30
- attr_reader :company
31
-
32
- sig { params(company: T.nilable(WhopSDK::Plan::Company::OrHash)).void }
33
- attr_writer :company
34
-
35
- # The datetime the plan was created.
36
- sig { returns(Time) }
29
+ # When the plan was created, as an ISO 8601 timestamp.
30
+ sig { returns(String) }
37
31
  attr_accessor :created_at
38
32
 
39
- # The currency used for all prices on this plan (e.g., 'usd', 'eur'). All monetary
40
- # amounts on the plan are denominated in this currency.
41
- sig { returns(WhopSDK::Currency::TaggedSymbol) }
33
+ # Three-letter ISO currency code for this plan's prices.
34
+ sig { returns(WhopSDK::Plan::Currency::TaggedSymbol) }
42
35
  attr_accessor :currency
43
36
 
44
- # Custom input fields displayed on the checkout form that collect additional
45
- # information from the buyer.
46
37
  sig { returns(T::Array[WhopSDK::Plan::CustomField]) }
47
38
  attr_accessor :custom_fields
48
39
 
49
- # A text description of the plan visible to customers. Maximum 1000 characters.
50
- # Null if no description is set.
40
+ # Customer-visible plan description.
51
41
  sig { returns(T.nilable(String)) }
52
42
  attr_accessor :description
53
43
 
54
- # The number of days until the membership expires (for expiration-based plans).
55
- # For example, 365 for a one-year access pass.
56
- sig { returns(T.nilable(Integer)) }
44
+ # Access duration in days for expiration-based plans.
45
+ sig { returns(T.nilable(Float)) }
57
46
  attr_accessor :expiration_days
58
47
 
59
- # The initial purchase price in the plan's base_currency (e.g., 49.99 for $49.99).
60
- # For one-time plans, this is the full price. For renewal plans, this is charged
61
- # on top of the first renewal_price.
48
+ # Initial purchase price in plan currency.
62
49
  sig { returns(Float) }
63
50
  attr_accessor :initial_price
64
51
 
65
- # Private notes visible only to the company owner and team members. Not shown to
66
- # customers. Null if no notes have been added.
52
+ # Private notes visible only to authorized team members.
67
53
  sig { returns(T.nilable(String)) }
68
54
  attr_accessor :internal_notes
69
55
 
70
- # The invoice this plan was generated for. Null if the plan was not created for a
71
- # specific invoice.
72
- sig { returns(T.nilable(WhopSDK::Plan::Invoice)) }
73
- attr_reader :invoice
74
-
75
- sig { params(invoice: T.nilable(WhopSDK::Plan::Invoice::OrHash)).void }
76
- attr_writer :invoice
56
+ # Invoice this plan was generated for; `null` unless created for an invoice.
57
+ sig { returns(T.nilable(T.anything)) }
58
+ attr_accessor :invoice
77
59
 
78
- # The number of users who currently hold an active membership through this plan.
79
- # Only visible to authorized team members.
80
- sig { returns(T.nilable(Integer)) }
60
+ # Active memberships through this plan, when visible to the requester.
61
+ sig { returns(T.nilable(Float)) }
81
62
  attr_accessor :member_count
82
63
 
83
- # The explicit payment method configuration specifying which payment methods are
84
- # enabled or disabled for this plan. Null if the plan uses default settings.
85
- sig { returns(T.nilable(WhopSDK::Plan::PaymentMethodConfiguration)) }
86
- attr_reader :payment_method_configuration
64
+ # Custom key-value pairs stored on the plan.
65
+ sig { returns(T.nilable(T.anything)) }
66
+ attr_accessor :metadata
87
67
 
88
- sig do
89
- params(
90
- payment_method_configuration:
91
- T.nilable(WhopSDK::Plan::PaymentMethodConfiguration::OrHash)
92
- ).void
93
- end
94
- attr_writer :payment_method_configuration
68
+ # Payment method configuration (`enabled`, `disabled`,
69
+ # `include_platform_defaults`); `null` when plan uses default settings.
70
+ sig { returns(T.nilable(T.anything)) }
71
+ attr_accessor :payment_method_configuration
95
72
 
96
- # The billing model for this plan: 'renewal' for recurring subscriptions or
97
- # 'one_time' for single payments.
98
- sig { returns(WhopSDK::PlanType::TaggedSymbol) }
73
+ # Billing model for this plan: `renewal` (recurring) or `one_time` (single
74
+ # payment).
75
+ sig { returns(WhopSDK::Plan::PlanType::TaggedSymbol) }
99
76
  attr_accessor :plan_type
100
77
 
101
- # The product that this plan belongs to. Null for standalone one-off purchases not
102
- # linked to a product.
103
- sig { returns(T.nilable(WhopSDK::Plan::Product)) }
104
- attr_reader :product
105
-
106
- sig { params(product: T.nilable(WhopSDK::Plan::Product::OrHash)).void }
107
- attr_writer :product
78
+ # Product this plan belongs to; `null` for standalone plans.
79
+ sig { returns(T.nilable(T.anything)) }
80
+ attr_accessor :product
108
81
 
109
- # The full URL where customers can purchase this plan directly, bypassing the
110
- # product page.
82
+ # URL where customers can purchase this plan directly.
111
83
  sig { returns(String) }
112
84
  attr_accessor :purchase_url
113
85
 
114
- # The method used to sell this plan: 'buy_now' for immediate purchase or
115
- # 'waitlist' for waitlist-based access.
116
- sig { returns(WhopSDK::ReleaseMethod::TaggedSymbol) }
86
+ # Sales method for this plan, such as `buy_now` or `waitlist`.
87
+ sig { returns(WhopSDK::Plan::ReleaseMethod::TaggedSymbol) }
117
88
  attr_accessor :release_method
118
89
 
119
- # The recurring price charged every billing_period in the plan's base_currency
120
- # (e.g., 9.99 for $9.99/period). Zero for one-time plans.
90
+ # Recurring price charged every billing period.
121
91
  sig { returns(Float) }
122
92
  attr_accessor :renewal_price
123
93
 
124
- # The total number of installment payments required before the subscription
125
- # pauses. Null if split pay is not configured. Must be greater than 1.
126
- sig { returns(T.nilable(Integer)) }
94
+ # Installment payments required before the subscription pauses.
95
+ sig { returns(T.nilable(Float)) }
127
96
  attr_accessor :split_pay_required_payments
128
97
 
129
- # The number of units available for purchase. Only visible to authorized team
130
- # members. Null if the requester lacks permission.
131
- sig { returns(T.nilable(Integer)) }
98
+ # Units available for purchase, when visible to the requester.
99
+ sig { returns(T.nilable(Float)) }
132
100
  attr_accessor :stock
133
101
 
134
- # How tax is handled for this plan: 'inclusive' (tax included in price),
135
- # 'exclusive' (tax added at checkout), or 'unspecified' (tax not configured).
136
- sig { returns(WhopSDK::TaxType::TaggedSymbol) }
102
+ # How tax is handled for this plan.
103
+ sig { returns(WhopSDK::Plan::TaxType::TaggedSymbol) }
137
104
  attr_accessor :tax_type
138
105
 
139
- # The display name of the plan shown to customers on the product page and at
140
- # checkout. Maximum 30 characters. Null if no title has been set.
106
+ # 3D Secure behavior for this plan; `null` inherits account default.
107
+ sig { returns(T.nilable(WhopSDK::Plan::ThreeDSLevel::TaggedSymbol)) }
108
+ attr_accessor :three_ds_level
109
+
110
+ # Plan display name shown to customers.
141
111
  sig { returns(T.nilable(String)) }
142
112
  attr_accessor :title
143
113
 
144
- # The number of free trial days before the first charge on a renewal plan. Null if
145
- # no trial is configured or the current user has already used a trial for this
146
- # plan.
147
- sig { returns(T.nilable(Integer)) }
114
+ # Free trial days before the first renewal charge. `null` if no trial is
115
+ # configured or the user has already used a trial for this plan.
116
+ sig { returns(T.nilable(Float)) }
148
117
  attr_accessor :trial_period_days
149
118
 
150
- # When true, the plan has unlimited stock (stock field is ignored). When false,
151
- # purchases are limited by the stock field.
119
+ # Whether the plan has unlimited stock.
152
120
  sig { returns(T::Boolean) }
153
121
  attr_accessor :unlimited_stock
154
122
 
155
- # The datetime the plan was last updated.
156
- sig { returns(Time) }
123
+ # When the plan was last updated, as an ISO 8601 timestamp.
124
+ sig { returns(String) }
157
125
  attr_accessor :updated_at
158
126
 
159
- # Controls whether the plan is visible to customers. When set to 'hidden', the
160
- # plan is only accessible via direct link.
161
- sig { returns(WhopSDK::Visibility::TaggedSymbol) }
127
+ # Whether the plan is visible to customers or hidden from public view.
128
+ sig { returns(WhopSDK::Plan::Visibility::TaggedSymbol) }
162
129
  attr_accessor :visibility
163
130
 
164
- # A plan defines pricing and billing terms for a checkout. Plans can optionally
165
- # belong to a product, where they represent different pricing options such as
166
- # one-time payments, recurring subscriptions, or free trials.
167
131
  sig do
168
132
  params(
169
133
  id: String,
134
+ account: T.nilable(T.anything),
170
135
  adaptive_pricing_enabled: T::Boolean,
171
- billing_period: T.nilable(Integer),
136
+ billing_period: T.nilable(Float),
172
137
  collect_tax: T::Boolean,
173
- company: T.nilable(WhopSDK::Plan::Company::OrHash),
174
- created_at: Time,
175
- currency: WhopSDK::Currency::OrSymbol,
138
+ created_at: String,
139
+ currency: WhopSDK::Plan::Currency::OrSymbol,
176
140
  custom_fields: T::Array[WhopSDK::Plan::CustomField::OrHash],
177
141
  description: T.nilable(String),
178
- expiration_days: T.nilable(Integer),
142
+ expiration_days: T.nilable(Float),
179
143
  initial_price: Float,
180
144
  internal_notes: T.nilable(String),
181
- invoice: T.nilable(WhopSDK::Plan::Invoice::OrHash),
182
- member_count: T.nilable(Integer),
183
- payment_method_configuration:
184
- T.nilable(WhopSDK::Plan::PaymentMethodConfiguration::OrHash),
185
- plan_type: WhopSDK::PlanType::OrSymbol,
186
- product: T.nilable(WhopSDK::Plan::Product::OrHash),
145
+ invoice: T.nilable(T.anything),
146
+ member_count: T.nilable(Float),
147
+ metadata: T.nilable(T.anything),
148
+ payment_method_configuration: T.nilable(T.anything),
149
+ plan_type: WhopSDK::Plan::PlanType::OrSymbol,
150
+ product: T.nilable(T.anything),
187
151
  purchase_url: String,
188
- release_method: WhopSDK::ReleaseMethod::OrSymbol,
152
+ release_method: WhopSDK::Plan::ReleaseMethod::OrSymbol,
189
153
  renewal_price: Float,
190
- split_pay_required_payments: T.nilable(Integer),
191
- stock: T.nilable(Integer),
192
- tax_type: WhopSDK::TaxType::OrSymbol,
154
+ split_pay_required_payments: T.nilable(Float),
155
+ stock: T.nilable(Float),
156
+ tax_type: WhopSDK::Plan::TaxType::OrSymbol,
157
+ three_ds_level: T.nilable(WhopSDK::Plan::ThreeDSLevel::OrSymbol),
193
158
  title: T.nilable(String),
194
- trial_period_days: T.nilable(Integer),
159
+ trial_period_days: T.nilable(Float),
195
160
  unlimited_stock: T::Boolean,
196
- updated_at: Time,
197
- visibility: WhopSDK::Visibility::OrSymbol
161
+ updated_at: String,
162
+ visibility: WhopSDK::Plan::Visibility::OrSymbol
198
163
  ).returns(T.attached_class)
199
164
  end
200
165
  def self.new(
201
- # The unique identifier for the plan.
166
+ # Plan ID, prefixed `plan_`.
202
167
  id:,
203
- # Whether the creator has turned on adaptive pricing for this plan. Raw setting —
204
- # does not check processor compatibility or feature flags.
168
+ # Account that sells this plan; `null` for standalone invoice plans.
169
+ account:,
170
+ # Whether this plan accepts local currency payments via adaptive pricing.
205
171
  adaptive_pricing_enabled:,
206
- # The number of days between each recurring charge. Null for one-time plans. For
207
- # example, 30 for monthly or 365 for annual billing.
172
+ # Recurring billing interval in days, such as 30 for monthly or 365 for annual.
173
+ # `null` for one-time plans.
208
174
  billing_period:,
209
- # Whether tax is collected on purchases of this plan, based on the company's tax
210
- # configuration.
175
+ # Whether tax is collected on purchases of this plan.
211
176
  collect_tax:,
212
- # The company that sells this plan. Null for standalone invoice plans not linked
213
- # to a company.
214
- company:,
215
- # The datetime the plan was created.
177
+ # When the plan was created, as an ISO 8601 timestamp.
216
178
  created_at:,
217
- # The currency used for all prices on this plan (e.g., 'usd', 'eur'). All monetary
218
- # amounts on the plan are denominated in this currency.
179
+ # Three-letter ISO currency code for this plan's prices.
219
180
  currency:,
220
- # Custom input fields displayed on the checkout form that collect additional
221
- # information from the buyer.
222
181
  custom_fields:,
223
- # A text description of the plan visible to customers. Maximum 1000 characters.
224
- # Null if no description is set.
182
+ # Customer-visible plan description.
225
183
  description:,
226
- # The number of days until the membership expires (for expiration-based plans).
227
- # For example, 365 for a one-year access pass.
184
+ # Access duration in days for expiration-based plans.
228
185
  expiration_days:,
229
- # The initial purchase price in the plan's base_currency (e.g., 49.99 for $49.99).
230
- # For one-time plans, this is the full price. For renewal plans, this is charged
231
- # on top of the first renewal_price.
186
+ # Initial purchase price in plan currency.
232
187
  initial_price:,
233
- # Private notes visible only to the company owner and team members. Not shown to
234
- # customers. Null if no notes have been added.
188
+ # Private notes visible only to authorized team members.
235
189
  internal_notes:,
236
- # The invoice this plan was generated for. Null if the plan was not created for a
237
- # specific invoice.
190
+ # Invoice this plan was generated for; `null` unless created for an invoice.
238
191
  invoice:,
239
- # The number of users who currently hold an active membership through this plan.
240
- # Only visible to authorized team members.
192
+ # Active memberships through this plan, when visible to the requester.
241
193
  member_count:,
242
- # The explicit payment method configuration specifying which payment methods are
243
- # enabled or disabled for this plan. Null if the plan uses default settings.
194
+ # Custom key-value pairs stored on the plan.
195
+ metadata:,
196
+ # Payment method configuration (`enabled`, `disabled`,
197
+ # `include_platform_defaults`); `null` when plan uses default settings.
244
198
  payment_method_configuration:,
245
- # The billing model for this plan: 'renewal' for recurring subscriptions or
246
- # 'one_time' for single payments.
199
+ # Billing model for this plan: `renewal` (recurring) or `one_time` (single
200
+ # payment).
247
201
  plan_type:,
248
- # The product that this plan belongs to. Null for standalone one-off purchases not
249
- # linked to a product.
202
+ # Product this plan belongs to; `null` for standalone plans.
250
203
  product:,
251
- # The full URL where customers can purchase this plan directly, bypassing the
252
- # product page.
204
+ # URL where customers can purchase this plan directly.
253
205
  purchase_url:,
254
- # The method used to sell this plan: 'buy_now' for immediate purchase or
255
- # 'waitlist' for waitlist-based access.
206
+ # Sales method for this plan, such as `buy_now` or `waitlist`.
256
207
  release_method:,
257
- # The recurring price charged every billing_period in the plan's base_currency
258
- # (e.g., 9.99 for $9.99/period). Zero for one-time plans.
208
+ # Recurring price charged every billing period.
259
209
  renewal_price:,
260
- # The total number of installment payments required before the subscription
261
- # pauses. Null if split pay is not configured. Must be greater than 1.
210
+ # Installment payments required before the subscription pauses.
262
211
  split_pay_required_payments:,
263
- # The number of units available for purchase. Only visible to authorized team
264
- # members. Null if the requester lacks permission.
212
+ # Units available for purchase, when visible to the requester.
265
213
  stock:,
266
- # How tax is handled for this plan: 'inclusive' (tax included in price),
267
- # 'exclusive' (tax added at checkout), or 'unspecified' (tax not configured).
214
+ # How tax is handled for this plan.
268
215
  tax_type:,
269
- # The display name of the plan shown to customers on the product page and at
270
- # checkout. Maximum 30 characters. Null if no title has been set.
216
+ # 3D Secure behavior for this plan; `null` inherits account default.
217
+ three_ds_level:,
218
+ # Plan display name shown to customers.
271
219
  title:,
272
- # The number of free trial days before the first charge on a renewal plan. Null if
273
- # no trial is configured or the current user has already used a trial for this
274
- # plan.
220
+ # Free trial days before the first renewal charge. `null` if no trial is
221
+ # configured or the user has already used a trial for this plan.
275
222
  trial_period_days:,
276
- # When true, the plan has unlimited stock (stock field is ignored). When false,
277
- # purchases are limited by the stock field.
223
+ # Whether the plan has unlimited stock.
278
224
  unlimited_stock:,
279
- # The datetime the plan was last updated.
225
+ # When the plan was last updated, as an ISO 8601 timestamp.
280
226
  updated_at:,
281
- # Controls whether the plan is visible to customers. When set to 'hidden', the
282
- # plan is only accessible via direct link.
227
+ # Whether the plan is visible to customers or hidden from public view.
283
228
  visibility:
284
229
  )
285
230
  end
@@ -288,67 +233,144 @@ module WhopSDK
288
233
  override.returns(
289
234
  {
290
235
  id: String,
236
+ account: T.nilable(T.anything),
291
237
  adaptive_pricing_enabled: T::Boolean,
292
- billing_period: T.nilable(Integer),
238
+ billing_period: T.nilable(Float),
293
239
  collect_tax: T::Boolean,
294
- company: T.nilable(WhopSDK::Plan::Company),
295
- created_at: Time,
296
- currency: WhopSDK::Currency::TaggedSymbol,
240
+ created_at: String,
241
+ currency: WhopSDK::Plan::Currency::TaggedSymbol,
297
242
  custom_fields: T::Array[WhopSDK::Plan::CustomField],
298
243
  description: T.nilable(String),
299
- expiration_days: T.nilable(Integer),
244
+ expiration_days: T.nilable(Float),
300
245
  initial_price: Float,
301
246
  internal_notes: T.nilable(String),
302
- invoice: T.nilable(WhopSDK::Plan::Invoice),
303
- member_count: T.nilable(Integer),
304
- payment_method_configuration:
305
- T.nilable(WhopSDK::Plan::PaymentMethodConfiguration),
306
- plan_type: WhopSDK::PlanType::TaggedSymbol,
307
- product: T.nilable(WhopSDK::Plan::Product),
247
+ invoice: T.nilable(T.anything),
248
+ member_count: T.nilable(Float),
249
+ metadata: T.nilable(T.anything),
250
+ payment_method_configuration: T.nilable(T.anything),
251
+ plan_type: WhopSDK::Plan::PlanType::TaggedSymbol,
252
+ product: T.nilable(T.anything),
308
253
  purchase_url: String,
309
- release_method: WhopSDK::ReleaseMethod::TaggedSymbol,
254
+ release_method: WhopSDK::Plan::ReleaseMethod::TaggedSymbol,
310
255
  renewal_price: Float,
311
- split_pay_required_payments: T.nilable(Integer),
312
- stock: T.nilable(Integer),
313
- tax_type: WhopSDK::TaxType::TaggedSymbol,
256
+ split_pay_required_payments: T.nilable(Float),
257
+ stock: T.nilable(Float),
258
+ tax_type: WhopSDK::Plan::TaxType::TaggedSymbol,
259
+ three_ds_level:
260
+ T.nilable(WhopSDK::Plan::ThreeDSLevel::TaggedSymbol),
314
261
  title: T.nilable(String),
315
- trial_period_days: T.nilable(Integer),
262
+ trial_period_days: T.nilable(Float),
316
263
  unlimited_stock: T::Boolean,
317
- updated_at: Time,
318
- visibility: WhopSDK::Visibility::TaggedSymbol
264
+ updated_at: String,
265
+ visibility: WhopSDK::Plan::Visibility::TaggedSymbol
319
266
  }
320
267
  )
321
268
  end
322
269
  def to_hash
323
270
  end
324
271
 
325
- class Company < WhopSDK::Internal::Type::BaseModel
326
- OrHash =
327
- T.type_alias do
328
- T.any(WhopSDK::Plan::Company, WhopSDK::Internal::AnyHash)
329
- end
330
-
331
- # The unique identifier for the company.
332
- sig { returns(String) }
333
- attr_accessor :id
334
-
335
- # The display name of the company shown to customers.
336
- sig { returns(String) }
337
- attr_accessor :title
272
+ # Three-letter ISO currency code for this plan's prices.
273
+ module Currency
274
+ extend WhopSDK::Internal::Type::Enum
275
+
276
+ TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::Plan::Currency) }
277
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
278
+
279
+ USD = T.let(:usd, WhopSDK::Plan::Currency::TaggedSymbol)
280
+ SGD = T.let(:sgd, WhopSDK::Plan::Currency::TaggedSymbol)
281
+ INR = T.let(:inr, WhopSDK::Plan::Currency::TaggedSymbol)
282
+ AUD = T.let(:aud, WhopSDK::Plan::Currency::TaggedSymbol)
283
+ BRL = T.let(:brl, WhopSDK::Plan::Currency::TaggedSymbol)
284
+ CAD = T.let(:cad, WhopSDK::Plan::Currency::TaggedSymbol)
285
+ DKK = T.let(:dkk, WhopSDK::Plan::Currency::TaggedSymbol)
286
+ EUR = T.let(:eur, WhopSDK::Plan::Currency::TaggedSymbol)
287
+ NOK = T.let(:nok, WhopSDK::Plan::Currency::TaggedSymbol)
288
+ GBP = T.let(:gbp, WhopSDK::Plan::Currency::TaggedSymbol)
289
+ SEK = T.let(:sek, WhopSDK::Plan::Currency::TaggedSymbol)
290
+ CHF = T.let(:chf, WhopSDK::Plan::Currency::TaggedSymbol)
291
+ HKD = T.let(:hkd, WhopSDK::Plan::Currency::TaggedSymbol)
292
+ HUF = T.let(:huf, WhopSDK::Plan::Currency::TaggedSymbol)
293
+ JPY = T.let(:jpy, WhopSDK::Plan::Currency::TaggedSymbol)
294
+ MXN = T.let(:mxn, WhopSDK::Plan::Currency::TaggedSymbol)
295
+ MYR = T.let(:myr, WhopSDK::Plan::Currency::TaggedSymbol)
296
+ PLN = T.let(:pln, WhopSDK::Plan::Currency::TaggedSymbol)
297
+ CZK = T.let(:czk, WhopSDK::Plan::Currency::TaggedSymbol)
298
+ NZD = T.let(:nzd, WhopSDK::Plan::Currency::TaggedSymbol)
299
+ AED = T.let(:aed, WhopSDK::Plan::Currency::TaggedSymbol)
300
+ ETH = T.let(:eth, WhopSDK::Plan::Currency::TaggedSymbol)
301
+ APE = T.let(:ape, WhopSDK::Plan::Currency::TaggedSymbol)
302
+ COP = T.let(:cop, WhopSDK::Plan::Currency::TaggedSymbol)
303
+ RON = T.let(:ron, WhopSDK::Plan::Currency::TaggedSymbol)
304
+ THB = T.let(:thb, WhopSDK::Plan::Currency::TaggedSymbol)
305
+ BGN = T.let(:bgn, WhopSDK::Plan::Currency::TaggedSymbol)
306
+ IDR = T.let(:idr, WhopSDK::Plan::Currency::TaggedSymbol)
307
+ DOP = T.let(:dop, WhopSDK::Plan::Currency::TaggedSymbol)
308
+ PHP = T.let(:php, WhopSDK::Plan::Currency::TaggedSymbol)
309
+ TRY = T.let(:try, WhopSDK::Plan::Currency::TaggedSymbol)
310
+ KRW = T.let(:krw, WhopSDK::Plan::Currency::TaggedSymbol)
311
+ TWD = T.let(:twd, WhopSDK::Plan::Currency::TaggedSymbol)
312
+ VND = T.let(:vnd, WhopSDK::Plan::Currency::TaggedSymbol)
313
+ PKR = T.let(:pkr, WhopSDK::Plan::Currency::TaggedSymbol)
314
+ CLP = T.let(:clp, WhopSDK::Plan::Currency::TaggedSymbol)
315
+ UYU = T.let(:uyu, WhopSDK::Plan::Currency::TaggedSymbol)
316
+ ARS = T.let(:ars, WhopSDK::Plan::Currency::TaggedSymbol)
317
+ ZAR = T.let(:zar, WhopSDK::Plan::Currency::TaggedSymbol)
318
+ DZD = T.let(:dzd, WhopSDK::Plan::Currency::TaggedSymbol)
319
+ TND = T.let(:tnd, WhopSDK::Plan::Currency::TaggedSymbol)
320
+ MAD = T.let(:mad, WhopSDK::Plan::Currency::TaggedSymbol)
321
+ KES = T.let(:kes, WhopSDK::Plan::Currency::TaggedSymbol)
322
+ KWD = T.let(:kwd, WhopSDK::Plan::Currency::TaggedSymbol)
323
+ JOD = T.let(:jod, WhopSDK::Plan::Currency::TaggedSymbol)
324
+ ALL = T.let(:all, WhopSDK::Plan::Currency::TaggedSymbol)
325
+ XCD = T.let(:xcd, WhopSDK::Plan::Currency::TaggedSymbol)
326
+ AMD = T.let(:amd, WhopSDK::Plan::Currency::TaggedSymbol)
327
+ BSD = T.let(:bsd, WhopSDK::Plan::Currency::TaggedSymbol)
328
+ BHD = T.let(:bhd, WhopSDK::Plan::Currency::TaggedSymbol)
329
+ BOB = T.let(:bob, WhopSDK::Plan::Currency::TaggedSymbol)
330
+ BAM = T.let(:bam, WhopSDK::Plan::Currency::TaggedSymbol)
331
+ KHR = T.let(:khr, WhopSDK::Plan::Currency::TaggedSymbol)
332
+ CRC = T.let(:crc, WhopSDK::Plan::Currency::TaggedSymbol)
333
+ XOF = T.let(:xof, WhopSDK::Plan::Currency::TaggedSymbol)
334
+ EGP = T.let(:egp, WhopSDK::Plan::Currency::TaggedSymbol)
335
+ ETB = T.let(:etb, WhopSDK::Plan::Currency::TaggedSymbol)
336
+ GMD = T.let(:gmd, WhopSDK::Plan::Currency::TaggedSymbol)
337
+ GHS = T.let(:ghs, WhopSDK::Plan::Currency::TaggedSymbol)
338
+ GTQ = T.let(:gtq, WhopSDK::Plan::Currency::TaggedSymbol)
339
+ GYD = T.let(:gyd, WhopSDK::Plan::Currency::TaggedSymbol)
340
+ ILS = T.let(:ils, WhopSDK::Plan::Currency::TaggedSymbol)
341
+ JMD = T.let(:jmd, WhopSDK::Plan::Currency::TaggedSymbol)
342
+ MOP = T.let(:mop, WhopSDK::Plan::Currency::TaggedSymbol)
343
+ MGA = T.let(:mga, WhopSDK::Plan::Currency::TaggedSymbol)
344
+ MUR = T.let(:mur, WhopSDK::Plan::Currency::TaggedSymbol)
345
+ MDL = T.let(:mdl, WhopSDK::Plan::Currency::TaggedSymbol)
346
+ MNT = T.let(:mnt, WhopSDK::Plan::Currency::TaggedSymbol)
347
+ NAD = T.let(:nad, WhopSDK::Plan::Currency::TaggedSymbol)
348
+ NGN = T.let(:ngn, WhopSDK::Plan::Currency::TaggedSymbol)
349
+ MKD = T.let(:mkd, WhopSDK::Plan::Currency::TaggedSymbol)
350
+ OMR = T.let(:omr, WhopSDK::Plan::Currency::TaggedSymbol)
351
+ PYG = T.let(:pyg, WhopSDK::Plan::Currency::TaggedSymbol)
352
+ PEN = T.let(:pen, WhopSDK::Plan::Currency::TaggedSymbol)
353
+ QAR = T.let(:qar, WhopSDK::Plan::Currency::TaggedSymbol)
354
+ RWF = T.let(:rwf, WhopSDK::Plan::Currency::TaggedSymbol)
355
+ SAR = T.let(:sar, WhopSDK::Plan::Currency::TaggedSymbol)
356
+ RSD = T.let(:rsd, WhopSDK::Plan::Currency::TaggedSymbol)
357
+ LKR = T.let(:lkr, WhopSDK::Plan::Currency::TaggedSymbol)
358
+ TZS = T.let(:tzs, WhopSDK::Plan::Currency::TaggedSymbol)
359
+ TTD = T.let(:ttd, WhopSDK::Plan::Currency::TaggedSymbol)
360
+ UZS = T.let(:uzs, WhopSDK::Plan::Currency::TaggedSymbol)
361
+ RUB = T.let(:rub, WhopSDK::Plan::Currency::TaggedSymbol)
362
+ BTC = T.let(:btc, WhopSDK::Plan::Currency::TaggedSymbol)
363
+ CNY = T.let(:cny, WhopSDK::Plan::Currency::TaggedSymbol)
364
+ USDT = T.let(:usdt, WhopSDK::Plan::Currency::TaggedSymbol)
365
+ KZT = T.let(:kzt, WhopSDK::Plan::Currency::TaggedSymbol)
366
+ AWG = T.let(:awg, WhopSDK::Plan::Currency::TaggedSymbol)
367
+ WHOP_USD = T.let(:whop_usd, WhopSDK::Plan::Currency::TaggedSymbol)
368
+ XAU = T.let(:xau, WhopSDK::Plan::Currency::TaggedSymbol)
338
369
 
339
- # The company that sells this plan. Null for standalone invoice plans not linked
340
- # to a company.
341
- sig { params(id: String, title: String).returns(T.attached_class) }
342
- def self.new(
343
- # The unique identifier for the company.
344
- id:,
345
- # The display name of the company shown to customers.
346
- title:
347
- )
370
+ sig do
371
+ override.returns(T::Array[WhopSDK::Plan::Currency::TaggedSymbol])
348
372
  end
349
-
350
- sig { override.returns({ id: String, title: String }) }
351
- def to_hash
373
+ def self.values
352
374
  end
353
375
  end
354
376
 
@@ -358,54 +380,54 @@ module WhopSDK
358
380
  T.any(WhopSDK::Plan::CustomField, WhopSDK::Internal::AnyHash)
359
381
  end
360
382
 
361
- # The unique identifier for the custom field.
383
+ # Custom field ID.
362
384
  sig { returns(String) }
363
385
  attr_accessor :id
364
386
 
365
- # What type of input field to use.
366
- sig { returns(Symbol) }
387
+ # Custom field input type.
388
+ sig { returns(WhopSDK::Plan::CustomField::FieldType::TaggedSymbol) }
367
389
  attr_accessor :field_type
368
390
 
369
- # The title/header of the custom field.
391
+ # Field label shown to customer at checkout.
370
392
  sig { returns(String) }
371
393
  attr_accessor :name
372
394
 
373
- # How the custom field should be ordered when rendered on the checkout page.
374
- sig { returns(T.nilable(Integer)) }
395
+ # Field position on checkout form.
396
+ sig { returns(Float) }
375
397
  attr_accessor :order
376
398
 
377
- # An example response displayed in the input field.
399
+ # Placeholder text shown in empty field.
378
400
  sig { returns(T.nilable(String)) }
379
401
  attr_accessor :placeholder
380
402
 
381
- # Whether or not the custom field is required.
403
+ # Whether the customer must complete this field to check out.
382
404
  sig { returns(T::Boolean) }
383
405
  attr_accessor :required
384
406
 
385
- # An object representing a custom field for a plan.
407
+ # Custom input fields collected on the checkout form.
386
408
  sig do
387
409
  params(
388
410
  id: String,
411
+ field_type: WhopSDK::Plan::CustomField::FieldType::OrSymbol,
389
412
  name: String,
390
- order: T.nilable(Integer),
413
+ order: Float,
391
414
  placeholder: T.nilable(String),
392
- required: T::Boolean,
393
- field_type: Symbol
415
+ required: T::Boolean
394
416
  ).returns(T.attached_class)
395
417
  end
396
418
  def self.new(
397
- # The unique identifier for the custom field.
419
+ # Custom field ID.
398
420
  id:,
399
- # The title/header of the custom field.
421
+ # Custom field input type.
422
+ field_type:,
423
+ # Field label shown to customer at checkout.
400
424
  name:,
401
- # How the custom field should be ordered when rendered on the checkout page.
425
+ # Field position on checkout form.
402
426
  order:,
403
- # An example response displayed in the input field.
427
+ # Placeholder text shown in empty field.
404
428
  placeholder:,
405
- # Whether or not the custom field is required.
406
- required:,
407
- # What type of input field to use.
408
- field_type: :text
429
+ # Whether the customer must complete this field to check out.
430
+ required:
409
431
  )
410
432
  end
411
433
 
@@ -413,9 +435,9 @@ module WhopSDK
413
435
  override.returns(
414
436
  {
415
437
  id: String,
416
- field_type: Symbol,
438
+ field_type: WhopSDK::Plan::CustomField::FieldType::TaggedSymbol,
417
439
  name: String,
418
- order: T.nilable(Integer),
440
+ order: Float,
419
441
  placeholder: T.nilable(String),
420
442
  required: T::Boolean
421
443
  }
@@ -423,126 +445,118 @@ module WhopSDK
423
445
  end
424
446
  def to_hash
425
447
  end
426
- end
427
448
 
428
- class Invoice < WhopSDK::Internal::Type::BaseModel
429
- OrHash =
430
- T.type_alias do
431
- T.any(WhopSDK::Plan::Invoice, WhopSDK::Internal::AnyHash)
432
- end
449
+ # Custom field input type.
450
+ module FieldType
451
+ extend WhopSDK::Internal::Type::Enum
433
452
 
434
- # The unique identifier for the invoice.
435
- sig { returns(String) }
436
- attr_accessor :id
453
+ TaggedSymbol =
454
+ T.type_alias do
455
+ T.all(Symbol, WhopSDK::Plan::CustomField::FieldType)
456
+ end
457
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
437
458
 
438
- # The invoice this plan was generated for. Null if the plan was not created for a
439
- # specific invoice.
440
- sig { params(id: String).returns(T.attached_class) }
441
- def self.new(
442
- # The unique identifier for the invoice.
443
- id:
444
- )
445
- end
459
+ TEXT =
460
+ T.let(:text, WhopSDK::Plan::CustomField::FieldType::TaggedSymbol)
446
461
 
447
- sig { override.returns({ id: String }) }
448
- def to_hash
462
+ sig do
463
+ override.returns(
464
+ T::Array[WhopSDK::Plan::CustomField::FieldType::TaggedSymbol]
465
+ )
466
+ end
467
+ def self.values
468
+ end
449
469
  end
450
470
  end
451
471
 
452
- class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
453
- OrHash =
454
- T.type_alias do
455
- T.any(
456
- WhopSDK::Plan::PaymentMethodConfiguration,
457
- WhopSDK::Internal::AnyHash
458
- )
459
- end
472
+ # Billing model for this plan: `renewal` (recurring) or `one_time` (single
473
+ # payment).
474
+ module PlanType
475
+ extend WhopSDK::Internal::Type::Enum
460
476
 
461
- # An array of payment method identifiers that are explicitly disabled. Only
462
- # applies if the include_platform_defaults is true.
463
- sig { returns(T::Array[WhopSDK::PaymentMethodTypes::TaggedSymbol]) }
464
- attr_accessor :disabled
465
-
466
- # An array of payment method identifiers that are explicitly enabled. This means
467
- # these payment methods will be shown on checkout. Example use case is to only
468
- # enable a specific payment method like cashapp, or extending the platform
469
- # defaults with additional methods.
470
- sig { returns(T::Array[WhopSDK::PaymentMethodTypes::TaggedSymbol]) }
471
- attr_accessor :enabled
472
-
473
- # Whether Whop's platform default payment method enablement settings are included
474
- # in this configuration. The full list of default payment methods can be found in
475
- # the documentation at docs.whop.com/payments.
476
- sig { returns(T::Boolean) }
477
- attr_accessor :include_platform_defaults
477
+ TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::Plan::PlanType) }
478
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
479
+
480
+ RENEWAL = T.let(:renewal, WhopSDK::Plan::PlanType::TaggedSymbol)
481
+ ONE_TIME = T.let(:one_time, WhopSDK::Plan::PlanType::TaggedSymbol)
478
482
 
479
- # The explicit payment method configuration specifying which payment methods are
480
- # enabled or disabled for this plan. Null if the plan uses default settings.
481
483
  sig do
482
- params(
483
- disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
484
- enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
485
- include_platform_defaults: T::Boolean
486
- ).returns(T.attached_class)
484
+ override.returns(T::Array[WhopSDK::Plan::PlanType::TaggedSymbol])
487
485
  end
488
- def self.new(
489
- # An array of payment method identifiers that are explicitly disabled. Only
490
- # applies if the include_platform_defaults is true.
491
- disabled:,
492
- # An array of payment method identifiers that are explicitly enabled. This means
493
- # these payment methods will be shown on checkout. Example use case is to only
494
- # enable a specific payment method like cashapp, or extending the platform
495
- # defaults with additional methods.
496
- enabled:,
497
- # Whether Whop's platform default payment method enablement settings are included
498
- # in this configuration. The full list of default payment methods can be found in
499
- # the documentation at docs.whop.com/payments.
500
- include_platform_defaults:
501
- )
486
+ def self.values
502
487
  end
488
+ end
489
+
490
+ # Sales method for this plan, such as `buy_now` or `waitlist`.
491
+ module ReleaseMethod
492
+ extend WhopSDK::Internal::Type::Enum
493
+
494
+ TaggedSymbol =
495
+ T.type_alias { T.all(Symbol, WhopSDK::Plan::ReleaseMethod) }
496
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
497
+
498
+ BUY_NOW = T.let(:buy_now, WhopSDK::Plan::ReleaseMethod::TaggedSymbol)
499
+ WAITLIST = T.let(:waitlist, WhopSDK::Plan::ReleaseMethod::TaggedSymbol)
503
500
 
504
501
  sig do
505
- override.returns(
506
- {
507
- disabled: T::Array[WhopSDK::PaymentMethodTypes::TaggedSymbol],
508
- enabled: T::Array[WhopSDK::PaymentMethodTypes::TaggedSymbol],
509
- include_platform_defaults: T::Boolean
510
- }
511
- )
502
+ override.returns(T::Array[WhopSDK::Plan::ReleaseMethod::TaggedSymbol])
512
503
  end
513
- def to_hash
504
+ def self.values
514
505
  end
515
506
  end
516
507
 
517
- class Product < WhopSDK::Internal::Type::BaseModel
518
- OrHash =
519
- T.type_alias do
520
- T.any(WhopSDK::Plan::Product, WhopSDK::Internal::AnyHash)
521
- end
508
+ # How tax is handled for this plan.
509
+ module TaxType
510
+ extend WhopSDK::Internal::Type::Enum
522
511
 
523
- # The unique identifier for the product.
524
- sig { returns(String) }
525
- attr_accessor :id
512
+ TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::Plan::TaxType) }
513
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
526
514
 
527
- # The display name of the product shown to customers on the product page and in
528
- # search results.
529
- sig { returns(String) }
530
- attr_accessor :title
515
+ INCLUSIVE = T.let(:inclusive, WhopSDK::Plan::TaxType::TaggedSymbol)
516
+ EXCLUSIVE = T.let(:exclusive, WhopSDK::Plan::TaxType::TaggedSymbol)
517
+ UNSPECIFIED = T.let(:unspecified, WhopSDK::Plan::TaxType::TaggedSymbol)
531
518
 
532
- # The product that this plan belongs to. Null for standalone one-off purchases not
533
- # linked to a product.
534
- sig { params(id: String, title: String).returns(T.attached_class) }
535
- def self.new(
536
- # The unique identifier for the product.
537
- id:,
538
- # The display name of the product shown to customers on the product page and in
539
- # search results.
540
- title:
541
- )
519
+ sig { override.returns(T::Array[WhopSDK::Plan::TaxType::TaggedSymbol]) }
520
+ def self.values
542
521
  end
522
+ end
543
523
 
544
- sig { override.returns({ id: String, title: String }) }
545
- def to_hash
524
+ # 3D Secure behavior for this plan; `null` inherits account default.
525
+ module ThreeDSLevel
526
+ extend WhopSDK::Internal::Type::Enum
527
+
528
+ TaggedSymbol =
529
+ T.type_alias { T.all(Symbol, WhopSDK::Plan::ThreeDSLevel) }
530
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
531
+
532
+ MANDATE_CHALLENGE =
533
+ T.let(:mandate_challenge, WhopSDK::Plan::ThreeDSLevel::TaggedSymbol)
534
+ FRICTIONLESS =
535
+ T.let(:frictionless, WhopSDK::Plan::ThreeDSLevel::TaggedSymbol)
536
+
537
+ sig do
538
+ override.returns(T::Array[WhopSDK::Plan::ThreeDSLevel::TaggedSymbol])
539
+ end
540
+ def self.values
541
+ end
542
+ end
543
+
544
+ # Whether the plan is visible to customers or hidden from public view.
545
+ module Visibility
546
+ extend WhopSDK::Internal::Type::Enum
547
+
548
+ TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::Plan::Visibility) }
549
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
550
+
551
+ VISIBLE = T.let(:visible, WhopSDK::Plan::Visibility::TaggedSymbol)
552
+ HIDDEN = T.let(:hidden, WhopSDK::Plan::Visibility::TaggedSymbol)
553
+ ARCHIVED = T.let(:archived, WhopSDK::Plan::Visibility::TaggedSymbol)
554
+ QUICK_LINK = T.let(:quick_link, WhopSDK::Plan::Visibility::TaggedSymbol)
555
+
556
+ sig do
557
+ override.returns(T::Array[WhopSDK::Plan::Visibility::TaggedSymbol])
558
+ end
559
+ def self.values
546
560
  end
547
561
  end
548
562
  end