whop_sdk 0.0.39 → 0.0.40

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 (313) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +18 -2
  5. data/lib/whop_sdk/internal/transport/base_client.rb +2 -0
  6. data/lib/whop_sdk/internal/type/union.rb +6 -6
  7. data/lib/whop_sdk/models/account.rb +144 -0
  8. data/lib/whop_sdk/models/account_create_params.rb +34 -0
  9. data/lib/whop_sdk/models/account_list_params.rb +34 -0
  10. data/lib/whop_sdk/models/account_list_response.rb +66 -0
  11. data/lib/whop_sdk/models/account_me_params.rb +14 -0
  12. data/lib/whop_sdk/models/account_retrieve_params.rb +20 -0
  13. data/lib/whop_sdk/models/account_social_link.rb +60 -0
  14. data/lib/whop_sdk/models/account_update_params.rb +146 -0
  15. data/lib/whop_sdk/models/account_wallet.rb +46 -0
  16. data/lib/whop_sdk/models/{ad_retrieve_response.rb → ad.rb} +15 -45
  17. data/lib/whop_sdk/models/ad_budget_type.rb +16 -0
  18. data/lib/whop_sdk/models/{ad_campaign_pause_response.rb → ad_campaign.rb} +37 -86
  19. data/lib/whop_sdk/models/ad_campaign_list_params.rb +12 -27
  20. data/lib/whop_sdk/models/ad_campaign_list_response.rb +9 -52
  21. data/lib/whop_sdk/models/ad_campaign_platform.rb +16 -0
  22. data/lib/whop_sdk/models/ad_campaign_status.rb +20 -0
  23. data/lib/whop_sdk/models/ad_group.rb +97 -0
  24. data/lib/whop_sdk/models/ad_group_list_params.rb +16 -19
  25. data/lib/whop_sdk/models/ad_group_list_response.rb +30 -51
  26. data/lib/whop_sdk/models/ad_group_pause_params.rb +20 -0
  27. data/lib/whop_sdk/models/ad_group_status.rb +20 -0
  28. data/lib/whop_sdk/models/ad_group_unpause_params.rb +20 -0
  29. data/lib/whop_sdk/models/ad_group_update_params.rb +8 -32
  30. data/lib/whop_sdk/models/ad_list_params.rb +57 -12
  31. data/lib/whop_sdk/models/ad_list_response.rb +45 -31
  32. data/lib/whop_sdk/models/ad_pause_params.rb +20 -0
  33. data/lib/whop_sdk/models/ad_report_retrieve_params.rb +45 -15
  34. data/lib/whop_sdk/models/ad_report_retrieve_response.rb +378 -105
  35. data/lib/whop_sdk/models/ad_unpause_params.rb +20 -0
  36. data/lib/whop_sdk/models/checkout_configuration.rb +22 -1
  37. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +26 -1
  38. data/lib/whop_sdk/models/checkout_configuration_list_response.rb +24 -1
  39. data/lib/whop_sdk/models/currency.rb +3 -0
  40. data/lib/whop_sdk/models/deposit_create_params.rb +85 -0
  41. data/lib/whop_sdk/models/deposit_create_response.rb +102 -0
  42. data/lib/whop_sdk/models/dispute.rb +6 -7
  43. data/lib/whop_sdk/models/dispute_alert_created_webhook_event.rb +4 -4
  44. data/lib/whop_sdk/models/dispute_alert_retrieve_response.rb +4 -4
  45. data/lib/whop_sdk/models/dispute_list_response.rb +2 -3
  46. data/lib/whop_sdk/models/external_ad_status.rb +20 -0
  47. data/lib/whop_sdk/models/file_create_params.rb +3 -15
  48. data/lib/whop_sdk/models/file_create_response.rb +3 -16
  49. data/lib/whop_sdk/models/file_retrieve_response.rb +3 -16
  50. data/lib/whop_sdk/models/file_visibility.rb +17 -0
  51. data/lib/whop_sdk/models/granularities.rb +16 -0
  52. data/lib/whop_sdk/models/identity_profile_approved_webhook_event.rb +431 -0
  53. data/lib/whop_sdk/models/identity_profile_needs_action_webhook_event.rb +432 -0
  54. data/lib/whop_sdk/models/identity_profile_rejected_webhook_event.rb +431 -0
  55. data/lib/whop_sdk/models/identity_profile_updated_webhook_event.rb +431 -0
  56. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +65 -1
  57. data/lib/whop_sdk/models/member_list_response.rb +3 -2
  58. data/lib/whop_sdk/models/member_retrieve_response.rb +3 -2
  59. data/lib/whop_sdk/models/membership.rb +23 -2
  60. data/lib/whop_sdk/models/membership_list_response.rb +23 -2
  61. data/lib/whop_sdk/models/payment.rb +47 -22
  62. data/lib/whop_sdk/models/payment_list_params.rb +9 -1
  63. data/lib/whop_sdk/models/payment_list_response.rb +40 -13
  64. data/lib/whop_sdk/models/plan.rb +31 -1
  65. data/lib/whop_sdk/models/plan_create_params.rb +30 -1
  66. data/lib/whop_sdk/models/plan_list_response.rb +31 -1
  67. data/lib/whop_sdk/models/plan_update_params.rb +30 -1
  68. data/lib/whop_sdk/models/product.rb +10 -1
  69. data/lib/whop_sdk/models/product_create_params.rb +11 -1
  70. data/lib/whop_sdk/models/product_list_item.rb +10 -1
  71. data/lib/whop_sdk/models/product_update_params.rb +11 -1
  72. data/lib/whop_sdk/models/refund_created_webhook_event.rb +84 -5
  73. data/lib/whop_sdk/models/refund_retrieve_response.rb +82 -5
  74. data/lib/whop_sdk/models/refund_updated_webhook_event.rb +84 -5
  75. data/lib/whop_sdk/models/resolution_center_case_platform_response.rb +0 -1
  76. data/lib/whop_sdk/models/result_label_keys.rb +38 -0
  77. data/lib/whop_sdk/models/swap_create_quote_params.rb +102 -0
  78. data/lib/whop_sdk/models/swap_create_quote_response.rb +104 -0
  79. data/lib/whop_sdk/models/transfer_create_params.rb +3 -1
  80. data/lib/whop_sdk/models/unwrap_webhook_event.rb +41 -33
  81. data/lib/whop_sdk/models/wallet_balance_params.rb +20 -0
  82. data/lib/whop_sdk/models/wallet_balance_response.rb +84 -0
  83. data/lib/whop_sdk/models/wallet_list_params.rb +14 -0
  84. data/lib/whop_sdk/models/wallet_list_response.rb +38 -0
  85. data/lib/whop_sdk/models/wallet_send_params.rb +37 -0
  86. data/lib/whop_sdk/models/wallet_send_response.rb +90 -0
  87. data/lib/whop_sdk/models/webhook_event.rb +4 -0
  88. data/lib/whop_sdk/models.rb +64 -0
  89. data/lib/whop_sdk/resources/accounts.rb +168 -0
  90. data/lib/whop_sdk/resources/ad_campaigns.rb +13 -13
  91. data/lib/whop_sdk/resources/ad_groups.rb +63 -8
  92. data/lib/whop_sdk/resources/ad_reports.rb +14 -8
  93. data/lib/whop_sdk/resources/ads.rb +66 -4
  94. data/lib/whop_sdk/resources/deposits.rb +46 -0
  95. data/lib/whop_sdk/resources/files.rb +1 -1
  96. data/lib/whop_sdk/resources/payments.rb +3 -1
  97. data/lib/whop_sdk/resources/plans.rb +10 -2
  98. data/lib/whop_sdk/resources/products.rb +6 -2
  99. data/lib/whop_sdk/resources/refunds.rb +2 -0
  100. data/lib/whop_sdk/resources/swaps.rb +52 -0
  101. data/lib/whop_sdk/resources/wallets.rb +78 -0
  102. data/lib/whop_sdk/resources/webhooks.rb +1 -1
  103. data/lib/whop_sdk/version.rb +1 -1
  104. data/lib/whop_sdk.rb +42 -7
  105. data/rbi/whop_sdk/client.rbi +14 -2
  106. data/rbi/whop_sdk/models/account.rbi +164 -0
  107. data/rbi/whop_sdk/models/account_create_params.rbi +59 -0
  108. data/rbi/whop_sdk/models/account_list_params.rbi +59 -0
  109. data/rbi/whop_sdk/models/account_list_response.rbi +115 -0
  110. data/rbi/whop_sdk/models/account_me_params.rbi +27 -0
  111. data/rbi/whop_sdk/models/account_retrieve_params.rbi +35 -0
  112. data/rbi/whop_sdk/models/account_social_link.rbi +96 -0
  113. data/rbi/whop_sdk/models/account_update_params.rbi +175 -0
  114. data/rbi/whop_sdk/models/account_wallet.rbi +75 -0
  115. data/rbi/whop_sdk/models/ad.rbi +143 -0
  116. data/rbi/whop_sdk/models/ad_budget_type.rbi +20 -0
  117. data/rbi/whop_sdk/models/{ad_campaign_pause_response.rbi → ad_campaign.rbi} +57 -245
  118. data/rbi/whop_sdk/models/ad_campaign_list_params.rbi +11 -46
  119. data/rbi/whop_sdk/models/ad_campaign_list_response.rbi +9 -143
  120. data/rbi/whop_sdk/models/ad_campaign_platform.rbi +22 -0
  121. data/rbi/whop_sdk/models/ad_campaign_status.rbi +27 -0
  122. data/rbi/whop_sdk/models/ad_group.rbi +126 -0
  123. data/rbi/whop_sdk/models/ad_group_list_params.rbi +13 -33
  124. data/rbi/whop_sdk/models/ad_group_list_response.rbi +41 -131
  125. data/rbi/whop_sdk/models/ad_group_pause_params.rbi +35 -0
  126. data/rbi/whop_sdk/models/ad_group_status.rbi +24 -0
  127. data/rbi/whop_sdk/models/ad_group_unpause_params.rbi +35 -0
  128. data/rbi/whop_sdk/models/ad_group_update_params.rbi +16 -67
  129. data/rbi/whop_sdk/models/ad_list_params.rbi +59 -14
  130. data/rbi/whop_sdk/models/ad_list_response.rbi +74 -62
  131. data/rbi/whop_sdk/models/ad_pause_params.rbi +35 -0
  132. data/rbi/whop_sdk/models/ad_report_retrieve_params.rbi +75 -19
  133. data/rbi/whop_sdk/models/ad_report_retrieve_response.rbi +537 -349
  134. data/rbi/whop_sdk/models/ad_unpause_params.rbi +35 -0
  135. data/rbi/whop_sdk/models/checkout_configuration.rbi +52 -0
  136. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +56 -1
  137. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +55 -0
  138. data/rbi/whop_sdk/models/currency.rbi +3 -0
  139. data/rbi/whop_sdk/models/deposit_create_params.rbi +152 -0
  140. data/rbi/whop_sdk/models/deposit_create_response.rbi +185 -0
  141. data/rbi/whop_sdk/models/dispute.rbi +7 -9
  142. data/rbi/whop_sdk/models/dispute_alert_created_webhook_event.rbi +5 -5
  143. data/rbi/whop_sdk/models/dispute_alert_retrieve_response.rbi +5 -5
  144. data/rbi/whop_sdk/models/dispute_list_response.rbi +2 -4
  145. data/rbi/whop_sdk/models/external_ad_status.rbi +26 -0
  146. data/rbi/whop_sdk/models/file_create_params.rbi +3 -30
  147. data/rbi/whop_sdk/models/file_create_response.rbi +3 -38
  148. data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -39
  149. data/rbi/whop_sdk/models/file_visibility.rbi +21 -0
  150. data/rbi/whop_sdk/models/granularities.rbi +20 -0
  151. data/rbi/whop_sdk/models/identity_profile_approved_webhook_event.rbi +669 -0
  152. data/rbi/whop_sdk/models/identity_profile_needs_action_webhook_event.rbi +669 -0
  153. data/rbi/whop_sdk/models/identity_profile_rejected_webhook_event.rbi +669 -0
  154. data/rbi/whop_sdk/models/identity_profile_updated_webhook_event.rbi +669 -0
  155. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +109 -3
  156. data/rbi/whop_sdk/models/member_list_response.rbi +4 -2
  157. data/rbi/whop_sdk/models/member_retrieve_response.rbi +4 -2
  158. data/rbi/whop_sdk/models/membership.rbi +44 -5
  159. data/rbi/whop_sdk/models/membership_list_response.rbi +44 -5
  160. data/rbi/whop_sdk/models/payment.rbi +75 -36
  161. data/rbi/whop_sdk/models/payment_list_params.rbi +8 -0
  162. data/rbi/whop_sdk/models/payment_list_response.rbi +67 -24
  163. data/rbi/whop_sdk/models/plan.rbi +39 -0
  164. data/rbi/whop_sdk/models/plan_create_params.rbi +54 -0
  165. data/rbi/whop_sdk/models/plan_list_response.rbi +62 -0
  166. data/rbi/whop_sdk/models/plan_update_params.rbi +54 -0
  167. data/rbi/whop_sdk/models/product.rbi +10 -0
  168. data/rbi/whop_sdk/models/product_create_params.rbi +12 -0
  169. data/rbi/whop_sdk/models/product_list_item.rbi +10 -0
  170. data/rbi/whop_sdk/models/product_update_params.rbi +12 -0
  171. data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +159 -5
  172. data/rbi/whop_sdk/models/refund_retrieve_response.rbi +157 -5
  173. data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +159 -5
  174. data/rbi/whop_sdk/models/resolution_center_case_platform_response.rbi +0 -5
  175. data/rbi/whop_sdk/models/result_label_keys.rbi +64 -0
  176. data/rbi/whop_sdk/models/swap_create_quote_params.rbi +134 -0
  177. data/rbi/whop_sdk/models/swap_create_quote_response.rbi +148 -0
  178. data/rbi/whop_sdk/models/transfer_create_params.rbi +6 -2
  179. data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +25 -21
  180. data/rbi/whop_sdk/models/wallet_balance_params.rbi +35 -0
  181. data/rbi/whop_sdk/models/wallet_balance_response.rbi +145 -0
  182. data/rbi/whop_sdk/models/wallet_list_params.rbi +27 -0
  183. data/rbi/whop_sdk/models/wallet_list_response.rbi +66 -0
  184. data/rbi/whop_sdk/models/wallet_send_params.rbi +57 -0
  185. data/rbi/whop_sdk/models/wallet_send_response.rbi +146 -0
  186. data/rbi/whop_sdk/models/webhook_event.rbi +11 -0
  187. data/rbi/whop_sdk/models.rbi +68 -0
  188. data/rbi/whop_sdk/resources/accounts.rbi +137 -0
  189. data/rbi/whop_sdk/resources/ad_campaigns.rbi +8 -8
  190. data/rbi/whop_sdk/resources/ad_groups.rbi +47 -6
  191. data/rbi/whop_sdk/resources/ad_reports.rbi +23 -12
  192. data/rbi/whop_sdk/resources/ads.rbi +59 -2
  193. data/rbi/whop_sdk/resources/deposits.rbi +41 -0
  194. data/rbi/whop_sdk/resources/files.rbi +1 -2
  195. data/rbi/whop_sdk/resources/payments.rbi +3 -0
  196. data/rbi/whop_sdk/resources/plans.rbi +18 -0
  197. data/rbi/whop_sdk/resources/products.rbi +10 -0
  198. data/rbi/whop_sdk/resources/refunds.rbi +2 -0
  199. data/rbi/whop_sdk/resources/swaps.rbi +46 -0
  200. data/rbi/whop_sdk/resources/transfers.rbi +3 -1
  201. data/rbi/whop_sdk/resources/wallets.rbi +55 -0
  202. data/rbi/whop_sdk/resources/webhooks.rbi +25 -21
  203. data/sig/whop_sdk/client.rbs +8 -0
  204. data/sig/whop_sdk/models/account.rbs +100 -0
  205. data/sig/whop_sdk/models/account_create_params.rbs +32 -0
  206. data/sig/whop_sdk/models/account_list_params.rbs +32 -0
  207. data/sig/whop_sdk/models/account_list_response.rbs +62 -0
  208. data/sig/whop_sdk/models/account_me_params.rbs +14 -0
  209. data/sig/whop_sdk/models/account_retrieve_params.rbs +23 -0
  210. data/sig/whop_sdk/models/account_social_link.rbs +62 -0
  211. data/sig/whop_sdk/models/account_update_params.rbs +111 -0
  212. data/sig/whop_sdk/models/account_wallet.rbs +42 -0
  213. data/sig/whop_sdk/models/ad.rbs +75 -0
  214. data/sig/whop_sdk/models/ad_budget_type.rbs +14 -0
  215. data/sig/whop_sdk/models/ad_campaign.rbs +194 -0
  216. data/sig/whop_sdk/models/ad_campaign_list_params.rbs +9 -25
  217. data/sig/whop_sdk/models/ad_campaign_list_response.rbs +12 -50
  218. data/sig/whop_sdk/models/ad_campaign_platform.rbs +14 -0
  219. data/sig/whop_sdk/models/ad_campaign_status.rbs +19 -0
  220. data/sig/whop_sdk/models/ad_group.rbs +70 -0
  221. data/sig/whop_sdk/models/ad_group_list_params.rbs +9 -20
  222. data/sig/whop_sdk/models/ad_group_list_response.rbs +22 -45
  223. data/sig/whop_sdk/models/ad_group_pause_params.rbs +20 -0
  224. data/sig/whop_sdk/models/ad_group_status.rbs +19 -0
  225. data/sig/whop_sdk/models/ad_group_unpause_params.rbs +20 -0
  226. data/sig/whop_sdk/models/ad_group_update_params.rbs +18 -36
  227. data/sig/whop_sdk/models/ad_list_params.rbs +39 -14
  228. data/sig/whop_sdk/models/ad_list_response.rbs +28 -25
  229. data/sig/whop_sdk/models/ad_pause_params.rbs +20 -0
  230. data/sig/whop_sdk/models/ad_report_retrieve_params.rbs +26 -4
  231. data/sig/whop_sdk/models/ad_report_retrieve_response.rbs +240 -131
  232. data/sig/whop_sdk/models/ad_unpause_params.rbs +20 -0
  233. data/sig/whop_sdk/models/checkout_configuration.rbs +16 -0
  234. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +18 -2
  235. data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +16 -0
  236. data/sig/whop_sdk/models/currency.rbs +6 -0
  237. data/sig/whop_sdk/models/deposit_create_params.rbs +81 -0
  238. data/sig/whop_sdk/models/deposit_create_response.rbs +99 -0
  239. data/sig/whop_sdk/models/dispute.rbs +4 -4
  240. data/sig/whop_sdk/models/dispute_alert_created_webhook_event.rbs +4 -4
  241. data/sig/whop_sdk/models/dispute_alert_retrieve_response.rbs +4 -4
  242. data/sig/whop_sdk/models/external_ad_status.rbs +19 -0
  243. data/sig/whop_sdk/models/file_create_params.rbs +4 -18
  244. data/sig/whop_sdk/models/file_create_response.rbs +4 -15
  245. data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -15
  246. data/sig/whop_sdk/models/file_visibility.rbs +14 -0
  247. data/sig/whop_sdk/models/granularities.rbs +14 -0
  248. data/sig/whop_sdk/models/identity_profile_approved_webhook_event.rbs +293 -0
  249. data/sig/whop_sdk/models/identity_profile_needs_action_webhook_event.rbs +293 -0
  250. data/sig/whop_sdk/models/identity_profile_rejected_webhook_event.rbs +293 -0
  251. data/sig/whop_sdk/models/identity_profile_updated_webhook_event.rbs +293 -0
  252. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +50 -3
  253. data/sig/whop_sdk/models/membership.rbs +19 -6
  254. data/sig/whop_sdk/models/membership_list_response.rbs +19 -6
  255. data/sig/whop_sdk/models/payment.rbs +52 -15
  256. data/sig/whop_sdk/models/payment_list_params.rbs +5 -0
  257. data/sig/whop_sdk/models/payment_list_response.rbs +52 -15
  258. data/sig/whop_sdk/models/plan.rbs +21 -0
  259. data/sig/whop_sdk/models/plan_create_params.rbs +21 -0
  260. data/sig/whop_sdk/models/plan_list_response.rbs +21 -0
  261. data/sig/whop_sdk/models/plan_update_params.rbs +21 -0
  262. data/sig/whop_sdk/models/product.rbs +5 -0
  263. data/sig/whop_sdk/models/product_create_params.rbs +5 -0
  264. data/sig/whop_sdk/models/product_list_item.rbs +5 -0
  265. data/sig/whop_sdk/models/product_update_params.rbs +5 -0
  266. data/sig/whop_sdk/models/refund_created_webhook_event.rbs +43 -4
  267. data/sig/whop_sdk/models/refund_retrieve_response.rbs +43 -4
  268. data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +43 -4
  269. data/sig/whop_sdk/models/resolution_center_case_platform_response.rbs +0 -2
  270. data/sig/whop_sdk/models/result_label_keys.rbs +60 -0
  271. data/sig/whop_sdk/models/swap_create_quote_params.rbs +84 -0
  272. data/sig/whop_sdk/models/swap_create_quote_response.rbs +97 -0
  273. data/sig/whop_sdk/models/unwrap_webhook_event.rbs +26 -22
  274. data/sig/whop_sdk/models/wallet_balance_params.rbs +23 -0
  275. data/sig/whop_sdk/models/wallet_balance_response.rbs +87 -0
  276. data/sig/whop_sdk/models/wallet_list_params.rbs +14 -0
  277. data/sig/whop_sdk/models/wallet_list_response.rbs +40 -0
  278. data/sig/whop_sdk/models/wallet_send_params.rbs +32 -0
  279. data/sig/whop_sdk/models/wallet_send_response.rbs +79 -0
  280. data/sig/whop_sdk/models/webhook_event.rbs +8 -0
  281. data/sig/whop_sdk/models.rbs +64 -0
  282. data/sig/whop_sdk/resources/accounts.rbs +46 -0
  283. data/sig/whop_sdk/resources/ad_campaigns.rbs +6 -6
  284. data/sig/whop_sdk/resources/ad_groups.rbs +16 -5
  285. data/sig/whop_sdk/resources/ad_reports.rbs +3 -1
  286. data/sig/whop_sdk/resources/ads.rbs +18 -2
  287. data/sig/whop_sdk/resources/deposits.rbs +15 -0
  288. data/sig/whop_sdk/resources/files.rbs +1 -1
  289. data/sig/whop_sdk/resources/payments.rbs +1 -0
  290. data/sig/whop_sdk/resources/plans.rbs +4 -0
  291. data/sig/whop_sdk/resources/products.rbs +2 -0
  292. data/sig/whop_sdk/resources/swaps.rbs +20 -0
  293. data/sig/whop_sdk/resources/wallets.rbs +23 -0
  294. data/sig/whop_sdk/resources/webhooks.rbs +26 -22
  295. metadata +128 -23
  296. data/lib/whop_sdk/models/ad_campaign_retrieve_response.rb +0 -328
  297. data/lib/whop_sdk/models/ad_campaign_unpause_response.rb +0 -328
  298. data/lib/whop_sdk/models/ad_campaign_update_response.rb +0 -328
  299. data/lib/whop_sdk/models/ad_group_retrieve_response.rb +0 -140
  300. data/lib/whop_sdk/models/ad_group_update_response.rb +0 -140
  301. data/rbi/whop_sdk/models/ad_campaign_retrieve_response.rbi +0 -679
  302. data/rbi/whop_sdk/models/ad_campaign_unpause_response.rbi +0 -675
  303. data/rbi/whop_sdk/models/ad_campaign_update_response.rbi +0 -670
  304. data/rbi/whop_sdk/models/ad_group_retrieve_response.rbi +0 -277
  305. data/rbi/whop_sdk/models/ad_group_update_response.rbi +0 -274
  306. data/rbi/whop_sdk/models/ad_retrieve_response.rbi +0 -245
  307. data/sig/whop_sdk/models/ad_campaign_pause_response.rbs +0 -232
  308. data/sig/whop_sdk/models/ad_campaign_retrieve_response.rbs +0 -232
  309. data/sig/whop_sdk/models/ad_campaign_unpause_response.rbs +0 -232
  310. data/sig/whop_sdk/models/ad_campaign_update_response.rbs +0 -232
  311. data/sig/whop_sdk/models/ad_group_retrieve_response.rbs +0 -108
  312. data/sig/whop_sdk/models/ad_group_update_response.rbs +0 -108
  313. data/sig/whop_sdk/models/ad_retrieve_response.rbs +0 -102
@@ -938,7 +938,17 @@ module WhopSDK
938
938
  # @return [String, nil]
939
939
  optional :source_url, String, nil?: true
940
940
 
941
- # @!method initialize(company_id:, allow_promo_codes: nil, checkout_styling: nil, currency: nil, metadata: nil, payment_method_configuration: nil, redirect_url: nil, source_url: nil, mode: :setup)
941
+ # @!attribute three_ds_level
942
+ # The 3D Secure behavior for a plan.
943
+ #
944
+ # @return [Symbol, WhopSDK::Models::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::ThreeDSLevel, nil]
945
+ optional :three_ds_level,
946
+ enum: -> {
947
+ WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::ThreeDSLevel
948
+ },
949
+ nil?: true
950
+
951
+ # @!method initialize(company_id:, allow_promo_codes: nil, checkout_styling: nil, currency: nil, metadata: nil, payment_method_configuration: nil, redirect_url: nil, source_url: nil, three_ds_level: nil, mode: :setup)
942
952
  # Some parameter documentations has been truncated, see
943
953
  # {WhopSDK::Models::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup}
944
954
  # for more details.
@@ -961,6 +971,8 @@ module WhopSDK
961
971
  #
962
972
  # @param source_url [String, nil] The URL of the page where the checkout is being initiated from.
963
973
  #
974
+ # @param three_ds_level [Symbol, WhopSDK::Models::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::ThreeDSLevel, nil] The 3D Secure behavior for a plan.
975
+ #
964
976
  # @param mode [Symbol, :setup]
965
977
 
966
978
  # @see WhopSDK::Models::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup#checkout_styling
@@ -1047,6 +1059,19 @@ module WhopSDK
1047
1059
  #
1048
1060
  # @param include_platform_defaults [Boolean, nil] Whether Whop's platform default payment method enablement settings are included
1049
1061
  end
1062
+
1063
+ # The 3D Secure behavior for a plan.
1064
+ #
1065
+ # @see WhopSDK::Models::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup#three_ds_level
1066
+ module ThreeDSLevel
1067
+ extend WhopSDK::Internal::Type::Enum
1068
+
1069
+ MANDATE_CHALLENGE = :mandate_challenge
1070
+ FRICTIONLESS = :frictionless
1071
+
1072
+ # @!method self.values
1073
+ # @return [Array<Symbol>]
1074
+ end
1050
1075
  end
1051
1076
 
1052
1077
  # @!method self.variants
@@ -213,6 +213,14 @@ module WhopSDK
213
213
  # @return [Float]
214
214
  required :renewal_price, Float
215
215
 
216
+ # @!attribute three_ds_level
217
+ # The 3D Secure behavior for a plan.
218
+ #
219
+ # @return [Symbol, WhopSDK::Models::CheckoutConfigurationListResponse::Plan::ThreeDSLevel, nil]
220
+ required :three_ds_level,
221
+ enum: -> { WhopSDK::Models::CheckoutConfigurationListResponse::Plan::ThreeDSLevel },
222
+ nil?: true
223
+
216
224
  # @!attribute trial_period_days
217
225
  # The number of free trial days before the first charge on a renewal plan. Null if
218
226
  # no trial is configured or the current user has already used a trial for this
@@ -228,7 +236,7 @@ module WhopSDK
228
236
  # @return [Symbol, WhopSDK::Models::Visibility]
229
237
  required :visibility, enum: -> { WhopSDK::Visibility }
230
238
 
231
- # @!method initialize(id:, adaptive_pricing_enabled:, billing_period:, currency:, expiration_days:, initial_price:, plan_type:, release_method:, renewal_price:, trial_period_days:, visibility:)
239
+ # @!method initialize(id:, adaptive_pricing_enabled:, billing_period:, currency:, expiration_days:, initial_price:, plan_type:, release_method:, renewal_price:, three_ds_level:, trial_period_days:, visibility:)
232
240
  # Some parameter documentations has been truncated, see
233
241
  # {WhopSDK::Models::CheckoutConfigurationListResponse::Plan} for more details.
234
242
  #
@@ -252,9 +260,24 @@ module WhopSDK
252
260
  #
253
261
  # @param renewal_price [Float] The recurring price charged every billing_period in the plan's base_currency (e.
254
262
  #
263
+ # @param three_ds_level [Symbol, WhopSDK::Models::CheckoutConfigurationListResponse::Plan::ThreeDSLevel, nil] The 3D Secure behavior for a plan.
264
+ #
255
265
  # @param trial_period_days [Integer, nil] The number of free trial days before the first charge on a renewal plan. Null if
256
266
  #
257
267
  # @param visibility [Symbol, WhopSDK::Models::Visibility] Controls whether the plan is visible to customers. When set to 'hidden', the pla
268
+
269
+ # The 3D Secure behavior for a plan.
270
+ #
271
+ # @see WhopSDK::Models::CheckoutConfigurationListResponse::Plan#three_ds_level
272
+ module ThreeDSLevel
273
+ extend WhopSDK::Internal::Type::Enum
274
+
275
+ MANDATE_CHALLENGE = :mandate_challenge
276
+ FRICTIONLESS = :frictionless
277
+
278
+ # @!method self.values
279
+ # @return [Array<Symbol>]
280
+ end
258
281
  end
259
282
  end
260
283
  end
@@ -93,6 +93,9 @@ module WhopSDK
93
93
  CNY = :cny
94
94
  USDT = :usdt
95
95
  KZT = :kzt
96
+ AWG = :awg
97
+ WHOP_USD = :whop_usd
98
+ XAU = :xau
96
99
 
97
100
  # @!method self.values
98
101
  # @return [Array<Symbol>]
@@ -0,0 +1,85 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::Deposits#create
6
+ class DepositCreateParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute amount
11
+ # Amount to deposit.
12
+ #
13
+ # @return [Float]
14
+ required :amount, Float
15
+
16
+ # @!attribute destination
17
+ # Destination account ID or wallet address. Object form is supported for
18
+ # compatibility.
19
+ #
20
+ # @return [String, WhopSDK::Models::DepositCreateParams::Destination::UnionMember1]
21
+ required :destination, union: -> { WhopSDK::DepositCreateParams::Destination }
22
+
23
+ # @!attribute metadata
24
+ # Arbitrary metadata echoed in the response.
25
+ #
26
+ # @return [Hash{Symbol=>Object}, nil]
27
+ optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]
28
+
29
+ # @!attribute network
30
+ # Optional destination network override.
31
+ #
32
+ # @return [String, nil]
33
+ optional :network, String, nil?: true
34
+
35
+ # @!method initialize(amount:, destination:, metadata: nil, network: nil, request_options: {})
36
+ # Some parameter documentations has been truncated, see
37
+ # {WhopSDK::Models::DepositCreateParams} for more details.
38
+ #
39
+ # @param amount [Float] Amount to deposit.
40
+ #
41
+ # @param destination [String, WhopSDK::Models::DepositCreateParams::Destination::UnionMember1] Destination account ID or wallet address. Object form is supported for compatibi
42
+ #
43
+ # @param metadata [Hash{Symbol=>Object}] Arbitrary metadata echoed in the response.
44
+ #
45
+ # @param network [String, nil] Optional destination network override.
46
+ #
47
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
48
+
49
+ # Destination account ID or wallet address. Object form is supported for
50
+ # compatibility.
51
+ module Destination
52
+ extend WhopSDK::Internal::Type::Union
53
+
54
+ variant String
55
+
56
+ variant -> { WhopSDK::DepositCreateParams::Destination::UnionMember1 }
57
+
58
+ class UnionMember1 < WhopSDK::Internal::Type::BaseModel
59
+ # @!attribute account_id
60
+ #
61
+ # @return [String, nil]
62
+ optional :account_id, String
63
+
64
+ # @!attribute address
65
+ #
66
+ # @return [String, nil]
67
+ optional :address, String
68
+
69
+ # @!attribute network
70
+ #
71
+ # @return [String, nil]
72
+ optional :network, String
73
+
74
+ # @!method initialize(account_id: nil, address: nil, network: nil)
75
+ # @param account_id [String]
76
+ # @param address [String]
77
+ # @param network [String]
78
+ end
79
+
80
+ # @!method self.variants
81
+ # @return [Array(String, WhopSDK::Models::DepositCreateParams::Destination::UnionMember1)]
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,102 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::Deposits#create
6
+ class DepositCreateResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute amount
8
+ #
9
+ # @return [String]
10
+ required :amount, String
11
+
12
+ # @!attribute deposit_address
13
+ #
14
+ # @return [WhopSDK::Models::DepositCreateResponse::DepositAddress]
15
+ required :deposit_address, -> { WhopSDK::Models::DepositCreateResponse::DepositAddress }
16
+
17
+ # @!attribute destination
18
+ #
19
+ # @return [WhopSDK::Models::DepositCreateResponse::Destination]
20
+ required :destination, -> { WhopSDK::Models::DepositCreateResponse::Destination }
21
+
22
+ # @!attribute hosted_url
23
+ #
24
+ # @return [String, nil]
25
+ required :hosted_url, String, nil?: true
26
+
27
+ # @!attribute metadata
28
+ #
29
+ # @return [Hash{Symbol=>Object}]
30
+ required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]
31
+
32
+ # @!attribute object
33
+ #
34
+ # @return [Symbol, WhopSDK::Models::DepositCreateResponse::Object]
35
+ required :object, enum: -> { WhopSDK::Models::DepositCreateResponse::Object }
36
+
37
+ # @!method initialize(amount:, deposit_address:, destination:, hosted_url:, metadata:, object:)
38
+ # @param amount [String]
39
+ # @param deposit_address [WhopSDK::Models::DepositCreateResponse::DepositAddress]
40
+ # @param destination [WhopSDK::Models::DepositCreateResponse::Destination]
41
+ # @param hosted_url [String, nil]
42
+ # @param metadata [Hash{Symbol=>Object}]
43
+ # @param object [Symbol, WhopSDK::Models::DepositCreateResponse::Object]
44
+
45
+ # @see WhopSDK::Models::DepositCreateResponse#deposit_address
46
+ class DepositAddress < WhopSDK::Internal::Type::BaseModel
47
+ # @!attribute evm
48
+ #
49
+ # @return [String]
50
+ required :evm, String
51
+
52
+ # @!attribute solana
53
+ #
54
+ # @return [String]
55
+ required :solana, String
56
+
57
+ # @!method initialize(evm:, solana:)
58
+ # @param evm [String]
59
+ # @param solana [String]
60
+ end
61
+
62
+ # @see WhopSDK::Models::DepositCreateResponse#destination
63
+ class Destination < WhopSDK::Internal::Type::BaseModel
64
+ # @!attribute address
65
+ #
66
+ # @return [String]
67
+ required :address, String
68
+
69
+ # @!attribute currency
70
+ #
71
+ # @return [String]
72
+ required :currency, String
73
+
74
+ # @!attribute network
75
+ #
76
+ # @return [String]
77
+ required :network, String
78
+
79
+ # @!attribute account_id
80
+ #
81
+ # @return [String, nil]
82
+ optional :account_id, String, nil?: true
83
+
84
+ # @!method initialize(address:, currency:, network:, account_id: nil)
85
+ # @param address [String]
86
+ # @param currency [String]
87
+ # @param network [String]
88
+ # @param account_id [String, nil]
89
+ end
90
+
91
+ # @see WhopSDK::Models::DepositCreateResponse#object
92
+ module Object
93
+ extend WhopSDK::Internal::Type::Enum
94
+
95
+ DEPOSIT = :deposit
96
+
97
+ # @!method self.values
98
+ # @return [Array<Symbol>]
99
+ end
100
+ end
101
+ end
102
+ end
@@ -88,8 +88,7 @@ module WhopSDK
88
88
  required :customer_name, String, nil?: true
89
89
 
90
90
  # @!attribute editable
91
- # Whether the dispute evidence can still be edited and submitted. Returns true
92
- # only when the dispute status requires a response.
91
+ # Whether the dispute evidence can still be edited and submitted.
93
92
  #
94
93
  # @return [Boolean, nil]
95
94
  required :editable, WhopSDK::Internal::Type::Boolean, nil?: true
@@ -220,7 +219,7 @@ module WhopSDK
220
219
  #
221
220
  # @param customer_name [String, nil] The customer's full name from their payment details, included in the evidence pa
222
221
  #
223
- # @param editable [Boolean, nil] Whether the dispute evidence can still be edited and submitted. Returns true onl
222
+ # @param editable [Boolean, nil] Whether the dispute evidence can still be edited and submitted.
224
223
  #
225
224
  # @param needs_response_by [Time, nil] The deadline by which dispute evidence must be submitted. Null if no response de
226
225
  #
@@ -400,10 +399,10 @@ module WhopSDK
400
399
  required :created_at, Time
401
400
 
402
401
  # @!attribute currency
403
- # The available currencies on the platform
402
+ # The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
404
403
  #
405
- # @return [Symbol, WhopSDK::Models::Currency, nil]
406
- required :currency, enum: -> { WhopSDK::Currency }, nil?: true
404
+ # @return [Symbol, WhopSDK::Models::Currency]
405
+ required :currency, enum: -> { WhopSDK::Currency }
407
406
 
408
407
  # @!attribute dispute_alerted_at
409
408
  # When an alert came in that this transaction will be disputed
@@ -476,7 +475,7 @@ module WhopSDK
476
475
  #
477
476
  # @param created_at [Time] The datetime the payment was created.
478
477
  #
479
- # @param currency [Symbol, WhopSDK::Models::Currency, nil] The available currencies on the platform
478
+ # @param currency [Symbol, WhopSDK::Models::Currency] The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
480
479
  #
481
480
  # @param dispute_alerted_at [Time, nil] When an alert came in that this transaction will be disputed
482
481
  #
@@ -227,10 +227,10 @@ module WhopSDK
227
227
  required :created_at, Time
228
228
 
229
229
  # @!attribute currency
230
- # The available currencies on the platform
230
+ # The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
231
231
  #
232
- # @return [Symbol, WhopSDK::Models::Currency, nil]
233
- required :currency, enum: -> { WhopSDK::Currency }, nil?: true
232
+ # @return [Symbol, WhopSDK::Models::Currency]
233
+ required :currency, enum: -> { WhopSDK::Currency }
234
234
 
235
235
  # @!attribute dispute_alerted_at
236
236
  # When an alert came in that this transaction will be disputed
@@ -306,7 +306,7 @@ module WhopSDK
306
306
  #
307
307
  # @param created_at [Time] The datetime the payment was created.
308
308
  #
309
- # @param currency [Symbol, WhopSDK::Models::Currency, nil] The available currencies on the platform
309
+ # @param currency [Symbol, WhopSDK::Models::Currency] The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
310
310
  #
311
311
  # @param dispute_alerted_at [Time, nil] When an alert came in that this transaction will be disputed
312
312
  #
@@ -172,10 +172,10 @@ module WhopSDK
172
172
  required :created_at, Time
173
173
 
174
174
  # @!attribute currency
175
- # The available currencies on the platform
175
+ # The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
176
176
  #
177
- # @return [Symbol, WhopSDK::Models::Currency, nil]
178
- required :currency, enum: -> { WhopSDK::Currency }, nil?: true
177
+ # @return [Symbol, WhopSDK::Models::Currency]
178
+ required :currency, enum: -> { WhopSDK::Currency }
179
179
 
180
180
  # @!attribute dispute_alerted_at
181
181
  # When an alert came in that this transaction will be disputed
@@ -250,7 +250,7 @@ module WhopSDK
250
250
  #
251
251
  # @param created_at [Time] The datetime the payment was created.
252
252
  #
253
- # @param currency [Symbol, WhopSDK::Models::Currency, nil] The available currencies on the platform
253
+ # @param currency [Symbol, WhopSDK::Models::Currency] The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
254
254
  #
255
255
  # @param dispute_alerted_at [Time, nil] When an alert came in that this transaction will be disputed
256
256
  #
@@ -35,8 +35,7 @@ module WhopSDK
35
35
  required :currency, enum: -> { WhopSDK::Currency }
36
36
 
37
37
  # @!attribute editable
38
- # Whether the dispute evidence can still be edited and submitted. Returns true
39
- # only when the dispute status requires a response.
38
+ # Whether the dispute evidence can still be edited and submitted.
40
39
  #
41
40
  # @return [Boolean, nil]
42
41
  required :editable, WhopSDK::Internal::Type::Boolean, nil?: true
@@ -105,7 +104,7 @@ module WhopSDK
105
104
  #
106
105
  # @param currency [Symbol, WhopSDK::Models::Currency] The three-letter ISO currency code for the disputed amount.
107
106
  #
108
- # @param editable [Boolean, nil] Whether the dispute evidence can still be edited and submitted. Returns true onl
107
+ # @param editable [Boolean, nil] Whether the dispute evidence can still be edited and submitted.
109
108
  #
110
109
  # @param needs_response_by [Time, nil] The deadline by which dispute evidence must be submitted. Null if no response de
111
110
  #
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # The status of an external ad.
6
+ module ExternalAdStatus
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ ACTIVE = :active
10
+ PAUSED = :paused
11
+ INACTIVE = :inactive
12
+ IN_REVIEW = :in_review
13
+ REJECTED = :rejected
14
+ FLAGGED = :flagged
15
+
16
+ # @!method self.values
17
+ # @return [Array<Symbol>]
18
+ end
19
+ end
20
+ end
@@ -18,8 +18,8 @@ module WhopSDK
18
18
  # Controls whether an uploaded file is publicly accessible or requires
19
19
  # authentication to access.
20
20
  #
21
- # @return [Symbol, WhopSDK::Models::FileCreateParams::Visibility, nil]
22
- optional :visibility, enum: -> { WhopSDK::FileCreateParams::Visibility }, nil?: true
21
+ # @return [Symbol, WhopSDK::Models::FileVisibility, nil]
22
+ optional :visibility, enum: -> { WhopSDK::FileVisibility }, nil?: true
23
23
 
24
24
  # @!method initialize(filename:, visibility: nil, request_options: {})
25
25
  # Some parameter documentations has been truncated, see
@@ -27,21 +27,9 @@ module WhopSDK
27
27
  #
28
28
  # @param filename [String] The name of the file including its extension (e.g., "photo.png" or "document.pdf
29
29
  #
30
- # @param visibility [Symbol, WhopSDK::Models::FileCreateParams::Visibility, nil] Controls whether an uploaded file is publicly accessible or requires authenticat
30
+ # @param visibility [Symbol, WhopSDK::Models::FileVisibility, nil] Controls whether an uploaded file is publicly accessible or requires authenticat
31
31
  #
32
32
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
33
-
34
- # Controls whether an uploaded file is publicly accessible or requires
35
- # authentication to access.
36
- module Visibility
37
- extend WhopSDK::Internal::Type::Enum
38
-
39
- PUBLIC = :public
40
- PRIVATE = :private
41
-
42
- # @!method self.values
43
- # @return [Array<Symbol>]
44
- end
45
33
  end
46
34
  end
47
35
  end
@@ -59,8 +59,8 @@ module WhopSDK
59
59
  # @!attribute visibility
60
60
  # Whether the file is publicly accessible or requires authentication.
61
61
  #
62
- # @return [Symbol, WhopSDK::Models::FileCreateResponse::Visibility]
63
- required :visibility, enum: -> { WhopSDK::Models::FileCreateResponse::Visibility }
62
+ # @return [Symbol, WhopSDK::Models::FileVisibility]
63
+ required :visibility, enum: -> { WhopSDK::FileVisibility }
64
64
 
65
65
  # @!method initialize(id:, content_type:, filename:, size:, upload_headers:, upload_status:, upload_url:, url:, visibility:)
66
66
  # Some parameter documentations has been truncated, see
@@ -84,20 +84,7 @@ module WhopSDK
84
84
  #
85
85
  # @param url [String, nil] The URL for accessing the file. For public files, this is a permanent CDN URL. F
86
86
  #
87
- # @param visibility [Symbol, WhopSDK::Models::FileCreateResponse::Visibility] Whether the file is publicly accessible or requires authentication.
88
-
89
- # Whether the file is publicly accessible or requires authentication.
90
- #
91
- # @see WhopSDK::Models::FileCreateResponse#visibility
92
- module Visibility
93
- extend WhopSDK::Internal::Type::Enum
94
-
95
- PUBLIC = :public
96
- PRIVATE = :private
97
-
98
- # @!method self.values
99
- # @return [Array<Symbol>]
100
- end
87
+ # @param visibility [Symbol, WhopSDK::Models::FileVisibility] Whether the file is publicly accessible or requires authentication.
101
88
  end
102
89
  end
103
90
  end
@@ -45,8 +45,8 @@ module WhopSDK
45
45
  # @!attribute visibility
46
46
  # Whether the file is publicly accessible or requires authentication.
47
47
  #
48
- # @return [Symbol, WhopSDK::Models::FileRetrieveResponse::Visibility]
49
- required :visibility, enum: -> { WhopSDK::Models::FileRetrieveResponse::Visibility }
48
+ # @return [Symbol, WhopSDK::Models::FileVisibility]
49
+ required :visibility, enum: -> { WhopSDK::FileVisibility }
50
50
 
51
51
  # @!method initialize(id:, content_type:, filename:, size:, upload_status:, url:, visibility:)
52
52
  # Some parameter documentations has been truncated, see
@@ -66,20 +66,7 @@ module WhopSDK
66
66
  #
67
67
  # @param url [String, nil] The URL for accessing the file. For public files, this is a permanent CDN URL. F
68
68
  #
69
- # @param visibility [Symbol, WhopSDK::Models::FileRetrieveResponse::Visibility] Whether the file is publicly accessible or requires authentication.
70
-
71
- # Whether the file is publicly accessible or requires authentication.
72
- #
73
- # @see WhopSDK::Models::FileRetrieveResponse#visibility
74
- module Visibility
75
- extend WhopSDK::Internal::Type::Enum
76
-
77
- PUBLIC = :public
78
- PRIVATE = :private
79
-
80
- # @!method self.values
81
- # @return [Array<Symbol>]
82
- end
69
+ # @param visibility [Symbol, WhopSDK::Models::FileVisibility] Whether the file is publicly accessible or requires authentication.
83
70
  end
84
71
  end
85
72
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # Controls whether an uploaded file is publicly accessible or requires
6
+ # authentication to access.
7
+ module FileVisibility
8
+ extend WhopSDK::Internal::Type::Enum
9
+
10
+ PUBLIC = :public
11
+ PRIVATE = :private
12
+
13
+ # @!method self.values
14
+ # @return [Array<Symbol>]
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # Bucket size for external ad stat rows.
6
+ module Granularities
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ DAILY = :daily
10
+ HOURLY = :hourly
11
+
12
+ # @!method self.values
13
+ # @return [Array<Symbol>]
14
+ end
15
+ end
16
+ end