whop_sdk 0.0.37 → 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 (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +61 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +76 -10
  5. data/lib/whop_sdk/helpers/verify_user_token.rb +166 -34
  6. data/lib/whop_sdk/models/ad_campaign_list_params.rb +101 -0
  7. data/lib/whop_sdk/models/ad_campaign_list_response.rb +126 -0
  8. data/lib/whop_sdk/models/ad_campaign_pause_params.rb +20 -0
  9. data/lib/whop_sdk/models/ad_campaign_pause_response.rb +328 -0
  10. data/lib/whop_sdk/models/ad_campaign_retrieve_params.rb +20 -0
  11. data/lib/whop_sdk/models/ad_campaign_retrieve_response.rb +328 -0
  12. data/lib/whop_sdk/models/ad_campaign_unpause_params.rb +20 -0
  13. data/lib/whop_sdk/models/ad_campaign_unpause_response.rb +328 -0
  14. data/lib/whop_sdk/models/ad_campaign_update_params.rb +33 -0
  15. data/lib/whop_sdk/models/ad_campaign_update_response.rb +328 -0
  16. data/lib/whop_sdk/models/ad_group_delete_params.rb +20 -0
  17. data/lib/whop_sdk/models/ad_group_delete_response.rb +8 -0
  18. data/lib/whop_sdk/models/ad_group_list_params.rb +109 -0
  19. data/lib/whop_sdk/models/ad_group_list_response.rb +118 -0
  20. data/lib/whop_sdk/models/ad_group_retrieve_params.rb +20 -0
  21. data/lib/whop_sdk/models/ad_group_retrieve_response.rb +140 -0
  22. data/lib/whop_sdk/models/ad_group_update_params.rb +3207 -0
  23. data/lib/whop_sdk/models/ad_group_update_response.rb +140 -0
  24. data/lib/whop_sdk/models/ad_list_params.rb +115 -0
  25. data/lib/whop_sdk/models/ad_list_response.rb +89 -0
  26. data/lib/whop_sdk/models/ad_report_retrieve_params.rb +77 -0
  27. data/lib/whop_sdk/models/ad_report_retrieve_response.rb +312 -0
  28. data/lib/whop_sdk/models/ad_retrieve_params.rb +20 -0
  29. data/lib/whop_sdk/models/ad_retrieve_response.rb +133 -0
  30. data/lib/whop_sdk/models/authorized_user_roles.rb +1 -0
  31. data/lib/whop_sdk/models/bounty_create_params.rb +105 -0
  32. data/lib/whop_sdk/models/bounty_create_response.rb +126 -0
  33. data/lib/whop_sdk/models/bounty_list_params.rb +85 -0
  34. data/lib/whop_sdk/models/bounty_list_response.rb +126 -0
  35. data/lib/whop_sdk/models/bounty_retrieve_params.rb +20 -0
  36. data/lib/whop_sdk/models/bounty_retrieve_response.rb +126 -0
  37. data/lib/whop_sdk/models/checkout_configuration.rb +20 -2
  38. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +97 -23
  39. data/lib/whop_sdk/models/checkout_configuration_list_response.rb +20 -2
  40. data/lib/whop_sdk/models/company_create_api_key_params.rb +109 -0
  41. data/lib/whop_sdk/models/company_create_api_key_response.rb +35 -0
  42. data/lib/whop_sdk/models/conversion_create_params.rb +462 -0
  43. data/lib/whop_sdk/models/conversion_create_response.rb +19 -0
  44. data/lib/whop_sdk/models/currency.rb +1 -0
  45. data/lib/whop_sdk/models/file_create_params.rb +22 -1
  46. data/lib/whop_sdk/models/file_create_response.rb +26 -3
  47. data/lib/whop_sdk/models/file_retrieve_response.rb +26 -3
  48. data/lib/whop_sdk/models/forum_post_list_params.rb +9 -1
  49. data/lib/whop_sdk/models/forum_update_params.rb +10 -1
  50. data/lib/whop_sdk/models/invoice_create_params.rb +36 -18
  51. data/lib/whop_sdk/models/invoice_update_params.rb +29 -7
  52. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +2 -2
  53. data/lib/whop_sdk/models/membership.rb +11 -1
  54. data/lib/whop_sdk/models/membership_list_response.rb +11 -1
  55. data/lib/whop_sdk/models/payment.rb +47 -2
  56. data/lib/whop_sdk/models/payment_list_response.rb +29 -2
  57. data/lib/whop_sdk/models/payment_method_types.rb +16 -0
  58. data/lib/whop_sdk/models/payment_refund_params.rb +4 -3
  59. data/lib/whop_sdk/models/payout_account_retrieve_response.rb +2 -2
  60. data/lib/whop_sdk/models/payout_account_status_updated_webhook_event.rb +2 -2
  61. data/lib/whop_sdk/models/plan.rb +12 -3
  62. data/lib/whop_sdk/models/plan_create_params.rb +26 -6
  63. data/lib/whop_sdk/models/plan_list_response.rb +12 -3
  64. data/lib/whop_sdk/models/plan_update_params.rb +26 -6
  65. data/lib/whop_sdk/models/support_channel_list_params.rb +31 -9
  66. data/lib/whop_sdk/models/user_retrieve_params.rb +14 -1
  67. data/lib/whop_sdk/models/{user_update_profile_params.rb → user_update_params.rb} +24 -7
  68. data/lib/whop_sdk/models/verification_list_response.rb +2 -2
  69. data/lib/whop_sdk/models/verification_retrieve_response.rb +2 -2
  70. data/lib/whop_sdk/models/verification_status.rb +1 -0
  71. data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +2 -2
  72. data/lib/whop_sdk/models.rb +35 -1
  73. data/lib/whop_sdk/resources/ad_campaigns.rb +163 -0
  74. data/lib/whop_sdk/resources/ad_groups.rb +151 -0
  75. data/lib/whop_sdk/resources/ad_reports.rb +59 -0
  76. data/lib/whop_sdk/resources/ads.rb +88 -0
  77. data/lib/whop_sdk/resources/bounties.rb +124 -0
  78. data/lib/whop_sdk/resources/companies.rb +34 -0
  79. data/lib/whop_sdk/resources/conversions.rb +67 -0
  80. data/lib/whop_sdk/resources/files.rb +3 -1
  81. data/lib/whop_sdk/resources/forum_posts.rb +3 -1
  82. data/lib/whop_sdk/resources/forums.rb +3 -1
  83. data/lib/whop_sdk/resources/invoices.rb +9 -2
  84. data/lib/whop_sdk/resources/payments.rb +1 -1
  85. data/lib/whop_sdk/resources/plans.rb +6 -2
  86. data/lib/whop_sdk/resources/support_channels.rb +6 -4
  87. data/lib/whop_sdk/resources/users.rb +49 -37
  88. data/lib/whop_sdk/version.rb +1 -1
  89. data/lib/whop_sdk.rb +41 -1
  90. data/rbi/whop_sdk/client.rbi +24 -0
  91. data/rbi/whop_sdk/models/ad_campaign_list_params.rbi +142 -0
  92. data/rbi/whop_sdk/models/ad_campaign_list_response.rbi +239 -0
  93. data/rbi/whop_sdk/models/ad_campaign_pause_params.rbi +35 -0
  94. data/rbi/whop_sdk/models/ad_campaign_pause_response.rbi +668 -0
  95. data/rbi/whop_sdk/models/ad_campaign_retrieve_params.rbi +35 -0
  96. data/rbi/whop_sdk/models/ad_campaign_retrieve_response.rbi +679 -0
  97. data/rbi/whop_sdk/models/ad_campaign_unpause_params.rbi +35 -0
  98. data/rbi/whop_sdk/models/ad_campaign_unpause_response.rbi +675 -0
  99. data/rbi/whop_sdk/models/ad_campaign_update_params.rbi +51 -0
  100. data/rbi/whop_sdk/models/ad_campaign_update_response.rbi +670 -0
  101. data/rbi/whop_sdk/models/ad_group_delete_params.rbi +35 -0
  102. data/rbi/whop_sdk/models/ad_group_delete_response.rbi +8 -0
  103. data/rbi/whop_sdk/models/ad_group_list_params.rbi +145 -0
  104. data/rbi/whop_sdk/models/ad_group_list_response.rbi +228 -0
  105. data/rbi/whop_sdk/models/ad_group_retrieve_params.rbi +35 -0
  106. data/rbi/whop_sdk/models/ad_group_retrieve_response.rbi +277 -0
  107. data/rbi/whop_sdk/models/ad_group_update_params.rbi +6133 -0
  108. data/rbi/whop_sdk/models/ad_group_update_response.rbi +274 -0
  109. data/rbi/whop_sdk/models/ad_list_params.rbi +146 -0
  110. data/rbi/whop_sdk/models/ad_list_response.rbi +146 -0
  111. data/rbi/whop_sdk/models/ad_report_retrieve_params.rbi +99 -0
  112. data/rbi/whop_sdk/models/ad_report_retrieve_response.rbi +629 -0
  113. data/rbi/whop_sdk/models/ad_retrieve_params.rbi +35 -0
  114. data/rbi/whop_sdk/models/ad_retrieve_response.rbi +245 -0
  115. data/rbi/whop_sdk/models/authorized_user_roles.rbi +2 -0
  116. data/rbi/whop_sdk/models/bounty_create_params.rbi +129 -0
  117. data/rbi/whop_sdk/models/bounty_create_response.rbi +196 -0
  118. data/rbi/whop_sdk/models/bounty_list_params.rbi +115 -0
  119. data/rbi/whop_sdk/models/bounty_list_response.rbi +189 -0
  120. data/rbi/whop_sdk/models/bounty_retrieve_params.rbi +35 -0
  121. data/rbi/whop_sdk/models/bounty_retrieve_response.rbi +199 -0
  122. data/rbi/whop_sdk/models/checkout_configuration.rbi +20 -0
  123. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +84 -16
  124. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +20 -0
  125. data/rbi/whop_sdk/models/company_create_api_key_params.rbi +184 -0
  126. data/rbi/whop_sdk/models/company_create_api_key_response.rbi +51 -0
  127. data/rbi/whop_sdk/models/conversion_create_params.rbi +661 -0
  128. data/rbi/whop_sdk/models/conversion_create_response.rbi +31 -0
  129. data/rbi/whop_sdk/models/currency.rbi +1 -0
  130. data/rbi/whop_sdk/models/file_create_params.rbi +41 -1
  131. data/rbi/whop_sdk/models/file_create_response.rbi +52 -5
  132. data/rbi/whop_sdk/models/file_retrieve_response.rbi +53 -5
  133. data/rbi/whop_sdk/models/forum_post_list_params.rbi +8 -0
  134. data/rbi/whop_sdk/models/forum_update_params.rbi +10 -0
  135. data/rbi/whop_sdk/models/invoice_create_params.rbi +46 -26
  136. data/rbi/whop_sdk/models/invoice_update_params.rbi +28 -6
  137. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +2 -2
  138. data/rbi/whop_sdk/models/membership.rbi +12 -0
  139. data/rbi/whop_sdk/models/membership_list_response.rbi +12 -0
  140. data/rbi/whop_sdk/models/payment.rbi +57 -3
  141. data/rbi/whop_sdk/models/payment_list_response.rbi +37 -3
  142. data/rbi/whop_sdk/models/payment_method_types.rbi +31 -0
  143. data/rbi/whop_sdk/models/payment_refund_params.rbi +6 -4
  144. data/rbi/whop_sdk/models/payout_account_retrieve_response.rbi +2 -2
  145. data/rbi/whop_sdk/models/payout_account_status_updated_webhook_event.rbi +2 -2
  146. data/rbi/whop_sdk/models/plan.rbi +12 -2
  147. data/rbi/whop_sdk/models/plan_create_params.rbi +22 -4
  148. data/rbi/whop_sdk/models/plan_list_response.rbi +12 -2
  149. data/rbi/whop_sdk/models/plan_update_params.rbi +22 -4
  150. data/rbi/whop_sdk/models/support_channel_list_params.rbi +50 -8
  151. data/rbi/whop_sdk/models/user_retrieve_params.rbi +18 -2
  152. data/rbi/whop_sdk/models/{user_update_profile_params.rbi → user_update_params.rbi} +25 -9
  153. data/rbi/whop_sdk/models/verification_list_response.rbi +2 -2
  154. data/rbi/whop_sdk/models/verification_retrieve_response.rbi +2 -2
  155. data/rbi/whop_sdk/models/verification_status.rbi +2 -0
  156. data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +2 -2
  157. data/rbi/whop_sdk/models.rbi +35 -1
  158. data/rbi/whop_sdk/resources/ad_campaigns.rbi +134 -0
  159. data/rbi/whop_sdk/resources/ad_groups.rbi +139 -0
  160. data/rbi/whop_sdk/resources/ad_reports.rbi +55 -0
  161. data/rbi/whop_sdk/resources/ads.rbi +81 -0
  162. data/rbi/whop_sdk/resources/bounties.rbi +116 -0
  163. data/rbi/whop_sdk/resources/companies.rbi +32 -0
  164. data/rbi/whop_sdk/resources/conversions.rbi +71 -0
  165. data/rbi/whop_sdk/resources/files.rbi +5 -0
  166. data/rbi/whop_sdk/resources/forum_posts.rbi +3 -0
  167. data/rbi/whop_sdk/resources/forums.rbi +4 -0
  168. data/rbi/whop_sdk/resources/invoices.rbi +10 -1
  169. data/rbi/whop_sdk/resources/payments.rbi +3 -2
  170. data/rbi/whop_sdk/resources/plans.rbi +6 -0
  171. data/rbi/whop_sdk/resources/support_channels.rbi +8 -3
  172. data/rbi/whop_sdk/resources/users.rbi +42 -29
  173. data/sig/whop_sdk/client.rbs +12 -0
  174. data/sig/whop_sdk/models/ad_campaign_list_params.rbs +82 -0
  175. data/sig/whop_sdk/models/ad_campaign_list_response.rbs +98 -0
  176. data/sig/whop_sdk/models/ad_campaign_pause_params.rbs +20 -0
  177. data/sig/whop_sdk/models/ad_campaign_pause_response.rbs +232 -0
  178. data/sig/whop_sdk/models/ad_campaign_retrieve_params.rbs +20 -0
  179. data/sig/whop_sdk/models/ad_campaign_retrieve_response.rbs +232 -0
  180. data/sig/whop_sdk/models/ad_campaign_unpause_params.rbs +20 -0
  181. data/sig/whop_sdk/models/ad_campaign_unpause_response.rbs +232 -0
  182. data/sig/whop_sdk/models/ad_campaign_update_params.rbs +28 -0
  183. data/sig/whop_sdk/models/ad_campaign_update_response.rbs +232 -0
  184. data/sig/whop_sdk/models/ad_group_delete_params.rbs +20 -0
  185. data/sig/whop_sdk/models/ad_group_delete_response.rbs +5 -0
  186. data/sig/whop_sdk/models/ad_group_list_params.rbs +87 -0
  187. data/sig/whop_sdk/models/ad_group_list_response.rbs +93 -0
  188. data/sig/whop_sdk/models/ad_group_retrieve_params.rbs +20 -0
  189. data/sig/whop_sdk/models/ad_group_retrieve_response.rbs +108 -0
  190. data/sig/whop_sdk/models/ad_group_update_params.rbs +2439 -0
  191. data/sig/whop_sdk/models/ad_group_update_response.rbs +108 -0
  192. data/sig/whop_sdk/models/ad_list_params.rbs +87 -0
  193. data/sig/whop_sdk/models/ad_list_response.rbs +72 -0
  194. data/sig/whop_sdk/models/ad_report_retrieve_params.rbs +56 -0
  195. data/sig/whop_sdk/models/ad_report_retrieve_response.rbs +278 -0
  196. data/sig/whop_sdk/models/ad_retrieve_params.rbs +20 -0
  197. data/sig/whop_sdk/models/ad_retrieve_response.rbs +102 -0
  198. data/sig/whop_sdk/models/authorized_user_roles.rbs +2 -0
  199. data/sig/whop_sdk/models/bounty_create_params.rbs +71 -0
  200. data/sig/whop_sdk/models/bounty_create_response.rbs +93 -0
  201. data/sig/whop_sdk/models/bounty_list_params.rbs +67 -0
  202. data/sig/whop_sdk/models/bounty_list_response.rbs +93 -0
  203. data/sig/whop_sdk/models/bounty_retrieve_params.rbs +20 -0
  204. data/sig/whop_sdk/models/bounty_retrieve_response.rbs +93 -0
  205. data/sig/whop_sdk/models/checkout_configuration.rbs +10 -0
  206. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +51 -16
  207. data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +10 -0
  208. data/sig/whop_sdk/models/company_create_api_key_params.rbs +83 -0
  209. data/sig/whop_sdk/models/company_create_api_key_response.rbs +18 -0
  210. data/sig/whop_sdk/models/conversion_create_params.rbs +349 -0
  211. data/sig/whop_sdk/models/conversion_create_response.rbs +13 -0
  212. data/sig/whop_sdk/models/currency.rbs +2 -0
  213. data/sig/whop_sdk/models/file_create_params.rbs +20 -1
  214. data/sig/whop_sdk/models/file_create_response.rbs +19 -3
  215. data/sig/whop_sdk/models/file_retrieve_response.rbs +19 -3
  216. data/sig/whop_sdk/models/forum_post_list_params.rbs +5 -0
  217. data/sig/whop_sdk/models/forum_update_params.rbs +5 -0
  218. data/sig/whop_sdk/models/invoice_create_params.rbs +24 -14
  219. data/sig/whop_sdk/models/invoice_update_params.rbs +15 -5
  220. data/sig/whop_sdk/models/membership.rbs +5 -0
  221. data/sig/whop_sdk/models/membership_list_response.rbs +5 -0
  222. data/sig/whop_sdk/models/payment.rbs +25 -3
  223. data/sig/whop_sdk/models/payment_list_response.rbs +15 -3
  224. data/sig/whop_sdk/models/payment_method_types.rbs +32 -0
  225. data/sig/whop_sdk/models/plan.rbs +5 -0
  226. data/sig/whop_sdk/models/plan_create_params.rbs +14 -4
  227. data/sig/whop_sdk/models/plan_list_response.rbs +5 -0
  228. data/sig/whop_sdk/models/plan_update_params.rbs +14 -4
  229. data/sig/whop_sdk/models/support_channel_list_params.rbs +23 -6
  230. data/sig/whop_sdk/models/user_retrieve_params.rbs +10 -2
  231. data/sig/whop_sdk/models/{user_update_profile_params.rbs → user_update_params.rbs} +16 -6
  232. data/sig/whop_sdk/models/verification_status.rbs +2 -0
  233. data/sig/whop_sdk/models.rbs +35 -1
  234. data/sig/whop_sdk/resources/ad_campaigns.rbs +41 -0
  235. data/sig/whop_sdk/resources/ad_groups.rbs +40 -0
  236. data/sig/whop_sdk/resources/ad_reports.rbs +18 -0
  237. data/sig/whop_sdk/resources/ads.rbs +26 -0
  238. data/sig/whop_sdk/resources/bounties.rbs +37 -0
  239. data/sig/whop_sdk/resources/companies.rbs +9 -0
  240. data/sig/whop_sdk/resources/conversions.rbs +25 -0
  241. data/sig/whop_sdk/resources/files.rbs +1 -0
  242. data/sig/whop_sdk/resources/forum_posts.rbs +1 -0
  243. data/sig/whop_sdk/resources/forums.rbs +1 -0
  244. data/sig/whop_sdk/resources/invoices.rbs +2 -0
  245. data/sig/whop_sdk/resources/plans.rbs +2 -0
  246. data/sig/whop_sdk/resources/support_channels.rbs +2 -1
  247. data/sig/whop_sdk/resources/users.rbs +11 -8
  248. metadata +125 -5
@@ -0,0 +1,31 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class ConversionCreateResponse < WhopSDK::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ WhopSDK::Models::ConversionCreateResponse,
10
+ WhopSDK::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # The unique identifier for the conversion
15
+ sig { returns(String) }
16
+ attr_accessor :id
17
+
18
+ # A tracked conversion event
19
+ sig { params(id: String).returns(T.attached_class) }
20
+ def self.new(
21
+ # The unique identifier for the conversion
22
+ id:
23
+ )
24
+ end
25
+
26
+ sig { override.returns({ id: String }) }
27
+ def to_hash
28
+ end
29
+ end
30
+ end
31
+ end
@@ -95,6 +95,7 @@ module WhopSDK
95
95
  BTC = T.let(:btc, WhopSDK::Currency::TaggedSymbol)
96
96
  CNY = T.let(:cny, WhopSDK::Currency::TaggedSymbol)
97
97
  USDT = T.let(:usdt, WhopSDK::Currency::TaggedSymbol)
98
+ KZT = T.let(:kzt, WhopSDK::Currency::TaggedSymbol)
98
99
 
99
100
  sig { override.returns(T::Array[WhopSDK::Currency::TaggedSymbol]) }
100
101
  def self.values
@@ -16,9 +16,18 @@ module WhopSDK
16
16
  sig { returns(String) }
17
17
  attr_accessor :filename
18
18
 
19
+ # Controls whether an uploaded file is publicly accessible or requires
20
+ # authentication to access.
21
+ sig do
22
+ returns(T.nilable(WhopSDK::FileCreateParams::Visibility::OrSymbol))
23
+ end
24
+ attr_accessor :visibility
25
+
19
26
  sig do
20
27
  params(
21
28
  filename: String,
29
+ visibility:
30
+ T.nilable(WhopSDK::FileCreateParams::Visibility::OrSymbol),
22
31
  request_options: WhopSDK::RequestOptions::OrHash
23
32
  ).returns(T.attached_class)
24
33
  end
@@ -26,17 +35,48 @@ module WhopSDK
26
35
  # The name of the file including its extension (e.g., "photo.png" or
27
36
  # "document.pdf").
28
37
  filename:,
38
+ # Controls whether an uploaded file is publicly accessible or requires
39
+ # authentication to access.
40
+ visibility: nil,
29
41
  request_options: {}
30
42
  )
31
43
  end
32
44
 
33
45
  sig do
34
46
  override.returns(
35
- { filename: String, request_options: WhopSDK::RequestOptions }
47
+ {
48
+ filename: String,
49
+ visibility:
50
+ T.nilable(WhopSDK::FileCreateParams::Visibility::OrSymbol),
51
+ request_options: WhopSDK::RequestOptions
52
+ }
36
53
  )
37
54
  end
38
55
  def to_hash
39
56
  end
57
+
58
+ # Controls whether an uploaded file is publicly accessible or requires
59
+ # authentication to access.
60
+ module Visibility
61
+ extend WhopSDK::Internal::Type::Enum
62
+
63
+ TaggedSymbol =
64
+ T.type_alias { T.all(Symbol, WhopSDK::FileCreateParams::Visibility) }
65
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
66
+
67
+ PUBLIC =
68
+ T.let(:public, WhopSDK::FileCreateParams::Visibility::TaggedSymbol)
69
+ PRIVATE =
70
+ T.let(:private, WhopSDK::FileCreateParams::Visibility::TaggedSymbol)
71
+
72
+ sig do
73
+ override.returns(
74
+ T::Array[WhopSDK::FileCreateParams::Visibility::TaggedSymbol]
75
+ )
76
+ end
77
+ def self.values
78
+ end
79
+ end
40
80
  end
41
81
  end
42
82
  end
@@ -38,10 +38,18 @@ module WhopSDK
38
38
  sig { returns(T.nilable(String)) }
39
39
  attr_accessor :upload_url
40
40
 
41
- # The CDN URL for accessing the file. Null if the file has not finished uploading.
41
+ # The URL for accessing the file. For public files, this is a permanent CDN URL.
42
+ # For private files, this is a signed URL that expires. Null if the file has not
43
+ # finished uploading.
42
44
  sig { returns(T.nilable(String)) }
43
45
  attr_accessor :url
44
46
 
47
+ # Whether the file is publicly accessible or requires authentication.
48
+ sig do
49
+ returns(WhopSDK::Models::FileCreateResponse::Visibility::TaggedSymbol)
50
+ end
51
+ attr_accessor :visibility
52
+
45
53
  # A file that has been uploaded or is pending upload.
46
54
  sig do
47
55
  params(
@@ -52,7 +60,8 @@ module WhopSDK
52
60
  upload_headers: T.nilable(T::Hash[Symbol, T.anything]),
53
61
  upload_status: WhopSDK::UploadStatus::OrSymbol,
54
62
  upload_url: T.nilable(String),
55
- url: T.nilable(String)
63
+ url: T.nilable(String),
64
+ visibility: WhopSDK::Models::FileCreateResponse::Visibility::OrSymbol
56
65
  ).returns(T.attached_class)
57
66
  end
58
67
  def self.new(
@@ -72,8 +81,12 @@ module WhopSDK
72
81
  # The presigned URL to upload the file contents to. Only present in the response
73
82
  # from the create mutation.
74
83
  upload_url:,
75
- # The CDN URL for accessing the file. Null if the file has not finished uploading.
76
- url:
84
+ # The URL for accessing the file. For public files, this is a permanent CDN URL.
85
+ # For private files, this is a signed URL that expires. Null if the file has not
86
+ # finished uploading.
87
+ url:,
88
+ # Whether the file is publicly accessible or requires authentication.
89
+ visibility:
77
90
  )
78
91
  end
79
92
 
@@ -87,12 +100,46 @@ module WhopSDK
87
100
  upload_headers: T.nilable(T::Hash[Symbol, T.anything]),
88
101
  upload_status: WhopSDK::UploadStatus::TaggedSymbol,
89
102
  upload_url: T.nilable(String),
90
- url: T.nilable(String)
103
+ url: T.nilable(String),
104
+ visibility:
105
+ WhopSDK::Models::FileCreateResponse::Visibility::TaggedSymbol
91
106
  }
92
107
  )
93
108
  end
94
109
  def to_hash
95
110
  end
111
+
112
+ # Whether the file is publicly accessible or requires authentication.
113
+ module Visibility
114
+ extend WhopSDK::Internal::Type::Enum
115
+
116
+ TaggedSymbol =
117
+ T.type_alias do
118
+ T.all(Symbol, WhopSDK::Models::FileCreateResponse::Visibility)
119
+ end
120
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
121
+
122
+ PUBLIC =
123
+ T.let(
124
+ :public,
125
+ WhopSDK::Models::FileCreateResponse::Visibility::TaggedSymbol
126
+ )
127
+ PRIVATE =
128
+ T.let(
129
+ :private,
130
+ WhopSDK::Models::FileCreateResponse::Visibility::TaggedSymbol
131
+ )
132
+
133
+ sig do
134
+ override.returns(
135
+ T::Array[
136
+ WhopSDK::Models::FileCreateResponse::Visibility::TaggedSymbol
137
+ ]
138
+ )
139
+ end
140
+ def self.values
141
+ end
142
+ end
96
143
  end
97
144
  end
98
145
  end
@@ -31,10 +31,18 @@ module WhopSDK
31
31
  sig { returns(WhopSDK::UploadStatus::TaggedSymbol) }
32
32
  attr_accessor :upload_status
33
33
 
34
- # The CDN URL for accessing the file. Null if the file has not finished uploading.
34
+ # The URL for accessing the file. For public files, this is a permanent CDN URL.
35
+ # For private files, this is a signed URL that expires. Null if the file has not
36
+ # finished uploading.
35
37
  sig { returns(T.nilable(String)) }
36
38
  attr_accessor :url
37
39
 
40
+ # Whether the file is publicly accessible or requires authentication.
41
+ sig do
42
+ returns(WhopSDK::Models::FileRetrieveResponse::Visibility::TaggedSymbol)
43
+ end
44
+ attr_accessor :visibility
45
+
38
46
  # A file that has been uploaded or is pending upload.
39
47
  sig do
40
48
  params(
@@ -43,7 +51,9 @@ module WhopSDK
43
51
  filename: T.nilable(String),
44
52
  size: T.nilable(String),
45
53
  upload_status: WhopSDK::UploadStatus::OrSymbol,
46
- url: T.nilable(String)
54
+ url: T.nilable(String),
55
+ visibility:
56
+ WhopSDK::Models::FileRetrieveResponse::Visibility::OrSymbol
47
57
  ).returns(T.attached_class)
48
58
  end
49
59
  def self.new(
@@ -57,8 +67,12 @@ module WhopSDK
57
67
  size:,
58
68
  # The current upload status of the file (e.g., pending, ready).
59
69
  upload_status:,
60
- # The CDN URL for accessing the file. Null if the file has not finished uploading.
61
- url:
70
+ # The URL for accessing the file. For public files, this is a permanent CDN URL.
71
+ # For private files, this is a signed URL that expires. Null if the file has not
72
+ # finished uploading.
73
+ url:,
74
+ # Whether the file is publicly accessible or requires authentication.
75
+ visibility:
62
76
  )
63
77
  end
64
78
 
@@ -70,12 +84,46 @@ module WhopSDK
70
84
  filename: T.nilable(String),
71
85
  size: T.nilable(String),
72
86
  upload_status: WhopSDK::UploadStatus::TaggedSymbol,
73
- url: T.nilable(String)
87
+ url: T.nilable(String),
88
+ visibility:
89
+ WhopSDK::Models::FileRetrieveResponse::Visibility::TaggedSymbol
74
90
  }
75
91
  )
76
92
  end
77
93
  def to_hash
78
94
  end
95
+
96
+ # Whether the file is publicly accessible or requires authentication.
97
+ module Visibility
98
+ extend WhopSDK::Internal::Type::Enum
99
+
100
+ TaggedSymbol =
101
+ T.type_alias do
102
+ T.all(Symbol, WhopSDK::Models::FileRetrieveResponse::Visibility)
103
+ end
104
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
105
+
106
+ PUBLIC =
107
+ T.let(
108
+ :public,
109
+ WhopSDK::Models::FileRetrieveResponse::Visibility::TaggedSymbol
110
+ )
111
+ PRIVATE =
112
+ T.let(
113
+ :private,
114
+ WhopSDK::Models::FileRetrieveResponse::Visibility::TaggedSymbol
115
+ )
116
+
117
+ sig do
118
+ override.returns(
119
+ T::Array[
120
+ WhopSDK::Models::FileRetrieveResponse::Visibility::TaggedSymbol
121
+ ]
122
+ )
123
+ end
124
+ def self.values
125
+ end
126
+ end
79
127
  end
80
128
  end
81
129
  end
@@ -27,6 +27,10 @@ module WhopSDK
27
27
  sig { returns(T.nilable(Integer)) }
28
28
  attr_accessor :first
29
29
 
30
+ # Whether to include top-level bounty discussion anchors as rich forum items.
31
+ sig { returns(T.nilable(T::Boolean)) }
32
+ attr_accessor :include_bounty_anchors
33
+
30
34
  # Returns the last _n_ elements from the list.
31
35
  sig { returns(T.nilable(Integer)) }
32
36
  attr_accessor :last
@@ -47,6 +51,7 @@ module WhopSDK
47
51
  after: T.nilable(String),
48
52
  before: T.nilable(String),
49
53
  first: T.nilable(Integer),
54
+ include_bounty_anchors: T.nilable(T::Boolean),
50
55
  last: T.nilable(Integer),
51
56
  parent_id: T.nilable(String),
52
57
  pinned: T.nilable(T::Boolean),
@@ -62,6 +67,8 @@ module WhopSDK
62
67
  before: nil,
63
68
  # Returns the first _n_ elements from the list.
64
69
  first: nil,
70
+ # Whether to include top-level bounty discussion anchors as rich forum items.
71
+ include_bounty_anchors: nil,
65
72
  # Returns the last _n_ elements from the list.
66
73
  last: nil,
67
74
  # The unique identifier of a parent post to list comments for. When set, returns
@@ -81,6 +88,7 @@ module WhopSDK
81
88
  after: T.nilable(String),
82
89
  before: T.nilable(String),
83
90
  first: T.nilable(Integer),
91
+ include_bounty_anchors: T.nilable(T::Boolean),
84
92
  last: T.nilable(Integer),
85
93
  parent_id: T.nilable(String),
86
94
  pinned: T.nilable(T::Boolean),
@@ -14,6 +14,11 @@ module WhopSDK
14
14
  sig { returns(String) }
15
15
  attr_accessor :id
16
16
 
17
+ # A list of words that are automatically blocked from posts in this forum. For
18
+ # example, ['spam', 'scam'].
19
+ sig { returns(T.nilable(T::Array[String])) }
20
+ attr_accessor :banned_words
21
+
17
22
  # The banner image displayed at the top of the forum page. Pass null to remove the
18
23
  # existing banner.
19
24
  sig { returns(T.nilable(WhopSDK::ForumUpdateParams::BannerImage)) }
@@ -44,6 +49,7 @@ module WhopSDK
44
49
  sig do
45
50
  params(
46
51
  id: String,
52
+ banned_words: T.nilable(T::Array[String]),
47
53
  banner_image:
48
54
  T.nilable(WhopSDK::ForumUpdateParams::BannerImage::OrHash),
49
55
  email_notification_preference:
@@ -55,6 +61,9 @@ module WhopSDK
55
61
  end
56
62
  def self.new(
57
63
  id:,
64
+ # A list of words that are automatically blocked from posts in this forum. For
65
+ # example, ['spam', 'scam'].
66
+ banned_words: nil,
58
67
  # The banner image displayed at the top of the forum page. Pass null to remove the
59
68
  # existing banner.
60
69
  banner_image: nil,
@@ -72,6 +81,7 @@ module WhopSDK
72
81
  override.returns(
73
82
  {
74
83
  id: String,
84
+ banned_words: T.nilable(T::Array[String]),
75
85
  banner_image: T.nilable(WhopSDK::ForumUpdateParams::BannerImage),
76
86
  email_notification_preference:
77
87
  T.nilable(WhopSDK::EmailNotificationPreferences::OrSymbol),
@@ -118,9 +118,9 @@ module WhopSDK
118
118
  end
119
119
  attr_writer :product
120
120
 
121
- # The date and time when the invoice will be automatically finalized and charged.
122
- # Only valid when collection_method is charge_automatically. If not provided, the
123
- # charge will be processed immediately.
121
+ # The date and time when the invoice will be automatically finalized. For
122
+ # charge_automatically, triggers an automatic charge. For send_invoice, sends the
123
+ # invoice email to the customer at the specified time.
124
124
  sig { returns(T.nilable(Time)) }
125
125
  attr_accessor :automatically_finalizes_at
126
126
 
@@ -202,6 +202,11 @@ module WhopSDK
202
202
  sig { returns(T.nilable(T::Boolean)) }
203
203
  attr_accessor :save_as_draft
204
204
 
205
+ # The date that defines when the subscription billing cycle should start. When set
206
+ # on a renewal plan invoice, this anchors all future billing periods to this date.
207
+ sig { returns(T.nilable(Time)) }
208
+ attr_accessor :subscription_billing_anchor_at
209
+
205
210
  # Autogenerated input type of CreateInvoice
206
211
  sig do
207
212
  params(
@@ -230,7 +235,8 @@ module WhopSDK
230
235
  member_id: T.nilable(String),
231
236
  payment_method_id: T.nilable(String),
232
237
  payment_token_id: T.nilable(String),
233
- save_as_draft: T.nilable(T::Boolean)
238
+ save_as_draft: T.nilable(T::Boolean),
239
+ subscription_billing_anchor_at: T.nilable(Time)
234
240
  ).returns(T.attached_class)
235
241
  end
236
242
  def self.new(
@@ -245,9 +251,9 @@ module WhopSDK
245
251
  # The properties of the product to create for this invoice. Provide this to create
246
252
  # a new product inline.
247
253
  product:,
248
- # The date and time when the invoice will be automatically finalized and charged.
249
- # Only valid when collection_method is charge_automatically. If not provided, the
250
- # charge will be processed immediately.
254
+ # The date and time when the invoice will be automatically finalized. For
255
+ # charge_automatically, triggers an automatic charge. For send_invoice, sends the
256
+ # invoice email to the customer at the specified time.
251
257
  automatically_finalizes_at: nil,
252
258
  # Inline billing address to create a new mailing address for this invoice. Cannot
253
259
  # be used together with mailing_address_id.
@@ -280,7 +286,10 @@ module WhopSDK
280
286
  payment_token_id: nil,
281
287
  # When true, creates the invoice as a draft without sending or charging. Relaxes
282
288
  # customer and due date requirements.
283
- save_as_draft: nil
289
+ save_as_draft: nil,
290
+ # The date that defines when the subscription billing cycle should start. When set
291
+ # on a renewal plan invoice, this anchors all future billing periods to this date.
292
+ subscription_billing_anchor_at: nil
284
293
  )
285
294
  end
286
295
 
@@ -312,7 +321,8 @@ module WhopSDK
312
321
  member_id: T.nilable(String),
313
322
  payment_method_id: T.nilable(String),
314
323
  payment_token_id: T.nilable(String),
315
- save_as_draft: T.nilable(T::Boolean)
324
+ save_as_draft: T.nilable(T::Boolean),
325
+ subscription_billing_anchor_at: T.nilable(Time)
316
326
  }
317
327
  )
318
328
  end
@@ -618,7 +628,7 @@ module WhopSDK
618
628
  # Whether Whop's platform default payment method enablement settings are included
619
629
  # in this configuration. The full list of default payment methods can be found in
620
630
  # the documentation at docs.whop.com/payments.
621
- sig { returns(T::Boolean) }
631
+ sig { returns(T.nilable(T::Boolean)) }
622
632
  attr_accessor :include_platform_defaults
623
633
 
624
634
  # The explicit payment method configuration for the plan. If not provided, the
@@ -627,7 +637,7 @@ module WhopSDK
627
637
  params(
628
638
  disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
629
639
  enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
630
- include_platform_defaults: T::Boolean
640
+ include_platform_defaults: T.nilable(T::Boolean)
631
641
  ).returns(T.attached_class)
632
642
  end
633
643
  def self.new(
@@ -642,7 +652,7 @@ module WhopSDK
642
652
  # Whether Whop's platform default payment method enablement settings are included
643
653
  # in this configuration. The full list of default payment methods can be found in
644
654
  # the documentation at docs.whop.com/payments.
645
- include_platform_defaults:
655
+ include_platform_defaults: nil
646
656
  )
647
657
  end
648
658
 
@@ -651,7 +661,7 @@ module WhopSDK
651
661
  {
652
662
  disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
653
663
  enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
654
- include_platform_defaults: T::Boolean
664
+ include_platform_defaults: T.nilable(T::Boolean)
655
665
  }
656
666
  )
657
667
  end
@@ -902,9 +912,9 @@ module WhopSDK
902
912
  sig { returns(String) }
903
913
  attr_accessor :product_id
904
914
 
905
- # The date and time when the invoice will be automatically finalized and charged.
906
- # Only valid when collection_method is charge_automatically. If not provided, the
907
- # charge will be processed immediately.
915
+ # The date and time when the invoice will be automatically finalized. For
916
+ # charge_automatically, triggers an automatic charge. For send_invoice, sends the
917
+ # invoice email to the customer at the specified time.
908
918
  sig { returns(T.nilable(Time)) }
909
919
  attr_accessor :automatically_finalizes_at
910
920
 
@@ -986,6 +996,11 @@ module WhopSDK
986
996
  sig { returns(T.nilable(T::Boolean)) }
987
997
  attr_accessor :save_as_draft
988
998
 
999
+ # The date that defines when the subscription billing cycle should start. When set
1000
+ # on a renewal plan invoice, this anchors all future billing periods to this date.
1001
+ sig { returns(T.nilable(Time)) }
1002
+ attr_accessor :subscription_billing_anchor_at
1003
+
989
1004
  # Autogenerated input type of CreateInvoice
990
1005
  sig do
991
1006
  params(
@@ -1013,7 +1028,8 @@ module WhopSDK
1013
1028
  member_id: T.nilable(String),
1014
1029
  payment_method_id: T.nilable(String),
1015
1030
  payment_token_id: T.nilable(String),
1016
- save_as_draft: T.nilable(T::Boolean)
1031
+ save_as_draft: T.nilable(T::Boolean),
1032
+ subscription_billing_anchor_at: T.nilable(Time)
1017
1033
  ).returns(T.attached_class)
1018
1034
  end
1019
1035
  def self.new(
@@ -1027,9 +1043,9 @@ module WhopSDK
1027
1043
  plan:,
1028
1044
  # The unique identifier of an existing product to create this invoice for.
1029
1045
  product_id:,
1030
- # The date and time when the invoice will be automatically finalized and charged.
1031
- # Only valid when collection_method is charge_automatically. If not provided, the
1032
- # charge will be processed immediately.
1046
+ # The date and time when the invoice will be automatically finalized. For
1047
+ # charge_automatically, triggers an automatic charge. For send_invoice, sends the
1048
+ # invoice email to the customer at the specified time.
1033
1049
  automatically_finalizes_at: nil,
1034
1050
  # Inline billing address to create a new mailing address for this invoice. Cannot
1035
1051
  # be used together with mailing_address_id.
@@ -1062,7 +1078,10 @@ module WhopSDK
1062
1078
  payment_token_id: nil,
1063
1079
  # When true, creates the invoice as a draft without sending or charging. Relaxes
1064
1080
  # customer and due date requirements.
1065
- save_as_draft: nil
1081
+ save_as_draft: nil,
1082
+ # The date that defines when the subscription billing cycle should start. When set
1083
+ # on a renewal plan invoice, this anchors all future billing periods to this date.
1084
+ subscription_billing_anchor_at: nil
1066
1085
  )
1067
1086
  end
1068
1087
 
@@ -1093,7 +1112,8 @@ module WhopSDK
1093
1112
  member_id: T.nilable(String),
1094
1113
  payment_method_id: T.nilable(String),
1095
1114
  payment_token_id: T.nilable(String),
1096
- save_as_draft: T.nilable(T::Boolean)
1115
+ save_as_draft: T.nilable(T::Boolean),
1116
+ subscription_billing_anchor_at: T.nilable(Time)
1097
1117
  }
1098
1118
  )
1099
1119
  end
@@ -1399,7 +1419,7 @@ module WhopSDK
1399
1419
  # Whether Whop's platform default payment method enablement settings are included
1400
1420
  # in this configuration. The full list of default payment methods can be found in
1401
1421
  # the documentation at docs.whop.com/payments.
1402
- sig { returns(T::Boolean) }
1422
+ sig { returns(T.nilable(T::Boolean)) }
1403
1423
  attr_accessor :include_platform_defaults
1404
1424
 
1405
1425
  # The explicit payment method configuration for the plan. If not provided, the
@@ -1408,7 +1428,7 @@ module WhopSDK
1408
1428
  params(
1409
1429
  disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
1410
1430
  enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
1411
- include_platform_defaults: T::Boolean
1431
+ include_platform_defaults: T.nilable(T::Boolean)
1412
1432
  ).returns(T.attached_class)
1413
1433
  end
1414
1434
  def self.new(
@@ -1423,7 +1443,7 @@ module WhopSDK
1423
1443
  # Whether Whop's platform default payment method enablement settings are included
1424
1444
  # in this configuration. The full list of default payment methods can be found in
1425
1445
  # the documentation at docs.whop.com/payments.
1426
- include_platform_defaults:
1446
+ include_platform_defaults: nil
1427
1447
  )
1428
1448
  end
1429
1449
 
@@ -1432,7 +1452,7 @@ module WhopSDK
1432
1452
  {
1433
1453
  disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
1434
1454
  enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
1435
- include_platform_defaults: T::Boolean
1455
+ include_platform_defaults: T.nilable(T::Boolean)
1436
1456
  }
1437
1457
  )
1438
1458
  end
@@ -14,7 +14,9 @@ module WhopSDK
14
14
  sig { returns(String) }
15
15
  attr_accessor :id
16
16
 
17
- # The date and time when the invoice will be automatically finalized and charged.
17
+ # The date and time when the invoice will be automatically finalized. For
18
+ # charge_automatically, triggers an automatic charge. For send_invoice, sends the
19
+ # invoice email at the specified time.
18
20
  sig { returns(T.nilable(Time)) }
19
21
  attr_accessor :automatically_finalizes_at
20
22
 
@@ -77,6 +79,15 @@ module WhopSDK
77
79
  end
78
80
  attr_writer :plan
79
81
 
82
+ # The unique identifier of an existing product to attach to this invoice. Only
83
+ # allowed while the invoice is still a draft.
84
+ sig { returns(T.nilable(String)) }
85
+ attr_accessor :product_id
86
+
87
+ # The date that defines when the subscription billing cycle should start.
88
+ sig { returns(T.nilable(Time)) }
89
+ attr_accessor :subscription_billing_anchor_at
90
+
80
91
  sig do
81
92
  params(
82
93
  id: String,
@@ -94,12 +105,16 @@ module WhopSDK
94
105
  member_id: T.nilable(String),
95
106
  payment_method_id: T.nilable(String),
96
107
  plan: T.nilable(WhopSDK::InvoiceUpdateParams::Plan::OrHash),
108
+ product_id: T.nilable(String),
109
+ subscription_billing_anchor_at: T.nilable(Time),
97
110
  request_options: WhopSDK::RequestOptions::OrHash
98
111
  ).returns(T.attached_class)
99
112
  end
100
113
  def self.new(
101
114
  id:,
102
- # The date and time when the invoice will be automatically finalized and charged.
115
+ # The date and time when the invoice will be automatically finalized. For
116
+ # charge_automatically, triggers an automatic charge. For send_invoice, sends the
117
+ # invoice email at the specified time.
103
118
  automatically_finalizes_at: nil,
104
119
  # Inline billing address to create or update a mailing address for this invoice.
105
120
  billing_address: nil,
@@ -123,6 +138,11 @@ module WhopSDK
123
138
  payment_method_id: nil,
124
139
  # Updated plan attributes.
125
140
  plan: nil,
141
+ # The unique identifier of an existing product to attach to this invoice. Only
142
+ # allowed while the invoice is still a draft.
143
+ product_id: nil,
144
+ # The date that defines when the subscription billing cycle should start.
145
+ subscription_billing_anchor_at: nil,
126
146
  request_options: {}
127
147
  )
128
148
  end
@@ -145,6 +165,8 @@ module WhopSDK
145
165
  member_id: T.nilable(String),
146
166
  payment_method_id: T.nilable(String),
147
167
  plan: T.nilable(WhopSDK::InvoiceUpdateParams::Plan),
168
+ product_id: T.nilable(String),
169
+ subscription_billing_anchor_at: T.nilable(Time),
148
170
  request_options: WhopSDK::RequestOptions
149
171
  }
150
172
  )
@@ -603,7 +625,7 @@ module WhopSDK
603
625
  # Whether Whop's platform default payment method enablement settings are included
604
626
  # in this configuration. The full list of default payment methods can be found in
605
627
  # the documentation at docs.whop.com/payments.
606
- sig { returns(T::Boolean) }
628
+ sig { returns(T.nilable(T::Boolean)) }
607
629
  attr_accessor :include_platform_defaults
608
630
 
609
631
  # The explicit payment method configuration for the plan. If not provided, the
@@ -612,7 +634,7 @@ module WhopSDK
612
634
  params(
613
635
  disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
614
636
  enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
615
- include_platform_defaults: T::Boolean
637
+ include_platform_defaults: T.nilable(T::Boolean)
616
638
  ).returns(T.attached_class)
617
639
  end
618
640
  def self.new(
@@ -627,7 +649,7 @@ module WhopSDK
627
649
  # Whether Whop's platform default payment method enablement settings are included
628
650
  # in this configuration. The full list of default payment methods can be found in
629
651
  # the documentation at docs.whop.com/payments.
630
- include_platform_defaults:
652
+ include_platform_defaults: nil
631
653
  )
632
654
  end
633
655
 
@@ -636,7 +658,7 @@ module WhopSDK
636
658
  {
637
659
  disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
638
660
  enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
639
- include_platform_defaults: T::Boolean
661
+ include_platform_defaults: T.nilable(T::Boolean)
640
662
  }
641
663
  )
642
664
  end