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,197 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Courses#update
|
|
6
|
+
class CourseUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute certificate_after_completion_enabled
|
|
11
|
+
# Whether the course will award its students a PDF certificate after completing
|
|
12
|
+
# all lessons
|
|
13
|
+
#
|
|
14
|
+
# @return [Boolean, nil]
|
|
15
|
+
optional :certificate_after_completion_enabled, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!attribute chapters
|
|
18
|
+
# The chapters and lessons to update
|
|
19
|
+
#
|
|
20
|
+
# @return [Array<WhopSDK::Models::CourseUpdateParams::Chapter>, nil]
|
|
21
|
+
optional :chapters,
|
|
22
|
+
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::CourseUpdateParams::Chapter] },
|
|
23
|
+
nil?: true
|
|
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
|
+
# @!attribute description
|
|
32
|
+
# A short description of the course
|
|
33
|
+
#
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
optional :description, String, nil?: true
|
|
36
|
+
|
|
37
|
+
# @!attribute language
|
|
38
|
+
# The available languages for a course
|
|
39
|
+
#
|
|
40
|
+
# @return [Symbol, WhopSDK::Models::Languages, nil]
|
|
41
|
+
optional :language, enum: -> { WhopSDK::Languages }, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!attribute require_completing_lessons_in_order
|
|
44
|
+
# Whether the course requires students to complete the previous lesson before
|
|
45
|
+
# moving on to the next one
|
|
46
|
+
#
|
|
47
|
+
# @return [Boolean, nil]
|
|
48
|
+
optional :require_completing_lessons_in_order, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
49
|
+
|
|
50
|
+
# @!attribute tagline
|
|
51
|
+
# A short tagline for the course
|
|
52
|
+
#
|
|
53
|
+
# @return [String, nil]
|
|
54
|
+
optional :tagline, String, nil?: true
|
|
55
|
+
|
|
56
|
+
# @!attribute thumbnail
|
|
57
|
+
# The thumbnail for the course in png, jpeg, or gif format
|
|
58
|
+
#
|
|
59
|
+
# @return [WhopSDK::Models::CourseUpdateParams::Thumbnail, nil]
|
|
60
|
+
optional :thumbnail, -> { WhopSDK::CourseUpdateParams::Thumbnail }, nil?: true
|
|
61
|
+
|
|
62
|
+
# @!attribute title
|
|
63
|
+
# The title of the course
|
|
64
|
+
#
|
|
65
|
+
# @return [String, nil]
|
|
66
|
+
optional :title, String, nil?: true
|
|
67
|
+
|
|
68
|
+
# @!method initialize(certificate_after_completion_enabled: nil, chapters: nil, cover_image: nil, description: nil, language: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, title: nil, request_options: {})
|
|
69
|
+
# Some parameter documentations has been truncated, see
|
|
70
|
+
# {WhopSDK::Models::CourseUpdateParams} for more details.
|
|
71
|
+
#
|
|
72
|
+
# @param certificate_after_completion_enabled [Boolean, nil] Whether the course will award its students a PDF certificate after completing al
|
|
73
|
+
#
|
|
74
|
+
# @param chapters [Array<WhopSDK::Models::CourseUpdateParams::Chapter>, nil] The chapters and lessons to update
|
|
75
|
+
#
|
|
76
|
+
# @param cover_image [String, nil] The cover image URL of the course
|
|
77
|
+
#
|
|
78
|
+
# @param description [String, nil] A short description of the course
|
|
79
|
+
#
|
|
80
|
+
# @param language [Symbol, WhopSDK::Models::Languages, nil] The available languages for a course
|
|
81
|
+
#
|
|
82
|
+
# @param require_completing_lessons_in_order [Boolean, nil] Whether the course requires students to complete the previous lesson before movi
|
|
83
|
+
#
|
|
84
|
+
# @param tagline [String, nil] A short tagline for the course
|
|
85
|
+
#
|
|
86
|
+
# @param thumbnail [WhopSDK::Models::CourseUpdateParams::Thumbnail, nil] The thumbnail for the course in png, jpeg, or gif format
|
|
87
|
+
#
|
|
88
|
+
# @param title [String, nil] The title of the course
|
|
89
|
+
#
|
|
90
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
91
|
+
|
|
92
|
+
class Chapter < WhopSDK::Internal::Type::BaseModel
|
|
93
|
+
# @!attribute id
|
|
94
|
+
# The ID of the chapter to update
|
|
95
|
+
#
|
|
96
|
+
# @return [String]
|
|
97
|
+
required :id, String
|
|
98
|
+
|
|
99
|
+
# @!attribute order
|
|
100
|
+
# The order of the chapter within its course
|
|
101
|
+
#
|
|
102
|
+
# @return [Integer]
|
|
103
|
+
required :order, Integer
|
|
104
|
+
|
|
105
|
+
# @!attribute title
|
|
106
|
+
# The title of the chapter
|
|
107
|
+
#
|
|
108
|
+
# @return [String]
|
|
109
|
+
required :title, String
|
|
110
|
+
|
|
111
|
+
# @!attribute lessons
|
|
112
|
+
# The lessons to update within this chapter
|
|
113
|
+
#
|
|
114
|
+
# @return [Array<WhopSDK::Models::CourseUpdateParams::Chapter::Lesson>, nil]
|
|
115
|
+
optional :lessons,
|
|
116
|
+
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::CourseUpdateParams::Chapter::Lesson] },
|
|
117
|
+
nil?: true
|
|
118
|
+
|
|
119
|
+
# @!method initialize(id:, order:, title:, lessons: nil)
|
|
120
|
+
# Input for updating a chapter while updating a course
|
|
121
|
+
#
|
|
122
|
+
# @param id [String] The ID of the chapter to update
|
|
123
|
+
#
|
|
124
|
+
# @param order [Integer] The order of the chapter within its course
|
|
125
|
+
#
|
|
126
|
+
# @param title [String] The title of the chapter
|
|
127
|
+
#
|
|
128
|
+
# @param lessons [Array<WhopSDK::Models::CourseUpdateParams::Chapter::Lesson>, nil] The lessons to update within this chapter
|
|
129
|
+
|
|
130
|
+
class Lesson < WhopSDK::Internal::Type::BaseModel
|
|
131
|
+
# @!attribute id
|
|
132
|
+
# The ID of the lesson to update
|
|
133
|
+
#
|
|
134
|
+
# @return [String]
|
|
135
|
+
required :id, String
|
|
136
|
+
|
|
137
|
+
# @!attribute chapter_id
|
|
138
|
+
# The ID of the chapter this lesson belongs to (for moving between chapters)
|
|
139
|
+
#
|
|
140
|
+
# @return [String]
|
|
141
|
+
required :chapter_id, String
|
|
142
|
+
|
|
143
|
+
# @!attribute order
|
|
144
|
+
# The order of the lesson within its chapter
|
|
145
|
+
#
|
|
146
|
+
# @return [Integer]
|
|
147
|
+
required :order, Integer
|
|
148
|
+
|
|
149
|
+
# @!attribute title
|
|
150
|
+
# The title of the lesson
|
|
151
|
+
#
|
|
152
|
+
# @return [String]
|
|
153
|
+
required :title, String
|
|
154
|
+
|
|
155
|
+
# @!method initialize(id:, chapter_id:, order:, title:)
|
|
156
|
+
# Input for updating a lesson while updating a course
|
|
157
|
+
#
|
|
158
|
+
# @param id [String] The ID of the lesson to update
|
|
159
|
+
#
|
|
160
|
+
# @param chapter_id [String] The ID of the chapter this lesson belongs to (for moving between chapters)
|
|
161
|
+
#
|
|
162
|
+
# @param order [Integer] The order of the lesson within its chapter
|
|
163
|
+
#
|
|
164
|
+
# @param title [String] The title of the lesson
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
class Thumbnail < WhopSDK::Internal::Type::BaseModel
|
|
169
|
+
# @!attribute id
|
|
170
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
171
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
172
|
+
# doing.
|
|
173
|
+
#
|
|
174
|
+
# @return [String, nil]
|
|
175
|
+
optional :id, String, nil?: true
|
|
176
|
+
|
|
177
|
+
# @!attribute direct_upload_id
|
|
178
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
179
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
180
|
+
# mediaDirectUpload mutation.
|
|
181
|
+
#
|
|
182
|
+
# @return [String, nil]
|
|
183
|
+
optional :direct_upload_id, String, nil?: true
|
|
184
|
+
|
|
185
|
+
# @!method initialize(id: nil, direct_upload_id: nil)
|
|
186
|
+
# Some parameter documentations has been truncated, see
|
|
187
|
+
# {WhopSDK::Models::CourseUpdateParams::Thumbnail} for more details.
|
|
188
|
+
#
|
|
189
|
+
# The thumbnail for the course in png, jpeg, or gif format
|
|
190
|
+
#
|
|
191
|
+
# @param id [String, nil] The ID of an existing attachment object. Use this when updating a resource and k
|
|
192
|
+
#
|
|
193
|
+
# @param direct_upload_id [String, nil] This ID should be used the first time you upload an attachment. It is the ID of
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Experiences#duplicate
|
|
6
|
+
class ExperienceDuplicateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute name
|
|
11
|
+
# The name of the new experience
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :name, String, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!method initialize(name: nil, request_options: {})
|
|
17
|
+
# @param name [String, nil] The name of the new experience
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -21,6 +21,12 @@ module WhopSDK
|
|
|
21
21
|
# @return [String, nil]
|
|
22
22
|
required :content, String, nil?: true
|
|
23
23
|
|
|
24
|
+
# @!attribute created_at
|
|
25
|
+
# The timestamp when the post was created
|
|
26
|
+
#
|
|
27
|
+
# @return [Time]
|
|
28
|
+
required :created_at, Time
|
|
29
|
+
|
|
24
30
|
# @!attribute is_edited
|
|
25
31
|
# Whether the forum post has been edited
|
|
26
32
|
#
|
|
@@ -57,6 +63,12 @@ module WhopSDK
|
|
|
57
63
|
# @return [String, nil]
|
|
58
64
|
required :title, String, nil?: true
|
|
59
65
|
|
|
66
|
+
# @!attribute updated_at
|
|
67
|
+
# The timestamp when the post was last updated
|
|
68
|
+
#
|
|
69
|
+
# @return [Time]
|
|
70
|
+
required :updated_at, Time
|
|
71
|
+
|
|
60
72
|
# @!attribute user
|
|
61
73
|
# The user who created this forum post
|
|
62
74
|
#
|
|
@@ -69,7 +81,7 @@ module WhopSDK
|
|
|
69
81
|
# @return [Integer, nil]
|
|
70
82
|
required :view_count, Integer, nil?: true
|
|
71
83
|
|
|
72
|
-
# @!method initialize(id:, comment_count:, content:, is_edited:, is_pinned:, is_poster_admin:, like_count:, parent_id:, title:, user:, view_count:)
|
|
84
|
+
# @!method initialize(id:, comment_count:, content:, created_at:, is_edited:, is_pinned:, is_poster_admin:, like_count:, parent_id:, title:, updated_at:, user:, view_count:)
|
|
73
85
|
# Represents a post in forum
|
|
74
86
|
#
|
|
75
87
|
# @param id [String] The unique identifier for the entity
|
|
@@ -78,6 +90,8 @@ module WhopSDK
|
|
|
78
90
|
#
|
|
79
91
|
# @param content [String, nil] The content of the forum post in Markdown format
|
|
80
92
|
#
|
|
93
|
+
# @param created_at [Time] The timestamp when the post was created
|
|
94
|
+
#
|
|
81
95
|
# @param is_edited [Boolean] Whether the forum post has been edited
|
|
82
96
|
#
|
|
83
97
|
# @param is_pinned [Boolean] Whether this forum post is pinned
|
|
@@ -90,6 +104,8 @@ module WhopSDK
|
|
|
90
104
|
#
|
|
91
105
|
# @param title [String, nil] The title of the forum post
|
|
92
106
|
#
|
|
107
|
+
# @param updated_at [Time] The timestamp when the post was last updated
|
|
108
|
+
#
|
|
93
109
|
# @param user [WhopSDK::Models::ForumPost::User] The user who created this forum post
|
|
94
110
|
#
|
|
95
111
|
# @param view_count [Integer, nil] The number of times this message has been viewed
|
|
@@ -22,6 +22,12 @@ module WhopSDK
|
|
|
22
22
|
# @return [String, nil]
|
|
23
23
|
required :content, String, nil?: true
|
|
24
24
|
|
|
25
|
+
# @!attribute created_at
|
|
26
|
+
# The timestamp when the post was created
|
|
27
|
+
#
|
|
28
|
+
# @return [Time]
|
|
29
|
+
required :created_at, Time
|
|
30
|
+
|
|
25
31
|
# @!attribute is_edited
|
|
26
32
|
# Whether the forum post has been edited
|
|
27
33
|
#
|
|
@@ -58,6 +64,12 @@ module WhopSDK
|
|
|
58
64
|
# @return [String, nil]
|
|
59
65
|
required :title, String, nil?: true
|
|
60
66
|
|
|
67
|
+
# @!attribute updated_at
|
|
68
|
+
# The timestamp when the post was last updated
|
|
69
|
+
#
|
|
70
|
+
# @return [Time]
|
|
71
|
+
required :updated_at, Time
|
|
72
|
+
|
|
61
73
|
# @!attribute user
|
|
62
74
|
# The user who created this forum post
|
|
63
75
|
#
|
|
@@ -70,7 +82,7 @@ module WhopSDK
|
|
|
70
82
|
# @return [Integer, nil]
|
|
71
83
|
required :view_count, Integer, nil?: true
|
|
72
84
|
|
|
73
|
-
# @!method initialize(id:, comment_count:, content:, is_edited:, is_pinned:, is_poster_admin:, like_count:, parent_id:, title:, user:, view_count:)
|
|
85
|
+
# @!method initialize(id:, comment_count:, content:, created_at:, is_edited:, is_pinned:, is_poster_admin:, like_count:, parent_id:, title:, updated_at:, user:, view_count:)
|
|
74
86
|
# Represents a post in forum
|
|
75
87
|
#
|
|
76
88
|
# @param id [String] The unique identifier for the entity
|
|
@@ -79,6 +91,8 @@ module WhopSDK
|
|
|
79
91
|
#
|
|
80
92
|
# @param content [String, nil] The content of the forum post in Markdown format
|
|
81
93
|
#
|
|
94
|
+
# @param created_at [Time] The timestamp when the post was created
|
|
95
|
+
#
|
|
82
96
|
# @param is_edited [Boolean] Whether the forum post has been edited
|
|
83
97
|
#
|
|
84
98
|
# @param is_pinned [Boolean] Whether this forum post is pinned
|
|
@@ -91,6 +105,8 @@ module WhopSDK
|
|
|
91
105
|
#
|
|
92
106
|
# @param title [String, nil] The title of the forum post
|
|
93
107
|
#
|
|
108
|
+
# @param updated_at [Time] The timestamp when the post was last updated
|
|
109
|
+
#
|
|
94
110
|
# @param user [WhopSDK::Models::ForumPostListResponse::User] The user who created this forum post
|
|
95
111
|
#
|
|
96
112
|
# @param view_count [Integer, nil] The number of times this message has been viewed
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::ForumPosts#update
|
|
6
|
+
class ForumPostUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute attachments
|
|
11
|
+
# The attachments for this post
|
|
12
|
+
#
|
|
13
|
+
# @return [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment>, nil]
|
|
14
|
+
optional :attachments,
|
|
15
|
+
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::ForumPostUpdateParams::Attachment] },
|
|
16
|
+
nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute content
|
|
19
|
+
# This is the main body of the post in Markdown format. Hidden if paywalled and
|
|
20
|
+
# user hasn't purchased access to it.
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
optional :content, String, nil?: true
|
|
24
|
+
|
|
25
|
+
# @!attribute is_pinned
|
|
26
|
+
# Whether the post is pinned. You can only pin a top level posts (not comments).
|
|
27
|
+
#
|
|
28
|
+
# @return [Boolean, nil]
|
|
29
|
+
optional :is_pinned, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute title
|
|
32
|
+
# The title of the post. Only visible if paywalled.
|
|
33
|
+
#
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
optional :title, String, nil?: true
|
|
36
|
+
|
|
37
|
+
# @!method initialize(attachments: nil, content: nil, is_pinned: nil, title: nil, request_options: {})
|
|
38
|
+
# Some parameter documentations has been truncated, see
|
|
39
|
+
# {WhopSDK::Models::ForumPostUpdateParams} for more details.
|
|
40
|
+
#
|
|
41
|
+
# @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment>, nil] The attachments for this post
|
|
42
|
+
#
|
|
43
|
+
# @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
|
|
44
|
+
#
|
|
45
|
+
# @param is_pinned [Boolean, nil] Whether the post is pinned. You can only pin a top level posts (not comments).
|
|
46
|
+
#
|
|
47
|
+
# @param title [String, nil] The title of the post. Only visible if paywalled.
|
|
48
|
+
#
|
|
49
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
50
|
+
|
|
51
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
52
|
+
# @!attribute id
|
|
53
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
54
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
55
|
+
# doing.
|
|
56
|
+
#
|
|
57
|
+
# @return [String, nil]
|
|
58
|
+
optional :id, String, nil?: true
|
|
59
|
+
|
|
60
|
+
# @!attribute direct_upload_id
|
|
61
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
62
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
63
|
+
# mediaDirectUpload mutation.
|
|
64
|
+
#
|
|
65
|
+
# @return [String, nil]
|
|
66
|
+
optional :direct_upload_id, String, nil?: true
|
|
67
|
+
|
|
68
|
+
# @!method initialize(id: nil, direct_upload_id: nil)
|
|
69
|
+
# Some parameter documentations has been truncated, see
|
|
70
|
+
# {WhopSDK::Models::ForumPostUpdateParams::Attachment} for more details.
|
|
71
|
+
#
|
|
72
|
+
# Input for an attachment
|
|
73
|
+
#
|
|
74
|
+
# @param id [String, nil] The ID of an existing attachment object. Use this when updating a resource and k
|
|
75
|
+
#
|
|
76
|
+
# @param direct_upload_id [String, nil] This ID should be used the first time you upload an attachment. It is the ID of
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -34,7 +34,8 @@ module WhopSDK
|
|
|
34
34
|
required :email_address, String, nil?: true
|
|
35
35
|
|
|
36
36
|
# @!attribute fetch_invoice_token
|
|
37
|
-
#
|
|
37
|
+
# A signed token that allows fetching the invoice data publically without being
|
|
38
|
+
# authenticated.
|
|
38
39
|
#
|
|
39
40
|
# @return [String]
|
|
40
41
|
required :fetch_invoice_token, String
|
|
@@ -58,6 +59,9 @@ module WhopSDK
|
|
|
58
59
|
required :user, -> { WhopSDK::Invoice::User }, nil?: true
|
|
59
60
|
|
|
60
61
|
# @!method initialize(id:, created_at:, current_plan:, due_date:, email_address:, fetch_invoice_token:, number:, status:, user:)
|
|
62
|
+
# Some parameter documentations has been truncated, see {WhopSDK::Models::Invoice}
|
|
63
|
+
# for more details.
|
|
64
|
+
#
|
|
61
65
|
# A statement that defines an amount due by a customer.
|
|
62
66
|
#
|
|
63
67
|
# @param id [String] The ID of the invoice.
|
|
@@ -70,7 +74,7 @@ module WhopSDK
|
|
|
70
74
|
#
|
|
71
75
|
# @param email_address [String, nil] The email address that the invoice was created for.
|
|
72
76
|
#
|
|
73
|
-
# @param fetch_invoice_token [String]
|
|
77
|
+
# @param fetch_invoice_token [String] A signed token that allows fetching the invoice data publically without being au
|
|
74
78
|
#
|
|
75
79
|
# @param number [String] The number of the invoice.
|
|
76
80
|
#
|
|
@@ -34,7 +34,8 @@ module WhopSDK
|
|
|
34
34
|
required :email_address, String, nil?: true
|
|
35
35
|
|
|
36
36
|
# @!attribute fetch_invoice_token
|
|
37
|
-
#
|
|
37
|
+
# A signed token that allows fetching the invoice data publically without being
|
|
38
|
+
# authenticated.
|
|
38
39
|
#
|
|
39
40
|
# @return [String]
|
|
40
41
|
required :fetch_invoice_token, String
|
|
@@ -58,6 +59,9 @@ module WhopSDK
|
|
|
58
59
|
required :user, -> { WhopSDK::InvoiceListItem::User }, nil?: true
|
|
59
60
|
|
|
60
61
|
# @!method initialize(id:, created_at:, current_plan:, due_date:, email_address:, fetch_invoice_token:, number:, status:, user:)
|
|
62
|
+
# Some parameter documentations has been truncated, see
|
|
63
|
+
# {WhopSDK::Models::InvoiceListItem} for more details.
|
|
64
|
+
#
|
|
61
65
|
# A statement that defines an amount due by a customer.
|
|
62
66
|
#
|
|
63
67
|
# @param id [String] The ID of the invoice.
|
|
@@ -70,7 +74,7 @@ module WhopSDK
|
|
|
70
74
|
#
|
|
71
75
|
# @param email_address [String, nil] The email address that the invoice was created for.
|
|
72
76
|
#
|
|
73
|
-
# @param fetch_invoice_token [String]
|
|
77
|
+
# @param fetch_invoice_token [String] A signed token that allows fetching the invoice data publically without being au
|
|
74
78
|
#
|
|
75
79
|
# @param number [String] The number of the invoice.
|
|
76
80
|
#
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The available languages for a course
|
|
6
|
+
module Languages
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
EN = :en
|
|
10
|
+
ES = :es
|
|
11
|
+
IT = :it
|
|
12
|
+
PT = :pt
|
|
13
|
+
DE = :de
|
|
14
|
+
FR = :fr
|
|
15
|
+
PL = :pl
|
|
16
|
+
RU = :ru
|
|
17
|
+
NL = :nl
|
|
18
|
+
CA = :ca
|
|
19
|
+
TR = :tr
|
|
20
|
+
SV = :sv
|
|
21
|
+
UK = :uk
|
|
22
|
+
NO = :no
|
|
23
|
+
FI = :fi
|
|
24
|
+
SK = :sk
|
|
25
|
+
EL = :el
|
|
26
|
+
CS = :cs
|
|
27
|
+
HR = :hr
|
|
28
|
+
DA = :da
|
|
29
|
+
RO = :ro
|
|
30
|
+
BG = :bg
|
|
31
|
+
|
|
32
|
+
# @!method self.values
|
|
33
|
+
# @return [Array<Symbol>]
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -111,8 +111,17 @@ module WhopSDK
|
|
|
111
111
|
module LedgerAccountAuditStatus
|
|
112
112
|
extend WhopSDK::Internal::Type::Enum
|
|
113
113
|
|
|
114
|
+
PENDING = :pending
|
|
115
|
+
APPROVED = :approved
|
|
114
116
|
RESERVES_IMPOSED = :reserves_imposed
|
|
117
|
+
SUSPENDED = :suspended
|
|
118
|
+
IGNORED = :ignored
|
|
119
|
+
REJECTED = :rejected
|
|
115
120
|
REQUESTED_MORE_INFORMATION = :requested_more_information
|
|
121
|
+
INFORMATION_SUBMITTED = :information_submitted
|
|
122
|
+
REQUESTED_TOS_VIOLATION_CORRECTION = :requested_tos_violation_correction
|
|
123
|
+
CLAWBACK_ATTEMPTED = :clawback_attempted
|
|
124
|
+
AWAITING_SALES_REVIEW = :awaiting_sales_review
|
|
116
125
|
|
|
117
126
|
# @!method self.values
|
|
118
127
|
# @return [Array<Symbol>]
|