whop_sdk 0.0.2 → 0.0.4
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 +51 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +24 -0
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +30 -24
- data/lib/whop_sdk/models/app_build_create_params.rb +53 -29
- data/lib/whop_sdk/models/app_update_params.rb +53 -29
- 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 +251 -38
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +10 -7
- data/lib/whop_sdk/models/company.rb +13 -1
- data/lib/whop_sdk/models/company_create_params.rb +46 -0
- data/lib/whop_sdk/models/company_list_params.rb +62 -0
- data/lib/whop_sdk/models/company_list_response.rb +175 -0
- 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 +127 -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 +399 -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_student_list_params.rb +62 -0
- data/lib/whop_sdk/models/course_student_list_response.rb +97 -0
- data/lib/whop_sdk/models/course_student_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/course_student_retrieve_response.rb +149 -0
- data/lib/whop_sdk/models/course_update_params.rb +221 -0
- data/lib/whop_sdk/models/experience_duplicate_params.rb +22 -0
- data/lib/whop_sdk/models/experience_update_params.rb +53 -29
- data/lib/whop_sdk/models/forum_post.rb +17 -1
- data/lib/whop_sdk/models/forum_post_create_params.rb +51 -27
- data/lib/whop_sdk/models/forum_post_list_response.rb +17 -1
- data/lib/whop_sdk/models/forum_post_update_params.rb +104 -0
- data/lib/whop_sdk/models/invoice.rb +6 -2
- data/lib/whop_sdk/models/invoice_create_params.rb +48 -32
- 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 +373 -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_create_params.rb +51 -27
- data/lib/whop_sdk/models/message_update_params.rb +92 -0
- data/lib/whop_sdk/models/payment.rb +34 -22
- data/lib/whop_sdk/models/payment_list_params.rb +3 -18
- data/lib/whop_sdk/models/payment_list_response.rb +34 -22
- data/lib/whop_sdk/models/payment_method_types.rb +99 -0
- data/lib/whop_sdk/models/plan.rb +72 -1
- data/lib/whop_sdk/models/plan_create_params.rb +133 -24
- data/lib/whop_sdk/models/plan_list_response.rb +75 -1
- data/lib/whop_sdk/models/plan_update_params.rb +131 -22
- 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 +76 -23
- 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/transfer.rb +9 -1
- data/lib/whop_sdk/models/transfer_create_params.rb +9 -1
- data/lib/whop_sdk/models/transfer_list_response.rb +9 -1
- data/lib/whop_sdk/models.rb +84 -0
- data/lib/whop_sdk/resources/app_builds.rb +1 -1
- data/lib/whop_sdk/resources/apps.rb +1 -1
- data/lib/whop_sdk/resources/checkout_configurations.rb +8 -6
- data/lib/whop_sdk/resources/companies.rb +70 -0
- data/lib/whop_sdk/resources/course_chapters.rb +151 -0
- data/lib/whop_sdk/resources/course_lesson_interactions.rb +2 -2
- data/lib/whop_sdk/resources/course_lessons.rb +182 -0
- data/lib/whop_sdk/resources/course_students.rb +76 -0
- data/lib/whop_sdk/resources/courses.rb +185 -0
- data/lib/whop_sdk/resources/experiences.rb +34 -1
- data/lib/whop_sdk/resources/forum_posts.rb +34 -1
- data/lib/whop_sdk/resources/invoices.rb +11 -11
- 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 +29 -1
- data/lib/whop_sdk/resources/payments.rb +1 -1
- data/lib/whop_sdk/resources/plans.rb +25 -5
- data/lib/whop_sdk/resources/products.rb +5 -7
- data/lib/whop_sdk/resources/promo_codes.rb +161 -0
- data/lib/whop_sdk/resources/reviews.rb +68 -0
- data/lib/whop_sdk/resources/transfers.rb +3 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +61 -1
- data/rbi/whop_sdk/client.rbi +18 -0
- data/rbi/whop_sdk/models/app_build_create_params.rbi +80 -40
- data/rbi/whop_sdk/models/app_update_params.rbi +86 -37
- 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 +371 -62
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +4 -2
- data/rbi/whop_sdk/models/company.rbi +10 -0
- data/rbi/whop_sdk/models/company_create_params.rbi +67 -0
- data/rbi/whop_sdk/models/company_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/company_list_response.rbi +235 -0
- 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 +197 -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 +677 -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_student_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/course_student_list_response.rbi +142 -0
- data/rbi/whop_sdk/models/course_student_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/course_student_retrieve_response.rbi +250 -0
- data/rbi/whop_sdk/models/course_update_params.rbi +339 -0
- data/rbi/whop_sdk/models/experience_duplicate_params.rbi +40 -0
- data/rbi/whop_sdk/models/experience_update_params.rbi +84 -38
- data/rbi/whop_sdk/models/forum_post.rbi +16 -0
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +85 -32
- data/rbi/whop_sdk/models/forum_post_list_response.rbi +16 -0
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +177 -0
- data/rbi/whop_sdk/models/invoice.rbi +4 -2
- data/rbi/whop_sdk/models/invoice_create_params.rbi +58 -44
- 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 +521 -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_create_params.rbi +85 -32
- data/rbi/whop_sdk/models/message_update_params.rbi +167 -0
- data/rbi/whop_sdk/models/payment.rbi +42 -25
- data/rbi/whop_sdk/models/payment_list_params.rbi +3 -63
- data/rbi/whop_sdk/models/payment_list_response.rbi +42 -25
- data/rbi/whop_sdk/models/payment_method_types.rbi +118 -0
- data/rbi/whop_sdk/models/plan.rbi +106 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +212 -34
- data/rbi/whop_sdk/models/plan_list_response.rbi +118 -0
- data/rbi/whop_sdk/models/plan_update_params.rbi +210 -32
- 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 +136 -33
- 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/transfer.rbi +8 -0
- data/rbi/whop_sdk/models/transfer_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/transfer_list_response.rbi +8 -0
- data/rbi/whop_sdk/models.rbi +84 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +5 -1
- data/rbi/whop_sdk/resources/apps.rbi +7 -1
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +8 -7
- data/rbi/whop_sdk/resources/companies.rbi +63 -0
- data/rbi/whop_sdk/resources/course_chapters.rbi +115 -0
- data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +2 -2
- data/rbi/whop_sdk/resources/course_lessons.rbi +182 -0
- data/rbi/whop_sdk/resources/course_students.rbi +65 -0
- data/rbi/whop_sdk/resources/courses.rbi +172 -0
- data/rbi/whop_sdk/resources/experiences.rbi +32 -1
- data/rbi/whop_sdk/resources/forum_posts.rbi +40 -1
- data/rbi/whop_sdk/resources/invoices.rbi +18 -18
- 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 +36 -1
- data/rbi/whop_sdk/resources/payments.rbi +1 -3
- data/rbi/whop_sdk/resources/plans.rbi +57 -3
- data/rbi/whop_sdk/resources/products.rbi +10 -8
- data/rbi/whop_sdk/resources/promo_codes.rbi +147 -0
- data/rbi/whop_sdk/resources/reviews.rbi +56 -0
- data/rbi/whop_sdk/resources/transfers.rbi +3 -0
- data/sig/whop_sdk/client.rbs +12 -0
- data/sig/whop_sdk/models/app_build_create_params.rbs +29 -10
- data/sig/whop_sdk/models/app_update_params.rbs +29 -10
- 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 +159 -21
- data/sig/whop_sdk/models/company.rbs +5 -0
- data/sig/whop_sdk/models/company_create_params.rbs +41 -0
- data/sig/whop_sdk/models/company_list_params.rbs +51 -0
- data/sig/whop_sdk/models/company_list_response.rbs +109 -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 +87 -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 +248 -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_student_list_params.rbs +51 -0
- data/sig/whop_sdk/models/course_student_list_response.rbs +64 -0
- data/sig/whop_sdk/models/course_student_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/course_student_retrieve_response.rbs +106 -0
- data/sig/whop_sdk/models/course_update_params.rbs +156 -0
- data/sig/whop_sdk/models/experience_duplicate_params.rbs +23 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +29 -10
- data/sig/whop_sdk/models/forum_post.rbs +10 -0
- data/sig/whop_sdk/models/forum_post_create_params.rbs +29 -10
- data/sig/whop_sdk/models/forum_post_list_response.rbs +10 -0
- data/sig/whop_sdk/models/forum_post_update_params.rbs +72 -0
- data/sig/whop_sdk/models/invoice_create_params.rbs +28 -18
- 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_create_params.rbs +29 -10
- data/sig/whop_sdk/models/message_update_params.rbs +67 -0
- data/sig/whop_sdk/models/payment.rbs +17 -12
- data/sig/whop_sdk/models/payment_list_params.rbs +4 -25
- data/sig/whop_sdk/models/payment_list_response.rbs +17 -12
- data/sig/whop_sdk/models/payment_method_types.rbs +182 -0
- data/sig/whop_sdk/models/plan.rbs +47 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +81 -10
- data/sig/whop_sdk/models/plan_list_response.rbs +47 -0
- data/sig/whop_sdk/models/plan_update_params.rbs +81 -10
- 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 +46 -10
- 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/transfer.rbs +5 -0
- data/sig/whop_sdk/models/transfer_create_params.rbs +5 -0
- data/sig/whop_sdk/models/transfer_list_response.rbs +5 -0
- data/sig/whop_sdk/models.rbs +84 -0
- data/sig/whop_sdk/resources/app_builds.rbs +1 -1
- data/sig/whop_sdk/resources/apps.rbs +1 -1
- data/sig/whop_sdk/resources/checkout_configurations.rbs +2 -2
- data/sig/whop_sdk/resources/companies.rbs +18 -0
- data/sig/whop_sdk/resources/course_chapters.rbs +35 -0
- data/sig/whop_sdk/resources/course_lessons.rbs +49 -0
- data/sig/whop_sdk/resources/course_students.rbs +22 -0
- data/sig/whop_sdk/resources/courses.rbs +49 -0
- data/sig/whop_sdk/resources/experiences.rbs +7 -1
- data/sig/whop_sdk/resources/forum_posts.rbs +10 -1
- data/sig/whop_sdk/resources/invoices.rbs +5 -5
- 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 +9 -1
- data/sig/whop_sdk/resources/payments.rbs +1 -1
- data/sig/whop_sdk/resources/plans.rbs +12 -2
- data/sig/whop_sdk/resources/products.rbs +2 -3
- data/sig/whop_sdk/resources/promo_codes.rbs +45 -0
- data/sig/whop_sdk/resources/reviews.rbs +23 -0
- data/sig/whop_sdk/resources/transfers.rbs +1 -0
- metadata +213 -5
- data/lib/whop_sdk/models/invoice_create_response.rb +0 -27
- data/rbi/whop_sdk/models/invoice_create_response.rbi +0 -49
- data/sig/whop_sdk/models/invoice_create_response.rbs +0 -19
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Companies#list
|
|
6
|
+
class CompanyListResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The ID (tag) of the company.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute business_type
|
|
14
|
+
# The different business types a company can be.
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, WhopSDK::Models::BusinessTypes, nil]
|
|
17
|
+
required :business_type, enum: -> { WhopSDK::BusinessTypes }, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!attribute created_at
|
|
20
|
+
# When the company was created (signed up)
|
|
21
|
+
#
|
|
22
|
+
# @return [Time]
|
|
23
|
+
required :created_at, Time
|
|
24
|
+
|
|
25
|
+
# @!attribute description
|
|
26
|
+
# The creator pitch for the company.
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
required :description, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute industry_type
|
|
32
|
+
# The different industry types a company can be in.
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, WhopSDK::Models::IndustryTypes, nil]
|
|
35
|
+
required :industry_type, enum: -> { WhopSDK::IndustryTypes }, nil?: true
|
|
36
|
+
|
|
37
|
+
# @!attribute logo
|
|
38
|
+
# The company's logo.
|
|
39
|
+
#
|
|
40
|
+
# @return [WhopSDK::Models::CompanyListResponse::Logo, nil]
|
|
41
|
+
required :logo, -> { WhopSDK::Models::CompanyListResponse::Logo }, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!attribute member_count
|
|
44
|
+
# The number of members in the company.
|
|
45
|
+
#
|
|
46
|
+
# @return [Integer]
|
|
47
|
+
required :member_count, Integer
|
|
48
|
+
|
|
49
|
+
# @!attribute metadata
|
|
50
|
+
# A key-value store of data for the account, created/updated by the platform that
|
|
51
|
+
# made the account.
|
|
52
|
+
#
|
|
53
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
54
|
+
required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
55
|
+
|
|
56
|
+
# @!attribute owner_user
|
|
57
|
+
# The user who owns this company
|
|
58
|
+
#
|
|
59
|
+
# @return [WhopSDK::Models::CompanyListResponse::OwnerUser]
|
|
60
|
+
required :owner_user, -> { WhopSDK::Models::CompanyListResponse::OwnerUser }
|
|
61
|
+
|
|
62
|
+
# @!attribute published_reviews_count
|
|
63
|
+
# The number of reviews that have been published for the company.
|
|
64
|
+
#
|
|
65
|
+
# @return [Integer]
|
|
66
|
+
required :published_reviews_count, Integer
|
|
67
|
+
|
|
68
|
+
# @!attribute route
|
|
69
|
+
# The slug/route of the company on the Whop site.
|
|
70
|
+
#
|
|
71
|
+
# @return [String]
|
|
72
|
+
required :route, String
|
|
73
|
+
|
|
74
|
+
# @!attribute title
|
|
75
|
+
# The title of the company.
|
|
76
|
+
#
|
|
77
|
+
# @return [String]
|
|
78
|
+
required :title, String
|
|
79
|
+
|
|
80
|
+
# @!attribute updated_at
|
|
81
|
+
# The time the company was last updated.
|
|
82
|
+
#
|
|
83
|
+
# @return [Time]
|
|
84
|
+
required :updated_at, Time
|
|
85
|
+
|
|
86
|
+
# @!attribute verified
|
|
87
|
+
# If the company is Whop Verified
|
|
88
|
+
#
|
|
89
|
+
# @return [Boolean]
|
|
90
|
+
required :verified, WhopSDK::Internal::Type::Boolean
|
|
91
|
+
|
|
92
|
+
# @!method initialize(id:, business_type:, created_at:, description:, industry_type:, logo:, member_count:, metadata:, owner_user:, published_reviews_count:, route:, title:, updated_at:, verified:)
|
|
93
|
+
# Some parameter documentations has been truncated, see
|
|
94
|
+
# {WhopSDK::Models::CompanyListResponse} for more details.
|
|
95
|
+
#
|
|
96
|
+
# An object representing a (sanitized) company.
|
|
97
|
+
#
|
|
98
|
+
# @param id [String] The ID (tag) of the company.
|
|
99
|
+
#
|
|
100
|
+
# @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
|
|
101
|
+
#
|
|
102
|
+
# @param created_at [Time] When the company was created (signed up)
|
|
103
|
+
#
|
|
104
|
+
# @param description [String, nil] The creator pitch for the company.
|
|
105
|
+
#
|
|
106
|
+
# @param industry_type [Symbol, WhopSDK::Models::IndustryTypes, nil] The different industry types a company can be in.
|
|
107
|
+
#
|
|
108
|
+
# @param logo [WhopSDK::Models::CompanyListResponse::Logo, nil] The company's logo.
|
|
109
|
+
#
|
|
110
|
+
# @param member_count [Integer] The number of members in the company.
|
|
111
|
+
#
|
|
112
|
+
# @param metadata [Hash{Symbol=>Object}, nil] A key-value store of data for the account, created/updated by the platform that
|
|
113
|
+
#
|
|
114
|
+
# @param owner_user [WhopSDK::Models::CompanyListResponse::OwnerUser] The user who owns this company
|
|
115
|
+
#
|
|
116
|
+
# @param published_reviews_count [Integer] The number of reviews that have been published for the company.
|
|
117
|
+
#
|
|
118
|
+
# @param route [String] The slug/route of the company on the Whop site.
|
|
119
|
+
#
|
|
120
|
+
# @param title [String] The title of the company.
|
|
121
|
+
#
|
|
122
|
+
# @param updated_at [Time] The time the company was last updated.
|
|
123
|
+
#
|
|
124
|
+
# @param verified [Boolean] If the company is Whop Verified
|
|
125
|
+
|
|
126
|
+
# @see WhopSDK::Models::CompanyListResponse#logo
|
|
127
|
+
class Logo < WhopSDK::Internal::Type::BaseModel
|
|
128
|
+
# @!attribute url
|
|
129
|
+
# This is the URL you use to render optimized attachments on the client. This
|
|
130
|
+
# should be used for apps.
|
|
131
|
+
#
|
|
132
|
+
# @return [String, nil]
|
|
133
|
+
required :url, String, nil?: true
|
|
134
|
+
|
|
135
|
+
# @!method initialize(url:)
|
|
136
|
+
# Some parameter documentations has been truncated, see
|
|
137
|
+
# {WhopSDK::Models::CompanyListResponse::Logo} for more details.
|
|
138
|
+
#
|
|
139
|
+
# The company's logo.
|
|
140
|
+
#
|
|
141
|
+
# @param url [String, nil] This is the URL you use to render optimized attachments on the client. This shou
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# @see WhopSDK::Models::CompanyListResponse#owner_user
|
|
145
|
+
class OwnerUser < WhopSDK::Internal::Type::BaseModel
|
|
146
|
+
# @!attribute id
|
|
147
|
+
# The internal ID of the user.
|
|
148
|
+
#
|
|
149
|
+
# @return [String]
|
|
150
|
+
required :id, String
|
|
151
|
+
|
|
152
|
+
# @!attribute name
|
|
153
|
+
# The name of the user from their Whop account.
|
|
154
|
+
#
|
|
155
|
+
# @return [String, nil]
|
|
156
|
+
required :name, String, nil?: true
|
|
157
|
+
|
|
158
|
+
# @!attribute username
|
|
159
|
+
# The username of the user from their Whop account.
|
|
160
|
+
#
|
|
161
|
+
# @return [String]
|
|
162
|
+
required :username, String
|
|
163
|
+
|
|
164
|
+
# @!method initialize(id:, name:, username:)
|
|
165
|
+
# The user who owns this company
|
|
166
|
+
#
|
|
167
|
+
# @param id [String] The internal ID of the user.
|
|
168
|
+
#
|
|
169
|
+
# @param name [String, nil] The name of the user from their Whop account.
|
|
170
|
+
#
|
|
171
|
+
# @param username [String] The username of the user from their Whop account.
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Courses#create
|
|
6
|
+
class Course < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The ID of the course. Looks like cors_XXX
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute certificate_after_completion_enabled
|
|
14
|
+
# Whether the course will award its students a PDF certificate after completing
|
|
15
|
+
# all lessons
|
|
16
|
+
#
|
|
17
|
+
# @return [Boolean, nil]
|
|
18
|
+
required :certificate_after_completion_enabled, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute chapters
|
|
21
|
+
# The chapters in this course
|
|
22
|
+
#
|
|
23
|
+
# @return [Array<WhopSDK::Models::Course::Chapter>]
|
|
24
|
+
required :chapters, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Course::Chapter] }
|
|
25
|
+
|
|
26
|
+
# @!attribute created_at
|
|
27
|
+
# The timestamp of when the course was created
|
|
28
|
+
#
|
|
29
|
+
# @return [Time]
|
|
30
|
+
required :created_at, Time
|
|
31
|
+
|
|
32
|
+
# @!attribute description
|
|
33
|
+
# A short description of the course
|
|
34
|
+
#
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
required :description, String, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!attribute language
|
|
39
|
+
# The language spoken in the video content of the course, used to generate closed
|
|
40
|
+
# captions in the right language
|
|
41
|
+
#
|
|
42
|
+
# @return [Symbol, WhopSDK::Models::Languages]
|
|
43
|
+
required :language, enum: -> { WhopSDK::Languages }
|
|
44
|
+
|
|
45
|
+
# @!attribute require_completing_lessons_in_order
|
|
46
|
+
# Whether the course requires students to complete the previous lesson before
|
|
47
|
+
# moving on to the next one
|
|
48
|
+
#
|
|
49
|
+
# @return [Boolean]
|
|
50
|
+
required :require_completing_lessons_in_order, WhopSDK::Internal::Type::Boolean
|
|
51
|
+
|
|
52
|
+
# @!attribute tagline
|
|
53
|
+
# A short tagline for the course. It is displayed under the course title in the UI
|
|
54
|
+
#
|
|
55
|
+
# @return [String, nil]
|
|
56
|
+
required :tagline, String, nil?: true
|
|
57
|
+
|
|
58
|
+
# @!attribute thumbnail
|
|
59
|
+
# The thumbnail for the course
|
|
60
|
+
#
|
|
61
|
+
# @return [WhopSDK::Models::Course::Thumbnail, nil]
|
|
62
|
+
required :thumbnail, -> { WhopSDK::Course::Thumbnail }, nil?: true
|
|
63
|
+
|
|
64
|
+
# @!attribute title
|
|
65
|
+
# The title of the course
|
|
66
|
+
#
|
|
67
|
+
# @return [String, nil]
|
|
68
|
+
required :title, String, nil?: true
|
|
69
|
+
|
|
70
|
+
# @!attribute updated_at
|
|
71
|
+
# The timestamp of when the course was last updated
|
|
72
|
+
#
|
|
73
|
+
# @return [Time]
|
|
74
|
+
required :updated_at, Time
|
|
75
|
+
|
|
76
|
+
# @!method initialize(id:, certificate_after_completion_enabled:, chapters:, created_at:, description:, language:, require_completing_lessons_in_order:, tagline:, thumbnail:, title:, updated_at:)
|
|
77
|
+
# Some parameter documentations has been truncated, see {WhopSDK::Models::Course}
|
|
78
|
+
# for more details.
|
|
79
|
+
#
|
|
80
|
+
# A course from the courses app
|
|
81
|
+
#
|
|
82
|
+
# @param id [String] The ID of the course. Looks like cors_XXX
|
|
83
|
+
#
|
|
84
|
+
# @param certificate_after_completion_enabled [Boolean, nil] Whether the course will award its students a PDF certificate after completing al
|
|
85
|
+
#
|
|
86
|
+
# @param chapters [Array<WhopSDK::Models::Course::Chapter>] The chapters in this course
|
|
87
|
+
#
|
|
88
|
+
# @param created_at [Time] The timestamp of when the course was created
|
|
89
|
+
#
|
|
90
|
+
# @param description [String, nil] A short description of the course
|
|
91
|
+
#
|
|
92
|
+
# @param language [Symbol, WhopSDK::Models::Languages] The language spoken in the video content of the course, used to generate closed
|
|
93
|
+
#
|
|
94
|
+
# @param require_completing_lessons_in_order [Boolean] Whether the course requires students to complete the previous lesson before movi
|
|
95
|
+
#
|
|
96
|
+
# @param tagline [String, nil] A short tagline for the course. It is displayed under the course title in the UI
|
|
97
|
+
#
|
|
98
|
+
# @param thumbnail [WhopSDK::Models::Course::Thumbnail, nil] The thumbnail for the course
|
|
99
|
+
#
|
|
100
|
+
# @param title [String, nil] The title of the course
|
|
101
|
+
#
|
|
102
|
+
# @param updated_at [Time] The timestamp of when the course was last updated
|
|
103
|
+
|
|
104
|
+
class Chapter < WhopSDK::Internal::Type::BaseModel
|
|
105
|
+
# @!attribute id
|
|
106
|
+
# The ID of the chapter. Looks like chap_XXX
|
|
107
|
+
#
|
|
108
|
+
# @return [String]
|
|
109
|
+
required :id, String
|
|
110
|
+
|
|
111
|
+
# @!attribute lessons
|
|
112
|
+
# The lessons in this chapter
|
|
113
|
+
#
|
|
114
|
+
# @return [Array<WhopSDK::Models::Course::Chapter::Lesson>]
|
|
115
|
+
required :lessons, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Course::Chapter::Lesson] }
|
|
116
|
+
|
|
117
|
+
# @!attribute order
|
|
118
|
+
# The order of the chapter within its course
|
|
119
|
+
#
|
|
120
|
+
# @return [Integer]
|
|
121
|
+
required :order, Integer
|
|
122
|
+
|
|
123
|
+
# @!attribute title
|
|
124
|
+
# The title of the chapter
|
|
125
|
+
#
|
|
126
|
+
# @return [String]
|
|
127
|
+
required :title, String
|
|
128
|
+
|
|
129
|
+
# @!method initialize(id:, lessons:, order:, title:)
|
|
130
|
+
# A chapter from the courses app
|
|
131
|
+
#
|
|
132
|
+
# @param id [String] The ID of the chapter. Looks like chap_XXX
|
|
133
|
+
#
|
|
134
|
+
# @param lessons [Array<WhopSDK::Models::Course::Chapter::Lesson>] The lessons in this chapter
|
|
135
|
+
#
|
|
136
|
+
# @param order [Integer] The order of the chapter within its course
|
|
137
|
+
#
|
|
138
|
+
# @param title [String] The title of the chapter
|
|
139
|
+
|
|
140
|
+
class Lesson < WhopSDK::Internal::Type::BaseModel
|
|
141
|
+
# @!attribute id
|
|
142
|
+
# The ID of the lesson
|
|
143
|
+
#
|
|
144
|
+
# @return [String]
|
|
145
|
+
required :id, String
|
|
146
|
+
|
|
147
|
+
# @!attribute lesson_type
|
|
148
|
+
# The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
|
|
149
|
+
#
|
|
150
|
+
# @return [Symbol, WhopSDK::Models::LessonTypes]
|
|
151
|
+
required :lesson_type, enum: -> { WhopSDK::LessonTypes }
|
|
152
|
+
|
|
153
|
+
# @!attribute order
|
|
154
|
+
# The order of the lesson within its chapter
|
|
155
|
+
#
|
|
156
|
+
# @return [Integer]
|
|
157
|
+
required :order, Integer
|
|
158
|
+
|
|
159
|
+
# @!attribute title
|
|
160
|
+
# The title of the lesson
|
|
161
|
+
#
|
|
162
|
+
# @return [String]
|
|
163
|
+
required :title, String
|
|
164
|
+
|
|
165
|
+
# @!method initialize(id:, lesson_type:, order:, title:)
|
|
166
|
+
# A lesson from the courses app
|
|
167
|
+
#
|
|
168
|
+
# @param id [String] The ID of the lesson
|
|
169
|
+
#
|
|
170
|
+
# @param lesson_type [Symbol, WhopSDK::Models::LessonTypes] The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
|
|
171
|
+
#
|
|
172
|
+
# @param order [Integer] The order of the lesson within its chapter
|
|
173
|
+
#
|
|
174
|
+
# @param title [String] The title of the lesson
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# @see WhopSDK::Models::Course#thumbnail
|
|
179
|
+
class Thumbnail < WhopSDK::Internal::Type::BaseModel
|
|
180
|
+
# @!attribute id
|
|
181
|
+
# The ID of the attachment
|
|
182
|
+
#
|
|
183
|
+
# @return [String]
|
|
184
|
+
required :id, String
|
|
185
|
+
|
|
186
|
+
# @!attribute content_type
|
|
187
|
+
# The attachment's content type (e.g., image/jpg, video/mp4)
|
|
188
|
+
#
|
|
189
|
+
# @return [String, nil]
|
|
190
|
+
required :content_type, String, nil?: true
|
|
191
|
+
|
|
192
|
+
# @!attribute filename
|
|
193
|
+
# The name of the file
|
|
194
|
+
#
|
|
195
|
+
# @return [String, nil]
|
|
196
|
+
required :filename, String, nil?: true
|
|
197
|
+
|
|
198
|
+
# @!attribute optimized_url
|
|
199
|
+
# This is the URL you use to render optimized attachments on the client. This
|
|
200
|
+
# should be used for apps.
|
|
201
|
+
#
|
|
202
|
+
# @return [String, nil]
|
|
203
|
+
required :optimized_url, String, nil?: true
|
|
204
|
+
|
|
205
|
+
# @!attribute source_url
|
|
206
|
+
# The original URL of the attachment, such as a direct link to S3. This should
|
|
207
|
+
# never be displayed on the client and always passed to an Imgproxy transformer.
|
|
208
|
+
#
|
|
209
|
+
# @return [String, nil]
|
|
210
|
+
required :source_url, String, nil?: true
|
|
211
|
+
|
|
212
|
+
# @!method initialize(id:, content_type:, filename:, optimized_url:, source_url:)
|
|
213
|
+
# Some parameter documentations has been truncated, see
|
|
214
|
+
# {WhopSDK::Models::Course::Thumbnail} for more details.
|
|
215
|
+
#
|
|
216
|
+
# The thumbnail for the course
|
|
217
|
+
#
|
|
218
|
+
# @param id [String] The ID of the attachment
|
|
219
|
+
#
|
|
220
|
+
# @param content_type [String, nil] The attachment's content type (e.g., image/jpg, video/mp4)
|
|
221
|
+
#
|
|
222
|
+
# @param filename [String, nil] The name of the file
|
|
223
|
+
#
|
|
224
|
+
# @param optimized_url [String, nil] This is the URL you use to render optimized attachments on the client. This shou
|
|
225
|
+
#
|
|
226
|
+
# @param source_url [String, nil] The original URL of the attachment, such as a direct link to S3. This should nev
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::CourseChapters#create
|
|
6
|
+
class CourseChapter < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The ID of the chapter. Looks like chap_XXX
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute lessons
|
|
14
|
+
# The lessons in this chapter
|
|
15
|
+
#
|
|
16
|
+
# @return [Array<WhopSDK::Models::CourseChapter::Lesson>]
|
|
17
|
+
required :lessons, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::CourseChapter::Lesson] }
|
|
18
|
+
|
|
19
|
+
# @!attribute order
|
|
20
|
+
# The order of the chapter within its course
|
|
21
|
+
#
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
required :order, Integer
|
|
24
|
+
|
|
25
|
+
# @!attribute title
|
|
26
|
+
# The title of the chapter
|
|
27
|
+
#
|
|
28
|
+
# @return [String]
|
|
29
|
+
required :title, String
|
|
30
|
+
|
|
31
|
+
# @!method initialize(id:, lessons:, order:, title:)
|
|
32
|
+
# A chapter from the courses app
|
|
33
|
+
#
|
|
34
|
+
# @param id [String] The ID of the chapter. Looks like chap_XXX
|
|
35
|
+
#
|
|
36
|
+
# @param lessons [Array<WhopSDK::Models::CourseChapter::Lesson>] The lessons in this chapter
|
|
37
|
+
#
|
|
38
|
+
# @param order [Integer] The order of the chapter within its course
|
|
39
|
+
#
|
|
40
|
+
# @param title [String] The title of the chapter
|
|
41
|
+
|
|
42
|
+
class Lesson < WhopSDK::Internal::Type::BaseModel
|
|
43
|
+
# @!attribute id
|
|
44
|
+
# The ID of the lesson
|
|
45
|
+
#
|
|
46
|
+
# @return [String]
|
|
47
|
+
required :id, String
|
|
48
|
+
|
|
49
|
+
# @!attribute order
|
|
50
|
+
# The order of the lesson within its chapter
|
|
51
|
+
#
|
|
52
|
+
# @return [Integer]
|
|
53
|
+
required :order, Integer
|
|
54
|
+
|
|
55
|
+
# @!attribute title
|
|
56
|
+
# The title of the lesson
|
|
57
|
+
#
|
|
58
|
+
# @return [String]
|
|
59
|
+
required :title, String
|
|
60
|
+
|
|
61
|
+
# @!method initialize(id:, order:, title:)
|
|
62
|
+
# A lesson from the courses app
|
|
63
|
+
#
|
|
64
|
+
# @param id [String] The ID of the lesson
|
|
65
|
+
#
|
|
66
|
+
# @param order [Integer] The order of the lesson within its chapter
|
|
67
|
+
#
|
|
68
|
+
# @param title [String] The title of the lesson
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::CourseChapters#create
|
|
6
|
+
class CourseChapterCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute course_id
|
|
11
|
+
# The ID of the course to create the chapter in
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :course_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute title
|
|
17
|
+
# The title of the chapter
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :title, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!method initialize(course_id:, title: nil, request_options: {})
|
|
23
|
+
# @param course_id [String] The ID of the course to create the chapter in
|
|
24
|
+
#
|
|
25
|
+
# @param title [String, nil] The title of the chapter
|
|
26
|
+
#
|
|
27
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::CourseChapters#delete
|
|
6
|
+
class CourseChapterDeleteParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::CourseChapters#list
|
|
6
|
+
class CourseChapterListParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute course_id
|
|
11
|
+
# The ID of the course
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :course_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute after
|
|
17
|
+
# Returns the elements in the list that come after the specified cursor.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :after, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute before
|
|
23
|
+
# Returns the elements in the list that come before the specified cursor.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :before, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute first
|
|
29
|
+
# Returns the first _n_ elements from the list.
|
|
30
|
+
#
|
|
31
|
+
# @return [Integer, nil]
|
|
32
|
+
optional :first, Integer, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute last
|
|
35
|
+
# Returns the last _n_ elements from the list.
|
|
36
|
+
#
|
|
37
|
+
# @return [Integer, nil]
|
|
38
|
+
optional :last, Integer, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!method initialize(course_id:, after: nil, before: nil, first: nil, last: nil, request_options: {})
|
|
41
|
+
# @param course_id [String] The ID of the course
|
|
42
|
+
#
|
|
43
|
+
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
44
|
+
#
|
|
45
|
+
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
46
|
+
#
|
|
47
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
48
|
+
#
|
|
49
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
50
|
+
#
|
|
51
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::CourseChapters#list
|
|
6
|
+
class CourseChapterListResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The ID of the chapter. Looks like chap_XXX
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute order
|
|
14
|
+
# The order of the chapter within its course
|
|
15
|
+
#
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
required :order, Integer
|
|
18
|
+
|
|
19
|
+
# @!attribute title
|
|
20
|
+
# The title of the chapter
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :title, String
|
|
24
|
+
|
|
25
|
+
# @!method initialize(id:, order:, title:)
|
|
26
|
+
# A chapter from the courses app
|
|
27
|
+
#
|
|
28
|
+
# @param id [String] The ID of the chapter. Looks like chap_XXX
|
|
29
|
+
#
|
|
30
|
+
# @param order [Integer] The order of the chapter within its course
|
|
31
|
+
#
|
|
32
|
+
# @param title [String] The title of the chapter
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::CourseChapters#retrieve
|
|
6
|
+
class CourseChapterRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::CourseChapters#update
|
|
6
|
+
class CourseChapterUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute title
|
|
11
|
+
# The title of the chapter
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :title, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(title:, request_options: {})
|
|
17
|
+
# @param title [String] The title of the chapter
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|