whop_sdk 0.0.6 → 0.0.8

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 (178) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -0
  3. data/README.md +7 -7
  4. data/lib/whop_sdk/client.rb +8 -0
  5. data/lib/whop_sdk/internal/type/base_model.rb +1 -1
  6. data/lib/whop_sdk/models/access_token_create_params.rb +26 -36
  7. data/lib/whop_sdk/models/app.rb +9 -1
  8. data/lib/whop_sdk/models/app_list_params.rb +9 -1
  9. data/lib/whop_sdk/models/app_list_response.rb +9 -1
  10. data/lib/whop_sdk/models/app_type.rb +18 -0
  11. data/lib/whop_sdk/models/app_update_params.rb +9 -1
  12. data/lib/whop_sdk/models/card_brands.rb +1 -0
  13. data/lib/whop_sdk/models/checkout_configuration.rb +69 -7
  14. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +82 -10
  15. data/lib/whop_sdk/models/checkout_configuration_list_response.rb +69 -7
  16. data/lib/whop_sdk/models/checkout_modes.rb +16 -0
  17. data/lib/whop_sdk/models/course.rb +9 -1
  18. data/lib/whop_sdk/models/course_lesson_list_response.rb +9 -1
  19. data/lib/whop_sdk/models/course_lesson_mark_as_completed_params.rb +14 -0
  20. data/lib/whop_sdk/models/course_lesson_mark_as_completed_response.rb +8 -0
  21. data/lib/whop_sdk/models/course_lesson_start_params.rb +14 -0
  22. data/lib/whop_sdk/models/course_lesson_start_response.rb +8 -0
  23. data/lib/whop_sdk/models/course_lesson_submit_assessment_params.rb +52 -0
  24. data/lib/whop_sdk/models/course_lesson_submit_assessment_response.rb +151 -0
  25. data/lib/whop_sdk/models/course_list_response.rb +9 -1
  26. data/lib/whop_sdk/models/currency.rb +1 -0
  27. data/lib/whop_sdk/models/forum_post_create_params.rb +9 -1
  28. data/lib/whop_sdk/models/forum_post_update_params.rb +9 -1
  29. data/lib/whop_sdk/models/forum_post_visibility_type.rb +16 -0
  30. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -0
  31. data/lib/whop_sdk/models/lesson.rb +104 -2
  32. data/lib/whop_sdk/models/payment_provider.rb +22 -0
  33. data/lib/whop_sdk/models/refund_created_webhook_event.rb +354 -0
  34. data/lib/whop_sdk/models/refund_list_params.rb +62 -0
  35. data/lib/whop_sdk/models/refund_list_response.rb +113 -0
  36. data/lib/whop_sdk/models/refund_reference_status.rb +17 -0
  37. data/lib/whop_sdk/models/refund_reference_type.rb +17 -0
  38. data/lib/whop_sdk/models/refund_retrieve_params.rb +14 -0
  39. data/lib/whop_sdk/models/refund_retrieve_response.rb +307 -0
  40. data/lib/whop_sdk/models/refund_status.rb +19 -0
  41. data/lib/whop_sdk/models/refund_updated_webhook_event.rb +354 -0
  42. data/lib/whop_sdk/models/shipment.rb +3 -3
  43. data/lib/whop_sdk/models/shipment_list_response.rb +3 -3
  44. data/lib/whop_sdk/models/unwrap_webhook_event.rb +5 -1
  45. data/lib/whop_sdk/models/withdrawal_fee_types.rb +16 -0
  46. data/lib/whop_sdk/models/withdrawal_list_params.rb +78 -0
  47. data/lib/whop_sdk/models/withdrawal_list_response.rb +87 -0
  48. data/lib/whop_sdk/models/withdrawal_retrieve_params.rb +14 -0
  49. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +320 -0
  50. data/lib/whop_sdk/models/withdrawal_speeds.rb +16 -0
  51. data/lib/whop_sdk/models/withdrawal_status.rb +21 -0
  52. data/lib/whop_sdk/models/withdrawal_types.rb +16 -0
  53. data/lib/whop_sdk/models.rb +40 -0
  54. data/lib/whop_sdk/resources/access_tokens.rb +9 -7
  55. data/lib/whop_sdk/resources/apps.rb +6 -2
  56. data/lib/whop_sdk/resources/checkout_configurations.rb +11 -1
  57. data/lib/whop_sdk/resources/course_lessons.rb +64 -0
  58. data/lib/whop_sdk/resources/forum_posts.rb +6 -2
  59. data/lib/whop_sdk/resources/refunds.rb +78 -0
  60. data/lib/whop_sdk/resources/webhooks.rb +1 -1
  61. data/lib/whop_sdk/resources/withdrawals.rb +79 -0
  62. data/lib/whop_sdk/version.rb +1 -1
  63. data/lib/whop_sdk.rb +29 -0
  64. data/rbi/whop_sdk/client.rbi +6 -0
  65. data/rbi/whop_sdk/models/access_token_create_params.rbi +34 -77
  66. data/rbi/whop_sdk/models/app.rbi +8 -0
  67. data/rbi/whop_sdk/models/app_list_params.rbi +8 -0
  68. data/rbi/whop_sdk/models/app_list_response.rbi +8 -0
  69. data/rbi/whop_sdk/models/app_type.rbi +22 -0
  70. data/rbi/whop_sdk/models/app_update_params.rbi +8 -0
  71. data/rbi/whop_sdk/models/card_brands.rbi +1 -0
  72. data/rbi/whop_sdk/models/checkout_configuration.rbi +117 -7
  73. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +124 -8
  74. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +127 -7
  75. data/rbi/whop_sdk/models/checkout_modes.rbi +20 -0
  76. data/rbi/whop_sdk/models/course.rbi +8 -0
  77. data/rbi/whop_sdk/models/course_lesson_list_response.rbi +8 -0
  78. data/rbi/whop_sdk/models/course_lesson_mark_as_completed_params.rbi +30 -0
  79. data/rbi/whop_sdk/models/course_lesson_mark_as_completed_response.rbi +8 -0
  80. data/rbi/whop_sdk/models/course_lesson_start_params.rbi +27 -0
  81. data/rbi/whop_sdk/models/course_lesson_start_response.rbi +8 -0
  82. data/rbi/whop_sdk/models/course_lesson_submit_assessment_params.rbi +104 -0
  83. data/rbi/whop_sdk/models/course_lesson_submit_assessment_response.rbi +222 -0
  84. data/rbi/whop_sdk/models/course_list_response.rbi +8 -0
  85. data/rbi/whop_sdk/models/currency.rbi +1 -0
  86. data/rbi/whop_sdk/models/forum_post_create_params.rbi +8 -0
  87. data/rbi/whop_sdk/models/forum_post_update_params.rbi +8 -0
  88. data/rbi/whop_sdk/models/forum_post_visibility_type.rbi +27 -0
  89. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +5 -0
  90. data/rbi/whop_sdk/models/lesson.rbi +115 -3
  91. data/rbi/whop_sdk/models/payment_provider.rbi +27 -0
  92. data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +561 -0
  93. data/rbi/whop_sdk/models/refund_list_params.rbi +83 -0
  94. data/rbi/whop_sdk/models/refund_list_response.rbi +155 -0
  95. data/rbi/whop_sdk/models/refund_reference_status.rbi +26 -0
  96. data/rbi/whop_sdk/models/refund_reference_type.rbi +36 -0
  97. data/rbi/whop_sdk/models/refund_retrieve_params.rbi +27 -0
  98. data/rbi/whop_sdk/models/refund_retrieve_response.rbi +484 -0
  99. data/rbi/whop_sdk/models/refund_status.rbi +24 -0
  100. data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +561 -0
  101. data/rbi/whop_sdk/models/shipment.rbi +6 -4
  102. data/rbi/whop_sdk/models/shipment_list_response.rbi +6 -4
  103. data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +3 -1
  104. data/rbi/whop_sdk/models/withdrawal_fee_types.rbi +22 -0
  105. data/rbi/whop_sdk/models/withdrawal_list_params.rbi +99 -0
  106. data/rbi/whop_sdk/models/withdrawal_list_response.rbi +107 -0
  107. data/rbi/whop_sdk/models/withdrawal_retrieve_params.rbi +27 -0
  108. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +713 -0
  109. data/rbi/whop_sdk/models/withdrawal_speeds.rbi +22 -0
  110. data/rbi/whop_sdk/models/withdrawal_status.rbi +28 -0
  111. data/rbi/whop_sdk/models/withdrawal_types.rbi +20 -0
  112. data/rbi/whop_sdk/models.rbi +42 -0
  113. data/rbi/whop_sdk/resources/access_tokens.rbi +19 -14
  114. data/rbi/whop_sdk/resources/apps.rbi +6 -0
  115. data/rbi/whop_sdk/resources/checkout_configurations.rbi +15 -0
  116. data/rbi/whop_sdk/resources/course_lessons.rbi +48 -0
  117. data/rbi/whop_sdk/resources/forum_posts.rbi +6 -0
  118. data/rbi/whop_sdk/resources/refunds.rbi +68 -0
  119. data/rbi/whop_sdk/resources/webhooks.rbi +3 -1
  120. data/rbi/whop_sdk/resources/withdrawals.rbi +71 -0
  121. data/sig/whop_sdk/client.rbs +4 -0
  122. data/sig/whop_sdk/models/access_token_create_params.rbs +14 -29
  123. data/sig/whop_sdk/models/app.rbs +5 -0
  124. data/sig/whop_sdk/models/app_list_params.rbs +5 -0
  125. data/sig/whop_sdk/models/app_list_response.rbs +5 -0
  126. data/sig/whop_sdk/models/app_type.rbs +16 -0
  127. data/sig/whop_sdk/models/app_update_params.rbs +5 -0
  128. data/sig/whop_sdk/models/card_brands.rbs +2 -0
  129. data/sig/whop_sdk/models/checkout_configuration.rbs +45 -8
  130. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +48 -6
  131. data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +45 -8
  132. data/sig/whop_sdk/models/checkout_modes.rbs +14 -0
  133. data/sig/whop_sdk/models/course.rbs +5 -0
  134. data/sig/whop_sdk/models/course_lesson_list_response.rbs +5 -0
  135. data/sig/whop_sdk/models/course_lesson_mark_as_completed_params.rbs +15 -0
  136. data/sig/whop_sdk/models/course_lesson_mark_as_completed_response.rbs +5 -0
  137. data/sig/whop_sdk/models/course_lesson_start_params.rbs +15 -0
  138. data/sig/whop_sdk/models/course_lesson_start_response.rbs +5 -0
  139. data/sig/whop_sdk/models/course_lesson_submit_assessment_params.rbs +51 -0
  140. data/sig/whop_sdk/models/course_lesson_submit_assessment_response.rbs +96 -0
  141. data/sig/whop_sdk/models/course_list_response.rbs +5 -0
  142. data/sig/whop_sdk/models/currency.rbs +2 -0
  143. data/sig/whop_sdk/models/forum_post_create_params.rbs +6 -1
  144. data/sig/whop_sdk/models/forum_post_update_params.rbs +6 -1
  145. data/sig/whop_sdk/models/forum_post_visibility_type.rbs +14 -0
  146. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +2 -0
  147. data/sig/whop_sdk/models/lesson.rbs +79 -3
  148. data/sig/whop_sdk/models/payment_provider.rbs +28 -0
  149. data/sig/whop_sdk/models/refund_created_webhook_event.rbs +252 -0
  150. data/sig/whop_sdk/models/refund_list_params.rbs +51 -0
  151. data/sig/whop_sdk/models/refund_list_response.rbs +80 -0
  152. data/sig/whop_sdk/models/refund_reference_status.rbs +15 -0
  153. data/sig/whop_sdk/models/refund_reference_type.rbs +18 -0
  154. data/sig/whop_sdk/models/refund_retrieve_params.rbs +15 -0
  155. data/sig/whop_sdk/models/refund_retrieve_response.rbs +215 -0
  156. data/sig/whop_sdk/models/refund_status.rbs +18 -0
  157. data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +252 -0
  158. data/sig/whop_sdk/models/shipment.rbs +4 -4
  159. data/sig/whop_sdk/models/shipment_list_response.rbs +4 -4
  160. data/sig/whop_sdk/models/unwrap_webhook_event.rbs +2 -0
  161. data/sig/whop_sdk/models/withdrawal_fee_types.rbs +14 -0
  162. data/sig/whop_sdk/models/withdrawal_list_params.rbs +61 -0
  163. data/sig/whop_sdk/models/withdrawal_list_response.rbs +60 -0
  164. data/sig/whop_sdk/models/withdrawal_retrieve_params.rbs +15 -0
  165. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +297 -0
  166. data/sig/whop_sdk/models/withdrawal_speeds.rbs +14 -0
  167. data/sig/whop_sdk/models/withdrawal_status.rbs +26 -0
  168. data/sig/whop_sdk/models/withdrawal_types.rbs +14 -0
  169. data/sig/whop_sdk/models.rbs +40 -0
  170. data/sig/whop_sdk/resources/access_tokens.rbs +3 -3
  171. data/sig/whop_sdk/resources/apps.rbs +2 -0
  172. data/sig/whop_sdk/resources/checkout_configurations.rbs +3 -0
  173. data/sig/whop_sdk/resources/course_lessons.rbs +16 -0
  174. data/sig/whop_sdk/resources/forum_posts.rbs +2 -0
  175. data/sig/whop_sdk/resources/refunds.rbs +22 -0
  176. data/sig/whop_sdk/resources/webhooks.rbs +3 -1
  177. data/sig/whop_sdk/resources/withdrawals.rbs +24 -0
  178. metadata +89 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 732d86cb6f20a898b79b19dc92e2404632edcf05d822e0e1b7b922647b61e932
4
- data.tar.gz: c056debc5fdb1000cd5262befd3fced0a578b45ad0ac8010e11b6ea9cd9cad14
3
+ metadata.gz: 14ebf7da15710195e3504625ed6981872a5617073900afea6e87a69649fb2168
4
+ data.tar.gz: 8be39b26a644d7dde4c56f91d70966d562289b751f9ff161878240bd42a894d7
5
5
  SHA512:
6
- metadata.gz: b2763f3095b8e970464194a4eb59e86b69e8459a0efca643db385d1cc0ae01fd0c78cf0f6587be07a27320e4bd4040a4c0249fc11a7661c58396a9e273f10ddc
7
- data.tar.gz: d79ef16946f2a1e1fe950af483e8c4beceb50eb026ebf872ef1662bfcdb72b03d6051cb3a89e84ec17de393ea352ee77e799447945a3759fd2429aef6389ed89
6
+ metadata.gz: 691a259a1b5dfd6b2b9550a357dbac5111122439578e526550dde1c9c227614a0a83f3521ae4035b9d07a33d913e0ff85cafc6f86d4e74b08e4c97bf81d99475
7
+ data.tar.gz: ba2977755e24b9a195f1205b629daab0aab47576a770ee0a45a4807f71cb7276fe36cd06f4d3624dddd2bf03c8e0adcc322ec0c214c8ad15ab6b29605dd9886d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.8 (2025-11-21)
4
+
5
+ Full Changelog: [v0.0.7...v0.0.8](https://github.com/whopio/whopsdk-ruby/compare/v0.0.7...v0.0.8)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([72487db](https://github.com/whopio/whopsdk-ruby/commit/72487dbb2daaa569372cb99905d1b96a0826fa56))
10
+ * **api:** api update ([341b128](https://github.com/whopio/whopsdk-ruby/commit/341b128658ed294d1b760c3092d6041d52d44eb4))
11
+ * **api:** api update ([d9b89be](https://github.com/whopio/whopsdk-ruby/commit/d9b89be75eff6ba70aeefbf042c4aeabd09781bb))
12
+ * **api:** api update ([dfdbc53](https://github.com/whopio/whopsdk-ruby/commit/dfdbc5320bdfda5dd7926197d43cb2757cce21ac))
13
+ * **api:** api update ([1ff62ca](https://github.com/whopio/whopsdk-ruby/commit/1ff62caa47b1ae680cf9ae162db3be7212544fb0))
14
+ * **api:** api update ([840e972](https://github.com/whopio/whopsdk-ruby/commit/840e97296beec8d6d673a393418ab06f929b6ecc))
15
+ * **api:** api update ([35bad56](https://github.com/whopio/whopsdk-ruby/commit/35bad566f34175c7bf3c82207ac408ac358db265))
16
+ * **api:** api update ([48e6d40](https://github.com/whopio/whopsdk-ruby/commit/48e6d4091b7d6d313a1726ad34b606e2b66c8e96))
17
+ * **api:** api update ([1ba7f81](https://github.com/whopio/whopsdk-ruby/commit/1ba7f814b72b379e4bcff6878e1d5d54fab85d5f))
18
+ * **api:** manual updates ([ebbd3fc](https://github.com/whopio/whopsdk-ruby/commit/ebbd3fcc2b580428328e534c6dd5b46872fbb3c0))
19
+ * **api:** manual updates ([20edbe3](https://github.com/whopio/whopsdk-ruby/commit/20edbe30c55d090caf1deae00f0134d0db6caa1f))
20
+ * **api:** manual updates ([e809850](https://github.com/whopio/whopsdk-ruby/commit/e809850e0ecffd74f7470bfa1ff306f3751be838))
21
+
22
+ ## 0.0.7 (2025-11-13)
23
+
24
+ Full Changelog: [v0.0.6...v0.0.7](https://github.com/whopio/whopsdk-ruby/compare/v0.0.6...v0.0.7)
25
+
26
+ ### Features
27
+
28
+ * **api:** api update ([ebffee5](https://github.com/whopio/whopsdk-ruby/commit/ebffee5d68b29d6a7219b6f5446229c1734a9c58))
29
+ * **api:** api update ([9984831](https://github.com/whopio/whopsdk-ruby/commit/9984831a51353e776c0e3dd6c4e58bc7ecf94cb3))
30
+ * **api:** api update ([89cb635](https://github.com/whopio/whopsdk-ruby/commit/89cb635fcb034579638e5946bf7d773639848f80))
31
+ * **api:** api update ([71c9708](https://github.com/whopio/whopsdk-ruby/commit/71c9708ff5359af68c59e22eafe8c9b2af8be588))
32
+ * **api:** api update ([f0ed1e2](https://github.com/whopio/whopsdk-ruby/commit/f0ed1e29b2293b5bb408b7d3c12722df36add5b7))
33
+ * **api:** api update ([117f8ff](https://github.com/whopio/whopsdk-ruby/commit/117f8ff26be6ccd0e004d74e65c3ad866ae31d64))
34
+
3
35
  ## 0.0.6 (2025-11-10)
4
36
 
5
37
  Full Changelog: [v0.0.5...v0.0.6](https://github.com/whopio/whopsdk-ruby/compare/v0.0.5...v0.0.6)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "whop_sdk", "~> 0.0.6"
20
+ gem "whop_sdk", "~> 0.0.8"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -225,11 +225,11 @@ whop.payments.list(**params)
225
225
  Since this library does not depend on `sorbet-runtime`, it cannot provide [`T::Enum`](https://sorbet.org/docs/tenum) instances. Instead, we provide "tagged symbols" instead, which is always a primitive at runtime:
226
226
 
227
227
  ```ruby
228
- # :live
229
- puts(WhopSDK::AppStatuses::LIVE)
228
+ # :b2b_app
229
+ puts(WhopSDK::AppType::B2B_APP)
230
230
 
231
- # Revealed type: `T.all(WhopSDK::AppStatuses, Symbol)`
232
- T.reveal_type(WhopSDK::AppStatuses::LIVE)
231
+ # Revealed type: `T.all(WhopSDK::AppType, Symbol)`
232
+ T.reveal_type(WhopSDK::AppType::B2B_APP)
233
233
  ```
234
234
 
235
235
  Enum parameters have a "relaxed" type, so you can either pass in enum constants or their literal value:
@@ -237,13 +237,13 @@ Enum parameters have a "relaxed" type, so you can either pass in enum constants
237
237
  ```ruby
238
238
  # Using the enum constants preserves the tagged type information:
239
239
  whop.apps.update(
240
- status: WhopSDK::AppStatuses::LIVE,
240
+ app_type: WhopSDK::AppType::B2B_APP,
241
241
  # …
242
242
  )
243
243
 
244
244
  # Literal values are also permissible:
245
245
  whop.apps.update(
246
- status: :live,
246
+ app_type: :b2b_app,
247
247
  # …
248
248
  )
249
249
  ```
@@ -126,6 +126,12 @@ module WhopSDK
126
126
  # @return [WhopSDK::Resources::Disputes]
127
127
  attr_reader :disputes
128
128
 
129
+ # @return [WhopSDK::Resources::Refunds]
130
+ attr_reader :refunds
131
+
132
+ # @return [WhopSDK::Resources::Withdrawals]
133
+ attr_reader :withdrawals
134
+
129
135
  # @api private
130
136
  #
131
137
  # @return [Hash{String=>String}]
@@ -217,6 +223,8 @@ module WhopSDK
217
223
  @access_tokens = WhopSDK::Resources::AccessTokens.new(client: self)
218
224
  @notifications = WhopSDK::Resources::Notifications.new(client: self)
219
225
  @disputes = WhopSDK::Resources::Disputes.new(client: self)
226
+ @refunds = WhopSDK::Resources::Refunds.new(client: self)
227
+ @withdrawals = WhopSDK::Resources::Withdrawals.new(client: self)
220
228
  end
221
229
 
222
230
  # Verifies a Whop user token
@@ -442,7 +442,7 @@ module WhopSDK
442
442
  # app => {
443
443
  # id: id,
444
444
  # api_key: api_key,
445
- # base_url: base_url
445
+ # app_type: app_type
446
446
  # }
447
447
  def deconstruct_keys(keys)
448
448
  (keys || self.class.known_fields.keys)
@@ -7,25 +7,13 @@ module WhopSDK
7
7
  extend WhopSDK::Internal::Type::RequestParameters::Converter
8
8
  include WhopSDK::Internal::Type::RequestParameters
9
9
 
10
- # @!attribute scoped_actions
11
- # Array of desired scoped actions for the access token. This list must be a subset
12
- # of the API keys's existing permissions. Otherwise, an error will be raised.
13
- #
14
- # @return [Array<String>]
15
- required :scoped_actions, WhopSDK::Internal::Type::ArrayOf[String]
16
-
17
- # @!attribute target_resource_id
18
- # The ID of the target resource (Company, User, etc.) for which the access token
19
- # is being created.
10
+ # @!attribute company_id
11
+ # The ID of the Company to generate the token for. The API key must have
12
+ # permission to access this Company, such as the being the company the API key
13
+ # belongs to or a sub-merchant of it
20
14
  #
21
15
  # @return [String]
22
- required :target_resource_id, String
23
-
24
- # @!attribute target_resource_type
25
- # The type of the target resource (company, user, product, experience, etc.).
26
- #
27
- # @return [Symbol, WhopSDK::Models::AccessTokenCreateParams::TargetResourceType]
28
- required :target_resource_type, enum: -> { WhopSDK::AccessTokenCreateParams::TargetResourceType }
16
+ required :company_id, String
29
17
 
30
18
  # @!attribute expires_at
31
19
  # The expiration timestamp for the access token. If not provided, a default
@@ -35,33 +23,35 @@ module WhopSDK
35
23
  # @return [Time, nil]
36
24
  optional :expires_at, Time, nil?: true
37
25
 
38
- # @!method initialize(scoped_actions:, target_resource_id:, target_resource_type:, expires_at: nil, request_options: {})
26
+ # @!attribute scoped_actions
27
+ # Array of desired scoped actions for the access token. If sent as an empty array
28
+ # or not provided, all permissions from the API key making the request will be
29
+ # available on the token. If sending an explicit list, they must be a subset of
30
+ # the API keys's existing permissions. Otherwise, an error will be raised.
31
+ #
32
+ # @return [Array<String>, nil]
33
+ optional :scoped_actions, WhopSDK::Internal::Type::ArrayOf[String], nil?: true
34
+
35
+ # @!attribute user_id
36
+ # The ID of the User to generate the token for. The API key must have permission
37
+ # to access this User.
38
+ #
39
+ # @return [String]
40
+ required :user_id, String
41
+
42
+ # @!method initialize(company_id:, user_id:, expires_at: nil, scoped_actions: nil, request_options: {})
39
43
  # Some parameter documentations has been truncated, see
40
44
  # {WhopSDK::Models::AccessTokenCreateParams} for more details.
41
45
  #
42
- # @param scoped_actions [Array<String>] Array of desired scoped actions for the access token. This list must be a subset
43
- #
44
- # @param target_resource_id [String] The ID of the target resource (Company, User, etc.) for which the access token i
46
+ # @param company_id [String] The ID of the Company to generate the token for. The API key must have permissio
45
47
  #
46
- # @param target_resource_type [Symbol, WhopSDK::Models::AccessTokenCreateParams::TargetResourceType] The type of the target resource (company, user, product, experience, etc.).
48
+ # @param user_id [String] The ID of the User to generate the token for. The API key must have permission t
47
49
  #
48
50
  # @param expires_at [Time, nil] The expiration timestamp for the access token. If not provided, a default expira
49
51
  #
52
+ # @param scoped_actions [Array<String>, nil] Array of desired scoped actions for the access token. If sent as an empty array
53
+ #
50
54
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
51
-
52
- # The type of the target resource (company, user, product, experience, etc.).
53
- module TargetResourceType
54
- extend WhopSDK::Internal::Type::Enum
55
-
56
- COMPANY = :company
57
- PRODUCT = :product
58
- EXPERIENCE = :experience
59
- APP = :app
60
- USER = :user
61
-
62
- # @!method self.values
63
- # @return [Array<Symbol>]
64
- end
65
55
  end
66
56
  end
67
57
  end
@@ -15,6 +15,12 @@ module WhopSDK
15
15
  # @return [WhopSDK::Models::App::APIKey, nil]
16
16
  required :api_key, -> { WhopSDK::App::APIKey }, nil?: true
17
17
 
18
+ # @!attribute app_type
19
+ # The type of end-user an app is built for
20
+ #
21
+ # @return [Symbol, WhopSDK::Models::AppType]
22
+ required :app_type, enum: -> { WhopSDK::AppType }
23
+
18
24
  # @!attribute base_url
19
25
  # The base url of the app
20
26
  #
@@ -112,7 +118,7 @@ module WhopSDK
112
118
  # @return [Boolean]
113
119
  required :verified, WhopSDK::Internal::Type::Boolean
114
120
 
115
- # @!method initialize(id:, api_key:, base_url:, company:, creator:, dashboard_path:, description:, discover_path:, domain_id:, experience_path:, icon:, name:, requested_permissions:, stats:, status:, verified:)
121
+ # @!method initialize(id:, api_key:, app_type:, base_url:, company:, creator:, dashboard_path:, description:, discover_path:, domain_id:, experience_path:, icon:, name:, requested_permissions:, stats:, status:, verified:)
116
122
  # Some parameter documentations has been truncated, see {WhopSDK::Models::App} for
117
123
  # more details.
118
124
  #
@@ -122,6 +128,8 @@ module WhopSDK
122
128
  #
123
129
  # @param api_key [WhopSDK::Models::App::APIKey, nil] The API key for the app
124
130
  #
131
+ # @param app_type [Symbol, WhopSDK::Models::AppType] The type of end-user an app is built for
132
+ #
125
133
  # @param base_url [String, nil] The base url of the app
126
134
  #
127
135
  # @param company [WhopSDK::Models::App::Company] The company that owns the app
@@ -13,6 +13,12 @@ module WhopSDK
13
13
  # @return [String, nil]
14
14
  optional :after, String, nil?: true
15
15
 
16
+ # @!attribute app_type
17
+ # The type of end-user an app is built for
18
+ #
19
+ # @return [Symbol, WhopSDK::Models::AppType, nil]
20
+ optional :app_type, enum: -> { WhopSDK::AppType }, nil?: true
21
+
16
22
  # @!attribute before
17
23
  # Returns the elements in the list that come before the specified cursor.
18
24
  #
@@ -68,12 +74,14 @@ module WhopSDK
68
74
  # @return [Symbol, WhopSDK::Models::AppViewType, nil]
69
75
  optional :view_type, enum: -> { WhopSDK::AppViewType }, nil?: true
70
76
 
71
- # @!method initialize(after: nil, before: nil, company_id: nil, direction: nil, first: nil, last: nil, order: nil, query: nil, verified_apps_only: nil, view_type: nil, request_options: {})
77
+ # @!method initialize(after: nil, app_type: nil, before: nil, company_id: nil, direction: nil, first: nil, last: nil, order: nil, query: nil, verified_apps_only: nil, view_type: nil, request_options: {})
72
78
  # Some parameter documentations has been truncated, see
73
79
  # {WhopSDK::Models::AppListParams} for more details.
74
80
  #
75
81
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
76
82
  #
83
+ # @param app_type [Symbol, WhopSDK::Models::AppType, nil] The type of end-user an app is built for
84
+ #
77
85
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
78
86
  #
79
87
  # @param company_id [String, nil] The ID of the company to filter apps by
@@ -10,6 +10,12 @@ module WhopSDK
10
10
  # @return [String]
11
11
  required :id, String
12
12
 
13
+ # @!attribute app_type
14
+ # The type of end-user an app is built for
15
+ #
16
+ # @return [Symbol, WhopSDK::Models::AppType]
17
+ required :app_type, enum: -> { WhopSDK::AppType }
18
+
13
19
  # @!attribute base_url
14
20
  # The base url of the app
15
21
  #
@@ -93,7 +99,7 @@ module WhopSDK
93
99
  # @return [Boolean]
94
100
  required :verified, WhopSDK::Internal::Type::Boolean
95
101
 
96
- # @!method initialize(id:, base_url:, company:, creator:, dashboard_path:, description:, discover_path:, domain_id:, experience_path:, icon:, name:, status:, verified:)
102
+ # @!method initialize(id:, app_type:, base_url:, company:, creator:, dashboard_path:, description:, discover_path:, domain_id:, experience_path:, icon:, name:, status:, verified:)
97
103
  # Some parameter documentations has been truncated, see
98
104
  # {WhopSDK::Models::AppListResponse} for more details.
99
105
  #
@@ -101,6 +107,8 @@ module WhopSDK
101
107
  #
102
108
  # @param id [String] The ID of the app
103
109
  #
110
+ # @param app_type [Symbol, WhopSDK::Models::AppType] The type of end-user an app is built for
111
+ #
104
112
  # @param base_url [String, nil] The base url of the app
105
113
  #
106
114
  # @param company [WhopSDK::Models::AppListResponse::Company] The company that owns the app
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # The type of end-user an app is built for
6
+ module AppType
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ B2B_APP = :b2b_app
10
+ B2C_APP = :b2c_app
11
+ COMPANY_APP = :company_app
12
+ COMPONENT = :component
13
+
14
+ # @!method self.values
15
+ # @return [Array<Symbol>]
16
+ end
17
+ end
18
+ end
@@ -13,6 +13,12 @@ module WhopSDK
13
13
  # @return [String, nil]
14
14
  optional :app_store_description, String, nil?: true
15
15
 
16
+ # @!attribute app_type
17
+ # The type of end-user an app is built for
18
+ #
19
+ # @return [Symbol, WhopSDK::Models::AppType, nil]
20
+ optional :app_type, enum: -> { WhopSDK::AppType }, nil?: true
21
+
16
22
  # @!attribute base_url
17
23
  # The base production url of the app
18
24
  #
@@ -69,9 +75,11 @@ module WhopSDK
69
75
  # @return [Symbol, WhopSDK::Models::AppStatuses, nil]
70
76
  optional :status, enum: -> { WhopSDK::AppStatuses }, nil?: true
71
77
 
72
- # @!method initialize(app_store_description: nil, base_url: nil, dashboard_path: nil, description: nil, discover_path: nil, experience_path: nil, icon: nil, name: nil, required_scopes: nil, status: nil, request_options: {})
78
+ # @!method initialize(app_store_description: nil, app_type: nil, base_url: nil, dashboard_path: nil, description: nil, discover_path: nil, experience_path: nil, icon: nil, name: nil, required_scopes: nil, status: nil, request_options: {})
73
79
  # @param app_store_description [String, nil] The description of the app for the app store in-depth app view.
74
80
  #
81
+ # @param app_type [Symbol, WhopSDK::Models::AppType, nil] The type of end-user an app is built for
82
+ #
75
83
  # @param base_url [String, nil] The base production url of the app
76
84
  #
77
85
  # @param dashboard_path [String, nil] The path for the dashboard view of the app
@@ -21,6 +21,7 @@ module WhopSDK
21
21
  RUPAY = :rupay
22
22
  JCBRUPAY = :jcbrupay
23
23
  ELO = :elo
24
+ MAESTRO = :maestro
24
25
  UNKNOWN = :unknown
25
26
 
26
27
  # @!method self.values
@@ -24,14 +24,30 @@ module WhopSDK
24
24
  # @!attribute metadata
25
25
  # The metadata to use for the checkout configuration
26
26
  #
27
- # @return [Hash{Symbol=>Object}]
28
- required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]
27
+ # @return [Hash{Symbol=>Object}, nil]
28
+ required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
29
+
30
+ # @!attribute mode
31
+ # The mode of the checkout session.
32
+ #
33
+ # @return [Symbol, WhopSDK::Models::CheckoutModes]
34
+ required :mode, enum: -> { WhopSDK::CheckoutModes }
35
+
36
+ # @!attribute payment_method_configuration
37
+ # The explicit payment method configuration for the session, if any. This
38
+ # currently only works in 'setup' mode. Use the plan's
39
+ # payment_method_configuration for payment method.
40
+ #
41
+ # @return [WhopSDK::Models::CheckoutConfiguration::PaymentMethodConfiguration, nil]
42
+ required :payment_method_configuration,
43
+ -> { WhopSDK::CheckoutConfiguration::PaymentMethodConfiguration },
44
+ nil?: true
29
45
 
30
46
  # @!attribute plan
31
47
  # The plan to use for the checkout configuration
32
48
  #
33
- # @return [WhopSDK::Models::CheckoutConfiguration::Plan]
34
- required :plan, -> { WhopSDK::CheckoutConfiguration::Plan }
49
+ # @return [WhopSDK::Models::CheckoutConfiguration::Plan, nil]
50
+ required :plan, -> { WhopSDK::CheckoutConfiguration::Plan }, nil?: true
35
51
 
36
52
  # @!attribute purchase_url
37
53
  # A URL you can send to customers to complete a checkout. It looks like
@@ -46,7 +62,7 @@ module WhopSDK
46
62
  # @return [String, nil]
47
63
  required :redirect_url, String, nil?: true
48
64
 
49
- # @!method initialize(id:, affiliate_code:, company_id:, metadata:, plan:, purchase_url:, redirect_url:)
65
+ # @!method initialize(id:, affiliate_code:, company_id:, metadata:, mode:, payment_method_configuration:, plan:, purchase_url:, redirect_url:)
50
66
  # Some parameter documentations has been truncated, see
51
67
  # {WhopSDK::Models::CheckoutConfiguration} for more details.
52
68
  #
@@ -61,14 +77,60 @@ module WhopSDK
61
77
  #
62
78
  # @param company_id [String] The ID of the company to use for the checkout configuration
63
79
  #
64
- # @param metadata [Hash{Symbol=>Object}] The metadata to use for the checkout configuration
80
+ # @param metadata [Hash{Symbol=>Object}, nil] The metadata to use for the checkout configuration
81
+ #
82
+ # @param mode [Symbol, WhopSDK::Models::CheckoutModes] The mode of the checkout session.
65
83
  #
66
- # @param plan [WhopSDK::Models::CheckoutConfiguration::Plan] The plan to use for the checkout configuration
84
+ # @param payment_method_configuration [WhopSDK::Models::CheckoutConfiguration::PaymentMethodConfiguration, nil] The explicit payment method configuration for the session, if any. This currentl
85
+ #
86
+ # @param plan [WhopSDK::Models::CheckoutConfiguration::Plan, nil] The plan to use for the checkout configuration
67
87
  #
68
88
  # @param purchase_url [String] A URL you can send to customers to complete a checkout. It looks like `/checkout
69
89
  #
70
90
  # @param redirect_url [String, nil] The URL to redirect the user to after the checkout configuration is created
71
91
 
92
+ # @see WhopSDK::Models::CheckoutConfiguration#payment_method_configuration
93
+ class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
94
+ # @!attribute disabled
95
+ # An array of payment method identifiers that are explicitly disabled. Only
96
+ # applies if the include_platform_defaults is true.
97
+ #
98
+ # @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
99
+ required :disabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
100
+
101
+ # @!attribute enabled
102
+ # An array of payment method identifiers that are explicitly enabled. This means
103
+ # these payment methods will be shown on checkout. Example use case is to only
104
+ # enable a specific payment method like cashapp, or extending the platform
105
+ # defaults with additional methods.
106
+ #
107
+ # @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
108
+ required :enabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
109
+
110
+ # @!attribute include_platform_defaults
111
+ # Whether Whop's platform default payment method enablement settings are included
112
+ # in this configuration. The full list of default payment methods can be found in
113
+ # the documentation at docs.whop.com/payments.
114
+ #
115
+ # @return [Boolean]
116
+ required :include_platform_defaults, WhopSDK::Internal::Type::Boolean
117
+
118
+ # @!method initialize(disabled:, enabled:, include_platform_defaults:)
119
+ # Some parameter documentations has been truncated, see
120
+ # {WhopSDK::Models::CheckoutConfiguration::PaymentMethodConfiguration} for more
121
+ # details.
122
+ #
123
+ # The explicit payment method configuration for the session, if any. This
124
+ # currently only works in 'setup' mode. Use the plan's
125
+ # payment_method_configuration for payment method.
126
+ #
127
+ # @param disabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly disabled. Only applie
128
+ #
129
+ # @param enabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly enabled. This means t
130
+ #
131
+ # @param include_platform_defaults [Boolean] Whether Whop's platform default payment method enablement settings are included
132
+ end
133
+
72
134
  # @see WhopSDK::Models::CheckoutConfiguration#plan
73
135
  class Plan < WhopSDK::Internal::Type::BaseModel
74
136
  # @!attribute id
@@ -25,6 +25,21 @@ module WhopSDK
25
25
  # @return [Hash{Symbol=>Object}, nil]
26
26
  optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
27
27
 
28
+ # @!attribute mode
29
+ #
30
+ # @return [Symbol, :setup]
31
+ required :mode, const: :setup
32
+
33
+ # @!attribute payment_method_configuration
34
+ # This currently only works for configurations made in 'setup' mode. The explicit
35
+ # payment method configuration for the checkout session. If not provided, the
36
+ # platform or company's defaults will apply.
37
+ #
38
+ # @return [WhopSDK::Models::CheckoutConfigurationCreateParams::PaymentMethodConfiguration, nil]
39
+ optional :payment_method_configuration,
40
+ -> { WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration },
41
+ nil?: true
42
+
28
43
  # @!attribute redirect_url
29
44
  # The URL to redirect the user to after the checkout configuration is created
30
45
  #
@@ -37,17 +52,33 @@ module WhopSDK
37
52
  # @return [String]
38
53
  required :plan_id, String
39
54
 
40
- # @!method initialize(plan:, plan_id:, affiliate_code: nil, metadata: nil, redirect_url: nil, request_options: {})
55
+ # @!attribute company_id
56
+ # The ID of the company for which to generate the checkout configuration. Only
57
+ # required in setup mode.
58
+ #
59
+ # @return [String]
60
+ required :company_id, String
61
+
62
+ # @!method initialize(plan:, plan_id:, company_id:, affiliate_code: nil, metadata: nil, payment_method_configuration: nil, redirect_url: nil, mode: :setup, request_options: {})
63
+ # Some parameter documentations has been truncated, see
64
+ # {WhopSDK::Models::CheckoutConfigurationCreateParams} for more details.
65
+ #
41
66
  # @param plan [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan] Pass this object to create a new plan for this checkout configuration
42
67
  #
43
68
  # @param plan_id [String] The ID of the plan to use for the checkout configuration
44
69
  #
70
+ # @param company_id [String] The ID of the company for which to generate the checkout configuration. Only req
71
+ #
45
72
  # @param affiliate_code [String, nil] The affiliate code to use for the checkout configuration
46
73
  #
47
74
  # @param metadata [Hash{Symbol=>Object}, nil] The metadata to use for the checkout configuration
48
75
  #
76
+ # @param payment_method_configuration [WhopSDK::Models::CheckoutConfigurationCreateParams::PaymentMethodConfiguration, nil] This currently only works for configurations made in 'setup' mode. The explicit
77
+ #
49
78
  # @param redirect_url [String, nil] The URL to redirect the user to after the checkout configuration is created
50
79
  #
80
+ # @param mode [Symbol, :setup]
81
+ #
51
82
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
52
83
 
53
84
  class Plan < WhopSDK::Internal::Type::BaseModel
@@ -57,18 +88,18 @@ module WhopSDK
57
88
  # @return [String]
58
89
  required :company_id, String
59
90
 
91
+ # @!attribute currency
92
+ # The respective currency identifier for the plan.
93
+ #
94
+ # @return [Symbol, WhopSDK::Models::Currency]
95
+ required :currency, enum: -> { WhopSDK::Currency }
96
+
60
97
  # @!attribute billing_period
61
98
  # The interval at which the plan charges (renewal plans).
62
99
  #
63
100
  # @return [Integer, nil]
64
101
  optional :billing_period, Integer, nil?: true
65
102
 
66
- # @!attribute currency
67
- # The available currencies on the platform
68
- #
69
- # @return [Symbol, WhopSDK::Models::Currency, nil]
70
- optional :currency, enum: -> { WhopSDK::Currency }, nil?: true
71
-
72
103
  # @!attribute custom_fields
73
104
  # An array of custom field objects.
74
105
  #
@@ -181,7 +212,7 @@ module WhopSDK
181
212
  # @return [Symbol, WhopSDK::Models::Visibility, nil]
182
213
  optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
183
214
 
184
- # @!method initialize(company_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, force_create_new_plan: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, product: nil, product_id: nil, release_method: nil, renewal_price: nil, title: nil, trial_period_days: nil, visibility: nil)
215
+ # @!method initialize(company_id:, currency:, billing_period: nil, custom_fields: nil, description: nil, expiration_days: nil, force_create_new_plan: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, product: nil, product_id: nil, release_method: nil, renewal_price: nil, title: nil, trial_period_days: nil, visibility: nil)
185
216
  # Some parameter documentations has been truncated, see
186
217
  # {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan} for more details.
187
218
  #
@@ -189,9 +220,9 @@ module WhopSDK
189
220
  #
190
221
  # @param company_id [String] The company the plan should be created for.
191
222
  #
192
- # @param billing_period [Integer, nil] The interval at which the plan charges (renewal plans).
223
+ # @param currency [Symbol, WhopSDK::Models::Currency] The respective currency identifier for the plan.
193
224
  #
194
- # @param currency [Symbol, WhopSDK::Models::Currency, nil] The available currencies on the platform
225
+ # @param billing_period [Integer, nil] The interval at which the plan charges (renewal plans).
195
226
  #
196
227
  # @param custom_fields [Array<WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::CustomField>, nil] An array of custom field objects.
197
228
  #
@@ -501,6 +532,47 @@ module WhopSDK
501
532
  # @param visibility [Symbol, WhopSDK::Models::Visibility, nil] Visibility of a resource
502
533
  end
503
534
  end
535
+
536
+ class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
537
+ # @!attribute disabled
538
+ # An array of payment method identifiers that are explicitly disabled. Only
539
+ # applies if the include_platform_defaults is true.
540
+ #
541
+ # @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
542
+ required :disabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
543
+
544
+ # @!attribute enabled
545
+ # An array of payment method identifiers that are explicitly enabled. This means
546
+ # these payment methods will be shown on checkout. Example use case is to only
547
+ # enable a specific payment method like cashapp, or extending the platform
548
+ # defaults with additional methods.
549
+ #
550
+ # @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
551
+ required :enabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
552
+
553
+ # @!attribute include_platform_defaults
554
+ # Whether Whop's platform default payment method enablement settings are included
555
+ # in this configuration. The full list of default payment methods can be found in
556
+ # the documentation at docs.whop.com/payments.
557
+ #
558
+ # @return [Boolean]
559
+ required :include_platform_defaults, WhopSDK::Internal::Type::Boolean
560
+
561
+ # @!method initialize(disabled:, enabled:, include_platform_defaults:)
562
+ # Some parameter documentations has been truncated, see
563
+ # {WhopSDK::Models::CheckoutConfigurationCreateParams::PaymentMethodConfiguration}
564
+ # for more details.
565
+ #
566
+ # This currently only works for configurations made in 'setup' mode. The explicit
567
+ # payment method configuration for the checkout session. If not provided, the
568
+ # platform or company's defaults will apply.
569
+ #
570
+ # @param disabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly disabled. Only applie
571
+ #
572
+ # @param enabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly enabled. This means t
573
+ #
574
+ # @param include_platform_defaults [Boolean] Whether Whop's platform default payment method enablement settings are included
575
+ end
504
576
  end
505
577
  end
506
578
  end