whop_sdk 0.0.14 → 0.0.16

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 (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +8 -0
  5. data/lib/whop_sdk/models/checkout_configuration.rb +9 -1
  6. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +9 -1
  7. data/lib/whop_sdk/models/checkout_configuration_list_response.rb +9 -1
  8. data/lib/whop_sdk/models/course.rb +57 -1
  9. data/lib/whop_sdk/models/course_lesson_interaction.rb +23 -1
  10. data/lib/whop_sdk/models/course_lesson_interaction_list_item.rb +23 -1
  11. data/lib/whop_sdk/models/experience.rb +9 -1
  12. data/lib/whop_sdk/models/experience_create_params.rb +9 -1
  13. data/lib/whop_sdk/models/experience_list_response.rb +9 -1
  14. data/lib/whop_sdk/models/experience_update_params.rb +9 -1
  15. data/lib/whop_sdk/models/fee_markup_create_params.rb +62 -0
  16. data/lib/whop_sdk/models/fee_markup_create_response.rb +67 -0
  17. data/lib/whop_sdk/models/fee_markup_delete_params.rb +14 -0
  18. data/lib/whop_sdk/models/fee_markup_delete_response.rb +8 -0
  19. data/lib/whop_sdk/models/fee_markup_list_params.rb +58 -0
  20. data/lib/whop_sdk/models/fee_markup_list_response.rb +67 -0
  21. data/lib/whop_sdk/models/fee_markup_type.rb +19 -0
  22. data/lib/whop_sdk/models/payment_list_fees_params.rb +46 -0
  23. data/lib/whop_sdk/models/payment_list_fees_response.rb +84 -0
  24. data/lib/whop_sdk/models/payment_method_list_response.rb +214 -76
  25. data/lib/whop_sdk/models/payment_method_retrieve_response.rb +214 -76
  26. data/lib/whop_sdk/models/payout_method_list_params.rb +54 -0
  27. data/lib/whop_sdk/models/payout_method_list_response.rb +95 -0
  28. data/lib/whop_sdk/models/withdrawal_create_params.rb +46 -0
  29. data/lib/whop_sdk/models/withdrawal_create_response.rb +275 -0
  30. data/lib/whop_sdk/models.rb +14 -0
  31. data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
  32. data/lib/whop_sdk/resources/experiences.rb +6 -2
  33. data/lib/whop_sdk/resources/fee_markups.rb +112 -0
  34. data/lib/whop_sdk/resources/payment_methods.rb +2 -2
  35. data/lib/whop_sdk/resources/payments.rb +35 -0
  36. data/lib/whop_sdk/resources/payout_methods.rb +49 -0
  37. data/lib/whop_sdk/resources/withdrawals.rb +34 -0
  38. data/lib/whop_sdk/version.rb +1 -1
  39. data/lib/whop_sdk.rb +15 -0
  40. data/rbi/whop_sdk/client.rbi +6 -0
  41. data/rbi/whop_sdk/models/checkout_configuration.rbi +8 -0
  42. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +8 -0
  43. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +8 -0
  44. data/rbi/whop_sdk/models/course.rbi +115 -3
  45. data/rbi/whop_sdk/models/course_lesson_interaction.rbi +55 -2
  46. data/rbi/whop_sdk/models/course_lesson_interaction_list_item.rbi +60 -2
  47. data/rbi/whop_sdk/models/experience.rbi +8 -0
  48. data/rbi/whop_sdk/models/experience_create_params.rbi +8 -0
  49. data/rbi/whop_sdk/models/experience_list_response.rbi +8 -0
  50. data/rbi/whop_sdk/models/experience_update_params.rbi +8 -0
  51. data/rbi/whop_sdk/models/fee_markup_create_params.rbi +83 -0
  52. data/rbi/whop_sdk/models/fee_markup_create_response.rbi +89 -0
  53. data/rbi/whop_sdk/models/fee_markup_delete_params.rbi +27 -0
  54. data/rbi/whop_sdk/models/fee_markup_delete_response.rbi +8 -0
  55. data/rbi/whop_sdk/models/fee_markup_list_params.rbi +77 -0
  56. data/rbi/whop_sdk/models/fee_markup_list_response.rbi +89 -0
  57. data/rbi/whop_sdk/models/fee_markup_type.rbi +37 -0
  58. data/rbi/whop_sdk/models/payment_list_fees_params.rbi +67 -0
  59. data/rbi/whop_sdk/models/payment_list_fees_response.rbi +239 -0
  60. data/rbi/whop_sdk/models/payment_method_list_response.rbi +305 -83
  61. data/rbi/whop_sdk/models/payment_method_retrieve_response.rbi +305 -88
  62. data/rbi/whop_sdk/models/payout_method_list_params.rbi +75 -0
  63. data/rbi/whop_sdk/models/payout_method_list_response.rbi +200 -0
  64. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +67 -0
  65. data/rbi/whop_sdk/models/withdrawal_create_response.rbi +564 -0
  66. data/rbi/whop_sdk/models.rbi +14 -0
  67. data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
  68. data/rbi/whop_sdk/resources/experiences.rbi +6 -0
  69. data/rbi/whop_sdk/resources/fee_markups.rbi +96 -0
  70. data/rbi/whop_sdk/resources/payment_methods.rbi +2 -2
  71. data/rbi/whop_sdk/resources/payments.rbi +34 -0
  72. data/rbi/whop_sdk/resources/payout_methods.rbi +46 -0
  73. data/rbi/whop_sdk/resources/withdrawals.rbi +29 -0
  74. data/sig/whop_sdk/client.rbs +4 -0
  75. data/sig/whop_sdk/models/checkout_configuration.rbs +5 -0
  76. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
  77. data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +5 -0
  78. data/sig/whop_sdk/models/course.rbs +45 -3
  79. data/sig/whop_sdk/models/course_lesson_interaction.rbs +28 -3
  80. data/sig/whop_sdk/models/course_lesson_interaction_list_item.rbs +28 -3
  81. data/sig/whop_sdk/models/experience.rbs +5 -0
  82. data/sig/whop_sdk/models/experience_create_params.rbs +11 -1
  83. data/sig/whop_sdk/models/experience_list_response.rbs +5 -0
  84. data/sig/whop_sdk/models/experience_update_params.rbs +5 -0
  85. data/sig/whop_sdk/models/fee_markup_create_params.rbs +51 -0
  86. data/sig/whop_sdk/models/fee_markup_create_response.rbs +50 -0
  87. data/sig/whop_sdk/models/fee_markup_delete_params.rbs +15 -0
  88. data/sig/whop_sdk/models/fee_markup_delete_response.rbs +5 -0
  89. data/sig/whop_sdk/models/fee_markup_list_params.rbs +46 -0
  90. data/sig/whop_sdk/models/fee_markup_list_response.rbs +50 -0
  91. data/sig/whop_sdk/models/fee_markup_type.rbs +22 -0
  92. data/sig/whop_sdk/models/payment_list_fees_params.rbs +36 -0
  93. data/sig/whop_sdk/models/payment_list_fees_response.rbs +104 -0
  94. data/sig/whop_sdk/models/payment_method_list_response.rbs +149 -41
  95. data/sig/whop_sdk/models/payment_method_retrieve_response.rbs +149 -41
  96. data/sig/whop_sdk/models/payout_method_list_params.rbs +46 -0
  97. data/sig/whop_sdk/models/payout_method_list_response.rbs +83 -0
  98. data/sig/whop_sdk/models/withdrawal_create_params.rbs +41 -0
  99. data/sig/whop_sdk/models/withdrawal_create_response.rbs +243 -0
  100. data/sig/whop_sdk/models.rbs +14 -0
  101. data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
  102. data/sig/whop_sdk/resources/experiences.rbs +2 -0
  103. data/sig/whop_sdk/resources/fee_markups.rbs +28 -0
  104. data/sig/whop_sdk/resources/payment_methods.rbs +2 -2
  105. data/sig/whop_sdk/resources/payments.rbs +9 -0
  106. data/sig/whop_sdk/resources/payout_methods.rbs +16 -0
  107. data/sig/whop_sdk/resources/withdrawals.rbs +8 -0
  108. metadata +47 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dde88bf09d2270f31069e1d16f87df27fbf56f613122fd773342c597fed553a3
4
- data.tar.gz: f4cb89608641823c87dbd156da5d91f1aa1ecd2ef091a9a647d1cfad98c0cc39
3
+ metadata.gz: 384f78bfdd29282dec0695c7d4a64ae180fefff482e40dd86e4988806e1ac903
4
+ data.tar.gz: c2951d3aabc53be6b74a39bfd06d7b404f7d7fdc9ef208ec175057de2f623ba7
5
5
  SHA512:
6
- metadata.gz: 6e8d8d18893c43a9ec7ffffaa7f4efe23357c0eba64d6ebb4a6db00ed4bfb18333c595ac0b9bdc0e5474d4d31d8d8afad2808567211eea1780308bafd9e630d4
7
- data.tar.gz: 37c37a923a6580d024985ae04f00aae915b433c9cf8a9c36b2d1fc2648d65fa433a1db30fff1d3270c9fdc7293548a1504f1d94b997b0575f39f4bd3a42a92ef
6
+ metadata.gz: 1e9a12bcb1769883fb79f3d7951b29a042c5231dd14d072ab765cc7dd90861ecdada74d7e4e2a7e48820c2d504346dcc80e1e3ba7da7b72ead0e9fa927f56dac
7
+ data.tar.gz: f590db1710e20be8431108918d0fce8b210dd8d22a9644a5a90aa3ddaf870c82efd4b05588aaff8d9b5920f6eb99efdccd1948c37138d5d79c4168fc958f0440
data/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.16 (2025-12-10)
4
+
5
+ Full Changelog: [v0.0.15...v0.0.16](https://github.com/whopio/whopsdk-ruby/compare/v0.0.15...v0.0.16)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([8d271a0](https://github.com/whopio/whopsdk-ruby/commit/8d271a07996ee1da957f7cacb1420384ceeaf461))
10
+ * **api:** api update ([632da47](https://github.com/whopio/whopsdk-ruby/commit/632da472b48818c5e06ce124fc2f7a09227d5bd3))
11
+ * **api:** api update ([d10e456](https://github.com/whopio/whopsdk-ruby/commit/d10e456c1e5fb78d5a884a5243801897b4b7b1ba))
12
+ * **api:** api update ([33c37b0](https://github.com/whopio/whopsdk-ruby/commit/33c37b03c16e3fc84ec50481ce839e6c9015bcd2))
13
+ * **api:** api update ([0a67aaa](https://github.com/whopio/whopsdk-ruby/commit/0a67aaab546a37771f5b81d4b3dc2cf1b2595fcb))
14
+ * **api:** api update ([5aec88b](https://github.com/whopio/whopsdk-ruby/commit/5aec88b7206515a15192bb3b40054039e7c201fa))
15
+ * **api:** manual updates ([be38d78](https://github.com/whopio/whopsdk-ruby/commit/be38d78525602730b56296de1f6be4781a56ec80))
16
+
17
+ ## 0.0.15 (2025-12-09)
18
+
19
+ Full Changelog: [v0.0.14...v0.0.15](https://github.com/whopio/whopsdk-ruby/compare/v0.0.14...v0.0.15)
20
+
21
+ ### Features
22
+
23
+ * **api:** api update ([d40fe0c](https://github.com/whopio/whopsdk-ruby/commit/d40fe0ceff3705451dea07c84c48c0dc8cfe054c))
24
+ * **api:** api update ([c6f7d11](https://github.com/whopio/whopsdk-ruby/commit/c6f7d1190420adaf72b689d7823b3752d4bc0bf4))
25
+ * **api:** manual updates ([7b169f8](https://github.com/whopio/whopsdk-ruby/commit/7b169f8eefec6325e111b9841a212fa0f081b3ba))
26
+
3
27
  ## 0.0.14 (2025-12-07)
4
28
 
5
29
  Full Changelog: [v0.0.13...v0.0.14](https://github.com/whopio/whopsdk-ruby/compare/v0.0.13...v0.0.14)
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.14"
20
+ gem "whop_sdk", "~> 0.0.16"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -141,6 +141,12 @@ module WhopSDK
141
141
  # @return [WhopSDK::Resources::PaymentMethods]
142
142
  attr_reader :payment_methods
143
143
 
144
+ # @return [WhopSDK::Resources::FeeMarkups]
145
+ attr_reader :fee_markups
146
+
147
+ # @return [WhopSDK::Resources::PayoutMethods]
148
+ attr_reader :payout_methods
149
+
144
150
  # @api private
145
151
  #
146
152
  # @return [Hash{String=>String}]
@@ -237,6 +243,8 @@ module WhopSDK
237
243
  @account_links = WhopSDK::Resources::AccountLinks.new(client: self)
238
244
  @setup_intents = WhopSDK::Resources::SetupIntents.new(client: self)
239
245
  @payment_methods = WhopSDK::Resources::PaymentMethods.new(client: self)
246
+ @fee_markups = WhopSDK::Resources::FeeMarkups.new(client: self)
247
+ @payout_methods = WhopSDK::Resources::PayoutMethods.new(client: self)
240
248
  end
241
249
 
242
250
  # Verifies a Whop user token
@@ -21,6 +21,12 @@ module WhopSDK
21
21
  # @return [String]
22
22
  required :company_id, String
23
23
 
24
+ # @!attribute currency
25
+ # The available currencies on the platform
26
+ #
27
+ # @return [Symbol, WhopSDK::Models::Currency, nil]
28
+ required :currency, enum: -> { WhopSDK::Currency }, nil?: true
29
+
24
30
  # @!attribute metadata
25
31
  # The metadata to use for the checkout configuration
26
32
  #
@@ -62,7 +68,7 @@ module WhopSDK
62
68
  # @return [String, nil]
63
69
  required :redirect_url, String, nil?: true
64
70
 
65
- # @!method initialize(id:, affiliate_code:, company_id:, metadata:, mode:, payment_method_configuration:, plan:, purchase_url:, redirect_url:)
71
+ # @!method initialize(id:, affiliate_code:, company_id:, currency:, metadata:, mode:, payment_method_configuration:, plan:, purchase_url:, redirect_url:)
66
72
  # Some parameter documentations has been truncated, see
67
73
  # {WhopSDK::Models::CheckoutConfiguration} for more details.
68
74
  #
@@ -77,6 +83,8 @@ module WhopSDK
77
83
  #
78
84
  # @param company_id [String] The ID of the company to use for the checkout configuration
79
85
  #
86
+ # @param currency [Symbol, WhopSDK::Models::Currency, nil] The available currencies on the platform
87
+ #
80
88
  # @param metadata [Hash{Symbol=>Object}, nil] The metadata to use for the checkout configuration
81
89
  #
82
90
  # @param mode [Symbol, WhopSDK::Models::CheckoutModes] The mode of the checkout session.
@@ -19,6 +19,12 @@ module WhopSDK
19
19
  # @return [String, nil]
20
20
  optional :affiliate_code, String, nil?: true
21
21
 
22
+ # @!attribute currency
23
+ # The available currencies on the platform
24
+ #
25
+ # @return [Symbol, WhopSDK::Models::Currency, nil]
26
+ optional :currency, enum: -> { WhopSDK::Currency }, nil?: true
27
+
22
28
  # @!attribute metadata
23
29
  # The metadata to use for the checkout configuration
24
30
  #
@@ -59,7 +65,7 @@ module WhopSDK
59
65
  # @return [String]
60
66
  required :company_id, String
61
67
 
62
- # @!method initialize(plan:, plan_id:, company_id:, affiliate_code: nil, metadata: nil, payment_method_configuration: nil, redirect_url: nil, mode: :setup, request_options: {})
68
+ # @!method initialize(plan:, plan_id:, company_id:, affiliate_code: nil, currency: nil, metadata: nil, payment_method_configuration: nil, redirect_url: nil, mode: :setup, request_options: {})
63
69
  # Some parameter documentations has been truncated, see
64
70
  # {WhopSDK::Models::CheckoutConfigurationCreateParams} for more details.
65
71
  #
@@ -71,6 +77,8 @@ module WhopSDK
71
77
  #
72
78
  # @param affiliate_code [String, nil] The affiliate code to use for the checkout configuration
73
79
  #
80
+ # @param currency [Symbol, WhopSDK::Models::Currency, nil] The available currencies on the platform
81
+ #
74
82
  # @param metadata [Hash{Symbol=>Object}, nil] The metadata to use for the checkout configuration
75
83
  #
76
84
  # @param payment_method_configuration [WhopSDK::Models::CheckoutConfigurationCreateParams::PaymentMethodConfiguration, nil] This currently only works for configurations made in 'setup' mode. The explicit
@@ -22,6 +22,12 @@ module WhopSDK
22
22
  # @return [String]
23
23
  required :company_id, String
24
24
 
25
+ # @!attribute currency
26
+ # The available currencies on the platform
27
+ #
28
+ # @return [Symbol, WhopSDK::Models::Currency, nil]
29
+ required :currency, enum: -> { WhopSDK::Currency }, nil?: true
30
+
25
31
  # @!attribute metadata
26
32
  # The metadata to use for the checkout configuration
27
33
  #
@@ -63,7 +69,7 @@ module WhopSDK
63
69
  # @return [String, nil]
64
70
  required :redirect_url, String, nil?: true
65
71
 
66
- # @!method initialize(id:, affiliate_code:, company_id:, metadata:, mode:, payment_method_configuration:, plan:, purchase_url:, redirect_url:)
72
+ # @!method initialize(id:, affiliate_code:, company_id:, currency:, metadata:, mode:, payment_method_configuration:, plan:, purchase_url:, redirect_url:)
67
73
  # Some parameter documentations has been truncated, see
68
74
  # {WhopSDK::Models::CheckoutConfigurationListResponse} for more details.
69
75
  #
@@ -78,6 +84,8 @@ module WhopSDK
78
84
  #
79
85
  # @param company_id [String] The ID of the company to use for the checkout configuration
80
86
  #
87
+ # @param currency [Symbol, WhopSDK::Models::Currency, nil] The available currencies on the platform
88
+ #
81
89
  # @param metadata [Hash{Symbol=>Object}, nil] The metadata to use for the checkout configuration
82
90
  #
83
91
  # @param mode [Symbol, WhopSDK::Models::CheckoutModes] The mode of the checkout session.
@@ -181,13 +181,25 @@ module WhopSDK
181
181
  # @return [Integer]
182
182
  required :order, Integer
183
183
 
184
+ # @!attribute thumbnail
185
+ # The thumbnail for the lesson
186
+ #
187
+ # @return [WhopSDK::Models::Course::Chapter::Lesson::Thumbnail, nil]
188
+ required :thumbnail, -> { WhopSDK::Course::Chapter::Lesson::Thumbnail }, nil?: true
189
+
184
190
  # @!attribute title
185
191
  # The title of the lesson
186
192
  #
187
193
  # @return [String]
188
194
  required :title, String
189
195
 
190
- # @!method initialize(id:, lesson_type:, order:, title:)
196
+ # @!attribute video_asset
197
+ # The associated Mux asset for video lessons
198
+ #
199
+ # @return [WhopSDK::Models::Course::Chapter::Lesson::VideoAsset, nil]
200
+ required :video_asset, -> { WhopSDK::Course::Chapter::Lesson::VideoAsset }, nil?: true
201
+
202
+ # @!method initialize(id:, lesson_type:, order:, thumbnail:, title:, video_asset:)
191
203
  # A lesson from the courses app
192
204
  #
193
205
  # @param id [String] The ID of the lesson
@@ -196,7 +208,51 @@ module WhopSDK
196
208
  #
197
209
  # @param order [Integer] The order of the lesson within its chapter
198
210
  #
211
+ # @param thumbnail [WhopSDK::Models::Course::Chapter::Lesson::Thumbnail, nil] The thumbnail for the lesson
212
+ #
199
213
  # @param title [String] The title of the lesson
214
+ #
215
+ # @param video_asset [WhopSDK::Models::Course::Chapter::Lesson::VideoAsset, nil] The associated Mux asset for video lessons
216
+
217
+ # @see WhopSDK::Models::Course::Chapter::Lesson#thumbnail
218
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
219
+ # @!attribute url
220
+ # This is the URL you use to render optimized attachments on the client. This
221
+ # should be used for apps.
222
+ #
223
+ # @return [String, nil]
224
+ required :url, String, nil?: true
225
+
226
+ # @!method initialize(url:)
227
+ # Some parameter documentations has been truncated, see
228
+ # {WhopSDK::Models::Course::Chapter::Lesson::Thumbnail} for more details.
229
+ #
230
+ # The thumbnail for the lesson
231
+ #
232
+ # @param url [String, nil] This is the URL you use to render optimized attachments on the client. This shou
233
+ end
234
+
235
+ # @see WhopSDK::Models::Course::Chapter::Lesson#video_asset
236
+ class VideoAsset < WhopSDK::Internal::Type::BaseModel
237
+ # @!attribute duration_seconds
238
+ # The duration of the video in seconds
239
+ #
240
+ # @return [Integer, nil]
241
+ required :duration_seconds, Integer, nil?: true
242
+
243
+ # @!attribute signed_thumbnail_playback_token
244
+ # The signed thumbnail playback token of the Mux asset
245
+ #
246
+ # @return [String, nil]
247
+ required :signed_thumbnail_playback_token, String, nil?: true
248
+
249
+ # @!method initialize(duration_seconds:, signed_thumbnail_playback_token:)
250
+ # The associated Mux asset for video lessons
251
+ #
252
+ # @param duration_seconds [Integer, nil] The duration of the video in seconds
253
+ #
254
+ # @param signed_thumbnail_playback_token [String, nil] The signed thumbnail playback token of the Mux asset
255
+ end
200
256
  end
201
257
  end
202
258
 
@@ -106,18 +106,40 @@ module WhopSDK
106
106
  # @return [String]
107
107
  required :id, String
108
108
 
109
+ # @!attribute chapter
110
+ # The chapter this lesson belongs to
111
+ #
112
+ # @return [WhopSDK::Models::CourseLessonInteraction::Lesson::Chapter]
113
+ required :chapter, -> { WhopSDK::CourseLessonInteraction::Lesson::Chapter }
114
+
109
115
  # @!attribute title
110
116
  # The title of the lesson
111
117
  #
112
118
  # @return [String]
113
119
  required :title, String
114
120
 
115
- # @!method initialize(id:, title:)
121
+ # @!method initialize(id:, chapter:, title:)
116
122
  # The lesson this interaction is for
117
123
  #
118
124
  # @param id [String] The ID of the lesson
119
125
  #
126
+ # @param chapter [WhopSDK::Models::CourseLessonInteraction::Lesson::Chapter] The chapter this lesson belongs to
127
+ #
120
128
  # @param title [String] The title of the lesson
129
+
130
+ # @see WhopSDK::Models::CourseLessonInteraction::Lesson#chapter
131
+ class Chapter < WhopSDK::Internal::Type::BaseModel
132
+ # @!attribute id
133
+ # The ID of the chapter. Looks like chap_XXX
134
+ #
135
+ # @return [String]
136
+ required :id, String
137
+
138
+ # @!method initialize(id:)
139
+ # The chapter this lesson belongs to
140
+ #
141
+ # @param id [String] The ID of the chapter. Looks like chap_XXX
142
+ end
121
143
  end
122
144
 
123
145
  # @see WhopSDK::Models::CourseLessonInteraction#user
@@ -54,18 +54,40 @@ module WhopSDK
54
54
  # @return [String]
55
55
  required :id, String
56
56
 
57
+ # @!attribute chapter
58
+ # The chapter this lesson belongs to
59
+ #
60
+ # @return [WhopSDK::Models::CourseLessonInteractionListItem::Lesson::Chapter]
61
+ required :chapter, -> { WhopSDK::CourseLessonInteractionListItem::Lesson::Chapter }
62
+
57
63
  # @!attribute title
58
64
  # The title of the lesson
59
65
  #
60
66
  # @return [String]
61
67
  required :title, String
62
68
 
63
- # @!method initialize(id:, title:)
69
+ # @!method initialize(id:, chapter:, title:)
64
70
  # The lesson this interaction is for
65
71
  #
66
72
  # @param id [String] The ID of the lesson
67
73
  #
74
+ # @param chapter [WhopSDK::Models::CourseLessonInteractionListItem::Lesson::Chapter] The chapter this lesson belongs to
75
+ #
68
76
  # @param title [String] The title of the lesson
77
+
78
+ # @see WhopSDK::Models::CourseLessonInteractionListItem::Lesson#chapter
79
+ class Chapter < WhopSDK::Internal::Type::BaseModel
80
+ # @!attribute id
81
+ # The ID of the chapter. Looks like chap_XXX
82
+ #
83
+ # @return [String]
84
+ required :id, String
85
+
86
+ # @!method initialize(id:)
87
+ # The chapter this lesson belongs to
88
+ #
89
+ # @param id [String] The ID of the chapter. Looks like chap_XXX
90
+ end
69
91
  end
70
92
 
71
93
  # @see WhopSDK::Models::CourseLessonInteractionListItem#user
@@ -33,6 +33,12 @@ module WhopSDK
33
33
  # @return [WhopSDK::Models::Experience::Image, nil]
34
34
  required :image, -> { WhopSDK::Experience::Image }, nil?: true
35
35
 
36
+ # @!attribute is_public
37
+ # Whether the experience is visible to the public
38
+ #
39
+ # @return [Boolean]
40
+ required :is_public, WhopSDK::Internal::Type::Boolean
41
+
36
42
  # @!attribute name
37
43
  # The written name of the description.
38
44
  #
@@ -53,7 +59,7 @@ module WhopSDK
53
59
  # @return [Array<WhopSDK::Models::Experience::Product>]
54
60
  required :products, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Experience::Product] }
55
61
 
56
- # @!method initialize(id:, app:, company:, created_at:, image:, name:, order:, products:)
62
+ # @!method initialize(id:, app:, company:, created_at:, image:, is_public:, name:, order:, products:)
57
63
  # Some parameter documentations has been truncated, see
58
64
  # {WhopSDK::Models::Experience} for more details.
59
65
  #
@@ -69,6 +75,8 @@ module WhopSDK
69
75
  #
70
76
  # @param image [WhopSDK::Models::Experience::Image, nil] The logo for the experience.
71
77
  #
78
+ # @param is_public [Boolean] Whether the experience is visible to the public
79
+ #
72
80
  # @param name [String] The written name of the description.
73
81
  #
74
82
  # @param order [String, nil] The order of the experience in the section
@@ -19,6 +19,12 @@ module WhopSDK
19
19
  # @return [String]
20
20
  required :company_id, String
21
21
 
22
+ # @!attribute is_public
23
+ # Whether the experience is publicly accessible
24
+ #
25
+ # @return [Boolean, nil]
26
+ optional :is_public, WhopSDK::Internal::Type::Boolean, nil?: true
27
+
22
28
  # @!attribute name
23
29
  # The name of the experience
24
30
  #
@@ -31,11 +37,13 @@ module WhopSDK
31
37
  # @return [String, nil]
32
38
  optional :section_id, String, nil?: true
33
39
 
34
- # @!method initialize(app_id:, company_id:, name: nil, section_id: nil, request_options: {})
40
+ # @!method initialize(app_id:, company_id:, is_public: nil, name: nil, section_id: nil, request_options: {})
35
41
  # @param app_id [String] The ID of the app to create the experience for
36
42
  #
37
43
  # @param company_id [String] The ID of the company to create the experience for
38
44
  #
45
+ # @param is_public [Boolean, nil] Whether the experience is publicly accessible
46
+ #
39
47
  # @param name [String, nil] The name of the experience
40
48
  #
41
49
  # @param section_id [String, nil] The ID of the section to create the experience in
@@ -34,6 +34,12 @@ module WhopSDK
34
34
  # @return [WhopSDK::Models::ExperienceListResponse::Image, nil]
35
35
  required :image, -> { WhopSDK::Models::ExperienceListResponse::Image }, nil?: true
36
36
 
37
+ # @!attribute is_public
38
+ # Whether the experience is visible to the public
39
+ #
40
+ # @return [Boolean]
41
+ required :is_public, WhopSDK::Internal::Type::Boolean
42
+
37
43
  # @!attribute name
38
44
  # The written name of the description.
39
45
  #
@@ -46,7 +52,7 @@ module WhopSDK
46
52
  # @return [String, nil]
47
53
  required :order, String, nil?: true
48
54
 
49
- # @!method initialize(id:, app:, company:, created_at:, image:, name:, order:)
55
+ # @!method initialize(id:, app:, company:, created_at:, image:, is_public:, name:, order:)
50
56
  # An object representing an experience belonging to a company.
51
57
  #
52
58
  # @param id [String] The unique ID representing this experience
@@ -59,6 +65,8 @@ module WhopSDK
59
65
  #
60
66
  # @param image [WhopSDK::Models::ExperienceListResponse::Image, nil] The logo for the experience.
61
67
  #
68
+ # @param is_public [Boolean] Whether the experience is visible to the public
69
+ #
62
70
  # @param name [String] The written name of the description.
63
71
  #
64
72
  # @param order [String, nil] The order of the experience in the section
@@ -13,6 +13,12 @@ module WhopSDK
13
13
  # @return [Symbol, WhopSDK::Models::ExperienceUpdateParams::AccessLevel, nil]
14
14
  optional :access_level, enum: -> { WhopSDK::ExperienceUpdateParams::AccessLevel }, nil?: true
15
15
 
16
+ # @!attribute is_public
17
+ # Whether the experience is publicly accessible.
18
+ #
19
+ # @return [Boolean, nil]
20
+ optional :is_public, WhopSDK::Internal::Type::Boolean, nil?: true
21
+
16
22
  # @!attribute logo
17
23
  # The logo for the experience
18
24
  #
@@ -37,9 +43,11 @@ module WhopSDK
37
43
  # @return [String, nil]
38
44
  optional :section_id, String, nil?: true
39
45
 
40
- # @!method initialize(access_level: nil, logo: nil, name: nil, order: nil, section_id: nil, request_options: {})
46
+ # @!method initialize(access_level: nil, is_public: nil, logo: nil, name: nil, order: nil, section_id: nil, request_options: {})
41
47
  # @param access_level [Symbol, WhopSDK::Models::ExperienceUpdateParams::AccessLevel, nil] The different access levels for experiences (PUBLIC IS NEVER USED ANYMORE).
42
48
  #
49
+ # @param is_public [Boolean, nil] Whether the experience is publicly accessible.
50
+ #
43
51
  # @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the experience
44
52
  #
45
53
  # @param name [String, nil] The name of the experience.
@@ -0,0 +1,62 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::FeeMarkups#create
6
+ class FeeMarkupCreateParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute company_id
11
+ # The ID (tag) of the company you want to update the fee markup for.
12
+ #
13
+ # @return [String]
14
+ required :company_id, String
15
+
16
+ # @!attribute fee_type
17
+ # The type of fee this markup applies to.
18
+ #
19
+ # @return [Symbol, WhopSDK::Models::FeeMarkupType]
20
+ required :fee_type, enum: -> { WhopSDK::FeeMarkupType }
21
+
22
+ # @!attribute fixed_fee_usd
23
+ # The fixed fee in USD to charge (0-50).
24
+ #
25
+ # @return [Float, nil]
26
+ optional :fixed_fee_usd, Float, nil?: true
27
+
28
+ # @!attribute metadata
29
+ # Custom metadata to attach to this fee markup.
30
+ #
31
+ # @return [Hash{Symbol=>Object}, nil]
32
+ optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
33
+
34
+ # @!attribute notes
35
+ # Internal notes about this fee markup.
36
+ #
37
+ # @return [String, nil]
38
+ optional :notes, String, nil?: true
39
+
40
+ # @!attribute percentage_fee
41
+ # The percentage fee to charge (0-25).
42
+ #
43
+ # @return [Float, nil]
44
+ optional :percentage_fee, Float, nil?: true
45
+
46
+ # @!method initialize(company_id:, fee_type:, fixed_fee_usd: nil, metadata: nil, notes: nil, percentage_fee: nil, request_options: {})
47
+ # @param company_id [String] The ID (tag) of the company you want to update the fee markup for.
48
+ #
49
+ # @param fee_type [Symbol, WhopSDK::Models::FeeMarkupType] The type of fee this markup applies to.
50
+ #
51
+ # @param fixed_fee_usd [Float, nil] The fixed fee in USD to charge (0-50).
52
+ #
53
+ # @param metadata [Hash{Symbol=>Object}, nil] Custom metadata to attach to this fee markup.
54
+ #
55
+ # @param notes [String, nil] Internal notes about this fee markup.
56
+ #
57
+ # @param percentage_fee [Float, nil] The percentage fee to charge (0-25).
58
+ #
59
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,67 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::FeeMarkups#create
6
+ class FeeMarkupCreateResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # The unique identifier of the fee markup.
9
+ #
10
+ # @return [String]
11
+ required :id, String
12
+
13
+ # @!attribute created_at
14
+ # When this fee markup was created.
15
+ #
16
+ # @return [Time]
17
+ required :created_at, Time
18
+
19
+ # @!attribute fee_type
20
+ # The type of fee this markup applies to.
21
+ #
22
+ # @return [Symbol, WhopSDK::Models::FeeMarkupType]
23
+ required :fee_type, enum: -> { WhopSDK::FeeMarkupType }
24
+
25
+ # @!attribute fixed_fee_usd
26
+ # The fixed fee in USD to charge (0-50).
27
+ #
28
+ # @return [Float, nil]
29
+ required :fixed_fee_usd, Float, nil?: true
30
+
31
+ # @!attribute notes
32
+ # Internal notes about this fee markup.
33
+ #
34
+ # @return [String, nil]
35
+ required :notes, String, nil?: true
36
+
37
+ # @!attribute percentage_fee
38
+ # The percentage fee to charge (0-25).
39
+ #
40
+ # @return [Float, nil]
41
+ required :percentage_fee, Float, nil?: true
42
+
43
+ # @!attribute updated_at
44
+ # When this fee markup was last updated.
45
+ #
46
+ # @return [Time]
47
+ required :updated_at, Time
48
+
49
+ # @!method initialize(id:, created_at:, fee_type:, fixed_fee_usd:, notes:, percentage_fee:, updated_at:)
50
+ # Represents a fee markup configuration for a company
51
+ #
52
+ # @param id [String] The unique identifier of the fee markup.
53
+ #
54
+ # @param created_at [Time] When this fee markup was created.
55
+ #
56
+ # @param fee_type [Symbol, WhopSDK::Models::FeeMarkupType] The type of fee this markup applies to.
57
+ #
58
+ # @param fixed_fee_usd [Float, nil] The fixed fee in USD to charge (0-50).
59
+ #
60
+ # @param notes [String, nil] Internal notes about this fee markup.
61
+ #
62
+ # @param percentage_fee [Float, nil] The percentage fee to charge (0-25).
63
+ #
64
+ # @param updated_at [Time] When this fee markup was last updated.
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::FeeMarkups#delete
6
+ class FeeMarkupDeleteParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!method initialize(request_options: {})
11
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @type [WhopSDK::Internal::Type::Converter]
6
+ FeeMarkupDeleteResponse = WhopSDK::Internal::Type::Boolean
7
+ end
8
+ end
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::FeeMarkups#list
6
+ class FeeMarkupListParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute company_id
11
+ # The ID (tag) of the company you want to list the fee markups for. If you pass
12
+ # your platform account, you will get the platform default markups.
13
+ #
14
+ # @return [String]
15
+ required :company_id, String
16
+
17
+ # @!attribute after
18
+ # Returns the elements in the list that come after the specified cursor.
19
+ #
20
+ # @return [String, nil]
21
+ optional :after, String, nil?: true
22
+
23
+ # @!attribute before
24
+ # Returns the elements in the list that come before the specified cursor.
25
+ #
26
+ # @return [String, nil]
27
+ optional :before, String, nil?: true
28
+
29
+ # @!attribute first
30
+ # Returns the first _n_ elements from the list.
31
+ #
32
+ # @return [Integer, nil]
33
+ optional :first, Integer, nil?: true
34
+
35
+ # @!attribute last
36
+ # Returns the last _n_ elements from the list.
37
+ #
38
+ # @return [Integer, nil]
39
+ optional :last, Integer, nil?: true
40
+
41
+ # @!method initialize(company_id:, after: nil, before: nil, first: nil, last: nil, request_options: {})
42
+ # Some parameter documentations has been truncated, see
43
+ # {WhopSDK::Models::FeeMarkupListParams} for more details.
44
+ #
45
+ # @param company_id [String] The ID (tag) of the company you want to list the fee markups for. If you pass yo
46
+ #
47
+ # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
48
+ #
49
+ # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
50
+ #
51
+ # @param first [Integer, nil] Returns the first _n_ elements from the list.
52
+ #
53
+ # @param last [Integer, nil] Returns the last _n_ elements from the list.
54
+ #
55
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
56
+ end
57
+ end
58
+ end