whop_sdk 0.0.2
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 +7 -0
- data/.ignore +2 -0
- data/CHANGELOG.md +116 -0
- data/README.md +266 -0
- data/SECURITY.md +23 -0
- data/lib/whop_sdk/client.rb +212 -0
- data/lib/whop_sdk/errors.rb +228 -0
- data/lib/whop_sdk/file_part.rb +58 -0
- data/lib/whop_sdk/helpers/verify_user_token.rb +102 -0
- data/lib/whop_sdk/internal/cursor_page.rb +101 -0
- data/lib/whop_sdk/internal/transport/base_client.rb +567 -0
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +198 -0
- data/lib/whop_sdk/internal/type/array_of.rb +168 -0
- data/lib/whop_sdk/internal/type/base_model.rb +531 -0
- data/lib/whop_sdk/internal/type/base_page.rb +55 -0
- data/lib/whop_sdk/internal/type/boolean.rb +77 -0
- data/lib/whop_sdk/internal/type/converter.rb +327 -0
- data/lib/whop_sdk/internal/type/enum.rb +156 -0
- data/lib/whop_sdk/internal/type/file_input.rb +111 -0
- data/lib/whop_sdk/internal/type/hash_of.rb +188 -0
- data/lib/whop_sdk/internal/type/request_parameters.rb +42 -0
- data/lib/whop_sdk/internal/type/union.rb +250 -0
- data/lib/whop_sdk/internal/type/unknown.rb +81 -0
- data/lib/whop_sdk/internal/util.rb +915 -0
- data/lib/whop_sdk/internal.rb +20 -0
- data/lib/whop_sdk/models/access_level.rb +17 -0
- data/lib/whop_sdk/models/access_pass_type.rb +18 -0
- data/lib/whop_sdk/models/app.rb +351 -0
- data/lib/whop_sdk/models/app_build.rb +88 -0
- data/lib/whop_sdk/models/app_build_create_params.rb +95 -0
- data/lib/whop_sdk/models/app_build_list_params.rb +70 -0
- data/lib/whop_sdk/models/app_build_list_response.rb +89 -0
- data/lib/whop_sdk/models/app_build_platforms.rb +17 -0
- data/lib/whop_sdk/models/app_build_promote_params.rb +14 -0
- data/lib/whop_sdk/models/app_build_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/app_build_statuses.rb +18 -0
- data/lib/whop_sdk/models/app_create_params.rb +38 -0
- data/lib/whop_sdk/models/app_list_params.rb +112 -0
- data/lib/whop_sdk/models/app_list_response.rb +200 -0
- data/lib/whop_sdk/models/app_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/app_statuses.rb +17 -0
- data/lib/whop_sdk/models/app_update_params.rb +134 -0
- data/lib/whop_sdk/models/app_view_type.rb +19 -0
- data/lib/whop_sdk/models/authorized_user_list_params.rb +70 -0
- data/lib/whop_sdk/models/authorized_user_list_response.rb +73 -0
- data/lib/whop_sdk/models/authorized_user_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/authorized_user_retrieve_response.rb +73 -0
- data/lib/whop_sdk/models/authorized_user_roles.rb +21 -0
- data/lib/whop_sdk/models/business_types.rb +28 -0
- data/lib/whop_sdk/models/chat_channel.rb +96 -0
- data/lib/whop_sdk/models/chat_channel_list_params.rb +62 -0
- data/lib/whop_sdk/models/chat_channel_list_response.rb +97 -0
- data/lib/whop_sdk/models/chat_channel_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/chat_channel_update_params.rb +62 -0
- data/lib/whop_sdk/models/checkout_configuration.rb +156 -0
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +293 -0
- data/lib/whop_sdk/models/checkout_configuration_list_params.rb +70 -0
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +157 -0
- data/lib/whop_sdk/models/checkout_configuration_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/collection_method.rb +16 -0
- data/lib/whop_sdk/models/company.rb +218 -0
- data/lib/whop_sdk/models/company_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/course_lesson_interaction.rb +154 -0
- data/lib/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/course_lesson_interaction_list_item.rb +102 -0
- data/lib/whop_sdk/models/course_lesson_interaction_list_params.rb +78 -0
- data/lib/whop_sdk/models/course_lesson_interaction_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/currency.rb +98 -0
- data/lib/whop_sdk/models/custom_cta.rb +27 -0
- data/lib/whop_sdk/models/direction.rb +16 -0
- data/lib/whop_sdk/models/dms_post_types.rb +17 -0
- data/lib/whop_sdk/models/email_notification_preferences.rb +17 -0
- data/lib/whop_sdk/models/entry.rb +171 -0
- data/lib/whop_sdk/models/entry_approve_params.rb +14 -0
- data/lib/whop_sdk/models/entry_approve_response.rb +19 -0
- data/lib/whop_sdk/models/entry_approved_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/entry_created_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/entry_deleted_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/entry_denied_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/entry_deny_params.rb +14 -0
- data/lib/whop_sdk/models/entry_list_params.rb +105 -0
- data/lib/whop_sdk/models/entry_list_response.rb +133 -0
- data/lib/whop_sdk/models/entry_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/entry_status.rb +19 -0
- data/lib/whop_sdk/models/experience.rb +210 -0
- data/lib/whop_sdk/models/experience_attach_params.rb +22 -0
- data/lib/whop_sdk/models/experience_create_params.rb +46 -0
- data/lib/whop_sdk/models/experience_delete_params.rb +14 -0
- data/lib/whop_sdk/models/experience_delete_response.rb +8 -0
- data/lib/whop_sdk/models/experience_detach_params.rb +22 -0
- data/lib/whop_sdk/models/experience_list_params.rb +70 -0
- data/lib/whop_sdk/models/experience_list_response.rb +168 -0
- data/lib/whop_sdk/models/experience_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/experience_update_params.rb +93 -0
- data/lib/whop_sdk/models/forum.rb +72 -0
- data/lib/whop_sdk/models/forum_list_params.rb +62 -0
- data/lib/whop_sdk/models/forum_list_response.rb +73 -0
- data/lib/whop_sdk/models/forum_post.rb +128 -0
- data/lib/whop_sdk/models/forum_post_create_params.rb +166 -0
- data/lib/whop_sdk/models/forum_post_list_params.rb +70 -0
- data/lib/whop_sdk/models/forum_post_list_response.rb +129 -0
- data/lib/whop_sdk/models/forum_post_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/forum_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/forum_update_params.rb +38 -0
- data/lib/whop_sdk/models/friendly_receipt_status.rb +30 -0
- data/lib/whop_sdk/models/global_affiliate_status.rb +16 -0
- data/lib/whop_sdk/models/industry_types.rb +73 -0
- data/lib/whop_sdk/models/invoice.rb +142 -0
- data/lib/whop_sdk/models/invoice_create_params.rb +288 -0
- data/lib/whop_sdk/models/invoice_create_response.rb +27 -0
- data/lib/whop_sdk/models/invoice_created_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/invoice_list_item.rb +142 -0
- data/lib/whop_sdk/models/invoice_list_params.rb +121 -0
- data/lib/whop_sdk/models/invoice_paid_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/invoice_past_due_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/invoice_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/invoice_status.rb +18 -0
- data/lib/whop_sdk/models/invoice_void_params.rb +14 -0
- data/lib/whop_sdk/models/invoice_void_response.rb +8 -0
- data/lib/whop_sdk/models/invoice_voided_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/ledger_account_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +242 -0
- data/lib/whop_sdk/models/member_list_params.rb +162 -0
- data/lib/whop_sdk/models/member_list_response.rb +145 -0
- data/lib/whop_sdk/models/member_most_recent_actions.rb +28 -0
- data/lib/whop_sdk/models/member_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/member_retrieve_response.rb +183 -0
- data/lib/whop_sdk/models/member_statuses.rb +17 -0
- data/lib/whop_sdk/models/membership.rb +264 -0
- data/lib/whop_sdk/models/membership_activated_webhook_event.rb +52 -0
- data/lib/whop_sdk/models/membership_cancel_params.rb +33 -0
- data/lib/whop_sdk/models/membership_deactivated_webhook_event.rb +52 -0
- data/lib/whop_sdk/models/membership_list_params.rb +160 -0
- data/lib/whop_sdk/models/membership_list_response.rb +265 -0
- data/lib/whop_sdk/models/membership_pause_params.rb +26 -0
- data/lib/whop_sdk/models/membership_resume_params.rb +14 -0
- data/lib/whop_sdk/models/membership_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/membership_status.rb +22 -0
- data/lib/whop_sdk/models/membership_update_params.rb +22 -0
- data/lib/whop_sdk/models/message.rb +221 -0
- data/lib/whop_sdk/models/message_create_params.rb +110 -0
- data/lib/whop_sdk/models/message_list_params.rb +62 -0
- data/lib/whop_sdk/models/message_list_response.rb +226 -0
- data/lib/whop_sdk/models/message_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/page_info.rb +42 -0
- data/lib/whop_sdk/models/payment.rb +534 -0
- data/lib/whop_sdk/models/payment_failed_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/payment_list_params.rb +173 -0
- data/lib/whop_sdk/models/payment_list_response.rb +535 -0
- data/lib/whop_sdk/models/payment_pending_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/payment_refund_params.rb +22 -0
- data/lib/whop_sdk/models/payment_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/payment_retry_params.rb +14 -0
- data/lib/whop_sdk/models/payment_succeeded_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/payment_void_params.rb +14 -0
- data/lib/whop_sdk/models/plan.rb +297 -0
- data/lib/whop_sdk/models/plan_create_params.rb +238 -0
- data/lib/whop_sdk/models/plan_delete_params.rb +14 -0
- data/lib/whop_sdk/models/plan_delete_response.rb +8 -0
- data/lib/whop_sdk/models/plan_list_params.rb +120 -0
- data/lib/whop_sdk/models/plan_list_response.rb +221 -0
- data/lib/whop_sdk/models/plan_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/plan_type.rb +16 -0
- data/lib/whop_sdk/models/plan_update_params.rb +211 -0
- data/lib/whop_sdk/models/product.rb +303 -0
- data/lib/whop_sdk/models/product_create_params.rb +406 -0
- data/lib/whop_sdk/models/product_delete_params.rb +14 -0
- data/lib/whop_sdk/models/product_delete_response.rb +8 -0
- data/lib/whop_sdk/models/product_list_item.rb +106 -0
- data/lib/whop_sdk/models/product_list_params.rb +103 -0
- data/lib/whop_sdk/models/product_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/product_update_params.rb +192 -0
- data/lib/whop_sdk/models/promo_type.rb +16 -0
- data/lib/whop_sdk/models/reaction.rb +72 -0
- data/lib/whop_sdk/models/reaction_create_params.rb +34 -0
- data/lib/whop_sdk/models/reaction_list_params.rb +54 -0
- data/lib/whop_sdk/models/reaction_list_response.rb +73 -0
- data/lib/whop_sdk/models/reaction_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/receipt_status.rb +21 -0
- data/lib/whop_sdk/models/release_method.rb +16 -0
- data/lib/whop_sdk/models/shipment.rb +104 -0
- data/lib/whop_sdk/models/shipment_carrier.rb +90 -0
- data/lib/whop_sdk/models/shipment_create_params.rb +38 -0
- data/lib/whop_sdk/models/shipment_list_params.rb +70 -0
- data/lib/whop_sdk/models/shipment_list_response.rb +105 -0
- data/lib/whop_sdk/models/shipment_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/shipment_status.rb +24 -0
- data/lib/whop_sdk/models/shipment_substatus.rb +42 -0
- data/lib/whop_sdk/models/support_channel.rb +88 -0
- data/lib/whop_sdk/models/support_channel_create_params.rb +30 -0
- data/lib/whop_sdk/models/support_channel_list_params.rb +94 -0
- data/lib/whop_sdk/models/support_channel_list_response.rb +89 -0
- data/lib/whop_sdk/models/support_channel_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/tax_type.rb +18 -0
- data/lib/whop_sdk/models/transfer.rb +274 -0
- data/lib/whop_sdk/models/transfer_create_params.rb +67 -0
- data/lib/whop_sdk/models/transfer_list_params.rb +94 -0
- data/lib/whop_sdk/models/transfer_list_response.rb +75 -0
- data/lib/whop_sdk/models/transfer_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +40 -0
- data/lib/whop_sdk/models/user_check_access_params.rb +20 -0
- data/lib/whop_sdk/models/user_check_access_response.rb +27 -0
- data/lib/whop_sdk/models/user_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/user_retrieve_response.rb +77 -0
- data/lib/whop_sdk/models/visibility.rb +18 -0
- data/lib/whop_sdk/models/visibility_filter.rb +21 -0
- data/lib/whop_sdk/models/webhook_unwrap_params.rb +14 -0
- data/lib/whop_sdk/models/who_can_comment_types.rb +16 -0
- data/lib/whop_sdk/models/who_can_post.rb +16 -0
- data/lib/whop_sdk/models/who_can_post_types.rb +16 -0
- data/lib/whop_sdk/models/who_can_react.rb +16 -0
- data/lib/whop_sdk/models.rb +356 -0
- data/lib/whop_sdk/request_options.rb +77 -0
- data/lib/whop_sdk/resources/app_builds.rb +136 -0
- data/lib/whop_sdk/resources/apps.rb +153 -0
- data/lib/whop_sdk/resources/authorized_users.rb +78 -0
- data/lib/whop_sdk/resources/chat_channels.rb +112 -0
- data/lib/whop_sdk/resources/checkout_configurations.rb +111 -0
- data/lib/whop_sdk/resources/companies.rb +37 -0
- data/lib/whop_sdk/resources/course_lesson_interactions.rb +80 -0
- data/lib/whop_sdk/resources/entries.rb +132 -0
- data/lib/whop_sdk/resources/experiences.rb +215 -0
- data/lib/whop_sdk/resources/forum_posts.rb +123 -0
- data/lib/whop_sdk/resources/forums.rb +106 -0
- data/lib/whop_sdk/resources/invoices.rb +153 -0
- data/lib/whop_sdk/resources/ledger_accounts.rb +37 -0
- data/lib/whop_sdk/resources/members.rb +101 -0
- data/lib/whop_sdk/resources/memberships.rb +205 -0
- data/lib/whop_sdk/resources/messages.rb +106 -0
- data/lib/whop_sdk/resources/payments.rb +198 -0
- data/lib/whop_sdk/resources/plans.rb +223 -0
- data/lib/whop_sdk/resources/products.rb +245 -0
- data/lib/whop_sdk/resources/reactions.rb +103 -0
- data/lib/whop_sdk/resources/shipments.rb +109 -0
- data/lib/whop_sdk/resources/support_channels.rb +110 -0
- data/lib/whop_sdk/resources/transfers.rb +120 -0
- data/lib/whop_sdk/resources/users.rb +58 -0
- data/lib/whop_sdk/resources/webhooks.rb +22 -0
- data/lib/whop_sdk/version.rb +5 -0
- data/lib/whop_sdk.rb +266 -0
- data/manifest.yaml +15 -0
- data/rbi/whop_sdk/client.rbi +129 -0
- data/rbi/whop_sdk/errors.rbi +205 -0
- data/rbi/whop_sdk/file_part.rbi +37 -0
- data/rbi/whop_sdk/internal/cursor_page.rbi +40 -0
- data/rbi/whop_sdk/internal/transport/base_client.rbi +292 -0
- data/rbi/whop_sdk/internal/transport/pooled_net_requester.rbi +79 -0
- data/rbi/whop_sdk/internal/type/array_of.rbi +104 -0
- data/rbi/whop_sdk/internal/type/base_model.rbi +302 -0
- data/rbi/whop_sdk/internal/type/base_page.rbi +42 -0
- data/rbi/whop_sdk/internal/type/boolean.rbi +58 -0
- data/rbi/whop_sdk/internal/type/converter.rbi +216 -0
- data/rbi/whop_sdk/internal/type/enum.rbi +82 -0
- data/rbi/whop_sdk/internal/type/file_input.rbi +59 -0
- data/rbi/whop_sdk/internal/type/hash_of.rbi +104 -0
- data/rbi/whop_sdk/internal/type/request_parameters.rbi +29 -0
- data/rbi/whop_sdk/internal/type/union.rbi +128 -0
- data/rbi/whop_sdk/internal/type/unknown.rbi +58 -0
- data/rbi/whop_sdk/internal/util.rbi +484 -0
- data/rbi/whop_sdk/internal.rbi +16 -0
- data/rbi/whop_sdk/models/access_level.rbi +21 -0
- data/rbi/whop_sdk/models/access_pass_type.rbi +23 -0
- data/rbi/whop_sdk/models/app.rbi +487 -0
- data/rbi/whop_sdk/models/app_build.rbi +107 -0
- data/rbi/whop_sdk/models/app_build_create_params.rbi +147 -0
- data/rbi/whop_sdk/models/app_build_list_params.rbi +91 -0
- data/rbi/whop_sdk/models/app_build_list_response.rbi +112 -0
- data/rbi/whop_sdk/models/app_build_platforms.rbi +23 -0
- data/rbi/whop_sdk/models/app_build_promote_params.rbi +27 -0
- data/rbi/whop_sdk/models/app_build_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/app_build_statuses.rbi +24 -0
- data/rbi/whop_sdk/models/app_create_params.rbi +59 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +154 -0
- data/rbi/whop_sdk/models/app_list_response.rbi +280 -0
- data/rbi/whop_sdk/models/app_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/app_statuses.rbi +21 -0
- data/rbi/whop_sdk/models/app_update_params.rbi +201 -0
- data/rbi/whop_sdk/models/app_view_type.rbi +23 -0
- data/rbi/whop_sdk/models/authorized_user_list_params.rbi +91 -0
- data/rbi/whop_sdk/models/authorized_user_list_response.rbi +124 -0
- data/rbi/whop_sdk/models/authorized_user_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/authorized_user_retrieve_response.rbi +124 -0
- data/rbi/whop_sdk/models/authorized_user_roles.rbi +30 -0
- data/rbi/whop_sdk/models/business_types.rbi +36 -0
- data/rbi/whop_sdk/models/chat_channel.rbi +124 -0
- data/rbi/whop_sdk/models/chat_channel_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/chat_channel_list_response.rbi +138 -0
- data/rbi/whop_sdk/models/chat_channel_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/chat_channel_update_params.rbi +83 -0
- data/rbi/whop_sdk/models/checkout_configuration.rbi +201 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +427 -0
- data/rbi/whop_sdk/models/checkout_configuration_list_params.rbi +94 -0
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +209 -0
- data/rbi/whop_sdk/models/checkout_configuration_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/collection_method.rbi +24 -0
- data/rbi/whop_sdk/models/company.rbi +307 -0
- data/rbi/whop_sdk/models/company_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_lesson_interaction.rbi +256 -0
- data/rbi/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbi +75 -0
- data/rbi/whop_sdk/models/course_lesson_interaction_list_item.rbi +165 -0
- data/rbi/whop_sdk/models/course_lesson_interaction_list_params.rbi +102 -0
- data/rbi/whop_sdk/models/course_lesson_interaction_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/currency.rbi +102 -0
- data/rbi/whop_sdk/models/custom_cta.rbi +31 -0
- data/rbi/whop_sdk/models/direction.rbi +20 -0
- data/rbi/whop_sdk/models/dms_post_types.rbi +21 -0
- data/rbi/whop_sdk/models/email_notification_preferences.rbi +34 -0
- data/rbi/whop_sdk/models/entry.rbi +248 -0
- data/rbi/whop_sdk/models/entry_approve_params.rbi +27 -0
- data/rbi/whop_sdk/models/entry_approve_response.rbi +31 -0
- data/rbi/whop_sdk/models/entry_approved_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/entry_created_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/entry_deleted_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/entry_denied_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/entry_deny_params.rbi +27 -0
- data/rbi/whop_sdk/models/entry_list_params.rbi +136 -0
- data/rbi/whop_sdk/models/entry_list_response.rbi +217 -0
- data/rbi/whop_sdk/models/entry_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/entry_status.rbi +23 -0
- data/rbi/whop_sdk/models/experience.rbi +292 -0
- data/rbi/whop_sdk/models/experience_attach_params.rbi +40 -0
- data/rbi/whop_sdk/models/experience_create_params.rbi +67 -0
- data/rbi/whop_sdk/models/experience_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/experience_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/experience_detach_params.rbi +40 -0
- data/rbi/whop_sdk/models/experience_list_params.rbi +91 -0
- data/rbi/whop_sdk/models/experience_list_response.rbi +279 -0
- data/rbi/whop_sdk/models/experience_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/experience_update_params.rbi +167 -0
- data/rbi/whop_sdk/models/forum.rbi +102 -0
- data/rbi/whop_sdk/models/forum_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/forum_list_response.rbi +111 -0
- data/rbi/whop_sdk/models/forum_post.rbi +162 -0
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +254 -0
- data/rbi/whop_sdk/models/forum_post_list_params.rbi +91 -0
- data/rbi/whop_sdk/models/forum_post_list_response.rbi +172 -0
- data/rbi/whop_sdk/models/forum_post_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/forum_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/forum_update_params.rbi +63 -0
- data/rbi/whop_sdk/models/friendly_receipt_status.rbi +47 -0
- data/rbi/whop_sdk/models/global_affiliate_status.rbi +23 -0
- data/rbi/whop_sdk/models/industry_types.rbi +97 -0
- data/rbi/whop_sdk/models/invoice.rbi +198 -0
- data/rbi/whop_sdk/models/invoice_create_params.rbi +401 -0
- data/rbi/whop_sdk/models/invoice_create_response.rbi +49 -0
- data/rbi/whop_sdk/models/invoice_created_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/invoice_list_item.rbi +207 -0
- data/rbi/whop_sdk/models/invoice_list_params.rbi +185 -0
- data/rbi/whop_sdk/models/invoice_paid_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/invoice_past_due_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/invoice_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/invoice_status.rbi +22 -0
- data/rbi/whop_sdk/models/invoice_void_params.rbi +27 -0
- data/rbi/whop_sdk/models/invoice_void_response.rbi +7 -0
- data/rbi/whop_sdk/models/invoice_voided_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +457 -0
- data/rbi/whop_sdk/models/member_list_params.rbi +202 -0
- data/rbi/whop_sdk/models/member_list_response.rbi +195 -0
- data/rbi/whop_sdk/models/member_most_recent_actions.rbi +49 -0
- data/rbi/whop_sdk/models/member_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +255 -0
- data/rbi/whop_sdk/models/member_statuses.rbi +21 -0
- data/rbi/whop_sdk/models/membership.rbi +351 -0
- data/rbi/whop_sdk/models/membership_activated_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/membership_cancel_params.rbi +85 -0
- data/rbi/whop_sdk/models/membership_deactivated_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/membership_list_params.rbi +253 -0
- data/rbi/whop_sdk/models/membership_list_response.rbi +396 -0
- data/rbi/whop_sdk/models/membership_pause_params.rbi +45 -0
- data/rbi/whop_sdk/models/membership_resume_params.rbi +27 -0
- data/rbi/whop_sdk/models/membership_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/membership_status.rbi +28 -0
- data/rbi/whop_sdk/models/membership_update_params.rbi +43 -0
- data/rbi/whop_sdk/models/message.rbi +309 -0
- data/rbi/whop_sdk/models/message_create_params.rbi +194 -0
- data/rbi/whop_sdk/models/message_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/message_list_response.rbi +359 -0
- data/rbi/whop_sdk/models/message_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/page_info.rbi +60 -0
- data/rbi/whop_sdk/models/payment.rbi +691 -0
- data/rbi/whop_sdk/models/payment_failed_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/payment_list_params.rbi +253 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +769 -0
- data/rbi/whop_sdk/models/payment_pending_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/payment_refund_params.rbi +43 -0
- data/rbi/whop_sdk/models/payment_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/payment_retry_params.rbi +27 -0
- data/rbi/whop_sdk/models/payment_succeeded_webhook_event.rbi +75 -0
- data/rbi/whop_sdk/models/payment_void_params.rbi +27 -0
- data/rbi/whop_sdk/models/plan.rbi +366 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +309 -0
- data/rbi/whop_sdk/models/plan_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/plan_delete_response.rbi +7 -0
- data/rbi/whop_sdk/models/plan_list_params.rbi +157 -0
- data/rbi/whop_sdk/models/plan_list_response.rbi +296 -0
- data/rbi/whop_sdk/models/plan_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/plan_type.rbi +20 -0
- data/rbi/whop_sdk/models/plan_update_params.rbi +279 -0
- data/rbi/whop_sdk/models/product.rbi +403 -0
- data/rbi/whop_sdk/models/product_create_params.rbi +592 -0
- data/rbi/whop_sdk/models/product_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/product_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/product_list_item.rbi +126 -0
- data/rbi/whop_sdk/models/product_list_params.rbi +142 -0
- data/rbi/whop_sdk/models/product_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/product_update_params.rbi +245 -0
- data/rbi/whop_sdk/models/promo_type.rbi +20 -0
- data/rbi/whop_sdk/models/reaction.rbi +106 -0
- data/rbi/whop_sdk/models/reaction_create_params.rbi +53 -0
- data/rbi/whop_sdk/models/reaction_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/reaction_list_response.rbi +116 -0
- data/rbi/whop_sdk/models/reaction_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/receipt_status.rbi +26 -0
- data/rbi/whop_sdk/models/release_method.rbi +20 -0
- data/rbi/whop_sdk/models/shipment.rbi +134 -0
- data/rbi/whop_sdk/models/shipment_carrier.rbi +117 -0
- data/rbi/whop_sdk/models/shipment_create_params.rbi +59 -0
- data/rbi/whop_sdk/models/shipment_list_params.rbi +91 -0
- data/rbi/whop_sdk/models/shipment_list_response.rbi +146 -0
- data/rbi/whop_sdk/models/shipment_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/shipment_status.rbi +31 -0
- data/rbi/whop_sdk/models/shipment_substatus.rbi +86 -0
- data/rbi/whop_sdk/models/support_channel.rbi +133 -0
- data/rbi/whop_sdk/models/support_channel_create_params.rbi +51 -0
- data/rbi/whop_sdk/models/support_channel_list_params.rbi +136 -0
- data/rbi/whop_sdk/models/support_channel_list_response.rbi +147 -0
- data/rbi/whop_sdk/models/support_channel_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/tax_type.rbi +22 -0
- data/rbi/whop_sdk/models/transfer.rbi +387 -0
- data/rbi/whop_sdk/models/transfer_create_params.rbi +87 -0
- data/rbi/whop_sdk/models/transfer_list_params.rbi +125 -0
- data/rbi/whop_sdk/models/transfer_list_response.rbi +97 -0
- data/rbi/whop_sdk/models/transfer_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +33 -0
- data/rbi/whop_sdk/models/user_check_access_params.rbi +35 -0
- data/rbi/whop_sdk/models/user_check_access_response.rbi +49 -0
- data/rbi/whop_sdk/models/user_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/user_retrieve_response.rbi +127 -0
- data/rbi/whop_sdk/models/visibility.rbi +22 -0
- data/rbi/whop_sdk/models/visibility_filter.rbi +29 -0
- data/rbi/whop_sdk/models/webhook_unwrap_params.rbi +27 -0
- data/rbi/whop_sdk/models/who_can_comment_types.rbi +22 -0
- data/rbi/whop_sdk/models/who_can_post.rbi +20 -0
- data/rbi/whop_sdk/models/who_can_post_types.rbi +20 -0
- data/rbi/whop_sdk/models/who_can_react.rbi +20 -0
- data/rbi/whop_sdk/models.rbi +326 -0
- data/rbi/whop_sdk/request_options.rbi +57 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +115 -0
- data/rbi/whop_sdk/resources/apps.rbi +146 -0
- data/rbi/whop_sdk/resources/authorized_users.rbi +68 -0
- data/rbi/whop_sdk/resources/chat_channels.rbi +98 -0
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +98 -0
- data/rbi/whop_sdk/resources/companies.rbi +26 -0
- data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +71 -0
- data/rbi/whop_sdk/resources/entries.rbi +105 -0
- data/rbi/whop_sdk/resources/experiences.rbi +170 -0
- data/rbi/whop_sdk/resources/forum_posts.rbi +117 -0
- data/rbi/whop_sdk/resources/forums.rbi +88 -0
- data/rbi/whop_sdk/resources/invoices.rbi +139 -0
- data/rbi/whop_sdk/resources/ledger_accounts.rbi +26 -0
- data/rbi/whop_sdk/resources/members.rbi +97 -0
- data/rbi/whop_sdk/resources/memberships.rbi +171 -0
- data/rbi/whop_sdk/resources/messages.rbi +91 -0
- data/rbi/whop_sdk/resources/payments.rbi +173 -0
- data/rbi/whop_sdk/resources/plans.rbi +228 -0
- data/rbi/whop_sdk/resources/products.rbi +254 -0
- data/rbi/whop_sdk/resources/reactions.rbi +80 -0
- data/rbi/whop_sdk/resources/shipments.rbi +91 -0
- data/rbi/whop_sdk/resources/support_channels.rbi +93 -0
- data/rbi/whop_sdk/resources/transfers.rbi +104 -0
- data/rbi/whop_sdk/resources/users.rbi +33 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +38 -0
- data/rbi/whop_sdk/version.rbi +5 -0
- data/sig/whop_sdk/client.rbs +77 -0
- data/sig/whop_sdk/errors.rbs +117 -0
- data/sig/whop_sdk/file_part.rbs +21 -0
- data/sig/whop_sdk/internal/cursor_page.rbs +24 -0
- data/sig/whop_sdk/internal/transport/base_client.rbs +131 -0
- data/sig/whop_sdk/internal/transport/pooled_net_requester.rbs +45 -0
- data/sig/whop_sdk/internal/type/array_of.rbs +48 -0
- data/sig/whop_sdk/internal/type/base_model.rbs +102 -0
- data/sig/whop_sdk/internal/type/base_page.rbs +24 -0
- data/sig/whop_sdk/internal/type/boolean.rbs +26 -0
- data/sig/whop_sdk/internal/type/converter.rbs +79 -0
- data/sig/whop_sdk/internal/type/enum.rbs +32 -0
- data/sig/whop_sdk/internal/type/file_input.rbs +25 -0
- data/sig/whop_sdk/internal/type/hash_of.rbs +48 -0
- data/sig/whop_sdk/internal/type/request_parameters.rbs +17 -0
- data/sig/whop_sdk/internal/type/union.rbs +52 -0
- data/sig/whop_sdk/internal/type/unknown.rbs +26 -0
- data/sig/whop_sdk/internal/util.rbs +185 -0
- data/sig/whop_sdk/internal.rbs +9 -0
- data/sig/whop_sdk/models/access_level.rbs +15 -0
- data/sig/whop_sdk/models/access_pass_type.rbs +16 -0
- data/sig/whop_sdk/models/app.rbs +216 -0
- data/sig/whop_sdk/models/app_build.rbs +60 -0
- data/sig/whop_sdk/models/app_build_create_params.rbs +58 -0
- data/sig/whop_sdk/models/app_build_list_params.rbs +56 -0
- data/sig/whop_sdk/models/app_build_list_response.rbs +60 -0
- data/sig/whop_sdk/models/app_build_platforms.rbs +15 -0
- data/sig/whop_sdk/models/app_build_promote_params.rbs +15 -0
- data/sig/whop_sdk/models/app_build_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/app_build_statuses.rbs +16 -0
- data/sig/whop_sdk/models/app_create_params.rbs +32 -0
- data/sig/whop_sdk/models/app_list_params.rbs +90 -0
- data/sig/whop_sdk/models/app_list_response.rbs +116 -0
- data/sig/whop_sdk/models/app_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/app_statuses.rbs +15 -0
- data/sig/whop_sdk/models/app_update_params.rbs +93 -0
- data/sig/whop_sdk/models/app_view_type.rbs +17 -0
- data/sig/whop_sdk/models/authorized_user_list_params.rbs +56 -0
- data/sig/whop_sdk/models/authorized_user_list_response.rbs +57 -0
- data/sig/whop_sdk/models/authorized_user_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/authorized_user_retrieve_response.rbs +57 -0
- data/sig/whop_sdk/models/authorized_user_roles.rbs +26 -0
- data/sig/whop_sdk/models/business_types.rbs +40 -0
- data/sig/whop_sdk/models/chat_channel.rbs +67 -0
- data/sig/whop_sdk/models/chat_channel_list_params.rbs +51 -0
- data/sig/whop_sdk/models/chat_channel_list_response.rbs +67 -0
- data/sig/whop_sdk/models/chat_channel_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/chat_channel_update_params.rbs +51 -0
- data/sig/whop_sdk/models/checkout_configuration.rbs +112 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +202 -0
- data/sig/whop_sdk/models/checkout_configuration_list_params.rbs +56 -0
- data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +112 -0
- data/sig/whop_sdk/models/checkout_configuration_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/collection_method.rbs +14 -0
- data/sig/whop_sdk/models/company.rbs +161 -0
- data/sig/whop_sdk/models/company_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/course_lesson_interaction.rbs +108 -0
- data/sig/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/course_lesson_interaction_list_item.rbs +66 -0
- data/sig/whop_sdk/models/course_lesson_interaction_list_params.rbs +61 -0
- data/sig/whop_sdk/models/course_lesson_interaction_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/currency.rbs +180 -0
- data/sig/whop_sdk/models/custom_cta.rbs +38 -0
- data/sig/whop_sdk/models/direction.rbs +14 -0
- data/sig/whop_sdk/models/dms_post_types.rbs +15 -0
- data/sig/whop_sdk/models/email_notification_preferences.rbs +16 -0
- data/sig/whop_sdk/models/entry.rbs +114 -0
- data/sig/whop_sdk/models/entry_approve_params.rbs +15 -0
- data/sig/whop_sdk/models/entry_approve_response.rbs +13 -0
- data/sig/whop_sdk/models/entry_approved_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/entry_created_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/entry_deleted_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/entry_denied_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/entry_deny_params.rbs +14 -0
- data/sig/whop_sdk/models/entry_list_params.rbs +82 -0
- data/sig/whop_sdk/models/entry_list_response.rbs +94 -0
- data/sig/whop_sdk/models/entry_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/entry_status.rbs +17 -0
- data/sig/whop_sdk/models/experience.rbs +126 -0
- data/sig/whop_sdk/models/experience_attach_params.rbs +23 -0
- data/sig/whop_sdk/models/experience_create_params.rbs +36 -0
- data/sig/whop_sdk/models/experience_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/experience_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/experience_detach_params.rbs +23 -0
- data/sig/whop_sdk/models/experience_list_params.rbs +56 -0
- data/sig/whop_sdk/models/experience_list_response.rbs +111 -0
- data/sig/whop_sdk/models/experience_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +69 -0
- data/sig/whop_sdk/models/forum.rbs +52 -0
- data/sig/whop_sdk/models/forum_list_params.rbs +51 -0
- data/sig/whop_sdk/models/forum_list_response.rbs +52 -0
- data/sig/whop_sdk/models/forum_post.rbs +84 -0
- data/sig/whop_sdk/models/forum_post_create_params.rbs +110 -0
- data/sig/whop_sdk/models/forum_post_list_params.rbs +56 -0
- data/sig/whop_sdk/models/forum_post_list_response.rbs +84 -0
- data/sig/whop_sdk/models/forum_post_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/forum_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/forum_update_params.rbs +36 -0
- data/sig/whop_sdk/models/friendly_receipt_status.rbs +44 -0
- data/sig/whop_sdk/models/global_affiliate_status.rbs +14 -0
- data/sig/whop_sdk/models/industry_types.rbs +130 -0
- data/sig/whop_sdk/models/invoice.rbs +101 -0
- data/sig/whop_sdk/models/invoice_create_params.rbs +197 -0
- data/sig/whop_sdk/models/invoice_create_response.rbs +19 -0
- data/sig/whop_sdk/models/invoice_created_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/invoice_list_item.rbs +101 -0
- data/sig/whop_sdk/models/invoice_list_params.rbs +100 -0
- data/sig/whop_sdk/models/invoice_paid_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/invoice_past_due_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/invoice_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/invoice_status.rbs +16 -0
- data/sig/whop_sdk/models/invoice_void_params.rbs +15 -0
- data/sig/whop_sdk/models/invoice_void_response.rbs +5 -0
- data/sig/whop_sdk/models/invoice_voided_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/ledger_account_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +183 -0
- data/sig/whop_sdk/models/member_list_params.rbs +116 -0
- data/sig/whop_sdk/models/member_list_response.rbs +97 -0
- data/sig/whop_sdk/models/member_most_recent_actions.rbs +40 -0
- data/sig/whop_sdk/models/member_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/member_retrieve_response.rbs +116 -0
- data/sig/whop_sdk/models/member_statuses.rbs +15 -0
- data/sig/whop_sdk/models/membership.rbs +166 -0
- data/sig/whop_sdk/models/membership_activated_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/membership_cancel_params.rbs +37 -0
- data/sig/whop_sdk/models/membership_deactivated_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/membership_list_params.rbs +130 -0
- data/sig/whop_sdk/models/membership_list_response.rbs +166 -0
- data/sig/whop_sdk/models/membership_pause_params.rbs +23 -0
- data/sig/whop_sdk/models/membership_resume_params.rbs +15 -0
- data/sig/whop_sdk/models/membership_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/membership_status.rbs +28 -0
- data/sig/whop_sdk/models/membership_update_params.rbs +24 -0
- data/sig/whop_sdk/models/message.rbs +142 -0
- data/sig/whop_sdk/models/message_create_params.rbs +80 -0
- data/sig/whop_sdk/models/message_list_params.rbs +51 -0
- data/sig/whop_sdk/models/message_list_response.rbs +147 -0
- data/sig/whop_sdk/models/message_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/page_info.rbs +35 -0
- data/sig/whop_sdk/models/payment.rbs +355 -0
- data/sig/whop_sdk/models/payment_failed_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/payment_list_params.rbs +134 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +355 -0
- data/sig/whop_sdk/models/payment_pending_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/payment_refund_params.rbs +23 -0
- data/sig/whop_sdk/models/payment_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/payment_retry_params.rbs +15 -0
- data/sig/whop_sdk/models/payment_succeeded_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/payment_void_params.rbs +15 -0
- data/sig/whop_sdk/models/plan.rbs +201 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +160 -0
- data/sig/whop_sdk/models/plan_delete_params.rbs +14 -0
- data/sig/whop_sdk/models/plan_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/plan_list_params.rbs +95 -0
- data/sig/whop_sdk/models/plan_list_response.rbs +144 -0
- data/sig/whop_sdk/models/plan_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/plan_type.rbs +14 -0
- data/sig/whop_sdk/models/plan_update_params.rbs +145 -0
- data/sig/whop_sdk/models/product.rbs +197 -0
- data/sig/whop_sdk/models/product_create_params.rbs +283 -0
- data/sig/whop_sdk/models/product_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/product_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/product_list_item.rbs +75 -0
- data/sig/whop_sdk/models/product_list_params.rbs +80 -0
- data/sig/whop_sdk/models/product_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/product_update_params.rbs +123 -0
- data/sig/whop_sdk/models/promo_type.rbs +14 -0
- data/sig/whop_sdk/models/reaction.rbs +49 -0
- data/sig/whop_sdk/models/reaction_create_params.rbs +28 -0
- data/sig/whop_sdk/models/reaction_list_params.rbs +46 -0
- data/sig/whop_sdk/models/reaction_list_response.rbs +49 -0
- data/sig/whop_sdk/models/reaction_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/receipt_status.rbs +20 -0
- data/sig/whop_sdk/models/release_method.rbs +14 -0
- data/sig/whop_sdk/models/shipment.rbs +75 -0
- data/sig/whop_sdk/models/shipment_carrier.rbs +164 -0
- data/sig/whop_sdk/models/shipment_create_params.rbs +32 -0
- data/sig/whop_sdk/models/shipment_list_params.rbs +56 -0
- data/sig/whop_sdk/models/shipment_list_response.rbs +75 -0
- data/sig/whop_sdk/models/shipment_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/shipment_status.rbs +32 -0
- data/sig/whop_sdk/models/shipment_substatus.rbs +68 -0
- data/sig/whop_sdk/models/support_channel.rbs +59 -0
- data/sig/whop_sdk/models/support_channel_create_params.rbs +28 -0
- data/sig/whop_sdk/models/support_channel_list_params.rbs +72 -0
- data/sig/whop_sdk/models/support_channel_list_response.rbs +59 -0
- data/sig/whop_sdk/models/support_channel_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/tax_type.rbs +15 -0
- data/sig/whop_sdk/models/transfer.rbs +192 -0
- data/sig/whop_sdk/models/transfer_create_params.rbs +51 -0
- data/sig/whop_sdk/models/transfer_list_params.rbs +72 -0
- data/sig/whop_sdk/models/transfer_list_response.rbs +55 -0
- data/sig/whop_sdk/models/transfer_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +25 -0
- data/sig/whop_sdk/models/user_check_access_params.rbs +20 -0
- data/sig/whop_sdk/models/user_check_access_response.rbs +22 -0
- data/sig/whop_sdk/models/user_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/user_retrieve_response.rbs +55 -0
- data/sig/whop_sdk/models/visibility.rbs +16 -0
- data/sig/whop_sdk/models/visibility_filter.rbs +26 -0
- data/sig/whop_sdk/models/webhook_unwrap_params.rbs +15 -0
- data/sig/whop_sdk/models/who_can_comment_types.rbs +14 -0
- data/sig/whop_sdk/models/who_can_post.rbs +14 -0
- data/sig/whop_sdk/models/who_can_post_types.rbs +14 -0
- data/sig/whop_sdk/models/who_can_react.rbs +14 -0
- data/sig/whop_sdk/models.rbs +315 -0
- data/sig/whop_sdk/request_options.rbs +34 -0
- data/sig/whop_sdk/resources/app_builds.rbs +37 -0
- data/sig/whop_sdk/resources/apps.rbs +48 -0
- data/sig/whop_sdk/resources/authorized_users.rbs +23 -0
- data/sig/whop_sdk/resources/chat_channels.rbs +33 -0
- data/sig/whop_sdk/resources/checkout_configurations.rbs +32 -0
- data/sig/whop_sdk/resources/companies.rbs +12 -0
- data/sig/whop_sdk/resources/course_lesson_interactions.rbs +24 -0
- data/sig/whop_sdk/resources/entries.rbs +36 -0
- data/sig/whop_sdk/resources/experiences.rbs +55 -0
- data/sig/whop_sdk/resources/forum_posts.rbs +37 -0
- data/sig/whop_sdk/resources/forums.rbs +30 -0
- data/sig/whop_sdk/resources/invoices.rbs +41 -0
- data/sig/whop_sdk/resources/ledger_accounts.rbs +12 -0
- data/sig/whop_sdk/resources/members.rbs +32 -0
- data/sig/whop_sdk/resources/memberships.rbs +53 -0
- data/sig/whop_sdk/resources/messages.rbs +30 -0
- data/sig/whop_sdk/resources/payments.rbs +48 -0
- data/sig/whop_sdk/resources/plans.rbs +69 -0
- data/sig/whop_sdk/resources/products.rbs +77 -0
- data/sig/whop_sdk/resources/reactions.rbs +27 -0
- data/sig/whop_sdk/resources/shipments.rbs +30 -0
- data/sig/whop_sdk/resources/support_channels.rbs +30 -0
- data/sig/whop_sdk/resources/transfers.rbs +34 -0
- data/sig/whop_sdk/resources/users.rbs +18 -0
- data/sig/whop_sdk/resources/webhooks.rbs +24 -0
- data/sig/whop_sdk/version.rbs +3 -0
- metadata +765 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class CheckoutConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The ID of the checkout configuration
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute affiliate_code
|
|
13
|
+
# The affiliate code to use for the checkout configuration
|
|
14
|
+
#
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
required :affiliate_code, String, nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute company_id
|
|
19
|
+
# The ID of the company to use for the checkout configuration
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :company_id, String
|
|
23
|
+
|
|
24
|
+
# @!attribute metadata
|
|
25
|
+
# The metadata to use for the checkout configuration
|
|
26
|
+
#
|
|
27
|
+
# @return [Hash{Symbol=>Object}]
|
|
28
|
+
required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]
|
|
29
|
+
|
|
30
|
+
# @!attribute plan
|
|
31
|
+
# The plan to use for the checkout configuration
|
|
32
|
+
#
|
|
33
|
+
# @return [WhopSDK::Models::CheckoutConfiguration::Plan]
|
|
34
|
+
required :plan, -> { WhopSDK::CheckoutConfiguration::Plan }
|
|
35
|
+
|
|
36
|
+
# @!attribute purchase_url
|
|
37
|
+
# The URL to redirect the user to after the checkout configuration is created
|
|
38
|
+
#
|
|
39
|
+
# @return [String]
|
|
40
|
+
required :purchase_url, String
|
|
41
|
+
|
|
42
|
+
# @!attribute redirect_url
|
|
43
|
+
# The URL to redirect the user to after the checkout configuration is created
|
|
44
|
+
#
|
|
45
|
+
# @return [String, nil]
|
|
46
|
+
required :redirect_url, String, nil?: true
|
|
47
|
+
|
|
48
|
+
# @!method initialize(id:, affiliate_code:, company_id:, metadata:, plan:, purchase_url:, redirect_url:)
|
|
49
|
+
# A checkout configuration object. Can be used to create a reusable custom
|
|
50
|
+
# configuration for a checkout, including attaching plans, affiliates and custom
|
|
51
|
+
# metadata to the checkout. This configuration can be re-used by multiple users.
|
|
52
|
+
# All successful payments and memberships resulting from a checkout will contain
|
|
53
|
+
# the passed metadata.
|
|
54
|
+
#
|
|
55
|
+
# @param id [String] The ID of the checkout configuration
|
|
56
|
+
#
|
|
57
|
+
# @param affiliate_code [String, nil] The affiliate code to use for the checkout configuration
|
|
58
|
+
#
|
|
59
|
+
# @param company_id [String] The ID of the company to use for the checkout configuration
|
|
60
|
+
#
|
|
61
|
+
# @param metadata [Hash{Symbol=>Object}] The metadata to use for the checkout configuration
|
|
62
|
+
#
|
|
63
|
+
# @param plan [WhopSDK::Models::CheckoutConfiguration::Plan] The plan to use for the checkout configuration
|
|
64
|
+
#
|
|
65
|
+
# @param purchase_url [String] The URL to redirect the user to after the checkout configuration is created
|
|
66
|
+
#
|
|
67
|
+
# @param redirect_url [String, nil] The URL to redirect the user to after the checkout configuration is created
|
|
68
|
+
|
|
69
|
+
# @see WhopSDK::Models::CheckoutConfiguration#plan
|
|
70
|
+
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
71
|
+
# @!attribute id
|
|
72
|
+
# The internal ID of the plan.
|
|
73
|
+
#
|
|
74
|
+
# @return [String]
|
|
75
|
+
required :id, String
|
|
76
|
+
|
|
77
|
+
# @!attribute billing_period
|
|
78
|
+
# The interval at which the plan charges (renewal plans).
|
|
79
|
+
#
|
|
80
|
+
# @return [Integer, nil]
|
|
81
|
+
required :billing_period, Integer, nil?: true
|
|
82
|
+
|
|
83
|
+
# @!attribute currency
|
|
84
|
+
# The respective currency identifier for the plan.
|
|
85
|
+
#
|
|
86
|
+
# @return [Symbol, WhopSDK::Models::Currency]
|
|
87
|
+
required :currency, enum: -> { WhopSDK::Currency }
|
|
88
|
+
|
|
89
|
+
# @!attribute expiration_days
|
|
90
|
+
# The interval at which the plan charges (expiration plans).
|
|
91
|
+
#
|
|
92
|
+
# @return [Integer, nil]
|
|
93
|
+
required :expiration_days, Integer, nil?: true
|
|
94
|
+
|
|
95
|
+
# @!attribute initial_price
|
|
96
|
+
# The price a person has to pay for a plan on the initial purchase.
|
|
97
|
+
#
|
|
98
|
+
# @return [Float]
|
|
99
|
+
required :initial_price, Float
|
|
100
|
+
|
|
101
|
+
# @!attribute plan_type
|
|
102
|
+
# Indicates if the plan is a one time payment or recurring.
|
|
103
|
+
#
|
|
104
|
+
# @return [Symbol, WhopSDK::Models::PlanType]
|
|
105
|
+
required :plan_type, enum: -> { WhopSDK::PlanType }
|
|
106
|
+
|
|
107
|
+
# @!attribute release_method
|
|
108
|
+
# This is the release method the business uses to sell this plan.
|
|
109
|
+
#
|
|
110
|
+
# @return [Symbol, WhopSDK::Models::ReleaseMethod]
|
|
111
|
+
required :release_method, enum: -> { WhopSDK::ReleaseMethod }
|
|
112
|
+
|
|
113
|
+
# @!attribute renewal_price
|
|
114
|
+
# The price a person has to pay for a plan on the renewal purchase.
|
|
115
|
+
#
|
|
116
|
+
# @return [Float]
|
|
117
|
+
required :renewal_price, Float
|
|
118
|
+
|
|
119
|
+
# @!attribute trial_period_days
|
|
120
|
+
# The number of free trial days added before a renewal plan.
|
|
121
|
+
#
|
|
122
|
+
# @return [Integer, nil]
|
|
123
|
+
required :trial_period_days, Integer, nil?: true
|
|
124
|
+
|
|
125
|
+
# @!attribute visibility
|
|
126
|
+
# Shows or hides the plan from public/business view.
|
|
127
|
+
#
|
|
128
|
+
# @return [Symbol, WhopSDK::Models::Visibility]
|
|
129
|
+
required :visibility, enum: -> { WhopSDK::Visibility }
|
|
130
|
+
|
|
131
|
+
# @!method initialize(id:, billing_period:, currency:, expiration_days:, initial_price:, plan_type:, release_method:, renewal_price:, trial_period_days:, visibility:)
|
|
132
|
+
# The plan to use for the checkout configuration
|
|
133
|
+
#
|
|
134
|
+
# @param id [String] The internal ID of the plan.
|
|
135
|
+
#
|
|
136
|
+
# @param billing_period [Integer, nil] The interval at which the plan charges (renewal plans).
|
|
137
|
+
#
|
|
138
|
+
# @param currency [Symbol, WhopSDK::Models::Currency] The respective currency identifier for the plan.
|
|
139
|
+
#
|
|
140
|
+
# @param expiration_days [Integer, nil] The interval at which the plan charges (expiration plans).
|
|
141
|
+
#
|
|
142
|
+
# @param initial_price [Float] The price a person has to pay for a plan on the initial purchase.
|
|
143
|
+
#
|
|
144
|
+
# @param plan_type [Symbol, WhopSDK::Models::PlanType] Indicates if the plan is a one time payment or recurring.
|
|
145
|
+
#
|
|
146
|
+
# @param release_method [Symbol, WhopSDK::Models::ReleaseMethod] This is the release method the business uses to sell this plan.
|
|
147
|
+
#
|
|
148
|
+
# @param renewal_price [Float] The price a person has to pay for a plan on the renewal purchase.
|
|
149
|
+
#
|
|
150
|
+
# @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
|
|
151
|
+
#
|
|
152
|
+
# @param visibility [Symbol, WhopSDK::Models::Visibility] Shows or hides the plan from public/business view.
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::CheckoutConfigurations#create
|
|
6
|
+
class CheckoutConfigurationCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute affiliate_code
|
|
11
|
+
# The affiliate code to use for the checkout configuration
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :affiliate_code, String, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!attribute metadata
|
|
17
|
+
# The metadata to use for the checkout configuration
|
|
18
|
+
#
|
|
19
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
20
|
+
optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute plan
|
|
23
|
+
# Pass this object to create a new plan for this checkout configuration
|
|
24
|
+
#
|
|
25
|
+
# @return [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan, nil]
|
|
26
|
+
optional :plan, -> { WhopSDK::CheckoutConfigurationCreateParams::Plan }, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute plan_id
|
|
29
|
+
# The ID of the plan to use for the checkout configuration
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :plan_id, String, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute redirect_url
|
|
35
|
+
# The URL to redirect the user to after the checkout configuration is created
|
|
36
|
+
#
|
|
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
|
+
# @param affiliate_code [String, nil] The affiliate code to use for the checkout configuration
|
|
42
|
+
#
|
|
43
|
+
# @param metadata [Hash{Symbol=>Object}, nil] The metadata to use for the checkout configuration
|
|
44
|
+
#
|
|
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
|
+
# @param redirect_url [String, nil] The URL to redirect the user to after the checkout configuration is created
|
|
50
|
+
#
|
|
51
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
52
|
+
|
|
53
|
+
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
54
|
+
# @!attribute company_id
|
|
55
|
+
# The company the plan should be created for.
|
|
56
|
+
#
|
|
57
|
+
# @return [String]
|
|
58
|
+
required :company_id, String
|
|
59
|
+
|
|
60
|
+
# @!attribute billing_period
|
|
61
|
+
# The interval at which the plan charges (renewal plans).
|
|
62
|
+
#
|
|
63
|
+
# @return [Integer, nil]
|
|
64
|
+
optional :billing_period, Integer, nil?: true
|
|
65
|
+
|
|
66
|
+
# @!attribute currency
|
|
67
|
+
# The available currencies on the platform
|
|
68
|
+
#
|
|
69
|
+
# @return [Symbol, WhopSDK::Models::Currency, nil]
|
|
70
|
+
optional :currency, enum: -> { WhopSDK::Currency }, nil?: true
|
|
71
|
+
|
|
72
|
+
# @!attribute custom_fields
|
|
73
|
+
# An array of custom field objects.
|
|
74
|
+
#
|
|
75
|
+
# @return [Array<WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::CustomField>, nil]
|
|
76
|
+
optional :custom_fields,
|
|
77
|
+
-> {
|
|
78
|
+
WhopSDK::Internal::Type::ArrayOf[WhopSDK::CheckoutConfigurationCreateParams::Plan::CustomField]
|
|
79
|
+
},
|
|
80
|
+
nil?: true
|
|
81
|
+
|
|
82
|
+
# @!attribute description
|
|
83
|
+
# The description of the plan.
|
|
84
|
+
#
|
|
85
|
+
# @return [String, nil]
|
|
86
|
+
optional :description, String, nil?: true
|
|
87
|
+
|
|
88
|
+
# @!attribute expiration_days
|
|
89
|
+
# The interval at which the plan charges (expiration plans).
|
|
90
|
+
#
|
|
91
|
+
# @return [Integer, nil]
|
|
92
|
+
optional :expiration_days, Integer, nil?: true
|
|
93
|
+
|
|
94
|
+
# @!attribute force_create_new_plan
|
|
95
|
+
# Whether to force the creation of a new plan even if one with the same attributes
|
|
96
|
+
# already exists.
|
|
97
|
+
#
|
|
98
|
+
# @return [Boolean, nil]
|
|
99
|
+
optional :force_create_new_plan, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
100
|
+
|
|
101
|
+
# @!attribute image
|
|
102
|
+
# An image for the plan. This will be visible on the product page to customers.
|
|
103
|
+
#
|
|
104
|
+
# @return [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image, nil]
|
|
105
|
+
optional :image, -> { WhopSDK::CheckoutConfigurationCreateParams::Plan::Image }, nil?: true
|
|
106
|
+
|
|
107
|
+
# @!attribute initial_price
|
|
108
|
+
# An additional amount charged upon first purchase.
|
|
109
|
+
#
|
|
110
|
+
# @return [Float, nil]
|
|
111
|
+
optional :initial_price, Float, nil?: true
|
|
112
|
+
|
|
113
|
+
# @!attribute internal_notes
|
|
114
|
+
# A personal description or notes section for the business.
|
|
115
|
+
#
|
|
116
|
+
# @return [String, nil]
|
|
117
|
+
optional :internal_notes, String, nil?: true
|
|
118
|
+
|
|
119
|
+
# @!attribute override_tax_type
|
|
120
|
+
# Whether or not the tax is included in a plan's price (or if it hasn't been set
|
|
121
|
+
# up)
|
|
122
|
+
#
|
|
123
|
+
# @return [Symbol, WhopSDK::Models::TaxType, nil]
|
|
124
|
+
optional :override_tax_type, enum: -> { WhopSDK::TaxType }, nil?: true
|
|
125
|
+
|
|
126
|
+
# @!attribute plan_type
|
|
127
|
+
# The type of plan that can be attached to an access pass
|
|
128
|
+
#
|
|
129
|
+
# @return [Symbol, WhopSDK::Models::PlanType, nil]
|
|
130
|
+
optional :plan_type, enum: -> { WhopSDK::PlanType }, nil?: true
|
|
131
|
+
|
|
132
|
+
# @!attribute product_id
|
|
133
|
+
# The product the plan is related to.
|
|
134
|
+
#
|
|
135
|
+
# @return [String, nil]
|
|
136
|
+
optional :product_id, String, nil?: true
|
|
137
|
+
|
|
138
|
+
# @!attribute release_method
|
|
139
|
+
# The methods of how a plan can be released.
|
|
140
|
+
#
|
|
141
|
+
# @return [Symbol, WhopSDK::Models::ReleaseMethod, nil]
|
|
142
|
+
optional :release_method, enum: -> { WhopSDK::ReleaseMethod }, nil?: true
|
|
143
|
+
|
|
144
|
+
# @!attribute renewal_price
|
|
145
|
+
# The amount the customer is charged every billing period.
|
|
146
|
+
#
|
|
147
|
+
# @return [Float, nil]
|
|
148
|
+
optional :renewal_price, Float, nil?: true
|
|
149
|
+
|
|
150
|
+
# @!attribute title
|
|
151
|
+
# The title of the plan. This will be visible on the product page to customers.
|
|
152
|
+
#
|
|
153
|
+
# @return [String, nil]
|
|
154
|
+
optional :title, String, nil?: true
|
|
155
|
+
|
|
156
|
+
# @!attribute trial_period_days
|
|
157
|
+
# The number of free trial days added before a renewal plan.
|
|
158
|
+
#
|
|
159
|
+
# @return [Integer, nil]
|
|
160
|
+
optional :trial_period_days, Integer, nil?: true
|
|
161
|
+
|
|
162
|
+
# @!attribute visibility
|
|
163
|
+
# Visibility of a resource
|
|
164
|
+
#
|
|
165
|
+
# @return [Symbol, WhopSDK::Models::Visibility, nil]
|
|
166
|
+
optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
|
|
167
|
+
|
|
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)
|
|
169
|
+
# Some parameter documentations has been truncated, see
|
|
170
|
+
# {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan} for more details.
|
|
171
|
+
#
|
|
172
|
+
# Pass this object to create a new plan for this checkout configuration
|
|
173
|
+
#
|
|
174
|
+
# @param company_id [String] The company the plan should be created for.
|
|
175
|
+
#
|
|
176
|
+
# @param billing_period [Integer, nil] The interval at which the plan charges (renewal plans).
|
|
177
|
+
#
|
|
178
|
+
# @param currency [Symbol, WhopSDK::Models::Currency, nil] The available currencies on the platform
|
|
179
|
+
#
|
|
180
|
+
# @param custom_fields [Array<WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::CustomField>, nil] An array of custom field objects.
|
|
181
|
+
#
|
|
182
|
+
# @param description [String, nil] The description of the plan.
|
|
183
|
+
#
|
|
184
|
+
# @param expiration_days [Integer, nil] The interval at which the plan charges (expiration plans).
|
|
185
|
+
#
|
|
186
|
+
# @param force_create_new_plan [Boolean, nil] Whether to force the creation of a new plan even if one with the same attributes
|
|
187
|
+
#
|
|
188
|
+
# @param image [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image, nil] An image for the plan. This will be visible on the product page to customers.
|
|
189
|
+
#
|
|
190
|
+
# @param initial_price [Float, nil] An additional amount charged upon first purchase.
|
|
191
|
+
#
|
|
192
|
+
# @param internal_notes [String, nil] A personal description or notes section for the business.
|
|
193
|
+
#
|
|
194
|
+
# @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
|
+
#
|
|
196
|
+
# @param plan_type [Symbol, WhopSDK::Models::PlanType, nil] The type of plan that can be attached to an access pass
|
|
197
|
+
#
|
|
198
|
+
# @param product_id [String, nil] The product the plan is related to.
|
|
199
|
+
#
|
|
200
|
+
# @param release_method [Symbol, WhopSDK::Models::ReleaseMethod, nil] The methods of how a plan can be released.
|
|
201
|
+
#
|
|
202
|
+
# @param renewal_price [Float, nil] The amount the customer is charged every billing period.
|
|
203
|
+
#
|
|
204
|
+
# @param title [String, nil] The title of the plan. This will be visible on the product page to customers.
|
|
205
|
+
#
|
|
206
|
+
# @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
|
|
207
|
+
#
|
|
208
|
+
# @param visibility [Symbol, WhopSDK::Models::Visibility, nil] Visibility of a resource
|
|
209
|
+
|
|
210
|
+
class CustomField < WhopSDK::Internal::Type::BaseModel
|
|
211
|
+
# @!attribute field_type
|
|
212
|
+
# The type of the custom field.
|
|
213
|
+
#
|
|
214
|
+
# @return [Symbol, :text]
|
|
215
|
+
required :field_type, const: :text
|
|
216
|
+
|
|
217
|
+
# @!attribute name
|
|
218
|
+
# The name of the custom field.
|
|
219
|
+
#
|
|
220
|
+
# @return [String]
|
|
221
|
+
required :name, String
|
|
222
|
+
|
|
223
|
+
# @!attribute id
|
|
224
|
+
# The ID of the custom field (if being updated)
|
|
225
|
+
#
|
|
226
|
+
# @return [String, nil]
|
|
227
|
+
optional :id, String, nil?: true
|
|
228
|
+
|
|
229
|
+
# @!attribute order
|
|
230
|
+
# The order of the field.
|
|
231
|
+
#
|
|
232
|
+
# @return [Integer, nil]
|
|
233
|
+
optional :order, Integer, nil?: true
|
|
234
|
+
|
|
235
|
+
# @!attribute placeholder
|
|
236
|
+
# The placeholder value of the field.
|
|
237
|
+
#
|
|
238
|
+
# @return [String, nil]
|
|
239
|
+
optional :placeholder, String, nil?: true
|
|
240
|
+
|
|
241
|
+
# @!attribute required
|
|
242
|
+
# Whether or not the field is required.
|
|
243
|
+
#
|
|
244
|
+
# @return [Boolean, nil]
|
|
245
|
+
optional :required, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
246
|
+
|
|
247
|
+
# @!method initialize(name:, id: nil, order: nil, placeholder: nil, required: nil, field_type: :text)
|
|
248
|
+
# @param name [String] The name of the custom field.
|
|
249
|
+
#
|
|
250
|
+
# @param id [String, nil] The ID of the custom field (if being updated)
|
|
251
|
+
#
|
|
252
|
+
# @param order [Integer, nil] The order of the field.
|
|
253
|
+
#
|
|
254
|
+
# @param placeholder [String, nil] The placeholder value of the field.
|
|
255
|
+
#
|
|
256
|
+
# @param required [Boolean, nil] Whether or not the field is required.
|
|
257
|
+
#
|
|
258
|
+
# @param field_type [Symbol, :text] The type of the custom field.
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# @see WhopSDK::Models::CheckoutConfigurationCreateParams::Plan#image
|
|
262
|
+
class Image < WhopSDK::Internal::Type::BaseModel
|
|
263
|
+
# @!attribute id
|
|
264
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
265
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
266
|
+
# doing.
|
|
267
|
+
#
|
|
268
|
+
# @return [String, nil]
|
|
269
|
+
optional :id, String, nil?: true
|
|
270
|
+
|
|
271
|
+
# @!attribute direct_upload_id
|
|
272
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
273
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
274
|
+
# mediaDirectUpload mutation.
|
|
275
|
+
#
|
|
276
|
+
# @return [String, nil]
|
|
277
|
+
optional :direct_upload_id, String, nil?: true
|
|
278
|
+
|
|
279
|
+
# @!method initialize(id: nil, direct_upload_id: nil)
|
|
280
|
+
# Some parameter documentations has been truncated, see
|
|
281
|
+
# {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image} for more
|
|
282
|
+
# details.
|
|
283
|
+
#
|
|
284
|
+
# An image for the plan. This will be visible on the product page to customers.
|
|
285
|
+
#
|
|
286
|
+
# @param id [String, nil] The ID of an existing attachment object. Use this when updating a resource and k
|
|
287
|
+
#
|
|
288
|
+
# @param direct_upload_id [String, nil] This ID should be used the first time you upload an attachment. It is the ID of
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
end
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::CheckoutConfigurations#list
|
|
6
|
+
class CheckoutConfigurationListParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute company_id
|
|
11
|
+
# The ID of the company to list checkout configurations for
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :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
|
+
# @!attribute plan_id
|
|
47
|
+
# The ID of the plan to filter checkout configurations by
|
|
48
|
+
#
|
|
49
|
+
# @return [String, nil]
|
|
50
|
+
optional :plan_id, String, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!method initialize(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, plan_id: nil, request_options: {})
|
|
53
|
+
# @param company_id [String] The ID of the company to list checkout configurations for
|
|
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 direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
60
|
+
#
|
|
61
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
62
|
+
#
|
|
63
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
64
|
+
#
|
|
65
|
+
# @param plan_id [String, nil] The ID of the plan to filter checkout configurations by
|
|
66
|
+
#
|
|
67
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::CheckoutConfigurations#list
|
|
6
|
+
class CheckoutConfigurationListResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The ID of the checkout configuration
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute affiliate_code
|
|
14
|
+
# The affiliate code to use for the checkout configuration
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
required :affiliate_code, String, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!attribute company_id
|
|
20
|
+
# The ID of the company to use for the checkout configuration
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :company_id, String
|
|
24
|
+
|
|
25
|
+
# @!attribute metadata
|
|
26
|
+
# The metadata to use for the checkout configuration
|
|
27
|
+
#
|
|
28
|
+
# @return [Hash{Symbol=>Object}]
|
|
29
|
+
required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]
|
|
30
|
+
|
|
31
|
+
# @!attribute plan
|
|
32
|
+
# The plan to use for the checkout configuration
|
|
33
|
+
#
|
|
34
|
+
# @return [WhopSDK::Models::CheckoutConfigurationListResponse::Plan]
|
|
35
|
+
required :plan, -> { WhopSDK::Models::CheckoutConfigurationListResponse::Plan }
|
|
36
|
+
|
|
37
|
+
# @!attribute purchase_url
|
|
38
|
+
# The URL to redirect the user to after the checkout configuration is created
|
|
39
|
+
#
|
|
40
|
+
# @return [String]
|
|
41
|
+
required :purchase_url, String
|
|
42
|
+
|
|
43
|
+
# @!attribute redirect_url
|
|
44
|
+
# The URL to redirect the user to after the checkout configuration is created
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
required :redirect_url, String, nil?: true
|
|
48
|
+
|
|
49
|
+
# @!method initialize(id:, affiliate_code:, company_id:, metadata:, plan:, purchase_url:, redirect_url:)
|
|
50
|
+
# A checkout configuration object. Can be used to create a reusable custom
|
|
51
|
+
# configuration for a checkout, including attaching plans, affiliates and custom
|
|
52
|
+
# metadata to the checkout. This configuration can be re-used by multiple users.
|
|
53
|
+
# All successful payments and memberships resulting from a checkout will contain
|
|
54
|
+
# the passed metadata.
|
|
55
|
+
#
|
|
56
|
+
# @param id [String] The ID of the checkout configuration
|
|
57
|
+
#
|
|
58
|
+
# @param affiliate_code [String, nil] The affiliate code to use for the checkout configuration
|
|
59
|
+
#
|
|
60
|
+
# @param company_id [String] The ID of the company to use for the checkout configuration
|
|
61
|
+
#
|
|
62
|
+
# @param metadata [Hash{Symbol=>Object}] The metadata to use for the checkout configuration
|
|
63
|
+
#
|
|
64
|
+
# @param plan [WhopSDK::Models::CheckoutConfigurationListResponse::Plan] The plan to use for the checkout configuration
|
|
65
|
+
#
|
|
66
|
+
# @param purchase_url [String] The URL to redirect the user to after the checkout configuration is created
|
|
67
|
+
#
|
|
68
|
+
# @param redirect_url [String, nil] The URL to redirect the user to after the checkout configuration is created
|
|
69
|
+
|
|
70
|
+
# @see WhopSDK::Models::CheckoutConfigurationListResponse#plan
|
|
71
|
+
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
72
|
+
# @!attribute id
|
|
73
|
+
# The internal ID of the plan.
|
|
74
|
+
#
|
|
75
|
+
# @return [String]
|
|
76
|
+
required :id, String
|
|
77
|
+
|
|
78
|
+
# @!attribute billing_period
|
|
79
|
+
# The interval at which the plan charges (renewal plans).
|
|
80
|
+
#
|
|
81
|
+
# @return [Integer, nil]
|
|
82
|
+
required :billing_period, Integer, nil?: true
|
|
83
|
+
|
|
84
|
+
# @!attribute currency
|
|
85
|
+
# The respective currency identifier for the plan.
|
|
86
|
+
#
|
|
87
|
+
# @return [Symbol, WhopSDK::Models::Currency]
|
|
88
|
+
required :currency, enum: -> { WhopSDK::Currency }
|
|
89
|
+
|
|
90
|
+
# @!attribute expiration_days
|
|
91
|
+
# The interval at which the plan charges (expiration plans).
|
|
92
|
+
#
|
|
93
|
+
# @return [Integer, nil]
|
|
94
|
+
required :expiration_days, Integer, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!attribute initial_price
|
|
97
|
+
# The price a person has to pay for a plan on the initial purchase.
|
|
98
|
+
#
|
|
99
|
+
# @return [Float]
|
|
100
|
+
required :initial_price, Float
|
|
101
|
+
|
|
102
|
+
# @!attribute plan_type
|
|
103
|
+
# Indicates if the plan is a one time payment or recurring.
|
|
104
|
+
#
|
|
105
|
+
# @return [Symbol, WhopSDK::Models::PlanType]
|
|
106
|
+
required :plan_type, enum: -> { WhopSDK::PlanType }
|
|
107
|
+
|
|
108
|
+
# @!attribute release_method
|
|
109
|
+
# This is the release method the business uses to sell this plan.
|
|
110
|
+
#
|
|
111
|
+
# @return [Symbol, WhopSDK::Models::ReleaseMethod]
|
|
112
|
+
required :release_method, enum: -> { WhopSDK::ReleaseMethod }
|
|
113
|
+
|
|
114
|
+
# @!attribute renewal_price
|
|
115
|
+
# The price a person has to pay for a plan on the renewal purchase.
|
|
116
|
+
#
|
|
117
|
+
# @return [Float]
|
|
118
|
+
required :renewal_price, Float
|
|
119
|
+
|
|
120
|
+
# @!attribute trial_period_days
|
|
121
|
+
# The number of free trial days added before a renewal plan.
|
|
122
|
+
#
|
|
123
|
+
# @return [Integer, nil]
|
|
124
|
+
required :trial_period_days, Integer, nil?: true
|
|
125
|
+
|
|
126
|
+
# @!attribute visibility
|
|
127
|
+
# Shows or hides the plan from public/business view.
|
|
128
|
+
#
|
|
129
|
+
# @return [Symbol, WhopSDK::Models::Visibility]
|
|
130
|
+
required :visibility, enum: -> { WhopSDK::Visibility }
|
|
131
|
+
|
|
132
|
+
# @!method initialize(id:, billing_period:, currency:, expiration_days:, initial_price:, plan_type:, release_method:, renewal_price:, trial_period_days:, visibility:)
|
|
133
|
+
# The plan to use for the checkout configuration
|
|
134
|
+
#
|
|
135
|
+
# @param id [String] The internal ID of the plan.
|
|
136
|
+
#
|
|
137
|
+
# @param billing_period [Integer, nil] The interval at which the plan charges (renewal plans).
|
|
138
|
+
#
|
|
139
|
+
# @param currency [Symbol, WhopSDK::Models::Currency] The respective currency identifier for the plan.
|
|
140
|
+
#
|
|
141
|
+
# @param expiration_days [Integer, nil] The interval at which the plan charges (expiration plans).
|
|
142
|
+
#
|
|
143
|
+
# @param initial_price [Float] The price a person has to pay for a plan on the initial purchase.
|
|
144
|
+
#
|
|
145
|
+
# @param plan_type [Symbol, WhopSDK::Models::PlanType] Indicates if the plan is a one time payment or recurring.
|
|
146
|
+
#
|
|
147
|
+
# @param release_method [Symbol, WhopSDK::Models::ReleaseMethod] This is the release method the business uses to sell this plan.
|
|
148
|
+
#
|
|
149
|
+
# @param renewal_price [Float] The price a person has to pay for a plan on the renewal purchase.
|
|
150
|
+
#
|
|
151
|
+
# @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
|
|
152
|
+
#
|
|
153
|
+
# @param visibility [Symbol, WhopSDK::Models::Visibility] Shows or hides the plan from public/business view.
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::CheckoutConfigurations#retrieve
|
|
6
|
+
class CheckoutConfigurationRetrieveParams < 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
|