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
@@ -4,16 +4,16 @@ module WhopSDK
4
4
  {
5
5
  assessment_completion_requirement: WhopSDK::CourseLessonUpdateParams::AssessmentCompletionRequirement?,
6
6
  assessment_questions: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion]?,
7
- attachments: ::Array[WhopSDK::Models::CourseLessonUpdateParams::attachment]?,
7
+ attachments: ::Array[WhopSDK::CourseLessonUpdateParams::Attachment]?,
8
8
  content: String?,
9
9
  days_from_course_start_until_unlock: Integer?,
10
10
  embed_id: String?,
11
11
  embed_type: WhopSDK::Models::embed_type?,
12
12
  lesson_type: WhopSDK::Models::lesson_types?,
13
- main_pdf: WhopSDK::Models::CourseLessonUpdateParams::main_pdf?,
13
+ main_pdf: WhopSDK::CourseLessonUpdateParams::MainPdf?,
14
14
  max_attempts: Integer?,
15
15
  mux_asset_id: String?,
16
- thumbnail: WhopSDK::Models::CourseLessonUpdateParams::thumbnail?,
16
+ thumbnail: WhopSDK::CourseLessonUpdateParams::Thumbnail?,
17
17
  title: String?,
18
18
  visibility: WhopSDK::Models::lesson_visibilities?
19
19
  }
@@ -27,7 +27,7 @@ module WhopSDK
27
27
 
28
28
  attr_accessor assessment_questions: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion]?
29
29
 
30
- attr_accessor attachments: ::Array[WhopSDK::Models::CourseLessonUpdateParams::attachment]?
30
+ attr_accessor attachments: ::Array[WhopSDK::CourseLessonUpdateParams::Attachment]?
31
31
 
32
32
  attr_accessor content: String?
33
33
 
@@ -39,13 +39,13 @@ module WhopSDK
39
39
 
40
40
  attr_accessor lesson_type: WhopSDK::Models::lesson_types?
41
41
 
42
- attr_accessor main_pdf: WhopSDK::Models::CourseLessonUpdateParams::main_pdf?
42
+ attr_accessor main_pdf: WhopSDK::CourseLessonUpdateParams::MainPdf?
43
43
 
44
44
  attr_accessor max_attempts: Integer?
45
45
 
46
46
  attr_accessor mux_asset_id: String?
47
47
 
48
- attr_accessor thumbnail: WhopSDK::Models::CourseLessonUpdateParams::thumbnail?
48
+ attr_accessor thumbnail: WhopSDK::CourseLessonUpdateParams::Thumbnail?
49
49
 
50
50
  attr_accessor title: String?
51
51
 
@@ -54,16 +54,16 @@ module WhopSDK
54
54
  def initialize: (
55
55
  ?assessment_completion_requirement: WhopSDK::CourseLessonUpdateParams::AssessmentCompletionRequirement?,
56
56
  ?assessment_questions: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion]?,
57
- ?attachments: ::Array[WhopSDK::Models::CourseLessonUpdateParams::attachment]?,
57
+ ?attachments: ::Array[WhopSDK::CourseLessonUpdateParams::Attachment]?,
58
58
  ?content: String?,
59
59
  ?days_from_course_start_until_unlock: Integer?,
60
60
  ?embed_id: String?,
61
61
  ?embed_type: WhopSDK::Models::embed_type?,
62
62
  ?lesson_type: WhopSDK::Models::lesson_types?,
63
- ?main_pdf: WhopSDK::Models::CourseLessonUpdateParams::main_pdf?,
63
+ ?main_pdf: WhopSDK::CourseLessonUpdateParams::MainPdf?,
64
64
  ?max_attempts: Integer?,
65
65
  ?mux_asset_id: String?,
66
- ?thumbnail: WhopSDK::Models::CourseLessonUpdateParams::thumbnail?,
66
+ ?thumbnail: WhopSDK::CourseLessonUpdateParams::Thumbnail?,
67
67
  ?title: String?,
68
68
  ?visibility: WhopSDK::Models::lesson_visibilities?,
69
69
  ?request_options: WhopSDK::request_opts
@@ -72,16 +72,16 @@ module WhopSDK
72
72
  def to_hash: -> {
73
73
  assessment_completion_requirement: WhopSDK::CourseLessonUpdateParams::AssessmentCompletionRequirement?,
74
74
  assessment_questions: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion]?,
75
- attachments: ::Array[WhopSDK::Models::CourseLessonUpdateParams::attachment]?,
75
+ attachments: ::Array[WhopSDK::CourseLessonUpdateParams::Attachment]?,
76
76
  content: String?,
77
77
  days_from_course_start_until_unlock: Integer?,
78
78
  embed_id: String?,
79
79
  embed_type: WhopSDK::Models::embed_type?,
80
80
  lesson_type: WhopSDK::Models::lesson_types?,
81
- main_pdf: WhopSDK::Models::CourseLessonUpdateParams::main_pdf?,
81
+ main_pdf: WhopSDK::CourseLessonUpdateParams::MainPdf?,
82
82
  max_attempts: Integer?,
83
83
  mux_asset_id: String?,
84
- thumbnail: WhopSDK::Models::CourseLessonUpdateParams::thumbnail?,
84
+ thumbnail: WhopSDK::CourseLessonUpdateParams::Thumbnail?,
85
85
  title: String?,
86
86
  visibility: WhopSDK::Models::lesson_visibilities?,
87
87
  request_options: WhopSDK::RequestOptions
@@ -112,7 +112,7 @@ module WhopSDK
112
112
  question_text: String,
113
113
  question_type: WhopSDK::Models::assessment_question_types,
114
114
  id: String?,
115
- image: WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::image?,
115
+ image: WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image?,
116
116
  options: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option]?
117
117
  }
118
118
 
@@ -125,7 +125,7 @@ module WhopSDK
125
125
 
126
126
  attr_accessor id: String?
127
127
 
128
- attr_accessor image: WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::image?
128
+ attr_accessor image: WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image?
129
129
 
130
130
  attr_accessor options: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option]?
131
131
 
@@ -134,7 +134,7 @@ module WhopSDK
134
134
  question_text: String,
135
135
  question_type: WhopSDK::Models::assessment_question_types,
136
136
  ?id: String?,
137
- ?image: WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::image?,
137
+ ?image: WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image?,
138
138
  ?options: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option]?
139
139
  ) -> void
140
140
 
@@ -143,39 +143,18 @@ module WhopSDK
143
143
  question_text: String,
144
144
  question_type: WhopSDK::Models::assessment_question_types,
145
145
  id: String?,
146
- image: WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::image?,
146
+ image: WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image?,
147
147
  options: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option]?
148
148
  }
149
149
 
150
- type image =
151
- WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithDirectUploadID
152
- | WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithID
150
+ type image = { id: String }
153
151
 
154
- module Image
155
- extend WhopSDK::Internal::Type::Union
156
-
157
- type attachment_input_with_direct_upload_id =
158
- { direct_upload_id: String }
159
-
160
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
161
- attr_accessor direct_upload_id: String
162
-
163
- def initialize: (direct_upload_id: String) -> void
164
-
165
- def to_hash: -> { direct_upload_id: String }
166
- end
167
-
168
- type attachment_input_with_id = { id: String }
169
-
170
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
171
- attr_accessor id: String
172
-
173
- def initialize: (id: String) -> void
152
+ class Image < WhopSDK::Internal::Type::BaseModel
153
+ attr_accessor id: String
174
154
 
175
- def to_hash: -> { id: String }
176
- end
155
+ def initialize: (id: String) -> void
177
156
 
178
- def self?.variants: -> ::Array[WhopSDK::Models::CourseLessonUpdateParams::AssessmentQuestion::image]
157
+ def to_hash: -> { id: String }
179
158
  end
180
159
 
181
160
  type option = { is_correct: bool, option_text: String, id: String? }
@@ -197,97 +176,34 @@ module WhopSDK
197
176
  end
198
177
  end
199
178
 
200
- type attachment =
201
- WhopSDK::CourseLessonUpdateParams::Attachment::AttachmentInputWithDirectUploadID
202
- | WhopSDK::CourseLessonUpdateParams::Attachment::AttachmentInputWithID
203
-
204
- module Attachment
205
- extend WhopSDK::Internal::Type::Union
206
-
207
- type attachment_input_with_direct_upload_id =
208
- { direct_upload_id: String }
179
+ type attachment = { id: String }
209
180
 
210
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
211
- attr_accessor direct_upload_id: String
181
+ class Attachment < WhopSDK::Internal::Type::BaseModel
182
+ attr_accessor id: String
212
183
 
213
- def initialize: (direct_upload_id: String) -> void
184
+ def initialize: (id: String) -> void
214
185
 
215
- def to_hash: -> { direct_upload_id: String }
216
- end
217
-
218
- type attachment_input_with_id = { id: String }
219
-
220
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
221
- attr_accessor id: String
222
-
223
- def initialize: (id: String) -> void
224
-
225
- def to_hash: -> { id: String }
226
- end
227
-
228
- def self?.variants: -> ::Array[WhopSDK::Models::CourseLessonUpdateParams::attachment]
186
+ def to_hash: -> { id: String }
229
187
  end
230
188
 
231
- type main_pdf =
232
- WhopSDK::CourseLessonUpdateParams::MainPdf::AttachmentInputWithDirectUploadID
233
- | WhopSDK::CourseLessonUpdateParams::MainPdf::AttachmentInputWithID
234
-
235
- module MainPdf
236
- extend WhopSDK::Internal::Type::Union
189
+ type main_pdf = { id: String }
237
190
 
238
- type attachment_input_with_direct_upload_id =
239
- { direct_upload_id: String }
191
+ class MainPdf < WhopSDK::Internal::Type::BaseModel
192
+ attr_accessor id: String
240
193
 
241
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
242
- attr_accessor direct_upload_id: String
194
+ def initialize: (id: String) -> void
243
195
 
244
- def initialize: (direct_upload_id: String) -> void
245
-
246
- def to_hash: -> { direct_upload_id: String }
247
- end
248
-
249
- type attachment_input_with_id = { id: String }
250
-
251
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
252
- attr_accessor id: String
253
-
254
- def initialize: (id: String) -> void
255
-
256
- def to_hash: -> { id: String }
257
- end
258
-
259
- def self?.variants: -> ::Array[WhopSDK::Models::CourseLessonUpdateParams::main_pdf]
196
+ def to_hash: -> { id: String }
260
197
  end
261
198
 
262
- type thumbnail =
263
- WhopSDK::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID
264
- | WhopSDK::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithID
265
-
266
- module Thumbnail
267
- extend WhopSDK::Internal::Type::Union
199
+ type thumbnail = { id: String }
268
200
 
269
- type attachment_input_with_direct_upload_id =
270
- { direct_upload_id: String }
201
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
202
+ attr_accessor id: String
271
203
 
272
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
273
- attr_accessor direct_upload_id: String
274
-
275
- def initialize: (direct_upload_id: String) -> void
276
-
277
- def to_hash: -> { direct_upload_id: String }
278
- end
279
-
280
- type attachment_input_with_id = { id: String }
281
-
282
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
283
- attr_accessor id: String
284
-
285
- def initialize: (id: String) -> void
286
-
287
- def to_hash: -> { id: String }
288
- end
204
+ def initialize: (id: String) -> void
289
205
 
290
- def self?.variants: -> ::Array[WhopSDK::Models::CourseLessonUpdateParams::thumbnail]
206
+ def to_hash: -> { id: String }
291
207
  end
292
208
  end
293
209
  end
@@ -4,13 +4,12 @@ module WhopSDK
4
4
  {
5
5
  certificate_after_completion_enabled: bool?,
6
6
  chapters: ::Array[WhopSDK::CourseUpdateParams::Chapter]?,
7
- cover_image: String?,
8
7
  description: String?,
9
8
  language: WhopSDK::Models::languages?,
10
9
  order: String?,
11
10
  require_completing_lessons_in_order: bool?,
12
11
  tagline: String?,
13
- thumbnail: WhopSDK::Models::CourseUpdateParams::thumbnail?,
12
+ thumbnail: WhopSDK::CourseUpdateParams::Thumbnail?,
14
13
  title: String?,
15
14
  visibility: WhopSDK::Models::course_visibilities?
16
15
  }
@@ -24,8 +23,6 @@ module WhopSDK
24
23
 
25
24
  attr_accessor chapters: ::Array[WhopSDK::CourseUpdateParams::Chapter]?
26
25
 
27
- attr_accessor cover_image: String?
28
-
29
26
  attr_accessor description: String?
30
27
 
31
28
  attr_accessor language: WhopSDK::Models::languages?
@@ -36,7 +33,7 @@ module WhopSDK
36
33
 
37
34
  attr_accessor tagline: String?
38
35
 
39
- attr_accessor thumbnail: WhopSDK::Models::CourseUpdateParams::thumbnail?
36
+ attr_accessor thumbnail: WhopSDK::CourseUpdateParams::Thumbnail?
40
37
 
41
38
  attr_accessor title: String?
42
39
 
@@ -45,13 +42,12 @@ module WhopSDK
45
42
  def initialize: (
46
43
  ?certificate_after_completion_enabled: bool?,
47
44
  ?chapters: ::Array[WhopSDK::CourseUpdateParams::Chapter]?,
48
- ?cover_image: String?,
49
45
  ?description: String?,
50
46
  ?language: WhopSDK::Models::languages?,
51
47
  ?order: String?,
52
48
  ?require_completing_lessons_in_order: bool?,
53
49
  ?tagline: String?,
54
- ?thumbnail: WhopSDK::Models::CourseUpdateParams::thumbnail?,
50
+ ?thumbnail: WhopSDK::CourseUpdateParams::Thumbnail?,
55
51
  ?title: String?,
56
52
  ?visibility: WhopSDK::Models::course_visibilities?,
57
53
  ?request_options: WhopSDK::request_opts
@@ -60,13 +56,12 @@ module WhopSDK
60
56
  def to_hash: -> {
61
57
  certificate_after_completion_enabled: bool?,
62
58
  chapters: ::Array[WhopSDK::CourseUpdateParams::Chapter]?,
63
- cover_image: String?,
64
59
  description: String?,
65
60
  language: WhopSDK::Models::languages?,
66
61
  order: String?,
67
62
  require_completing_lessons_in_order: bool?,
68
63
  tagline: String?,
69
- thumbnail: WhopSDK::Models::CourseUpdateParams::thumbnail?,
64
+ thumbnail: WhopSDK::CourseUpdateParams::Thumbnail?,
70
65
  title: String?,
71
66
  visibility: WhopSDK::Models::course_visibilities?,
72
67
  request_options: WhopSDK::RequestOptions
@@ -131,35 +126,14 @@ module WhopSDK
131
126
  end
132
127
  end
133
128
 
134
- type thumbnail =
135
- WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID
136
- | WhopSDK::CourseUpdateParams::Thumbnail::AttachmentInputWithID
137
-
138
- module Thumbnail
139
- extend WhopSDK::Internal::Type::Union
140
-
141
- type attachment_input_with_direct_upload_id =
142
- { direct_upload_id: String }
143
-
144
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
145
- attr_accessor direct_upload_id: String
146
-
147
- def initialize: (direct_upload_id: String) -> void
148
-
149
- def to_hash: -> { direct_upload_id: String }
150
- end
151
-
152
- type attachment_input_with_id = { id: String }
153
-
154
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
155
- attr_accessor id: String
129
+ type thumbnail = { id: String }
156
130
 
157
- def initialize: (id: String) -> void
131
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
132
+ attr_accessor id: String
158
133
 
159
- def to_hash: -> { id: String }
160
- end
134
+ def initialize: (id: String) -> void
161
135
 
162
- def self?.variants: -> ::Array[WhopSDK::Models::CourseUpdateParams::thumbnail]
136
+ def to_hash: -> { id: String }
163
137
  end
164
138
  end
165
139
  end
@@ -4,18 +4,18 @@ module WhopSDK
4
4
  {
5
5
  access_activity_log: String?,
6
6
  billing_address: String?,
7
- cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?,
7
+ cancellation_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment?,
8
8
  cancellation_policy_disclosure: String?,
9
- customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?,
9
+ customer_communication_attachment: WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment?,
10
10
  customer_email_address: String?,
11
11
  customer_name: String?,
12
12
  notes: String?,
13
13
  product_description: String?,
14
- refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?,
14
+ refund_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment?,
15
15
  refund_policy_disclosure: String?,
16
16
  refund_refusal_explanation: String?,
17
17
  service_date: String?,
18
- uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?
18
+ uncategorized_attachment: WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment?
19
19
  }
20
20
  & WhopSDK::Internal::Type::request_parameters
21
21
 
@@ -27,11 +27,11 @@ module WhopSDK
27
27
 
28
28
  attr_accessor billing_address: String?
29
29
 
30
- attr_accessor cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?
30
+ attr_accessor cancellation_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment?
31
31
 
32
32
  attr_accessor cancellation_policy_disclosure: String?
33
33
 
34
- attr_accessor customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?
34
+ attr_accessor customer_communication_attachment: WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment?
35
35
 
36
36
  attr_accessor customer_email_address: String?
37
37
 
@@ -41,7 +41,7 @@ module WhopSDK
41
41
 
42
42
  attr_accessor product_description: String?
43
43
 
44
- attr_accessor refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?
44
+ attr_accessor refund_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment?
45
45
 
46
46
  attr_accessor refund_policy_disclosure: String?
47
47
 
@@ -49,166 +49,82 @@ module WhopSDK
49
49
 
50
50
  attr_accessor service_date: String?
51
51
 
52
- attr_accessor uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?
52
+ attr_accessor uncategorized_attachment: WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment?
53
53
 
54
54
  def initialize: (
55
55
  ?access_activity_log: String?,
56
56
  ?billing_address: String?,
57
- ?cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?,
57
+ ?cancellation_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment?,
58
58
  ?cancellation_policy_disclosure: String?,
59
- ?customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?,
59
+ ?customer_communication_attachment: WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment?,
60
60
  ?customer_email_address: String?,
61
61
  ?customer_name: String?,
62
62
  ?notes: String?,
63
63
  ?product_description: String?,
64
- ?refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?,
64
+ ?refund_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment?,
65
65
  ?refund_policy_disclosure: String?,
66
66
  ?refund_refusal_explanation: String?,
67
67
  ?service_date: String?,
68
- ?uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?,
68
+ ?uncategorized_attachment: WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment?,
69
69
  ?request_options: WhopSDK::request_opts
70
70
  ) -> void
71
71
 
72
72
  def to_hash: -> {
73
73
  access_activity_log: String?,
74
74
  billing_address: String?,
75
- cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?,
75
+ cancellation_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment?,
76
76
  cancellation_policy_disclosure: String?,
77
- customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?,
77
+ customer_communication_attachment: WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment?,
78
78
  customer_email_address: String?,
79
79
  customer_name: String?,
80
80
  notes: String?,
81
81
  product_description: String?,
82
- refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?,
82
+ refund_policy_attachment: WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment?,
83
83
  refund_policy_disclosure: String?,
84
84
  refund_refusal_explanation: String?,
85
85
  service_date: String?,
86
- uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?,
86
+ uncategorized_attachment: WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment?,
87
87
  request_options: WhopSDK::RequestOptions
88
88
  }
89
89
 
90
- type cancellation_policy_attachment =
91
- WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID
92
- | WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID
90
+ type cancellation_policy_attachment = { id: String }
93
91
 
94
- module CancellationPolicyAttachment
95
- extend WhopSDK::Internal::Type::Union
92
+ class CancellationPolicyAttachment < WhopSDK::Internal::Type::BaseModel
93
+ attr_accessor id: String
96
94
 
97
- type attachment_input_with_direct_upload_id =
98
- { direct_upload_id: String }
95
+ def initialize: (id: String) -> void
99
96
 
100
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
101
- attr_accessor direct_upload_id: String
102
-
103
- def initialize: (direct_upload_id: String) -> void
104
-
105
- def to_hash: -> { direct_upload_id: String }
106
- end
107
-
108
- type attachment_input_with_id = { id: String }
109
-
110
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
111
- attr_accessor id: String
112
-
113
- def initialize: (id: String) -> void
114
-
115
- def to_hash: -> { id: String }
116
- end
117
-
118
- def self?.variants: -> ::Array[WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment]
97
+ def to_hash: -> { id: String }
119
98
  end
120
99
 
121
- type customer_communication_attachment =
122
- WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID
123
- | WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID
124
-
125
- module CustomerCommunicationAttachment
126
- extend WhopSDK::Internal::Type::Union
127
-
128
- type attachment_input_with_direct_upload_id =
129
- { direct_upload_id: String }
130
-
131
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
132
- attr_accessor direct_upload_id: String
133
-
134
- def initialize: (direct_upload_id: String) -> void
135
-
136
- def to_hash: -> { direct_upload_id: String }
137
- end
138
-
139
- type attachment_input_with_id = { id: String }
140
-
141
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
142
- attr_accessor id: String
100
+ type customer_communication_attachment = { id: String }
143
101
 
144
- def initialize: (id: String) -> void
102
+ class CustomerCommunicationAttachment < WhopSDK::Internal::Type::BaseModel
103
+ attr_accessor id: String
145
104
 
146
- def to_hash: -> { id: String }
147
- end
105
+ def initialize: (id: String) -> void
148
106
 
149
- def self?.variants: -> ::Array[WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment]
107
+ def to_hash: -> { id: String }
150
108
  end
151
109
 
152
- type refund_policy_attachment =
153
- WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID
154
- | WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID
110
+ type refund_policy_attachment = { id: String }
155
111
 
156
- module RefundPolicyAttachment
157
- extend WhopSDK::Internal::Type::Union
112
+ class RefundPolicyAttachment < WhopSDK::Internal::Type::BaseModel
113
+ attr_accessor id: String
158
114
 
159
- type attachment_input_with_direct_upload_id =
160
- { direct_upload_id: String }
115
+ def initialize: (id: String) -> void
161
116
 
162
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
163
- attr_accessor direct_upload_id: String
164
-
165
- def initialize: (direct_upload_id: String) -> void
166
-
167
- def to_hash: -> { direct_upload_id: String }
168
- end
169
-
170
- type attachment_input_with_id = { id: String }
171
-
172
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
173
- attr_accessor id: String
174
-
175
- def initialize: (id: String) -> void
176
-
177
- def to_hash: -> { id: String }
178
- end
179
-
180
- def self?.variants: -> ::Array[WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment]
117
+ def to_hash: -> { id: String }
181
118
  end
182
119
 
183
- type uncategorized_attachment =
184
- WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID
185
- | WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID
186
-
187
- module UncategorizedAttachment
188
- extend WhopSDK::Internal::Type::Union
189
-
190
- type attachment_input_with_direct_upload_id =
191
- { direct_upload_id: String }
192
-
193
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
194
- attr_accessor direct_upload_id: String
195
-
196
- def initialize: (direct_upload_id: String) -> void
197
-
198
- def to_hash: -> { direct_upload_id: String }
199
- end
200
-
201
- type attachment_input_with_id = { id: String }
202
-
203
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
204
- attr_accessor id: String
120
+ type uncategorized_attachment = { id: String }
205
121
 
206
- def initialize: (id: String) -> void
122
+ class UncategorizedAttachment < WhopSDK::Internal::Type::BaseModel
123
+ attr_accessor id: String
207
124
 
208
- def to_hash: -> { id: String }
209
- end
125
+ def initialize: (id: String) -> void
210
126
 
211
- def self?.variants: -> ::Array[WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment]
127
+ def to_hash: -> { id: String }
212
128
  end
213
129
  end
214
130
  end
@@ -5,6 +5,7 @@ module WhopSDK
5
5
  app_id: String,
6
6
  company_id: String,
7
7
  is_public: bool?,
8
+ logo: WhopSDK::ExperienceCreateParams::Logo?,
8
9
  name: String?,
9
10
  section_id: String?
10
11
  }
@@ -20,6 +21,8 @@ module WhopSDK
20
21
 
21
22
  attr_accessor is_public: bool?
22
23
 
24
+ attr_accessor logo: WhopSDK::ExperienceCreateParams::Logo?
25
+
23
26
  attr_accessor name: String?
24
27
 
25
28
  attr_accessor section_id: String?
@@ -28,6 +31,7 @@ module WhopSDK
28
31
  app_id: String,
29
32
  company_id: String,
30
33
  ?is_public: bool?,
34
+ ?logo: WhopSDK::ExperienceCreateParams::Logo?,
31
35
  ?name: String?,
32
36
  ?section_id: String?,
33
37
  ?request_options: WhopSDK::request_opts
@@ -37,10 +41,21 @@ module WhopSDK
37
41
  app_id: String,
38
42
  company_id: String,
39
43
  is_public: bool?,
44
+ logo: WhopSDK::ExperienceCreateParams::Logo?,
40
45
  name: String?,
41
46
  section_id: String?,
42
47
  request_options: WhopSDK::RequestOptions
43
48
  }
49
+
50
+ type logo = { id: String }
51
+
52
+ class Logo < WhopSDK::Internal::Type::BaseModel
53
+ attr_accessor id: String
54
+
55
+ def initialize: (id: String) -> void
56
+
57
+ def to_hash: -> { id: String }
58
+ end
44
59
  end
45
60
  end
46
61
  end