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
|
@@ -34,17 +34,13 @@ module WhopSDK
|
|
|
34
34
|
attr_accessor :expiration_days
|
|
35
35
|
|
|
36
36
|
# An image for the plan. This will be visible on the product page to customers.
|
|
37
|
+
sig { returns(T.nilable(WhopSDK::PlanUpdateParams::Image)) }
|
|
38
|
+
attr_reader :image
|
|
39
|
+
|
|
37
40
|
sig do
|
|
38
|
-
|
|
39
|
-
T.nilable(
|
|
40
|
-
T.any(
|
|
41
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID,
|
|
42
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithID
|
|
43
|
-
)
|
|
44
|
-
)
|
|
45
|
-
)
|
|
41
|
+
params(image: T.nilable(WhopSDK::PlanUpdateParams::Image::OrHash)).void
|
|
46
42
|
end
|
|
47
|
-
|
|
43
|
+
attr_writer :image
|
|
48
44
|
|
|
49
45
|
# An additional amount charged upon first purchase.
|
|
50
46
|
sig { returns(T.nilable(Float)) }
|
|
@@ -54,6 +50,10 @@ module WhopSDK
|
|
|
54
50
|
sig { returns(T.nilable(String)) }
|
|
55
51
|
attr_accessor :internal_notes
|
|
56
52
|
|
|
53
|
+
# Whether this plan uses legacy payment method controls
|
|
54
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
55
|
+
attr_accessor :legacy_payment_method_controls
|
|
56
|
+
|
|
57
57
|
# Whether or not to offer a discount to cancel a subscription.
|
|
58
58
|
sig { returns(T.nilable(T::Boolean)) }
|
|
59
59
|
attr_accessor :offer_cancel_discount
|
|
@@ -124,15 +124,10 @@ module WhopSDK
|
|
|
124
124
|
T.nilable(T::Array[WhopSDK::PlanUpdateParams::CustomField::OrHash]),
|
|
125
125
|
description: T.nilable(String),
|
|
126
126
|
expiration_days: T.nilable(Integer),
|
|
127
|
-
image:
|
|
128
|
-
T.nilable(
|
|
129
|
-
T.any(
|
|
130
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID::OrHash,
|
|
131
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithID::OrHash
|
|
132
|
-
)
|
|
133
|
-
),
|
|
127
|
+
image: T.nilable(WhopSDK::PlanUpdateParams::Image::OrHash),
|
|
134
128
|
initial_price: T.nilable(Float),
|
|
135
129
|
internal_notes: T.nilable(String),
|
|
130
|
+
legacy_payment_method_controls: T.nilable(T::Boolean),
|
|
136
131
|
offer_cancel_discount: T.nilable(T::Boolean),
|
|
137
132
|
override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
|
|
138
133
|
payment_method_configuration:
|
|
@@ -167,6 +162,8 @@ module WhopSDK
|
|
|
167
162
|
initial_price: nil,
|
|
168
163
|
# A personal description or notes section for the business.
|
|
169
164
|
internal_notes: nil,
|
|
165
|
+
# Whether this plan uses legacy payment method controls
|
|
166
|
+
legacy_payment_method_controls: nil,
|
|
170
167
|
# Whether or not to offer a discount to cancel a subscription.
|
|
171
168
|
offer_cancel_discount: nil,
|
|
172
169
|
# Whether or not the tax is included in a plan's price (or if it hasn't been set
|
|
@@ -206,15 +203,10 @@ module WhopSDK
|
|
|
206
203
|
T.nilable(T::Array[WhopSDK::PlanUpdateParams::CustomField]),
|
|
207
204
|
description: T.nilable(String),
|
|
208
205
|
expiration_days: T.nilable(Integer),
|
|
209
|
-
image:
|
|
210
|
-
T.nilable(
|
|
211
|
-
T.any(
|
|
212
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID,
|
|
213
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithID
|
|
214
|
-
)
|
|
215
|
-
),
|
|
206
|
+
image: T.nilable(WhopSDK::PlanUpdateParams::Image),
|
|
216
207
|
initial_price: T.nilable(Float),
|
|
217
208
|
internal_notes: T.nilable(String),
|
|
209
|
+
legacy_payment_method_controls: T.nilable(T::Boolean),
|
|
218
210
|
offer_cancel_discount: T.nilable(T::Boolean),
|
|
219
211
|
override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
|
|
220
212
|
payment_method_configuration:
|
|
@@ -309,82 +301,26 @@ module WhopSDK
|
|
|
309
301
|
end
|
|
310
302
|
end
|
|
311
303
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
extend WhopSDK::Internal::Type::Union
|
|
315
|
-
|
|
316
|
-
Variants =
|
|
304
|
+
class Image < WhopSDK::Internal::Type::BaseModel
|
|
305
|
+
OrHash =
|
|
317
306
|
T.type_alias do
|
|
318
|
-
T.any(
|
|
319
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID,
|
|
320
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithID
|
|
321
|
-
)
|
|
322
|
-
end
|
|
323
|
-
|
|
324
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
325
|
-
OrHash =
|
|
326
|
-
T.type_alias do
|
|
327
|
-
T.any(
|
|
328
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID,
|
|
329
|
-
WhopSDK::Internal::AnyHash
|
|
330
|
-
)
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
334
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
335
|
-
# mediaDirectUpload mutation.
|
|
336
|
-
sig { returns(String) }
|
|
337
|
-
attr_accessor :direct_upload_id
|
|
338
|
-
|
|
339
|
-
# Input for an attachment
|
|
340
|
-
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
341
|
-
def self.new(
|
|
342
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
343
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
344
|
-
# mediaDirectUpload mutation.
|
|
345
|
-
direct_upload_id:
|
|
346
|
-
)
|
|
347
|
-
end
|
|
348
|
-
|
|
349
|
-
sig { override.returns({ direct_upload_id: String }) }
|
|
350
|
-
def to_hash
|
|
307
|
+
T.any(WhopSDK::PlanUpdateParams::Image, WhopSDK::Internal::AnyHash)
|
|
351
308
|
end
|
|
352
|
-
end
|
|
353
309
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
T.any(
|
|
358
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithID,
|
|
359
|
-
WhopSDK::Internal::AnyHash
|
|
360
|
-
)
|
|
361
|
-
end
|
|
362
|
-
|
|
363
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
364
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
365
|
-
# doing.
|
|
366
|
-
sig { returns(String) }
|
|
367
|
-
attr_accessor :id
|
|
368
|
-
|
|
369
|
-
# Input for an attachment
|
|
370
|
-
sig { params(id: String).returns(T.attached_class) }
|
|
371
|
-
def self.new(
|
|
372
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
373
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
374
|
-
# doing.
|
|
375
|
-
id:
|
|
376
|
-
)
|
|
377
|
-
end
|
|
310
|
+
# The ID of an existing file object.
|
|
311
|
+
sig { returns(String) }
|
|
312
|
+
attr_accessor :id
|
|
378
313
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
314
|
+
# An image for the plan. This will be visible on the product page to customers.
|
|
315
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
316
|
+
def self.new(
|
|
317
|
+
# The ID of an existing file object.
|
|
318
|
+
id:
|
|
319
|
+
)
|
|
382
320
|
end
|
|
383
321
|
|
|
384
|
-
sig
|
|
385
|
-
|
|
386
|
-
end
|
|
387
|
-
def self.variants
|
|
322
|
+
sig { override.returns({ id: String }) }
|
|
323
|
+
def to_hash
|
|
388
324
|
end
|
|
389
325
|
end
|
|
390
326
|
|
|
@@ -33,11 +33,16 @@ module WhopSDK
|
|
|
33
33
|
sig { returns(Symbol) }
|
|
34
34
|
attr_accessor :type
|
|
35
35
|
|
|
36
|
+
# The company ID that this webhook event is associated with
|
|
37
|
+
sig { returns(T.nilable(String)) }
|
|
38
|
+
attr_accessor :company_id
|
|
39
|
+
|
|
36
40
|
sig do
|
|
37
41
|
params(
|
|
38
42
|
id: String,
|
|
39
43
|
data: WhopSDK::RefundCreatedWebhookEvent::Data::OrHash,
|
|
40
44
|
timestamp: Time,
|
|
45
|
+
company_id: T.nilable(String),
|
|
41
46
|
api_version: Symbol,
|
|
42
47
|
type: Symbol
|
|
43
48
|
).returns(T.attached_class)
|
|
@@ -49,6 +54,8 @@ module WhopSDK
|
|
|
49
54
|
data:,
|
|
50
55
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
51
56
|
timestamp:,
|
|
57
|
+
# The company ID that this webhook event is associated with
|
|
58
|
+
company_id: nil,
|
|
52
59
|
# The API version for this webhook
|
|
53
60
|
api_version: :v1,
|
|
54
61
|
# The webhook event type
|
|
@@ -63,7 +70,8 @@ module WhopSDK
|
|
|
63
70
|
api_version: Symbol,
|
|
64
71
|
data: WhopSDK::RefundCreatedWebhookEvent::Data,
|
|
65
72
|
timestamp: Time,
|
|
66
|
-
type: Symbol
|
|
73
|
+
type: Symbol,
|
|
74
|
+
company_id: T.nilable(String)
|
|
67
75
|
}
|
|
68
76
|
)
|
|
69
77
|
end
|
|
@@ -33,11 +33,16 @@ module WhopSDK
|
|
|
33
33
|
sig { returns(Symbol) }
|
|
34
34
|
attr_accessor :type
|
|
35
35
|
|
|
36
|
+
# The company ID that this webhook event is associated with
|
|
37
|
+
sig { returns(T.nilable(String)) }
|
|
38
|
+
attr_accessor :company_id
|
|
39
|
+
|
|
36
40
|
sig do
|
|
37
41
|
params(
|
|
38
42
|
id: String,
|
|
39
43
|
data: WhopSDK::RefundUpdatedWebhookEvent::Data::OrHash,
|
|
40
44
|
timestamp: Time,
|
|
45
|
+
company_id: T.nilable(String),
|
|
41
46
|
api_version: Symbol,
|
|
42
47
|
type: Symbol
|
|
43
48
|
).returns(T.attached_class)
|
|
@@ -49,6 +54,8 @@ module WhopSDK
|
|
|
49
54
|
data:,
|
|
50
55
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
51
56
|
timestamp:,
|
|
57
|
+
# The company ID that this webhook event is associated with
|
|
58
|
+
company_id: nil,
|
|
52
59
|
# The API version for this webhook
|
|
53
60
|
api_version: :v1,
|
|
54
61
|
# The webhook event type
|
|
@@ -63,7 +70,8 @@ module WhopSDK
|
|
|
63
70
|
api_version: Symbol,
|
|
64
71
|
data: WhopSDK::RefundUpdatedWebhookEvent::Data,
|
|
65
72
|
timestamp: Time,
|
|
66
|
-
type: Symbol
|
|
73
|
+
type: Symbol,
|
|
74
|
+
company_id: T.nilable(String)
|
|
67
75
|
}
|
|
68
76
|
)
|
|
69
77
|
end
|
|
@@ -35,11 +35,16 @@ module WhopSDK
|
|
|
35
35
|
sig { returns(Symbol) }
|
|
36
36
|
attr_accessor :type
|
|
37
37
|
|
|
38
|
+
# The company ID that this webhook event is associated with
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_accessor :company_id
|
|
41
|
+
|
|
38
42
|
sig do
|
|
39
43
|
params(
|
|
40
44
|
id: String,
|
|
41
45
|
data: WhopSDK::SetupIntent::OrHash,
|
|
42
46
|
timestamp: Time,
|
|
47
|
+
company_id: T.nilable(String),
|
|
43
48
|
api_version: Symbol,
|
|
44
49
|
type: Symbol
|
|
45
50
|
).returns(T.attached_class)
|
|
@@ -52,6 +57,8 @@ module WhopSDK
|
|
|
52
57
|
data:,
|
|
53
58
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
54
59
|
timestamp:,
|
|
60
|
+
# The company ID that this webhook event is associated with
|
|
61
|
+
company_id: nil,
|
|
55
62
|
# The API version for this webhook
|
|
56
63
|
api_version: :v1,
|
|
57
64
|
# The webhook event type
|
|
@@ -66,7 +73,8 @@ module WhopSDK
|
|
|
66
73
|
api_version: Symbol,
|
|
67
74
|
data: WhopSDK::SetupIntent,
|
|
68
75
|
timestamp: Time,
|
|
69
|
-
type: Symbol
|
|
76
|
+
type: Symbol,
|
|
77
|
+
company_id: T.nilable(String)
|
|
70
78
|
}
|
|
71
79
|
)
|
|
72
80
|
end
|
|
@@ -35,11 +35,16 @@ module WhopSDK
|
|
|
35
35
|
sig { returns(Symbol) }
|
|
36
36
|
attr_accessor :type
|
|
37
37
|
|
|
38
|
+
# The company ID that this webhook event is associated with
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_accessor :company_id
|
|
41
|
+
|
|
38
42
|
sig do
|
|
39
43
|
params(
|
|
40
44
|
id: String,
|
|
41
45
|
data: WhopSDK::SetupIntent::OrHash,
|
|
42
46
|
timestamp: Time,
|
|
47
|
+
company_id: T.nilable(String),
|
|
43
48
|
api_version: Symbol,
|
|
44
49
|
type: Symbol
|
|
45
50
|
).returns(T.attached_class)
|
|
@@ -52,6 +57,8 @@ module WhopSDK
|
|
|
52
57
|
data:,
|
|
53
58
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
54
59
|
timestamp:,
|
|
60
|
+
# The company ID that this webhook event is associated with
|
|
61
|
+
company_id: nil,
|
|
55
62
|
# The API version for this webhook
|
|
56
63
|
api_version: :v1,
|
|
57
64
|
# The webhook event type
|
|
@@ -66,7 +73,8 @@ module WhopSDK
|
|
|
66
73
|
api_version: Symbol,
|
|
67
74
|
data: WhopSDK::SetupIntent,
|
|
68
75
|
timestamp: Time,
|
|
69
|
-
type: Symbol
|
|
76
|
+
type: Symbol,
|
|
77
|
+
company_id: T.nilable(String)
|
|
70
78
|
}
|
|
71
79
|
)
|
|
72
80
|
end
|
|
@@ -35,11 +35,16 @@ module WhopSDK
|
|
|
35
35
|
sig { returns(Symbol) }
|
|
36
36
|
attr_accessor :type
|
|
37
37
|
|
|
38
|
+
# The company ID that this webhook event is associated with
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_accessor :company_id
|
|
41
|
+
|
|
38
42
|
sig do
|
|
39
43
|
params(
|
|
40
44
|
id: String,
|
|
41
45
|
data: WhopSDK::SetupIntent::OrHash,
|
|
42
46
|
timestamp: Time,
|
|
47
|
+
company_id: T.nilable(String),
|
|
43
48
|
api_version: Symbol,
|
|
44
49
|
type: Symbol
|
|
45
50
|
).returns(T.attached_class)
|
|
@@ -52,6 +57,8 @@ module WhopSDK
|
|
|
52
57
|
data:,
|
|
53
58
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
54
59
|
timestamp:,
|
|
60
|
+
# The company ID that this webhook event is associated with
|
|
61
|
+
company_id: nil,
|
|
55
62
|
# The API version for this webhook
|
|
56
63
|
api_version: :v1,
|
|
57
64
|
# The webhook event type
|
|
@@ -66,7 +73,8 @@ module WhopSDK
|
|
|
66
73
|
api_version: Symbol,
|
|
67
74
|
data: WhopSDK::SetupIntent,
|
|
68
75
|
timestamp: Time,
|
|
69
|
-
type: Symbol
|
|
76
|
+
type: Symbol,
|
|
77
|
+
company_id: T.nilable(String)
|
|
70
78
|
}
|
|
71
79
|
)
|
|
72
80
|
end
|
|
@@ -38,11 +38,16 @@ module WhopSDK
|
|
|
38
38
|
sig { returns(Symbol) }
|
|
39
39
|
attr_accessor :type
|
|
40
40
|
|
|
41
|
+
# The company ID that this webhook event is associated with
|
|
42
|
+
sig { returns(T.nilable(String)) }
|
|
43
|
+
attr_accessor :company_id
|
|
44
|
+
|
|
41
45
|
sig do
|
|
42
46
|
params(
|
|
43
47
|
id: String,
|
|
44
48
|
data: WhopSDK::VerificationSucceededWebhookEvent::Data::OrHash,
|
|
45
49
|
timestamp: Time,
|
|
50
|
+
company_id: T.nilable(String),
|
|
46
51
|
api_version: Symbol,
|
|
47
52
|
type: Symbol
|
|
48
53
|
).returns(T.attached_class)
|
|
@@ -54,6 +59,8 @@ module WhopSDK
|
|
|
54
59
|
data:,
|
|
55
60
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
56
61
|
timestamp:,
|
|
62
|
+
# The company ID that this webhook event is associated with
|
|
63
|
+
company_id: nil,
|
|
57
64
|
# The API version for this webhook
|
|
58
65
|
api_version: :v1,
|
|
59
66
|
# The webhook event type
|
|
@@ -68,7 +75,8 @@ module WhopSDK
|
|
|
68
75
|
api_version: Symbol,
|
|
69
76
|
data: WhopSDK::VerificationSucceededWebhookEvent::Data,
|
|
70
77
|
timestamp: Time,
|
|
71
|
-
type: Symbol
|
|
78
|
+
type: Symbol,
|
|
79
|
+
company_id: T.nilable(String)
|
|
72
80
|
}
|
|
73
81
|
)
|
|
74
82
|
end
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class WebhookCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(WhopSDK::WebhookCreateParams, WhopSDK::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The URL to send the webhook to.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :url
|
|
17
|
+
|
|
18
|
+
# The different API versions
|
|
19
|
+
sig do
|
|
20
|
+
returns(T.nilable(WhopSDK::WebhookCreateParams::APIVersion::OrSymbol))
|
|
21
|
+
end
|
|
22
|
+
attr_accessor :api_version
|
|
23
|
+
|
|
24
|
+
# Whether or not to send events for child resources. For example, if the webhook
|
|
25
|
+
# is created for a Company, enabling this will only send events from the Company's
|
|
26
|
+
# sub-merchants (child companies).
|
|
27
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
28
|
+
attr_accessor :child_resource_events
|
|
29
|
+
|
|
30
|
+
# Whether or not the webhook is enabled.
|
|
31
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
+
attr_accessor :enabled
|
|
33
|
+
|
|
34
|
+
# The events to send the webhook for.
|
|
35
|
+
sig do
|
|
36
|
+
returns(
|
|
37
|
+
T.nilable(T::Array[WhopSDK::WebhookCreateParams::Event::OrSymbol])
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
attr_accessor :events
|
|
41
|
+
|
|
42
|
+
# The resource to create the webhook for. By default this will use current company
|
|
43
|
+
sig { returns(T.nilable(String)) }
|
|
44
|
+
attr_accessor :resource_id
|
|
45
|
+
|
|
46
|
+
sig do
|
|
47
|
+
params(
|
|
48
|
+
url: String,
|
|
49
|
+
api_version:
|
|
50
|
+
T.nilable(WhopSDK::WebhookCreateParams::APIVersion::OrSymbol),
|
|
51
|
+
child_resource_events: T.nilable(T::Boolean),
|
|
52
|
+
enabled: T.nilable(T::Boolean),
|
|
53
|
+
events:
|
|
54
|
+
T.nilable(T::Array[WhopSDK::WebhookCreateParams::Event::OrSymbol]),
|
|
55
|
+
resource_id: T.nilable(String),
|
|
56
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
57
|
+
).returns(T.attached_class)
|
|
58
|
+
end
|
|
59
|
+
def self.new(
|
|
60
|
+
# The URL to send the webhook to.
|
|
61
|
+
url:,
|
|
62
|
+
# The different API versions
|
|
63
|
+
api_version: nil,
|
|
64
|
+
# Whether or not to send events for child resources. For example, if the webhook
|
|
65
|
+
# is created for a Company, enabling this will only send events from the Company's
|
|
66
|
+
# sub-merchants (child companies).
|
|
67
|
+
child_resource_events: nil,
|
|
68
|
+
# Whether or not the webhook is enabled.
|
|
69
|
+
enabled: nil,
|
|
70
|
+
# The events to send the webhook for.
|
|
71
|
+
events: nil,
|
|
72
|
+
# The resource to create the webhook for. By default this will use current company
|
|
73
|
+
resource_id: nil,
|
|
74
|
+
request_options: {}
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
sig do
|
|
79
|
+
override.returns(
|
|
80
|
+
{
|
|
81
|
+
url: String,
|
|
82
|
+
api_version:
|
|
83
|
+
T.nilable(WhopSDK::WebhookCreateParams::APIVersion::OrSymbol),
|
|
84
|
+
child_resource_events: T.nilable(T::Boolean),
|
|
85
|
+
enabled: T.nilable(T::Boolean),
|
|
86
|
+
events:
|
|
87
|
+
T.nilable(
|
|
88
|
+
T::Array[WhopSDK::WebhookCreateParams::Event::OrSymbol]
|
|
89
|
+
),
|
|
90
|
+
resource_id: T.nilable(String),
|
|
91
|
+
request_options: WhopSDK::RequestOptions
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
def to_hash
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# The different API versions
|
|
99
|
+
module APIVersion
|
|
100
|
+
extend WhopSDK::Internal::Type::Enum
|
|
101
|
+
|
|
102
|
+
TaggedSymbol =
|
|
103
|
+
T.type_alias do
|
|
104
|
+
T.all(Symbol, WhopSDK::WebhookCreateParams::APIVersion)
|
|
105
|
+
end
|
|
106
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
107
|
+
|
|
108
|
+
V1 = T.let(:v1, WhopSDK::WebhookCreateParams::APIVersion::TaggedSymbol)
|
|
109
|
+
V2 = T.let(:v2, WhopSDK::WebhookCreateParams::APIVersion::TaggedSymbol)
|
|
110
|
+
V5 = T.let(:v5, WhopSDK::WebhookCreateParams::APIVersion::TaggedSymbol)
|
|
111
|
+
|
|
112
|
+
sig do
|
|
113
|
+
override.returns(
|
|
114
|
+
T::Array[WhopSDK::WebhookCreateParams::APIVersion::TaggedSymbol]
|
|
115
|
+
)
|
|
116
|
+
end
|
|
117
|
+
def self.values
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# The different event types available
|
|
122
|
+
module Event
|
|
123
|
+
extend WhopSDK::Internal::Type::Enum
|
|
124
|
+
|
|
125
|
+
TaggedSymbol =
|
|
126
|
+
T.type_alias { T.all(Symbol, WhopSDK::WebhookCreateParams::Event) }
|
|
127
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
128
|
+
|
|
129
|
+
INVOICE_CREATED =
|
|
130
|
+
T.let(
|
|
131
|
+
:"invoice.created",
|
|
132
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
133
|
+
)
|
|
134
|
+
INVOICE_PAID =
|
|
135
|
+
T.let(
|
|
136
|
+
:"invoice.paid",
|
|
137
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
138
|
+
)
|
|
139
|
+
INVOICE_PAST_DUE =
|
|
140
|
+
T.let(
|
|
141
|
+
:"invoice.past_due",
|
|
142
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
143
|
+
)
|
|
144
|
+
INVOICE_VOIDED =
|
|
145
|
+
T.let(
|
|
146
|
+
:"invoice.voided",
|
|
147
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
148
|
+
)
|
|
149
|
+
MEMBERSHIP_ACTIVATED =
|
|
150
|
+
T.let(
|
|
151
|
+
:"membership.activated",
|
|
152
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
153
|
+
)
|
|
154
|
+
MEMBERSHIP_DEACTIVATED =
|
|
155
|
+
T.let(
|
|
156
|
+
:"membership.deactivated",
|
|
157
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
158
|
+
)
|
|
159
|
+
ENTRY_CREATED =
|
|
160
|
+
T.let(
|
|
161
|
+
:"entry.created",
|
|
162
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
163
|
+
)
|
|
164
|
+
ENTRY_APPROVED =
|
|
165
|
+
T.let(
|
|
166
|
+
:"entry.approved",
|
|
167
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
168
|
+
)
|
|
169
|
+
ENTRY_DENIED =
|
|
170
|
+
T.let(
|
|
171
|
+
:"entry.denied",
|
|
172
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
173
|
+
)
|
|
174
|
+
ENTRY_DELETED =
|
|
175
|
+
T.let(
|
|
176
|
+
:"entry.deleted",
|
|
177
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
178
|
+
)
|
|
179
|
+
SETUP_INTENT_REQUIRES_ACTION =
|
|
180
|
+
T.let(
|
|
181
|
+
:"setup_intent.requires_action",
|
|
182
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
183
|
+
)
|
|
184
|
+
SETUP_INTENT_SUCCEEDED =
|
|
185
|
+
T.let(
|
|
186
|
+
:"setup_intent.succeeded",
|
|
187
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
188
|
+
)
|
|
189
|
+
SETUP_INTENT_CANCELED =
|
|
190
|
+
T.let(
|
|
191
|
+
:"setup_intent.canceled",
|
|
192
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
193
|
+
)
|
|
194
|
+
WITHDRAWAL_CREATED =
|
|
195
|
+
T.let(
|
|
196
|
+
:"withdrawal.created",
|
|
197
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
198
|
+
)
|
|
199
|
+
WITHDRAWAL_UPDATED =
|
|
200
|
+
T.let(
|
|
201
|
+
:"withdrawal.updated",
|
|
202
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
203
|
+
)
|
|
204
|
+
COURSE_LESSON_INTERACTION_COMPLETED =
|
|
205
|
+
T.let(
|
|
206
|
+
:"course_lesson_interaction.completed",
|
|
207
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
208
|
+
)
|
|
209
|
+
PAYOUT_METHOD_CREATED =
|
|
210
|
+
T.let(
|
|
211
|
+
:"payout_method.created",
|
|
212
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
213
|
+
)
|
|
214
|
+
VERIFICATION_SUCCEEDED =
|
|
215
|
+
T.let(
|
|
216
|
+
:"verification.succeeded",
|
|
217
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
218
|
+
)
|
|
219
|
+
PAYMENT_CREATED =
|
|
220
|
+
T.let(
|
|
221
|
+
:"payment.created",
|
|
222
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
223
|
+
)
|
|
224
|
+
PAYMENT_SUCCEEDED =
|
|
225
|
+
T.let(
|
|
226
|
+
:"payment.succeeded",
|
|
227
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
228
|
+
)
|
|
229
|
+
PAYMENT_FAILED =
|
|
230
|
+
T.let(
|
|
231
|
+
:"payment.failed",
|
|
232
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
233
|
+
)
|
|
234
|
+
PAYMENT_PENDING =
|
|
235
|
+
T.let(
|
|
236
|
+
:"payment.pending",
|
|
237
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
238
|
+
)
|
|
239
|
+
DISPUTE_CREATED =
|
|
240
|
+
T.let(
|
|
241
|
+
:"dispute.created",
|
|
242
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
243
|
+
)
|
|
244
|
+
DISPUTE_UPDATED =
|
|
245
|
+
T.let(
|
|
246
|
+
:"dispute.updated",
|
|
247
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
248
|
+
)
|
|
249
|
+
REFUND_CREATED =
|
|
250
|
+
T.let(
|
|
251
|
+
:"refund.created",
|
|
252
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
253
|
+
)
|
|
254
|
+
REFUND_UPDATED =
|
|
255
|
+
T.let(
|
|
256
|
+
:"refund.updated",
|
|
257
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
258
|
+
)
|
|
259
|
+
MEMBERSHIP_CANCEL_AT_PERIOD_END_CHANGED =
|
|
260
|
+
T.let(
|
|
261
|
+
:"membership.cancel_at_period_end_changed",
|
|
262
|
+
WhopSDK::WebhookCreateParams::Event::TaggedSymbol
|
|
263
|
+
)
|
|
264
|
+
|
|
265
|
+
sig do
|
|
266
|
+
override.returns(
|
|
267
|
+
T::Array[WhopSDK::WebhookCreateParams::Event::TaggedSymbol]
|
|
268
|
+
)
|
|
269
|
+
end
|
|
270
|
+
def self.values
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
end
|