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,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Resources
|
|
5
|
+
class CourseStudents
|
|
6
|
+
# Retrieves a course student by interaction ID
|
|
7
|
+
#
|
|
8
|
+
# Required permissions:
|
|
9
|
+
#
|
|
10
|
+
# - `courses:read`
|
|
11
|
+
# - `course_analytics:read`
|
|
12
|
+
#
|
|
13
|
+
# @overload retrieve(id, request_options: {})
|
|
14
|
+
#
|
|
15
|
+
# @param id [String]
|
|
16
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
17
|
+
#
|
|
18
|
+
# @return [WhopSDK::Models::CourseStudentRetrieveResponse]
|
|
19
|
+
#
|
|
20
|
+
# @see WhopSDK::Models::CourseStudentRetrieveParams
|
|
21
|
+
def retrieve(id, params = {})
|
|
22
|
+
@client.request(
|
|
23
|
+
method: :get,
|
|
24
|
+
path: ["course_students/%1$s", id],
|
|
25
|
+
model: WhopSDK::Models::CourseStudentRetrieveResponse,
|
|
26
|
+
options: params[:request_options]
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Lists students for a course
|
|
31
|
+
#
|
|
32
|
+
# Required permissions:
|
|
33
|
+
#
|
|
34
|
+
# - `courses:read`
|
|
35
|
+
# - `course_analytics:read`
|
|
36
|
+
#
|
|
37
|
+
# @overload list(course_id:, after: nil, before: nil, first: nil, keyword: nil, last: nil, request_options: {})
|
|
38
|
+
#
|
|
39
|
+
# @param course_id [String] The ID of the course
|
|
40
|
+
#
|
|
41
|
+
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
42
|
+
#
|
|
43
|
+
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
44
|
+
#
|
|
45
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
46
|
+
#
|
|
47
|
+
# @param keyword [String, nil] Filter students by name - returns students whose names match the keyword
|
|
48
|
+
#
|
|
49
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
50
|
+
#
|
|
51
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
52
|
+
#
|
|
53
|
+
# @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::CourseStudentListResponse>]
|
|
54
|
+
#
|
|
55
|
+
# @see WhopSDK::Models::CourseStudentListParams
|
|
56
|
+
def list(params)
|
|
57
|
+
parsed, options = WhopSDK::CourseStudentListParams.dump_request(params)
|
|
58
|
+
@client.request(
|
|
59
|
+
method: :get,
|
|
60
|
+
path: "course_students",
|
|
61
|
+
query: parsed,
|
|
62
|
+
page: WhopSDK::Internal::CursorPage,
|
|
63
|
+
model: WhopSDK::Models::CourseStudentListResponse,
|
|
64
|
+
options: options
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# @api private
|
|
69
|
+
#
|
|
70
|
+
# @param client [WhopSDK::Client]
|
|
71
|
+
def initialize(client:)
|
|
72
|
+
@client = client
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Resources
|
|
5
|
+
class Courses
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {WhopSDK::Models::CourseCreateParams} for more details.
|
|
8
|
+
#
|
|
9
|
+
# Creates a new course module in an experience
|
|
10
|
+
#
|
|
11
|
+
# Required permissions:
|
|
12
|
+
#
|
|
13
|
+
# - `courses:update`
|
|
14
|
+
#
|
|
15
|
+
# @overload create(experience_id:, title:, certificate_after_completion_enabled: nil, cover_image: nil, require_completing_lessons_in_order: nil, tagline: nil, thumbnail: nil, request_options: {})
|
|
16
|
+
#
|
|
17
|
+
# @param experience_id [String] The ID of the experience to create the course in
|
|
18
|
+
#
|
|
19
|
+
# @param title [String] The title of the course
|
|
20
|
+
#
|
|
21
|
+
# @param certificate_after_completion_enabled [Boolean, nil] Whether the course will award its students a PDF certificate after completing al
|
|
22
|
+
#
|
|
23
|
+
# @param cover_image [String, nil] The cover image URL of the course
|
|
24
|
+
#
|
|
25
|
+
# @param require_completing_lessons_in_order [Boolean, nil] Whether the course requires students to complete the previous lesson before movi
|
|
26
|
+
#
|
|
27
|
+
# @param tagline [String, nil] The tagline of the course
|
|
28
|
+
#
|
|
29
|
+
# @param thumbnail [WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseCreateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the course in png, jpeg, or gif format
|
|
30
|
+
#
|
|
31
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
32
|
+
#
|
|
33
|
+
# @return [WhopSDK::Models::Course]
|
|
34
|
+
#
|
|
35
|
+
# @see WhopSDK::Models::CourseCreateParams
|
|
36
|
+
def create(params)
|
|
37
|
+
parsed, options = WhopSDK::CourseCreateParams.dump_request(params)
|
|
38
|
+
@client.request(
|
|
39
|
+
method: :post,
|
|
40
|
+
path: "courses",
|
|
41
|
+
body: parsed,
|
|
42
|
+
model: WhopSDK::Course,
|
|
43
|
+
options: options
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Retrieves a course by ID
|
|
48
|
+
#
|
|
49
|
+
# Required permissions:
|
|
50
|
+
#
|
|
51
|
+
# - `courses:read`
|
|
52
|
+
#
|
|
53
|
+
# @overload retrieve(id, request_options: {})
|
|
54
|
+
#
|
|
55
|
+
# @param id [String]
|
|
56
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
57
|
+
#
|
|
58
|
+
# @return [WhopSDK::Models::Course]
|
|
59
|
+
#
|
|
60
|
+
# @see WhopSDK::Models::CourseRetrieveParams
|
|
61
|
+
def retrieve(id, params = {})
|
|
62
|
+
@client.request(
|
|
63
|
+
method: :get,
|
|
64
|
+
path: ["courses/%1$s", id],
|
|
65
|
+
model: WhopSDK::Course,
|
|
66
|
+
options: params[:request_options]
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Some parameter documentations has been truncated, see
|
|
71
|
+
# {WhopSDK::Models::CourseUpdateParams} for more details.
|
|
72
|
+
#
|
|
73
|
+
# Updates a course
|
|
74
|
+
#
|
|
75
|
+
# Required permissions:
|
|
76
|
+
#
|
|
77
|
+
# - `courses:update`
|
|
78
|
+
#
|
|
79
|
+
# @overload update(id, 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: {})
|
|
80
|
+
#
|
|
81
|
+
# @param id [String]
|
|
82
|
+
#
|
|
83
|
+
# @param certificate_after_completion_enabled [Boolean, nil] Whether the course will award its students a PDF certificate after completing al
|
|
84
|
+
#
|
|
85
|
+
# @param chapters [Array<WhopSDK::Models::CourseUpdateParams::Chapter>, nil] The chapters and lessons to update
|
|
86
|
+
#
|
|
87
|
+
# @param cover_image [String, nil] The cover image URL of the course
|
|
88
|
+
#
|
|
89
|
+
# @param description [String, nil] A short description of the course
|
|
90
|
+
#
|
|
91
|
+
# @param language [Symbol, WhopSDK::Models::Languages, nil] The available languages for a course
|
|
92
|
+
#
|
|
93
|
+
# @param require_completing_lessons_in_order [Boolean, nil] Whether the course requires students to complete the previous lesson before movi
|
|
94
|
+
#
|
|
95
|
+
# @param tagline [String, nil] A short tagline for the course
|
|
96
|
+
#
|
|
97
|
+
# @param thumbnail [WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID, WhopSDK::Models::CourseUpdateParams::Thumbnail::AttachmentInputWithID, nil] The thumbnail for the course in png, jpeg, or gif format
|
|
98
|
+
#
|
|
99
|
+
# @param title [String, nil] The title of the course
|
|
100
|
+
#
|
|
101
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
102
|
+
#
|
|
103
|
+
# @return [WhopSDK::Models::Course]
|
|
104
|
+
#
|
|
105
|
+
# @see WhopSDK::Models::CourseUpdateParams
|
|
106
|
+
def update(id, params = {})
|
|
107
|
+
parsed, options = WhopSDK::CourseUpdateParams.dump_request(params)
|
|
108
|
+
@client.request(
|
|
109
|
+
method: :patch,
|
|
110
|
+
path: ["courses/%1$s", id],
|
|
111
|
+
body: parsed,
|
|
112
|
+
model: WhopSDK::Course,
|
|
113
|
+
options: options
|
|
114
|
+
)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Lists courses for an experience or company
|
|
118
|
+
#
|
|
119
|
+
# Required permissions:
|
|
120
|
+
#
|
|
121
|
+
# - `courses:read`
|
|
122
|
+
#
|
|
123
|
+
# @overload list(after: nil, before: nil, company_id: nil, experience_id: nil, first: nil, last: nil, request_options: {})
|
|
124
|
+
#
|
|
125
|
+
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
126
|
+
#
|
|
127
|
+
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
128
|
+
#
|
|
129
|
+
# @param company_id [String, nil] The ID of the company
|
|
130
|
+
#
|
|
131
|
+
# @param experience_id [String, nil] The ID of the experience
|
|
132
|
+
#
|
|
133
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
134
|
+
#
|
|
135
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
136
|
+
#
|
|
137
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
138
|
+
#
|
|
139
|
+
# @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::CourseListResponse>]
|
|
140
|
+
#
|
|
141
|
+
# @see WhopSDK::Models::CourseListParams
|
|
142
|
+
def list(params = {})
|
|
143
|
+
parsed, options = WhopSDK::CourseListParams.dump_request(params)
|
|
144
|
+
@client.request(
|
|
145
|
+
method: :get,
|
|
146
|
+
path: "courses",
|
|
147
|
+
query: parsed,
|
|
148
|
+
page: WhopSDK::Internal::CursorPage,
|
|
149
|
+
model: WhopSDK::Models::CourseListResponse,
|
|
150
|
+
options: options
|
|
151
|
+
)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Deletes a course
|
|
155
|
+
#
|
|
156
|
+
# Required permissions:
|
|
157
|
+
#
|
|
158
|
+
# - `courses:update`
|
|
159
|
+
#
|
|
160
|
+
# @overload delete(id, request_options: {})
|
|
161
|
+
#
|
|
162
|
+
# @param id [String]
|
|
163
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
164
|
+
#
|
|
165
|
+
# @return [Boolean]
|
|
166
|
+
#
|
|
167
|
+
# @see WhopSDK::Models::CourseDeleteParams
|
|
168
|
+
def delete(id, params = {})
|
|
169
|
+
@client.request(
|
|
170
|
+
method: :delete,
|
|
171
|
+
path: ["courses/%1$s", id],
|
|
172
|
+
model: WhopSDK::Internal::Type::Boolean,
|
|
173
|
+
options: params[:request_options]
|
|
174
|
+
)
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# @api private
|
|
178
|
+
#
|
|
179
|
+
# @param client [WhopSDK::Client]
|
|
180
|
+
def initialize(client:)
|
|
181
|
+
@client = client
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
end
|
|
@@ -62,7 +62,7 @@ module WhopSDK
|
|
|
62
62
|
#
|
|
63
63
|
# @param access_level [Symbol, WhopSDK::Models::ExperienceUpdateParams::AccessLevel, nil] The different access levels for experiences (PUBLIC IS NEVER USED ANYMORE).
|
|
64
64
|
#
|
|
65
|
-
# @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo, nil] The logo for the experience
|
|
65
|
+
# @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the experience
|
|
66
66
|
#
|
|
67
67
|
# @param name [String, nil] The name of the experience.
|
|
68
68
|
#
|
|
@@ -204,6 +204,39 @@ module WhopSDK
|
|
|
204
204
|
)
|
|
205
205
|
end
|
|
206
206
|
|
|
207
|
+
# Duplicates an existing experience. The name will be copied, unless provided. The
|
|
208
|
+
# new experience will be attached to the same products as the original experience.
|
|
209
|
+
# If duplicating a Forum or Chat experience, the new experience will have the same
|
|
210
|
+
# settings as the original experience, e.g. who can post, who can comment, etc. No
|
|
211
|
+
# content, e.g. posts, messages, lessons from within the original experience will
|
|
212
|
+
# be copied.
|
|
213
|
+
#
|
|
214
|
+
# Required permissions:
|
|
215
|
+
#
|
|
216
|
+
# - `experience:create`
|
|
217
|
+
#
|
|
218
|
+
# @overload duplicate(id, name: nil, request_options: {})
|
|
219
|
+
#
|
|
220
|
+
# @param id [String]
|
|
221
|
+
#
|
|
222
|
+
# @param name [String, nil] The name of the new experience
|
|
223
|
+
#
|
|
224
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
225
|
+
#
|
|
226
|
+
# @return [WhopSDK::Models::Experience]
|
|
227
|
+
#
|
|
228
|
+
# @see WhopSDK::Models::ExperienceDuplicateParams
|
|
229
|
+
def duplicate(id, params = {})
|
|
230
|
+
parsed, options = WhopSDK::ExperienceDuplicateParams.dump_request(params)
|
|
231
|
+
@client.request(
|
|
232
|
+
method: :post,
|
|
233
|
+
path: ["experiences/%1$s/duplicate", id],
|
|
234
|
+
body: parsed,
|
|
235
|
+
model: WhopSDK::Experience,
|
|
236
|
+
options: options
|
|
237
|
+
)
|
|
238
|
+
end
|
|
239
|
+
|
|
207
240
|
# @api private
|
|
208
241
|
#
|
|
209
242
|
# @param client [WhopSDK::Client]
|
|
@@ -16,7 +16,7 @@ module WhopSDK
|
|
|
16
16
|
#
|
|
17
17
|
# @param experience_id [String] The experience to create this post in
|
|
18
18
|
#
|
|
19
|
-
# @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment>, nil] The attachments for this post
|
|
19
|
+
# @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
|
|
20
20
|
#
|
|
21
21
|
# @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
|
|
22
22
|
#
|
|
@@ -73,6 +73,39 @@ module WhopSDK
|
|
|
73
73
|
)
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
+
# Some parameter documentations has been truncated, see
|
|
77
|
+
# {WhopSDK::Models::ForumPostUpdateParams} for more details.
|
|
78
|
+
#
|
|
79
|
+
# Update an existing forum post
|
|
80
|
+
#
|
|
81
|
+
# @overload update(id, attachments: nil, content: nil, is_pinned: nil, title: nil, request_options: {})
|
|
82
|
+
#
|
|
83
|
+
# @param id [String]
|
|
84
|
+
#
|
|
85
|
+
# @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
|
|
86
|
+
#
|
|
87
|
+
# @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
|
|
88
|
+
#
|
|
89
|
+
# @param is_pinned [Boolean, nil] Whether the post is pinned. You can only pin a top level posts (not comments).
|
|
90
|
+
#
|
|
91
|
+
# @param title [String, nil] The title of the post. Only visible if paywalled.
|
|
92
|
+
#
|
|
93
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
94
|
+
#
|
|
95
|
+
# @return [WhopSDK::Models::ForumPost]
|
|
96
|
+
#
|
|
97
|
+
# @see WhopSDK::Models::ForumPostUpdateParams
|
|
98
|
+
def update(id, params = {})
|
|
99
|
+
parsed, options = WhopSDK::ForumPostUpdateParams.dump_request(params)
|
|
100
|
+
@client.request(
|
|
101
|
+
method: :patch,
|
|
102
|
+
path: ["forum_posts/%1$s", id],
|
|
103
|
+
body: parsed,
|
|
104
|
+
model: WhopSDK::ForumPost,
|
|
105
|
+
options: options
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
|
|
76
109
|
# Lists forum posts
|
|
77
110
|
#
|
|
78
111
|
# Required permissions:
|
|
@@ -13,7 +13,7 @@ module WhopSDK
|
|
|
13
13
|
# - `invoice:create`
|
|
14
14
|
# - `plan:basic:read`
|
|
15
15
|
#
|
|
16
|
-
# @overload create(collection_method:, company_id:, due_date:, plan:,
|
|
16
|
+
# @overload create(collection_method:, company_id:, due_date:, member_id:, plan:, product:, email_address:, product_id:, charge_buyer_fee: nil, customer_name: nil, payment_token_id: nil, request_options: {})
|
|
17
17
|
#
|
|
18
18
|
# @param collection_method [Symbol, WhopSDK::Models::CollectionMethod] The method of collection for this invoice. If using charge_automatically, you mu
|
|
19
19
|
#
|
|
@@ -21,25 +21,25 @@ module WhopSDK
|
|
|
21
21
|
#
|
|
22
22
|
# @param due_date [Time] The date the invoice is due, if applicable.
|
|
23
23
|
#
|
|
24
|
+
# @param member_id [String] The member ID to create this invoice for. Include this if you want to create an
|
|
25
|
+
#
|
|
24
26
|
# @param plan [WhopSDK::Models::InvoiceCreateParams::Plan] The properties of the plan to create for this invoice.
|
|
25
27
|
#
|
|
26
|
-
# @param
|
|
28
|
+
# @param product [WhopSDK::Models::InvoiceCreateParams::Product] The properties of the product to create for this invoice. Include this if you wa
|
|
27
29
|
#
|
|
28
|
-
# @param
|
|
30
|
+
# @param email_address [String] The email address to create this invoice for. This is required if you want to cr
|
|
29
31
|
#
|
|
30
|
-
# @param
|
|
32
|
+
# @param product_id [String] The product ID to create this invoice for. Include this if you want to create an
|
|
31
33
|
#
|
|
32
|
-
# @param
|
|
33
|
-
#
|
|
34
|
-
# @param payment_token_id [String, nil] The payment token ID to use for this invoice. If using charge_automatically, you
|
|
34
|
+
# @param charge_buyer_fee [Boolean, nil] Whether or not to charge the customer a buyer fee.
|
|
35
35
|
#
|
|
36
|
-
# @param
|
|
36
|
+
# @param customer_name [String, nil] The name of the customer to create this invoice for. This is required if you wan
|
|
37
37
|
#
|
|
38
|
-
# @param
|
|
38
|
+
# @param payment_token_id [String, nil] The payment token ID to use for this invoice. If using charge_automatically, you
|
|
39
39
|
#
|
|
40
40
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
41
41
|
#
|
|
42
|
-
# @return [WhopSDK::Models::
|
|
42
|
+
# @return [WhopSDK::Models::Invoice]
|
|
43
43
|
#
|
|
44
44
|
# @see WhopSDK::Models::InvoiceCreateParams
|
|
45
45
|
def create(params)
|
|
@@ -48,7 +48,7 @@ module WhopSDK
|
|
|
48
48
|
method: :post,
|
|
49
49
|
path: "invoices",
|
|
50
50
|
body: parsed,
|
|
51
|
-
model: WhopSDK::
|
|
51
|
+
model: WhopSDK::Invoice,
|
|
52
52
|
options: options
|
|
53
53
|
)
|
|
54
54
|
end
|
|
@@ -39,7 +39,7 @@ module WhopSDK
|
|
|
39
39
|
# - `member:email:read`
|
|
40
40
|
# - `member:phone:read`
|
|
41
41
|
#
|
|
42
|
-
# @overload list(company_id:, access_level: nil, access_pass_ids: nil, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, most_recent_actions: nil, order: nil, plan_ids: nil, promo_code_ids: nil, query: nil, statuses: nil, request_options: {})
|
|
42
|
+
# @overload list(company_id:, access_level: nil, access_pass_ids: nil, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, most_recent_actions: nil, order: nil, plan_ids: nil, promo_code_ids: nil, query: nil, statuses: nil, user_ids: nil, request_options: {})
|
|
43
43
|
#
|
|
44
44
|
# @param company_id [String] The ID of the company to list members for
|
|
45
45
|
#
|
|
@@ -73,6 +73,8 @@ module WhopSDK
|
|
|
73
73
|
#
|
|
74
74
|
# @param statuses [Array<Symbol, WhopSDK::Models::MemberStatuses>, nil] The statuses to filter the members by
|
|
75
75
|
#
|
|
76
|
+
# @param user_ids [Array<String>, nil] The user IDs to filter the members by
|
|
77
|
+
#
|
|
76
78
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
77
79
|
#
|
|
78
80
|
# @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::MemberListResponse>]
|
|
@@ -61,9 +61,7 @@ module WhopSDK
|
|
|
61
61
|
#
|
|
62
62
|
# - `member:basic:read`
|
|
63
63
|
#
|
|
64
|
-
# @overload list(
|
|
65
|
-
#
|
|
66
|
-
# @param company_id [String] The ID of the company to list memberships for
|
|
64
|
+
# @overload list(access_pass_ids: nil, after: nil, before: nil, cancel_options: nil, company_id: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, plan_ids: nil, promo_code_ids: nil, statuses: nil, user_ids: nil, request_options: {})
|
|
67
65
|
#
|
|
68
66
|
# @param access_pass_ids [Array<String>, nil] The access pass IDs to filter the memberships by
|
|
69
67
|
#
|
|
@@ -73,6 +71,8 @@ module WhopSDK
|
|
|
73
71
|
#
|
|
74
72
|
# @param cancel_options [Array<Symbol, WhopSDK::Models::MembershipListParams::CancelOption>, nil] The cancel options to filter the memberships by
|
|
75
73
|
#
|
|
74
|
+
# @param company_id [String, nil] The ID of the company to list memberships for
|
|
75
|
+
#
|
|
76
76
|
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
77
77
|
#
|
|
78
78
|
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
@@ -91,12 +91,14 @@ module WhopSDK
|
|
|
91
91
|
#
|
|
92
92
|
# @param statuses [Array<Symbol, WhopSDK::Models::MembershipStatus>, nil] The membership status to filter the memberships by
|
|
93
93
|
#
|
|
94
|
+
# @param user_ids [Array<String>, nil] Only return memberships from these whop user ids
|
|
95
|
+
#
|
|
94
96
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
95
97
|
#
|
|
96
98
|
# @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::MembershipListResponse>]
|
|
97
99
|
#
|
|
98
100
|
# @see WhopSDK::Models::MembershipListParams
|
|
99
|
-
def list(params)
|
|
101
|
+
def list(params = {})
|
|
100
102
|
parsed, options = WhopSDK::MembershipListParams.dump_request(params)
|
|
101
103
|
@client.request(
|
|
102
104
|
method: :get,
|
|
@@ -15,7 +15,7 @@ module WhopSDK
|
|
|
15
15
|
#
|
|
16
16
|
# @param content [String] The content of the message in Markdown format.
|
|
17
17
|
#
|
|
18
|
-
# @param attachments [Array<WhopSDK::Models::MessageCreateParams::Attachment>, nil] The attachments for this message, such as videos or images.
|
|
18
|
+
# @param attachments [Array<WhopSDK::Models::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::MessageCreateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this message, such as videos or images.
|
|
19
19
|
#
|
|
20
20
|
# @param poll [WhopSDK::Models::MessageCreateParams::Poll, nil] The poll for this message
|
|
21
21
|
#
|
|
@@ -58,6 +58,34 @@ module WhopSDK
|
|
|
58
58
|
)
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
# Updates an existing message
|
|
62
|
+
#
|
|
63
|
+
# @overload update(id, attachments: nil, content: nil, is_pinned: nil, request_options: {})
|
|
64
|
+
#
|
|
65
|
+
# @param id [String]
|
|
66
|
+
#
|
|
67
|
+
# @param attachments [Array<WhopSDK::Models::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::MessageUpdateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this message
|
|
68
|
+
#
|
|
69
|
+
# @param content [String, nil] The content of the message in Markdown format
|
|
70
|
+
#
|
|
71
|
+
# @param is_pinned [Boolean, nil] Whether this message is pinned
|
|
72
|
+
#
|
|
73
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
74
|
+
#
|
|
75
|
+
# @return [WhopSDK::Models::Message]
|
|
76
|
+
#
|
|
77
|
+
# @see WhopSDK::Models::MessageUpdateParams
|
|
78
|
+
def update(id, params = {})
|
|
79
|
+
parsed, options = WhopSDK::MessageUpdateParams.dump_request(params)
|
|
80
|
+
@client.request(
|
|
81
|
+
method: :patch,
|
|
82
|
+
path: ["messages/%1$s", id],
|
|
83
|
+
body: parsed,
|
|
84
|
+
model: WhopSDK::Message,
|
|
85
|
+
options: options
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
|
|
61
89
|
# Lists messages inside a channel
|
|
62
90
|
#
|
|
63
91
|
# Required permissions:
|
|
@@ -52,7 +52,7 @@ module WhopSDK
|
|
|
52
52
|
#
|
|
53
53
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
54
54
|
#
|
|
55
|
-
# @param billing_reasons [Array<Symbol, WhopSDK::Models::
|
|
55
|
+
# @param billing_reasons [Array<Symbol, WhopSDK::Models::BillingReasons>, nil] The billing reason for the payment
|
|
56
56
|
#
|
|
57
57
|
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
58
58
|
#
|
|
@@ -14,13 +14,13 @@ module WhopSDK
|
|
|
14
14
|
# - `access_pass:basic:read`
|
|
15
15
|
# - `plan:basic:read`
|
|
16
16
|
#
|
|
17
|
-
# @overload create(company_id:, product_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, plan_type: nil, release_method: nil, renewal_price: nil, title: nil, trial_period_days: nil, visibility: nil, request_options: {})
|
|
17
|
+
# @overload create(company_id:, product_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, release_method: nil, renewal_price: nil, stock: nil, strike_through_initial_price: nil, strike_through_renewal_price: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
|
|
18
18
|
#
|
|
19
19
|
# @param company_id [String] The company the plan should be created for.
|
|
20
20
|
#
|
|
21
21
|
# @param product_id [String] The product the plan is related to.
|
|
22
22
|
#
|
|
23
|
-
# @param billing_period [Integer, nil] The interval at which the plan charges (renewal plans).
|
|
23
|
+
# @param billing_period [Integer, nil] The interval in days at which the plan charges (renewal plans).
|
|
24
24
|
#
|
|
25
25
|
# @param currency [Symbol, WhopSDK::Models::Currency, nil] The available currencies on the platform
|
|
26
26
|
#
|
|
@@ -30,7 +30,7 @@ module WhopSDK
|
|
|
30
30
|
#
|
|
31
31
|
# @param expiration_days [Integer, nil] The interval at which the plan charges (expiration plans).
|
|
32
32
|
#
|
|
33
|
-
# @param image [WhopSDK::Models::PlanCreateParams::Image, nil] An image for the plan. This will be visible on the product page to customers.
|
|
33
|
+
# @param image [WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID, nil] An image for the plan. This will be visible on the product page to customers.
|
|
34
34
|
#
|
|
35
35
|
# @param initial_price [Float, nil] An additional amount charged upon first purchase. Use only if a one time payment
|
|
36
36
|
#
|
|
@@ -38,16 +38,26 @@ module WhopSDK
|
|
|
38
38
|
#
|
|
39
39
|
# @param override_tax_type [Symbol, WhopSDK::Models::TaxType, nil] Whether or not the tax is included in a plan's price (or if it hasn't been set u
|
|
40
40
|
#
|
|
41
|
+
# @param payment_method_configuration [WhopSDK::Models::PlanCreateParams::PaymentMethodConfiguration, nil] The explicit payment method configuration for the plan. If not provided, the pla
|
|
42
|
+
#
|
|
41
43
|
# @param plan_type [Symbol, WhopSDK::Models::PlanType, nil] The type of plan that can be attached to an access pass
|
|
42
44
|
#
|
|
43
45
|
# @param release_method [Symbol, WhopSDK::Models::ReleaseMethod, nil] The methods of how a plan can be released.
|
|
44
46
|
#
|
|
45
47
|
# @param renewal_price [Float, nil] The amount the customer is charged every billing period. Use only if a recurring
|
|
46
48
|
#
|
|
49
|
+
# @param stock [Integer, nil] The number of units available for purchase.
|
|
50
|
+
#
|
|
51
|
+
# @param strike_through_initial_price [Float, nil] The price to display with a strikethrough for the initial price. Provided as a n
|
|
52
|
+
#
|
|
53
|
+
# @param strike_through_renewal_price [Float, nil] The price to display with a strikethrough for the renewal price. Provided as a n
|
|
54
|
+
#
|
|
47
55
|
# @param title [String, nil] The title of the plan. This will be visible on the product page to customers.
|
|
48
56
|
#
|
|
49
57
|
# @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
|
|
50
58
|
#
|
|
59
|
+
# @param unlimited_stock [Boolean, nil] Limits/doesn't limit the number of units available for purchase.
|
|
60
|
+
#
|
|
51
61
|
# @param visibility [Symbol, WhopSDK::Models::Visibility, nil] Visibility of a resource
|
|
52
62
|
#
|
|
53
63
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -94,7 +104,7 @@ module WhopSDK
|
|
|
94
104
|
# - `access_pass:basic:read`
|
|
95
105
|
# - `plan:basic:read`
|
|
96
106
|
#
|
|
97
|
-
# @overload update(id, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, offer_cancel_discount: nil, override_tax_type: nil, renewal_price: nil, title: nil, trial_period_days: nil, visibility: nil, request_options: {})
|
|
107
|
+
# @overload update(id, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, offer_cancel_discount: nil, override_tax_type: nil, payment_method_configuration: nil, renewal_price: nil, stock: nil, strike_through_initial_price: nil, strike_through_renewal_price: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
|
|
98
108
|
#
|
|
99
109
|
# @param id [String]
|
|
100
110
|
#
|
|
@@ -108,7 +118,7 @@ module WhopSDK
|
|
|
108
118
|
#
|
|
109
119
|
# @param expiration_days [Integer, nil] The interval at which the plan charges (expiration plans).
|
|
110
120
|
#
|
|
111
|
-
# @param image [WhopSDK::Models::PlanUpdateParams::Image, nil] An image for the plan. This will be visible on the product page to customers.
|
|
121
|
+
# @param image [WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithID, nil] An image for the plan. This will be visible on the product page to customers.
|
|
112
122
|
#
|
|
113
123
|
# @param initial_price [Float, nil] An additional amount charged upon first purchase.
|
|
114
124
|
#
|
|
@@ -118,12 +128,22 @@ module WhopSDK
|
|
|
118
128
|
#
|
|
119
129
|
# @param override_tax_type [Symbol, WhopSDK::Models::TaxType, nil] Whether or not the tax is included in a plan's price (or if it hasn't been set u
|
|
120
130
|
#
|
|
131
|
+
# @param payment_method_configuration [WhopSDK::Models::PlanUpdateParams::PaymentMethodConfiguration, nil] The explicit payment method configuration for the plan. If sent as null, the cus
|
|
132
|
+
#
|
|
121
133
|
# @param renewal_price [Float, nil] The amount the customer is charged every billing period.
|
|
122
134
|
#
|
|
135
|
+
# @param stock [Integer, nil] The number of units available for purchase.
|
|
136
|
+
#
|
|
137
|
+
# @param strike_through_initial_price [Float, nil] The price to display with a strikethrough for the initial price. Provided as a n
|
|
138
|
+
#
|
|
139
|
+
# @param strike_through_renewal_price [Float, nil] The price to display with a strikethrough for the renewal price. Provided as a n
|
|
140
|
+
#
|
|
123
141
|
# @param title [String, nil] The title of the plan. This will be visible on the product page to customers.
|
|
124
142
|
#
|
|
125
143
|
# @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
|
|
126
144
|
#
|
|
145
|
+
# @param unlimited_stock [Boolean, nil] Limits/doesn't limit the number of units available for purchase.
|
|
146
|
+
#
|
|
127
147
|
# @param visibility [Symbol, WhopSDK::Models::Visibility, nil] Visibility of a resource
|
|
128
148
|
#
|
|
129
149
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -13,16 +13,12 @@ module WhopSDK
|
|
|
13
13
|
# - `access_pass:create`
|
|
14
14
|
# - `access_pass:basic:read`
|
|
15
15
|
#
|
|
16
|
-
# @overload create(company_id:, title:,
|
|
16
|
+
# @overload create(company_id:, title:, business_type: nil, collect_shipping_address: nil, custom_cta: nil, custom_cta_url: nil, custom_statement_descriptor: nil, description: nil, experience_ids: nil, global_affiliate_percentage: nil, global_affiliate_status: nil, headline: nil, industry_type: nil, member_affiliate_percentage: nil, member_affiliate_status: nil, plan_options: nil, product_highlights: nil, product_tax_code_id: nil, redirect_purchase_url: nil, route: nil, visibility: nil, request_options: {})
|
|
17
17
|
#
|
|
18
18
|
# @param company_id [String] The ID of the company to create the product for.
|
|
19
19
|
#
|
|
20
20
|
# @param title [String] The title of the product.
|
|
21
21
|
#
|
|
22
|
-
# @param access_pass_type [Symbol, WhopSDK::Models::AccessPassType, nil] The different types an access pass can be.
|
|
23
|
-
#
|
|
24
|
-
# @param banner_image [WhopSDK::Models::ProductCreateParams::BannerImage, nil] A banner image for the product in png, jpeg format
|
|
25
|
-
#
|
|
26
22
|
# @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
|
|
27
23
|
#
|
|
28
24
|
# @param collect_shipping_address [Boolean, nil] Whether or not to collect shipping information at checkout from the customer.
|
|
@@ -111,11 +107,11 @@ module WhopSDK
|
|
|
111
107
|
# - `access_pass:update`
|
|
112
108
|
# - `access_pass:basic:read`
|
|
113
109
|
#
|
|
114
|
-
# @overload update(id, banner_image: nil, business_type: nil, collect_shipping_address: nil, custom_cta: nil, custom_cta_url: nil, custom_statement_descriptor: nil, description: nil, global_affiliate_percentage: nil, global_affiliate_status: nil, headline: nil, industry_type: nil, member_affiliate_percentage: nil, member_affiliate_status: nil, product_tax_code_id: nil, redirect_purchase_url: nil, route: nil, title: nil, visibility: nil, request_options: {})
|
|
110
|
+
# @overload update(id, banner_image: nil, business_type: nil, collect_shipping_address: nil, custom_cta: nil, custom_cta_url: nil, custom_statement_descriptor: nil, description: nil, global_affiliate_percentage: nil, global_affiliate_status: nil, headline: nil, industry_type: nil, member_affiliate_percentage: nil, member_affiliate_status: nil, product_tax_code_id: nil, redirect_purchase_url: nil, route: nil, store_page_config: nil, title: nil, visibility: nil, request_options: {})
|
|
115
111
|
#
|
|
116
112
|
# @param id [String]
|
|
117
113
|
#
|
|
118
|
-
# @param banner_image [WhopSDK::Models::ProductUpdateParams::BannerImage, nil] A banner image for the product in png, jpeg format
|
|
114
|
+
# @param banner_image [WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithID, nil] A banner image for the product in png, jpeg format
|
|
119
115
|
#
|
|
120
116
|
# @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
|
|
121
117
|
#
|
|
@@ -148,6 +144,8 @@ module WhopSDK
|
|
|
148
144
|
#
|
|
149
145
|
# @param route [String, nil] The route of the product.
|
|
150
146
|
#
|
|
147
|
+
# @param store_page_config [WhopSDK::Models::ProductUpdateParams::StorePageConfig, nil] Configuration for a product on the company's store page.
|
|
148
|
+
#
|
|
151
149
|
# @param title [String, nil] The title of the product.
|
|
152
150
|
#
|
|
153
151
|
# @param visibility [Symbol, WhopSDK::Models::Visibility, nil] Visibility of a resource
|