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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/README.md +1 -1
- data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
- data/lib/whop_sdk/models/app_create_params.rb +22 -1
- data/lib/whop_sdk/models/app_list_params.rb +5 -0
- data/lib/whop_sdk/models/app_update_params.rb +14 -53
- data/lib/whop_sdk/models/card_brands.rb +16 -0
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
- data/lib/whop_sdk/models/company_create_params.rb +22 -1
- data/lib/whop_sdk/models/company_update_params.rb +28 -106
- data/lib/whop_sdk/models/course_create_params.rb +15 -62
- data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
- data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
- data/lib/whop_sdk/models/course_update_params.rb +14 -61
- data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
- data/lib/whop_sdk/models/experience_create_params.rb +22 -1
- data/lib/whop_sdk/models/experience_update_params.rb +14 -53
- data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
- data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
- data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
- data/lib/whop_sdk/models/member_list_response.rb +9 -1
- data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
- data/lib/whop_sdk/models/membership.rb +76 -2
- data/lib/whop_sdk/models/membership_list_response.rb +38 -2
- data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
- data/lib/whop_sdk/models/message_create_params.rb +13 -52
- data/lib/whop_sdk/models/message_update_params.rb +14 -53
- data/lib/whop_sdk/models/payment.rb +17 -1
- data/lib/whop_sdk/models/payment_list_response.rb +17 -1
- data/lib/whop_sdk/models/payment_method_types.rb +58 -57
- data/lib/whop_sdk/models/payment_provider.rb +1 -0
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +26 -1
- data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
- data/lib/whop_sdk/models/plan_create_params.rb +14 -53
- data/lib/whop_sdk/models/plan_update_params.rb +14 -53
- data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
- data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +2 -9
- data/lib/whop_sdk/models.rb +2 -2
- data/lib/whop_sdk/resources/app_builds.rb +1 -1
- data/lib/whop_sdk/resources/apps.rb +4 -2
- data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
- data/lib/whop_sdk/resources/companies.rb +5 -3
- data/lib/whop_sdk/resources/course_lessons.rb +4 -4
- data/lib/whop_sdk/resources/courses.rb +4 -8
- data/lib/whop_sdk/resources/disputes.rb +4 -4
- data/lib/whop_sdk/resources/experiences.rb +4 -2
- data/lib/whop_sdk/resources/forum_posts.rb +2 -2
- data/lib/whop_sdk/resources/memberships.rb +32 -0
- data/lib/whop_sdk/resources/messages.rb +2 -2
- data/lib/whop_sdk/resources/notifications.rb +4 -0
- data/lib/whop_sdk/resources/plans.rb +2 -2
- data/lib/whop_sdk/resources/withdrawals.rb +8 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +1 -1
- data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
- data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +10 -0
- data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
- data/rbi/whop_sdk/models/card_brands.rbi +17 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
- data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
- data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
- data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
- data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
- data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
- data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
- data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
- data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
- data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
- data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
- data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
- data/rbi/whop_sdk/models/membership.rbi +126 -4
- data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
- data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
- data/rbi/whop_sdk/models/message_create_params.rbi +18 -94
- data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
- data/rbi/whop_sdk/models/payment.rbi +16 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +66 -64
- data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +26 -0
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +21 -93
- data/rbi/whop_sdk/models/plan_update_params.rbi +21 -93
- data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
- data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +8 -11
- data/rbi/whop_sdk/models.rbi +2 -2
- data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
- data/rbi/whop_sdk/resources/apps.rbi +4 -7
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
- data/rbi/whop_sdk/resources/companies.rbi +5 -13
- data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
- data/rbi/whop_sdk/resources/courses.rbi +2 -20
- data/rbi/whop_sdk/resources/disputes.rbi +4 -16
- data/rbi/whop_sdk/resources/experiences.rbi +4 -7
- data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
- data/rbi/whop_sdk/resources/memberships.rbi +26 -0
- data/rbi/whop_sdk/resources/messages.rbi +2 -12
- data/rbi/whop_sdk/resources/notifications.rbi +4 -0
- data/rbi/whop_sdk/resources/plans.rbi +2 -14
- data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
- data/sig/whop_sdk/models/app_build_create_params.rbs +9 -30
- data/sig/whop_sdk/models/app_create_params.rbs +20 -1
- data/sig/whop_sdk/models/app_list_params.rbs +10 -0
- data/sig/whop_sdk/models/app_update_params.rbs +9 -30
- data/sig/whop_sdk/models/card_brands.rbs +32 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +19 -30
- data/sig/whop_sdk/models/company_create_params.rbs +15 -0
- data/sig/whop_sdk/models/company_update_params.rbs +18 -60
- data/sig/whop_sdk/models/course_create_params.rbs +9 -35
- data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
- data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
- data/sig/whop_sdk/models/course_update_params.rbs +9 -35
- data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
- data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
- data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
- data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
- data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
- data/sig/whop_sdk/models/member_list_response.rbs +5 -0
- data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
- data/sig/whop_sdk/models/membership.rbs +65 -4
- data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
- data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
- data/sig/whop_sdk/models/message_create_params.rbs +9 -30
- data/sig/whop_sdk/models/message_update_params.rbs +9 -30
- data/sig/whop_sdk/models/payment.rbs +10 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +117 -115
- data/sig/whop_sdk/models/payment_provider.rbs +2 -0
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +9 -30
- data/sig/whop_sdk/models/plan_update_params.rbs +9 -30
- data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
- data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -8
- data/sig/whop_sdk/models.rbs +2 -2
- data/sig/whop_sdk/resources/app_builds.rbs +1 -1
- data/sig/whop_sdk/resources/apps.rbs +2 -1
- data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
- data/sig/whop_sdk/resources/companies.rbs +3 -2
- data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
- data/sig/whop_sdk/resources/courses.rbs +2 -4
- data/sig/whop_sdk/resources/disputes.rbs +4 -4
- data/sig/whop_sdk/resources/experiences.rbs +2 -1
- data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
- data/sig/whop_sdk/resources/memberships.rbs +5 -0
- data/sig/whop_sdk/resources/messages.rbs +2 -2
- data/sig/whop_sdk/resources/plans.rbs +2 -2
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
- metadata +19 -5
- data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
- data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
- 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
|
|
31
|
+
# @return [Array<WhopSDK::Models::CourseLessonUpdateParams::Attachment>, nil]
|
|
32
32
|
optional :attachments,
|
|
33
|
-
-> { WhopSDK::Internal::Type::ArrayOf[
|
|
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
|
|
70
|
-
optional :main_pdf,
|
|
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
|
|
88
|
-
optional :thumbnail,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
#
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
#
|
|
323
|
-
|
|
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
|
|
367
|
-
#
|
|
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
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
#
|
|
375
|
-
|
|
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
|
|
419
|
-
#
|
|
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
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
#
|
|
427
|
-
|
|
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
|
|
471
|
-
#
|
|
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
|
|
67
|
-
optional :thumbnail,
|
|
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,
|
|
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
|
|
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
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
#
|
|
191
|
-
|
|
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
|
|
235
|
-
#
|
|
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
|