whop_sdk 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +24 -0
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +30 -24
- data/lib/whop_sdk/models/app_build_create_params.rb +53 -29
- data/lib/whop_sdk/models/app_update_params.rb +53 -29
- data/lib/whop_sdk/models/assessment_question_types.rb +18 -0
- data/lib/whop_sdk/models/billing_reasons.rb +20 -0
- data/lib/whop_sdk/models/card_brands.rb +30 -0
- data/lib/whop_sdk/models/checkout_configuration.rb +10 -7
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +251 -38
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +10 -7
- data/lib/whop_sdk/models/company.rb +13 -1
- data/lib/whop_sdk/models/company_create_params.rb +46 -0
- data/lib/whop_sdk/models/company_list_params.rb +62 -0
- data/lib/whop_sdk/models/company_list_response.rb +175 -0
- data/lib/whop_sdk/models/course.rb +230 -0
- data/lib/whop_sdk/models/course_chapter.rb +72 -0
- data/lib/whop_sdk/models/course_chapter_create_params.rb +30 -0
- data/lib/whop_sdk/models/course_chapter_delete_params.rb +14 -0
- data/lib/whop_sdk/models/course_chapter_delete_response.rb +8 -0
- data/lib/whop_sdk/models/course_chapter_list_params.rb +54 -0
- data/lib/whop_sdk/models/course_chapter_list_response.rb +35 -0
- data/lib/whop_sdk/models/course_chapter_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/course_chapter_update_params.rb +22 -0
- data/lib/whop_sdk/models/course_create_params.rb +127 -0
- data/lib/whop_sdk/models/course_delete_params.rb +14 -0
- data/lib/whop_sdk/models/course_delete_response.rb +8 -0
- data/lib/whop_sdk/models/course_lesson_create_params.rb +54 -0
- data/lib/whop_sdk/models/course_lesson_delete_params.rb +14 -0
- data/lib/whop_sdk/models/course_lesson_delete_response.rb +8 -0
- data/lib/whop_sdk/models/course_lesson_list_params.rb +62 -0
- data/lib/whop_sdk/models/course_lesson_list_response.rb +71 -0
- data/lib/whop_sdk/models/course_lesson_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/course_lesson_update_params.rb +399 -0
- data/lib/whop_sdk/models/course_list_params.rb +62 -0
- data/lib/whop_sdk/models/course_list_response.rb +148 -0
- data/lib/whop_sdk/models/course_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/course_student_list_params.rb +62 -0
- data/lib/whop_sdk/models/course_student_list_response.rb +97 -0
- data/lib/whop_sdk/models/course_student_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/course_student_retrieve_response.rb +149 -0
- data/lib/whop_sdk/models/course_update_params.rb +221 -0
- data/lib/whop_sdk/models/experience_duplicate_params.rb +22 -0
- data/lib/whop_sdk/models/experience_update_params.rb +53 -29
- data/lib/whop_sdk/models/forum_post.rb +17 -1
- data/lib/whop_sdk/models/forum_post_create_params.rb +51 -27
- data/lib/whop_sdk/models/forum_post_list_response.rb +17 -1
- data/lib/whop_sdk/models/forum_post_update_params.rb +104 -0
- data/lib/whop_sdk/models/invoice.rb +6 -2
- data/lib/whop_sdk/models/invoice_create_params.rb +48 -32
- data/lib/whop_sdk/models/invoice_list_item.rb +6 -2
- data/lib/whop_sdk/models/languages.rb +36 -0
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +9 -0
- data/lib/whop_sdk/models/lesson.rb +373 -0
- data/lib/whop_sdk/models/lesson_types.rb +20 -0
- data/lib/whop_sdk/models/lesson_visibilities.rb +17 -0
- data/lib/whop_sdk/models/member_list_params.rb +9 -1
- data/lib/whop_sdk/models/membership.rb +31 -1
- data/lib/whop_sdk/models/membership_list_params.rb +16 -8
- data/lib/whop_sdk/models/membership_list_response.rb +31 -1
- data/lib/whop_sdk/models/message_create_params.rb +51 -27
- data/lib/whop_sdk/models/message_update_params.rb +92 -0
- data/lib/whop_sdk/models/payment.rb +34 -22
- data/lib/whop_sdk/models/payment_list_params.rb +3 -18
- data/lib/whop_sdk/models/payment_list_response.rb +34 -22
- data/lib/whop_sdk/models/payment_method_types.rb +99 -0
- data/lib/whop_sdk/models/plan.rb +72 -1
- data/lib/whop_sdk/models/plan_create_params.rb +133 -24
- data/lib/whop_sdk/models/plan_list_response.rb +75 -1
- data/lib/whop_sdk/models/plan_update_params.rb +131 -22
- data/lib/whop_sdk/models/product.rb +11 -1
- data/lib/whop_sdk/models/product_create_params.rb +1 -45
- data/lib/whop_sdk/models/product_list_item.rb +14 -1
- data/lib/whop_sdk/models/product_update_params.rb +76 -23
- data/lib/whop_sdk/models/promo_code.rb +211 -0
- data/lib/whop_sdk/models/promo_code_create_params.rb +140 -0
- data/lib/whop_sdk/models/promo_code_delete_params.rb +14 -0
- data/lib/whop_sdk/models/promo_code_delete_response.rb +8 -0
- data/lib/whop_sdk/models/promo_code_list_params.rb +78 -0
- data/lib/whop_sdk/models/promo_code_list_response.rb +181 -0
- data/lib/whop_sdk/models/promo_code_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/promo_code_status.rb +17 -0
- data/lib/whop_sdk/models/promo_duration.rb +17 -0
- data/lib/whop_sdk/models/review_list_params.rb +70 -0
- data/lib/whop_sdk/models/review_list_response.rb +183 -0
- data/lib/whop_sdk/models/review_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/review_retrieve_response.rb +251 -0
- data/lib/whop_sdk/models/review_status.rb +17 -0
- data/lib/whop_sdk/models/transfer.rb +9 -1
- data/lib/whop_sdk/models/transfer_create_params.rb +9 -1
- data/lib/whop_sdk/models/transfer_list_response.rb +9 -1
- data/lib/whop_sdk/models.rb +84 -0
- data/lib/whop_sdk/resources/app_builds.rb +1 -1
- data/lib/whop_sdk/resources/apps.rb +1 -1
- data/lib/whop_sdk/resources/checkout_configurations.rb +8 -6
- data/lib/whop_sdk/resources/companies.rb +70 -0
- data/lib/whop_sdk/resources/course_chapters.rb +151 -0
- data/lib/whop_sdk/resources/course_lesson_interactions.rb +2 -2
- data/lib/whop_sdk/resources/course_lessons.rb +182 -0
- data/lib/whop_sdk/resources/course_students.rb +76 -0
- data/lib/whop_sdk/resources/courses.rb +185 -0
- data/lib/whop_sdk/resources/experiences.rb +34 -1
- data/lib/whop_sdk/resources/forum_posts.rb +34 -1
- data/lib/whop_sdk/resources/invoices.rb +11 -11
- data/lib/whop_sdk/resources/members.rb +3 -1
- data/lib/whop_sdk/resources/memberships.rb +6 -4
- data/lib/whop_sdk/resources/messages.rb +29 -1
- data/lib/whop_sdk/resources/payments.rb +1 -1
- data/lib/whop_sdk/resources/plans.rb +25 -5
- data/lib/whop_sdk/resources/products.rb +5 -7
- data/lib/whop_sdk/resources/promo_codes.rb +161 -0
- data/lib/whop_sdk/resources/reviews.rb +68 -0
- data/lib/whop_sdk/resources/transfers.rb +3 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +61 -1
- data/rbi/whop_sdk/client.rbi +18 -0
- data/rbi/whop_sdk/models/app_build_create_params.rbi +80 -40
- data/rbi/whop_sdk/models/app_update_params.rbi +86 -37
- data/rbi/whop_sdk/models/assessment_question_types.rbi +31 -0
- data/rbi/whop_sdk/models/billing_reasons.rbi +27 -0
- data/rbi/whop_sdk/models/card_brands.rbi +35 -0
- data/rbi/whop_sdk/models/checkout_configuration.rbi +4 -2
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +371 -62
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +4 -2
- data/rbi/whop_sdk/models/company.rbi +10 -0
- data/rbi/whop_sdk/models/company_create_params.rbi +67 -0
- data/rbi/whop_sdk/models/company_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/company_list_response.rbi +235 -0
- data/rbi/whop_sdk/models/course.rbi +313 -0
- data/rbi/whop_sdk/models/course_chapter.rbi +101 -0
- data/rbi/whop_sdk/models/course_chapter_create_params.rbi +51 -0
- data/rbi/whop_sdk/models/course_chapter_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_chapter_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/course_chapter_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/course_chapter_list_response.rbi +47 -0
- data/rbi/whop_sdk/models/course_chapter_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/course_chapter_update_params.rbi +40 -0
- data/rbi/whop_sdk/models/course_create_params.rbi +197 -0
- data/rbi/whop_sdk/models/course_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_delete_response.rbi +7 -0
- data/rbi/whop_sdk/models/course_lesson_create_params.rbi +75 -0
- data/rbi/whop_sdk/models/course_lesson_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_lesson_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/course_lesson_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/course_lesson_list_response.rbi +91 -0
- data/rbi/whop_sdk/models/course_lesson_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_lesson_update_params.rbi +677 -0
- data/rbi/whop_sdk/models/course_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/course_list_response.rbi +198 -0
- data/rbi/whop_sdk/models/course_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_student_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/course_student_list_response.rbi +142 -0
- data/rbi/whop_sdk/models/course_student_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/course_student_retrieve_response.rbi +250 -0
- data/rbi/whop_sdk/models/course_update_params.rbi +339 -0
- data/rbi/whop_sdk/models/experience_duplicate_params.rbi +40 -0
- data/rbi/whop_sdk/models/experience_update_params.rbi +84 -38
- data/rbi/whop_sdk/models/forum_post.rbi +16 -0
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +85 -32
- data/rbi/whop_sdk/models/forum_post_list_response.rbi +16 -0
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +177 -0
- data/rbi/whop_sdk/models/invoice.rbi +4 -2
- data/rbi/whop_sdk/models/invoice_create_params.rbi +58 -44
- data/rbi/whop_sdk/models/invoice_list_item.rbi +4 -2
- data/rbi/whop_sdk/models/languages.rbi +40 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +45 -0
- data/rbi/whop_sdk/models/lesson.rbi +521 -0
- data/rbi/whop_sdk/models/lesson_types.rbi +25 -0
- data/rbi/whop_sdk/models/lesson_visibilities.rbi +23 -0
- data/rbi/whop_sdk/models/member_list_params.rbi +8 -0
- data/rbi/whop_sdk/models/membership.rbi +40 -0
- data/rbi/whop_sdk/models/membership_list_params.rbi +16 -8
- data/rbi/whop_sdk/models/membership_list_response.rbi +47 -0
- data/rbi/whop_sdk/models/message_create_params.rbi +85 -32
- data/rbi/whop_sdk/models/message_update_params.rbi +167 -0
- data/rbi/whop_sdk/models/payment.rbi +42 -25
- data/rbi/whop_sdk/models/payment_list_params.rbi +3 -63
- data/rbi/whop_sdk/models/payment_list_response.rbi +42 -25
- data/rbi/whop_sdk/models/payment_method_types.rbi +118 -0
- data/rbi/whop_sdk/models/plan.rbi +106 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +212 -34
- data/rbi/whop_sdk/models/plan_list_response.rbi +118 -0
- data/rbi/whop_sdk/models/plan_update_params.rbi +210 -32
- data/rbi/whop_sdk/models/product.rbi +12 -0
- data/rbi/whop_sdk/models/product_create_params.rbi +0 -74
- data/rbi/whop_sdk/models/product_list_item.rbi +12 -0
- data/rbi/whop_sdk/models/product_update_params.rbi +136 -33
- data/rbi/whop_sdk/models/promo_code.rbi +248 -0
- data/rbi/whop_sdk/models/promo_code_create_params.rbi +161 -0
- data/rbi/whop_sdk/models/promo_code_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/promo_code_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/promo_code_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/promo_code_list_response.rbi +222 -0
- data/rbi/whop_sdk/models/promo_code_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/promo_code_status.rbi +21 -0
- data/rbi/whop_sdk/models/promo_duration.rbi +21 -0
- data/rbi/whop_sdk/models/review_list_params.rbi +91 -0
- data/rbi/whop_sdk/models/review_list_response.rbi +243 -0
- data/rbi/whop_sdk/models/review_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/review_retrieve_response.rbi +354 -0
- data/rbi/whop_sdk/models/review_status.rbi +21 -0
- data/rbi/whop_sdk/models/transfer.rbi +8 -0
- data/rbi/whop_sdk/models/transfer_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/transfer_list_response.rbi +8 -0
- data/rbi/whop_sdk/models.rbi +84 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +5 -1
- data/rbi/whop_sdk/resources/apps.rbi +7 -1
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +8 -7
- data/rbi/whop_sdk/resources/companies.rbi +63 -0
- data/rbi/whop_sdk/resources/course_chapters.rbi +115 -0
- data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +2 -2
- data/rbi/whop_sdk/resources/course_lessons.rbi +182 -0
- data/rbi/whop_sdk/resources/course_students.rbi +65 -0
- data/rbi/whop_sdk/resources/courses.rbi +172 -0
- data/rbi/whop_sdk/resources/experiences.rbi +32 -1
- data/rbi/whop_sdk/resources/forum_posts.rbi +40 -1
- data/rbi/whop_sdk/resources/invoices.rbi +18 -18
- data/rbi/whop_sdk/resources/members.rbi +3 -0
- data/rbi/whop_sdk/resources/memberships.rbi +6 -3
- data/rbi/whop_sdk/resources/messages.rbi +36 -1
- data/rbi/whop_sdk/resources/payments.rbi +1 -3
- data/rbi/whop_sdk/resources/plans.rbi +57 -3
- data/rbi/whop_sdk/resources/products.rbi +10 -8
- data/rbi/whop_sdk/resources/promo_codes.rbi +147 -0
- data/rbi/whop_sdk/resources/reviews.rbi +56 -0
- data/rbi/whop_sdk/resources/transfers.rbi +3 -0
- data/sig/whop_sdk/client.rbs +12 -0
- data/sig/whop_sdk/models/app_build_create_params.rbs +29 -10
- data/sig/whop_sdk/models/app_update_params.rbs +29 -10
- data/sig/whop_sdk/models/assessment_question_types.rbs +17 -0
- data/sig/whop_sdk/models/billing_reasons.rbs +24 -0
- data/sig/whop_sdk/models/card_brands.rbs +44 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +159 -21
- data/sig/whop_sdk/models/company.rbs +5 -0
- data/sig/whop_sdk/models/company_create_params.rbs +41 -0
- data/sig/whop_sdk/models/company_list_params.rbs +51 -0
- data/sig/whop_sdk/models/company_list_response.rbs +109 -0
- data/sig/whop_sdk/models/course.rbs +171 -0
- data/sig/whop_sdk/models/course_chapter.rbs +49 -0
- data/sig/whop_sdk/models/course_chapter_create_params.rbs +28 -0
- data/sig/whop_sdk/models/course_chapter_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/course_chapter_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/course_chapter_list_params.rbs +46 -0
- data/sig/whop_sdk/models/course_chapter_list_response.rbs +18 -0
- data/sig/whop_sdk/models/course_chapter_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/course_chapter_update_params.rbs +23 -0
- data/sig/whop_sdk/models/course_create_params.rbs +87 -0
- data/sig/whop_sdk/models/course_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/course_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/course_lesson_create_params.rbs +46 -0
- data/sig/whop_sdk/models/course_lesson_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/course_lesson_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/course_lesson_list_params.rbs +51 -0
- data/sig/whop_sdk/models/course_lesson_list_response.rbs +50 -0
- data/sig/whop_sdk/models/course_lesson_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/course_lesson_update_params.rbs +248 -0
- data/sig/whop_sdk/models/course_list_params.rbs +51 -0
- data/sig/whop_sdk/models/course_list_response.rbs +102 -0
- data/sig/whop_sdk/models/course_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/course_student_list_params.rbs +51 -0
- data/sig/whop_sdk/models/course_student_list_response.rbs +64 -0
- data/sig/whop_sdk/models/course_student_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/course_student_retrieve_response.rbs +106 -0
- data/sig/whop_sdk/models/course_update_params.rbs +156 -0
- data/sig/whop_sdk/models/experience_duplicate_params.rbs +23 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +29 -10
- data/sig/whop_sdk/models/forum_post.rbs +10 -0
- data/sig/whop_sdk/models/forum_post_create_params.rbs +29 -10
- data/sig/whop_sdk/models/forum_post_list_response.rbs +10 -0
- data/sig/whop_sdk/models/forum_post_update_params.rbs +72 -0
- data/sig/whop_sdk/models/invoice_create_params.rbs +28 -18
- data/sig/whop_sdk/models/languages.rbs +56 -0
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +20 -1
- data/sig/whop_sdk/models/lesson.rbs +248 -0
- data/sig/whop_sdk/models/lesson_types.rbs +19 -0
- data/sig/whop_sdk/models/lesson_visibilities.rbs +14 -0
- data/sig/whop_sdk/models/member_list_params.rbs +6 -1
- data/sig/whop_sdk/models/membership.rbs +17 -0
- data/sig/whop_sdk/models/membership_list_params.rbs +11 -6
- data/sig/whop_sdk/models/membership_list_response.rbs +17 -0
- data/sig/whop_sdk/models/message_create_params.rbs +29 -10
- data/sig/whop_sdk/models/message_update_params.rbs +67 -0
- data/sig/whop_sdk/models/payment.rbs +17 -12
- data/sig/whop_sdk/models/payment_list_params.rbs +4 -25
- data/sig/whop_sdk/models/payment_list_response.rbs +17 -12
- data/sig/whop_sdk/models/payment_method_types.rbs +182 -0
- data/sig/whop_sdk/models/plan.rbs +47 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +81 -10
- data/sig/whop_sdk/models/plan_list_response.rbs +47 -0
- data/sig/whop_sdk/models/plan_update_params.rbs +81 -10
- data/sig/whop_sdk/models/product.rbs +5 -0
- data/sig/whop_sdk/models/product_create_params.rbs +0 -22
- data/sig/whop_sdk/models/product_list_item.rbs +5 -0
- data/sig/whop_sdk/models/product_update_params.rbs +46 -10
- data/sig/whop_sdk/models/promo_code.rbs +134 -0
- data/sig/whop_sdk/models/promo_code_create_params.rbs +96 -0
- data/sig/whop_sdk/models/promo_code_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/promo_code_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/promo_code_list_params.rbs +61 -0
- data/sig/whop_sdk/models/promo_code_list_response.rbs +117 -0
- data/sig/whop_sdk/models/promo_code_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/promo_code_status.rbs +15 -0
- data/sig/whop_sdk/models/promo_duration.rbs +15 -0
- data/sig/whop_sdk/models/review_list_params.rbs +56 -0
- data/sig/whop_sdk/models/review_list_response.rbs +116 -0
- data/sig/whop_sdk/models/review_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/review_retrieve_response.rbs +152 -0
- data/sig/whop_sdk/models/review_status.rbs +15 -0
- data/sig/whop_sdk/models/transfer.rbs +5 -0
- data/sig/whop_sdk/models/transfer_create_params.rbs +5 -0
- data/sig/whop_sdk/models/transfer_list_response.rbs +5 -0
- data/sig/whop_sdk/models.rbs +84 -0
- data/sig/whop_sdk/resources/app_builds.rbs +1 -1
- data/sig/whop_sdk/resources/apps.rbs +1 -1
- data/sig/whop_sdk/resources/checkout_configurations.rbs +2 -2
- data/sig/whop_sdk/resources/companies.rbs +18 -0
- data/sig/whop_sdk/resources/course_chapters.rbs +35 -0
- data/sig/whop_sdk/resources/course_lessons.rbs +49 -0
- data/sig/whop_sdk/resources/course_students.rbs +22 -0
- data/sig/whop_sdk/resources/courses.rbs +49 -0
- data/sig/whop_sdk/resources/experiences.rbs +7 -1
- data/sig/whop_sdk/resources/forum_posts.rbs +10 -1
- data/sig/whop_sdk/resources/invoices.rbs +5 -5
- data/sig/whop_sdk/resources/members.rbs +1 -0
- data/sig/whop_sdk/resources/memberships.rbs +2 -1
- data/sig/whop_sdk/resources/messages.rbs +9 -1
- data/sig/whop_sdk/resources/payments.rbs +1 -1
- data/sig/whop_sdk/resources/plans.rbs +12 -2
- data/sig/whop_sdk/resources/products.rbs +2 -3
- data/sig/whop_sdk/resources/promo_codes.rbs +45 -0
- data/sig/whop_sdk/resources/reviews.rbs +23 -0
- data/sig/whop_sdk/resources/transfers.rbs +1 -0
- metadata +213 -5
- data/lib/whop_sdk/models/invoice_create_response.rb +0 -27
- data/rbi/whop_sdk/models/invoice_create_response.rbi +0 -49
- data/sig/whop_sdk/models/invoice_create_response.rbs +0 -19
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Reviews#list
|
|
6
|
+
class ReviewListParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute product_id
|
|
11
|
+
# The ID of the product
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :product_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 first
|
|
29
|
+
# Returns the first _n_ elements from the list.
|
|
30
|
+
#
|
|
31
|
+
# @return [Integer, nil]
|
|
32
|
+
optional :first, Integer, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute last
|
|
35
|
+
# Returns the last _n_ elements from the list.
|
|
36
|
+
#
|
|
37
|
+
# @return [Integer, nil]
|
|
38
|
+
optional :last, Integer, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!attribute max_stars
|
|
41
|
+
# The maximum star rating of the review (inclusive)
|
|
42
|
+
#
|
|
43
|
+
# @return [Integer, nil]
|
|
44
|
+
optional :max_stars, Integer, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!attribute min_stars
|
|
47
|
+
# The minimum star rating of the review (inclusive)
|
|
48
|
+
#
|
|
49
|
+
# @return [Integer, nil]
|
|
50
|
+
optional :min_stars, Integer, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!method initialize(product_id:, after: nil, before: nil, first: nil, last: nil, max_stars: nil, min_stars: nil, request_options: {})
|
|
53
|
+
# @param product_id [String] The ID of the product
|
|
54
|
+
#
|
|
55
|
+
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
56
|
+
#
|
|
57
|
+
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
58
|
+
#
|
|
59
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
60
|
+
#
|
|
61
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
62
|
+
#
|
|
63
|
+
# @param max_stars [Integer, nil] The maximum star rating of the review (inclusive)
|
|
64
|
+
#
|
|
65
|
+
# @param min_stars [Integer, nil] The minimum star rating of the review (inclusive)
|
|
66
|
+
#
|
|
67
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Reviews#list
|
|
6
|
+
class ReviewListResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The internal ID of the review.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute attachments
|
|
14
|
+
# The attachments attached to the review.
|
|
15
|
+
#
|
|
16
|
+
# @return [Array<WhopSDK::Models::ReviewListResponse::Attachment>]
|
|
17
|
+
required :attachments,
|
|
18
|
+
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Models::ReviewListResponse::Attachment] }
|
|
19
|
+
|
|
20
|
+
# @!attribute created_at
|
|
21
|
+
# The timestamp of when the review was created.
|
|
22
|
+
#
|
|
23
|
+
# @return [Time]
|
|
24
|
+
required :created_at, Time
|
|
25
|
+
|
|
26
|
+
# @!attribute description
|
|
27
|
+
# The description of the review.
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
required :description, String, nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute joined_at
|
|
33
|
+
# The timestamp of when the user joined the product.
|
|
34
|
+
#
|
|
35
|
+
# @return [Time, nil]
|
|
36
|
+
required :joined_at, Time, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!attribute paid_for_product
|
|
39
|
+
# Whether or not the user paid for the product. If null, the payment status is
|
|
40
|
+
# unknown.
|
|
41
|
+
#
|
|
42
|
+
# @return [Boolean, nil]
|
|
43
|
+
required :paid_for_product, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
44
|
+
|
|
45
|
+
# @!attribute published_at
|
|
46
|
+
# The timestamp of when the review was published.
|
|
47
|
+
#
|
|
48
|
+
# @return [Time, nil]
|
|
49
|
+
required :published_at, Time, nil?: true
|
|
50
|
+
|
|
51
|
+
# @!attribute stars
|
|
52
|
+
# The number of stars the user gave the product.
|
|
53
|
+
#
|
|
54
|
+
# @return [Integer]
|
|
55
|
+
required :stars, Integer
|
|
56
|
+
|
|
57
|
+
# @!attribute status
|
|
58
|
+
# The status of the review.
|
|
59
|
+
#
|
|
60
|
+
# @return [Symbol, WhopSDK::Models::ReviewStatus]
|
|
61
|
+
required :status, enum: -> { WhopSDK::ReviewStatus }
|
|
62
|
+
|
|
63
|
+
# @!attribute title
|
|
64
|
+
# The title of the review.
|
|
65
|
+
#
|
|
66
|
+
# @return [String, nil]
|
|
67
|
+
required :title, String, nil?: true
|
|
68
|
+
|
|
69
|
+
# @!attribute updated_at
|
|
70
|
+
# The timestamp of when the review was last updated.
|
|
71
|
+
#
|
|
72
|
+
# @return [Time]
|
|
73
|
+
required :updated_at, Time
|
|
74
|
+
|
|
75
|
+
# @!attribute user
|
|
76
|
+
# The user account that performed the action.
|
|
77
|
+
#
|
|
78
|
+
# @return [WhopSDK::Models::ReviewListResponse::User]
|
|
79
|
+
required :user, -> { WhopSDK::Models::ReviewListResponse::User }
|
|
80
|
+
|
|
81
|
+
# @!method initialize(id:, attachments:, created_at:, description:, joined_at:, paid_for_product:, published_at:, stars:, status:, title:, updated_at:, user:)
|
|
82
|
+
# Some parameter documentations has been truncated, see
|
|
83
|
+
# {WhopSDK::Models::ReviewListResponse} for more details.
|
|
84
|
+
#
|
|
85
|
+
# An object representing a user review of a company.
|
|
86
|
+
#
|
|
87
|
+
# @param id [String] The internal ID of the review.
|
|
88
|
+
#
|
|
89
|
+
# @param attachments [Array<WhopSDK::Models::ReviewListResponse::Attachment>] The attachments attached to the review.
|
|
90
|
+
#
|
|
91
|
+
# @param created_at [Time] The timestamp of when the review was created.
|
|
92
|
+
#
|
|
93
|
+
# @param description [String, nil] The description of the review.
|
|
94
|
+
#
|
|
95
|
+
# @param joined_at [Time, nil] The timestamp of when the user joined the product.
|
|
96
|
+
#
|
|
97
|
+
# @param paid_for_product [Boolean, nil] Whether or not the user paid for the product. If null, the payment status is unk
|
|
98
|
+
#
|
|
99
|
+
# @param published_at [Time, nil] The timestamp of when the review was published.
|
|
100
|
+
#
|
|
101
|
+
# @param stars [Integer] The number of stars the user gave the product.
|
|
102
|
+
#
|
|
103
|
+
# @param status [Symbol, WhopSDK::Models::ReviewStatus] The status of the review.
|
|
104
|
+
#
|
|
105
|
+
# @param title [String, nil] The title of the review.
|
|
106
|
+
#
|
|
107
|
+
# @param updated_at [Time] The timestamp of when the review was last updated.
|
|
108
|
+
#
|
|
109
|
+
# @param user [WhopSDK::Models::ReviewListResponse::User] The user account that performed the action.
|
|
110
|
+
|
|
111
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
112
|
+
# @!attribute id
|
|
113
|
+
# The ID of the attachment
|
|
114
|
+
#
|
|
115
|
+
# @return [String]
|
|
116
|
+
required :id, String
|
|
117
|
+
|
|
118
|
+
# @!attribute content_type
|
|
119
|
+
# The attachment's content type (e.g., image/jpg, video/mp4)
|
|
120
|
+
#
|
|
121
|
+
# @return [String, nil]
|
|
122
|
+
required :content_type, String, nil?: true
|
|
123
|
+
|
|
124
|
+
# @!attribute filename
|
|
125
|
+
# The name of the file
|
|
126
|
+
#
|
|
127
|
+
# @return [String, nil]
|
|
128
|
+
required :filename, String, nil?: true
|
|
129
|
+
|
|
130
|
+
# @!attribute url
|
|
131
|
+
# This is the URL you use to render optimized attachments on the client. This
|
|
132
|
+
# should be used for apps.
|
|
133
|
+
#
|
|
134
|
+
# @return [String, nil]
|
|
135
|
+
required :url, String, nil?: true
|
|
136
|
+
|
|
137
|
+
# @!method initialize(id:, content_type:, filename:, url:)
|
|
138
|
+
# Some parameter documentations has been truncated, see
|
|
139
|
+
# {WhopSDK::Models::ReviewListResponse::Attachment} for more details.
|
|
140
|
+
#
|
|
141
|
+
# Represents an image attachment
|
|
142
|
+
#
|
|
143
|
+
# @param id [String] The ID of the attachment
|
|
144
|
+
#
|
|
145
|
+
# @param content_type [String, nil] The attachment's content type (e.g., image/jpg, video/mp4)
|
|
146
|
+
#
|
|
147
|
+
# @param filename [String, nil] The name of the file
|
|
148
|
+
#
|
|
149
|
+
# @param url [String, nil] This is the URL you use to render optimized attachments on the client. This shou
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# @see WhopSDK::Models::ReviewListResponse#user
|
|
153
|
+
class User < WhopSDK::Internal::Type::BaseModel
|
|
154
|
+
# @!attribute id
|
|
155
|
+
# The internal ID of the user.
|
|
156
|
+
#
|
|
157
|
+
# @return [String]
|
|
158
|
+
required :id, String
|
|
159
|
+
|
|
160
|
+
# @!attribute name
|
|
161
|
+
# The name of the user from their Whop account.
|
|
162
|
+
#
|
|
163
|
+
# @return [String, nil]
|
|
164
|
+
required :name, String, nil?: true
|
|
165
|
+
|
|
166
|
+
# @!attribute username
|
|
167
|
+
# The username of the user from their Whop account.
|
|
168
|
+
#
|
|
169
|
+
# @return [String]
|
|
170
|
+
required :username, String
|
|
171
|
+
|
|
172
|
+
# @!method initialize(id:, name:, username:)
|
|
173
|
+
# The user account that performed the action.
|
|
174
|
+
#
|
|
175
|
+
# @param id [String] The internal ID of the user.
|
|
176
|
+
#
|
|
177
|
+
# @param name [String, nil] The name of the user from their Whop account.
|
|
178
|
+
#
|
|
179
|
+
# @param username [String] The username of the user from their Whop account.
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Reviews#retrieve
|
|
6
|
+
class ReviewRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Reviews#retrieve
|
|
6
|
+
class ReviewRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The internal ID of the review.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute attachments
|
|
14
|
+
# The attachments attached to the review.
|
|
15
|
+
#
|
|
16
|
+
# @return [Array<WhopSDK::Models::ReviewRetrieveResponse::Attachment>]
|
|
17
|
+
required :attachments,
|
|
18
|
+
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Models::ReviewRetrieveResponse::Attachment] }
|
|
19
|
+
|
|
20
|
+
# @!attribute company
|
|
21
|
+
# The company the review is for.
|
|
22
|
+
#
|
|
23
|
+
# @return [WhopSDK::Models::ReviewRetrieveResponse::Company]
|
|
24
|
+
required :company, -> { WhopSDK::Models::ReviewRetrieveResponse::Company }
|
|
25
|
+
|
|
26
|
+
# @!attribute created_at
|
|
27
|
+
# The timestamp of when the review was created.
|
|
28
|
+
#
|
|
29
|
+
# @return [Time]
|
|
30
|
+
required :created_at, Time
|
|
31
|
+
|
|
32
|
+
# @!attribute description
|
|
33
|
+
# The description of the review.
|
|
34
|
+
#
|
|
35
|
+
# @return [String, nil]
|
|
36
|
+
required :description, String, nil?: true
|
|
37
|
+
|
|
38
|
+
# @!attribute joined_at
|
|
39
|
+
# The timestamp of when the user joined the product.
|
|
40
|
+
#
|
|
41
|
+
# @return [Time, nil]
|
|
42
|
+
required :joined_at, Time, nil?: true
|
|
43
|
+
|
|
44
|
+
# @!attribute paid_for_product
|
|
45
|
+
# Whether or not the user paid for the product. If null, the payment status is
|
|
46
|
+
# unknown.
|
|
47
|
+
#
|
|
48
|
+
# @return [Boolean, nil]
|
|
49
|
+
required :paid_for_product, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
50
|
+
|
|
51
|
+
# @!attribute product
|
|
52
|
+
# The product the review is for.
|
|
53
|
+
#
|
|
54
|
+
# @return [WhopSDK::Models::ReviewRetrieveResponse::Product]
|
|
55
|
+
required :product, -> { WhopSDK::Models::ReviewRetrieveResponse::Product }
|
|
56
|
+
|
|
57
|
+
# @!attribute published_at
|
|
58
|
+
# The timestamp of when the review was published.
|
|
59
|
+
#
|
|
60
|
+
# @return [Time, nil]
|
|
61
|
+
required :published_at, Time, nil?: true
|
|
62
|
+
|
|
63
|
+
# @!attribute stars
|
|
64
|
+
# The number of stars the user gave the product.
|
|
65
|
+
#
|
|
66
|
+
# @return [Integer]
|
|
67
|
+
required :stars, Integer
|
|
68
|
+
|
|
69
|
+
# @!attribute status
|
|
70
|
+
# The status of the review.
|
|
71
|
+
#
|
|
72
|
+
# @return [Symbol, WhopSDK::Models::ReviewStatus]
|
|
73
|
+
required :status, enum: -> { WhopSDK::ReviewStatus }
|
|
74
|
+
|
|
75
|
+
# @!attribute title
|
|
76
|
+
# The title of the review.
|
|
77
|
+
#
|
|
78
|
+
# @return [String, nil]
|
|
79
|
+
required :title, String, nil?: true
|
|
80
|
+
|
|
81
|
+
# @!attribute updated_at
|
|
82
|
+
# The timestamp of when the review was last updated.
|
|
83
|
+
#
|
|
84
|
+
# @return [Time]
|
|
85
|
+
required :updated_at, Time
|
|
86
|
+
|
|
87
|
+
# @!attribute user
|
|
88
|
+
# The user account that performed the action.
|
|
89
|
+
#
|
|
90
|
+
# @return [WhopSDK::Models::ReviewRetrieveResponse::User]
|
|
91
|
+
required :user, -> { WhopSDK::Models::ReviewRetrieveResponse::User }
|
|
92
|
+
|
|
93
|
+
# @!method initialize(id:, attachments:, company:, created_at:, description:, joined_at:, paid_for_product:, product:, published_at:, stars:, status:, title:, updated_at:, user:)
|
|
94
|
+
# Some parameter documentations has been truncated, see
|
|
95
|
+
# {WhopSDK::Models::ReviewRetrieveResponse} for more details.
|
|
96
|
+
#
|
|
97
|
+
# An object representing a user review of a company.
|
|
98
|
+
#
|
|
99
|
+
# @param id [String] The internal ID of the review.
|
|
100
|
+
#
|
|
101
|
+
# @param attachments [Array<WhopSDK::Models::ReviewRetrieveResponse::Attachment>] The attachments attached to the review.
|
|
102
|
+
#
|
|
103
|
+
# @param company [WhopSDK::Models::ReviewRetrieveResponse::Company] The company the review is for.
|
|
104
|
+
#
|
|
105
|
+
# @param created_at [Time] The timestamp of when the review was created.
|
|
106
|
+
#
|
|
107
|
+
# @param description [String, nil] The description of the review.
|
|
108
|
+
#
|
|
109
|
+
# @param joined_at [Time, nil] The timestamp of when the user joined the product.
|
|
110
|
+
#
|
|
111
|
+
# @param paid_for_product [Boolean, nil] Whether or not the user paid for the product. If null, the payment status is unk
|
|
112
|
+
#
|
|
113
|
+
# @param product [WhopSDK::Models::ReviewRetrieveResponse::Product] The product the review is for.
|
|
114
|
+
#
|
|
115
|
+
# @param published_at [Time, nil] The timestamp of when the review was published.
|
|
116
|
+
#
|
|
117
|
+
# @param stars [Integer] The number of stars the user gave the product.
|
|
118
|
+
#
|
|
119
|
+
# @param status [Symbol, WhopSDK::Models::ReviewStatus] The status of the review.
|
|
120
|
+
#
|
|
121
|
+
# @param title [String, nil] The title of the review.
|
|
122
|
+
#
|
|
123
|
+
# @param updated_at [Time] The timestamp of when the review was last updated.
|
|
124
|
+
#
|
|
125
|
+
# @param user [WhopSDK::Models::ReviewRetrieveResponse::User] The user account that performed the action.
|
|
126
|
+
|
|
127
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
128
|
+
# @!attribute id
|
|
129
|
+
# The ID of the attachment
|
|
130
|
+
#
|
|
131
|
+
# @return [String]
|
|
132
|
+
required :id, String
|
|
133
|
+
|
|
134
|
+
# @!attribute content_type
|
|
135
|
+
# The attachment's content type (e.g., image/jpg, video/mp4)
|
|
136
|
+
#
|
|
137
|
+
# @return [String, nil]
|
|
138
|
+
required :content_type, String, nil?: true
|
|
139
|
+
|
|
140
|
+
# @!attribute filename
|
|
141
|
+
# The name of the file
|
|
142
|
+
#
|
|
143
|
+
# @return [String, nil]
|
|
144
|
+
required :filename, String, nil?: true
|
|
145
|
+
|
|
146
|
+
# @!attribute url
|
|
147
|
+
# This is the URL you use to render optimized attachments on the client. This
|
|
148
|
+
# should be used for apps.
|
|
149
|
+
#
|
|
150
|
+
# @return [String, nil]
|
|
151
|
+
required :url, String, nil?: true
|
|
152
|
+
|
|
153
|
+
# @!method initialize(id:, content_type:, filename:, url:)
|
|
154
|
+
# Some parameter documentations has been truncated, see
|
|
155
|
+
# {WhopSDK::Models::ReviewRetrieveResponse::Attachment} for more details.
|
|
156
|
+
#
|
|
157
|
+
# Represents an image attachment
|
|
158
|
+
#
|
|
159
|
+
# @param id [String] The ID of the attachment
|
|
160
|
+
#
|
|
161
|
+
# @param content_type [String, nil] The attachment's content type (e.g., image/jpg, video/mp4)
|
|
162
|
+
#
|
|
163
|
+
# @param filename [String, nil] The name of the file
|
|
164
|
+
#
|
|
165
|
+
# @param url [String, nil] This is the URL you use to render optimized attachments on the client. This shou
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# @see WhopSDK::Models::ReviewRetrieveResponse#company
|
|
169
|
+
class Company < WhopSDK::Internal::Type::BaseModel
|
|
170
|
+
# @!attribute id
|
|
171
|
+
# The ID (tag) of the company.
|
|
172
|
+
#
|
|
173
|
+
# @return [String]
|
|
174
|
+
required :id, String
|
|
175
|
+
|
|
176
|
+
# @!attribute route
|
|
177
|
+
# The slug/route of the company on the Whop site.
|
|
178
|
+
#
|
|
179
|
+
# @return [String]
|
|
180
|
+
required :route, String
|
|
181
|
+
|
|
182
|
+
# @!attribute title
|
|
183
|
+
# The title of the company.
|
|
184
|
+
#
|
|
185
|
+
# @return [String]
|
|
186
|
+
required :title, String
|
|
187
|
+
|
|
188
|
+
# @!method initialize(id:, route:, title:)
|
|
189
|
+
# The company the review is for.
|
|
190
|
+
#
|
|
191
|
+
# @param id [String] The ID (tag) of the company.
|
|
192
|
+
#
|
|
193
|
+
# @param route [String] The slug/route of the company on the Whop site.
|
|
194
|
+
#
|
|
195
|
+
# @param title [String] The title of the company.
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# @see WhopSDK::Models::ReviewRetrieveResponse#product
|
|
199
|
+
class Product < WhopSDK::Internal::Type::BaseModel
|
|
200
|
+
# @!attribute id
|
|
201
|
+
# The internal ID of the public product.
|
|
202
|
+
#
|
|
203
|
+
# @return [String]
|
|
204
|
+
required :id, String
|
|
205
|
+
|
|
206
|
+
# @!attribute title
|
|
207
|
+
# The title of the product. Use for Whop 4.0.
|
|
208
|
+
#
|
|
209
|
+
# @return [String]
|
|
210
|
+
required :title, String
|
|
211
|
+
|
|
212
|
+
# @!method initialize(id:, title:)
|
|
213
|
+
# The product the review is for.
|
|
214
|
+
#
|
|
215
|
+
# @param id [String] The internal ID of the public product.
|
|
216
|
+
#
|
|
217
|
+
# @param title [String] The title of the product. Use for Whop 4.0.
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# @see WhopSDK::Models::ReviewRetrieveResponse#user
|
|
221
|
+
class User < WhopSDK::Internal::Type::BaseModel
|
|
222
|
+
# @!attribute id
|
|
223
|
+
# The internal ID of the user.
|
|
224
|
+
#
|
|
225
|
+
# @return [String]
|
|
226
|
+
required :id, String
|
|
227
|
+
|
|
228
|
+
# @!attribute name
|
|
229
|
+
# The name of the user from their Whop account.
|
|
230
|
+
#
|
|
231
|
+
# @return [String, nil]
|
|
232
|
+
required :name, String, nil?: true
|
|
233
|
+
|
|
234
|
+
# @!attribute username
|
|
235
|
+
# The username of the user from their Whop account.
|
|
236
|
+
#
|
|
237
|
+
# @return [String]
|
|
238
|
+
required :username, String
|
|
239
|
+
|
|
240
|
+
# @!method initialize(id:, name:, username:)
|
|
241
|
+
# The user account that performed the action.
|
|
242
|
+
#
|
|
243
|
+
# @param id [String] The internal ID of the user.
|
|
244
|
+
#
|
|
245
|
+
# @param name [String, nil] The name of the user from their Whop account.
|
|
246
|
+
#
|
|
247
|
+
# @param username [String] The username of the user from their Whop account.
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The statuses a review can have
|
|
6
|
+
module ReviewStatus
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
PENDING = :pending
|
|
10
|
+
PUBLISHED = :published
|
|
11
|
+
REMOVED = :removed
|
|
12
|
+
|
|
13
|
+
# @!method self.values
|
|
14
|
+
# @return [Array<Symbol>]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -45,6 +45,12 @@ module WhopSDK
|
|
|
45
45
|
# @return [Float, nil]
|
|
46
46
|
required :fee_amount, Float, nil?: true
|
|
47
47
|
|
|
48
|
+
# @!attribute metadata
|
|
49
|
+
# A hash of metadata attached to the transfer
|
|
50
|
+
#
|
|
51
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
52
|
+
required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
53
|
+
|
|
48
54
|
# @!attribute notes
|
|
49
55
|
# The notes of the credit transaction transfer
|
|
50
56
|
#
|
|
@@ -63,7 +69,7 @@ module WhopSDK
|
|
|
63
69
|
# @return [String]
|
|
64
70
|
required :origin_ledger_account_id, String
|
|
65
71
|
|
|
66
|
-
# @!method initialize(id:, amount:, created_at:, currency:, destination:, destination_ledger_account_id:, fee_amount:, notes:, origin:, origin_ledger_account_id:)
|
|
72
|
+
# @!method initialize(id:, amount:, created_at:, currency:, destination:, destination_ledger_account_id:, fee_amount:, metadata:, notes:, origin:, origin_ledger_account_id:)
|
|
67
73
|
# Credit Transaction Transfer
|
|
68
74
|
#
|
|
69
75
|
# @param id [String] The unique identifier of the credit transaction transfer
|
|
@@ -80,6 +86,8 @@ module WhopSDK
|
|
|
80
86
|
#
|
|
81
87
|
# @param fee_amount [Float, nil] The decimal fee of the credit transaction transfer
|
|
82
88
|
#
|
|
89
|
+
# @param metadata [Hash{Symbol=>Object}, nil] A hash of metadata attached to the transfer
|
|
90
|
+
#
|
|
83
91
|
# @param notes [String, nil] The notes of the credit transaction transfer
|
|
84
92
|
#
|
|
85
93
|
# @param origin [WhopSDK::Models::Transfer::Origin::User, WhopSDK::Models::Transfer::Origin::Company, nil] The sender of the credit transaction transfer
|
|
@@ -39,13 +39,19 @@ module WhopSDK
|
|
|
39
39
|
# @return [String, nil]
|
|
40
40
|
optional :idempotence_key, String, nil?: true
|
|
41
41
|
|
|
42
|
+
# @!attribute metadata
|
|
43
|
+
# A hash of metadata to attach to the transfer.
|
|
44
|
+
#
|
|
45
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
46
|
+
optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
47
|
+
|
|
42
48
|
# @!attribute notes
|
|
43
49
|
# Notes for the transfer. Maximum of 50 characters.
|
|
44
50
|
#
|
|
45
51
|
# @return [String, nil]
|
|
46
52
|
optional :notes, String, nil?: true
|
|
47
53
|
|
|
48
|
-
# @!method initialize(amount:, currency:, destination_id:, origin_id:, idempotence_key: nil, notes: nil, request_options: {})
|
|
54
|
+
# @!method initialize(amount:, currency:, destination_id:, origin_id:, idempotence_key: nil, metadata: nil, notes: nil, request_options: {})
|
|
49
55
|
# Some parameter documentations has been truncated, see
|
|
50
56
|
# {WhopSDK::Models::TransferCreateParams} for more details.
|
|
51
57
|
#
|
|
@@ -59,6 +65,8 @@ module WhopSDK
|
|
|
59
65
|
#
|
|
60
66
|
# @param idempotence_key [String, nil] A unique key to ensure idempotence. Use a UUID or similar.
|
|
61
67
|
#
|
|
68
|
+
# @param metadata [Hash{Symbol=>Object}, nil] A hash of metadata to attach to the transfer.
|
|
69
|
+
#
|
|
62
70
|
# @param notes [String, nil] Notes for the transfer. Maximum of 50 characters.
|
|
63
71
|
#
|
|
64
72
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -40,6 +40,12 @@ module WhopSDK
|
|
|
40
40
|
# @return [Float, nil]
|
|
41
41
|
required :fee_amount, Float, nil?: true
|
|
42
42
|
|
|
43
|
+
# @!attribute metadata
|
|
44
|
+
# A hash of metadata attached to the transfer
|
|
45
|
+
#
|
|
46
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
47
|
+
required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
48
|
+
|
|
43
49
|
# @!attribute notes
|
|
44
50
|
# The notes of the credit transaction transfer
|
|
45
51
|
#
|
|
@@ -52,7 +58,7 @@ module WhopSDK
|
|
|
52
58
|
# @return [String]
|
|
53
59
|
required :origin_ledger_account_id, String
|
|
54
60
|
|
|
55
|
-
# @!method initialize(id:, amount:, created_at:, currency:, destination_ledger_account_id:, fee_amount:, notes:, origin_ledger_account_id:)
|
|
61
|
+
# @!method initialize(id:, amount:, created_at:, currency:, destination_ledger_account_id:, fee_amount:, metadata:, notes:, origin_ledger_account_id:)
|
|
56
62
|
# Credit Transaction Transfer
|
|
57
63
|
#
|
|
58
64
|
# @param id [String] The unique identifier of the credit transaction transfer
|
|
@@ -67,6 +73,8 @@ module WhopSDK
|
|
|
67
73
|
#
|
|
68
74
|
# @param fee_amount [Float, nil] The decimal fee of the credit transaction transfer
|
|
69
75
|
#
|
|
76
|
+
# @param metadata [Hash{Symbol=>Object}, nil] A hash of metadata attached to the transfer
|
|
77
|
+
#
|
|
70
78
|
# @param notes [String, nil] The notes of the credit transaction transfer
|
|
71
79
|
#
|
|
72
80
|
# @param origin_ledger_account_id [String] The ID of the origin ledger account
|