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
|
@@ -20,15 +20,17 @@ module WhopSDK
|
|
|
20
20
|
attr_accessor :access_level
|
|
21
21
|
|
|
22
22
|
# The logo for the experience
|
|
23
|
-
sig { returns(T.nilable(WhopSDK::ExperienceUpdateParams::Logo)) }
|
|
24
|
-
attr_reader :logo
|
|
25
|
-
|
|
26
23
|
sig do
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
returns(
|
|
25
|
+
T.nilable(
|
|
26
|
+
T.any(
|
|
27
|
+
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID,
|
|
28
|
+
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID
|
|
29
|
+
)
|
|
30
|
+
)
|
|
31
|
+
)
|
|
30
32
|
end
|
|
31
|
-
|
|
33
|
+
attr_accessor :logo
|
|
32
34
|
|
|
33
35
|
# The name of the experience.
|
|
34
36
|
sig { returns(T.nilable(String)) }
|
|
@@ -46,7 +48,13 @@ module WhopSDK
|
|
|
46
48
|
params(
|
|
47
49
|
access_level:
|
|
48
50
|
T.nilable(WhopSDK::ExperienceUpdateParams::AccessLevel::OrSymbol),
|
|
49
|
-
logo:
|
|
51
|
+
logo:
|
|
52
|
+
T.nilable(
|
|
53
|
+
T.any(
|
|
54
|
+
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID::OrHash,
|
|
55
|
+
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID::OrHash
|
|
56
|
+
)
|
|
57
|
+
),
|
|
50
58
|
name: T.nilable(String),
|
|
51
59
|
order: T.nilable(String),
|
|
52
60
|
section_id: T.nilable(String),
|
|
@@ -73,7 +81,13 @@ module WhopSDK
|
|
|
73
81
|
{
|
|
74
82
|
access_level:
|
|
75
83
|
T.nilable(WhopSDK::ExperienceUpdateParams::AccessLevel::OrSymbol),
|
|
76
|
-
logo:
|
|
84
|
+
logo:
|
|
85
|
+
T.nilable(
|
|
86
|
+
T.any(
|
|
87
|
+
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID,
|
|
88
|
+
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID
|
|
89
|
+
)
|
|
90
|
+
),
|
|
77
91
|
name: T.nilable(String),
|
|
78
92
|
order: T.nilable(String),
|
|
79
93
|
section_id: T.nilable(String),
|
|
@@ -114,52 +128,84 @@ module WhopSDK
|
|
|
114
128
|
end
|
|
115
129
|
end
|
|
116
130
|
|
|
117
|
-
|
|
118
|
-
|
|
131
|
+
# The logo for the experience
|
|
132
|
+
module Logo
|
|
133
|
+
extend WhopSDK::Internal::Type::Union
|
|
134
|
+
|
|
135
|
+
Variants =
|
|
119
136
|
T.type_alias do
|
|
120
137
|
T.any(
|
|
121
|
-
WhopSDK::ExperienceUpdateParams::Logo,
|
|
122
|
-
WhopSDK::
|
|
138
|
+
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID,
|
|
139
|
+
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID
|
|
123
140
|
)
|
|
124
141
|
end
|
|
125
142
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
143
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
144
|
+
OrHash =
|
|
145
|
+
T.type_alias do
|
|
146
|
+
T.any(
|
|
147
|
+
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID,
|
|
148
|
+
WhopSDK::Internal::AnyHash
|
|
149
|
+
)
|
|
150
|
+
end
|
|
131
151
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
152
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
153
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
154
|
+
# mediaDirectUpload mutation.
|
|
155
|
+
sig { returns(String) }
|
|
156
|
+
attr_accessor :direct_upload_id
|
|
157
|
+
|
|
158
|
+
# Input for an attachment
|
|
159
|
+
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
160
|
+
def self.new(
|
|
161
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
162
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
163
|
+
# mediaDirectUpload mutation.
|
|
164
|
+
direct_upload_id:
|
|
165
|
+
)
|
|
166
|
+
end
|
|
137
167
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
id: T.nilable(String),
|
|
142
|
-
direct_upload_id: T.nilable(String)
|
|
143
|
-
).returns(T.attached_class)
|
|
168
|
+
sig { override.returns({ direct_upload_id: String }) }
|
|
169
|
+
def to_hash
|
|
170
|
+
end
|
|
144
171
|
end
|
|
145
|
-
|
|
172
|
+
|
|
173
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
174
|
+
OrHash =
|
|
175
|
+
T.type_alias do
|
|
176
|
+
T.any(
|
|
177
|
+
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID,
|
|
178
|
+
WhopSDK::Internal::AnyHash
|
|
179
|
+
)
|
|
180
|
+
end
|
|
181
|
+
|
|
146
182
|
# The ID of an existing attachment object. Use this when updating a resource and
|
|
147
183
|
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
148
184
|
# doing.
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
#
|
|
153
|
-
|
|
154
|
-
|
|
185
|
+
sig { returns(String) }
|
|
186
|
+
attr_accessor :id
|
|
187
|
+
|
|
188
|
+
# Input for an attachment
|
|
189
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
190
|
+
def self.new(
|
|
191
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
192
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
193
|
+
# doing.
|
|
194
|
+
id:
|
|
195
|
+
)
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
sig { override.returns({ id: String }) }
|
|
199
|
+
def to_hash
|
|
200
|
+
end
|
|
155
201
|
end
|
|
156
202
|
|
|
157
203
|
sig do
|
|
158
204
|
override.returns(
|
|
159
|
-
|
|
205
|
+
T::Array[WhopSDK::ExperienceUpdateParams::Logo::Variants]
|
|
160
206
|
)
|
|
161
207
|
end
|
|
162
|
-
def
|
|
208
|
+
def self.variants
|
|
163
209
|
end
|
|
164
210
|
end
|
|
165
211
|
end
|
|
@@ -18,6 +18,10 @@ module WhopSDK
|
|
|
18
18
|
sig { returns(T.nilable(String)) }
|
|
19
19
|
attr_accessor :content
|
|
20
20
|
|
|
21
|
+
# The timestamp when the post was created
|
|
22
|
+
sig { returns(Time) }
|
|
23
|
+
attr_accessor :created_at
|
|
24
|
+
|
|
21
25
|
# Whether the forum post has been edited
|
|
22
26
|
sig { returns(T::Boolean) }
|
|
23
27
|
attr_accessor :is_edited
|
|
@@ -42,6 +46,10 @@ module WhopSDK
|
|
|
42
46
|
sig { returns(T.nilable(String)) }
|
|
43
47
|
attr_accessor :title
|
|
44
48
|
|
|
49
|
+
# The timestamp when the post was last updated
|
|
50
|
+
sig { returns(Time) }
|
|
51
|
+
attr_accessor :updated_at
|
|
52
|
+
|
|
45
53
|
# The user who created this forum post
|
|
46
54
|
sig { returns(WhopSDK::ForumPost::User) }
|
|
47
55
|
attr_reader :user
|
|
@@ -59,12 +67,14 @@ module WhopSDK
|
|
|
59
67
|
id: String,
|
|
60
68
|
comment_count: Integer,
|
|
61
69
|
content: T.nilable(String),
|
|
70
|
+
created_at: Time,
|
|
62
71
|
is_edited: T::Boolean,
|
|
63
72
|
is_pinned: T::Boolean,
|
|
64
73
|
is_poster_admin: T::Boolean,
|
|
65
74
|
like_count: T.nilable(Integer),
|
|
66
75
|
parent_id: T.nilable(String),
|
|
67
76
|
title: T.nilable(String),
|
|
77
|
+
updated_at: Time,
|
|
68
78
|
user: WhopSDK::ForumPost::User::OrHash,
|
|
69
79
|
view_count: T.nilable(Integer)
|
|
70
80
|
).returns(T.attached_class)
|
|
@@ -76,6 +86,8 @@ module WhopSDK
|
|
|
76
86
|
comment_count:,
|
|
77
87
|
# The content of the forum post in Markdown format
|
|
78
88
|
content:,
|
|
89
|
+
# The timestamp when the post was created
|
|
90
|
+
created_at:,
|
|
79
91
|
# Whether the forum post has been edited
|
|
80
92
|
is_edited:,
|
|
81
93
|
# Whether this forum post is pinned
|
|
@@ -88,6 +100,8 @@ module WhopSDK
|
|
|
88
100
|
parent_id:,
|
|
89
101
|
# The title of the forum post
|
|
90
102
|
title:,
|
|
103
|
+
# The timestamp when the post was last updated
|
|
104
|
+
updated_at:,
|
|
91
105
|
# The user who created this forum post
|
|
92
106
|
user:,
|
|
93
107
|
# The number of times this message has been viewed
|
|
@@ -101,12 +115,14 @@ module WhopSDK
|
|
|
101
115
|
id: String,
|
|
102
116
|
comment_count: Integer,
|
|
103
117
|
content: T.nilable(String),
|
|
118
|
+
created_at: Time,
|
|
104
119
|
is_edited: T::Boolean,
|
|
105
120
|
is_pinned: T::Boolean,
|
|
106
121
|
is_poster_admin: T::Boolean,
|
|
107
122
|
like_count: T.nilable(Integer),
|
|
108
123
|
parent_id: T.nilable(String),
|
|
109
124
|
title: T.nilable(String),
|
|
125
|
+
updated_at: Time,
|
|
110
126
|
user: WhopSDK::ForumPost::User,
|
|
111
127
|
view_count: T.nilable(Integer)
|
|
112
128
|
}
|
|
@@ -17,7 +17,16 @@ module WhopSDK
|
|
|
17
17
|
|
|
18
18
|
# The attachments for this post
|
|
19
19
|
sig do
|
|
20
|
-
returns(
|
|
20
|
+
returns(
|
|
21
|
+
T.nilable(
|
|
22
|
+
T::Array[
|
|
23
|
+
T.any(
|
|
24
|
+
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
25
|
+
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID
|
|
26
|
+
)
|
|
27
|
+
]
|
|
28
|
+
)
|
|
29
|
+
)
|
|
21
30
|
end
|
|
22
31
|
attr_accessor :attachments
|
|
23
32
|
|
|
@@ -70,7 +79,12 @@ module WhopSDK
|
|
|
70
79
|
experience_id: String,
|
|
71
80
|
attachments:
|
|
72
81
|
T.nilable(
|
|
73
|
-
T::Array[
|
|
82
|
+
T::Array[
|
|
83
|
+
T.any(
|
|
84
|
+
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
85
|
+
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID::OrHash
|
|
86
|
+
)
|
|
87
|
+
]
|
|
74
88
|
),
|
|
75
89
|
content: T.nilable(String),
|
|
76
90
|
is_mention: T.nilable(T::Boolean),
|
|
@@ -118,7 +132,14 @@ module WhopSDK
|
|
|
118
132
|
{
|
|
119
133
|
experience_id: String,
|
|
120
134
|
attachments:
|
|
121
|
-
T.nilable(
|
|
135
|
+
T.nilable(
|
|
136
|
+
T::Array[
|
|
137
|
+
T.any(
|
|
138
|
+
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
139
|
+
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID
|
|
140
|
+
)
|
|
141
|
+
]
|
|
142
|
+
),
|
|
122
143
|
content: T.nilable(String),
|
|
123
144
|
is_mention: T.nilable(T::Boolean),
|
|
124
145
|
parent_id: T.nilable(String),
|
|
@@ -134,52 +155,84 @@ module WhopSDK
|
|
|
134
155
|
def to_hash
|
|
135
156
|
end
|
|
136
157
|
|
|
137
|
-
|
|
138
|
-
|
|
158
|
+
# Input for an attachment
|
|
159
|
+
module Attachment
|
|
160
|
+
extend WhopSDK::Internal::Type::Union
|
|
161
|
+
|
|
162
|
+
Variants =
|
|
139
163
|
T.type_alias do
|
|
140
164
|
T.any(
|
|
141
|
-
WhopSDK::ForumPostCreateParams::Attachment,
|
|
142
|
-
WhopSDK::
|
|
165
|
+
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
166
|
+
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID
|
|
143
167
|
)
|
|
144
168
|
end
|
|
145
169
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
170
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
171
|
+
OrHash =
|
|
172
|
+
T.type_alias do
|
|
173
|
+
T.any(
|
|
174
|
+
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
175
|
+
WhopSDK::Internal::AnyHash
|
|
176
|
+
)
|
|
177
|
+
end
|
|
151
178
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
179
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
180
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
181
|
+
# mediaDirectUpload mutation.
|
|
182
|
+
sig { returns(String) }
|
|
183
|
+
attr_accessor :direct_upload_id
|
|
157
184
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
185
|
+
# Input for an attachment
|
|
186
|
+
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
187
|
+
def self.new(
|
|
188
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
189
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
190
|
+
# mediaDirectUpload mutation.
|
|
191
|
+
direct_upload_id:
|
|
192
|
+
)
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
sig { override.returns({ direct_upload_id: String }) }
|
|
196
|
+
def to_hash
|
|
197
|
+
end
|
|
164
198
|
end
|
|
165
|
-
|
|
199
|
+
|
|
200
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
201
|
+
OrHash =
|
|
202
|
+
T.type_alias do
|
|
203
|
+
T.any(
|
|
204
|
+
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID,
|
|
205
|
+
WhopSDK::Internal::AnyHash
|
|
206
|
+
)
|
|
207
|
+
end
|
|
208
|
+
|
|
166
209
|
# The ID of an existing attachment object. Use this when updating a resource and
|
|
167
210
|
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
168
211
|
# doing.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
#
|
|
173
|
-
|
|
174
|
-
|
|
212
|
+
sig { returns(String) }
|
|
213
|
+
attr_accessor :id
|
|
214
|
+
|
|
215
|
+
# Input for an attachment
|
|
216
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
217
|
+
def self.new(
|
|
218
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
219
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
220
|
+
# doing.
|
|
221
|
+
id:
|
|
222
|
+
)
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
sig { override.returns({ id: String }) }
|
|
226
|
+
def to_hash
|
|
227
|
+
end
|
|
175
228
|
end
|
|
176
229
|
|
|
177
230
|
sig do
|
|
178
231
|
override.returns(
|
|
179
|
-
|
|
232
|
+
T::Array[WhopSDK::ForumPostCreateParams::Attachment::Variants]
|
|
180
233
|
)
|
|
181
234
|
end
|
|
182
|
-
def
|
|
235
|
+
def self.variants
|
|
183
236
|
end
|
|
184
237
|
end
|
|
185
238
|
|
|
@@ -23,6 +23,10 @@ module WhopSDK
|
|
|
23
23
|
sig { returns(T.nilable(String)) }
|
|
24
24
|
attr_accessor :content
|
|
25
25
|
|
|
26
|
+
# The timestamp when the post was created
|
|
27
|
+
sig { returns(Time) }
|
|
28
|
+
attr_accessor :created_at
|
|
29
|
+
|
|
26
30
|
# Whether the forum post has been edited
|
|
27
31
|
sig { returns(T::Boolean) }
|
|
28
32
|
attr_accessor :is_edited
|
|
@@ -47,6 +51,10 @@ module WhopSDK
|
|
|
47
51
|
sig { returns(T.nilable(String)) }
|
|
48
52
|
attr_accessor :title
|
|
49
53
|
|
|
54
|
+
# The timestamp when the post was last updated
|
|
55
|
+
sig { returns(Time) }
|
|
56
|
+
attr_accessor :updated_at
|
|
57
|
+
|
|
50
58
|
# The user who created this forum post
|
|
51
59
|
sig { returns(WhopSDK::Models::ForumPostListResponse::User) }
|
|
52
60
|
attr_reader :user
|
|
@@ -66,12 +74,14 @@ module WhopSDK
|
|
|
66
74
|
id: String,
|
|
67
75
|
comment_count: Integer,
|
|
68
76
|
content: T.nilable(String),
|
|
77
|
+
created_at: Time,
|
|
69
78
|
is_edited: T::Boolean,
|
|
70
79
|
is_pinned: T::Boolean,
|
|
71
80
|
is_poster_admin: T::Boolean,
|
|
72
81
|
like_count: T.nilable(Integer),
|
|
73
82
|
parent_id: T.nilable(String),
|
|
74
83
|
title: T.nilable(String),
|
|
84
|
+
updated_at: Time,
|
|
75
85
|
user: WhopSDK::Models::ForumPostListResponse::User::OrHash,
|
|
76
86
|
view_count: T.nilable(Integer)
|
|
77
87
|
).returns(T.attached_class)
|
|
@@ -83,6 +93,8 @@ module WhopSDK
|
|
|
83
93
|
comment_count:,
|
|
84
94
|
# The content of the forum post in Markdown format
|
|
85
95
|
content:,
|
|
96
|
+
# The timestamp when the post was created
|
|
97
|
+
created_at:,
|
|
86
98
|
# Whether the forum post has been edited
|
|
87
99
|
is_edited:,
|
|
88
100
|
# Whether this forum post is pinned
|
|
@@ -95,6 +107,8 @@ module WhopSDK
|
|
|
95
107
|
parent_id:,
|
|
96
108
|
# The title of the forum post
|
|
97
109
|
title:,
|
|
110
|
+
# The timestamp when the post was last updated
|
|
111
|
+
updated_at:,
|
|
98
112
|
# The user who created this forum post
|
|
99
113
|
user:,
|
|
100
114
|
# The number of times this message has been viewed
|
|
@@ -108,12 +122,14 @@ module WhopSDK
|
|
|
108
122
|
id: String,
|
|
109
123
|
comment_count: Integer,
|
|
110
124
|
content: T.nilable(String),
|
|
125
|
+
created_at: Time,
|
|
111
126
|
is_edited: T::Boolean,
|
|
112
127
|
is_pinned: T::Boolean,
|
|
113
128
|
is_poster_admin: T::Boolean,
|
|
114
129
|
like_count: T.nilable(Integer),
|
|
115
130
|
parent_id: T.nilable(String),
|
|
116
131
|
title: T.nilable(String),
|
|
132
|
+
updated_at: Time,
|
|
117
133
|
user: WhopSDK::Models::ForumPostListResponse::User,
|
|
118
134
|
view_count: T.nilable(Integer)
|
|
119
135
|
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class ForumPostUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(WhopSDK::ForumPostUpdateParams, WhopSDK::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The attachments for this post
|
|
15
|
+
sig do
|
|
16
|
+
returns(
|
|
17
|
+
T.nilable(
|
|
18
|
+
T::Array[
|
|
19
|
+
T.any(
|
|
20
|
+
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
21
|
+
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID
|
|
22
|
+
)
|
|
23
|
+
]
|
|
24
|
+
)
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
attr_accessor :attachments
|
|
28
|
+
|
|
29
|
+
# This is the main body of the post in Markdown format. Hidden if paywalled and
|
|
30
|
+
# user hasn't purchased access to it.
|
|
31
|
+
sig { returns(T.nilable(String)) }
|
|
32
|
+
attr_accessor :content
|
|
33
|
+
|
|
34
|
+
# Whether the post is pinned. You can only pin a top level posts (not comments).
|
|
35
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
36
|
+
attr_accessor :is_pinned
|
|
37
|
+
|
|
38
|
+
# The title of the post. Only visible if paywalled.
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_accessor :title
|
|
41
|
+
|
|
42
|
+
sig do
|
|
43
|
+
params(
|
|
44
|
+
attachments:
|
|
45
|
+
T.nilable(
|
|
46
|
+
T::Array[
|
|
47
|
+
T.any(
|
|
48
|
+
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
49
|
+
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID::OrHash
|
|
50
|
+
)
|
|
51
|
+
]
|
|
52
|
+
),
|
|
53
|
+
content: T.nilable(String),
|
|
54
|
+
is_pinned: T.nilable(T::Boolean),
|
|
55
|
+
title: T.nilable(String),
|
|
56
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
57
|
+
).returns(T.attached_class)
|
|
58
|
+
end
|
|
59
|
+
def self.new(
|
|
60
|
+
# The attachments for this post
|
|
61
|
+
attachments: nil,
|
|
62
|
+
# This is the main body of the post in Markdown format. Hidden if paywalled and
|
|
63
|
+
# user hasn't purchased access to it.
|
|
64
|
+
content: nil,
|
|
65
|
+
# Whether the post is pinned. You can only pin a top level posts (not comments).
|
|
66
|
+
is_pinned: nil,
|
|
67
|
+
# The title of the post. Only visible if paywalled.
|
|
68
|
+
title: nil,
|
|
69
|
+
request_options: {}
|
|
70
|
+
)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
sig do
|
|
74
|
+
override.returns(
|
|
75
|
+
{
|
|
76
|
+
attachments:
|
|
77
|
+
T.nilable(
|
|
78
|
+
T::Array[
|
|
79
|
+
T.any(
|
|
80
|
+
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
81
|
+
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID
|
|
82
|
+
)
|
|
83
|
+
]
|
|
84
|
+
),
|
|
85
|
+
content: T.nilable(String),
|
|
86
|
+
is_pinned: T.nilable(T::Boolean),
|
|
87
|
+
title: T.nilable(String),
|
|
88
|
+
request_options: WhopSDK::RequestOptions
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
def to_hash
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Input for an attachment
|
|
96
|
+
module Attachment
|
|
97
|
+
extend WhopSDK::Internal::Type::Union
|
|
98
|
+
|
|
99
|
+
Variants =
|
|
100
|
+
T.type_alias do
|
|
101
|
+
T.any(
|
|
102
|
+
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
103
|
+
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID
|
|
104
|
+
)
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
108
|
+
OrHash =
|
|
109
|
+
T.type_alias do
|
|
110
|
+
T.any(
|
|
111
|
+
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
112
|
+
WhopSDK::Internal::AnyHash
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
117
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
118
|
+
# mediaDirectUpload mutation.
|
|
119
|
+
sig { returns(String) }
|
|
120
|
+
attr_accessor :direct_upload_id
|
|
121
|
+
|
|
122
|
+
# Input for an attachment
|
|
123
|
+
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
124
|
+
def self.new(
|
|
125
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
126
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
127
|
+
# mediaDirectUpload mutation.
|
|
128
|
+
direct_upload_id:
|
|
129
|
+
)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
sig { override.returns({ direct_upload_id: String }) }
|
|
133
|
+
def to_hash
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
138
|
+
OrHash =
|
|
139
|
+
T.type_alias do
|
|
140
|
+
T.any(
|
|
141
|
+
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID,
|
|
142
|
+
WhopSDK::Internal::AnyHash
|
|
143
|
+
)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
147
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
148
|
+
# doing.
|
|
149
|
+
sig { returns(String) }
|
|
150
|
+
attr_accessor :id
|
|
151
|
+
|
|
152
|
+
# Input for an attachment
|
|
153
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
154
|
+
def self.new(
|
|
155
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
156
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
157
|
+
# doing.
|
|
158
|
+
id:
|
|
159
|
+
)
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
sig { override.returns({ id: String }) }
|
|
163
|
+
def to_hash
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
sig do
|
|
168
|
+
override.returns(
|
|
169
|
+
T::Array[WhopSDK::ForumPostUpdateParams::Attachment::Variants]
|
|
170
|
+
)
|
|
171
|
+
end
|
|
172
|
+
def self.variants
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
end
|
|
@@ -29,7 +29,8 @@ module WhopSDK
|
|
|
29
29
|
sig { returns(T.nilable(String)) }
|
|
30
30
|
attr_accessor :email_address
|
|
31
31
|
|
|
32
|
-
#
|
|
32
|
+
# A signed token that allows fetching the invoice data publically without being
|
|
33
|
+
# authenticated.
|
|
33
34
|
sig { returns(String) }
|
|
34
35
|
attr_accessor :fetch_invoice_token
|
|
35
36
|
|
|
@@ -73,7 +74,8 @@ module WhopSDK
|
|
|
73
74
|
due_date:,
|
|
74
75
|
# The email address that the invoice was created for.
|
|
75
76
|
email_address:,
|
|
76
|
-
#
|
|
77
|
+
# A signed token that allows fetching the invoice data publically without being
|
|
78
|
+
# authenticated.
|
|
77
79
|
fetch_invoice_token:,
|
|
78
80
|
# The number of the invoice.
|
|
79
81
|
number:,
|