whop_sdk 0.0.38 → 0.0.39

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 (229) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +41 -0
  5. data/lib/whop_sdk/models/ad_campaign_list_params.rb +101 -0
  6. data/lib/whop_sdk/models/ad_campaign_list_response.rb +126 -0
  7. data/lib/whop_sdk/models/ad_campaign_pause_params.rb +20 -0
  8. data/lib/whop_sdk/models/ad_campaign_pause_response.rb +328 -0
  9. data/lib/whop_sdk/models/ad_campaign_retrieve_params.rb +20 -0
  10. data/lib/whop_sdk/models/ad_campaign_retrieve_response.rb +328 -0
  11. data/lib/whop_sdk/models/ad_campaign_unpause_params.rb +20 -0
  12. data/lib/whop_sdk/models/ad_campaign_unpause_response.rb +328 -0
  13. data/lib/whop_sdk/models/ad_campaign_update_params.rb +33 -0
  14. data/lib/whop_sdk/models/ad_campaign_update_response.rb +328 -0
  15. data/lib/whop_sdk/models/ad_group_delete_params.rb +20 -0
  16. data/lib/whop_sdk/models/ad_group_delete_response.rb +8 -0
  17. data/lib/whop_sdk/models/ad_group_list_params.rb +109 -0
  18. data/lib/whop_sdk/models/ad_group_list_response.rb +118 -0
  19. data/lib/whop_sdk/models/ad_group_retrieve_params.rb +20 -0
  20. data/lib/whop_sdk/models/ad_group_retrieve_response.rb +140 -0
  21. data/lib/whop_sdk/models/ad_group_update_params.rb +3207 -0
  22. data/lib/whop_sdk/models/ad_group_update_response.rb +140 -0
  23. data/lib/whop_sdk/models/ad_list_params.rb +115 -0
  24. data/lib/whop_sdk/models/ad_list_response.rb +89 -0
  25. data/lib/whop_sdk/models/ad_report_retrieve_params.rb +77 -0
  26. data/lib/whop_sdk/models/ad_report_retrieve_response.rb +312 -0
  27. data/lib/whop_sdk/models/ad_retrieve_params.rb +20 -0
  28. data/lib/whop_sdk/models/ad_retrieve_response.rb +133 -0
  29. data/lib/whop_sdk/models/authorized_user_roles.rb +1 -0
  30. data/lib/whop_sdk/models/bounty_create_params.rb +105 -0
  31. data/lib/whop_sdk/models/bounty_create_response.rb +126 -0
  32. data/lib/whop_sdk/models/bounty_list_params.rb +85 -0
  33. data/lib/whop_sdk/models/bounty_list_response.rb +126 -0
  34. data/lib/whop_sdk/models/bounty_retrieve_params.rb +20 -0
  35. data/lib/whop_sdk/models/bounty_retrieve_response.rb +126 -0
  36. data/lib/whop_sdk/models/checkout_configuration.rb +10 -1
  37. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +67 -20
  38. data/lib/whop_sdk/models/checkout_configuration_list_response.rb +10 -1
  39. data/lib/whop_sdk/models/company_create_api_key_params.rb +109 -0
  40. data/lib/whop_sdk/models/company_create_api_key_response.rb +35 -0
  41. data/lib/whop_sdk/models/conversion_create_params.rb +462 -0
  42. data/lib/whop_sdk/models/conversion_create_response.rb +19 -0
  43. data/lib/whop_sdk/models/currency.rb +1 -0
  44. data/lib/whop_sdk/models/file_create_params.rb +22 -1
  45. data/lib/whop_sdk/models/file_create_response.rb +26 -3
  46. data/lib/whop_sdk/models/file_retrieve_response.rb +26 -3
  47. data/lib/whop_sdk/models/forum_post_list_params.rb +9 -1
  48. data/lib/whop_sdk/models/invoice_create_params.rb +8 -8
  49. data/lib/whop_sdk/models/invoice_update_params.rb +14 -5
  50. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +2 -2
  51. data/lib/whop_sdk/models/membership.rb +11 -1
  52. data/lib/whop_sdk/models/membership_list_response.rb +11 -1
  53. data/lib/whop_sdk/models/payment.rb +38 -1
  54. data/lib/whop_sdk/models/payment_list_response.rb +20 -1
  55. data/lib/whop_sdk/models/payment_method_types.rb +12 -0
  56. data/lib/whop_sdk/models/payment_refund_params.rb +4 -3
  57. data/lib/whop_sdk/models/payout_account_retrieve_response.rb +2 -2
  58. data/lib/whop_sdk/models/payout_account_status_updated_webhook_event.rb +2 -2
  59. data/lib/whop_sdk/models/plan.rb +10 -1
  60. data/lib/whop_sdk/models/plan_create_params.rb +26 -6
  61. data/lib/whop_sdk/models/plan_list_response.rb +10 -1
  62. data/lib/whop_sdk/models/plan_update_params.rb +26 -6
  63. data/lib/whop_sdk/models/support_channel_list_params.rb +31 -9
  64. data/lib/whop_sdk/models/verification_list_response.rb +2 -2
  65. data/lib/whop_sdk/models/verification_retrieve_response.rb +2 -2
  66. data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +2 -2
  67. data/lib/whop_sdk/models.rb +34 -0
  68. data/lib/whop_sdk/resources/ad_campaigns.rb +163 -0
  69. data/lib/whop_sdk/resources/ad_groups.rb +151 -0
  70. data/lib/whop_sdk/resources/ad_reports.rb +59 -0
  71. data/lib/whop_sdk/resources/ads.rb +88 -0
  72. data/lib/whop_sdk/resources/bounties.rb +124 -0
  73. data/lib/whop_sdk/resources/companies.rb +34 -0
  74. data/lib/whop_sdk/resources/conversions.rb +67 -0
  75. data/lib/whop_sdk/resources/files.rb +3 -1
  76. data/lib/whop_sdk/resources/forum_posts.rb +3 -1
  77. data/lib/whop_sdk/resources/invoices.rb +3 -1
  78. data/lib/whop_sdk/resources/payments.rb +1 -1
  79. data/lib/whop_sdk/resources/plans.rb +6 -2
  80. data/lib/whop_sdk/resources/support_channels.rb +6 -4
  81. data/lib/whop_sdk/version.rb +1 -1
  82. data/lib/whop_sdk.rb +40 -0
  83. data/rbi/whop_sdk/client.rbi +24 -0
  84. data/rbi/whop_sdk/models/ad_campaign_list_params.rbi +142 -0
  85. data/rbi/whop_sdk/models/ad_campaign_list_response.rbi +239 -0
  86. data/rbi/whop_sdk/models/ad_campaign_pause_params.rbi +35 -0
  87. data/rbi/whop_sdk/models/ad_campaign_pause_response.rbi +668 -0
  88. data/rbi/whop_sdk/models/ad_campaign_retrieve_params.rbi +35 -0
  89. data/rbi/whop_sdk/models/ad_campaign_retrieve_response.rbi +679 -0
  90. data/rbi/whop_sdk/models/ad_campaign_unpause_params.rbi +35 -0
  91. data/rbi/whop_sdk/models/ad_campaign_unpause_response.rbi +675 -0
  92. data/rbi/whop_sdk/models/ad_campaign_update_params.rbi +51 -0
  93. data/rbi/whop_sdk/models/ad_campaign_update_response.rbi +670 -0
  94. data/rbi/whop_sdk/models/ad_group_delete_params.rbi +35 -0
  95. data/rbi/whop_sdk/models/ad_group_delete_response.rbi +8 -0
  96. data/rbi/whop_sdk/models/ad_group_list_params.rbi +145 -0
  97. data/rbi/whop_sdk/models/ad_group_list_response.rbi +228 -0
  98. data/rbi/whop_sdk/models/ad_group_retrieve_params.rbi +35 -0
  99. data/rbi/whop_sdk/models/ad_group_retrieve_response.rbi +277 -0
  100. data/rbi/whop_sdk/models/ad_group_update_params.rbi +6133 -0
  101. data/rbi/whop_sdk/models/ad_group_update_response.rbi +274 -0
  102. data/rbi/whop_sdk/models/ad_list_params.rbi +146 -0
  103. data/rbi/whop_sdk/models/ad_list_response.rbi +146 -0
  104. data/rbi/whop_sdk/models/ad_report_retrieve_params.rbi +99 -0
  105. data/rbi/whop_sdk/models/ad_report_retrieve_response.rbi +629 -0
  106. data/rbi/whop_sdk/models/ad_retrieve_params.rbi +35 -0
  107. data/rbi/whop_sdk/models/ad_retrieve_response.rbi +245 -0
  108. data/rbi/whop_sdk/models/authorized_user_roles.rbi +2 -0
  109. data/rbi/whop_sdk/models/bounty_create_params.rbi +129 -0
  110. data/rbi/whop_sdk/models/bounty_create_response.rbi +196 -0
  111. data/rbi/whop_sdk/models/bounty_list_params.rbi +115 -0
  112. data/rbi/whop_sdk/models/bounty_list_response.rbi +189 -0
  113. data/rbi/whop_sdk/models/bounty_retrieve_params.rbi +35 -0
  114. data/rbi/whop_sdk/models/bounty_retrieve_response.rbi +199 -0
  115. data/rbi/whop_sdk/models/checkout_configuration.rbi +10 -0
  116. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +54 -16
  117. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +10 -0
  118. data/rbi/whop_sdk/models/company_create_api_key_params.rbi +184 -0
  119. data/rbi/whop_sdk/models/company_create_api_key_response.rbi +51 -0
  120. data/rbi/whop_sdk/models/conversion_create_params.rbi +661 -0
  121. data/rbi/whop_sdk/models/conversion_create_response.rbi +31 -0
  122. data/rbi/whop_sdk/models/currency.rbi +1 -0
  123. data/rbi/whop_sdk/models/file_create_params.rbi +41 -1
  124. data/rbi/whop_sdk/models/file_create_response.rbi +52 -5
  125. data/rbi/whop_sdk/models/file_retrieve_response.rbi +53 -5
  126. data/rbi/whop_sdk/models/forum_post_list_params.rbi +8 -0
  127. data/rbi/whop_sdk/models/invoice_create_params.rbi +8 -8
  128. data/rbi/whop_sdk/models/invoice_update_params.rbi +14 -4
  129. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +2 -2
  130. data/rbi/whop_sdk/models/membership.rbi +12 -0
  131. data/rbi/whop_sdk/models/membership_list_response.rbi +12 -0
  132. data/rbi/whop_sdk/models/payment.rbi +42 -0
  133. data/rbi/whop_sdk/models/payment_list_response.rbi +22 -0
  134. data/rbi/whop_sdk/models/payment_method_types.rbi +24 -0
  135. data/rbi/whop_sdk/models/payment_refund_params.rbi +6 -4
  136. data/rbi/whop_sdk/models/payout_account_retrieve_response.rbi +2 -2
  137. data/rbi/whop_sdk/models/payout_account_status_updated_webhook_event.rbi +2 -2
  138. data/rbi/whop_sdk/models/plan.rbi +10 -0
  139. data/rbi/whop_sdk/models/plan_create_params.rbi +22 -4
  140. data/rbi/whop_sdk/models/plan_list_response.rbi +10 -0
  141. data/rbi/whop_sdk/models/plan_update_params.rbi +22 -4
  142. data/rbi/whop_sdk/models/support_channel_list_params.rbi +50 -8
  143. data/rbi/whop_sdk/models/verification_list_response.rbi +2 -2
  144. data/rbi/whop_sdk/models/verification_retrieve_response.rbi +2 -2
  145. data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +2 -2
  146. data/rbi/whop_sdk/models.rbi +34 -0
  147. data/rbi/whop_sdk/resources/ad_campaigns.rbi +134 -0
  148. data/rbi/whop_sdk/resources/ad_groups.rbi +139 -0
  149. data/rbi/whop_sdk/resources/ad_reports.rbi +55 -0
  150. data/rbi/whop_sdk/resources/ads.rbi +81 -0
  151. data/rbi/whop_sdk/resources/bounties.rbi +116 -0
  152. data/rbi/whop_sdk/resources/companies.rbi +32 -0
  153. data/rbi/whop_sdk/resources/conversions.rbi +71 -0
  154. data/rbi/whop_sdk/resources/files.rbi +5 -0
  155. data/rbi/whop_sdk/resources/forum_posts.rbi +3 -0
  156. data/rbi/whop_sdk/resources/invoices.rbi +4 -0
  157. data/rbi/whop_sdk/resources/payments.rbi +3 -2
  158. data/rbi/whop_sdk/resources/plans.rbi +6 -0
  159. data/rbi/whop_sdk/resources/support_channels.rbi +8 -3
  160. data/sig/whop_sdk/client.rbs +12 -0
  161. data/sig/whop_sdk/models/ad_campaign_list_params.rbs +82 -0
  162. data/sig/whop_sdk/models/ad_campaign_list_response.rbs +98 -0
  163. data/sig/whop_sdk/models/ad_campaign_pause_params.rbs +20 -0
  164. data/sig/whop_sdk/models/ad_campaign_pause_response.rbs +232 -0
  165. data/sig/whop_sdk/models/ad_campaign_retrieve_params.rbs +20 -0
  166. data/sig/whop_sdk/models/ad_campaign_retrieve_response.rbs +232 -0
  167. data/sig/whop_sdk/models/ad_campaign_unpause_params.rbs +20 -0
  168. data/sig/whop_sdk/models/ad_campaign_unpause_response.rbs +232 -0
  169. data/sig/whop_sdk/models/ad_campaign_update_params.rbs +28 -0
  170. data/sig/whop_sdk/models/ad_campaign_update_response.rbs +232 -0
  171. data/sig/whop_sdk/models/ad_group_delete_params.rbs +20 -0
  172. data/sig/whop_sdk/models/ad_group_delete_response.rbs +5 -0
  173. data/sig/whop_sdk/models/ad_group_list_params.rbs +87 -0
  174. data/sig/whop_sdk/models/ad_group_list_response.rbs +93 -0
  175. data/sig/whop_sdk/models/ad_group_retrieve_params.rbs +20 -0
  176. data/sig/whop_sdk/models/ad_group_retrieve_response.rbs +108 -0
  177. data/sig/whop_sdk/models/ad_group_update_params.rbs +2439 -0
  178. data/sig/whop_sdk/models/ad_group_update_response.rbs +108 -0
  179. data/sig/whop_sdk/models/ad_list_params.rbs +87 -0
  180. data/sig/whop_sdk/models/ad_list_response.rbs +72 -0
  181. data/sig/whop_sdk/models/ad_report_retrieve_params.rbs +56 -0
  182. data/sig/whop_sdk/models/ad_report_retrieve_response.rbs +278 -0
  183. data/sig/whop_sdk/models/ad_retrieve_params.rbs +20 -0
  184. data/sig/whop_sdk/models/ad_retrieve_response.rbs +102 -0
  185. data/sig/whop_sdk/models/authorized_user_roles.rbs +2 -0
  186. data/sig/whop_sdk/models/bounty_create_params.rbs +71 -0
  187. data/sig/whop_sdk/models/bounty_create_response.rbs +93 -0
  188. data/sig/whop_sdk/models/bounty_list_params.rbs +67 -0
  189. data/sig/whop_sdk/models/bounty_list_response.rbs +93 -0
  190. data/sig/whop_sdk/models/bounty_retrieve_params.rbs +20 -0
  191. data/sig/whop_sdk/models/bounty_retrieve_response.rbs +93 -0
  192. data/sig/whop_sdk/models/checkout_configuration.rbs +5 -0
  193. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +36 -16
  194. data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +5 -0
  195. data/sig/whop_sdk/models/company_create_api_key_params.rbs +83 -0
  196. data/sig/whop_sdk/models/company_create_api_key_response.rbs +18 -0
  197. data/sig/whop_sdk/models/conversion_create_params.rbs +349 -0
  198. data/sig/whop_sdk/models/conversion_create_response.rbs +13 -0
  199. data/sig/whop_sdk/models/currency.rbs +2 -0
  200. data/sig/whop_sdk/models/file_create_params.rbs +20 -1
  201. data/sig/whop_sdk/models/file_create_response.rbs +19 -3
  202. data/sig/whop_sdk/models/file_retrieve_response.rbs +19 -3
  203. data/sig/whop_sdk/models/forum_post_list_params.rbs +5 -0
  204. data/sig/whop_sdk/models/invoice_create_params.rbs +8 -8
  205. data/sig/whop_sdk/models/invoice_update_params.rbs +9 -4
  206. data/sig/whop_sdk/models/membership.rbs +5 -0
  207. data/sig/whop_sdk/models/membership_list_response.rbs +5 -0
  208. data/sig/whop_sdk/models/payment.rbs +20 -0
  209. data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
  210. data/sig/whop_sdk/models/payment_method_types.rbs +24 -0
  211. data/sig/whop_sdk/models/plan.rbs +5 -0
  212. data/sig/whop_sdk/models/plan_create_params.rbs +14 -4
  213. data/sig/whop_sdk/models/plan_list_response.rbs +5 -0
  214. data/sig/whop_sdk/models/plan_update_params.rbs +14 -4
  215. data/sig/whop_sdk/models/support_channel_list_params.rbs +23 -6
  216. data/sig/whop_sdk/models.rbs +34 -0
  217. data/sig/whop_sdk/resources/ad_campaigns.rbs +41 -0
  218. data/sig/whop_sdk/resources/ad_groups.rbs +40 -0
  219. data/sig/whop_sdk/resources/ad_reports.rbs +18 -0
  220. data/sig/whop_sdk/resources/ads.rbs +26 -0
  221. data/sig/whop_sdk/resources/bounties.rbs +37 -0
  222. data/sig/whop_sdk/resources/companies.rbs +9 -0
  223. data/sig/whop_sdk/resources/conversions.rbs +25 -0
  224. data/sig/whop_sdk/resources/files.rbs +1 -0
  225. data/sig/whop_sdk/resources/forum_posts.rbs +1 -0
  226. data/sig/whop_sdk/resources/invoices.rbs +1 -0
  227. data/sig/whop_sdk/resources/plans.rbs +2 -0
  228. data/sig/whop_sdk/resources/support_channels.rbs +2 -1
  229. metadata +122 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20824fbf878cdf6eadd45d153bdc32c8ed8a38dc45a82bc0385d4be650debc1c
4
- data.tar.gz: d4f0096d0f30592f1e6c3c366ec24286f24fc12b13b39a3229acfb122bacb179
3
+ metadata.gz: 0d7509c8207433b48cc7855f1b113a5d61a9d435de8cd0007bc849a42791dec4
4
+ data.tar.gz: 3553946316f1e57d6a6e6b1a0cd33dd67098b2c8e5161002e0f194756d5c16fe
5
5
  SHA512:
6
- metadata.gz: 2bde8b929a8476882331e989d901747be6bbee785cbe9c4e7347d8ee43e851c63d454bc194d23193690baabf370afc16a71f8b1a8035fcc6b6a494837e6c7086
7
- data.tar.gz: 83c628d011ad5c8d6e284b1aa305ef41eb7817f8dfd45e8027d7a59f24f0fb830e1bc71d777dabdebdd134dcc01013897bdd131ca0c54e8d0c90e55c80d645cb
6
+ metadata.gz: acf6bcf13b6391ead5b5a24009508ae0c39422ea56635a472d900767e6c9df7d30c0ce6880de442461974c94d5d791030fd1f899679b851b83d7e11b1cfa9904
7
+ data.tar.gz: f4f7d52cf615dae4d4566d4e9efa4b02abfcb52a97044bdc189833b3a778951aa956ca39eb994765ae28877741160a580a95c7e3f9927a9313996e57c8e9d439
data/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.39 (2026-05-12)
4
+
5
+ Full Changelog: [v0.0.38...v0.0.39](https://github.com/whopio/whopsdk-ruby/compare/v0.0.38...v0.0.39)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([41f1c48](https://github.com/whopio/whopsdk-ruby/commit/41f1c489c4c3939c5ead8959796206b3f646be0a))
10
+ * **api:** api update ([0a030fb](https://github.com/whopio/whopsdk-ruby/commit/0a030fbcfb624ddae25835b9f4ce9b22914ce965))
11
+ * **api:** api update ([6dee63d](https://github.com/whopio/whopsdk-ruby/commit/6dee63d737eade9121eaa08cc9ba903ff0f0c12e))
12
+ * **api:** api update ([a86b37e](https://github.com/whopio/whopsdk-ruby/commit/a86b37e20f9802ffc244826e26b85e88da193ca7))
13
+ * **api:** api update ([4c48f94](https://github.com/whopio/whopsdk-ruby/commit/4c48f94afcfecede20ff4f68bcab257a52907d05))
14
+ * **api:** api update ([8c8346f](https://github.com/whopio/whopsdk-ruby/commit/8c8346fb790c3e00f6989a2ccfea03bba38e405e))
15
+ * **api:** api update ([cc9da37](https://github.com/whopio/whopsdk-ruby/commit/cc9da3700393b67a2b2a039aafeeba23159f1b2b))
16
+ * **api:** api update ([9a51f78](https://github.com/whopio/whopsdk-ruby/commit/9a51f786894aac2d495c1602cd823292862d094f))
17
+ * **api:** api update ([642732f](https://github.com/whopio/whopsdk-ruby/commit/642732f64a708d22a4bb8f1bfc8a7133e05a1f08))
18
+ * **api:** api update ([e53cc0d](https://github.com/whopio/whopsdk-ruby/commit/e53cc0dc256c0ab781725fef547dad3716eabad5))
19
+ * **api:** api update ([b4aa0af](https://github.com/whopio/whopsdk-ruby/commit/b4aa0af8ac8f678ee722fe23d9c4c2df35426316))
20
+ * **api:** api update ([e923086](https://github.com/whopio/whopsdk-ruby/commit/e9230869b6d1eec823473fb67309ab2ad302ba7b))
21
+ * **api:** api update ([1391fb1](https://github.com/whopio/whopsdk-ruby/commit/1391fb13a1063b8ac483a69795533b7e6bec89f1))
22
+ * **api:** api update ([bca6667](https://github.com/whopio/whopsdk-ruby/commit/bca6667862f9dee69950b47c065787c26236aadb))
23
+ * **api:** api update ([4129022](https://github.com/whopio/whopsdk-ruby/commit/4129022fceee5287f11a5e3858863433effc7ab1))
24
+ * **api:** api update ([b687cb9](https://github.com/whopio/whopsdk-ruby/commit/b687cb9249eb826e3a4d933b292f12ce02d94af0))
25
+ * **api:** api update ([79aae44](https://github.com/whopio/whopsdk-ruby/commit/79aae4416d123e1afa7e27d95749e1fd23ae055f))
26
+ * **api:** api update ([c30e8d4](https://github.com/whopio/whopsdk-ruby/commit/c30e8d4b93c2ea4ece5241af0d122ca30c59bac3))
27
+ * **api:** api update ([327691b](https://github.com/whopio/whopsdk-ruby/commit/327691b54ccbeb7d10a046b4a3938b126aa49500))
28
+ * **api:** api update ([35ba170](https://github.com/whopio/whopsdk-ruby/commit/35ba170f38fabb58908842c2ba39a6a9044812e9))
29
+ * **api:** api update ([7e8b054](https://github.com/whopio/whopsdk-ruby/commit/7e8b054992f97166ef28c10c116a7024c4af6eec))
30
+ * **api:** api update ([d8e52f4](https://github.com/whopio/whopsdk-ruby/commit/d8e52f48055361f0857513f0caac229959506c23))
31
+ * **api:** api update ([f095b42](https://github.com/whopio/whopsdk-ruby/commit/f095b4234574686ed157acf45f3627209ca548f7))
32
+ * **api:** manual updates ([caecf6f](https://github.com/whopio/whopsdk-ruby/commit/caecf6fa4278cf509f247297ab3a0ad5be835a04))
33
+ * **api:** manual updates ([2dbd70c](https://github.com/whopio/whopsdk-ruby/commit/2dbd70cee7fee0252936e15bb8547a4fa0d27501))
34
+ * **api:** manual updates ([02c0e75](https://github.com/whopio/whopsdk-ruby/commit/02c0e7583a78fbc3416f915bd5d80d0a97056323))
35
+ * **api:** manual updates ([9f433de](https://github.com/whopio/whopsdk-ruby/commit/9f433defa7e1a3f56316deff2862a89be69e6c27))
36
+ * **api:** manual updates ([b399216](https://github.com/whopio/whopsdk-ruby/commit/b399216595e3e85b7ec64802017dee810fc268c3))
37
+ * support setting headers via env ([41a50f8](https://github.com/whopio/whopsdk-ruby/commit/41a50f8e339ce87259211c13b135b081ad1141f9))
38
+
39
+
40
+ ### Chores
41
+
42
+ * **internal:** codegen related update ([747437e](https://github.com/whopio/whopsdk-ruby/commit/747437e579049c007cc35ddebc1866268b9e9b38))
43
+ * **internal:** more robust bootstrap script ([19ee1dc](https://github.com/whopio/whopsdk-ruby/commit/19ee1dc702fc3a96d2c0c33b25f1dfc9d57eb5cc))
44
+
3
45
  ## 0.0.38 (2026-04-21)
4
46
 
5
47
  Full Changelog: [v0.0.37...v0.0.38](https://github.com/whopio/whopsdk-ruby/compare/v0.0.37...v0.0.38)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "whop_sdk", "~> 0.0.38"
29
+ gem "whop_sdk", "~> 0.0.39"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -253,6 +253,30 @@ module WhopSDK
253
253
  # @return [WhopSDK::Resources::Affiliates]
254
254
  attr_reader :affiliates
255
255
 
256
+ # Bounties
257
+ # @return [WhopSDK::Resources::Bounties]
258
+ attr_reader :bounties
259
+
260
+ # Ad campaigns
261
+ # @return [WhopSDK::Resources::AdCampaigns]
262
+ attr_reader :ad_campaigns
263
+
264
+ # Ad groups
265
+ # @return [WhopSDK::Resources::AdGroups]
266
+ attr_reader :ad_groups
267
+
268
+ # Ads
269
+ # @return [WhopSDK::Resources::Ads]
270
+ attr_reader :ads
271
+
272
+ # Conversions
273
+ # @return [WhopSDK::Resources::Conversions]
274
+ attr_reader :conversions
275
+
276
+ # Ad reports
277
+ # @return [WhopSDK::Resources::AdReports]
278
+ attr_reader :ad_reports
279
+
256
280
  # @api private
257
281
  #
258
282
  # @return [Hash{String=>String}]
@@ -311,6 +335,17 @@ module WhopSDK
311
335
  headers = {
312
336
  "x-whop-app-id" => (@app_id = app_id&.to_s)
313
337
  }
338
+ custom_headers_env = ENV["WHOP_CUSTOM_HEADERS"]
339
+ unless custom_headers_env.nil?
340
+ parsed = {}
341
+ custom_headers_env.split("\n").each do |line|
342
+ colon = line.index(":")
343
+ unless colon.nil?
344
+ parsed[line[0...colon].strip] = line[(colon + 1)..].strip
345
+ end
346
+ end
347
+ headers = parsed.merge(headers)
348
+ end
314
349
 
315
350
  @api_key = api_key.to_s
316
351
  @webhook_key = webhook_key&.to_s
@@ -379,6 +414,12 @@ module WhopSDK
379
414
  @resolution_center_cases = WhopSDK::Resources::ResolutionCenterCases.new(client: self)
380
415
  @payout_accounts = WhopSDK::Resources::PayoutAccounts.new(client: self)
381
416
  @affiliates = WhopSDK::Resources::Affiliates.new(client: self)
417
+ @bounties = WhopSDK::Resources::Bounties.new(client: self)
418
+ @ad_campaigns = WhopSDK::Resources::AdCampaigns.new(client: self)
419
+ @ad_groups = WhopSDK::Resources::AdGroups.new(client: self)
420
+ @ads = WhopSDK::Resources::Ads.new(client: self)
421
+ @conversions = WhopSDK::Resources::Conversions.new(client: self)
422
+ @ad_reports = WhopSDK::Resources::AdReports.new(client: self)
382
423
  end
383
424
 
384
425
  # Verifies a Whop user token.
@@ -0,0 +1,101 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AdCampaigns#list
6
+ class AdCampaignListParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute company_id
11
+ # The unique identifier of the company to list ad campaigns for.
12
+ #
13
+ # @return [String]
14
+ required :company_id, String
15
+
16
+ # @!attribute after
17
+ # Returns the elements in the list that come after the specified cursor.
18
+ #
19
+ # @return [String, nil]
20
+ optional :after, String, nil?: true
21
+
22
+ # @!attribute before
23
+ # Returns the elements in the list that come before the specified cursor.
24
+ #
25
+ # @return [String, nil]
26
+ optional :before, String, nil?: true
27
+
28
+ # @!attribute created_after
29
+ # Only return ad campaigns created after this timestamp.
30
+ #
31
+ # @return [Time, nil]
32
+ optional :created_after, Time, nil?: true
33
+
34
+ # @!attribute created_before
35
+ # Only return ad campaigns created before this timestamp.
36
+ #
37
+ # @return [Time, nil]
38
+ optional :created_before, Time, nil?: true
39
+
40
+ # @!attribute first
41
+ # Returns the first _n_ elements from the list.
42
+ #
43
+ # @return [Integer, nil]
44
+ optional :first, Integer, nil?: true
45
+
46
+ # @!attribute last
47
+ # Returns the last _n_ elements from the list.
48
+ #
49
+ # @return [Integer, nil]
50
+ optional :last, Integer, nil?: true
51
+
52
+ # @!attribute query
53
+ # Case-insensitive substring match against the campaign title.
54
+ #
55
+ # @return [String, nil]
56
+ optional :query, String, nil?: true
57
+
58
+ # @!attribute status
59
+ # The status of an ad campaign.
60
+ #
61
+ # @return [Symbol, WhopSDK::Models::AdCampaignListParams::Status, nil]
62
+ optional :status, enum: -> { WhopSDK::AdCampaignListParams::Status }, nil?: true
63
+
64
+ # @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, query: nil, status: nil, request_options: {})
65
+ # @param company_id [String] The unique identifier of the company to list ad campaigns for.
66
+ #
67
+ # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
68
+ #
69
+ # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
70
+ #
71
+ # @param created_after [Time, nil] Only return ad campaigns created after this timestamp.
72
+ #
73
+ # @param created_before [Time, nil] Only return ad campaigns created before this timestamp.
74
+ #
75
+ # @param first [Integer, nil] Returns the first _n_ elements from the list.
76
+ #
77
+ # @param last [Integer, nil] Returns the last _n_ elements from the list.
78
+ #
79
+ # @param query [String, nil] Case-insensitive substring match against the campaign title.
80
+ #
81
+ # @param status [Symbol, WhopSDK::Models::AdCampaignListParams::Status, nil] The status of an ad campaign.
82
+ #
83
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
84
+
85
+ # The status of an ad campaign.
86
+ module Status
87
+ extend WhopSDK::Internal::Type::Enum
88
+
89
+ ACTIVE = :active
90
+ PAUSED = :paused
91
+ PAYMENT_FAILED = :payment_failed
92
+ DRAFT = :draft
93
+ IN_REVIEW = :in_review
94
+ FLAGGED = :flagged
95
+
96
+ # @!method self.values
97
+ # @return [Array<Symbol>]
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,126 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AdCampaigns#list
6
+ class AdCampaignListResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The unique identifier for this ad campaign.
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute budget
14
+ # Total budget in dollars.
15
+ #
16
+ # @return [Float, nil]
17
+ required :budget, Float, nil?: true
18
+
19
+ # @!attribute budget_type
20
+ # The budget type for an ad campaign or ad group.
21
+ #
22
+ # @return [Symbol, WhopSDK::Models::AdCampaignListResponse::BudgetType, nil]
23
+ required :budget_type, enum: -> { WhopSDK::Models::AdCampaignListResponse::BudgetType }, nil?: true
24
+
25
+ # @!attribute created_at
26
+ # When the ad campaign was created.
27
+ #
28
+ # @return [Time]
29
+ required :created_at, Time
30
+
31
+ # @!attribute platform
32
+ # The external ad platform this campaign is running on (e.g., meta, tiktok).
33
+ #
34
+ # @return [Symbol, WhopSDK::Models::AdCampaignListResponse::Platform]
35
+ required :platform, enum: -> { WhopSDK::Models::AdCampaignListResponse::Platform }
36
+
37
+ # @!attribute status
38
+ # Current status of the campaign (active, paused, or inactive).
39
+ #
40
+ # @return [Symbol, WhopSDK::Models::AdCampaignListResponse::Status]
41
+ required :status, enum: -> { WhopSDK::Models::AdCampaignListResponse::Status }
42
+
43
+ # @!attribute title
44
+ # The campaign name shown in the Whop dashboard.
45
+ #
46
+ # @return [String]
47
+ required :title, String
48
+
49
+ # @!attribute total_spend
50
+ # Total amount spent in dollars.
51
+ #
52
+ # @return [Float]
53
+ required :total_spend, Float
54
+
55
+ # @!attribute updated_at
56
+ # When the ad campaign was last updated.
57
+ #
58
+ # @return [Time]
59
+ required :updated_at, Time
60
+
61
+ # @!method initialize(id:, budget:, budget_type:, created_at:, platform:, status:, title:, total_spend:, updated_at:)
62
+ # An advertising campaign running on an external platform or within Whop.
63
+ #
64
+ # @param id [String] The unique identifier for this ad campaign.
65
+ #
66
+ # @param budget [Float, nil] Total budget in dollars.
67
+ #
68
+ # @param budget_type [Symbol, WhopSDK::Models::AdCampaignListResponse::BudgetType, nil] The budget type for an ad campaign or ad group.
69
+ #
70
+ # @param created_at [Time] When the ad campaign was created.
71
+ #
72
+ # @param platform [Symbol, WhopSDK::Models::AdCampaignListResponse::Platform] The external ad platform this campaign is running on (e.g., meta, tiktok).
73
+ #
74
+ # @param status [Symbol, WhopSDK::Models::AdCampaignListResponse::Status] Current status of the campaign (active, paused, or inactive).
75
+ #
76
+ # @param title [String] The campaign name shown in the Whop dashboard.
77
+ #
78
+ # @param total_spend [Float] Total amount spent in dollars.
79
+ #
80
+ # @param updated_at [Time] When the ad campaign was last updated.
81
+
82
+ # The budget type for an ad campaign or ad group.
83
+ #
84
+ # @see WhopSDK::Models::AdCampaignListResponse#budget_type
85
+ module BudgetType
86
+ extend WhopSDK::Internal::Type::Enum
87
+
88
+ DAILY = :daily
89
+ LIFETIME = :lifetime
90
+
91
+ # @!method self.values
92
+ # @return [Array<Symbol>]
93
+ end
94
+
95
+ # The external ad platform this campaign is running on (e.g., meta, tiktok).
96
+ #
97
+ # @see WhopSDK::Models::AdCampaignListResponse#platform
98
+ module Platform
99
+ extend WhopSDK::Internal::Type::Enum
100
+
101
+ META = :meta
102
+ TIKTOK = :tiktok
103
+
104
+ # @!method self.values
105
+ # @return [Array<Symbol>]
106
+ end
107
+
108
+ # Current status of the campaign (active, paused, or inactive).
109
+ #
110
+ # @see WhopSDK::Models::AdCampaignListResponse#status
111
+ module Status
112
+ extend WhopSDK::Internal::Type::Enum
113
+
114
+ ACTIVE = :active
115
+ PAUSED = :paused
116
+ PAYMENT_FAILED = :payment_failed
117
+ DRAFT = :draft
118
+ IN_REVIEW = :in_review
119
+ FLAGGED = :flagged
120
+
121
+ # @!method self.values
122
+ # @return [Array<Symbol>]
123
+ end
124
+ end
125
+ end
126
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AdCampaigns#pause
6
+ class AdCampaignPauseParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute id
11
+ #
12
+ # @return [String]
13
+ required :id, String
14
+
15
+ # @!method initialize(id:, request_options: {})
16
+ # @param id [String]
17
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
18
+ end
19
+ end
20
+ end