whop_sdk 0.0.23 → 0.0.24

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 (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
  5. data/lib/whop_sdk/models/app_create_params.rb +22 -1
  6. data/lib/whop_sdk/models/app_list_params.rb +5 -0
  7. data/lib/whop_sdk/models/app_update_params.rb +14 -53
  8. data/lib/whop_sdk/models/card_brands.rb +16 -0
  9. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
  10. data/lib/whop_sdk/models/company_create_params.rb +22 -1
  11. data/lib/whop_sdk/models/company_update_params.rb +28 -106
  12. data/lib/whop_sdk/models/course_create_params.rb +15 -62
  13. data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
  14. data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
  15. data/lib/whop_sdk/models/course_update_params.rb +14 -61
  16. data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
  17. data/lib/whop_sdk/models/experience_create_params.rb +22 -1
  18. data/lib/whop_sdk/models/experience_update_params.rb +14 -53
  19. data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
  20. data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
  21. data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
  22. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
  23. data/lib/whop_sdk/models/member_list_response.rb +9 -1
  24. data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
  25. data/lib/whop_sdk/models/membership.rb +76 -2
  26. data/lib/whop_sdk/models/membership_list_response.rb +38 -2
  27. data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
  28. data/lib/whop_sdk/models/message_create_params.rb +13 -52
  29. data/lib/whop_sdk/models/message_update_params.rb +14 -53
  30. data/lib/whop_sdk/models/payment.rb +17 -1
  31. data/lib/whop_sdk/models/payment_list_response.rb +17 -1
  32. data/lib/whop_sdk/models/payment_method_types.rb +58 -57
  33. data/lib/whop_sdk/models/payment_provider.rb +1 -0
  34. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +26 -1
  35. data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
  36. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
  37. data/lib/whop_sdk/models/plan_create_params.rb +14 -53
  38. data/lib/whop_sdk/models/plan_update_params.rb +14 -53
  39. data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
  40. data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
  41. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +2 -9
  42. data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
  43. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
  44. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +2 -9
  45. data/lib/whop_sdk/models.rb +2 -2
  46. data/lib/whop_sdk/resources/app_builds.rb +1 -1
  47. data/lib/whop_sdk/resources/apps.rb +4 -2
  48. data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
  49. data/lib/whop_sdk/resources/companies.rb +5 -3
  50. data/lib/whop_sdk/resources/course_lessons.rb +4 -4
  51. data/lib/whop_sdk/resources/courses.rb +4 -8
  52. data/lib/whop_sdk/resources/disputes.rb +4 -4
  53. data/lib/whop_sdk/resources/experiences.rb +4 -2
  54. data/lib/whop_sdk/resources/forum_posts.rb +2 -2
  55. data/lib/whop_sdk/resources/memberships.rb +32 -0
  56. data/lib/whop_sdk/resources/messages.rb +2 -2
  57. data/lib/whop_sdk/resources/notifications.rb +4 -0
  58. data/lib/whop_sdk/resources/plans.rb +2 -2
  59. data/lib/whop_sdk/resources/withdrawals.rb +8 -1
  60. data/lib/whop_sdk/version.rb +1 -1
  61. data/lib/whop_sdk.rb +1 -1
  62. data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
  63. data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
  64. data/rbi/whop_sdk/models/app_list_params.rbi +10 -0
  65. data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
  66. data/rbi/whop_sdk/models/card_brands.rbi +17 -0
  67. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
  68. data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
  69. data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
  70. data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
  71. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
  72. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
  73. data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
  74. data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
  75. data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
  76. data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
  77. data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
  78. data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
  79. data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
  80. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
  81. data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
  82. data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
  83. data/rbi/whop_sdk/models/membership.rbi +126 -4
  84. data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
  85. data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
  86. data/rbi/whop_sdk/models/message_create_params.rbi +18 -94
  87. data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
  88. data/rbi/whop_sdk/models/payment.rbi +16 -0
  89. data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
  90. data/rbi/whop_sdk/models/payment_method_types.rbi +66 -64
  91. data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
  92. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +26 -0
  93. data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
  94. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
  95. data/rbi/whop_sdk/models/plan_create_params.rbi +21 -93
  96. data/rbi/whop_sdk/models/plan_update_params.rbi +21 -93
  97. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
  98. data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
  99. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +8 -11
  100. data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
  101. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
  102. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +8 -11
  103. data/rbi/whop_sdk/models.rbi +2 -2
  104. data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
  105. data/rbi/whop_sdk/resources/apps.rbi +4 -7
  106. data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
  107. data/rbi/whop_sdk/resources/companies.rbi +5 -13
  108. data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
  109. data/rbi/whop_sdk/resources/courses.rbi +2 -20
  110. data/rbi/whop_sdk/resources/disputes.rbi +4 -16
  111. data/rbi/whop_sdk/resources/experiences.rbi +4 -7
  112. data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
  113. data/rbi/whop_sdk/resources/memberships.rbi +26 -0
  114. data/rbi/whop_sdk/resources/messages.rbi +2 -12
  115. data/rbi/whop_sdk/resources/notifications.rbi +4 -0
  116. data/rbi/whop_sdk/resources/plans.rbi +2 -14
  117. data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
  118. data/sig/whop_sdk/models/app_build_create_params.rbs +9 -30
  119. data/sig/whop_sdk/models/app_create_params.rbs +20 -1
  120. data/sig/whop_sdk/models/app_list_params.rbs +10 -0
  121. data/sig/whop_sdk/models/app_update_params.rbs +9 -30
  122. data/sig/whop_sdk/models/card_brands.rbs +32 -0
  123. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +19 -30
  124. data/sig/whop_sdk/models/company_create_params.rbs +15 -0
  125. data/sig/whop_sdk/models/company_update_params.rbs +18 -60
  126. data/sig/whop_sdk/models/course_create_params.rbs +9 -35
  127. data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
  128. data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
  129. data/sig/whop_sdk/models/course_update_params.rbs +9 -35
  130. data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
  131. data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
  132. data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
  133. data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
  134. data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
  135. data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
  136. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
  137. data/sig/whop_sdk/models/member_list_response.rbs +5 -0
  138. data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
  139. data/sig/whop_sdk/models/membership.rbs +65 -4
  140. data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
  141. data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
  142. data/sig/whop_sdk/models/message_create_params.rbs +9 -30
  143. data/sig/whop_sdk/models/message_update_params.rbs +9 -30
  144. data/sig/whop_sdk/models/payment.rbs +10 -0
  145. data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
  146. data/sig/whop_sdk/models/payment_method_types.rbs +117 -115
  147. data/sig/whop_sdk/models/payment_provider.rbs +2 -0
  148. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +15 -0
  149. data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
  150. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
  151. data/sig/whop_sdk/models/plan_create_params.rbs +9 -30
  152. data/sig/whop_sdk/models/plan_update_params.rbs +9 -30
  153. data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
  154. data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
  155. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -8
  156. data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
  157. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
  158. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -8
  159. data/sig/whop_sdk/models.rbs +2 -2
  160. data/sig/whop_sdk/resources/app_builds.rbs +1 -1
  161. data/sig/whop_sdk/resources/apps.rbs +2 -1
  162. data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
  163. data/sig/whop_sdk/resources/companies.rbs +3 -2
  164. data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
  165. data/sig/whop_sdk/resources/courses.rbs +2 -4
  166. data/sig/whop_sdk/resources/disputes.rbs +4 -4
  167. data/sig/whop_sdk/resources/experiences.rbs +2 -1
  168. data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
  169. data/sig/whop_sdk/resources/memberships.rbs +5 -0
  170. data/sig/whop_sdk/resources/messages.rbs +2 -2
  171. data/sig/whop_sdk/resources/plans.rbs +2 -2
  172. data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
  173. metadata +19 -5
  174. data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
  175. data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
  176. data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
@@ -28,9 +28,9 @@ module WhopSDK
28
28
  # General attachments for the lesson (PDFs, files, etc). Replaces all existing
29
29
  # attachments.
30
30
  #
31
- # @return [Array<WhopSDK::Models::CourseLessonUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::Attachment::AttachmentInputWithID>, nil]
31
+ # @return [Array<WhopSDK::Models::CourseLessonUpdateParams::Attachment>, nil]
32
32
  optional :attachments,
33
- -> { WhopSDK::Internal::Type::ArrayOf[union: WhopSDK::CourseLessonUpdateParams::Attachment] },
33
+ -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::CourseLessonUpdateParams::Attachment] },
34
34
  nil?: true
35
35
 
36
36
  # @!attribute content
@@ -66,8 +66,8 @@ module WhopSDK
66
66
  # @!attribute main_pdf
67
67
  # The main PDF file for this lesson
68
68
  #
69
- # @return [WhopSDK::Models::CourseLessonUpdateParams::MainPdf::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::MainPdf::AttachmentInputWithID, nil]
70
- optional :main_pdf, union: -> { WhopSDK::CourseLessonUpdateParams::MainPdf }, nil?: true
69
+ # @return [WhopSDK::Models::CourseLessonUpdateParams::MainPdf, nil]
70
+ optional :main_pdf, -> { WhopSDK::CourseLessonUpdateParams::MainPdf }, nil?: true
71
71
 
72
72
  # @!attribute max_attempts
73
73
  # Maximum number of attempts allowed for assessments
@@ -84,8 +84,8 @@ module WhopSDK
84
84
  # @!attribute thumbnail
85
85
  # The thumbnail for the lesson in png, jpeg, or gif format
86
86
  #
87
- # @return [WhopSDK::Models::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithID, nil]
88
- optional :thumbnail, union: -> { WhopSDK::CourseLessonUpdateParams::Thumbnail }, nil?: true
87
+ # @return [WhopSDK::Models::CourseLessonUpdateParams::Thumbnail, nil]
88
+ optional :thumbnail, -> { WhopSDK::CourseLessonUpdateParams::Thumbnail }, nil?: true
89
89
 
90
90
  # @!attribute title
91
91
  # The title of the lesson
@@ -108,7 +108,7 @@ module WhopSDK
108
108
  #
109
109
  # @param assessment_questions [Array<WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion>, nil] Assessment questions for quiz/knowledge check lessons. Replaces all existing que
110
110
  #
111
- # @param attachments [Array<WhopSDK::Models::CourseLessonUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::Attachment::AttachmentInputWithID>, nil] General attachments for the lesson (PDFs, files, etc). Replaces all existing att
111
+ # @param attachments [Array<WhopSDK::Models::CourseLessonUpdateParams::Attachment>, nil] General attachments for the lesson (PDFs, files, etc). Replaces all existing att
112
112
  #
113
113
  # @param content [String, nil] The content of the lesson
114
114
  #
@@ -120,13 +120,13 @@ module WhopSDK
120
120
  #
121
121
  # @param lesson_type [Symbol, WhopSDK::Models::LessonTypes, nil] The available types for a lesson
122
122
  #
123
- # @param main_pdf [WhopSDK::Models::CourseLessonUpdateParams::MainPdf::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::MainPdf::AttachmentInputWithID, nil] The main PDF file for this lesson
123
+ # @param main_pdf [WhopSDK::Models::CourseLessonUpdateParams::MainPdf, nil] The main PDF file for this lesson
124
124
  #
125
125
  # @param max_attempts [Integer, nil] Maximum number of attempts allowed for assessments
126
126
  #
127
127
  # @param mux_asset_id [String, nil] The ID of the Mux asset to attach to this lesson for video lessons
128
128
  #
129
- # @param thumbnail [WhopSDK::Models::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the lesson in png, jpeg, or gif format
129
+ # @param thumbnail [WhopSDK::Models::CourseLessonUpdateParams::Thumbnail, nil] The thumbnail for the lesson in png, jpeg, or gif format
130
130
  #
131
131
  # @param title [String, nil] The title of the lesson
132
132
  #
@@ -190,12 +190,8 @@ module WhopSDK
190
190
  # @!attribute image
191
191
  # Optional image attachment for the question
192
192
  #
193
- # @return [WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithID, nil]
194
- optional :image,
195
- union: -> {
196
- WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image
197
- },
198
- nil?: true
193
+ # @return [WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image, nil]
194
+ optional :image, -> { WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image }, nil?: true
199
195
 
200
196
  # @!attribute options
201
197
  # The answer options for multiple choice/select questions
@@ -222,62 +218,22 @@ module WhopSDK
222
218
  #
223
219
  # @param id [String, nil] The ID of an existing question. If provided, the question will be updated. If no
224
220
  #
225
- # @param image [WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithID, nil] Optional image attachment for the question
221
+ # @param image [WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image, nil] Optional image attachment for the question
226
222
  #
227
223
  # @param options [Array<WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Option>, nil] The answer options for multiple choice/select questions
228
224
 
229
- # Optional image attachment for the question
230
- #
231
225
  # @see WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion#image
232
- module Image
233
- extend WhopSDK::Internal::Type::Union
234
-
235
- # Input for an attachment
236
- variant -> { WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithDirectUploadID }
237
-
238
- # Input for an attachment
239
- variant -> { WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithID }
240
-
241
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
242
- # @!attribute direct_upload_id
243
- # This ID should be used the first time you upload an attachment. It is the ID of
244
- # the direct upload that was created when uploading the file to S3 via the
245
- # mediaDirectUpload mutation.
246
- #
247
- # @return [String]
248
- required :direct_upload_id, String
249
-
250
- # @!method initialize(direct_upload_id:)
251
- # Some parameter documentations has been truncated, see
252
- # {WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithDirectUploadID}
253
- # for more details.
254
- #
255
- # Input for an attachment
256
- #
257
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
258
- end
259
-
260
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
261
- # @!attribute id
262
- # The ID of an existing attachment object. Use this when updating a resource and
263
- # keeping a subset of the attachments. Don't use this unless you know what you're
264
- # doing.
265
- #
266
- # @return [String]
267
- required :id, String
268
-
269
- # @!method initialize(id:)
270
- # Some parameter documentations has been truncated, see
271
- # {WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithID}
272
- # for more details.
273
- #
274
- # Input for an attachment
275
- #
276
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
277
- end
278
-
279
- # @!method self.variants
280
- # @return [Array(WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithID)]
226
+ class Image < WhopSDK::Internal::Type::BaseModel
227
+ # @!attribute id
228
+ # The ID of an existing file object.
229
+ #
230
+ # @return [String]
231
+ required :id, String
232
+
233
+ # @!method initialize(id:)
234
+ # Optional image attachment for the question
235
+ #
236
+ # @param id [String] The ID of an existing file object.
281
237
  end
282
238
 
283
239
  class Option < WhopSDK::Internal::Type::BaseModel
@@ -315,160 +271,43 @@ module WhopSDK
315
271
  end
316
272
  end
317
273
 
318
- # Input for an attachment
319
- module Attachment
320
- extend WhopSDK::Internal::Type::Union
321
-
322
- # Input for an attachment
323
- variant -> { WhopSDK::CourseLessonUpdateParams::Attachment::AttachmentInputWithDirectUploadID }
324
-
325
- # Input for an attachment
326
- variant -> { WhopSDK::CourseLessonUpdateParams::Attachment::AttachmentInputWithID }
327
-
328
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
329
- # @!attribute direct_upload_id
330
- # This ID should be used the first time you upload an attachment. It is the ID of
331
- # the direct upload that was created when uploading the file to S3 via the
332
- # mediaDirectUpload mutation.
333
- #
334
- # @return [String]
335
- required :direct_upload_id, String
336
-
337
- # @!method initialize(direct_upload_id:)
338
- # Some parameter documentations has been truncated, see
339
- # {WhopSDK::Models::CourseLessonUpdateParams::Attachment::AttachmentInputWithDirectUploadID}
340
- # for more details.
341
- #
342
- # Input for an attachment
343
- #
344
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
345
- end
346
-
347
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
348
- # @!attribute id
349
- # The ID of an existing attachment object. Use this when updating a resource and
350
- # keeping a subset of the attachments. Don't use this unless you know what you're
351
- # doing.
352
- #
353
- # @return [String]
354
- required :id, String
355
-
356
- # @!method initialize(id:)
357
- # Some parameter documentations has been truncated, see
358
- # {WhopSDK::Models::CourseLessonUpdateParams::Attachment::AttachmentInputWithID}
359
- # for more details.
360
- #
361
- # Input for an attachment
362
- #
363
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
364
- end
274
+ class Attachment < WhopSDK::Internal::Type::BaseModel
275
+ # @!attribute id
276
+ # The ID of an existing file object.
277
+ #
278
+ # @return [String]
279
+ required :id, String
365
280
 
366
- # @!method self.variants
367
- # @return [Array(WhopSDK::Models::CourseLessonUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::Attachment::AttachmentInputWithID)]
281
+ # @!method initialize(id:)
282
+ # Input for an attachment
283
+ #
284
+ # @param id [String] The ID of an existing file object.
368
285
  end
369
286
 
370
- # The main PDF file for this lesson
371
- module MainPdf
372
- extend WhopSDK::Internal::Type::Union
373
-
374
- # Input for an attachment
375
- variant -> { WhopSDK::CourseLessonUpdateParams::MainPdf::AttachmentInputWithDirectUploadID }
376
-
377
- # Input for an attachment
378
- variant -> { WhopSDK::CourseLessonUpdateParams::MainPdf::AttachmentInputWithID }
379
-
380
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
381
- # @!attribute direct_upload_id
382
- # This ID should be used the first time you upload an attachment. It is the ID of
383
- # the direct upload that was created when uploading the file to S3 via the
384
- # mediaDirectUpload mutation.
385
- #
386
- # @return [String]
387
- required :direct_upload_id, String
388
-
389
- # @!method initialize(direct_upload_id:)
390
- # Some parameter documentations has been truncated, see
391
- # {WhopSDK::Models::CourseLessonUpdateParams::MainPdf::AttachmentInputWithDirectUploadID}
392
- # for more details.
393
- #
394
- # Input for an attachment
395
- #
396
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
397
- end
398
-
399
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
400
- # @!attribute id
401
- # The ID of an existing attachment object. Use this when updating a resource and
402
- # keeping a subset of the attachments. Don't use this unless you know what you're
403
- # doing.
404
- #
405
- # @return [String]
406
- required :id, String
407
-
408
- # @!method initialize(id:)
409
- # Some parameter documentations has been truncated, see
410
- # {WhopSDK::Models::CourseLessonUpdateParams::MainPdf::AttachmentInputWithID} for
411
- # more details.
412
- #
413
- # Input for an attachment
414
- #
415
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
416
- end
287
+ class MainPdf < WhopSDK::Internal::Type::BaseModel
288
+ # @!attribute id
289
+ # The ID of an existing file object.
290
+ #
291
+ # @return [String]
292
+ required :id, String
417
293
 
418
- # @!method self.variants
419
- # @return [Array(WhopSDK::Models::CourseLessonUpdateParams::MainPdf::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::MainPdf::AttachmentInputWithID)]
294
+ # @!method initialize(id:)
295
+ # The main PDF file for this lesson
296
+ #
297
+ # @param id [String] The ID of an existing file object.
420
298
  end
421
299
 
422
- # The thumbnail for the lesson in png, jpeg, or gif format
423
- module Thumbnail
424
- extend WhopSDK::Internal::Type::Union
425
-
426
- # Input for an attachment
427
- variant -> { WhopSDK::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID }
428
-
429
- # Input for an attachment
430
- variant -> { WhopSDK::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithID }
431
-
432
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
433
- # @!attribute direct_upload_id
434
- # This ID should be used the first time you upload an attachment. It is the ID of
435
- # the direct upload that was created when uploading the file to S3 via the
436
- # mediaDirectUpload mutation.
437
- #
438
- # @return [String]
439
- required :direct_upload_id, String
440
-
441
- # @!method initialize(direct_upload_id:)
442
- # Some parameter documentations has been truncated, see
443
- # {WhopSDK::Models::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID}
444
- # for more details.
445
- #
446
- # Input for an attachment
447
- #
448
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
449
- end
450
-
451
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
452
- # @!attribute id
453
- # The ID of an existing attachment object. Use this when updating a resource and
454
- # keeping a subset of the attachments. Don't use this unless you know what you're
455
- # doing.
456
- #
457
- # @return [String]
458
- required :id, String
459
-
460
- # @!method initialize(id:)
461
- # Some parameter documentations has been truncated, see
462
- # {WhopSDK::Models::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithID}
463
- # for more details.
464
- #
465
- # Input for an attachment
466
- #
467
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
468
- end
300
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
301
+ # @!attribute id
302
+ # The ID of an existing file object.
303
+ #
304
+ # @return [String]
305
+ required :id, String
469
306
 
470
- # @!method self.variants
471
- # @return [Array(WhopSDK::Models::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithID)]
307
+ # @!method initialize(id:)
308
+ # The thumbnail for the lesson in png, jpeg, or gif format
309
+ #
310
+ # @param id [String] The ID of an existing file object.
472
311
  end
473
312
  end
474
313
  end
@@ -22,12 +22,6 @@ module WhopSDK
22
22
  -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::CourseUpdateParams::Chapter] },
23
23
  nil?: true
24
24
 
25
- # @!attribute cover_image
26
- # The cover image URL of the course
27
- #
28
- # @return [String, nil]
29
- optional :cover_image, String, nil?: true
30
-
31
25
  # @!attribute description
32
26
  # A short description of the course
33
27
  #
@@ -63,8 +57,8 @@ module WhopSDK
63
57
  # @!attribute thumbnail
64
58
  # The thumbnail for the course in png, jpeg, or gif format
65
59
  #
66
- # @return [WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithID, nil]
67
- optional :thumbnail, union: -> { WhopSDK::CourseUpdateParams::Thumbnail }, nil?: true
60
+ # @return [WhopSDK::Models::CourseUpdateParams::Thumbnail, nil]
61
+ optional :thumbnail, -> { WhopSDK::CourseUpdateParams::Thumbnail }, nil?: true
68
62
 
69
63
  # @!attribute title
70
64
  # The title of the course
@@ -79,7 +73,7 @@ module WhopSDK
79
73
  # @return [Symbol, WhopSDK::Models::CourseVisibilities, nil]
80
74
  optional :visibility, enum: -> { WhopSDK::CourseVisibilities }, nil?: true
81
75
 
82
- # @!method initialize(certificate_after_completion_enabled: nil, chapters: nil, cover_image: nil, description: nil, language: nil, order: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, title: nil, visibility: nil, request_options: {})
76
+ # @!method initialize(certificate_after_completion_enabled: nil, chapters: nil, description: nil, language: nil, order: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, title: nil, visibility: nil, request_options: {})
83
77
  # Some parameter documentations has been truncated, see
84
78
  # {WhopSDK::Models::CourseUpdateParams} for more details.
85
79
  #
@@ -87,8 +81,6 @@ module WhopSDK
87
81
  #
88
82
  # @param chapters [Array<WhopSDK::Models::CourseUpdateParams::Chapter>, nil] The chapters and lessons to update
89
83
  #
90
- # @param cover_image [String, nil] The cover image URL of the course
91
- #
92
84
  # @param description [String, nil] A short description of the course
93
85
  #
94
86
  # @param language [Symbol, WhopSDK::Models::Languages, nil] The available languages for a course
@@ -99,7 +91,7 @@ module WhopSDK
99
91
  #
100
92
  # @param tagline [String, nil] A short tagline for the course
101
93
  #
102
- # @param thumbnail [WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the course in png, jpeg, or gif format
94
+ # @param thumbnail [WhopSDK::Models::CourseUpdateParams::Thumbnail, nil] The thumbnail for the course in png, jpeg, or gif format
103
95
  #
104
96
  # @param title [String, nil] The title of the course
105
97
  #
@@ -183,56 +175,17 @@ module WhopSDK
183
175
  end
184
176
  end
185
177
 
186
- # The thumbnail for the course in png, jpeg, or gif format
187
- module Thumbnail
188
- extend WhopSDK::Internal::Type::Union
189
-
190
- # Input for an attachment
191
- variant -> { WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID }
192
-
193
- # Input for an attachment
194
- variant -> { WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithID }
195
-
196
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
197
- # @!attribute direct_upload_id
198
- # This ID should be used the first time you upload an attachment. It is the ID of
199
- # the direct upload that was created when uploading the file to S3 via the
200
- # mediaDirectUpload mutation.
201
- #
202
- # @return [String]
203
- required :direct_upload_id, String
204
-
205
- # @!method initialize(direct_upload_id:)
206
- # Some parameter documentations has been truncated, see
207
- # {WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID}
208
- # for more details.
209
- #
210
- # Input for an attachment
211
- #
212
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
213
- end
214
-
215
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
216
- # @!attribute id
217
- # The ID of an existing attachment object. Use this when updating a resource and
218
- # keeping a subset of the attachments. Don't use this unless you know what you're
219
- # doing.
220
- #
221
- # @return [String]
222
- required :id, String
223
-
224
- # @!method initialize(id:)
225
- # Some parameter documentations has been truncated, see
226
- # {WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithID} for more
227
- # details.
228
- #
229
- # Input for an attachment
230
- #
231
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
232
- end
178
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
179
+ # @!attribute id
180
+ # The ID of an existing file object.
181
+ #
182
+ # @return [String]
183
+ required :id, String
233
184
 
234
- # @!method self.variants
235
- # @return [Array(WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithID)]
185
+ # @!method initialize(id:)
186
+ # The thumbnail for the course in png, jpeg, or gif format
187
+ #
188
+ # @param id [String] The ID of an existing file object.
236
189
  end
237
190
  end
238
191
  end