whop_sdk 0.0.2 → 0.0.3
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 +29 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +20 -0
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +30 -24
- data/lib/whop_sdk/models/assessment_question_types.rb +18 -0
- data/lib/whop_sdk/models/billing_reasons.rb +20 -0
- data/lib/whop_sdk/models/card_brands.rb +30 -0
- data/lib/whop_sdk/models/checkout_configuration.rb +10 -7
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +140 -3
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +10 -7
- data/lib/whop_sdk/models/course.rb +230 -0
- data/lib/whop_sdk/models/course_chapter.rb +72 -0
- data/lib/whop_sdk/models/course_chapter_create_params.rb +30 -0
- data/lib/whop_sdk/models/course_chapter_delete_params.rb +14 -0
- data/lib/whop_sdk/models/course_chapter_delete_response.rb +8 -0
- data/lib/whop_sdk/models/course_chapter_list_params.rb +54 -0
- data/lib/whop_sdk/models/course_chapter_list_response.rb +35 -0
- data/lib/whop_sdk/models/course_chapter_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/course_chapter_update_params.rb +22 -0
- data/lib/whop_sdk/models/course_create_params.rb +82 -0
- data/lib/whop_sdk/models/course_delete_params.rb +14 -0
- data/lib/whop_sdk/models/course_delete_response.rb +8 -0
- data/lib/whop_sdk/models/course_lesson_create_params.rb +54 -0
- data/lib/whop_sdk/models/course_lesson_delete_params.rb +14 -0
- data/lib/whop_sdk/models/course_lesson_delete_response.rb +8 -0
- data/lib/whop_sdk/models/course_lesson_list_params.rb +62 -0
- data/lib/whop_sdk/models/course_lesson_list_response.rb +71 -0
- data/lib/whop_sdk/models/course_lesson_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/course_lesson_update_params.rb +278 -0
- data/lib/whop_sdk/models/course_list_params.rb +62 -0
- data/lib/whop_sdk/models/course_list_response.rb +148 -0
- data/lib/whop_sdk/models/course_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/course_update_params.rb +197 -0
- data/lib/whop_sdk/models/experience_duplicate_params.rb +22 -0
- data/lib/whop_sdk/models/forum_post.rb +17 -1
- data/lib/whop_sdk/models/forum_post_list_response.rb +17 -1
- data/lib/whop_sdk/models/forum_post_update_params.rb +80 -0
- data/lib/whop_sdk/models/invoice.rb +6 -2
- data/lib/whop_sdk/models/invoice_list_item.rb +6 -2
- data/lib/whop_sdk/models/languages.rb +36 -0
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +9 -0
- data/lib/whop_sdk/models/lesson.rb +365 -0
- data/lib/whop_sdk/models/lesson_types.rb +20 -0
- data/lib/whop_sdk/models/lesson_visibilities.rb +17 -0
- data/lib/whop_sdk/models/member_list_params.rb +9 -1
- data/lib/whop_sdk/models/membership.rb +31 -1
- data/lib/whop_sdk/models/membership_list_params.rb +16 -8
- data/lib/whop_sdk/models/membership_list_response.rb +31 -1
- data/lib/whop_sdk/models/message_update_params.rb +68 -0
- data/lib/whop_sdk/models/payment.rb +24 -21
- data/lib/whop_sdk/models/payment_list_params.rb +3 -18
- data/lib/whop_sdk/models/payment_list_response.rb +24 -21
- data/lib/whop_sdk/models/payment_method_types.rb +98 -0
- data/lib/whop_sdk/models/plan.rb +25 -1
- data/lib/whop_sdk/models/plan_create_params.rb +37 -3
- data/lib/whop_sdk/models/plan_list_response.rb +25 -1
- data/lib/whop_sdk/models/plan_update_params.rb +35 -1
- data/lib/whop_sdk/models/product.rb +11 -1
- data/lib/whop_sdk/models/product_create_params.rb +1 -45
- data/lib/whop_sdk/models/product_list_item.rb +14 -1
- data/lib/whop_sdk/models/product_update_params.rb +30 -1
- data/lib/whop_sdk/models/promo_code.rb +211 -0
- data/lib/whop_sdk/models/promo_code_create_params.rb +140 -0
- data/lib/whop_sdk/models/promo_code_delete_params.rb +14 -0
- data/lib/whop_sdk/models/promo_code_delete_response.rb +8 -0
- data/lib/whop_sdk/models/promo_code_list_params.rb +78 -0
- data/lib/whop_sdk/models/promo_code_list_response.rb +181 -0
- data/lib/whop_sdk/models/promo_code_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/promo_code_status.rb +17 -0
- data/lib/whop_sdk/models/promo_duration.rb +17 -0
- data/lib/whop_sdk/models/review_list_params.rb +70 -0
- data/lib/whop_sdk/models/review_list_response.rb +183 -0
- data/lib/whop_sdk/models/review_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/review_retrieve_response.rb +251 -0
- data/lib/whop_sdk/models/review_status.rb +17 -0
- data/lib/whop_sdk/models.rb +76 -0
- data/lib/whop_sdk/resources/checkout_configurations.rb +2 -0
- data/lib/whop_sdk/resources/course_chapters.rb +151 -0
- data/lib/whop_sdk/resources/course_lessons.rb +178 -0
- data/lib/whop_sdk/resources/courses.rb +178 -0
- data/lib/whop_sdk/resources/experiences.rb +33 -0
- data/lib/whop_sdk/resources/forum_posts.rb +33 -0
- data/lib/whop_sdk/resources/members.rb +3 -1
- data/lib/whop_sdk/resources/memberships.rb +6 -4
- data/lib/whop_sdk/resources/messages.rb +28 -0
- data/lib/whop_sdk/resources/payments.rb +1 -1
- data/lib/whop_sdk/resources/plans.rb +19 -3
- data/lib/whop_sdk/resources/products.rb +4 -6
- data/lib/whop_sdk/resources/promo_codes.rb +161 -0
- data/lib/whop_sdk/resources/reviews.rb +68 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +53 -0
- data/rbi/whop_sdk/client.rbi +15 -0
- data/rbi/whop_sdk/models/assessment_question_types.rbi +31 -0
- data/rbi/whop_sdk/models/billing_reasons.rbi +27 -0
- data/rbi/whop_sdk/models/card_brands.rbi +35 -0
- data/rbi/whop_sdk/models/checkout_configuration.rbi +4 -2
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +183 -2
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +4 -2
- data/rbi/whop_sdk/models/course.rbi +313 -0
- data/rbi/whop_sdk/models/course_chapter.rbi +101 -0
- data/rbi/whop_sdk/models/course_chapter_create_params.rbi +51 -0
- data/rbi/whop_sdk/models/course_chapter_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_chapter_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/course_chapter_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/course_chapter_list_response.rbi +47 -0
- data/rbi/whop_sdk/models/course_chapter_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/course_chapter_update_params.rbi +40 -0
- data/rbi/whop_sdk/models/course_create_params.rbi +131 -0
- data/rbi/whop_sdk/models/course_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_delete_response.rbi +7 -0
- data/rbi/whop_sdk/models/course_lesson_create_params.rbi +75 -0
- data/rbi/whop_sdk/models/course_lesson_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_lesson_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/course_lesson_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/course_lesson_list_response.rbi +91 -0
- data/rbi/whop_sdk/models/course_lesson_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_lesson_update_params.rbi +465 -0
- data/rbi/whop_sdk/models/course_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/course_list_response.rbi +198 -0
- data/rbi/whop_sdk/models/course_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_update_params.rbi +293 -0
- data/rbi/whop_sdk/models/experience_duplicate_params.rbi +40 -0
- data/rbi/whop_sdk/models/forum_post.rbi +16 -0
- data/rbi/whop_sdk/models/forum_post_list_response.rbi +16 -0
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +124 -0
- data/rbi/whop_sdk/models/invoice.rbi +4 -2
- data/rbi/whop_sdk/models/invoice_list_item.rbi +4 -2
- data/rbi/whop_sdk/models/languages.rbi +40 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +45 -0
- data/rbi/whop_sdk/models/lesson.rbi +517 -0
- data/rbi/whop_sdk/models/lesson_types.rbi +25 -0
- data/rbi/whop_sdk/models/lesson_visibilities.rbi +23 -0
- data/rbi/whop_sdk/models/member_list_params.rbi +8 -0
- data/rbi/whop_sdk/models/membership.rbi +40 -0
- data/rbi/whop_sdk/models/membership_list_params.rbi +16 -8
- data/rbi/whop_sdk/models/membership_list_response.rbi +47 -0
- data/rbi/whop_sdk/models/message_update_params.rbi +114 -0
- data/rbi/whop_sdk/models/payment.rbi +32 -25
- data/rbi/whop_sdk/models/payment_list_params.rbi +3 -63
- data/rbi/whop_sdk/models/payment_list_response.rbi +32 -25
- data/rbi/whop_sdk/models/payment_method_types.rbi +116 -0
- data/rbi/whop_sdk/models/plan.rbi +24 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +38 -2
- data/rbi/whop_sdk/models/plan_list_response.rbi +24 -0
- data/rbi/whop_sdk/models/plan_update_params.rbi +36 -0
- data/rbi/whop_sdk/models/product.rbi +12 -0
- data/rbi/whop_sdk/models/product_create_params.rbi +0 -74
- data/rbi/whop_sdk/models/product_list_item.rbi +12 -0
- data/rbi/whop_sdk/models/product_update_params.rbi +59 -0
- data/rbi/whop_sdk/models/promo_code.rbi +248 -0
- data/rbi/whop_sdk/models/promo_code_create_params.rbi +161 -0
- data/rbi/whop_sdk/models/promo_code_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/promo_code_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/promo_code_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/promo_code_list_response.rbi +222 -0
- data/rbi/whop_sdk/models/promo_code_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/promo_code_status.rbi +21 -0
- data/rbi/whop_sdk/models/promo_duration.rbi +21 -0
- data/rbi/whop_sdk/models/review_list_params.rbi +91 -0
- data/rbi/whop_sdk/models/review_list_response.rbi +243 -0
- data/rbi/whop_sdk/models/review_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/review_retrieve_response.rbi +354 -0
- data/rbi/whop_sdk/models/review_status.rbi +21 -0
- data/rbi/whop_sdk/models.rbi +76 -0
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +2 -0
- data/rbi/whop_sdk/resources/course_chapters.rbi +115 -0
- data/rbi/whop_sdk/resources/course_lessons.rbi +163 -0
- data/rbi/whop_sdk/resources/courses.rbi +152 -0
- data/rbi/whop_sdk/resources/experiences.rbi +25 -0
- data/rbi/whop_sdk/resources/forum_posts.rbi +29 -0
- data/rbi/whop_sdk/resources/members.rbi +3 -0
- data/rbi/whop_sdk/resources/memberships.rbi +6 -3
- data/rbi/whop_sdk/resources/messages.rbi +25 -0
- data/rbi/whop_sdk/resources/payments.rbi +1 -3
- data/rbi/whop_sdk/resources/plans.rbi +29 -1
- data/rbi/whop_sdk/resources/products.rbi +4 -7
- data/rbi/whop_sdk/resources/promo_codes.rbi +147 -0
- data/rbi/whop_sdk/resources/reviews.rbi +56 -0
- data/sig/whop_sdk/client.rbs +10 -0
- data/sig/whop_sdk/models/assessment_question_types.rbs +17 -0
- data/sig/whop_sdk/models/billing_reasons.rbs +24 -0
- data/sig/whop_sdk/models/card_brands.rbs +44 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +87 -0
- data/sig/whop_sdk/models/course.rbs +171 -0
- data/sig/whop_sdk/models/course_chapter.rbs +49 -0
- data/sig/whop_sdk/models/course_chapter_create_params.rbs +28 -0
- data/sig/whop_sdk/models/course_chapter_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/course_chapter_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/course_chapter_list_params.rbs +46 -0
- data/sig/whop_sdk/models/course_chapter_list_response.rbs +18 -0
- data/sig/whop_sdk/models/course_chapter_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/course_chapter_update_params.rbs +23 -0
- data/sig/whop_sdk/models/course_create_params.rbs +58 -0
- data/sig/whop_sdk/models/course_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/course_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/course_lesson_create_params.rbs +46 -0
- data/sig/whop_sdk/models/course_lesson_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/course_lesson_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/course_lesson_list_params.rbs +51 -0
- data/sig/whop_sdk/models/course_lesson_list_response.rbs +50 -0
- data/sig/whop_sdk/models/course_lesson_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/course_lesson_update_params.rbs +162 -0
- data/sig/whop_sdk/models/course_list_params.rbs +51 -0
- data/sig/whop_sdk/models/course_list_response.rbs +102 -0
- data/sig/whop_sdk/models/course_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/course_update_params.rbs +137 -0
- data/sig/whop_sdk/models/experience_duplicate_params.rbs +23 -0
- data/sig/whop_sdk/models/forum_post.rbs +10 -0
- data/sig/whop_sdk/models/forum_post_list_response.rbs +10 -0
- data/sig/whop_sdk/models/forum_post_update_params.rbs +53 -0
- data/sig/whop_sdk/models/languages.rbs +56 -0
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +20 -1
- data/sig/whop_sdk/models/lesson.rbs +248 -0
- data/sig/whop_sdk/models/lesson_types.rbs +19 -0
- data/sig/whop_sdk/models/lesson_visibilities.rbs +14 -0
- data/sig/whop_sdk/models/member_list_params.rbs +6 -1
- data/sig/whop_sdk/models/membership.rbs +17 -0
- data/sig/whop_sdk/models/membership_list_params.rbs +11 -6
- data/sig/whop_sdk/models/membership_list_response.rbs +17 -0
- data/sig/whop_sdk/models/message_update_params.rbs +48 -0
- data/sig/whop_sdk/models/payment.rbs +12 -12
- data/sig/whop_sdk/models/payment_list_params.rbs +4 -25
- data/sig/whop_sdk/models/payment_list_response.rbs +12 -12
- data/sig/whop_sdk/models/payment_method_types.rbs +180 -0
- data/sig/whop_sdk/models/plan.rbs +15 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +20 -0
- data/sig/whop_sdk/models/plan_list_response.rbs +15 -0
- data/sig/whop_sdk/models/plan_update_params.rbs +20 -0
- data/sig/whop_sdk/models/product.rbs +5 -0
- data/sig/whop_sdk/models/product_create_params.rbs +0 -22
- data/sig/whop_sdk/models/product_list_item.rbs +5 -0
- data/sig/whop_sdk/models/product_update_params.rbs +17 -0
- data/sig/whop_sdk/models/promo_code.rbs +134 -0
- data/sig/whop_sdk/models/promo_code_create_params.rbs +96 -0
- data/sig/whop_sdk/models/promo_code_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/promo_code_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/promo_code_list_params.rbs +61 -0
- data/sig/whop_sdk/models/promo_code_list_response.rbs +117 -0
- data/sig/whop_sdk/models/promo_code_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/promo_code_status.rbs +15 -0
- data/sig/whop_sdk/models/promo_duration.rbs +15 -0
- data/sig/whop_sdk/models/review_list_params.rbs +56 -0
- data/sig/whop_sdk/models/review_list_response.rbs +116 -0
- data/sig/whop_sdk/models/review_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/review_retrieve_response.rbs +152 -0
- data/sig/whop_sdk/models/review_status.rbs +15 -0
- data/sig/whop_sdk/models.rbs +76 -0
- data/sig/whop_sdk/resources/course_chapters.rbs +35 -0
- data/sig/whop_sdk/resources/course_lessons.rbs +47 -0
- data/sig/whop_sdk/resources/courses.rbs +47 -0
- data/sig/whop_sdk/resources/experiences.rbs +6 -0
- data/sig/whop_sdk/resources/forum_posts.rbs +9 -0
- data/sig/whop_sdk/resources/members.rbs +1 -0
- data/sig/whop_sdk/resources/memberships.rbs +2 -1
- data/sig/whop_sdk/resources/messages.rbs +8 -0
- data/sig/whop_sdk/resources/payments.rbs +1 -1
- data/sig/whop_sdk/resources/plans.rbs +8 -0
- data/sig/whop_sdk/resources/products.rbs +1 -2
- data/sig/whop_sdk/resources/promo_codes.rbs +45 -0
- data/sig/whop_sdk/resources/reviews.rbs +23 -0
- metadata +189 -2
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type course_lesson_update_params =
|
|
4
|
+
{
|
|
5
|
+
assessment_questions: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion]?,
|
|
6
|
+
attachments: ::Array[WhopSDK::CourseLessonUpdateParams::Attachment]?,
|
|
7
|
+
content: String?,
|
|
8
|
+
days_from_course_start_until_unlock: Integer?,
|
|
9
|
+
lesson_type: WhopSDK::Models::lesson_types?,
|
|
10
|
+
main_pdf: WhopSDK::CourseLessonUpdateParams::MainPdf?,
|
|
11
|
+
mux_asset_id: String?,
|
|
12
|
+
title: String?,
|
|
13
|
+
visibility: WhopSDK::Models::lesson_visibilities?
|
|
14
|
+
}
|
|
15
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class CourseLessonUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
18
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_accessor assessment_questions: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion]?
|
|
22
|
+
|
|
23
|
+
attr_accessor attachments: ::Array[WhopSDK::CourseLessonUpdateParams::Attachment]?
|
|
24
|
+
|
|
25
|
+
attr_accessor content: String?
|
|
26
|
+
|
|
27
|
+
attr_accessor days_from_course_start_until_unlock: Integer?
|
|
28
|
+
|
|
29
|
+
attr_accessor lesson_type: WhopSDK::Models::lesson_types?
|
|
30
|
+
|
|
31
|
+
attr_accessor main_pdf: WhopSDK::CourseLessonUpdateParams::MainPdf?
|
|
32
|
+
|
|
33
|
+
attr_accessor mux_asset_id: String?
|
|
34
|
+
|
|
35
|
+
attr_accessor title: String?
|
|
36
|
+
|
|
37
|
+
attr_accessor visibility: WhopSDK::Models::lesson_visibilities?
|
|
38
|
+
|
|
39
|
+
def initialize: (
|
|
40
|
+
?assessment_questions: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion]?,
|
|
41
|
+
?attachments: ::Array[WhopSDK::CourseLessonUpdateParams::Attachment]?,
|
|
42
|
+
?content: String?,
|
|
43
|
+
?days_from_course_start_until_unlock: Integer?,
|
|
44
|
+
?lesson_type: WhopSDK::Models::lesson_types?,
|
|
45
|
+
?main_pdf: WhopSDK::CourseLessonUpdateParams::MainPdf?,
|
|
46
|
+
?mux_asset_id: String?,
|
|
47
|
+
?title: String?,
|
|
48
|
+
?visibility: WhopSDK::Models::lesson_visibilities?,
|
|
49
|
+
?request_options: WhopSDK::request_opts
|
|
50
|
+
) -> void
|
|
51
|
+
|
|
52
|
+
def to_hash: -> {
|
|
53
|
+
assessment_questions: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion]?,
|
|
54
|
+
attachments: ::Array[WhopSDK::CourseLessonUpdateParams::Attachment]?,
|
|
55
|
+
content: String?,
|
|
56
|
+
days_from_course_start_until_unlock: Integer?,
|
|
57
|
+
lesson_type: WhopSDK::Models::lesson_types?,
|
|
58
|
+
main_pdf: WhopSDK::CourseLessonUpdateParams::MainPdf?,
|
|
59
|
+
mux_asset_id: String?,
|
|
60
|
+
title: String?,
|
|
61
|
+
visibility: WhopSDK::Models::lesson_visibilities?,
|
|
62
|
+
request_options: WhopSDK::RequestOptions
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
type assessment_question =
|
|
66
|
+
{
|
|
67
|
+
correct_answer: String,
|
|
68
|
+
question_text: String,
|
|
69
|
+
question_type: WhopSDK::Models::assessment_question_types,
|
|
70
|
+
id: String?,
|
|
71
|
+
image: WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image?,
|
|
72
|
+
options: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option]?
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
class AssessmentQuestion < WhopSDK::Internal::Type::BaseModel
|
|
76
|
+
attr_accessor correct_answer: String
|
|
77
|
+
|
|
78
|
+
attr_accessor question_text: String
|
|
79
|
+
|
|
80
|
+
attr_accessor question_type: WhopSDK::Models::assessment_question_types
|
|
81
|
+
|
|
82
|
+
attr_accessor id: String?
|
|
83
|
+
|
|
84
|
+
attr_accessor image: WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image?
|
|
85
|
+
|
|
86
|
+
attr_accessor options: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option]?
|
|
87
|
+
|
|
88
|
+
def initialize: (
|
|
89
|
+
correct_answer: String,
|
|
90
|
+
question_text: String,
|
|
91
|
+
question_type: WhopSDK::Models::assessment_question_types,
|
|
92
|
+
?id: String?,
|
|
93
|
+
?image: WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image?,
|
|
94
|
+
?options: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option]?
|
|
95
|
+
) -> void
|
|
96
|
+
|
|
97
|
+
def to_hash: -> {
|
|
98
|
+
correct_answer: String,
|
|
99
|
+
question_text: String,
|
|
100
|
+
question_type: WhopSDK::Models::assessment_question_types,
|
|
101
|
+
id: String?,
|
|
102
|
+
image: WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image?,
|
|
103
|
+
options: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option]?
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
type image = { id: String?, direct_upload_id: String? }
|
|
107
|
+
|
|
108
|
+
class Image < WhopSDK::Internal::Type::BaseModel
|
|
109
|
+
attr_accessor id: String?
|
|
110
|
+
|
|
111
|
+
attr_accessor direct_upload_id: String?
|
|
112
|
+
|
|
113
|
+
def initialize: (?id: String?, ?direct_upload_id: String?) -> void
|
|
114
|
+
|
|
115
|
+
def to_hash: -> { id: String?, direct_upload_id: String? }
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
type option = { is_correct: bool, option_text: String, id: String? }
|
|
119
|
+
|
|
120
|
+
class Option < WhopSDK::Internal::Type::BaseModel
|
|
121
|
+
attr_accessor is_correct: bool
|
|
122
|
+
|
|
123
|
+
attr_accessor option_text: String
|
|
124
|
+
|
|
125
|
+
attr_accessor id: String?
|
|
126
|
+
|
|
127
|
+
def initialize: (
|
|
128
|
+
is_correct: bool,
|
|
129
|
+
option_text: String,
|
|
130
|
+
?id: String?
|
|
131
|
+
) -> void
|
|
132
|
+
|
|
133
|
+
def to_hash: -> { is_correct: bool, option_text: String, id: String? }
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
type attachment = { id: String?, direct_upload_id: String? }
|
|
138
|
+
|
|
139
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
140
|
+
attr_accessor id: String?
|
|
141
|
+
|
|
142
|
+
attr_accessor direct_upload_id: String?
|
|
143
|
+
|
|
144
|
+
def initialize: (?id: String?, ?direct_upload_id: String?) -> void
|
|
145
|
+
|
|
146
|
+
def to_hash: -> { id: String?, direct_upload_id: String? }
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
type main_pdf = { id: String?, direct_upload_id: String? }
|
|
150
|
+
|
|
151
|
+
class MainPdf < WhopSDK::Internal::Type::BaseModel
|
|
152
|
+
attr_accessor id: String?
|
|
153
|
+
|
|
154
|
+
attr_accessor direct_upload_id: String?
|
|
155
|
+
|
|
156
|
+
def initialize: (?id: String?, ?direct_upload_id: String?) -> void
|
|
157
|
+
|
|
158
|
+
def to_hash: -> { id: String?, direct_upload_id: String? }
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type course_list_params =
|
|
4
|
+
{
|
|
5
|
+
after: String?,
|
|
6
|
+
before: String?,
|
|
7
|
+
company_id: String?,
|
|
8
|
+
experience_id: String?,
|
|
9
|
+
first: Integer?,
|
|
10
|
+
last: Integer?
|
|
11
|
+
}
|
|
12
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class CourseListParams < WhopSDK::Internal::Type::BaseModel
|
|
15
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor after: String?
|
|
19
|
+
|
|
20
|
+
attr_accessor before: String?
|
|
21
|
+
|
|
22
|
+
attr_accessor company_id: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor experience_id: String?
|
|
25
|
+
|
|
26
|
+
attr_accessor first: Integer?
|
|
27
|
+
|
|
28
|
+
attr_accessor last: Integer?
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
?after: String?,
|
|
32
|
+
?before: String?,
|
|
33
|
+
?company_id: String?,
|
|
34
|
+
?experience_id: String?,
|
|
35
|
+
?first: Integer?,
|
|
36
|
+
?last: Integer?,
|
|
37
|
+
?request_options: WhopSDK::request_opts
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
after: String?,
|
|
42
|
+
before: String?,
|
|
43
|
+
company_id: String?,
|
|
44
|
+
experience_id: String?,
|
|
45
|
+
first: Integer?,
|
|
46
|
+
last: Integer?,
|
|
47
|
+
request_options: WhopSDK::RequestOptions
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type course_list_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
certificate_after_completion_enabled: bool?,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
description: String?,
|
|
9
|
+
language: WhopSDK::Models::languages,
|
|
10
|
+
require_completing_lessons_in_order: bool,
|
|
11
|
+
tagline: String?,
|
|
12
|
+
thumbnail: WhopSDK::Models::CourseListResponse::Thumbnail?,
|
|
13
|
+
title: String?,
|
|
14
|
+
updated_at: Time
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class CourseListResponse < WhopSDK::Internal::Type::BaseModel
|
|
18
|
+
attr_accessor id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor certificate_after_completion_enabled: bool?
|
|
21
|
+
|
|
22
|
+
attr_accessor created_at: Time
|
|
23
|
+
|
|
24
|
+
attr_accessor description: String?
|
|
25
|
+
|
|
26
|
+
attr_accessor language: WhopSDK::Models::languages
|
|
27
|
+
|
|
28
|
+
attr_accessor require_completing_lessons_in_order: bool
|
|
29
|
+
|
|
30
|
+
attr_accessor tagline: String?
|
|
31
|
+
|
|
32
|
+
attr_accessor thumbnail: WhopSDK::Models::CourseListResponse::Thumbnail?
|
|
33
|
+
|
|
34
|
+
attr_accessor title: String?
|
|
35
|
+
|
|
36
|
+
attr_accessor updated_at: Time
|
|
37
|
+
|
|
38
|
+
def initialize: (
|
|
39
|
+
id: String,
|
|
40
|
+
certificate_after_completion_enabled: bool?,
|
|
41
|
+
created_at: Time,
|
|
42
|
+
description: String?,
|
|
43
|
+
language: WhopSDK::Models::languages,
|
|
44
|
+
require_completing_lessons_in_order: bool,
|
|
45
|
+
tagline: String?,
|
|
46
|
+
thumbnail: WhopSDK::Models::CourseListResponse::Thumbnail?,
|
|
47
|
+
title: String?,
|
|
48
|
+
updated_at: Time
|
|
49
|
+
) -> void
|
|
50
|
+
|
|
51
|
+
def to_hash: -> {
|
|
52
|
+
id: String,
|
|
53
|
+
certificate_after_completion_enabled: bool?,
|
|
54
|
+
created_at: Time,
|
|
55
|
+
description: String?,
|
|
56
|
+
language: WhopSDK::Models::languages,
|
|
57
|
+
require_completing_lessons_in_order: bool,
|
|
58
|
+
tagline: String?,
|
|
59
|
+
thumbnail: WhopSDK::Models::CourseListResponse::Thumbnail?,
|
|
60
|
+
title: String?,
|
|
61
|
+
updated_at: Time
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type thumbnail =
|
|
65
|
+
{
|
|
66
|
+
id: String,
|
|
67
|
+
content_type: String?,
|
|
68
|
+
filename: String?,
|
|
69
|
+
optimized_url: String?,
|
|
70
|
+
source_url: String?
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
class Thumbnail < WhopSDK::Internal::Type::BaseModel
|
|
74
|
+
attr_accessor id: String
|
|
75
|
+
|
|
76
|
+
attr_accessor content_type: String?
|
|
77
|
+
|
|
78
|
+
attr_accessor filename: String?
|
|
79
|
+
|
|
80
|
+
attr_accessor optimized_url: String?
|
|
81
|
+
|
|
82
|
+
attr_accessor source_url: String?
|
|
83
|
+
|
|
84
|
+
def initialize: (
|
|
85
|
+
id: String,
|
|
86
|
+
content_type: String?,
|
|
87
|
+
filename: String?,
|
|
88
|
+
optimized_url: String?,
|
|
89
|
+
source_url: String?
|
|
90
|
+
) -> void
|
|
91
|
+
|
|
92
|
+
def to_hash: -> {
|
|
93
|
+
id: String,
|
|
94
|
+
content_type: String?,
|
|
95
|
+
filename: String?,
|
|
96
|
+
optimized_url: String?,
|
|
97
|
+
source_url: String?
|
|
98
|
+
}
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type course_retrieve_params =
|
|
4
|
+
{ } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class CourseRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: WhopSDK::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: WhopSDK::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type course_update_params =
|
|
4
|
+
{
|
|
5
|
+
certificate_after_completion_enabled: bool?,
|
|
6
|
+
chapters: ::Array[WhopSDK::CourseUpdateParams::Chapter]?,
|
|
7
|
+
cover_image: String?,
|
|
8
|
+
description: String?,
|
|
9
|
+
language: WhopSDK::Models::languages?,
|
|
10
|
+
require_completing_lessons_in_order: bool?,
|
|
11
|
+
tagline: String?,
|
|
12
|
+
thumbnail: WhopSDK::CourseUpdateParams::Thumbnail?,
|
|
13
|
+
title: String?
|
|
14
|
+
}
|
|
15
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class CourseUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
18
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_accessor certificate_after_completion_enabled: bool?
|
|
22
|
+
|
|
23
|
+
attr_accessor chapters: ::Array[WhopSDK::CourseUpdateParams::Chapter]?
|
|
24
|
+
|
|
25
|
+
attr_accessor cover_image: String?
|
|
26
|
+
|
|
27
|
+
attr_accessor description: String?
|
|
28
|
+
|
|
29
|
+
attr_accessor language: WhopSDK::Models::languages?
|
|
30
|
+
|
|
31
|
+
attr_accessor require_completing_lessons_in_order: bool?
|
|
32
|
+
|
|
33
|
+
attr_accessor tagline: String?
|
|
34
|
+
|
|
35
|
+
attr_accessor thumbnail: WhopSDK::CourseUpdateParams::Thumbnail?
|
|
36
|
+
|
|
37
|
+
attr_accessor title: String?
|
|
38
|
+
|
|
39
|
+
def initialize: (
|
|
40
|
+
?certificate_after_completion_enabled: bool?,
|
|
41
|
+
?chapters: ::Array[WhopSDK::CourseUpdateParams::Chapter]?,
|
|
42
|
+
?cover_image: String?,
|
|
43
|
+
?description: String?,
|
|
44
|
+
?language: WhopSDK::Models::languages?,
|
|
45
|
+
?require_completing_lessons_in_order: bool?,
|
|
46
|
+
?tagline: String?,
|
|
47
|
+
?thumbnail: WhopSDK::CourseUpdateParams::Thumbnail?,
|
|
48
|
+
?title: String?,
|
|
49
|
+
?request_options: WhopSDK::request_opts
|
|
50
|
+
) -> void
|
|
51
|
+
|
|
52
|
+
def to_hash: -> {
|
|
53
|
+
certificate_after_completion_enabled: bool?,
|
|
54
|
+
chapters: ::Array[WhopSDK::CourseUpdateParams::Chapter]?,
|
|
55
|
+
cover_image: String?,
|
|
56
|
+
description: String?,
|
|
57
|
+
language: WhopSDK::Models::languages?,
|
|
58
|
+
require_completing_lessons_in_order: bool?,
|
|
59
|
+
tagline: String?,
|
|
60
|
+
thumbnail: WhopSDK::CourseUpdateParams::Thumbnail?,
|
|
61
|
+
title: String?,
|
|
62
|
+
request_options: WhopSDK::RequestOptions
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
type chapter =
|
|
66
|
+
{
|
|
67
|
+
id: String,
|
|
68
|
+
order: Integer,
|
|
69
|
+
title: String,
|
|
70
|
+
lessons: ::Array[WhopSDK::CourseUpdateParams::Chapter::Lesson]?
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
class Chapter < WhopSDK::Internal::Type::BaseModel
|
|
74
|
+
attr_accessor id: String
|
|
75
|
+
|
|
76
|
+
attr_accessor order: Integer
|
|
77
|
+
|
|
78
|
+
attr_accessor title: String
|
|
79
|
+
|
|
80
|
+
attr_accessor lessons: ::Array[WhopSDK::CourseUpdateParams::Chapter::Lesson]?
|
|
81
|
+
|
|
82
|
+
def initialize: (
|
|
83
|
+
id: String,
|
|
84
|
+
order: Integer,
|
|
85
|
+
title: String,
|
|
86
|
+
?lessons: ::Array[WhopSDK::CourseUpdateParams::Chapter::Lesson]?
|
|
87
|
+
) -> void
|
|
88
|
+
|
|
89
|
+
def to_hash: -> {
|
|
90
|
+
id: String,
|
|
91
|
+
order: Integer,
|
|
92
|
+
title: String,
|
|
93
|
+
lessons: ::Array[WhopSDK::CourseUpdateParams::Chapter::Lesson]?
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
type lesson =
|
|
97
|
+
{ id: String, chapter_id: String, order: Integer, title: String }
|
|
98
|
+
|
|
99
|
+
class Lesson < WhopSDK::Internal::Type::BaseModel
|
|
100
|
+
attr_accessor id: String
|
|
101
|
+
|
|
102
|
+
attr_accessor chapter_id: String
|
|
103
|
+
|
|
104
|
+
attr_accessor order: Integer
|
|
105
|
+
|
|
106
|
+
attr_accessor title: String
|
|
107
|
+
|
|
108
|
+
def initialize: (
|
|
109
|
+
id: String,
|
|
110
|
+
chapter_id: String,
|
|
111
|
+
order: Integer,
|
|
112
|
+
title: String
|
|
113
|
+
) -> void
|
|
114
|
+
|
|
115
|
+
def to_hash: -> {
|
|
116
|
+
id: String,
|
|
117
|
+
chapter_id: String,
|
|
118
|
+
order: Integer,
|
|
119
|
+
title: String
|
|
120
|
+
}
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
type thumbnail = { id: String?, direct_upload_id: String? }
|
|
125
|
+
|
|
126
|
+
class Thumbnail < WhopSDK::Internal::Type::BaseModel
|
|
127
|
+
attr_accessor id: String?
|
|
128
|
+
|
|
129
|
+
attr_accessor direct_upload_id: String?
|
|
130
|
+
|
|
131
|
+
def initialize: (?id: String?, ?direct_upload_id: String?) -> void
|
|
132
|
+
|
|
133
|
+
def to_hash: -> { id: String?, direct_upload_id: String? }
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type experience_duplicate_params =
|
|
4
|
+
{ name: String? } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class ExperienceDuplicateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor name: String?
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
?name: String?,
|
|
14
|
+
?request_options: WhopSDK::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
name: String?,
|
|
19
|
+
request_options: WhopSDK::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -5,12 +5,14 @@ module WhopSDK
|
|
|
5
5
|
id: String,
|
|
6
6
|
comment_count: Integer,
|
|
7
7
|
content: String?,
|
|
8
|
+
created_at: Time,
|
|
8
9
|
is_edited: bool,
|
|
9
10
|
is_pinned: bool,
|
|
10
11
|
is_poster_admin: bool,
|
|
11
12
|
like_count: Integer?,
|
|
12
13
|
parent_id: String?,
|
|
13
14
|
title: String?,
|
|
15
|
+
updated_at: Time,
|
|
14
16
|
user: WhopSDK::ForumPost::User,
|
|
15
17
|
view_count: Integer?
|
|
16
18
|
}
|
|
@@ -22,6 +24,8 @@ module WhopSDK
|
|
|
22
24
|
|
|
23
25
|
attr_accessor content: String?
|
|
24
26
|
|
|
27
|
+
attr_accessor created_at: Time
|
|
28
|
+
|
|
25
29
|
attr_accessor is_edited: bool
|
|
26
30
|
|
|
27
31
|
attr_accessor is_pinned: bool
|
|
@@ -34,6 +38,8 @@ module WhopSDK
|
|
|
34
38
|
|
|
35
39
|
attr_accessor title: String?
|
|
36
40
|
|
|
41
|
+
attr_accessor updated_at: Time
|
|
42
|
+
|
|
37
43
|
attr_accessor user: WhopSDK::ForumPost::User
|
|
38
44
|
|
|
39
45
|
attr_accessor view_count: Integer?
|
|
@@ -42,12 +48,14 @@ module WhopSDK
|
|
|
42
48
|
id: String,
|
|
43
49
|
comment_count: Integer,
|
|
44
50
|
content: String?,
|
|
51
|
+
created_at: Time,
|
|
45
52
|
is_edited: bool,
|
|
46
53
|
is_pinned: bool,
|
|
47
54
|
is_poster_admin: bool,
|
|
48
55
|
like_count: Integer?,
|
|
49
56
|
parent_id: String?,
|
|
50
57
|
title: String?,
|
|
58
|
+
updated_at: Time,
|
|
51
59
|
user: WhopSDK::ForumPost::User,
|
|
52
60
|
view_count: Integer?
|
|
53
61
|
) -> void
|
|
@@ -56,12 +64,14 @@ module WhopSDK
|
|
|
56
64
|
id: String,
|
|
57
65
|
comment_count: Integer,
|
|
58
66
|
content: String?,
|
|
67
|
+
created_at: Time,
|
|
59
68
|
is_edited: bool,
|
|
60
69
|
is_pinned: bool,
|
|
61
70
|
is_poster_admin: bool,
|
|
62
71
|
like_count: Integer?,
|
|
63
72
|
parent_id: String?,
|
|
64
73
|
title: String?,
|
|
74
|
+
updated_at: Time,
|
|
65
75
|
user: WhopSDK::ForumPost::User,
|
|
66
76
|
view_count: Integer?
|
|
67
77
|
}
|
|
@@ -5,12 +5,14 @@ module WhopSDK
|
|
|
5
5
|
id: String,
|
|
6
6
|
comment_count: Integer,
|
|
7
7
|
content: String?,
|
|
8
|
+
created_at: Time,
|
|
8
9
|
is_edited: bool,
|
|
9
10
|
is_pinned: bool,
|
|
10
11
|
is_poster_admin: bool,
|
|
11
12
|
like_count: Integer?,
|
|
12
13
|
parent_id: String?,
|
|
13
14
|
title: String?,
|
|
15
|
+
updated_at: Time,
|
|
14
16
|
user: WhopSDK::Models::ForumPostListResponse::User,
|
|
15
17
|
view_count: Integer?
|
|
16
18
|
}
|
|
@@ -22,6 +24,8 @@ module WhopSDK
|
|
|
22
24
|
|
|
23
25
|
attr_accessor content: String?
|
|
24
26
|
|
|
27
|
+
attr_accessor created_at: Time
|
|
28
|
+
|
|
25
29
|
attr_accessor is_edited: bool
|
|
26
30
|
|
|
27
31
|
attr_accessor is_pinned: bool
|
|
@@ -34,6 +38,8 @@ module WhopSDK
|
|
|
34
38
|
|
|
35
39
|
attr_accessor title: String?
|
|
36
40
|
|
|
41
|
+
attr_accessor updated_at: Time
|
|
42
|
+
|
|
37
43
|
attr_accessor user: WhopSDK::Models::ForumPostListResponse::User
|
|
38
44
|
|
|
39
45
|
attr_accessor view_count: Integer?
|
|
@@ -42,12 +48,14 @@ module WhopSDK
|
|
|
42
48
|
id: String,
|
|
43
49
|
comment_count: Integer,
|
|
44
50
|
content: String?,
|
|
51
|
+
created_at: Time,
|
|
45
52
|
is_edited: bool,
|
|
46
53
|
is_pinned: bool,
|
|
47
54
|
is_poster_admin: bool,
|
|
48
55
|
like_count: Integer?,
|
|
49
56
|
parent_id: String?,
|
|
50
57
|
title: String?,
|
|
58
|
+
updated_at: Time,
|
|
51
59
|
user: WhopSDK::Models::ForumPostListResponse::User,
|
|
52
60
|
view_count: Integer?
|
|
53
61
|
) -> void
|
|
@@ -56,12 +64,14 @@ module WhopSDK
|
|
|
56
64
|
id: String,
|
|
57
65
|
comment_count: Integer,
|
|
58
66
|
content: String?,
|
|
67
|
+
created_at: Time,
|
|
59
68
|
is_edited: bool,
|
|
60
69
|
is_pinned: bool,
|
|
61
70
|
is_poster_admin: bool,
|
|
62
71
|
like_count: Integer?,
|
|
63
72
|
parent_id: String?,
|
|
64
73
|
title: String?,
|
|
74
|
+
updated_at: Time,
|
|
65
75
|
user: WhopSDK::Models::ForumPostListResponse::User,
|
|
66
76
|
view_count: Integer?
|
|
67
77
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type forum_post_update_params =
|
|
4
|
+
{
|
|
5
|
+
attachments: ::Array[WhopSDK::ForumPostUpdateParams::Attachment]?,
|
|
6
|
+
content: String?,
|
|
7
|
+
is_pinned: bool?,
|
|
8
|
+
title: String?
|
|
9
|
+
}
|
|
10
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class ForumPostUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
13
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor attachments: ::Array[WhopSDK::ForumPostUpdateParams::Attachment]?
|
|
17
|
+
|
|
18
|
+
attr_accessor content: String?
|
|
19
|
+
|
|
20
|
+
attr_accessor is_pinned: bool?
|
|
21
|
+
|
|
22
|
+
attr_accessor title: String?
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
?attachments: ::Array[WhopSDK::ForumPostUpdateParams::Attachment]?,
|
|
26
|
+
?content: String?,
|
|
27
|
+
?is_pinned: bool?,
|
|
28
|
+
?title: String?,
|
|
29
|
+
?request_options: WhopSDK::request_opts
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
attachments: ::Array[WhopSDK::ForumPostUpdateParams::Attachment]?,
|
|
34
|
+
content: String?,
|
|
35
|
+
is_pinned: bool?,
|
|
36
|
+
title: String?,
|
|
37
|
+
request_options: WhopSDK::RequestOptions
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
type attachment = { id: String?, direct_upload_id: String? }
|
|
41
|
+
|
|
42
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
43
|
+
attr_accessor id: String?
|
|
44
|
+
|
|
45
|
+
attr_accessor direct_upload_id: String?
|
|
46
|
+
|
|
47
|
+
def initialize: (?id: String?, ?direct_upload_id: String?) -> void
|
|
48
|
+
|
|
49
|
+
def to_hash: -> { id: String?, direct_upload_id: String? }
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|