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
@@ -0,0 +1,669 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class IdentityProfileUpdatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ WhopSDK::IdentityProfileUpdatedWebhookEvent,
10
+ WhopSDK::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # A unique ID for every single webhook request
15
+ sig { returns(String) }
16
+ attr_accessor :id
17
+
18
+ # The API version for this webhook
19
+ sig { returns(Symbol) }
20
+ attr_accessor :api_version
21
+
22
+ # A consolidated identity or business profile synced from verification provider
23
+ # data.
24
+ sig { returns(WhopSDK::IdentityProfileUpdatedWebhookEvent::Data) }
25
+ attr_reader :data
26
+
27
+ sig do
28
+ params(
29
+ data: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::OrHash
30
+ ).void
31
+ end
32
+ attr_writer :data
33
+
34
+ # The timestamp in ISO 8601 format that the webhook was sent at on the server
35
+ sig { returns(Time) }
36
+ attr_accessor :timestamp
37
+
38
+ # The webhook event type
39
+ sig { returns(Symbol) }
40
+ attr_accessor :type
41
+
42
+ # The company ID that this webhook event is associated with
43
+ sig { returns(T.nilable(String)) }
44
+ attr_accessor :company_id
45
+
46
+ sig do
47
+ params(
48
+ id: String,
49
+ data: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::OrHash,
50
+ timestamp: Time,
51
+ company_id: T.nilable(String),
52
+ api_version: Symbol,
53
+ type: Symbol
54
+ ).returns(T.attached_class)
55
+ end
56
+ def self.new(
57
+ # A unique ID for every single webhook request
58
+ id:,
59
+ # A consolidated identity or business profile synced from verification provider
60
+ # data.
61
+ data:,
62
+ # The timestamp in ISO 8601 format that the webhook was sent at on the server
63
+ timestamp:,
64
+ # The company ID that this webhook event is associated with
65
+ company_id: nil,
66
+ # The API version for this webhook
67
+ api_version: :v1,
68
+ # The webhook event type
69
+ type: :"identity_profile.updated"
70
+ )
71
+ end
72
+
73
+ sig do
74
+ override.returns(
75
+ {
76
+ id: String,
77
+ api_version: Symbol,
78
+ data: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data,
79
+ timestamp: Time,
80
+ type: Symbol,
81
+ company_id: T.nilable(String)
82
+ }
83
+ )
84
+ end
85
+ def to_hash
86
+ end
87
+
88
+ class Data < WhopSDK::Internal::Type::BaseModel
89
+ OrHash =
90
+ T.type_alias do
91
+ T.any(
92
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data,
93
+ WhopSDK::Internal::AnyHash
94
+ )
95
+ end
96
+
97
+ # The tag of the identity profile (idpf_xxx).
98
+ sig { returns(String) }
99
+ attr_accessor :id
100
+
101
+ # Registered business address reported by the identity provider. Present on
102
+ # `business` profiles.
103
+ sig do
104
+ returns(
105
+ T.nilable(
106
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::BusinessAddress
107
+ )
108
+ )
109
+ end
110
+ attr_reader :business_address
111
+
112
+ sig do
113
+ params(
114
+ business_address:
115
+ T.nilable(
116
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::BusinessAddress::OrHash
117
+ )
118
+ ).void
119
+ end
120
+ attr_writer :business_address
121
+
122
+ # Business entity name. Present on `business` profiles.
123
+ sig { returns(T.nilable(String)) }
124
+ attr_accessor :business_name
125
+
126
+ # Reported legal structure of a business profile (e.g. `corp`, `llc`).
127
+ # Provider-specific values; present on `business` profiles.
128
+ sig { returns(T.nilable(String)) }
129
+ attr_accessor :business_structure
130
+
131
+ # ISO 3166-1 alpha-3 country code (e.g. `USA`, `GBR`). For individuals this is the
132
+ # country of citizenship or residence reported by the identity provider; for
133
+ # businesses this is the country of incorporation.
134
+ sig { returns(T.nilable(String)) }
135
+ attr_accessor :country
136
+
137
+ # When the identity profile was first created.
138
+ sig { returns(Time) }
139
+ attr_accessor :created_at
140
+
141
+ # ISO date (`YYYY-MM-DD`) reported by the identity provider. Present on
142
+ # `individual` profiles.
143
+ sig { returns(T.nilable(String)) }
144
+ attr_accessor :date_of_birth
145
+
146
+ # Email address reported by the identity provider. Typically present on
147
+ # `individual` profiles.
148
+ sig { returns(T.nilable(String)) }
149
+ attr_accessor :email
150
+
151
+ # Individual's first name.
152
+ sig { returns(T.nilable(String)) }
153
+ attr_accessor :first_name
154
+
155
+ # Individual's last name.
156
+ sig { returns(T.nilable(String)) }
157
+ attr_accessor :last_name
158
+
159
+ # The companies this identity profile is currently linked to. Only populated for
160
+ # direct Whop user sessions; always empty when authenticated via API key, app, or
161
+ # OAuth scope (a single identity can be linked to companies the calling platform
162
+ # is not entitled to see).
163
+ sig do
164
+ returns(
165
+ T::Array[
166
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::LinkedCompany
167
+ ]
168
+ )
169
+ end
170
+ attr_accessor :linked_companies
171
+
172
+ # Residential address reported by the identity provider. Present on `individual`
173
+ # profiles.
174
+ sig do
175
+ returns(
176
+ T.nilable(
177
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::PersonalAddress
178
+ )
179
+ )
180
+ end
181
+ attr_reader :personal_address
182
+
183
+ sig do
184
+ params(
185
+ personal_address:
186
+ T.nilable(
187
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::PersonalAddress::OrHash
188
+ )
189
+ ).void
190
+ end
191
+ attr_writer :personal_address
192
+
193
+ # Phone number reported by the identity provider. Typically present on
194
+ # `individual` profiles.
195
+ sig { returns(T.nilable(String)) }
196
+ attr_accessor :phone
197
+
198
+ # Whether this is an 'individual' or 'business' profile.
199
+ sig { returns(String) }
200
+ attr_accessor :profile_type
201
+
202
+ # Derived verification status across all linked verifications.
203
+ sig do
204
+ returns(
205
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Status::TaggedSymbol
206
+ )
207
+ end
208
+ attr_accessor :status
209
+
210
+ # When the identity profile was last synced from a verification.
211
+ sig { returns(Time) }
212
+ attr_accessor :updated_at
213
+
214
+ # All verification attempts attached to this identity profile, ordered most-recent
215
+ # first.
216
+ sig do
217
+ returns(
218
+ T::Array[
219
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Verification
220
+ ]
221
+ )
222
+ end
223
+ attr_accessor :verifications
224
+
225
+ # A consolidated identity or business profile synced from verification provider
226
+ # data.
227
+ sig do
228
+ params(
229
+ id: String,
230
+ business_address:
231
+ T.nilable(
232
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::BusinessAddress::OrHash
233
+ ),
234
+ business_name: T.nilable(String),
235
+ business_structure: T.nilable(String),
236
+ country: T.nilable(String),
237
+ created_at: Time,
238
+ date_of_birth: T.nilable(String),
239
+ email: T.nilable(String),
240
+ first_name: T.nilable(String),
241
+ last_name: T.nilable(String),
242
+ linked_companies:
243
+ T::Array[
244
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::LinkedCompany::OrHash
245
+ ],
246
+ personal_address:
247
+ T.nilable(
248
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::PersonalAddress::OrHash
249
+ ),
250
+ phone: T.nilable(String),
251
+ profile_type: String,
252
+ status:
253
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Status::OrSymbol,
254
+ updated_at: Time,
255
+ verifications:
256
+ T::Array[
257
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Verification::OrHash
258
+ ]
259
+ ).returns(T.attached_class)
260
+ end
261
+ def self.new(
262
+ # The tag of the identity profile (idpf_xxx).
263
+ id:,
264
+ # Registered business address reported by the identity provider. Present on
265
+ # `business` profiles.
266
+ business_address:,
267
+ # Business entity name. Present on `business` profiles.
268
+ business_name:,
269
+ # Reported legal structure of a business profile (e.g. `corp`, `llc`).
270
+ # Provider-specific values; present on `business` profiles.
271
+ business_structure:,
272
+ # ISO 3166-1 alpha-3 country code (e.g. `USA`, `GBR`). For individuals this is the
273
+ # country of citizenship or residence reported by the identity provider; for
274
+ # businesses this is the country of incorporation.
275
+ country:,
276
+ # When the identity profile was first created.
277
+ created_at:,
278
+ # ISO date (`YYYY-MM-DD`) reported by the identity provider. Present on
279
+ # `individual` profiles.
280
+ date_of_birth:,
281
+ # Email address reported by the identity provider. Typically present on
282
+ # `individual` profiles.
283
+ email:,
284
+ # Individual's first name.
285
+ first_name:,
286
+ # Individual's last name.
287
+ last_name:,
288
+ # The companies this identity profile is currently linked to. Only populated for
289
+ # direct Whop user sessions; always empty when authenticated via API key, app, or
290
+ # OAuth scope (a single identity can be linked to companies the calling platform
291
+ # is not entitled to see).
292
+ linked_companies:,
293
+ # Residential address reported by the identity provider. Present on `individual`
294
+ # profiles.
295
+ personal_address:,
296
+ # Phone number reported by the identity provider. Typically present on
297
+ # `individual` profiles.
298
+ phone:,
299
+ # Whether this is an 'individual' or 'business' profile.
300
+ profile_type:,
301
+ # Derived verification status across all linked verifications.
302
+ status:,
303
+ # When the identity profile was last synced from a verification.
304
+ updated_at:,
305
+ # All verification attempts attached to this identity profile, ordered most-recent
306
+ # first.
307
+ verifications:
308
+ )
309
+ end
310
+
311
+ sig do
312
+ override.returns(
313
+ {
314
+ id: String,
315
+ business_address:
316
+ T.nilable(
317
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::BusinessAddress
318
+ ),
319
+ business_name: T.nilable(String),
320
+ business_structure: T.nilable(String),
321
+ country: T.nilable(String),
322
+ created_at: Time,
323
+ date_of_birth: T.nilable(String),
324
+ email: T.nilable(String),
325
+ first_name: T.nilable(String),
326
+ last_name: T.nilable(String),
327
+ linked_companies:
328
+ T::Array[
329
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::LinkedCompany
330
+ ],
331
+ personal_address:
332
+ T.nilable(
333
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::PersonalAddress
334
+ ),
335
+ phone: T.nilable(String),
336
+ profile_type: String,
337
+ status:
338
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Status::TaggedSymbol,
339
+ updated_at: Time,
340
+ verifications:
341
+ T::Array[
342
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Verification
343
+ ]
344
+ }
345
+ )
346
+ end
347
+ def to_hash
348
+ end
349
+
350
+ class BusinessAddress < WhopSDK::Internal::Type::BaseModel
351
+ OrHash =
352
+ T.type_alias do
353
+ T.any(
354
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::BusinessAddress,
355
+ WhopSDK::Internal::AnyHash
356
+ )
357
+ end
358
+
359
+ # The city of the address.
360
+ sig { returns(T.nilable(String)) }
361
+ attr_accessor :city
362
+
363
+ # The country of the address.
364
+ sig { returns(T.nilable(String)) }
365
+ attr_accessor :country
366
+
367
+ # The line 1 of the address.
368
+ sig { returns(T.nilable(String)) }
369
+ attr_accessor :line1
370
+
371
+ # The line 2 of the address.
372
+ sig { returns(T.nilable(String)) }
373
+ attr_accessor :line2
374
+
375
+ # The postal code of the address.
376
+ sig { returns(T.nilable(String)) }
377
+ attr_accessor :postal_code
378
+
379
+ # The state of the address.
380
+ sig { returns(T.nilable(String)) }
381
+ attr_accessor :state
382
+
383
+ # Registered business address reported by the identity provider. Present on
384
+ # `business` profiles.
385
+ sig do
386
+ params(
387
+ city: T.nilable(String),
388
+ country: T.nilable(String),
389
+ line1: T.nilable(String),
390
+ line2: T.nilable(String),
391
+ postal_code: T.nilable(String),
392
+ state: T.nilable(String)
393
+ ).returns(T.attached_class)
394
+ end
395
+ def self.new(
396
+ # The city of the address.
397
+ city:,
398
+ # The country of the address.
399
+ country:,
400
+ # The line 1 of the address.
401
+ line1:,
402
+ # The line 2 of the address.
403
+ line2:,
404
+ # The postal code of the address.
405
+ postal_code:,
406
+ # The state of the address.
407
+ state:
408
+ )
409
+ end
410
+
411
+ sig do
412
+ override.returns(
413
+ {
414
+ city: T.nilable(String),
415
+ country: T.nilable(String),
416
+ line1: T.nilable(String),
417
+ line2: T.nilable(String),
418
+ postal_code: T.nilable(String),
419
+ state: T.nilable(String)
420
+ }
421
+ )
422
+ end
423
+ def to_hash
424
+ end
425
+ end
426
+
427
+ class LinkedCompany < WhopSDK::Internal::Type::BaseModel
428
+ OrHash =
429
+ T.type_alias do
430
+ T.any(
431
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::LinkedCompany,
432
+ WhopSDK::Internal::AnyHash
433
+ )
434
+ end
435
+
436
+ # The unique identifier for the company.
437
+ sig { returns(String) }
438
+ attr_accessor :id
439
+
440
+ # The display name of the company shown to customers.
441
+ sig { returns(String) }
442
+ attr_accessor :title
443
+
444
+ # A company is a seller on Whop. Companies own products, manage members, and
445
+ # receive payouts.
446
+ sig { params(id: String, title: String).returns(T.attached_class) }
447
+ def self.new(
448
+ # The unique identifier for the company.
449
+ id:,
450
+ # The display name of the company shown to customers.
451
+ title:
452
+ )
453
+ end
454
+
455
+ sig { override.returns({ id: String, title: String }) }
456
+ def to_hash
457
+ end
458
+ end
459
+
460
+ class PersonalAddress < WhopSDK::Internal::Type::BaseModel
461
+ OrHash =
462
+ T.type_alias do
463
+ T.any(
464
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::PersonalAddress,
465
+ WhopSDK::Internal::AnyHash
466
+ )
467
+ end
468
+
469
+ # The city of the address.
470
+ sig { returns(T.nilable(String)) }
471
+ attr_accessor :city
472
+
473
+ # The country of the address.
474
+ sig { returns(T.nilable(String)) }
475
+ attr_accessor :country
476
+
477
+ # The line 1 of the address.
478
+ sig { returns(T.nilable(String)) }
479
+ attr_accessor :line1
480
+
481
+ # The line 2 of the address.
482
+ sig { returns(T.nilable(String)) }
483
+ attr_accessor :line2
484
+
485
+ # The postal code of the address.
486
+ sig { returns(T.nilable(String)) }
487
+ attr_accessor :postal_code
488
+
489
+ # The state of the address.
490
+ sig { returns(T.nilable(String)) }
491
+ attr_accessor :state
492
+
493
+ # Residential address reported by the identity provider. Present on `individual`
494
+ # profiles.
495
+ sig do
496
+ params(
497
+ city: T.nilable(String),
498
+ country: T.nilable(String),
499
+ line1: T.nilable(String),
500
+ line2: T.nilable(String),
501
+ postal_code: T.nilable(String),
502
+ state: T.nilable(String)
503
+ ).returns(T.attached_class)
504
+ end
505
+ def self.new(
506
+ # The city of the address.
507
+ city:,
508
+ # The country of the address.
509
+ country:,
510
+ # The line 1 of the address.
511
+ line1:,
512
+ # The line 2 of the address.
513
+ line2:,
514
+ # The postal code of the address.
515
+ postal_code:,
516
+ # The state of the address.
517
+ state:
518
+ )
519
+ end
520
+
521
+ sig do
522
+ override.returns(
523
+ {
524
+ city: T.nilable(String),
525
+ country: T.nilable(String),
526
+ line1: T.nilable(String),
527
+ line2: T.nilable(String),
528
+ postal_code: T.nilable(String),
529
+ state: T.nilable(String)
530
+ }
531
+ )
532
+ end
533
+ def to_hash
534
+ end
535
+ end
536
+
537
+ # Derived verification status across all linked verifications.
538
+ module Status
539
+ extend WhopSDK::Internal::Type::Enum
540
+
541
+ TaggedSymbol =
542
+ T.type_alias do
543
+ T.all(
544
+ Symbol,
545
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Status
546
+ )
547
+ end
548
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
549
+
550
+ NOT_STARTED =
551
+ T.let(
552
+ :not_started,
553
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Status::TaggedSymbol
554
+ )
555
+ PENDING =
556
+ T.let(
557
+ :pending,
558
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Status::TaggedSymbol
559
+ )
560
+ APPROVED =
561
+ T.let(
562
+ :approved,
563
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Status::TaggedSymbol
564
+ )
565
+ REJECTED =
566
+ T.let(
567
+ :rejected,
568
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Status::TaggedSymbol
569
+ )
570
+
571
+ sig do
572
+ override.returns(
573
+ T::Array[
574
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Status::TaggedSymbol
575
+ ]
576
+ )
577
+ end
578
+ def self.values
579
+ end
580
+ end
581
+
582
+ class Verification < WhopSDK::Internal::Type::BaseModel
583
+ OrHash =
584
+ T.type_alias do
585
+ T.any(
586
+ WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Verification,
587
+ WhopSDK::Internal::AnyHash
588
+ )
589
+ end
590
+
591
+ # The numeric id of the verification record.
592
+ sig { returns(String) }
593
+ attr_accessor :id
594
+
595
+ # When the verification record was created.
596
+ sig { returns(Time) }
597
+ attr_accessor :created_at
598
+
599
+ # An error code for a verification attempt.
600
+ sig do
601
+ returns(T.nilable(WhopSDK::VerificationErrorCode::TaggedSymbol))
602
+ end
603
+ attr_accessor :last_error_code
604
+
605
+ # A human-readable explanation of the most recent verification error. Null if no
606
+ # error has occurred.
607
+ sig { returns(T.nilable(String)) }
608
+ attr_accessor :last_error_reason
609
+
610
+ # A URL the user can visit to complete the verification process. Null if the
611
+ # session does not require user interaction.
612
+ sig { returns(T.nilable(String)) }
613
+ attr_accessor :session_url
614
+
615
+ # The current status of this verification session.
616
+ sig { returns(WhopSDK::VerificationStatus::TaggedSymbol) }
617
+ attr_accessor :status
618
+
619
+ # An identity verification session used to confirm a person or entity's identity
620
+ # for payout account eligibility.
621
+ sig do
622
+ params(
623
+ id: String,
624
+ created_at: Time,
625
+ last_error_code:
626
+ T.nilable(WhopSDK::VerificationErrorCode::OrSymbol),
627
+ last_error_reason: T.nilable(String),
628
+ session_url: T.nilable(String),
629
+ status: WhopSDK::VerificationStatus::OrSymbol
630
+ ).returns(T.attached_class)
631
+ end
632
+ def self.new(
633
+ # The numeric id of the verification record.
634
+ id:,
635
+ # When the verification record was created.
636
+ created_at:,
637
+ # An error code for a verification attempt.
638
+ last_error_code:,
639
+ # A human-readable explanation of the most recent verification error. Null if no
640
+ # error has occurred.
641
+ last_error_reason:,
642
+ # A URL the user can visit to complete the verification process. Null if the
643
+ # session does not require user interaction.
644
+ session_url:,
645
+ # The current status of this verification session.
646
+ status:
647
+ )
648
+ end
649
+
650
+ sig do
651
+ override.returns(
652
+ {
653
+ id: String,
654
+ created_at: Time,
655
+ last_error_code:
656
+ T.nilable(WhopSDK::VerificationErrorCode::TaggedSymbol),
657
+ last_error_reason: T.nilable(String),
658
+ session_url: T.nilable(String),
659
+ status: WhopSDK::VerificationStatus::TaggedSymbol
660
+ }
661
+ )
662
+ end
663
+ def to_hash
664
+ end
665
+ end
666
+ end
667
+ end
668
+ end
669
+ end