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
data/lib/whop_sdk/models/plan.rb
CHANGED
|
@@ -81,6 +81,12 @@ module WhopSDK
|
|
|
81
81
|
# @return [Integer, nil]
|
|
82
82
|
required :member_count, Integer, nil?: true
|
|
83
83
|
|
|
84
|
+
# @!attribute payment_method_configuration
|
|
85
|
+
# The explicit payment method configuration for the plan, if any.
|
|
86
|
+
#
|
|
87
|
+
# @return [WhopSDK::Models::Plan::PaymentMethodConfiguration, nil]
|
|
88
|
+
required :payment_method_configuration, -> { WhopSDK::Plan::PaymentMethodConfiguration }, nil?: true
|
|
89
|
+
|
|
84
90
|
# @!attribute plan_type
|
|
85
91
|
# Indicates if the plan is a one time payment or recurring.
|
|
86
92
|
#
|
|
@@ -111,18 +117,36 @@ module WhopSDK
|
|
|
111
117
|
# @return [Float]
|
|
112
118
|
required :renewal_price, Float
|
|
113
119
|
|
|
120
|
+
# @!attribute stock
|
|
121
|
+
# The number of units available for purchase. Only displayed to authorized actors
|
|
122
|
+
#
|
|
123
|
+
# @return [Integer, nil]
|
|
124
|
+
required :stock, Integer, nil?: true
|
|
125
|
+
|
|
114
126
|
# @!attribute tax_type
|
|
115
127
|
# The tax type for the plan.
|
|
116
128
|
#
|
|
117
129
|
# @return [Symbol, WhopSDK::Models::TaxType]
|
|
118
130
|
required :tax_type, enum: -> { WhopSDK::TaxType }
|
|
119
131
|
|
|
132
|
+
# @!attribute title
|
|
133
|
+
# The title of the plan. This will be visible on the product page to customers.
|
|
134
|
+
#
|
|
135
|
+
# @return [String, nil]
|
|
136
|
+
required :title, String, nil?: true
|
|
137
|
+
|
|
120
138
|
# @!attribute trial_period_days
|
|
121
139
|
# The number of free trial days added before a renewal plan.
|
|
122
140
|
#
|
|
123
141
|
# @return [Integer, nil]
|
|
124
142
|
required :trial_period_days, Integer, nil?: true
|
|
125
143
|
|
|
144
|
+
# @!attribute unlimited_stock
|
|
145
|
+
# Limits/doesn't limit the number of units available for purchase.
|
|
146
|
+
#
|
|
147
|
+
# @return [Boolean]
|
|
148
|
+
required :unlimited_stock, WhopSDK::Internal::Type::Boolean
|
|
149
|
+
|
|
126
150
|
# @!attribute updated_at
|
|
127
151
|
# When the plan was last updated.
|
|
128
152
|
#
|
|
@@ -135,7 +159,7 @@ module WhopSDK
|
|
|
135
159
|
# @return [Symbol, WhopSDK::Models::Visibility]
|
|
136
160
|
required :visibility, enum: -> { WhopSDK::Visibility }
|
|
137
161
|
|
|
138
|
-
# @!method initialize(id:, billing_period:, collect_tax:, company:, created_at:, currency:, custom_fields:, description:, expiration_days:, initial_price:, internal_notes:, invoice:, member_count:, plan_type:, product:, purchase_url:, release_method:, renewal_price:, tax_type:, trial_period_days:, updated_at:, visibility:)
|
|
162
|
+
# @!method initialize(id:, billing_period:, collect_tax:, company:, created_at:, currency:, custom_fields:, description:, expiration_days:, initial_price:, internal_notes:, invoice:, member_count:, payment_method_configuration:, plan_type:, product:, purchase_url:, release_method:, renewal_price:, stock:, tax_type:, title:, trial_period_days:, unlimited_stock:, updated_at:, visibility:)
|
|
139
163
|
# An object representing a (sanitized) plan of an access pass.
|
|
140
164
|
#
|
|
141
165
|
# @param id [String] The internal ID of the plan.
|
|
@@ -164,6 +188,8 @@ module WhopSDK
|
|
|
164
188
|
#
|
|
165
189
|
# @param member_count [Integer, nil] The number of members for the plan.
|
|
166
190
|
#
|
|
191
|
+
# @param payment_method_configuration [WhopSDK::Models::Plan::PaymentMethodConfiguration, nil] The explicit payment method configuration for the plan, if any.
|
|
192
|
+
#
|
|
167
193
|
# @param plan_type [Symbol, WhopSDK::Models::PlanType] Indicates if the plan is a one time payment or recurring.
|
|
168
194
|
#
|
|
169
195
|
# @param product [WhopSDK::Models::Plan::Product, nil] The access pass for the plan.
|
|
@@ -174,10 +200,16 @@ module WhopSDK
|
|
|
174
200
|
#
|
|
175
201
|
# @param renewal_price [Float] The price a person has to pay for a plan on the renewal purchase.
|
|
176
202
|
#
|
|
203
|
+
# @param stock [Integer, nil] The number of units available for purchase. Only displayed to authorized actors
|
|
204
|
+
#
|
|
177
205
|
# @param tax_type [Symbol, WhopSDK::Models::TaxType] The tax type for the plan.
|
|
178
206
|
#
|
|
207
|
+
# @param title [String, nil] The title of the plan. This will be visible on the product page to customers.
|
|
208
|
+
#
|
|
179
209
|
# @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
|
|
180
210
|
#
|
|
211
|
+
# @param unlimited_stock [Boolean] Limits/doesn't limit the number of units available for purchase.
|
|
212
|
+
#
|
|
181
213
|
# @param updated_at [Time] When the plan was last updated.
|
|
182
214
|
#
|
|
183
215
|
# @param visibility [Symbol, WhopSDK::Models::Visibility] Shows or hides the plan from public/business view.
|
|
@@ -271,6 +303,45 @@ module WhopSDK
|
|
|
271
303
|
# @param id [String] The ID of the invoice.
|
|
272
304
|
end
|
|
273
305
|
|
|
306
|
+
# @see WhopSDK::Models::Plan#payment_method_configuration
|
|
307
|
+
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
308
|
+
# @!attribute disabled
|
|
309
|
+
# An array of payment method identifiers that are explicitly disabled. Only
|
|
310
|
+
# applies if the include_platform_defaults is true.
|
|
311
|
+
#
|
|
312
|
+
# @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
|
|
313
|
+
required :disabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
|
|
314
|
+
|
|
315
|
+
# @!attribute enabled
|
|
316
|
+
# An array of payment method identifiers that are explicitly enabled. This means
|
|
317
|
+
# these payment methods will be shown on checkout. Example use case is to only
|
|
318
|
+
# enable a specific payment method like cashapp, or extending the platform
|
|
319
|
+
# defaults with additional methods.
|
|
320
|
+
#
|
|
321
|
+
# @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
|
|
322
|
+
required :enabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
|
|
323
|
+
|
|
324
|
+
# @!attribute include_platform_defaults
|
|
325
|
+
# Whether Whop's platform default payment method enablement settings are included
|
|
326
|
+
# in this configuration. The full list of default payment methods can be found in
|
|
327
|
+
# the documentation at docs.whop.com/payments.
|
|
328
|
+
#
|
|
329
|
+
# @return [Boolean]
|
|
330
|
+
required :include_platform_defaults, WhopSDK::Internal::Type::Boolean
|
|
331
|
+
|
|
332
|
+
# @!method initialize(disabled:, enabled:, include_platform_defaults:)
|
|
333
|
+
# Some parameter documentations has been truncated, see
|
|
334
|
+
# {WhopSDK::Models::Plan::PaymentMethodConfiguration} for more details.
|
|
335
|
+
#
|
|
336
|
+
# The explicit payment method configuration for the plan, if any.
|
|
337
|
+
#
|
|
338
|
+
# @param disabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly disabled. Only applie
|
|
339
|
+
#
|
|
340
|
+
# @param enabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly enabled. This means t
|
|
341
|
+
#
|
|
342
|
+
# @param include_platform_defaults [Boolean] Whether Whop's platform default payment method enablement settings are included
|
|
343
|
+
end
|
|
344
|
+
|
|
274
345
|
# @see WhopSDK::Models::Plan#product
|
|
275
346
|
class Product < WhopSDK::Internal::Type::BaseModel
|
|
276
347
|
# @!attribute id
|
|
@@ -20,7 +20,7 @@ module WhopSDK
|
|
|
20
20
|
required :product_id, String
|
|
21
21
|
|
|
22
22
|
# @!attribute billing_period
|
|
23
|
-
# The interval at which the plan charges (renewal plans).
|
|
23
|
+
# The interval in days at which the plan charges (renewal plans).
|
|
24
24
|
#
|
|
25
25
|
# @return [Integer, nil]
|
|
26
26
|
optional :billing_period, Integer, nil?: true
|
|
@@ -54,8 +54,8 @@ module WhopSDK
|
|
|
54
54
|
# @!attribute image
|
|
55
55
|
# An image for the plan. This will be visible on the product page to customers.
|
|
56
56
|
#
|
|
57
|
-
# @return [WhopSDK::Models::PlanCreateParams::Image, nil]
|
|
58
|
-
optional :image, -> { WhopSDK::PlanCreateParams::Image }, nil?: true
|
|
57
|
+
# @return [WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID, nil]
|
|
58
|
+
optional :image, union: -> { WhopSDK::PlanCreateParams::Image }, nil?: true
|
|
59
59
|
|
|
60
60
|
# @!attribute initial_price
|
|
61
61
|
# An additional amount charged upon first purchase. Use only if a one time payment
|
|
@@ -78,6 +78,15 @@ module WhopSDK
|
|
|
78
78
|
# @return [Symbol, WhopSDK::Models::TaxType, nil]
|
|
79
79
|
optional :override_tax_type, enum: -> { WhopSDK::TaxType }, nil?: true
|
|
80
80
|
|
|
81
|
+
# @!attribute payment_method_configuration
|
|
82
|
+
# The explicit payment method configuration for the plan. If not provided, the
|
|
83
|
+
# platform or company's defaults will apply.
|
|
84
|
+
#
|
|
85
|
+
# @return [WhopSDK::Models::PlanCreateParams::PaymentMethodConfiguration, nil]
|
|
86
|
+
optional :payment_method_configuration,
|
|
87
|
+
-> { WhopSDK::PlanCreateParams::PaymentMethodConfiguration },
|
|
88
|
+
nil?: true
|
|
89
|
+
|
|
81
90
|
# @!attribute plan_type
|
|
82
91
|
# The type of plan that can be attached to an access pass
|
|
83
92
|
#
|
|
@@ -97,6 +106,26 @@ module WhopSDK
|
|
|
97
106
|
# @return [Float, nil]
|
|
98
107
|
optional :renewal_price, Float, nil?: true
|
|
99
108
|
|
|
109
|
+
# @!attribute stock
|
|
110
|
+
# The number of units available for purchase.
|
|
111
|
+
#
|
|
112
|
+
# @return [Integer, nil]
|
|
113
|
+
optional :stock, Integer, nil?: true
|
|
114
|
+
|
|
115
|
+
# @!attribute strike_through_initial_price
|
|
116
|
+
# The price to display with a strikethrough for the initial price. Provided as a
|
|
117
|
+
# number in dollars. Eg: 19.99 for $19.99
|
|
118
|
+
#
|
|
119
|
+
# @return [Float, nil]
|
|
120
|
+
optional :strike_through_initial_price, Float, nil?: true
|
|
121
|
+
|
|
122
|
+
# @!attribute strike_through_renewal_price
|
|
123
|
+
# The price to display with a strikethrough for the renewal price. Provided as a
|
|
124
|
+
# number in dollars. Eg: 19.99 for $19.99
|
|
125
|
+
#
|
|
126
|
+
# @return [Float, nil]
|
|
127
|
+
optional :strike_through_renewal_price, Float, nil?: true
|
|
128
|
+
|
|
100
129
|
# @!attribute title
|
|
101
130
|
# The title of the plan. This will be visible on the product page to customers.
|
|
102
131
|
#
|
|
@@ -109,13 +138,19 @@ module WhopSDK
|
|
|
109
138
|
# @return [Integer, nil]
|
|
110
139
|
optional :trial_period_days, Integer, nil?: true
|
|
111
140
|
|
|
141
|
+
# @!attribute unlimited_stock
|
|
142
|
+
# Limits/doesn't limit the number of units available for purchase.
|
|
143
|
+
#
|
|
144
|
+
# @return [Boolean, nil]
|
|
145
|
+
optional :unlimited_stock, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
146
|
+
|
|
112
147
|
# @!attribute visibility
|
|
113
148
|
# Visibility of a resource
|
|
114
149
|
#
|
|
115
150
|
# @return [Symbol, WhopSDK::Models::Visibility, nil]
|
|
116
151
|
optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
|
|
117
152
|
|
|
118
|
-
# @!method initialize(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: {})
|
|
153
|
+
# @!method initialize(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: {})
|
|
119
154
|
# Some parameter documentations has been truncated, see
|
|
120
155
|
# {WhopSDK::Models::PlanCreateParams} for more details.
|
|
121
156
|
#
|
|
@@ -123,7 +158,7 @@ module WhopSDK
|
|
|
123
158
|
#
|
|
124
159
|
# @param product_id [String] The product the plan is related to.
|
|
125
160
|
#
|
|
126
|
-
# @param billing_period [Integer, nil] The interval at which the plan charges (renewal plans).
|
|
161
|
+
# @param billing_period [Integer, nil] The interval in days at which the plan charges (renewal plans).
|
|
127
162
|
#
|
|
128
163
|
# @param currency [Symbol, WhopSDK::Models::Currency, nil] The available currencies on the platform
|
|
129
164
|
#
|
|
@@ -133,7 +168,7 @@ module WhopSDK
|
|
|
133
168
|
#
|
|
134
169
|
# @param expiration_days [Integer, nil] The interval at which the plan charges (expiration plans).
|
|
135
170
|
#
|
|
136
|
-
# @param image [WhopSDK::Models::PlanCreateParams::Image, nil] An image for the plan. This will be visible on the product page to customers.
|
|
171
|
+
# @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.
|
|
137
172
|
#
|
|
138
173
|
# @param initial_price [Float, nil] An additional amount charged upon first purchase. Use only if a one time payment
|
|
139
174
|
#
|
|
@@ -141,16 +176,26 @@ module WhopSDK
|
|
|
141
176
|
#
|
|
142
177
|
# @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
|
|
143
178
|
#
|
|
179
|
+
# @param payment_method_configuration [WhopSDK::Models::PlanCreateParams::PaymentMethodConfiguration, nil] The explicit payment method configuration for the plan. If not provided, the pla
|
|
180
|
+
#
|
|
144
181
|
# @param plan_type [Symbol, WhopSDK::Models::PlanType, nil] The type of plan that can be attached to an access pass
|
|
145
182
|
#
|
|
146
183
|
# @param release_method [Symbol, WhopSDK::Models::ReleaseMethod, nil] The methods of how a plan can be released.
|
|
147
184
|
#
|
|
148
185
|
# @param renewal_price [Float, nil] The amount the customer is charged every billing period. Use only if a recurring
|
|
149
186
|
#
|
|
187
|
+
# @param stock [Integer, nil] The number of units available for purchase.
|
|
188
|
+
#
|
|
189
|
+
# @param strike_through_initial_price [Float, nil] The price to display with a strikethrough for the initial price. Provided as a n
|
|
190
|
+
#
|
|
191
|
+
# @param strike_through_renewal_price [Float, nil] The price to display with a strikethrough for the renewal price. Provided as a n
|
|
192
|
+
#
|
|
150
193
|
# @param title [String, nil] The title of the plan. This will be visible on the product page to customers.
|
|
151
194
|
#
|
|
152
195
|
# @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
|
|
153
196
|
#
|
|
197
|
+
# @param unlimited_stock [Boolean, nil] Limits/doesn't limit the number of units available for purchase.
|
|
198
|
+
#
|
|
154
199
|
# @param visibility [Symbol, WhopSDK::Models::Visibility, nil] Visibility of a resource
|
|
155
200
|
#
|
|
156
201
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -206,32 +251,96 @@ module WhopSDK
|
|
|
206
251
|
# @param field_type [Symbol, :text] The type of the custom field.
|
|
207
252
|
end
|
|
208
253
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
#
|
|
254
|
+
# An image for the plan. This will be visible on the product page to customers.
|
|
255
|
+
module Image
|
|
256
|
+
extend WhopSDK::Internal::Type::Union
|
|
257
|
+
|
|
258
|
+
# Input for an attachment
|
|
259
|
+
variant -> { WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID }
|
|
260
|
+
|
|
261
|
+
# Input for an attachment
|
|
262
|
+
variant -> { WhopSDK::PlanCreateParams::Image::AttachmentInputWithID }
|
|
263
|
+
|
|
264
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
265
|
+
# @!attribute direct_upload_id
|
|
266
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
267
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
268
|
+
# mediaDirectUpload mutation.
|
|
269
|
+
#
|
|
270
|
+
# @return [String]
|
|
271
|
+
required :direct_upload_id, String
|
|
272
|
+
|
|
273
|
+
# @!method initialize(direct_upload_id:)
|
|
274
|
+
# Some parameter documentations has been truncated, see
|
|
275
|
+
# {WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID}
|
|
276
|
+
# for more details.
|
|
277
|
+
#
|
|
278
|
+
# Input for an attachment
|
|
279
|
+
#
|
|
280
|
+
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
284
|
+
# @!attribute id
|
|
285
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
286
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
287
|
+
# doing.
|
|
288
|
+
#
|
|
289
|
+
# @return [String]
|
|
290
|
+
required :id, String
|
|
291
|
+
|
|
292
|
+
# @!method initialize(id:)
|
|
293
|
+
# Some parameter documentations has been truncated, see
|
|
294
|
+
# {WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID} for more
|
|
295
|
+
# details.
|
|
296
|
+
#
|
|
297
|
+
# Input for an attachment
|
|
298
|
+
#
|
|
299
|
+
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
# @!method self.variants
|
|
303
|
+
# @return [Array(WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID)]
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
307
|
+
# @!attribute disabled
|
|
308
|
+
# An array of payment method identifiers that are explicitly disabled. Only
|
|
309
|
+
# applies if the include_platform_defaults is true.
|
|
214
310
|
#
|
|
215
|
-
# @return [
|
|
216
|
-
|
|
311
|
+
# @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
|
|
312
|
+
required :disabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
|
|
217
313
|
|
|
218
|
-
# @!attribute
|
|
219
|
-
#
|
|
220
|
-
#
|
|
221
|
-
#
|
|
314
|
+
# @!attribute enabled
|
|
315
|
+
# An array of payment method identifiers that are explicitly enabled. This means
|
|
316
|
+
# these payment methods will be shown on checkout. Example use case is to only
|
|
317
|
+
# enable a specific payment method like cashapp, or extending the platform
|
|
318
|
+
# defaults with additional methods.
|
|
222
319
|
#
|
|
223
|
-
# @return [
|
|
224
|
-
|
|
320
|
+
# @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
|
|
321
|
+
required :enabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
|
|
322
|
+
|
|
323
|
+
# @!attribute include_platform_defaults
|
|
324
|
+
# Whether Whop's platform default payment method enablement settings are included
|
|
325
|
+
# in this configuration. The full list of default payment methods can be found in
|
|
326
|
+
# the documentation at docs.whop.com/payments.
|
|
327
|
+
#
|
|
328
|
+
# @return [Boolean]
|
|
329
|
+
required :include_platform_defaults, WhopSDK::Internal::Type::Boolean
|
|
225
330
|
|
|
226
|
-
# @!method initialize(
|
|
331
|
+
# @!method initialize(disabled:, enabled:, include_platform_defaults:)
|
|
227
332
|
# Some parameter documentations has been truncated, see
|
|
228
|
-
# {WhopSDK::Models::PlanCreateParams::
|
|
333
|
+
# {WhopSDK::Models::PlanCreateParams::PaymentMethodConfiguration} for more
|
|
334
|
+
# details.
|
|
335
|
+
#
|
|
336
|
+
# The explicit payment method configuration for the plan. If not provided, the
|
|
337
|
+
# platform or company's defaults will apply.
|
|
229
338
|
#
|
|
230
|
-
#
|
|
339
|
+
# @param disabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly disabled. Only applie
|
|
231
340
|
#
|
|
232
|
-
# @param
|
|
341
|
+
# @param enabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly enabled. This means t
|
|
233
342
|
#
|
|
234
|
-
# @param
|
|
343
|
+
# @param include_platform_defaults [Boolean] Whether Whop's platform default payment method enablement settings are included
|
|
235
344
|
end
|
|
236
345
|
end
|
|
237
346
|
end
|
|
@@ -70,6 +70,14 @@ module WhopSDK
|
|
|
70
70
|
# @return [Integer, nil]
|
|
71
71
|
required :member_count, Integer, nil?: true
|
|
72
72
|
|
|
73
|
+
# @!attribute payment_method_configuration
|
|
74
|
+
# The explicit payment method configuration for the plan, if any.
|
|
75
|
+
#
|
|
76
|
+
# @return [WhopSDK::Models::PlanListResponse::PaymentMethodConfiguration, nil]
|
|
77
|
+
required :payment_method_configuration,
|
|
78
|
+
-> { WhopSDK::Models::PlanListResponse::PaymentMethodConfiguration },
|
|
79
|
+
nil?: true
|
|
80
|
+
|
|
73
81
|
# @!attribute plan_type
|
|
74
82
|
# Indicates if the plan is a one time payment or recurring.
|
|
75
83
|
#
|
|
@@ -100,12 +108,30 @@ module WhopSDK
|
|
|
100
108
|
# @return [Float]
|
|
101
109
|
required :renewal_price, Float
|
|
102
110
|
|
|
111
|
+
# @!attribute stock
|
|
112
|
+
# The number of units available for purchase. Only displayed to authorized actors
|
|
113
|
+
#
|
|
114
|
+
# @return [Integer, nil]
|
|
115
|
+
required :stock, Integer, nil?: true
|
|
116
|
+
|
|
117
|
+
# @!attribute title
|
|
118
|
+
# The title of the plan. This will be visible on the product page to customers.
|
|
119
|
+
#
|
|
120
|
+
# @return [String, nil]
|
|
121
|
+
required :title, String, nil?: true
|
|
122
|
+
|
|
103
123
|
# @!attribute trial_period_days
|
|
104
124
|
# The number of free trial days added before a renewal plan.
|
|
105
125
|
#
|
|
106
126
|
# @return [Integer, nil]
|
|
107
127
|
required :trial_period_days, Integer, nil?: true
|
|
108
128
|
|
|
129
|
+
# @!attribute unlimited_stock
|
|
130
|
+
# Limits/doesn't limit the number of units available for purchase.
|
|
131
|
+
#
|
|
132
|
+
# @return [Boolean]
|
|
133
|
+
required :unlimited_stock, WhopSDK::Internal::Type::Boolean
|
|
134
|
+
|
|
109
135
|
# @!attribute updated_at
|
|
110
136
|
# When the plan was last updated.
|
|
111
137
|
#
|
|
@@ -118,7 +144,7 @@ module WhopSDK
|
|
|
118
144
|
# @return [Symbol, WhopSDK::Models::Visibility]
|
|
119
145
|
required :visibility, enum: -> { WhopSDK::Visibility }
|
|
120
146
|
|
|
121
|
-
# @!method initialize(id:, billing_period:, company:, created_at:, currency:, description:, expiration_days:, initial_price:, internal_notes:, invoice:, member_count:, plan_type:, product:, purchase_url:, release_method:, renewal_price:, trial_period_days:, updated_at:, visibility:)
|
|
147
|
+
# @!method initialize(id:, billing_period:, company:, created_at:, currency:, description:, expiration_days:, initial_price:, internal_notes:, invoice:, member_count:, payment_method_configuration:, plan_type:, product:, purchase_url:, release_method:, renewal_price:, stock:, title:, trial_period_days:, unlimited_stock:, updated_at:, visibility:)
|
|
122
148
|
# An object representing a (sanitized) plan of an access pass.
|
|
123
149
|
#
|
|
124
150
|
# @param id [String] The internal ID of the plan.
|
|
@@ -143,6 +169,8 @@ module WhopSDK
|
|
|
143
169
|
#
|
|
144
170
|
# @param member_count [Integer, nil] The number of members for the plan.
|
|
145
171
|
#
|
|
172
|
+
# @param payment_method_configuration [WhopSDK::Models::PlanListResponse::PaymentMethodConfiguration, nil] The explicit payment method configuration for the plan, if any.
|
|
173
|
+
#
|
|
146
174
|
# @param plan_type [Symbol, WhopSDK::Models::PlanType] Indicates if the plan is a one time payment or recurring.
|
|
147
175
|
#
|
|
148
176
|
# @param product [WhopSDK::Models::PlanListResponse::Product, nil] The access pass for the plan.
|
|
@@ -153,8 +181,14 @@ module WhopSDK
|
|
|
153
181
|
#
|
|
154
182
|
# @param renewal_price [Float] The price a person has to pay for a plan on the renewal purchase.
|
|
155
183
|
#
|
|
184
|
+
# @param stock [Integer, nil] The number of units available for purchase. Only displayed to authorized actors
|
|
185
|
+
#
|
|
186
|
+
# @param title [String, nil] The title of the plan. This will be visible on the product page to customers.
|
|
187
|
+
#
|
|
156
188
|
# @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
|
|
157
189
|
#
|
|
190
|
+
# @param unlimited_stock [Boolean] Limits/doesn't limit the number of units available for purchase.
|
|
191
|
+
#
|
|
158
192
|
# @param updated_at [Time] When the plan was last updated.
|
|
159
193
|
#
|
|
160
194
|
# @param visibility [Symbol, WhopSDK::Models::Visibility] Shows or hides the plan from public/business view.
|
|
@@ -195,6 +229,46 @@ module WhopSDK
|
|
|
195
229
|
# @param id [String] The ID of the invoice.
|
|
196
230
|
end
|
|
197
231
|
|
|
232
|
+
# @see WhopSDK::Models::PlanListResponse#payment_method_configuration
|
|
233
|
+
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
234
|
+
# @!attribute disabled
|
|
235
|
+
# An array of payment method identifiers that are explicitly disabled. Only
|
|
236
|
+
# applies if the include_platform_defaults is true.
|
|
237
|
+
#
|
|
238
|
+
# @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
|
|
239
|
+
required :disabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
|
|
240
|
+
|
|
241
|
+
# @!attribute enabled
|
|
242
|
+
# An array of payment method identifiers that are explicitly enabled. This means
|
|
243
|
+
# these payment methods will be shown on checkout. Example use case is to only
|
|
244
|
+
# enable a specific payment method like cashapp, or extending the platform
|
|
245
|
+
# defaults with additional methods.
|
|
246
|
+
#
|
|
247
|
+
# @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
|
|
248
|
+
required :enabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
|
|
249
|
+
|
|
250
|
+
# @!attribute include_platform_defaults
|
|
251
|
+
# Whether Whop's platform default payment method enablement settings are included
|
|
252
|
+
# in this configuration. The full list of default payment methods can be found in
|
|
253
|
+
# the documentation at docs.whop.com/payments.
|
|
254
|
+
#
|
|
255
|
+
# @return [Boolean]
|
|
256
|
+
required :include_platform_defaults, WhopSDK::Internal::Type::Boolean
|
|
257
|
+
|
|
258
|
+
# @!method initialize(disabled:, enabled:, include_platform_defaults:)
|
|
259
|
+
# Some parameter documentations has been truncated, see
|
|
260
|
+
# {WhopSDK::Models::PlanListResponse::PaymentMethodConfiguration} for more
|
|
261
|
+
# details.
|
|
262
|
+
#
|
|
263
|
+
# The explicit payment method configuration for the plan, if any.
|
|
264
|
+
#
|
|
265
|
+
# @param disabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly disabled. Only applie
|
|
266
|
+
#
|
|
267
|
+
# @param enabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly enabled. This means t
|
|
268
|
+
#
|
|
269
|
+
# @param include_platform_defaults [Boolean] Whether Whop's platform default payment method enablement settings are included
|
|
270
|
+
end
|
|
271
|
+
|
|
198
272
|
# @see WhopSDK::Models::PlanListResponse#product
|
|
199
273
|
class Product < WhopSDK::Internal::Type::BaseModel
|
|
200
274
|
# @!attribute id
|