whop_sdk 0.0.22 → 0.0.24
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 +45 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +4 -0
- data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
- data/lib/whop_sdk/models/app_create_params.rb +22 -1
- data/lib/whop_sdk/models/app_list_params.rb +5 -0
- data/lib/whop_sdk/models/app_update_params.rb +14 -53
- data/lib/whop_sdk/models/card_brands.rb +16 -0
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
- data/lib/whop_sdk/models/company_create_params.rb +22 -1
- data/lib/whop_sdk/models/company_update_params.rb +28 -106
- data/lib/whop_sdk/models/course_create_params.rb +15 -62
- data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
- data/lib/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
- data/lib/whop_sdk/models/course_update_params.rb +14 -61
- data/lib/whop_sdk/models/dispute_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
- data/lib/whop_sdk/models/dispute_updated_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/entry_approved_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/entry_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/entry_deleted_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/entry_denied_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/experience_create_params.rb +22 -1
- data/lib/whop_sdk/models/experience_update_params.rb +14 -53
- data/lib/whop_sdk/models/file_create_params.rb +22 -0
- data/lib/whop_sdk/models/file_create_response.rb +90 -0
- data/lib/whop_sdk/models/file_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/file_retrieve_response.rb +74 -0
- data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
- data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
- data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
- data/lib/whop_sdk/models/invoice_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/invoice_paid_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/invoice_past_due_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/invoice_voided_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
- data/lib/whop_sdk/models/member_list_response.rb +9 -1
- data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
- data/lib/whop_sdk/models/membership.rb +76 -2
- data/lib/whop_sdk/models/membership_activated_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/membership_deactivated_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/membership_list_response.rb +38 -2
- data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
- data/lib/whop_sdk/models/message_create_params.rb +13 -52
- data/lib/whop_sdk/models/message_update_params.rb +14 -53
- data/lib/whop_sdk/models/payment.rb +17 -1
- data/lib/whop_sdk/models/payment_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/payment_failed_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/payment_list_response.rb +17 -1
- data/lib/whop_sdk/models/payment_method_types.rb +38 -37
- data/lib/whop_sdk/models/payment_pending_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/payment_provider.rb +1 -0
- data/lib/whop_sdk/models/payment_succeeded_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +35 -2
- data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
- data/lib/whop_sdk/models/plan_create_params.rb +23 -54
- data/lib/whop_sdk/models/plan_update_params.rb +23 -54
- data/lib/whop_sdk/models/refund_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/refund_updated_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/webhook_create_params.rb +117 -0
- data/lib/whop_sdk/models/webhook_create_response.rb +184 -0
- data/lib/whop_sdk/models/webhook_delete_params.rb +14 -0
- data/lib/whop_sdk/models/webhook_delete_response.rb +8 -0
- data/lib/whop_sdk/models/webhook_list_params.rb +54 -0
- data/lib/whop_sdk/models/webhook_list_response.rb +123 -0
- data/lib/whop_sdk/models/webhook_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/webhook_retrieve_response.rb +176 -0
- data/lib/whop_sdk/models/webhook_update_params.rb +104 -0
- data/lib/whop_sdk/models/webhook_update_response.rb +176 -0
- data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
- data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +11 -10
- data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +11 -10
- data/lib/whop_sdk/models.rb +16 -2
- data/lib/whop_sdk/resources/app_builds.rb +1 -1
- data/lib/whop_sdk/resources/apps.rb +4 -2
- data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
- data/lib/whop_sdk/resources/companies.rb +5 -3
- data/lib/whop_sdk/resources/course_lessons.rb +4 -4
- data/lib/whop_sdk/resources/courses.rb +4 -8
- data/lib/whop_sdk/resources/disputes.rb +4 -4
- data/lib/whop_sdk/resources/experiences.rb +4 -2
- data/lib/whop_sdk/resources/files.rb +56 -0
- data/lib/whop_sdk/resources/forum_posts.rb +2 -2
- data/lib/whop_sdk/resources/memberships.rb +32 -0
- data/lib/whop_sdk/resources/messages.rb +2 -2
- data/lib/whop_sdk/resources/notifications.rb +4 -0
- data/lib/whop_sdk/resources/plans.rb +8 -4
- data/lib/whop_sdk/resources/webhooks.rb +158 -0
- data/lib/whop_sdk/resources/withdrawals.rb +8 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +16 -1
- data/rbi/whop_sdk/client.rbi +3 -0
- data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
- data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +10 -0
- data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
- data/rbi/whop_sdk/models/card_brands.rbi +17 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
- data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
- data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
- data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
- data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
- data/rbi/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
- data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
- data/rbi/whop_sdk/models/dispute_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
- data/rbi/whop_sdk/models/dispute_updated_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/entry_approved_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/entry_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/entry_deleted_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/entry_denied_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
- data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
- data/rbi/whop_sdk/models/file_create_params.rbi +40 -0
- data/rbi/whop_sdk/models/file_create_response.rbi +140 -0
- data/rbi/whop_sdk/models/file_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +129 -0
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
- data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
- data/rbi/whop_sdk/models/invoice_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/invoice_paid_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/invoice_past_due_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/invoice_voided_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
- data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
- data/rbi/whop_sdk/models/membership.rbi +126 -4
- data/rbi/whop_sdk/models/membership_activated_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/membership_deactivated_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
- data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
- data/rbi/whop_sdk/models/message_create_params.rbi +18 -94
- data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
- data/rbi/whop_sdk/models/payment.rbi +16 -0
- data/rbi/whop_sdk/models/payment_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/payment_failed_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +45 -43
- data/rbi/whop_sdk/models/payment_pending_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
- data/rbi/whop_sdk/models/payment_succeeded_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +35 -1
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +29 -93
- data/rbi/whop_sdk/models/plan_update_params.rbi +29 -93
- data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/webhook_create_params.rbi +275 -0
- data/rbi/whop_sdk/models/webhook_create_response.rbi +494 -0
- data/rbi/whop_sdk/models/webhook_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/webhook_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/webhook_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/webhook_list_response.rbi +297 -0
- data/rbi/whop_sdk/models/webhook_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +491 -0
- data/rbi/whop_sdk/models/webhook_update_params.rbi +263 -0
- data/rbi/whop_sdk/models/webhook_update_response.rbi +486 -0
- data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
- data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +17 -12
- data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +17 -12
- data/rbi/whop_sdk/models.rbi +16 -2
- data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
- data/rbi/whop_sdk/resources/apps.rbi +4 -7
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
- data/rbi/whop_sdk/resources/companies.rbi +5 -13
- data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
- data/rbi/whop_sdk/resources/courses.rbi +2 -20
- data/rbi/whop_sdk/resources/disputes.rbi +4 -16
- data/rbi/whop_sdk/resources/experiences.rbi +4 -7
- data/rbi/whop_sdk/resources/files.rbi +40 -0
- data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
- data/rbi/whop_sdk/resources/memberships.rbi +26 -0
- data/rbi/whop_sdk/resources/messages.rbi +2 -12
- data/rbi/whop_sdk/resources/notifications.rbi +4 -0
- data/rbi/whop_sdk/resources/plans.rbi +8 -14
- data/rbi/whop_sdk/resources/webhooks.rbi +140 -0
- data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
- data/sig/whop_sdk/client.rbs +2 -0
- data/sig/whop_sdk/models/app_build_create_params.rbs +9 -30
- data/sig/whop_sdk/models/app_create_params.rbs +20 -1
- data/sig/whop_sdk/models/app_list_params.rbs +10 -0
- data/sig/whop_sdk/models/app_update_params.rbs +9 -30
- data/sig/whop_sdk/models/card_brands.rbs +32 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +19 -30
- data/sig/whop_sdk/models/company_create_params.rbs +15 -0
- data/sig/whop_sdk/models/company_update_params.rbs +18 -60
- data/sig/whop_sdk/models/course_create_params.rbs +9 -35
- data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
- data/sig/whop_sdk/models/course_lesson_interaction_completed_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
- data/sig/whop_sdk/models/course_update_params.rbs +9 -35
- data/sig/whop_sdk/models/dispute_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
- data/sig/whop_sdk/models/dispute_updated_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/entry_approved_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/entry_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/entry_deleted_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/entry_denied_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
- data/sig/whop_sdk/models/file_create_params.rbs +23 -0
- data/sig/whop_sdk/models/file_create_response.rbs +68 -0
- data/sig/whop_sdk/models/file_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/file_retrieve_response.rbs +58 -0
- data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
- data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
- data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
- data/sig/whop_sdk/models/invoice_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/invoice_paid_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/invoice_past_due_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/invoice_voided_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
- data/sig/whop_sdk/models/member_list_response.rbs +5 -0
- data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
- data/sig/whop_sdk/models/membership.rbs +65 -4
- data/sig/whop_sdk/models/membership_activated_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/membership_deactivated_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
- data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
- data/sig/whop_sdk/models/message_create_params.rbs +9 -30
- data/sig/whop_sdk/models/message_update_params.rbs +9 -30
- data/sig/whop_sdk/models/payment.rbs +10 -0
- data/sig/whop_sdk/models/payment_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/payment_failed_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +76 -74
- data/sig/whop_sdk/models/payment_pending_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/payment_provider.rbs +2 -0
- data/sig/whop_sdk/models/payment_succeeded_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +22 -2
- data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +14 -30
- data/sig/whop_sdk/models/plan_update_params.rbs +14 -30
- data/sig/whop_sdk/models/refund_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/setup_intent_canceled_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/setup_intent_requires_action_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/setup_intent_succeeded_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/webhook_create_params.rbs +126 -0
- data/sig/whop_sdk/models/webhook_create_response.rbs +203 -0
- data/sig/whop_sdk/models/webhook_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/webhook_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/webhook_list_params.rbs +46 -0
- data/sig/whop_sdk/models/webhook_list_response.rbs +125 -0
- data/sig/whop_sdk/models/webhook_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/webhook_retrieve_response.rbs +198 -0
- data/sig/whop_sdk/models/webhook_update_params.rbs +121 -0
- data/sig/whop_sdk/models/webhook_update_response.rbs +198 -0
- data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
- data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +12 -10
- data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +12 -10
- data/sig/whop_sdk/models.rbs +16 -2
- data/sig/whop_sdk/resources/app_builds.rbs +1 -1
- data/sig/whop_sdk/resources/apps.rbs +2 -1
- data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
- data/sig/whop_sdk/resources/companies.rbs +3 -2
- data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
- data/sig/whop_sdk/resources/courses.rbs +2 -4
- data/sig/whop_sdk/resources/disputes.rbs +4 -4
- data/sig/whop_sdk/resources/experiences.rbs +2 -1
- data/sig/whop_sdk/resources/files.rbs +17 -0
- data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
- data/sig/whop_sdk/resources/memberships.rbs +5 -0
- data/sig/whop_sdk/resources/messages.rbs +2 -2
- data/sig/whop_sdk/resources/plans.rbs +4 -2
- data/sig/whop_sdk/resources/webhooks.rbs +36 -0
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
- metadata +64 -5
- data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
- data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
- data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
|
@@ -2,10 +2,10 @@ module WhopSDK
|
|
|
2
2
|
module Models
|
|
3
3
|
type company_update_params =
|
|
4
4
|
{
|
|
5
|
-
banner_image: WhopSDK::
|
|
5
|
+
banner_image: WhopSDK::CompanyUpdateParams::BannerImage?,
|
|
6
6
|
business_type: WhopSDK::Models::business_types?,
|
|
7
7
|
industry_type: WhopSDK::Models::industry_types?,
|
|
8
|
-
logo: WhopSDK::
|
|
8
|
+
logo: WhopSDK::CompanyUpdateParams::Logo?,
|
|
9
9
|
send_customer_emails: bool?,
|
|
10
10
|
title: String?
|
|
11
11
|
}
|
|
@@ -15,98 +15,56 @@ module WhopSDK
|
|
|
15
15
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
16
16
|
include WhopSDK::Internal::Type::RequestParameters
|
|
17
17
|
|
|
18
|
-
attr_accessor banner_image: WhopSDK::
|
|
18
|
+
attr_accessor banner_image: WhopSDK::CompanyUpdateParams::BannerImage?
|
|
19
19
|
|
|
20
20
|
attr_accessor business_type: WhopSDK::Models::business_types?
|
|
21
21
|
|
|
22
22
|
attr_accessor industry_type: WhopSDK::Models::industry_types?
|
|
23
23
|
|
|
24
|
-
attr_accessor logo: WhopSDK::
|
|
24
|
+
attr_accessor logo: WhopSDK::CompanyUpdateParams::Logo?
|
|
25
25
|
|
|
26
26
|
attr_accessor send_customer_emails: bool?
|
|
27
27
|
|
|
28
28
|
attr_accessor title: String?
|
|
29
29
|
|
|
30
30
|
def initialize: (
|
|
31
|
-
?banner_image: WhopSDK::
|
|
31
|
+
?banner_image: WhopSDK::CompanyUpdateParams::BannerImage?,
|
|
32
32
|
?business_type: WhopSDK::Models::business_types?,
|
|
33
33
|
?industry_type: WhopSDK::Models::industry_types?,
|
|
34
|
-
?logo: WhopSDK::
|
|
34
|
+
?logo: WhopSDK::CompanyUpdateParams::Logo?,
|
|
35
35
|
?send_customer_emails: bool?,
|
|
36
36
|
?title: String?,
|
|
37
37
|
?request_options: WhopSDK::request_opts
|
|
38
38
|
) -> void
|
|
39
39
|
|
|
40
40
|
def to_hash: -> {
|
|
41
|
-
banner_image: WhopSDK::
|
|
41
|
+
banner_image: WhopSDK::CompanyUpdateParams::BannerImage?,
|
|
42
42
|
business_type: WhopSDK::Models::business_types?,
|
|
43
43
|
industry_type: WhopSDK::Models::industry_types?,
|
|
44
|
-
logo: WhopSDK::
|
|
44
|
+
logo: WhopSDK::CompanyUpdateParams::Logo?,
|
|
45
45
|
send_customer_emails: bool?,
|
|
46
46
|
title: String?,
|
|
47
47
|
request_options: WhopSDK::RequestOptions
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
type banner_image =
|
|
51
|
-
WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID
|
|
52
|
-
| WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID
|
|
50
|
+
type banner_image = { id: String }
|
|
53
51
|
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
class BannerImage < WhopSDK::Internal::Type::BaseModel
|
|
53
|
+
attr_accessor id: String
|
|
56
54
|
|
|
57
|
-
|
|
58
|
-
{ direct_upload_id: String }
|
|
55
|
+
def initialize: (id: String) -> void
|
|
59
56
|
|
|
60
|
-
|
|
61
|
-
attr_accessor direct_upload_id: String
|
|
62
|
-
|
|
63
|
-
def initialize: (direct_upload_id: String) -> void
|
|
64
|
-
|
|
65
|
-
def to_hash: -> { direct_upload_id: String }
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
type attachment_input_with_id = { id: String }
|
|
69
|
-
|
|
70
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
71
|
-
attr_accessor id: String
|
|
72
|
-
|
|
73
|
-
def initialize: (id: String) -> void
|
|
74
|
-
|
|
75
|
-
def to_hash: -> { id: String }
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
def self?.variants: -> ::Array[WhopSDK::Models::CompanyUpdateParams::banner_image]
|
|
57
|
+
def to_hash: -> { id: String }
|
|
79
58
|
end
|
|
80
59
|
|
|
81
|
-
type logo =
|
|
82
|
-
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID
|
|
83
|
-
| WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
|
|
84
|
-
|
|
85
|
-
module Logo
|
|
86
|
-
extend WhopSDK::Internal::Type::Union
|
|
87
|
-
|
|
88
|
-
type attachment_input_with_direct_upload_id =
|
|
89
|
-
{ direct_upload_id: String }
|
|
90
|
-
|
|
91
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
92
|
-
attr_accessor direct_upload_id: String
|
|
93
|
-
|
|
94
|
-
def initialize: (direct_upload_id: String) -> void
|
|
95
|
-
|
|
96
|
-
def to_hash: -> { direct_upload_id: String }
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
type attachment_input_with_id = { id: String }
|
|
100
|
-
|
|
101
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
102
|
-
attr_accessor id: String
|
|
60
|
+
type logo = { id: String }
|
|
103
61
|
|
|
104
|
-
|
|
62
|
+
class Logo < WhopSDK::Internal::Type::BaseModel
|
|
63
|
+
attr_accessor id: String
|
|
105
64
|
|
|
106
|
-
|
|
107
|
-
end
|
|
65
|
+
def initialize: (id: String) -> void
|
|
108
66
|
|
|
109
|
-
def
|
|
67
|
+
def to_hash: -> { id: String }
|
|
110
68
|
end
|
|
111
69
|
end
|
|
112
70
|
end
|
|
@@ -5,11 +5,10 @@ module WhopSDK
|
|
|
5
5
|
experience_id: String,
|
|
6
6
|
title: String,
|
|
7
7
|
certificate_after_completion_enabled: bool?,
|
|
8
|
-
cover_image: String?,
|
|
9
8
|
order: String?,
|
|
10
9
|
require_completing_lessons_in_order: bool?,
|
|
11
10
|
tagline: String?,
|
|
12
|
-
thumbnail: WhopSDK::
|
|
11
|
+
thumbnail: WhopSDK::CourseCreateParams::Thumbnail?,
|
|
13
12
|
visibility: WhopSDK::Models::course_visibilities?
|
|
14
13
|
}
|
|
15
14
|
& WhopSDK::Internal::Type::request_parameters
|
|
@@ -24,15 +23,13 @@ module WhopSDK
|
|
|
24
23
|
|
|
25
24
|
attr_accessor certificate_after_completion_enabled: bool?
|
|
26
25
|
|
|
27
|
-
attr_accessor cover_image: String?
|
|
28
|
-
|
|
29
26
|
attr_accessor order: String?
|
|
30
27
|
|
|
31
28
|
attr_accessor require_completing_lessons_in_order: bool?
|
|
32
29
|
|
|
33
30
|
attr_accessor tagline: String?
|
|
34
31
|
|
|
35
|
-
attr_accessor thumbnail: WhopSDK::
|
|
32
|
+
attr_accessor thumbnail: WhopSDK::CourseCreateParams::Thumbnail?
|
|
36
33
|
|
|
37
34
|
attr_accessor visibility: WhopSDK::Models::course_visibilities?
|
|
38
35
|
|
|
@@ -40,11 +37,10 @@ module WhopSDK
|
|
|
40
37
|
experience_id: String,
|
|
41
38
|
title: String,
|
|
42
39
|
?certificate_after_completion_enabled: bool?,
|
|
43
|
-
?cover_image: String?,
|
|
44
40
|
?order: String?,
|
|
45
41
|
?require_completing_lessons_in_order: bool?,
|
|
46
42
|
?tagline: String?,
|
|
47
|
-
?thumbnail: WhopSDK::
|
|
43
|
+
?thumbnail: WhopSDK::CourseCreateParams::Thumbnail?,
|
|
48
44
|
?visibility: WhopSDK::Models::course_visibilities?,
|
|
49
45
|
?request_options: WhopSDK::request_opts
|
|
50
46
|
) -> void
|
|
@@ -53,44 +49,22 @@ module WhopSDK
|
|
|
53
49
|
experience_id: String,
|
|
54
50
|
title: String,
|
|
55
51
|
certificate_after_completion_enabled: bool?,
|
|
56
|
-
cover_image: String?,
|
|
57
52
|
order: String?,
|
|
58
53
|
require_completing_lessons_in_order: bool?,
|
|
59
54
|
tagline: String?,
|
|
60
|
-
thumbnail: WhopSDK::
|
|
55
|
+
thumbnail: WhopSDK::CourseCreateParams::Thumbnail?,
|
|
61
56
|
visibility: WhopSDK::Models::course_visibilities?,
|
|
62
57
|
request_options: WhopSDK::RequestOptions
|
|
63
58
|
}
|
|
64
59
|
|
|
65
|
-
type thumbnail =
|
|
66
|
-
WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID
|
|
67
|
-
| WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID
|
|
68
|
-
|
|
69
|
-
module Thumbnail
|
|
70
|
-
extend WhopSDK::Internal::Type::Union
|
|
71
|
-
|
|
72
|
-
type attachment_input_with_direct_upload_id =
|
|
73
|
-
{ direct_upload_id: String }
|
|
74
|
-
|
|
75
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
76
|
-
attr_accessor direct_upload_id: String
|
|
77
|
-
|
|
78
|
-
def initialize: (direct_upload_id: String) -> void
|
|
79
|
-
|
|
80
|
-
def to_hash: -> { direct_upload_id: String }
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
type attachment_input_with_id = { id: String }
|
|
84
|
-
|
|
85
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
86
|
-
attr_accessor id: String
|
|
60
|
+
type thumbnail = { id: String }
|
|
87
61
|
|
|
88
|
-
|
|
62
|
+
class Thumbnail < WhopSDK::Internal::Type::BaseModel
|
|
63
|
+
attr_accessor id: String
|
|
89
64
|
|
|
90
|
-
|
|
91
|
-
end
|
|
65
|
+
def initialize: (id: String) -> void
|
|
92
66
|
|
|
93
|
-
def
|
|
67
|
+
def to_hash: -> { id: String }
|
|
94
68
|
end
|
|
95
69
|
end
|
|
96
70
|
end
|
|
@@ -8,7 +8,7 @@ module WhopSDK
|
|
|
8
8
|
days_from_course_start_until_unlock: Integer?,
|
|
9
9
|
embed_id: String?,
|
|
10
10
|
embed_type: WhopSDK::Models::embed_type?,
|
|
11
|
-
thumbnail: WhopSDK::
|
|
11
|
+
thumbnail: WhopSDK::CourseLessonCreateParams::Thumbnail?,
|
|
12
12
|
title: String?
|
|
13
13
|
}
|
|
14
14
|
& WhopSDK::Internal::Type::request_parameters
|
|
@@ -29,7 +29,7 @@ module WhopSDK
|
|
|
29
29
|
|
|
30
30
|
attr_accessor embed_type: WhopSDK::Models::embed_type?
|
|
31
31
|
|
|
32
|
-
attr_accessor thumbnail: WhopSDK::
|
|
32
|
+
attr_accessor thumbnail: WhopSDK::CourseLessonCreateParams::Thumbnail?
|
|
33
33
|
|
|
34
34
|
attr_accessor title: String?
|
|
35
35
|
|
|
@@ -40,7 +40,7 @@ module WhopSDK
|
|
|
40
40
|
?days_from_course_start_until_unlock: Integer?,
|
|
41
41
|
?embed_id: String?,
|
|
42
42
|
?embed_type: WhopSDK::Models::embed_type?,
|
|
43
|
-
?thumbnail: WhopSDK::
|
|
43
|
+
?thumbnail: WhopSDK::CourseLessonCreateParams::Thumbnail?,
|
|
44
44
|
?title: String?,
|
|
45
45
|
?request_options: WhopSDK::request_opts
|
|
46
46
|
) -> void
|
|
@@ -52,40 +52,19 @@ module WhopSDK
|
|
|
52
52
|
days_from_course_start_until_unlock: Integer?,
|
|
53
53
|
embed_id: String?,
|
|
54
54
|
embed_type: WhopSDK::Models::embed_type?,
|
|
55
|
-
thumbnail: WhopSDK::
|
|
55
|
+
thumbnail: WhopSDK::CourseLessonCreateParams::Thumbnail?,
|
|
56
56
|
title: String?,
|
|
57
57
|
request_options: WhopSDK::RequestOptions
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
type thumbnail =
|
|
61
|
-
WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID
|
|
62
|
-
| WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID
|
|
60
|
+
type thumbnail = { id: String }
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
class Thumbnail < WhopSDK::Internal::Type::BaseModel
|
|
63
|
+
attr_accessor id: String
|
|
66
64
|
|
|
67
|
-
|
|
68
|
-
{ direct_upload_id: String }
|
|
65
|
+
def initialize: (id: String) -> void
|
|
69
66
|
|
|
70
|
-
|
|
71
|
-
attr_accessor direct_upload_id: String
|
|
72
|
-
|
|
73
|
-
def initialize: (direct_upload_id: String) -> void
|
|
74
|
-
|
|
75
|
-
def to_hash: -> { direct_upload_id: String }
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
type attachment_input_with_id = { id: String }
|
|
79
|
-
|
|
80
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
81
|
-
attr_accessor id: String
|
|
82
|
-
|
|
83
|
-
def initialize: (id: String) -> void
|
|
84
|
-
|
|
85
|
-
def to_hash: -> { id: String }
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
def self?.variants: -> ::Array[WhopSDK::Models::CourseLessonCreateParams::thumbnail]
|
|
67
|
+
def to_hash: -> { id: String }
|
|
89
68
|
end
|
|
90
69
|
end
|
|
91
70
|
end
|
|
@@ -6,7 +6,8 @@ module WhopSDK
|
|
|
6
6
|
api_version: :v1,
|
|
7
7
|
data: WhopSDK::CourseLessonInteraction,
|
|
8
8
|
timestamp: Time,
|
|
9
|
-
type: :"course_lesson_interaction.completed"
|
|
9
|
+
type: :"course_lesson_interaction.completed",
|
|
10
|
+
company_id: String?
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
class CourseLessonInteractionCompletedWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
@@ -20,10 +21,13 @@ module WhopSDK
|
|
|
20
21
|
|
|
21
22
|
attr_accessor type: :"course_lesson_interaction.completed"
|
|
22
23
|
|
|
24
|
+
attr_accessor company_id: String?
|
|
25
|
+
|
|
23
26
|
def initialize: (
|
|
24
27
|
id: String,
|
|
25
28
|
data: WhopSDK::CourseLessonInteraction,
|
|
26
29
|
timestamp: Time,
|
|
30
|
+
?company_id: String?,
|
|
27
31
|
?api_version: :v1,
|
|
28
32
|
?type: :"course_lesson_interaction.completed"
|
|
29
33
|
) -> void
|
|
@@ -33,7 +37,8 @@ module WhopSDK
|
|
|
33
37
|
api_version: :v1,
|
|
34
38
|
data: WhopSDK::CourseLessonInteraction,
|
|
35
39
|
timestamp: Time,
|
|
36
|
-
type: :"course_lesson_interaction.completed"
|
|
40
|
+
type: :"course_lesson_interaction.completed",
|
|
41
|
+
company_id: String?
|
|
37
42
|
}
|
|
38
43
|
end
|
|
39
44
|
end
|
|
@@ -4,16 +4,16 @@ module WhopSDK
|
|
|
4
4
|
{
|
|
5
5
|
assessment_completion_requirement: WhopSDK::CourseLessonUpdateParams::AssessmentCompletionRequirement?,
|
|
6
6
|
assessment_questions: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion]?,
|
|
7
|
-
attachments: ::Array[WhopSDK::
|
|
7
|
+
attachments: ::Array[WhopSDK::CourseLessonUpdateParams::Attachment]?,
|
|
8
8
|
content: String?,
|
|
9
9
|
days_from_course_start_until_unlock: Integer?,
|
|
10
10
|
embed_id: String?,
|
|
11
11
|
embed_type: WhopSDK::Models::embed_type?,
|
|
12
12
|
lesson_type: WhopSDK::Models::lesson_types?,
|
|
13
|
-
main_pdf: WhopSDK::
|
|
13
|
+
main_pdf: WhopSDK::CourseLessonUpdateParams::MainPdf?,
|
|
14
14
|
max_attempts: Integer?,
|
|
15
15
|
mux_asset_id: String?,
|
|
16
|
-
thumbnail: WhopSDK::
|
|
16
|
+
thumbnail: WhopSDK::CourseLessonUpdateParams::Thumbnail?,
|
|
17
17
|
title: String?,
|
|
18
18
|
visibility: WhopSDK::Models::lesson_visibilities?
|
|
19
19
|
}
|
|
@@ -27,7 +27,7 @@ module WhopSDK
|
|
|
27
27
|
|
|
28
28
|
attr_accessor assessment_questions: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion]?
|
|
29
29
|
|
|
30
|
-
attr_accessor attachments: ::Array[WhopSDK::
|
|
30
|
+
attr_accessor attachments: ::Array[WhopSDK::CourseLessonUpdateParams::Attachment]?
|
|
31
31
|
|
|
32
32
|
attr_accessor content: String?
|
|
33
33
|
|
|
@@ -39,13 +39,13 @@ module WhopSDK
|
|
|
39
39
|
|
|
40
40
|
attr_accessor lesson_type: WhopSDK::Models::lesson_types?
|
|
41
41
|
|
|
42
|
-
attr_accessor main_pdf: WhopSDK::
|
|
42
|
+
attr_accessor main_pdf: WhopSDK::CourseLessonUpdateParams::MainPdf?
|
|
43
43
|
|
|
44
44
|
attr_accessor max_attempts: Integer?
|
|
45
45
|
|
|
46
46
|
attr_accessor mux_asset_id: String?
|
|
47
47
|
|
|
48
|
-
attr_accessor thumbnail: WhopSDK::
|
|
48
|
+
attr_accessor thumbnail: WhopSDK::CourseLessonUpdateParams::Thumbnail?
|
|
49
49
|
|
|
50
50
|
attr_accessor title: String?
|
|
51
51
|
|
|
@@ -54,16 +54,16 @@ module WhopSDK
|
|
|
54
54
|
def initialize: (
|
|
55
55
|
?assessment_completion_requirement: WhopSDK::CourseLessonUpdateParams::AssessmentCompletionRequirement?,
|
|
56
56
|
?assessment_questions: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion]?,
|
|
57
|
-
?attachments: ::Array[WhopSDK::
|
|
57
|
+
?attachments: ::Array[WhopSDK::CourseLessonUpdateParams::Attachment]?,
|
|
58
58
|
?content: String?,
|
|
59
59
|
?days_from_course_start_until_unlock: Integer?,
|
|
60
60
|
?embed_id: String?,
|
|
61
61
|
?embed_type: WhopSDK::Models::embed_type?,
|
|
62
62
|
?lesson_type: WhopSDK::Models::lesson_types?,
|
|
63
|
-
?main_pdf: WhopSDK::
|
|
63
|
+
?main_pdf: WhopSDK::CourseLessonUpdateParams::MainPdf?,
|
|
64
64
|
?max_attempts: Integer?,
|
|
65
65
|
?mux_asset_id: String?,
|
|
66
|
-
?thumbnail: WhopSDK::
|
|
66
|
+
?thumbnail: WhopSDK::CourseLessonUpdateParams::Thumbnail?,
|
|
67
67
|
?title: String?,
|
|
68
68
|
?visibility: WhopSDK::Models::lesson_visibilities?,
|
|
69
69
|
?request_options: WhopSDK::request_opts
|
|
@@ -72,16 +72,16 @@ module WhopSDK
|
|
|
72
72
|
def to_hash: -> {
|
|
73
73
|
assessment_completion_requirement: WhopSDK::CourseLessonUpdateParams::AssessmentCompletionRequirement?,
|
|
74
74
|
assessment_questions: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion]?,
|
|
75
|
-
attachments: ::Array[WhopSDK::
|
|
75
|
+
attachments: ::Array[WhopSDK::CourseLessonUpdateParams::Attachment]?,
|
|
76
76
|
content: String?,
|
|
77
77
|
days_from_course_start_until_unlock: Integer?,
|
|
78
78
|
embed_id: String?,
|
|
79
79
|
embed_type: WhopSDK::Models::embed_type?,
|
|
80
80
|
lesson_type: WhopSDK::Models::lesson_types?,
|
|
81
|
-
main_pdf: WhopSDK::
|
|
81
|
+
main_pdf: WhopSDK::CourseLessonUpdateParams::MainPdf?,
|
|
82
82
|
max_attempts: Integer?,
|
|
83
83
|
mux_asset_id: String?,
|
|
84
|
-
thumbnail: WhopSDK::
|
|
84
|
+
thumbnail: WhopSDK::CourseLessonUpdateParams::Thumbnail?,
|
|
85
85
|
title: String?,
|
|
86
86
|
visibility: WhopSDK::Models::lesson_visibilities?,
|
|
87
87
|
request_options: WhopSDK::RequestOptions
|
|
@@ -112,7 +112,7 @@ module WhopSDK
|
|
|
112
112
|
question_text: String,
|
|
113
113
|
question_type: WhopSDK::Models::assessment_question_types,
|
|
114
114
|
id: String?,
|
|
115
|
-
image: WhopSDK::
|
|
115
|
+
image: WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image?,
|
|
116
116
|
options: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option]?
|
|
117
117
|
}
|
|
118
118
|
|
|
@@ -125,7 +125,7 @@ module WhopSDK
|
|
|
125
125
|
|
|
126
126
|
attr_accessor id: String?
|
|
127
127
|
|
|
128
|
-
attr_accessor image: WhopSDK::
|
|
128
|
+
attr_accessor image: WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image?
|
|
129
129
|
|
|
130
130
|
attr_accessor options: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option]?
|
|
131
131
|
|
|
@@ -134,7 +134,7 @@ module WhopSDK
|
|
|
134
134
|
question_text: String,
|
|
135
135
|
question_type: WhopSDK::Models::assessment_question_types,
|
|
136
136
|
?id: String?,
|
|
137
|
-
?image: WhopSDK::
|
|
137
|
+
?image: WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image?,
|
|
138
138
|
?options: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option]?
|
|
139
139
|
) -> void
|
|
140
140
|
|
|
@@ -143,39 +143,18 @@ module WhopSDK
|
|
|
143
143
|
question_text: String,
|
|
144
144
|
question_type: WhopSDK::Models::assessment_question_types,
|
|
145
145
|
id: String?,
|
|
146
|
-
image: WhopSDK::
|
|
146
|
+
image: WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image?,
|
|
147
147
|
options: ::Array[WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Option]?
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
type image =
|
|
151
|
-
WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithDirectUploadID
|
|
152
|
-
| WhopSDK::CourseLessonUpdateParams::AssessmentQuestion::Image::AttachmentInputWithID
|
|
150
|
+
type image = { id: String }
|
|
153
151
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
type attachment_input_with_direct_upload_id =
|
|
158
|
-
{ direct_upload_id: String }
|
|
159
|
-
|
|
160
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
161
|
-
attr_accessor direct_upload_id: String
|
|
162
|
-
|
|
163
|
-
def initialize: (direct_upload_id: String) -> void
|
|
164
|
-
|
|
165
|
-
def to_hash: -> { direct_upload_id: String }
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
type attachment_input_with_id = { id: String }
|
|
169
|
-
|
|
170
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
171
|
-
attr_accessor id: String
|
|
172
|
-
|
|
173
|
-
def initialize: (id: String) -> void
|
|
152
|
+
class Image < WhopSDK::Internal::Type::BaseModel
|
|
153
|
+
attr_accessor id: String
|
|
174
154
|
|
|
175
|
-
|
|
176
|
-
end
|
|
155
|
+
def initialize: (id: String) -> void
|
|
177
156
|
|
|
178
|
-
def
|
|
157
|
+
def to_hash: -> { id: String }
|
|
179
158
|
end
|
|
180
159
|
|
|
181
160
|
type option = { is_correct: bool, option_text: String, id: String? }
|
|
@@ -197,97 +176,34 @@ module WhopSDK
|
|
|
197
176
|
end
|
|
198
177
|
end
|
|
199
178
|
|
|
200
|
-
type attachment =
|
|
201
|
-
WhopSDK::CourseLessonUpdateParams::Attachment::AttachmentInputWithDirectUploadID
|
|
202
|
-
| WhopSDK::CourseLessonUpdateParams::Attachment::AttachmentInputWithID
|
|
203
|
-
|
|
204
|
-
module Attachment
|
|
205
|
-
extend WhopSDK::Internal::Type::Union
|
|
206
|
-
|
|
207
|
-
type attachment_input_with_direct_upload_id =
|
|
208
|
-
{ direct_upload_id: String }
|
|
179
|
+
type attachment = { id: String }
|
|
209
180
|
|
|
210
|
-
|
|
211
|
-
|
|
181
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
182
|
+
attr_accessor id: String
|
|
212
183
|
|
|
213
|
-
|
|
184
|
+
def initialize: (id: String) -> void
|
|
214
185
|
|
|
215
|
-
|
|
216
|
-
end
|
|
217
|
-
|
|
218
|
-
type attachment_input_with_id = { id: String }
|
|
219
|
-
|
|
220
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
221
|
-
attr_accessor id: String
|
|
222
|
-
|
|
223
|
-
def initialize: (id: String) -> void
|
|
224
|
-
|
|
225
|
-
def to_hash: -> { id: String }
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
def self?.variants: -> ::Array[WhopSDK::Models::CourseLessonUpdateParams::attachment]
|
|
186
|
+
def to_hash: -> { id: String }
|
|
229
187
|
end
|
|
230
188
|
|
|
231
|
-
type main_pdf =
|
|
232
|
-
WhopSDK::CourseLessonUpdateParams::MainPdf::AttachmentInputWithDirectUploadID
|
|
233
|
-
| WhopSDK::CourseLessonUpdateParams::MainPdf::AttachmentInputWithID
|
|
234
|
-
|
|
235
|
-
module MainPdf
|
|
236
|
-
extend WhopSDK::Internal::Type::Union
|
|
189
|
+
type main_pdf = { id: String }
|
|
237
190
|
|
|
238
|
-
|
|
239
|
-
|
|
191
|
+
class MainPdf < WhopSDK::Internal::Type::BaseModel
|
|
192
|
+
attr_accessor id: String
|
|
240
193
|
|
|
241
|
-
|
|
242
|
-
attr_accessor direct_upload_id: String
|
|
194
|
+
def initialize: (id: String) -> void
|
|
243
195
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
def to_hash: -> { direct_upload_id: String }
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
type attachment_input_with_id = { id: String }
|
|
250
|
-
|
|
251
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
252
|
-
attr_accessor id: String
|
|
253
|
-
|
|
254
|
-
def initialize: (id: String) -> void
|
|
255
|
-
|
|
256
|
-
def to_hash: -> { id: String }
|
|
257
|
-
end
|
|
258
|
-
|
|
259
|
-
def self?.variants: -> ::Array[WhopSDK::Models::CourseLessonUpdateParams::main_pdf]
|
|
196
|
+
def to_hash: -> { id: String }
|
|
260
197
|
end
|
|
261
198
|
|
|
262
|
-
type thumbnail =
|
|
263
|
-
WhopSDK::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithDirectUploadID
|
|
264
|
-
| WhopSDK::CourseLessonUpdateParams::Thumbnail::AttachmentInputWithID
|
|
265
|
-
|
|
266
|
-
module Thumbnail
|
|
267
|
-
extend WhopSDK::Internal::Type::Union
|
|
199
|
+
type thumbnail = { id: String }
|
|
268
200
|
|
|
269
|
-
|
|
270
|
-
|
|
201
|
+
class Thumbnail < WhopSDK::Internal::Type::BaseModel
|
|
202
|
+
attr_accessor id: String
|
|
271
203
|
|
|
272
|
-
|
|
273
|
-
attr_accessor direct_upload_id: String
|
|
274
|
-
|
|
275
|
-
def initialize: (direct_upload_id: String) -> void
|
|
276
|
-
|
|
277
|
-
def to_hash: -> { direct_upload_id: String }
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
type attachment_input_with_id = { id: String }
|
|
281
|
-
|
|
282
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
283
|
-
attr_accessor id: String
|
|
284
|
-
|
|
285
|
-
def initialize: (id: String) -> void
|
|
286
|
-
|
|
287
|
-
def to_hash: -> { id: String }
|
|
288
|
-
end
|
|
204
|
+
def initialize: (id: String) -> void
|
|
289
205
|
|
|
290
|
-
def
|
|
206
|
+
def to_hash: -> { id: String }
|
|
291
207
|
end
|
|
292
208
|
end
|
|
293
209
|
end
|