whop_sdk 0.0.7 → 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 (157) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -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/app.rb +9 -1
  7. data/lib/whop_sdk/models/app_list_params.rb +9 -1
  8. data/lib/whop_sdk/models/app_list_response.rb +9 -1
  9. data/lib/whop_sdk/models/app_type.rb +18 -0
  10. data/lib/whop_sdk/models/app_update_params.rb +9 -1
  11. data/lib/whop_sdk/models/checkout_configuration.rb +69 -7
  12. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +73 -1
  13. data/lib/whop_sdk/models/checkout_configuration_list_response.rb +69 -7
  14. data/lib/whop_sdk/models/checkout_modes.rb +16 -0
  15. data/lib/whop_sdk/models/course.rb +9 -1
  16. data/lib/whop_sdk/models/course_lesson_list_response.rb +9 -1
  17. data/lib/whop_sdk/models/course_lesson_mark_as_completed_params.rb +14 -0
  18. data/lib/whop_sdk/models/course_lesson_mark_as_completed_response.rb +8 -0
  19. data/lib/whop_sdk/models/course_lesson_start_params.rb +14 -0
  20. data/lib/whop_sdk/models/course_lesson_start_response.rb +8 -0
  21. data/lib/whop_sdk/models/course_lesson_submit_assessment_params.rb +52 -0
  22. data/lib/whop_sdk/models/course_lesson_submit_assessment_response.rb +151 -0
  23. data/lib/whop_sdk/models/course_list_response.rb +9 -1
  24. data/lib/whop_sdk/models/forum_post_create_params.rb +3 -14
  25. data/lib/whop_sdk/models/forum_post_update_params.rb +3 -14
  26. data/lib/whop_sdk/models/forum_post_visibility_type.rb +16 -0
  27. data/lib/whop_sdk/models/lesson.rb +104 -2
  28. data/lib/whop_sdk/models/payment_provider.rb +22 -0
  29. data/lib/whop_sdk/models/refund_created_webhook_event.rb +354 -0
  30. data/lib/whop_sdk/models/refund_list_params.rb +62 -0
  31. data/lib/whop_sdk/models/refund_list_response.rb +113 -0
  32. data/lib/whop_sdk/models/refund_reference_status.rb +17 -0
  33. data/lib/whop_sdk/models/refund_reference_type.rb +17 -0
  34. data/lib/whop_sdk/models/refund_retrieve_params.rb +14 -0
  35. data/lib/whop_sdk/models/refund_retrieve_response.rb +307 -0
  36. data/lib/whop_sdk/models/refund_status.rb +19 -0
  37. data/lib/whop_sdk/models/refund_updated_webhook_event.rb +354 -0
  38. data/lib/whop_sdk/models/unwrap_webhook_event.rb +5 -1
  39. data/lib/whop_sdk/models/withdrawal_fee_types.rb +16 -0
  40. data/lib/whop_sdk/models/withdrawal_list_params.rb +78 -0
  41. data/lib/whop_sdk/models/withdrawal_list_response.rb +87 -0
  42. data/lib/whop_sdk/models/withdrawal_retrieve_params.rb +14 -0
  43. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +320 -0
  44. data/lib/whop_sdk/models/withdrawal_speeds.rb +16 -0
  45. data/lib/whop_sdk/models/withdrawal_status.rb +21 -0
  46. data/lib/whop_sdk/models/withdrawal_types.rb +16 -0
  47. data/lib/whop_sdk/models.rb +40 -0
  48. data/lib/whop_sdk/resources/apps.rb +6 -2
  49. data/lib/whop_sdk/resources/checkout_configurations.rb +11 -1
  50. data/lib/whop_sdk/resources/course_lessons.rb +64 -0
  51. data/lib/whop_sdk/resources/forum_posts.rb +2 -2
  52. data/lib/whop_sdk/resources/refunds.rb +78 -0
  53. data/lib/whop_sdk/resources/webhooks.rb +1 -1
  54. data/lib/whop_sdk/resources/withdrawals.rb +79 -0
  55. data/lib/whop_sdk/version.rb +1 -1
  56. data/lib/whop_sdk.rb +29 -0
  57. data/rbi/whop_sdk/client.rbi +6 -0
  58. data/rbi/whop_sdk/models/app.rbi +8 -0
  59. data/rbi/whop_sdk/models/app_list_params.rbi +8 -0
  60. data/rbi/whop_sdk/models/app_list_response.rbi +8 -0
  61. data/rbi/whop_sdk/models/app_type.rbi +22 -0
  62. data/rbi/whop_sdk/models/app_update_params.rbi +8 -0
  63. data/rbi/whop_sdk/models/checkout_configuration.rbi +117 -7
  64. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +116 -0
  65. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +127 -7
  66. data/rbi/whop_sdk/models/checkout_modes.rbi +20 -0
  67. data/rbi/whop_sdk/models/course.rbi +8 -0
  68. data/rbi/whop_sdk/models/course_lesson_list_response.rbi +8 -0
  69. data/rbi/whop_sdk/models/course_lesson_mark_as_completed_params.rbi +30 -0
  70. data/rbi/whop_sdk/models/course_lesson_mark_as_completed_response.rbi +8 -0
  71. data/rbi/whop_sdk/models/course_lesson_start_params.rbi +27 -0
  72. data/rbi/whop_sdk/models/course_lesson_start_response.rbi +8 -0
  73. data/rbi/whop_sdk/models/course_lesson_submit_assessment_params.rbi +104 -0
  74. data/rbi/whop_sdk/models/course_lesson_submit_assessment_response.rbi +222 -0
  75. data/rbi/whop_sdk/models/course_list_response.rbi +8 -0
  76. data/rbi/whop_sdk/models/forum_post_create_params.rbi +3 -37
  77. data/rbi/whop_sdk/models/forum_post_update_params.rbi +3 -37
  78. data/rbi/whop_sdk/models/forum_post_visibility_type.rbi +27 -0
  79. data/rbi/whop_sdk/models/lesson.rbi +115 -3
  80. data/rbi/whop_sdk/models/payment_provider.rbi +27 -0
  81. data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +561 -0
  82. data/rbi/whop_sdk/models/refund_list_params.rbi +83 -0
  83. data/rbi/whop_sdk/models/refund_list_response.rbi +155 -0
  84. data/rbi/whop_sdk/models/refund_reference_status.rbi +26 -0
  85. data/rbi/whop_sdk/models/refund_reference_type.rbi +36 -0
  86. data/rbi/whop_sdk/models/refund_retrieve_params.rbi +27 -0
  87. data/rbi/whop_sdk/models/refund_retrieve_response.rbi +484 -0
  88. data/rbi/whop_sdk/models/refund_status.rbi +24 -0
  89. data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +561 -0
  90. data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +3 -1
  91. data/rbi/whop_sdk/models/withdrawal_fee_types.rbi +22 -0
  92. data/rbi/whop_sdk/models/withdrawal_list_params.rbi +99 -0
  93. data/rbi/whop_sdk/models/withdrawal_list_response.rbi +107 -0
  94. data/rbi/whop_sdk/models/withdrawal_retrieve_params.rbi +27 -0
  95. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +713 -0
  96. data/rbi/whop_sdk/models/withdrawal_speeds.rbi +22 -0
  97. data/rbi/whop_sdk/models/withdrawal_status.rbi +28 -0
  98. data/rbi/whop_sdk/models/withdrawal_types.rbi +20 -0
  99. data/rbi/whop_sdk/models.rbi +42 -0
  100. data/rbi/whop_sdk/resources/apps.rbi +6 -0
  101. data/rbi/whop_sdk/resources/checkout_configurations.rbi +15 -0
  102. data/rbi/whop_sdk/resources/course_lessons.rbi +48 -0
  103. data/rbi/whop_sdk/resources/forum_posts.rbi +2 -4
  104. data/rbi/whop_sdk/resources/refunds.rbi +68 -0
  105. data/rbi/whop_sdk/resources/webhooks.rbi +3 -1
  106. data/rbi/whop_sdk/resources/withdrawals.rbi +71 -0
  107. data/sig/whop_sdk/client.rbs +4 -0
  108. data/sig/whop_sdk/models/app.rbs +5 -0
  109. data/sig/whop_sdk/models/app_list_params.rbs +5 -0
  110. data/sig/whop_sdk/models/app_list_response.rbs +5 -0
  111. data/sig/whop_sdk/models/app_type.rbs +16 -0
  112. data/sig/whop_sdk/models/app_update_params.rbs +5 -0
  113. data/sig/whop_sdk/models/checkout_configuration.rbs +45 -8
  114. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +43 -1
  115. data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +45 -8
  116. data/sig/whop_sdk/models/checkout_modes.rbs +14 -0
  117. data/sig/whop_sdk/models/course.rbs +5 -0
  118. data/sig/whop_sdk/models/course_lesson_list_response.rbs +5 -0
  119. data/sig/whop_sdk/models/course_lesson_mark_as_completed_params.rbs +15 -0
  120. data/sig/whop_sdk/models/course_lesson_mark_as_completed_response.rbs +5 -0
  121. data/sig/whop_sdk/models/course_lesson_start_params.rbs +15 -0
  122. data/sig/whop_sdk/models/course_lesson_start_response.rbs +5 -0
  123. data/sig/whop_sdk/models/course_lesson_submit_assessment_params.rbs +51 -0
  124. data/sig/whop_sdk/models/course_lesson_submit_assessment_response.rbs +96 -0
  125. data/sig/whop_sdk/models/course_list_response.rbs +5 -0
  126. data/sig/whop_sdk/models/forum_post_create_params.rbs +4 -15
  127. data/sig/whop_sdk/models/forum_post_update_params.rbs +4 -15
  128. data/sig/whop_sdk/models/forum_post_visibility_type.rbs +14 -0
  129. data/sig/whop_sdk/models/lesson.rbs +79 -3
  130. data/sig/whop_sdk/models/payment_provider.rbs +28 -0
  131. data/sig/whop_sdk/models/refund_created_webhook_event.rbs +252 -0
  132. data/sig/whop_sdk/models/refund_list_params.rbs +51 -0
  133. data/sig/whop_sdk/models/refund_list_response.rbs +80 -0
  134. data/sig/whop_sdk/models/refund_reference_status.rbs +15 -0
  135. data/sig/whop_sdk/models/refund_reference_type.rbs +18 -0
  136. data/sig/whop_sdk/models/refund_retrieve_params.rbs +15 -0
  137. data/sig/whop_sdk/models/refund_retrieve_response.rbs +215 -0
  138. data/sig/whop_sdk/models/refund_status.rbs +18 -0
  139. data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +252 -0
  140. data/sig/whop_sdk/models/unwrap_webhook_event.rbs +2 -0
  141. data/sig/whop_sdk/models/withdrawal_fee_types.rbs +14 -0
  142. data/sig/whop_sdk/models/withdrawal_list_params.rbs +61 -0
  143. data/sig/whop_sdk/models/withdrawal_list_response.rbs +60 -0
  144. data/sig/whop_sdk/models/withdrawal_retrieve_params.rbs +15 -0
  145. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +297 -0
  146. data/sig/whop_sdk/models/withdrawal_speeds.rbs +14 -0
  147. data/sig/whop_sdk/models/withdrawal_status.rbs +26 -0
  148. data/sig/whop_sdk/models/withdrawal_types.rbs +14 -0
  149. data/sig/whop_sdk/models.rbs +40 -0
  150. data/sig/whop_sdk/resources/apps.rbs +2 -0
  151. data/sig/whop_sdk/resources/checkout_configurations.rbs +3 -0
  152. data/sig/whop_sdk/resources/course_lessons.rbs +16 -0
  153. data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
  154. data/sig/whop_sdk/resources/refunds.rbs +22 -0
  155. data/sig/whop_sdk/resources/webhooks.rbs +3 -1
  156. data/sig/whop_sdk/resources/withdrawals.rbs +24 -0
  157. metadata +89 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3eecc254b8ba9c6ee8fd458763a9749b1478efc921f4f3c696823cae79f31a1c
4
- data.tar.gz: 0b085d7a2c1551bc99016a562266d326312f8da3b3a6104a08426677f9b89c1e
3
+ metadata.gz: 14ebf7da15710195e3504625ed6981872a5617073900afea6e87a69649fb2168
4
+ data.tar.gz: 8be39b26a644d7dde4c56f91d70966d562289b751f9ff161878240bd42a894d7
5
5
  SHA512:
6
- metadata.gz: 4ed891547df3d339cbec397a7d78e55e7c00610187dc5cb80acf05e6fc2e93e0952020f55723e98b2f5230a220424d3bdf8498f70ac472f8f5e2aed37dfa0e6e
7
- data.tar.gz: 9d9ca43b7fc87ff4df8a9e050d15503631e25070369381116c362b6cae95cf0740de7a3488325538928974349c1687e7147f729d8794bbbe44ca2ef79b125259
6
+ metadata.gz: 691a259a1b5dfd6b2b9550a357dbac5111122439578e526550dde1c9c227614a0a83f3521ae4035b9d07a33d913e0ff85cafc6f86d4e74b08e4c97bf81d99475
7
+ data.tar.gz: ba2977755e24b9a195f1205b629daab0aab47576a770ee0a45a4807f71cb7276fe36cd06f4d3624dddd2bf03c8e0adcc322ec0c214c8ad15ab6b29605dd9886d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
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
+
3
22
  ## 0.0.7 (2025-11-13)
4
23
 
5
24
  Full Changelog: [v0.0.6...v0.0.7](https://github.com/whopio/whopsdk-ruby/compare/v0.0.6...v0.0.7)
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.7"
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)
@@ -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
@@ -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
@@ -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
@@ -25,14 +25,30 @@ module WhopSDK
25
25
  # @!attribute metadata
26
26
  # The metadata to use for the checkout configuration
27
27
  #
28
- # @return [Hash{Symbol=>Object}]
29
- required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]
28
+ # @return [Hash{Symbol=>Object}, nil]
29
+ required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
30
+
31
+ # @!attribute mode
32
+ # The mode of the checkout session.
33
+ #
34
+ # @return [Symbol, WhopSDK::Models::CheckoutModes]
35
+ required :mode, enum: -> { WhopSDK::CheckoutModes }
36
+
37
+ # @!attribute payment_method_configuration
38
+ # The explicit payment method configuration for the session, if any. This
39
+ # currently only works in 'setup' mode. Use the plan's
40
+ # payment_method_configuration for payment method.
41
+ #
42
+ # @return [WhopSDK::Models::CheckoutConfigurationListResponse::PaymentMethodConfiguration, nil]
43
+ required :payment_method_configuration,
44
+ -> { WhopSDK::Models::CheckoutConfigurationListResponse::PaymentMethodConfiguration },
45
+ nil?: true
30
46
 
31
47
  # @!attribute plan
32
48
  # The plan to use for the checkout configuration
33
49
  #
34
- # @return [WhopSDK::Models::CheckoutConfigurationListResponse::Plan]
35
- required :plan, -> { WhopSDK::Models::CheckoutConfigurationListResponse::Plan }
50
+ # @return [WhopSDK::Models::CheckoutConfigurationListResponse::Plan, nil]
51
+ required :plan, -> { WhopSDK::Models::CheckoutConfigurationListResponse::Plan }, nil?: true
36
52
 
37
53
  # @!attribute purchase_url
38
54
  # A URL you can send to customers to complete a checkout. It looks like
@@ -47,7 +63,7 @@ module WhopSDK
47
63
  # @return [String, nil]
48
64
  required :redirect_url, String, nil?: true
49
65
 
50
- # @!method initialize(id:, affiliate_code:, company_id:, metadata:, plan:, purchase_url:, redirect_url:)
66
+ # @!method initialize(id:, affiliate_code:, company_id:, metadata:, mode:, payment_method_configuration:, plan:, purchase_url:, redirect_url:)
51
67
  # Some parameter documentations has been truncated, see
52
68
  # {WhopSDK::Models::CheckoutConfigurationListResponse} for more details.
53
69
  #
@@ -62,14 +78,60 @@ module WhopSDK
62
78
  #
63
79
  # @param company_id [String] The ID of the company to use for the checkout configuration
64
80
  #
65
- # @param metadata [Hash{Symbol=>Object}] The metadata to use for the checkout configuration
81
+ # @param metadata [Hash{Symbol=>Object}, nil] The metadata to use for the checkout configuration
82
+ #
83
+ # @param mode [Symbol, WhopSDK::Models::CheckoutModes] The mode of the checkout session.
66
84
  #
67
- # @param plan [WhopSDK::Models::CheckoutConfigurationListResponse::Plan] The plan to use for the checkout configuration
85
+ # @param payment_method_configuration [WhopSDK::Models::CheckoutConfigurationListResponse::PaymentMethodConfiguration, nil] The explicit payment method configuration for the session, if any. This currentl
86
+ #
87
+ # @param plan [WhopSDK::Models::CheckoutConfigurationListResponse::Plan, nil] The plan to use for the checkout configuration
68
88
  #
69
89
  # @param purchase_url [String] A URL you can send to customers to complete a checkout. It looks like `/checkout
70
90
  #
71
91
  # @param redirect_url [String, nil] The URL to redirect the user to after the checkout configuration is created
72
92
 
93
+ # @see WhopSDK::Models::CheckoutConfigurationListResponse#payment_method_configuration
94
+ class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
95
+ # @!attribute disabled
96
+ # An array of payment method identifiers that are explicitly disabled. Only
97
+ # applies if the include_platform_defaults is true.
98
+ #
99
+ # @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
100
+ required :disabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
101
+
102
+ # @!attribute enabled
103
+ # An array of payment method identifiers that are explicitly enabled. This means
104
+ # these payment methods will be shown on checkout. Example use case is to only
105
+ # enable a specific payment method like cashapp, or extending the platform
106
+ # defaults with additional methods.
107
+ #
108
+ # @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
109
+ required :enabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
110
+
111
+ # @!attribute include_platform_defaults
112
+ # Whether Whop's platform default payment method enablement settings are included
113
+ # in this configuration. The full list of default payment methods can be found in
114
+ # the documentation at docs.whop.com/payments.
115
+ #
116
+ # @return [Boolean]
117
+ required :include_platform_defaults, WhopSDK::Internal::Type::Boolean
118
+
119
+ # @!method initialize(disabled:, enabled:, include_platform_defaults:)
120
+ # Some parameter documentations has been truncated, see
121
+ # {WhopSDK::Models::CheckoutConfigurationListResponse::PaymentMethodConfiguration}
122
+ # for more details.
123
+ #
124
+ # The explicit payment method configuration for the session, if any. This
125
+ # currently only works in 'setup' mode. Use the plan's
126
+ # payment_method_configuration for payment method.
127
+ #
128
+ # @param disabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly disabled. Only applie
129
+ #
130
+ # @param enabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly enabled. This means t
131
+ #
132
+ # @param include_platform_defaults [Boolean] Whether Whop's platform default payment method enablement settings are included
133
+ end
134
+
73
135
  # @see WhopSDK::Models::CheckoutConfigurationListResponse#plan
74
136
  class Plan < WhopSDK::Internal::Type::BaseModel
75
137
  # @!attribute id
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # The different modes a checkout can be set to.
6
+ module CheckoutModes
7
+ extend WhopSDK::Internal::Type::Enum
8
+
9
+ PAYMENT = :payment
10
+ SETUP = :setup
11
+
12
+ # @!method self.values
13
+ # @return [Array<Symbol>]
14
+ end
15
+ end
16
+ end
@@ -23,6 +23,12 @@ module WhopSDK
23
23
  # @return [Array<WhopSDK::Models::Course::Chapter>]
24
24
  required :chapters, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Course::Chapter] }
25
25
 
26
+ # @!attribute cover_image
27
+ # The URL of the course's cover image, which is shown in course preview cards
28
+ #
29
+ # @return [String, nil]
30
+ required :cover_image, String, nil?: true
31
+
26
32
  # @!attribute created_at
27
33
  # The timestamp of when the course was created
28
34
  #
@@ -86,7 +92,7 @@ module WhopSDK
86
92
  # @return [Symbol, WhopSDK::Models::CourseVisibilities]
87
93
  required :visibility, enum: -> { WhopSDK::CourseVisibilities }
88
94
 
89
- # @!method initialize(id:, certificate_after_completion_enabled:, chapters:, created_at:, description:, language:, order:, require_completing_lessons_in_order:, tagline:, thumbnail:, title:, updated_at:, visibility:)
95
+ # @!method initialize(id:, certificate_after_completion_enabled:, chapters:, cover_image:, created_at:, description:, language:, order:, require_completing_lessons_in_order:, tagline:, thumbnail:, title:, updated_at:, visibility:)
90
96
  # Some parameter documentations has been truncated, see {WhopSDK::Models::Course}
91
97
  # for more details.
92
98
  #
@@ -98,6 +104,8 @@ module WhopSDK
98
104
  #
99
105
  # @param chapters [Array<WhopSDK::Models::Course::Chapter>] The chapters in this course
100
106
  #
107
+ # @param cover_image [String, nil] The URL of the course's cover image, which is shown in course preview cards
108
+ #
101
109
  # @param created_at [Time] The timestamp of when the course was created
102
110
  #
103
111
  # @param description [String, nil] A short description of the course
@@ -16,6 +16,12 @@ module WhopSDK
16
16
  # @return [String, nil]
17
17
  required :content, String, nil?: true
18
18
 
19
+ # @!attribute created_at
20
+ # The timestamp of when the lesson was created
21
+ #
22
+ # @return [Time]
23
+ required :created_at, Time
24
+
19
25
  # @!attribute days_from_course_start_until_unlock
20
26
  # Number of days from course start until the lesson is unlocked
21
27
  #
@@ -65,7 +71,7 @@ module WhopSDK
65
71
  # @return [Symbol, WhopSDK::Models::LessonVisibilities]
66
72
  required :visibility, enum: -> { WhopSDK::LessonVisibilities }
67
73
 
68
- # @!method initialize(id:, content:, days_from_course_start_until_unlock:, embed_id:, embed_type:, lesson_type:, order:, thumbnail:, title:, visibility:)
74
+ # @!method initialize(id:, content:, created_at:, days_from_course_start_until_unlock:, embed_id:, embed_type:, lesson_type:, order:, thumbnail:, title:, visibility:)
69
75
  # Some parameter documentations has been truncated, see
70
76
  # {WhopSDK::Models::CourseLessonListResponse} for more details.
71
77
  #
@@ -75,6 +81,8 @@ module WhopSDK
75
81
  #
76
82
  # @param content [String, nil] The content of the lesson
77
83
  #
84
+ # @param created_at [Time] The timestamp of when the lesson was created
85
+ #
78
86
  # @param days_from_course_start_until_unlock [Integer, nil] Number of days from course start until the lesson is unlocked
79
87
  #
80
88
  # @param embed_id [String, nil] ID for the embed (YouTube video ID or Loom share ID)