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
@@ -10,8 +10,8 @@ module WhopSDK
10
10
  # @!attribute banner_image
11
11
  # The banner image for the company in png or jpeg format
12
12
  #
13
- # @return [WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID, nil]
14
- optional :banner_image, union: -> { WhopSDK::CompanyUpdateParams::BannerImage }, nil?: true
13
+ # @return [WhopSDK::Models::CompanyUpdateParams::BannerImage, nil]
14
+ optional :banner_image, -> { WhopSDK::CompanyUpdateParams::BannerImage }, nil?: true
15
15
 
16
16
  # @!attribute business_type
17
17
  # The different business types a company can be.
@@ -28,8 +28,8 @@ module WhopSDK
28
28
  # @!attribute logo
29
29
  # The logo for the company in png, jpeg, or gif format
30
30
  #
31
- # @return [WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID, nil]
32
- optional :logo, union: -> { WhopSDK::CompanyUpdateParams::Logo }, nil?: true
31
+ # @return [WhopSDK::Models::CompanyUpdateParams::Logo, nil]
32
+ optional :logo, -> { WhopSDK::CompanyUpdateParams::Logo }, nil?: true
33
33
 
34
34
  # @!attribute send_customer_emails
35
35
  # Whether Whop sends transactional emails to customers on behalf of this company.
@@ -50,13 +50,13 @@ module WhopSDK
50
50
  # Some parameter documentations has been truncated, see
51
51
  # {WhopSDK::Models::CompanyUpdateParams} for more details.
52
52
  #
53
- # @param banner_image [WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID, nil] The banner image for the company in png or jpeg format
53
+ # @param banner_image [WhopSDK::Models::CompanyUpdateParams::BannerImage, nil] The banner image for the company in png or jpeg format
54
54
  #
55
55
  # @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
56
56
  #
57
57
  # @param industry_type [Symbol, WhopSDK::Models::IndustryTypes, nil] The different industry types a company can be in.
58
58
  #
59
- # @param logo [WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the company in png, jpeg, or gif format
59
+ # @param logo [WhopSDK::Models::CompanyUpdateParams::Logo, nil] The logo for the company in png, jpeg, or gif format
60
60
  #
61
61
  # @param send_customer_emails [Boolean, nil] Whether Whop sends transactional emails to customers on behalf of this company.
62
62
  #
@@ -64,108 +64,30 @@ module WhopSDK
64
64
  #
65
65
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
66
66
 
67
- # The banner image for the company in png or jpeg format
68
- module BannerImage
69
- extend WhopSDK::Internal::Type::Union
70
-
71
- # Input for an attachment
72
- variant -> { WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID }
73
-
74
- # Input for an attachment
75
- variant -> { WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID }
76
-
77
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
78
- # @!attribute direct_upload_id
79
- # This ID should be used the first time you upload an attachment. It is the ID of
80
- # the direct upload that was created when uploading the file to S3 via the
81
- # mediaDirectUpload mutation.
82
- #
83
- # @return [String]
84
- required :direct_upload_id, String
85
-
86
- # @!method initialize(direct_upload_id:)
87
- # Some parameter documentations has been truncated, see
88
- # {WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID}
89
- # for more details.
90
- #
91
- # Input for an attachment
92
- #
93
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
94
- end
95
-
96
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
97
- # @!attribute id
98
- # The ID of an existing attachment object. Use this when updating a resource and
99
- # keeping a subset of the attachments. Don't use this unless you know what you're
100
- # doing.
101
- #
102
- # @return [String]
103
- required :id, String
104
-
105
- # @!method initialize(id:)
106
- # Some parameter documentations has been truncated, see
107
- # {WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID} for
108
- # more details.
109
- #
110
- # Input for an attachment
111
- #
112
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
113
- end
114
-
115
- # @!method self.variants
116
- # @return [Array(WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID)]
67
+ class BannerImage < WhopSDK::Internal::Type::BaseModel
68
+ # @!attribute id
69
+ # The ID of an existing file object.
70
+ #
71
+ # @return [String]
72
+ required :id, String
73
+
74
+ # @!method initialize(id:)
75
+ # The banner image for the company in png or jpeg format
76
+ #
77
+ # @param id [String] The ID of an existing file object.
117
78
  end
118
79
 
119
- # The logo for the company in png, jpeg, or gif format
120
- module Logo
121
- extend WhopSDK::Internal::Type::Union
122
-
123
- # Input for an attachment
124
- variant -> { WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID }
125
-
126
- # Input for an attachment
127
- variant -> { WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID }
128
-
129
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
130
- # @!attribute direct_upload_id
131
- # This ID should be used the first time you upload an attachment. It is the ID of
132
- # the direct upload that was created when uploading the file to S3 via the
133
- # mediaDirectUpload mutation.
134
- #
135
- # @return [String]
136
- required :direct_upload_id, String
137
-
138
- # @!method initialize(direct_upload_id:)
139
- # Some parameter documentations has been truncated, see
140
- # {WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID}
141
- # for more details.
142
- #
143
- # Input for an attachment
144
- #
145
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
146
- end
147
-
148
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
149
- # @!attribute id
150
- # The ID of an existing attachment object. Use this when updating a resource and
151
- # keeping a subset of the attachments. Don't use this unless you know what you're
152
- # doing.
153
- #
154
- # @return [String]
155
- required :id, String
156
-
157
- # @!method initialize(id:)
158
- # Some parameter documentations has been truncated, see
159
- # {WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID} for more
160
- # details.
161
- #
162
- # Input for an attachment
163
- #
164
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
165
- end
166
-
167
- # @!method self.variants
168
- # @return [Array(WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID)]
80
+ class Logo < WhopSDK::Internal::Type::BaseModel
81
+ # @!attribute id
82
+ # The ID of an existing file object.
83
+ #
84
+ # @return [String]
85
+ required :id, String
86
+
87
+ # @!method initialize(id:)
88
+ # The logo for the company in png, jpeg, or gif format
89
+ #
90
+ # @param id [String] The ID of an existing file object.
169
91
  end
170
92
  end
171
93
  end
@@ -26,12 +26,6 @@ module WhopSDK
26
26
  # @return [Boolean, nil]
27
27
  optional :certificate_after_completion_enabled, WhopSDK::Internal::Type::Boolean, nil?: true
28
28
 
29
- # @!attribute cover_image
30
- # The cover image URL of the course
31
- #
32
- # @return [String, nil]
33
- optional :cover_image, String, nil?: true
34
-
35
29
  # @!attribute order
36
30
  # The decimal order position of the course within its experience. If not provided,
37
31
  # it will be set to the next sequential order. Use fractional values (e.g., 1.5)
@@ -56,8 +50,8 @@ module WhopSDK
56
50
  # @!attribute thumbnail
57
51
  # The thumbnail for the course in png, jpeg, or gif format
58
52
  #
59
- # @return [WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithID, nil]
60
- optional :thumbnail, union: -> { WhopSDK::CourseCreateParams::Thumbnail }, nil?: true
53
+ # @return [WhopSDK::Models::CourseCreateParams::Thumbnail, nil]
54
+ optional :thumbnail, -> { WhopSDK::CourseCreateParams::Thumbnail }, nil?: true
61
55
 
62
56
  # @!attribute visibility
63
57
  # The available visibilities for a course. Determines how / whether a course is
@@ -66,7 +60,7 @@ module WhopSDK
66
60
  # @return [Symbol, WhopSDK::Models::CourseVisibilities, nil]
67
61
  optional :visibility, enum: -> { WhopSDK::CourseVisibilities }, nil?: true
68
62
 
69
- # @!method initialize(experience_id:, title:, certificate_after_completion_enabled: nil, cover_image: nil, order: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, visibility: nil, request_options: {})
63
+ # @!method initialize(experience_id:, title:, certificate_after_completion_enabled: nil, order: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, visibility: nil, request_options: {})
70
64
  # Some parameter documentations has been truncated, see
71
65
  # {WhopSDK::Models::CourseCreateParams} for more details.
72
66
  #
@@ -76,70 +70,29 @@ module WhopSDK
76
70
  #
77
71
  # @param certificate_after_completion_enabled [Boolean, nil] Whether the course will award its students a PDF certificate after completing al
78
72
  #
79
- # @param cover_image [String, nil] The cover image URL of the course
80
- #
81
73
  # @param order [String, nil] The decimal order position of the course within its experience. If not provided,
82
74
  #
83
75
  # @param require_completing_lessons_in_order [Boolean, nil] Whether the course requires students to complete the previous lesson before movi
84
76
  #
85
77
  # @param tagline [String, nil] The tagline of the course
86
78
  #
87
- # @param thumbnail [WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the course in png, jpeg, or gif format
79
+ # @param thumbnail [WhopSDK::Models::CourseCreateParams::Thumbnail, nil] The thumbnail for the course in png, jpeg, or gif format
88
80
  #
89
81
  # @param visibility [Symbol, WhopSDK::Models::CourseVisibilities, nil] The available visibilities for a course. Determines how / whether a course is vi
90
82
  #
91
83
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
92
84
 
93
- # The thumbnail for the course in png, jpeg, or gif format
94
- module Thumbnail
95
- extend WhopSDK::Internal::Type::Union
96
-
97
- # Input for an attachment
98
- variant -> { WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID }
99
-
100
- # Input for an attachment
101
- variant -> { WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID }
102
-
103
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
104
- # @!attribute direct_upload_id
105
- # This ID should be used the first time you upload an attachment. It is the ID of
106
- # the direct upload that was created when uploading the file to S3 via the
107
- # mediaDirectUpload mutation.
108
- #
109
- # @return [String]
110
- required :direct_upload_id, String
111
-
112
- # @!method initialize(direct_upload_id:)
113
- # Some parameter documentations has been truncated, see
114
- # {WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID}
115
- # for more details.
116
- #
117
- # Input for an attachment
118
- #
119
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
120
- end
121
-
122
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
123
- # @!attribute id
124
- # The ID of an existing attachment object. Use this when updating a resource and
125
- # keeping a subset of the attachments. Don't use this unless you know what you're
126
- # doing.
127
- #
128
- # @return [String]
129
- required :id, String
130
-
131
- # @!method initialize(id:)
132
- # Some parameter documentations has been truncated, see
133
- # {WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithID} for more
134
- # details.
135
- #
136
- # Input for an attachment
137
- #
138
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
139
- end
140
-
141
- # @!method self.variants
142
- # @return [Array(WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithID)]
85
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
86
+ # @!attribute id
87
+ # The ID of an existing file object.
88
+ #
89
+ # @return [String]
90
+ required :id, String
91
+
92
+ # @!method initialize(id:)
93
+ # The thumbnail for the course in png, jpeg, or gif format
94
+ #
95
+ # @param id [String] The ID of an existing file object.
143
96
  end
144
97
  end
145
98
  end
@@ -46,8 +46,8 @@ module WhopSDK
46
46
  # @!attribute thumbnail
47
47
  # The thumbnail for the lesson in png, jpeg, or gif format
48
48
  #
49
- # @return [WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID, nil]
50
- optional :thumbnail, union: -> { WhopSDK::CourseLessonCreateParams::Thumbnail }, nil?: true
49
+ # @return [WhopSDK::Models::CourseLessonCreateParams::Thumbnail, nil]
50
+ optional :thumbnail, -> { WhopSDK::CourseLessonCreateParams::Thumbnail }, nil?: true
51
51
 
52
52
  # @!attribute title
53
53
  # The title of the lesson
@@ -68,62 +68,23 @@ module WhopSDK
68
68
  #
69
69
  # @param embed_type [Symbol, WhopSDK::Models::EmbedType, nil] The type of embed for a lesson
70
70
  #
71
- # @param thumbnail [WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the lesson in png, jpeg, or gif format
71
+ # @param thumbnail [WhopSDK::Models::CourseLessonCreateParams::Thumbnail, nil] The thumbnail for the lesson in png, jpeg, or gif format
72
72
  #
73
73
  # @param title [String, nil] The title of the lesson
74
74
  #
75
75
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
76
76
 
77
- # The thumbnail for the lesson in png, jpeg, or gif format
78
- module Thumbnail
79
- extend WhopSDK::Internal::Type::Union
80
-
81
- # Input for an attachment
82
- variant -> { WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID }
83
-
84
- # Input for an attachment
85
- variant -> { WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID }
86
-
87
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
88
- # @!attribute direct_upload_id
89
- # This ID should be used the first time you upload an attachment. It is the ID of
90
- # the direct upload that was created when uploading the file to S3 via the
91
- # mediaDirectUpload mutation.
92
- #
93
- # @return [String]
94
- required :direct_upload_id, String
95
-
96
- # @!method initialize(direct_upload_id:)
97
- # Some parameter documentations has been truncated, see
98
- # {WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID}
99
- # for more details.
100
- #
101
- # Input for an attachment
102
- #
103
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
104
- end
105
-
106
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
107
- # @!attribute id
108
- # The ID of an existing attachment object. Use this when updating a resource and
109
- # keeping a subset of the attachments. Don't use this unless you know what you're
110
- # doing.
111
- #
112
- # @return [String]
113
- required :id, String
114
-
115
- # @!method initialize(id:)
116
- # Some parameter documentations has been truncated, see
117
- # {WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID}
118
- # for more details.
119
- #
120
- # Input for an attachment
121
- #
122
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
123
- end
124
-
125
- # @!method self.variants
126
- # @return [Array(WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID)]
77
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
78
+ # @!attribute id
79
+ # The ID of an existing file object.
80
+ #
81
+ # @return [String]
82
+ required :id, String
83
+
84
+ # @!method initialize(id:)
85
+ # The thumbnail for the lesson in png, jpeg, or gif format
86
+ #
87
+ # @param id [String] The ID of an existing file object.
127
88
  end
128
89
  end
129
90
  end