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
|
@@ -7,6 +7,12 @@ module WhopSDK
|
|
|
7
7
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include WhopSDK::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute plan
|
|
11
|
+
# Pass this object to create a new plan for this checkout configuration
|
|
12
|
+
#
|
|
13
|
+
# @return [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan]
|
|
14
|
+
required :plan, -> { WhopSDK::CheckoutConfigurationCreateParams::Plan }
|
|
15
|
+
|
|
10
16
|
# @!attribute affiliate_code
|
|
11
17
|
# The affiliate code to use for the checkout configuration
|
|
12
18
|
#
|
|
@@ -19,33 +25,27 @@ module WhopSDK
|
|
|
19
25
|
# @return [Hash{Symbol=>Object}, nil]
|
|
20
26
|
optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
21
27
|
|
|
22
|
-
# @!attribute
|
|
23
|
-
#
|
|
28
|
+
# @!attribute redirect_url
|
|
29
|
+
# The URL to redirect the user to after the checkout configuration is created
|
|
24
30
|
#
|
|
25
|
-
# @return [
|
|
26
|
-
optional :
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :redirect_url, String, nil?: true
|
|
27
33
|
|
|
28
34
|
# @!attribute plan_id
|
|
29
35
|
# The ID of the plan to use for the checkout configuration
|
|
30
36
|
#
|
|
31
|
-
# @return [String
|
|
32
|
-
|
|
37
|
+
# @return [String]
|
|
38
|
+
required :plan_id, String
|
|
33
39
|
|
|
34
|
-
# @!
|
|
35
|
-
#
|
|
40
|
+
# @!method initialize(plan:, plan_id:, affiliate_code: nil, metadata: nil, redirect_url: nil, request_options: {})
|
|
41
|
+
# @param plan [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan] Pass this object to create a new plan for this checkout configuration
|
|
42
|
+
#
|
|
43
|
+
# @param plan_id [String] The ID of the plan to use for the checkout configuration
|
|
36
44
|
#
|
|
37
|
-
# @return [String, nil]
|
|
38
|
-
optional :redirect_url, String, nil?: true
|
|
39
|
-
|
|
40
|
-
# @!method initialize(affiliate_code: nil, metadata: nil, plan: nil, plan_id: nil, redirect_url: nil, request_options: {})
|
|
41
45
|
# @param affiliate_code [String, nil] The affiliate code to use for the checkout configuration
|
|
42
46
|
#
|
|
43
47
|
# @param metadata [Hash{Symbol=>Object}, nil] The metadata to use for the checkout configuration
|
|
44
48
|
#
|
|
45
|
-
# @param plan [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan, nil] Pass this object to create a new plan for this checkout configuration
|
|
46
|
-
#
|
|
47
|
-
# @param plan_id [String, nil] The ID of the plan to use for the checkout configuration
|
|
48
|
-
#
|
|
49
49
|
# @param redirect_url [String, nil] The URL to redirect the user to after the checkout configuration is created
|
|
50
50
|
#
|
|
51
51
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -101,8 +101,8 @@ module WhopSDK
|
|
|
101
101
|
# @!attribute image
|
|
102
102
|
# An image for the plan. This will be visible on the product page to customers.
|
|
103
103
|
#
|
|
104
|
-
# @return [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image, nil]
|
|
105
|
-
optional :image, -> { WhopSDK::CheckoutConfigurationCreateParams::Plan::Image }, nil?: true
|
|
104
|
+
# @return [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID, nil]
|
|
105
|
+
optional :image, union: -> { WhopSDK::CheckoutConfigurationCreateParams::Plan::Image }, nil?: true
|
|
106
106
|
|
|
107
107
|
# @!attribute initial_price
|
|
108
108
|
# An additional amount charged upon first purchase.
|
|
@@ -123,14 +123,30 @@ module WhopSDK
|
|
|
123
123
|
# @return [Symbol, WhopSDK::Models::TaxType, nil]
|
|
124
124
|
optional :override_tax_type, enum: -> { WhopSDK::TaxType }, nil?: true
|
|
125
125
|
|
|
126
|
+
# @!attribute payment_method_configuration
|
|
127
|
+
# The explicit payment method configuration for the plan. If not provided, the
|
|
128
|
+
# platform or company's defaults will apply.
|
|
129
|
+
#
|
|
130
|
+
# @return [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration, nil]
|
|
131
|
+
optional :payment_method_configuration,
|
|
132
|
+
-> { WhopSDK::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration },
|
|
133
|
+
nil?: true
|
|
134
|
+
|
|
126
135
|
# @!attribute plan_type
|
|
127
136
|
# The type of plan that can be attached to an access pass
|
|
128
137
|
#
|
|
129
138
|
# @return [Symbol, WhopSDK::Models::PlanType, nil]
|
|
130
139
|
optional :plan_type, enum: -> { WhopSDK::PlanType }, nil?: true
|
|
131
140
|
|
|
141
|
+
# @!attribute product
|
|
142
|
+
# Pass this object to create a new product for this plan. We will use the product
|
|
143
|
+
# external identifier to find or create an existing product.
|
|
144
|
+
#
|
|
145
|
+
# @return [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Product, nil]
|
|
146
|
+
optional :product, -> { WhopSDK::CheckoutConfigurationCreateParams::Plan::Product }, nil?: true
|
|
147
|
+
|
|
132
148
|
# @!attribute product_id
|
|
133
|
-
# The product the plan is related to.
|
|
149
|
+
# The product the plan is related to. Either this or product is required.
|
|
134
150
|
#
|
|
135
151
|
# @return [String, nil]
|
|
136
152
|
optional :product_id, String, nil?: true
|
|
@@ -165,7 +181,7 @@ module WhopSDK
|
|
|
165
181
|
# @return [Symbol, WhopSDK::Models::Visibility, nil]
|
|
166
182
|
optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
|
|
167
183
|
|
|
168
|
-
# @!method initialize(company_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, force_create_new_plan: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, plan_type: nil, product_id: nil, release_method: nil, renewal_price: nil, title: nil, trial_period_days: nil, visibility: nil)
|
|
184
|
+
# @!method initialize(company_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, force_create_new_plan: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, product: nil, product_id: nil, release_method: nil, renewal_price: nil, title: nil, trial_period_days: nil, visibility: nil)
|
|
169
185
|
# Some parameter documentations has been truncated, see
|
|
170
186
|
# {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan} for more details.
|
|
171
187
|
#
|
|
@@ -185,7 +201,7 @@ module WhopSDK
|
|
|
185
201
|
#
|
|
186
202
|
# @param force_create_new_plan [Boolean, nil] Whether to force the creation of a new plan even if one with the same attributes
|
|
187
203
|
#
|
|
188
|
-
# @param image [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image, nil] An image for the plan. This will be visible on the product page to customers.
|
|
204
|
+
# @param image [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID, nil] An image for the plan. This will be visible on the product page to customers.
|
|
189
205
|
#
|
|
190
206
|
# @param initial_price [Float, nil] An additional amount charged upon first purchase.
|
|
191
207
|
#
|
|
@@ -193,9 +209,13 @@ module WhopSDK
|
|
|
193
209
|
#
|
|
194
210
|
# @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
|
|
195
211
|
#
|
|
212
|
+
# @param payment_method_configuration [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration, nil] The explicit payment method configuration for the plan. If not provided, the pla
|
|
213
|
+
#
|
|
196
214
|
# @param plan_type [Symbol, WhopSDK::Models::PlanType, nil] The type of plan that can be attached to an access pass
|
|
197
215
|
#
|
|
198
|
-
# @param
|
|
216
|
+
# @param product [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Product, nil] Pass this object to create a new product for this plan. We will use the product
|
|
217
|
+
#
|
|
218
|
+
# @param product_id [String, nil] The product the plan is related to. Either this or product is required.
|
|
199
219
|
#
|
|
200
220
|
# @param release_method [Symbol, WhopSDK::Models::ReleaseMethod, nil] The methods of how a plan can be released.
|
|
201
221
|
#
|
|
@@ -258,34 +278,227 @@ module WhopSDK
|
|
|
258
278
|
# @param field_type [Symbol, :text] The type of the custom field.
|
|
259
279
|
end
|
|
260
280
|
|
|
281
|
+
# An image for the plan. This will be visible on the product page to customers.
|
|
282
|
+
#
|
|
261
283
|
# @see WhopSDK::Models::CheckoutConfigurationCreateParams::Plan#image
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
#
|
|
266
|
-
|
|
284
|
+
module Image
|
|
285
|
+
extend WhopSDK::Internal::Type::Union
|
|
286
|
+
|
|
287
|
+
# Input for an attachment
|
|
288
|
+
variant -> { WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID }
|
|
289
|
+
|
|
290
|
+
# Input for an attachment
|
|
291
|
+
variant -> { WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID }
|
|
292
|
+
|
|
293
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
294
|
+
# @!attribute direct_upload_id
|
|
295
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
296
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
297
|
+
# mediaDirectUpload mutation.
|
|
298
|
+
#
|
|
299
|
+
# @return [String]
|
|
300
|
+
required :direct_upload_id, String
|
|
301
|
+
|
|
302
|
+
# @!method initialize(direct_upload_id:)
|
|
303
|
+
# Some parameter documentations has been truncated, see
|
|
304
|
+
# {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID}
|
|
305
|
+
# for more details.
|
|
306
|
+
#
|
|
307
|
+
# Input for an attachment
|
|
308
|
+
#
|
|
309
|
+
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
313
|
+
# @!attribute id
|
|
314
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
315
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
316
|
+
# doing.
|
|
317
|
+
#
|
|
318
|
+
# @return [String]
|
|
319
|
+
required :id, String
|
|
320
|
+
|
|
321
|
+
# @!method initialize(id:)
|
|
322
|
+
# Some parameter documentations has been truncated, see
|
|
323
|
+
# {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID}
|
|
324
|
+
# for more details.
|
|
325
|
+
#
|
|
326
|
+
# Input for an attachment
|
|
327
|
+
#
|
|
328
|
+
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# @!method self.variants
|
|
332
|
+
# @return [Array(WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID)]
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# @see WhopSDK::Models::CheckoutConfigurationCreateParams::Plan#payment_method_configuration
|
|
336
|
+
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
337
|
+
# @!attribute disabled
|
|
338
|
+
# An array of payment method identifiers that are explicitly disabled. Only
|
|
339
|
+
# applies if the include_platform_defaults is true.
|
|
340
|
+
#
|
|
341
|
+
# @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
|
|
342
|
+
required :disabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
|
|
343
|
+
|
|
344
|
+
# @!attribute enabled
|
|
345
|
+
# An array of payment method identifiers that are explicitly enabled. This means
|
|
346
|
+
# these payment methods will be shown on checkout. Example use case is to only
|
|
347
|
+
# enable a specific payment method like cashapp, or extending the platform
|
|
348
|
+
# defaults with additional methods.
|
|
349
|
+
#
|
|
350
|
+
# @return [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>]
|
|
351
|
+
required :enabled, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::PaymentMethodTypes] }
|
|
352
|
+
|
|
353
|
+
# @!attribute include_platform_defaults
|
|
354
|
+
# Whether Whop's platform default payment method enablement settings are included
|
|
355
|
+
# in this configuration. The full list of default payment methods can be found in
|
|
356
|
+
# the documentation at docs.whop.com/payments.
|
|
357
|
+
#
|
|
358
|
+
# @return [Boolean]
|
|
359
|
+
required :include_platform_defaults, WhopSDK::Internal::Type::Boolean
|
|
360
|
+
|
|
361
|
+
# @!method initialize(disabled:, enabled:, include_platform_defaults:)
|
|
362
|
+
# Some parameter documentations has been truncated, see
|
|
363
|
+
# {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration}
|
|
364
|
+
# for more details.
|
|
365
|
+
#
|
|
366
|
+
# The explicit payment method configuration for the plan. If not provided, the
|
|
367
|
+
# platform or company's defaults will apply.
|
|
368
|
+
#
|
|
369
|
+
# @param disabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly disabled. Only applie
|
|
370
|
+
#
|
|
371
|
+
# @param enabled [Array<Symbol, WhopSDK::Models::PaymentMethodTypes>] An array of payment method identifiers that are explicitly enabled. This means t
|
|
372
|
+
#
|
|
373
|
+
# @param include_platform_defaults [Boolean] Whether Whop's platform default payment method enablement settings are included
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# @see WhopSDK::Models::CheckoutConfigurationCreateParams::Plan#product
|
|
377
|
+
class Product < WhopSDK::Internal::Type::BaseModel
|
|
378
|
+
# @!attribute external_identifier
|
|
379
|
+
# A unique ID used to find or create a product. When provided during creation, we
|
|
380
|
+
# will look for an existing product with this external identifier — if found, it
|
|
381
|
+
# will be updated; otherwise, a new product will be created.
|
|
382
|
+
#
|
|
383
|
+
# @return [String]
|
|
384
|
+
required :external_identifier, String
|
|
385
|
+
|
|
386
|
+
# @!attribute title
|
|
387
|
+
# The title of the product.
|
|
388
|
+
#
|
|
389
|
+
# @return [String]
|
|
390
|
+
required :title, String
|
|
391
|
+
|
|
392
|
+
# @!attribute business_type
|
|
393
|
+
# The different business types a company can be.
|
|
394
|
+
#
|
|
395
|
+
# @return [Symbol, WhopSDK::Models::BusinessTypes, nil]
|
|
396
|
+
optional :business_type, enum: -> { WhopSDK::BusinessTypes }, nil?: true
|
|
397
|
+
|
|
398
|
+
# @!attribute collect_shipping_address
|
|
399
|
+
# Whether or not to collect shipping information at checkout from the customer.
|
|
400
|
+
#
|
|
401
|
+
# @return [Boolean, nil]
|
|
402
|
+
optional :collect_shipping_address, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
403
|
+
|
|
404
|
+
# @!attribute custom_statement_descriptor
|
|
405
|
+
# The custom statement descriptor for the product i.e. WHOP\*SPORTS, must be
|
|
406
|
+
# between 5 and 22 characters, contain at least one letter, and not contain any of
|
|
407
|
+
# the following characters: <, >, \, ', "
|
|
267
408
|
#
|
|
268
409
|
# @return [String, nil]
|
|
269
|
-
optional :
|
|
410
|
+
optional :custom_statement_descriptor, String, nil?: true
|
|
270
411
|
|
|
271
|
-
# @!attribute
|
|
272
|
-
#
|
|
273
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
274
|
-
# mediaDirectUpload mutation.
|
|
412
|
+
# @!attribute description
|
|
413
|
+
# A written description of the product.
|
|
275
414
|
#
|
|
276
415
|
# @return [String, nil]
|
|
277
|
-
optional :
|
|
416
|
+
optional :description, String, nil?: true
|
|
278
417
|
|
|
279
|
-
# @!
|
|
418
|
+
# @!attribute global_affiliate_percentage
|
|
419
|
+
# The percentage of the revenue that goes to the global affiliate program.
|
|
420
|
+
#
|
|
421
|
+
# @return [Float, nil]
|
|
422
|
+
optional :global_affiliate_percentage, Float, nil?: true
|
|
423
|
+
|
|
424
|
+
# @!attribute global_affiliate_status
|
|
425
|
+
# The different statuses of the global affiliate program for an access pass.
|
|
426
|
+
#
|
|
427
|
+
# @return [Symbol, WhopSDK::Models::GlobalAffiliateStatus, nil]
|
|
428
|
+
optional :global_affiliate_status, enum: -> { WhopSDK::GlobalAffiliateStatus }, nil?: true
|
|
429
|
+
|
|
430
|
+
# @!attribute headline
|
|
431
|
+
# The headline of the product.
|
|
432
|
+
#
|
|
433
|
+
# @return [String, nil]
|
|
434
|
+
optional :headline, String, nil?: true
|
|
435
|
+
|
|
436
|
+
# @!attribute industry_type
|
|
437
|
+
# The different industry types a company can be in.
|
|
438
|
+
#
|
|
439
|
+
# @return [Symbol, WhopSDK::Models::IndustryTypes, nil]
|
|
440
|
+
optional :industry_type, enum: -> { WhopSDK::IndustryTypes }, nil?: true
|
|
441
|
+
|
|
442
|
+
# @!attribute product_tax_code_id
|
|
443
|
+
# The ID of the product tax code to apply to this product.
|
|
444
|
+
#
|
|
445
|
+
# @return [String, nil]
|
|
446
|
+
optional :product_tax_code_id, String, nil?: true
|
|
447
|
+
|
|
448
|
+
# @!attribute redirect_purchase_url
|
|
449
|
+
# The URL to redirect the customer to after a purchase.
|
|
450
|
+
#
|
|
451
|
+
# @return [String, nil]
|
|
452
|
+
optional :redirect_purchase_url, String, nil?: true
|
|
453
|
+
|
|
454
|
+
# @!attribute route
|
|
455
|
+
# The route of the product.
|
|
456
|
+
#
|
|
457
|
+
# @return [String, nil]
|
|
458
|
+
optional :route, String, nil?: true
|
|
459
|
+
|
|
460
|
+
# @!attribute visibility
|
|
461
|
+
# Visibility of a resource
|
|
462
|
+
#
|
|
463
|
+
# @return [Symbol, WhopSDK::Models::Visibility, nil]
|
|
464
|
+
optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
|
|
465
|
+
|
|
466
|
+
# @!method initialize(external_identifier:, title:, business_type: nil, collect_shipping_address: nil, custom_statement_descriptor: nil, description: nil, global_affiliate_percentage: nil, global_affiliate_status: nil, headline: nil, industry_type: nil, product_tax_code_id: nil, redirect_purchase_url: nil, route: nil, visibility: nil)
|
|
280
467
|
# Some parameter documentations has been truncated, see
|
|
281
|
-
# {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::
|
|
468
|
+
# {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Product} for more
|
|
282
469
|
# details.
|
|
283
470
|
#
|
|
284
|
-
#
|
|
471
|
+
# Pass this object to create a new product for this plan. We will use the product
|
|
472
|
+
# external identifier to find or create an existing product.
|
|
473
|
+
#
|
|
474
|
+
# @param external_identifier [String] A unique ID used to find or create a product. When provided during creation, we
|
|
475
|
+
#
|
|
476
|
+
# @param title [String] The title of the product.
|
|
477
|
+
#
|
|
478
|
+
# @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
|
|
479
|
+
#
|
|
480
|
+
# @param collect_shipping_address [Boolean, nil] Whether or not to collect shipping information at checkout from the customer.
|
|
481
|
+
#
|
|
482
|
+
# @param custom_statement_descriptor [String, nil] The custom statement descriptor for the product i.e. WHOP\*SPORTS, must be
|
|
483
|
+
# betwee
|
|
484
|
+
#
|
|
485
|
+
# @param description [String, nil] A written description of the product.
|
|
486
|
+
#
|
|
487
|
+
# @param global_affiliate_percentage [Float, nil] The percentage of the revenue that goes to the global affiliate program.
|
|
488
|
+
#
|
|
489
|
+
# @param global_affiliate_status [Symbol, WhopSDK::Models::GlobalAffiliateStatus, nil] The different statuses of the global affiliate program for an access pass.
|
|
490
|
+
#
|
|
491
|
+
# @param headline [String, nil] The headline of the product.
|
|
492
|
+
#
|
|
493
|
+
# @param industry_type [Symbol, WhopSDK::Models::IndustryTypes, nil] The different industry types a company can be in.
|
|
494
|
+
#
|
|
495
|
+
# @param product_tax_code_id [String, nil] The ID of the product tax code to apply to this product.
|
|
496
|
+
#
|
|
497
|
+
# @param redirect_purchase_url [String, nil] The URL to redirect the customer to after a purchase.
|
|
285
498
|
#
|
|
286
|
-
# @param
|
|
499
|
+
# @param route [String, nil] The route of the product.
|
|
287
500
|
#
|
|
288
|
-
# @param
|
|
501
|
+
# @param visibility [Symbol, WhopSDK::Models::Visibility, nil] Visibility of a resource
|
|
289
502
|
end
|
|
290
503
|
end
|
|
291
504
|
end
|
|
@@ -35,7 +35,8 @@ module WhopSDK
|
|
|
35
35
|
required :plan, -> { WhopSDK::Models::CheckoutConfigurationListResponse::Plan }
|
|
36
36
|
|
|
37
37
|
# @!attribute purchase_url
|
|
38
|
-
#
|
|
38
|
+
# A URL you can send to customers to complete a checkout. It looks like
|
|
39
|
+
# `/checkout/plan_xxxx?session={id}`
|
|
39
40
|
#
|
|
40
41
|
# @return [String]
|
|
41
42
|
required :purchase_url, String
|
|
@@ -47,11 +48,13 @@ module WhopSDK
|
|
|
47
48
|
required :redirect_url, String, nil?: true
|
|
48
49
|
|
|
49
50
|
# @!method initialize(id:, affiliate_code:, company_id:, metadata:, plan:, purchase_url:, redirect_url:)
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
#
|
|
54
|
-
#
|
|
51
|
+
# Some parameter documentations has been truncated, see
|
|
52
|
+
# {WhopSDK::Models::CheckoutConfigurationListResponse} for more details.
|
|
53
|
+
#
|
|
54
|
+
# A checkout configuration object.
|
|
55
|
+
# Can be used to create a reusable custom configuration for a checkout, including attaching plans, affiliates and custom metadata to the checkout.
|
|
56
|
+
# This configuration can be re-used by multiple users.
|
|
57
|
+
# All successful payments and memberships resulting from a checkout will contain the passed metadata.
|
|
55
58
|
#
|
|
56
59
|
# @param id [String] The ID of the checkout configuration
|
|
57
60
|
#
|
|
@@ -63,7 +66,7 @@ module WhopSDK
|
|
|
63
66
|
#
|
|
64
67
|
# @param plan [WhopSDK::Models::CheckoutConfigurationListResponse::Plan] The plan to use for the checkout configuration
|
|
65
68
|
#
|
|
66
|
-
# @param purchase_url [String]
|
|
69
|
+
# @param purchase_url [String] A URL you can send to customers to complete a checkout. It looks like `/checkout
|
|
67
70
|
#
|
|
68
71
|
# @param redirect_url [String, nil] The URL to redirect the user to after the checkout configuration is created
|
|
69
72
|
|
|
@@ -45,6 +45,13 @@ module WhopSDK
|
|
|
45
45
|
# @return [Integer]
|
|
46
46
|
required :member_count, Integer
|
|
47
47
|
|
|
48
|
+
# @!attribute metadata
|
|
49
|
+
# A key-value store of data for the account, created/updated by the platform that
|
|
50
|
+
# made the account.
|
|
51
|
+
#
|
|
52
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
53
|
+
required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
54
|
+
|
|
48
55
|
# @!attribute owner_user
|
|
49
56
|
# The user who owns this company
|
|
50
57
|
#
|
|
@@ -87,7 +94,10 @@ module WhopSDK
|
|
|
87
94
|
# @return [Boolean]
|
|
88
95
|
required :verified, WhopSDK::Internal::Type::Boolean
|
|
89
96
|
|
|
90
|
-
# @!method initialize(id:, business_type:, created_at:, description:, industry_type:, logo:, member_count:, owner_user:, published_reviews_count:, route:, social_links:, title:, updated_at:, verified:)
|
|
97
|
+
# @!method initialize(id:, business_type:, created_at:, description:, industry_type:, logo:, member_count:, metadata:, owner_user:, published_reviews_count:, route:, social_links:, title:, updated_at:, verified:)
|
|
98
|
+
# Some parameter documentations has been truncated, see {WhopSDK::Models::Company}
|
|
99
|
+
# for more details.
|
|
100
|
+
#
|
|
91
101
|
# An object representing a (sanitized) company.
|
|
92
102
|
#
|
|
93
103
|
# @param id [String] The ID (tag) of the company.
|
|
@@ -104,6 +114,8 @@ module WhopSDK
|
|
|
104
114
|
#
|
|
105
115
|
# @param member_count [Integer] The number of members in the company.
|
|
106
116
|
#
|
|
117
|
+
# @param metadata [Hash{Symbol=>Object}, nil] A key-value store of data for the account, created/updated by the platform that
|
|
118
|
+
#
|
|
107
119
|
# @param owner_user [WhopSDK::Models::Company::OwnerUser] The user who owns this company
|
|
108
120
|
#
|
|
109
121
|
# @param published_reviews_count [Integer] The number of reviews that have been published for the company.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Companies#create
|
|
6
|
+
class CompanyCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute email
|
|
11
|
+
# The email of the user who the company will belong to.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :email, String
|
|
15
|
+
|
|
16
|
+
# @!attribute parent_company_id
|
|
17
|
+
# The company ID of the platform creating this company.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :parent_company_id, String
|
|
21
|
+
|
|
22
|
+
# @!attribute title
|
|
23
|
+
# The name of the company being created.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
required :title, String
|
|
27
|
+
|
|
28
|
+
# @!attribute metadata
|
|
29
|
+
# Additional metadata for the account
|
|
30
|
+
#
|
|
31
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
32
|
+
optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
33
|
+
|
|
34
|
+
# @!method initialize(email:, parent_company_id:, title:, metadata: nil, request_options: {})
|
|
35
|
+
# @param email [String] The email of the user who the company will belong to.
|
|
36
|
+
#
|
|
37
|
+
# @param parent_company_id [String] The company ID of the platform creating this company.
|
|
38
|
+
#
|
|
39
|
+
# @param title [String] The name of the company being created.
|
|
40
|
+
#
|
|
41
|
+
# @param metadata [Hash{Symbol=>Object}, nil] Additional metadata for the account
|
|
42
|
+
#
|
|
43
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Companies#list
|
|
6
|
+
class CompanyListParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute parent_company_id
|
|
11
|
+
# The ID of the parent company to list sub companies for
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :parent_company_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute after
|
|
17
|
+
# Returns the elements in the list that come after the specified cursor.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :after, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute before
|
|
23
|
+
# Returns the elements in the list that come before the specified cursor.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :before, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute direction
|
|
29
|
+
# The direction of the sort.
|
|
30
|
+
#
|
|
31
|
+
# @return [Symbol, WhopSDK::Models::Direction, nil]
|
|
32
|
+
optional :direction, enum: -> { WhopSDK::Direction }, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute first
|
|
35
|
+
# Returns the first _n_ elements from the list.
|
|
36
|
+
#
|
|
37
|
+
# @return [Integer, nil]
|
|
38
|
+
optional :first, Integer, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!attribute last
|
|
41
|
+
# Returns the last _n_ elements from the list.
|
|
42
|
+
#
|
|
43
|
+
# @return [Integer, nil]
|
|
44
|
+
optional :last, Integer, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!method initialize(parent_company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, request_options: {})
|
|
47
|
+
# @param parent_company_id [String] The ID of the parent company to list sub companies for
|
|
48
|
+
#
|
|
49
|
+
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
50
|
+
#
|
|
51
|
+
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
52
|
+
#
|
|
53
|
+
# @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
54
|
+
#
|
|
55
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
56
|
+
#
|
|
57
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
58
|
+
#
|
|
59
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|