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
|
@@ -16,9 +16,9 @@ module WhopSDK
|
|
|
16
16
|
# @!attribute attachments
|
|
17
17
|
# The attachments for this post
|
|
18
18
|
#
|
|
19
|
-
# @return [Array<WhopSDK::Models::ForumPostCreateParams::Attachment>, nil]
|
|
19
|
+
# @return [Array<WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID>, nil]
|
|
20
20
|
optional :attachments,
|
|
21
|
-
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::ForumPostCreateParams::Attachment] },
|
|
21
|
+
-> { WhopSDK::Internal::Type::ArrayOf[union: WhopSDK::ForumPostCreateParams::Attachment] },
|
|
22
22
|
nil?: true
|
|
23
23
|
|
|
24
24
|
# @!attribute content
|
|
@@ -80,7 +80,7 @@ module WhopSDK
|
|
|
80
80
|
#
|
|
81
81
|
# @param experience_id [String] The experience to create this post in
|
|
82
82
|
#
|
|
83
|
-
# @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment>, nil] The attachments for this post
|
|
83
|
+
# @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
|
|
84
84
|
#
|
|
85
85
|
# @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
|
|
86
86
|
#
|
|
@@ -100,32 +100,56 @@ module WhopSDK
|
|
|
100
100
|
#
|
|
101
101
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
107
|
-
# doing.
|
|
108
|
-
#
|
|
109
|
-
# @return [String, nil]
|
|
110
|
-
optional :id, String, nil?: true
|
|
103
|
+
# Input for an attachment
|
|
104
|
+
module Attachment
|
|
105
|
+
extend WhopSDK::Internal::Type::Union
|
|
111
106
|
|
|
112
|
-
#
|
|
113
|
-
|
|
114
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
115
|
-
# mediaDirectUpload mutation.
|
|
116
|
-
#
|
|
117
|
-
# @return [String, nil]
|
|
118
|
-
optional :direct_upload_id, String, nil?: true
|
|
107
|
+
# Input for an attachment
|
|
108
|
+
variant -> { WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID }
|
|
119
109
|
|
|
120
|
-
#
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
110
|
+
# Input for an attachment
|
|
111
|
+
variant -> { WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID }
|
|
112
|
+
|
|
113
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
114
|
+
# @!attribute direct_upload_id
|
|
115
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
116
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
117
|
+
# mediaDirectUpload mutation.
|
|
118
|
+
#
|
|
119
|
+
# @return [String]
|
|
120
|
+
required :direct_upload_id, String
|
|
121
|
+
|
|
122
|
+
# @!method initialize(direct_upload_id:)
|
|
123
|
+
# Some parameter documentations has been truncated, see
|
|
124
|
+
# {WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID}
|
|
125
|
+
# for more details.
|
|
126
|
+
#
|
|
127
|
+
# Input for an attachment
|
|
128
|
+
#
|
|
129
|
+
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
133
|
+
# @!attribute id
|
|
134
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
135
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
136
|
+
# doing.
|
|
137
|
+
#
|
|
138
|
+
# @return [String]
|
|
139
|
+
required :id, String
|
|
140
|
+
|
|
141
|
+
# @!method initialize(id:)
|
|
142
|
+
# Some parameter documentations has been truncated, see
|
|
143
|
+
# {WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID} for
|
|
144
|
+
# more details.
|
|
145
|
+
#
|
|
146
|
+
# Input for an attachment
|
|
147
|
+
#
|
|
148
|
+
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# @!method self.variants
|
|
152
|
+
# @return [Array(WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID)]
|
|
129
153
|
end
|
|
130
154
|
|
|
131
155
|
class Poll < WhopSDK::Internal::Type::BaseModel
|
|
@@ -22,6 +22,12 @@ module WhopSDK
|
|
|
22
22
|
# @return [String, nil]
|
|
23
23
|
required :content, String, nil?: true
|
|
24
24
|
|
|
25
|
+
# @!attribute created_at
|
|
26
|
+
# The timestamp when the post was created
|
|
27
|
+
#
|
|
28
|
+
# @return [Time]
|
|
29
|
+
required :created_at, Time
|
|
30
|
+
|
|
25
31
|
# @!attribute is_edited
|
|
26
32
|
# Whether the forum post has been edited
|
|
27
33
|
#
|
|
@@ -58,6 +64,12 @@ module WhopSDK
|
|
|
58
64
|
# @return [String, nil]
|
|
59
65
|
required :title, String, nil?: true
|
|
60
66
|
|
|
67
|
+
# @!attribute updated_at
|
|
68
|
+
# The timestamp when the post was last updated
|
|
69
|
+
#
|
|
70
|
+
# @return [Time]
|
|
71
|
+
required :updated_at, Time
|
|
72
|
+
|
|
61
73
|
# @!attribute user
|
|
62
74
|
# The user who created this forum post
|
|
63
75
|
#
|
|
@@ -70,7 +82,7 @@ module WhopSDK
|
|
|
70
82
|
# @return [Integer, nil]
|
|
71
83
|
required :view_count, Integer, nil?: true
|
|
72
84
|
|
|
73
|
-
# @!method initialize(id:, comment_count:, content:, is_edited:, is_pinned:, is_poster_admin:, like_count:, parent_id:, title:, user:, view_count:)
|
|
85
|
+
# @!method initialize(id:, comment_count:, content:, created_at:, is_edited:, is_pinned:, is_poster_admin:, like_count:, parent_id:, title:, updated_at:, user:, view_count:)
|
|
74
86
|
# Represents a post in forum
|
|
75
87
|
#
|
|
76
88
|
# @param id [String] The unique identifier for the entity
|
|
@@ -79,6 +91,8 @@ module WhopSDK
|
|
|
79
91
|
#
|
|
80
92
|
# @param content [String, nil] The content of the forum post in Markdown format
|
|
81
93
|
#
|
|
94
|
+
# @param created_at [Time] The timestamp when the post was created
|
|
95
|
+
#
|
|
82
96
|
# @param is_edited [Boolean] Whether the forum post has been edited
|
|
83
97
|
#
|
|
84
98
|
# @param is_pinned [Boolean] Whether this forum post is pinned
|
|
@@ -91,6 +105,8 @@ module WhopSDK
|
|
|
91
105
|
#
|
|
92
106
|
# @param title [String, nil] The title of the forum post
|
|
93
107
|
#
|
|
108
|
+
# @param updated_at [Time] The timestamp when the post was last updated
|
|
109
|
+
#
|
|
94
110
|
# @param user [WhopSDK::Models::ForumPostListResponse::User] The user who created this forum post
|
|
95
111
|
#
|
|
96
112
|
# @param view_count [Integer, nil] The number of times this message has been viewed
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::ForumPosts#update
|
|
6
|
+
class ForumPostUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute attachments
|
|
11
|
+
# The attachments for this post
|
|
12
|
+
#
|
|
13
|
+
# @return [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID>, nil]
|
|
14
|
+
optional :attachments,
|
|
15
|
+
-> { WhopSDK::Internal::Type::ArrayOf[union: WhopSDK::ForumPostUpdateParams::Attachment] },
|
|
16
|
+
nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute content
|
|
19
|
+
# This is the main body of the post in Markdown format. Hidden if paywalled and
|
|
20
|
+
# user hasn't purchased access to it.
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
optional :content, String, nil?: true
|
|
24
|
+
|
|
25
|
+
# @!attribute is_pinned
|
|
26
|
+
# Whether the post is pinned. You can only pin a top level posts (not comments).
|
|
27
|
+
#
|
|
28
|
+
# @return [Boolean, nil]
|
|
29
|
+
optional :is_pinned, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute title
|
|
32
|
+
# The title of the post. Only visible if paywalled.
|
|
33
|
+
#
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
optional :title, String, nil?: true
|
|
36
|
+
|
|
37
|
+
# @!method initialize(attachments: nil, content: nil, is_pinned: nil, title: nil, request_options: {})
|
|
38
|
+
# Some parameter documentations has been truncated, see
|
|
39
|
+
# {WhopSDK::Models::ForumPostUpdateParams} for more details.
|
|
40
|
+
#
|
|
41
|
+
# @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID>, nil] The attachments for this post
|
|
42
|
+
#
|
|
43
|
+
# @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
|
|
44
|
+
#
|
|
45
|
+
# @param is_pinned [Boolean, nil] Whether the post is pinned. You can only pin a top level posts (not comments).
|
|
46
|
+
#
|
|
47
|
+
# @param title [String, nil] The title of the post. Only visible if paywalled.
|
|
48
|
+
#
|
|
49
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
50
|
+
|
|
51
|
+
# Input for an attachment
|
|
52
|
+
module Attachment
|
|
53
|
+
extend WhopSDK::Internal::Type::Union
|
|
54
|
+
|
|
55
|
+
# Input for an attachment
|
|
56
|
+
variant -> { WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID }
|
|
57
|
+
|
|
58
|
+
# Input for an attachment
|
|
59
|
+
variant -> { WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID }
|
|
60
|
+
|
|
61
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
62
|
+
# @!attribute direct_upload_id
|
|
63
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
64
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
65
|
+
# mediaDirectUpload mutation.
|
|
66
|
+
#
|
|
67
|
+
# @return [String]
|
|
68
|
+
required :direct_upload_id, String
|
|
69
|
+
|
|
70
|
+
# @!method initialize(direct_upload_id:)
|
|
71
|
+
# Some parameter documentations has been truncated, see
|
|
72
|
+
# {WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID}
|
|
73
|
+
# for more details.
|
|
74
|
+
#
|
|
75
|
+
# Input for an attachment
|
|
76
|
+
#
|
|
77
|
+
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
81
|
+
# @!attribute id
|
|
82
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
83
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
84
|
+
# doing.
|
|
85
|
+
#
|
|
86
|
+
# @return [String]
|
|
87
|
+
required :id, String
|
|
88
|
+
|
|
89
|
+
# @!method initialize(id:)
|
|
90
|
+
# Some parameter documentations has been truncated, see
|
|
91
|
+
# {WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID} for
|
|
92
|
+
# more details.
|
|
93
|
+
#
|
|
94
|
+
# Input for an attachment
|
|
95
|
+
#
|
|
96
|
+
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# @!method self.variants
|
|
100
|
+
# @return [Array(WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID)]
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -34,7 +34,8 @@ module WhopSDK
|
|
|
34
34
|
required :email_address, String, nil?: true
|
|
35
35
|
|
|
36
36
|
# @!attribute fetch_invoice_token
|
|
37
|
-
#
|
|
37
|
+
# A signed token that allows fetching the invoice data publically without being
|
|
38
|
+
# authenticated.
|
|
38
39
|
#
|
|
39
40
|
# @return [String]
|
|
40
41
|
required :fetch_invoice_token, String
|
|
@@ -58,6 +59,9 @@ module WhopSDK
|
|
|
58
59
|
required :user, -> { WhopSDK::Invoice::User }, nil?: true
|
|
59
60
|
|
|
60
61
|
# @!method initialize(id:, created_at:, current_plan:, due_date:, email_address:, fetch_invoice_token:, number:, status:, user:)
|
|
62
|
+
# Some parameter documentations has been truncated, see {WhopSDK::Models::Invoice}
|
|
63
|
+
# for more details.
|
|
64
|
+
#
|
|
61
65
|
# A statement that defines an amount due by a customer.
|
|
62
66
|
#
|
|
63
67
|
# @param id [String] The ID of the invoice.
|
|
@@ -70,7 +74,7 @@ module WhopSDK
|
|
|
70
74
|
#
|
|
71
75
|
# @param email_address [String, nil] The email address that the invoice was created for.
|
|
72
76
|
#
|
|
73
|
-
# @param fetch_invoice_token [String]
|
|
77
|
+
# @param fetch_invoice_token [String] A signed token that allows fetching the invoice data publically without being au
|
|
74
78
|
#
|
|
75
79
|
# @param number [String] The number of the invoice.
|
|
76
80
|
#
|
|
@@ -26,12 +26,27 @@ module WhopSDK
|
|
|
26
26
|
# @return [Time]
|
|
27
27
|
required :due_date, Time
|
|
28
28
|
|
|
29
|
+
# @!attribute member_id
|
|
30
|
+
# The member ID to create this invoice for. Include this if you want to create an
|
|
31
|
+
# invoice for an existing member. If you do not have a member ID, you must provide
|
|
32
|
+
# an email_address and customer_name.
|
|
33
|
+
#
|
|
34
|
+
# @return [String]
|
|
35
|
+
required :member_id, String
|
|
36
|
+
|
|
29
37
|
# @!attribute plan
|
|
30
38
|
# The properties of the plan to create for this invoice.
|
|
31
39
|
#
|
|
32
40
|
# @return [WhopSDK::Models::InvoiceCreateParams::Plan]
|
|
33
41
|
required :plan, -> { WhopSDK::InvoiceCreateParams::Plan }
|
|
34
42
|
|
|
43
|
+
# @!attribute product
|
|
44
|
+
# The properties of the product to create for this invoice. Include this if you
|
|
45
|
+
# want to create an invoice for a new product.
|
|
46
|
+
#
|
|
47
|
+
# @return [WhopSDK::Models::InvoiceCreateParams::Product]
|
|
48
|
+
required :product, -> { WhopSDK::InvoiceCreateParams::Product }
|
|
49
|
+
|
|
35
50
|
# @!attribute charge_buyer_fee
|
|
36
51
|
# Whether or not to charge the customer a buyer fee.
|
|
37
52
|
#
|
|
@@ -46,21 +61,6 @@ module WhopSDK
|
|
|
46
61
|
# @return [String, nil]
|
|
47
62
|
optional :customer_name, String, nil?: true
|
|
48
63
|
|
|
49
|
-
# @!attribute email_address
|
|
50
|
-
# The email address to create this invoice for. This is required if you want to
|
|
51
|
-
# create an invoice for a user who does not have a member of your company yet.
|
|
52
|
-
#
|
|
53
|
-
# @return [String, nil]
|
|
54
|
-
optional :email_address, String, nil?: true
|
|
55
|
-
|
|
56
|
-
# @!attribute member_id
|
|
57
|
-
# The member ID to create this invoice for. Include this if you want to create an
|
|
58
|
-
# invoice for an existing member. If you do not have a member ID, you must provide
|
|
59
|
-
# an email_address and customer_name.
|
|
60
|
-
#
|
|
61
|
-
# @return [String, nil]
|
|
62
|
-
optional :member_id, String, nil?: true
|
|
63
|
-
|
|
64
64
|
# @!attribute payment_token_id
|
|
65
65
|
# The payment token ID to use for this invoice. If using charge_automatically, you
|
|
66
66
|
# must provide a payment_token.
|
|
@@ -68,21 +68,21 @@ module WhopSDK
|
|
|
68
68
|
# @return [String, nil]
|
|
69
69
|
optional :payment_token_id, String, nil?: true
|
|
70
70
|
|
|
71
|
-
# @!attribute
|
|
72
|
-
# The
|
|
73
|
-
#
|
|
71
|
+
# @!attribute email_address
|
|
72
|
+
# The email address to create this invoice for. This is required if you want to
|
|
73
|
+
# create an invoice for a user who does not have a member of your company yet.
|
|
74
74
|
#
|
|
75
|
-
# @return [
|
|
76
|
-
|
|
75
|
+
# @return [String]
|
|
76
|
+
required :email_address, String
|
|
77
77
|
|
|
78
78
|
# @!attribute product_id
|
|
79
79
|
# The product ID to create this invoice for. Include this if you want to create an
|
|
80
80
|
# invoice for an existing product.
|
|
81
81
|
#
|
|
82
|
-
# @return [String
|
|
83
|
-
|
|
82
|
+
# @return [String]
|
|
83
|
+
required :product_id, String
|
|
84
84
|
|
|
85
|
-
# @!method initialize(collection_method:, company_id:, due_date:, plan:,
|
|
85
|
+
# @!method initialize(collection_method:, company_id:, due_date:, member_id:, plan:, product:, email_address:, product_id:, charge_buyer_fee: nil, customer_name: nil, payment_token_id: nil, request_options: {})
|
|
86
86
|
# Some parameter documentations has been truncated, see
|
|
87
87
|
# {WhopSDK::Models::InvoiceCreateParams} for more details.
|
|
88
88
|
#
|
|
@@ -92,21 +92,21 @@ module WhopSDK
|
|
|
92
92
|
#
|
|
93
93
|
# @param due_date [Time] The date the invoice is due, if applicable.
|
|
94
94
|
#
|
|
95
|
-
# @param
|
|
95
|
+
# @param member_id [String] The member ID to create this invoice for. Include this if you want to create an
|
|
96
96
|
#
|
|
97
|
-
# @param
|
|
97
|
+
# @param plan [WhopSDK::Models::InvoiceCreateParams::Plan] The properties of the plan to create for this invoice.
|
|
98
98
|
#
|
|
99
|
-
# @param
|
|
99
|
+
# @param product [WhopSDK::Models::InvoiceCreateParams::Product] The properties of the product to create for this invoice. Include this if you wa
|
|
100
100
|
#
|
|
101
|
-
# @param email_address [String
|
|
101
|
+
# @param email_address [String] The email address to create this invoice for. This is required if you want to cr
|
|
102
102
|
#
|
|
103
|
-
# @param
|
|
103
|
+
# @param product_id [String] The product ID to create this invoice for. Include this if you want to create an
|
|
104
104
|
#
|
|
105
|
-
# @param
|
|
105
|
+
# @param charge_buyer_fee [Boolean, nil] Whether or not to charge the customer a buyer fee.
|
|
106
106
|
#
|
|
107
|
-
# @param
|
|
107
|
+
# @param customer_name [String, nil] The name of the customer to create this invoice for. This is required if you wan
|
|
108
108
|
#
|
|
109
|
-
# @param
|
|
109
|
+
# @param payment_token_id [String, nil] The payment token ID to use for this invoice. If using charge_automatically, you
|
|
110
110
|
#
|
|
111
111
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
112
112
|
|
|
@@ -170,19 +170,31 @@ module WhopSDK
|
|
|
170
170
|
# @return [Float, nil]
|
|
171
171
|
optional :renewal_price, Float, nil?: true
|
|
172
172
|
|
|
173
|
+
# @!attribute stock
|
|
174
|
+
# The number of units available for purchase.
|
|
175
|
+
#
|
|
176
|
+
# @return [Integer, nil]
|
|
177
|
+
optional :stock, Integer, nil?: true
|
|
178
|
+
|
|
173
179
|
# @!attribute trial_period_days
|
|
174
180
|
# The number of free trial days added before a renewal plan.
|
|
175
181
|
#
|
|
176
182
|
# @return [Integer, nil]
|
|
177
183
|
optional :trial_period_days, Integer, nil?: true
|
|
178
184
|
|
|
185
|
+
# @!attribute unlimited_stock
|
|
186
|
+
# Limits/doesn't limit the number of units available for purchase.
|
|
187
|
+
#
|
|
188
|
+
# @return [Boolean, nil]
|
|
189
|
+
optional :unlimited_stock, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
190
|
+
|
|
179
191
|
# @!attribute visibility
|
|
180
192
|
# Visibility of a resource
|
|
181
193
|
#
|
|
182
194
|
# @return [Symbol, WhopSDK::Models::Visibility, nil]
|
|
183
195
|
optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
|
|
184
196
|
|
|
185
|
-
# @!method initialize(billing_period: nil, custom_fields: nil, description: nil, expiration_days: nil, initial_price: nil, internal_notes: nil, plan_type: nil, release_method: nil, renewal_price: nil, trial_period_days: nil, visibility: nil)
|
|
197
|
+
# @!method initialize(billing_period: nil, custom_fields: nil, description: nil, expiration_days: nil, initial_price: nil, internal_notes: nil, plan_type: nil, release_method: nil, renewal_price: nil, stock: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil)
|
|
186
198
|
# Some parameter documentations has been truncated, see
|
|
187
199
|
# {WhopSDK::Models::InvoiceCreateParams::Plan} for more details.
|
|
188
200
|
#
|
|
@@ -206,8 +218,12 @@ module WhopSDK
|
|
|
206
218
|
#
|
|
207
219
|
# @param renewal_price [Float, nil] The amount the customer is charged every billing period. Use only if a recurring
|
|
208
220
|
#
|
|
221
|
+
# @param stock [Integer, nil] The number of units available for purchase.
|
|
222
|
+
#
|
|
209
223
|
# @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
|
|
210
224
|
#
|
|
225
|
+
# @param unlimited_stock [Boolean, nil] Limits/doesn't limit the number of units available for purchase.
|
|
226
|
+
#
|
|
211
227
|
# @param visibility [Symbol, WhopSDK::Models::Visibility, nil] Visibility of a resource
|
|
212
228
|
|
|
213
229
|
class CustomField < WhopSDK::Internal::Type::BaseModel
|
|
@@ -34,7 +34,8 @@ module WhopSDK
|
|
|
34
34
|
required :email_address, String, nil?: true
|
|
35
35
|
|
|
36
36
|
# @!attribute fetch_invoice_token
|
|
37
|
-
#
|
|
37
|
+
# A signed token that allows fetching the invoice data publically without being
|
|
38
|
+
# authenticated.
|
|
38
39
|
#
|
|
39
40
|
# @return [String]
|
|
40
41
|
required :fetch_invoice_token, String
|
|
@@ -58,6 +59,9 @@ module WhopSDK
|
|
|
58
59
|
required :user, -> { WhopSDK::InvoiceListItem::User }, nil?: true
|
|
59
60
|
|
|
60
61
|
# @!method initialize(id:, created_at:, current_plan:, due_date:, email_address:, fetch_invoice_token:, number:, status:, user:)
|
|
62
|
+
# Some parameter documentations has been truncated, see
|
|
63
|
+
# {WhopSDK::Models::InvoiceListItem} for more details.
|
|
64
|
+
#
|
|
61
65
|
# A statement that defines an amount due by a customer.
|
|
62
66
|
#
|
|
63
67
|
# @param id [String] The ID of the invoice.
|
|
@@ -70,7 +74,7 @@ module WhopSDK
|
|
|
70
74
|
#
|
|
71
75
|
# @param email_address [String, nil] The email address that the invoice was created for.
|
|
72
76
|
#
|
|
73
|
-
# @param fetch_invoice_token [String]
|
|
77
|
+
# @param fetch_invoice_token [String] A signed token that allows fetching the invoice data publically without being au
|
|
74
78
|
#
|
|
75
79
|
# @param number [String] The number of the invoice.
|
|
76
80
|
#
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The available languages for a course
|
|
6
|
+
module Languages
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
EN = :en
|
|
10
|
+
ES = :es
|
|
11
|
+
IT = :it
|
|
12
|
+
PT = :pt
|
|
13
|
+
DE = :de
|
|
14
|
+
FR = :fr
|
|
15
|
+
PL = :pl
|
|
16
|
+
RU = :ru
|
|
17
|
+
NL = :nl
|
|
18
|
+
CA = :ca
|
|
19
|
+
TR = :tr
|
|
20
|
+
SV = :sv
|
|
21
|
+
UK = :uk
|
|
22
|
+
NO = :no
|
|
23
|
+
FI = :fi
|
|
24
|
+
SK = :sk
|
|
25
|
+
EL = :el
|
|
26
|
+
CS = :cs
|
|
27
|
+
HR = :hr
|
|
28
|
+
DA = :da
|
|
29
|
+
RO = :ro
|
|
30
|
+
BG = :bg
|
|
31
|
+
|
|
32
|
+
# @!method self.values
|
|
33
|
+
# @return [Array<Symbol>]
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -111,8 +111,17 @@ module WhopSDK
|
|
|
111
111
|
module LedgerAccountAuditStatus
|
|
112
112
|
extend WhopSDK::Internal::Type::Enum
|
|
113
113
|
|
|
114
|
+
PENDING = :pending
|
|
115
|
+
APPROVED = :approved
|
|
114
116
|
RESERVES_IMPOSED = :reserves_imposed
|
|
117
|
+
SUSPENDED = :suspended
|
|
118
|
+
IGNORED = :ignored
|
|
119
|
+
REJECTED = :rejected
|
|
115
120
|
REQUESTED_MORE_INFORMATION = :requested_more_information
|
|
121
|
+
INFORMATION_SUBMITTED = :information_submitted
|
|
122
|
+
REQUESTED_TOS_VIOLATION_CORRECTION = :requested_tos_violation_correction
|
|
123
|
+
CLAWBACK_ATTEMPTED = :clawback_attempted
|
|
124
|
+
AWAITING_SALES_REVIEW = :awaiting_sales_review
|
|
116
125
|
|
|
117
126
|
# @!method self.values
|
|
118
127
|
# @return [Array<Symbol>]
|