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
|
@@ -21,16 +21,7 @@ module WhopSDK
|
|
|
21
21
|
|
|
22
22
|
# The attachments for this message, such as videos or images.
|
|
23
23
|
sig do
|
|
24
|
-
returns(
|
|
25
|
-
T.nilable(
|
|
26
|
-
T::Array[
|
|
27
|
-
T.any(
|
|
28
|
-
WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
29
|
-
WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithID
|
|
30
|
-
)
|
|
31
|
-
]
|
|
32
|
-
)
|
|
33
|
-
)
|
|
24
|
+
returns(T.nilable(T::Array[WhopSDK::MessageCreateParams::Attachment]))
|
|
34
25
|
end
|
|
35
26
|
attr_accessor :attachments
|
|
36
27
|
|
|
@@ -49,12 +40,7 @@ module WhopSDK
|
|
|
49
40
|
content: String,
|
|
50
41
|
attachments:
|
|
51
42
|
T.nilable(
|
|
52
|
-
T::Array[
|
|
53
|
-
T.any(
|
|
54
|
-
WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
55
|
-
WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithID::OrHash
|
|
56
|
-
)
|
|
57
|
-
]
|
|
43
|
+
T::Array[WhopSDK::MessageCreateParams::Attachment::OrHash]
|
|
58
44
|
),
|
|
59
45
|
poll: T.nilable(WhopSDK::MessageCreateParams::Poll::OrHash),
|
|
60
46
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
@@ -79,14 +65,7 @@ module WhopSDK
|
|
|
79
65
|
channel_id: String,
|
|
80
66
|
content: String,
|
|
81
67
|
attachments:
|
|
82
|
-
T.nilable(
|
|
83
|
-
T::Array[
|
|
84
|
-
T.any(
|
|
85
|
-
WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
86
|
-
WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithID
|
|
87
|
-
)
|
|
88
|
-
]
|
|
89
|
-
),
|
|
68
|
+
T.nilable(T::Array[WhopSDK::MessageCreateParams::Attachment]),
|
|
90
69
|
poll: T.nilable(WhopSDK::MessageCreateParams::Poll),
|
|
91
70
|
request_options: WhopSDK::RequestOptions
|
|
92
71
|
}
|
|
@@ -95,84 +74,29 @@ module WhopSDK
|
|
|
95
74
|
def to_hash
|
|
96
75
|
end
|
|
97
76
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
extend WhopSDK::Internal::Type::Union
|
|
101
|
-
|
|
102
|
-
Variants =
|
|
77
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
78
|
+
OrHash =
|
|
103
79
|
T.type_alias do
|
|
104
80
|
T.any(
|
|
105
|
-
WhopSDK::MessageCreateParams::Attachment
|
|
106
|
-
WhopSDK::
|
|
81
|
+
WhopSDK::MessageCreateParams::Attachment,
|
|
82
|
+
WhopSDK::Internal::AnyHash
|
|
107
83
|
)
|
|
108
84
|
end
|
|
109
85
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
T.any(
|
|
114
|
-
WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
115
|
-
WhopSDK::Internal::AnyHash
|
|
116
|
-
)
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
120
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
121
|
-
# mediaDirectUpload mutation.
|
|
122
|
-
sig { returns(String) }
|
|
123
|
-
attr_accessor :direct_upload_id
|
|
124
|
-
|
|
125
|
-
# Input for an attachment
|
|
126
|
-
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
127
|
-
def self.new(
|
|
128
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
129
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
130
|
-
# mediaDirectUpload mutation.
|
|
131
|
-
direct_upload_id:
|
|
132
|
-
)
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
sig { override.returns({ direct_upload_id: String }) }
|
|
136
|
-
def to_hash
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
141
|
-
OrHash =
|
|
142
|
-
T.type_alias do
|
|
143
|
-
T.any(
|
|
144
|
-
WhopSDK::MessageCreateParams::Attachment::AttachmentInputWithID,
|
|
145
|
-
WhopSDK::Internal::AnyHash
|
|
146
|
-
)
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
150
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
151
|
-
# doing.
|
|
152
|
-
sig { returns(String) }
|
|
153
|
-
attr_accessor :id
|
|
86
|
+
# The ID of an existing file object.
|
|
87
|
+
sig { returns(String) }
|
|
88
|
+
attr_accessor :id
|
|
154
89
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
id:
|
|
162
|
-
)
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
sig { override.returns({ id: String }) }
|
|
166
|
-
def to_hash
|
|
167
|
-
end
|
|
90
|
+
# Input for an attachment
|
|
91
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
92
|
+
def self.new(
|
|
93
|
+
# The ID of an existing file object.
|
|
94
|
+
id:
|
|
95
|
+
)
|
|
168
96
|
end
|
|
169
97
|
|
|
170
|
-
sig
|
|
171
|
-
|
|
172
|
-
T::Array[WhopSDK::MessageCreateParams::Attachment::Variants]
|
|
173
|
-
)
|
|
174
|
-
end
|
|
175
|
-
def self.variants
|
|
98
|
+
sig { override.returns({ id: String }) }
|
|
99
|
+
def to_hash
|
|
176
100
|
end
|
|
177
101
|
end
|
|
178
102
|
|
|
@@ -13,16 +13,7 @@ module WhopSDK
|
|
|
13
13
|
|
|
14
14
|
# The attachments for this message
|
|
15
15
|
sig do
|
|
16
|
-
returns(
|
|
17
|
-
T.nilable(
|
|
18
|
-
T::Array[
|
|
19
|
-
T.any(
|
|
20
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
21
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID
|
|
22
|
-
)
|
|
23
|
-
]
|
|
24
|
-
)
|
|
25
|
-
)
|
|
16
|
+
returns(T.nilable(T::Array[WhopSDK::MessageUpdateParams::Attachment]))
|
|
26
17
|
end
|
|
27
18
|
attr_accessor :attachments
|
|
28
19
|
|
|
@@ -38,12 +29,7 @@ module WhopSDK
|
|
|
38
29
|
params(
|
|
39
30
|
attachments:
|
|
40
31
|
T.nilable(
|
|
41
|
-
T::Array[
|
|
42
|
-
T.any(
|
|
43
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
44
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID::OrHash
|
|
45
|
-
)
|
|
46
|
-
]
|
|
32
|
+
T::Array[WhopSDK::MessageUpdateParams::Attachment::OrHash]
|
|
47
33
|
),
|
|
48
34
|
content: T.nilable(String),
|
|
49
35
|
is_pinned: T.nilable(T::Boolean),
|
|
@@ -65,14 +51,7 @@ module WhopSDK
|
|
|
65
51
|
override.returns(
|
|
66
52
|
{
|
|
67
53
|
attachments:
|
|
68
|
-
T.nilable(
|
|
69
|
-
T::Array[
|
|
70
|
-
T.any(
|
|
71
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
72
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID
|
|
73
|
-
)
|
|
74
|
-
]
|
|
75
|
-
),
|
|
54
|
+
T.nilable(T::Array[WhopSDK::MessageUpdateParams::Attachment]),
|
|
76
55
|
content: T.nilable(String),
|
|
77
56
|
is_pinned: T.nilable(T::Boolean),
|
|
78
57
|
request_options: WhopSDK::RequestOptions
|
|
@@ -82,84 +61,29 @@ module WhopSDK
|
|
|
82
61
|
def to_hash
|
|
83
62
|
end
|
|
84
63
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
extend WhopSDK::Internal::Type::Union
|
|
88
|
-
|
|
89
|
-
Variants =
|
|
64
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
65
|
+
OrHash =
|
|
90
66
|
T.type_alias do
|
|
91
67
|
T.any(
|
|
92
|
-
WhopSDK::MessageUpdateParams::Attachment
|
|
93
|
-
WhopSDK::
|
|
68
|
+
WhopSDK::MessageUpdateParams::Attachment,
|
|
69
|
+
WhopSDK::Internal::AnyHash
|
|
94
70
|
)
|
|
95
71
|
end
|
|
96
72
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
T.any(
|
|
101
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
102
|
-
WhopSDK::Internal::AnyHash
|
|
103
|
-
)
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
107
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
108
|
-
# mediaDirectUpload mutation.
|
|
109
|
-
sig { returns(String) }
|
|
110
|
-
attr_accessor :direct_upload_id
|
|
111
|
-
|
|
112
|
-
# Input for an attachment
|
|
113
|
-
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
114
|
-
def self.new(
|
|
115
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
116
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
117
|
-
# mediaDirectUpload mutation.
|
|
118
|
-
direct_upload_id:
|
|
119
|
-
)
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
sig { override.returns({ direct_upload_id: String }) }
|
|
123
|
-
def to_hash
|
|
124
|
-
end
|
|
125
|
-
end
|
|
73
|
+
# The ID of an existing file object.
|
|
74
|
+
sig { returns(String) }
|
|
75
|
+
attr_accessor :id
|
|
126
76
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
)
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
137
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
138
|
-
# doing.
|
|
139
|
-
sig { returns(String) }
|
|
140
|
-
attr_accessor :id
|
|
141
|
-
|
|
142
|
-
# Input for an attachment
|
|
143
|
-
sig { params(id: String).returns(T.attached_class) }
|
|
144
|
-
def self.new(
|
|
145
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
146
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
147
|
-
# doing.
|
|
148
|
-
id:
|
|
149
|
-
)
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
sig { override.returns({ id: String }) }
|
|
153
|
-
def to_hash
|
|
154
|
-
end
|
|
77
|
+
# Input for an attachment
|
|
78
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
79
|
+
def self.new(
|
|
80
|
+
# The ID of an existing file object.
|
|
81
|
+
id:
|
|
82
|
+
)
|
|
155
83
|
end
|
|
156
84
|
|
|
157
|
-
sig
|
|
158
|
-
|
|
159
|
-
T::Array[WhopSDK::MessageUpdateParams::Attachment::Variants]
|
|
160
|
-
)
|
|
161
|
-
end
|
|
162
|
-
def self.variants
|
|
85
|
+
sig { override.returns({ id: String }) }
|
|
86
|
+
def to_hash
|
|
163
87
|
end
|
|
164
88
|
end
|
|
165
89
|
end
|
|
@@ -89,6 +89,10 @@ module WhopSDK
|
|
|
89
89
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
90
90
|
attr_accessor :metadata
|
|
91
91
|
|
|
92
|
+
# The time of the next schedule payment retry.
|
|
93
|
+
sig { returns(T.nilable(Time)) }
|
|
94
|
+
attr_accessor :next_payment_attempt
|
|
95
|
+
|
|
92
96
|
# The datetime the payment was paid
|
|
93
97
|
sig { returns(T.nilable(Time)) }
|
|
94
98
|
attr_accessor :paid_at
|
|
@@ -108,6 +112,10 @@ module WhopSDK
|
|
|
108
112
|
sig { returns(T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol)) }
|
|
109
113
|
attr_accessor :payment_method_type
|
|
110
114
|
|
|
115
|
+
# The number of failed payment attempts for the payment.
|
|
116
|
+
sig { returns(T.nilable(Integer)) }
|
|
117
|
+
attr_accessor :payments_failed
|
|
118
|
+
|
|
111
119
|
# The plan attached to this payment.
|
|
112
120
|
sig { returns(T.nilable(WhopSDK::Payment::Plan)) }
|
|
113
121
|
attr_reader :plan
|
|
@@ -201,9 +209,11 @@ module WhopSDK
|
|
|
201
209
|
member: T.nilable(WhopSDK::Payment::Member::OrHash),
|
|
202
210
|
membership: T.nilable(WhopSDK::Payment::Membership::OrHash),
|
|
203
211
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
212
|
+
next_payment_attempt: T.nilable(Time),
|
|
204
213
|
paid_at: T.nilable(Time),
|
|
205
214
|
payment_method: T.nilable(WhopSDK::Payment::PaymentMethod::OrHash),
|
|
206
215
|
payment_method_type: T.nilable(WhopSDK::PaymentMethodTypes::OrSymbol),
|
|
216
|
+
payments_failed: T.nilable(Integer),
|
|
207
217
|
plan: T.nilable(WhopSDK::Payment::Plan::OrHash),
|
|
208
218
|
product: T.nilable(WhopSDK::Payment::Product::OrHash),
|
|
209
219
|
promo_code: T.nilable(WhopSDK::Payment::PromoCode::OrHash),
|
|
@@ -254,12 +264,16 @@ module WhopSDK
|
|
|
254
264
|
# The custom metadata stored on this payment. This will be copied over to the
|
|
255
265
|
# checkout configuration for which this payment was made
|
|
256
266
|
metadata:,
|
|
267
|
+
# The time of the next schedule payment retry.
|
|
268
|
+
next_payment_attempt:,
|
|
257
269
|
# The datetime the payment was paid
|
|
258
270
|
paid_at:,
|
|
259
271
|
# The payment method used for the payment, if available.
|
|
260
272
|
payment_method:,
|
|
261
273
|
# The different types of payment methods that can be used.
|
|
262
274
|
payment_method_type:,
|
|
275
|
+
# The number of failed payment attempts for the payment.
|
|
276
|
+
payments_failed:,
|
|
263
277
|
# The plan attached to this payment.
|
|
264
278
|
plan:,
|
|
265
279
|
# The product this payment was made for
|
|
@@ -314,10 +328,12 @@ module WhopSDK
|
|
|
314
328
|
member: T.nilable(WhopSDK::Payment::Member),
|
|
315
329
|
membership: T.nilable(WhopSDK::Payment::Membership),
|
|
316
330
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
331
|
+
next_payment_attempt: T.nilable(Time),
|
|
317
332
|
paid_at: T.nilable(Time),
|
|
318
333
|
payment_method: T.nilable(WhopSDK::Payment::PaymentMethod),
|
|
319
334
|
payment_method_type:
|
|
320
335
|
T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol),
|
|
336
|
+
payments_failed: T.nilable(Integer),
|
|
321
337
|
plan: T.nilable(WhopSDK::Payment::Plan),
|
|
322
338
|
product: T.nilable(WhopSDK::Payment::Product),
|
|
323
339
|
promo_code: T.nilable(WhopSDK::Payment::PromoCode),
|
|
@@ -31,11 +31,16 @@ module WhopSDK
|
|
|
31
31
|
sig { returns(Symbol) }
|
|
32
32
|
attr_accessor :type
|
|
33
33
|
|
|
34
|
+
# The company ID that this webhook event is associated with
|
|
35
|
+
sig { returns(T.nilable(String)) }
|
|
36
|
+
attr_accessor :company_id
|
|
37
|
+
|
|
34
38
|
sig do
|
|
35
39
|
params(
|
|
36
40
|
id: String,
|
|
37
41
|
data: WhopSDK::Payment::OrHash,
|
|
38
42
|
timestamp: Time,
|
|
43
|
+
company_id: T.nilable(String),
|
|
39
44
|
api_version: Symbol,
|
|
40
45
|
type: Symbol
|
|
41
46
|
).returns(T.attached_class)
|
|
@@ -47,6 +52,8 @@ module WhopSDK
|
|
|
47
52
|
data:,
|
|
48
53
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
49
54
|
timestamp:,
|
|
55
|
+
# The company ID that this webhook event is associated with
|
|
56
|
+
company_id: nil,
|
|
50
57
|
# The API version for this webhook
|
|
51
58
|
api_version: :v1,
|
|
52
59
|
# The webhook event type
|
|
@@ -61,7 +68,8 @@ module WhopSDK
|
|
|
61
68
|
api_version: Symbol,
|
|
62
69
|
data: WhopSDK::Payment,
|
|
63
70
|
timestamp: Time,
|
|
64
|
-
type: Symbol
|
|
71
|
+
type: Symbol,
|
|
72
|
+
company_id: T.nilable(String)
|
|
65
73
|
}
|
|
66
74
|
)
|
|
67
75
|
end
|
|
@@ -31,11 +31,16 @@ module WhopSDK
|
|
|
31
31
|
sig { returns(Symbol) }
|
|
32
32
|
attr_accessor :type
|
|
33
33
|
|
|
34
|
+
# The company ID that this webhook event is associated with
|
|
35
|
+
sig { returns(T.nilable(String)) }
|
|
36
|
+
attr_accessor :company_id
|
|
37
|
+
|
|
34
38
|
sig do
|
|
35
39
|
params(
|
|
36
40
|
id: String,
|
|
37
41
|
data: WhopSDK::Payment::OrHash,
|
|
38
42
|
timestamp: Time,
|
|
43
|
+
company_id: T.nilable(String),
|
|
39
44
|
api_version: Symbol,
|
|
40
45
|
type: Symbol
|
|
41
46
|
).returns(T.attached_class)
|
|
@@ -47,6 +52,8 @@ module WhopSDK
|
|
|
47
52
|
data:,
|
|
48
53
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
49
54
|
timestamp:,
|
|
55
|
+
# The company ID that this webhook event is associated with
|
|
56
|
+
company_id: nil,
|
|
50
57
|
# The API version for this webhook
|
|
51
58
|
api_version: :v1,
|
|
52
59
|
# The webhook event type
|
|
@@ -61,7 +68,8 @@ module WhopSDK
|
|
|
61
68
|
api_version: Symbol,
|
|
62
69
|
data: WhopSDK::Payment,
|
|
63
70
|
timestamp: Time,
|
|
64
|
-
type: Symbol
|
|
71
|
+
type: Symbol,
|
|
72
|
+
company_id: T.nilable(String)
|
|
65
73
|
}
|
|
66
74
|
)
|
|
67
75
|
end
|
|
@@ -114,6 +114,10 @@ module WhopSDK
|
|
|
114
114
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
115
115
|
attr_accessor :metadata
|
|
116
116
|
|
|
117
|
+
# The time of the next schedule payment retry.
|
|
118
|
+
sig { returns(T.nilable(Time)) }
|
|
119
|
+
attr_accessor :next_payment_attempt
|
|
120
|
+
|
|
117
121
|
# The datetime the payment was paid
|
|
118
122
|
sig { returns(T.nilable(Time)) }
|
|
119
123
|
attr_accessor :paid_at
|
|
@@ -138,6 +142,10 @@ module WhopSDK
|
|
|
138
142
|
sig { returns(T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol)) }
|
|
139
143
|
attr_accessor :payment_method_type
|
|
140
144
|
|
|
145
|
+
# The number of failed payment attempts for the payment.
|
|
146
|
+
sig { returns(T.nilable(Integer)) }
|
|
147
|
+
attr_accessor :payments_failed
|
|
148
|
+
|
|
141
149
|
# The plan attached to this payment.
|
|
142
150
|
sig { returns(T.nilable(WhopSDK::Models::PaymentListResponse::Plan)) }
|
|
143
151
|
attr_reader :plan
|
|
@@ -255,12 +263,14 @@ module WhopSDK
|
|
|
255
263
|
membership:
|
|
256
264
|
T.nilable(WhopSDK::Models::PaymentListResponse::Membership::OrHash),
|
|
257
265
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
266
|
+
next_payment_attempt: T.nilable(Time),
|
|
258
267
|
paid_at: T.nilable(Time),
|
|
259
268
|
payment_method:
|
|
260
269
|
T.nilable(
|
|
261
270
|
WhopSDK::Models::PaymentListResponse::PaymentMethod::OrHash
|
|
262
271
|
),
|
|
263
272
|
payment_method_type: T.nilable(WhopSDK::PaymentMethodTypes::OrSymbol),
|
|
273
|
+
payments_failed: T.nilable(Integer),
|
|
264
274
|
plan: T.nilable(WhopSDK::Models::PaymentListResponse::Plan::OrHash),
|
|
265
275
|
product:
|
|
266
276
|
T.nilable(WhopSDK::Models::PaymentListResponse::Product::OrHash),
|
|
@@ -313,12 +323,16 @@ module WhopSDK
|
|
|
313
323
|
# The custom metadata stored on this payment. This will be copied over to the
|
|
314
324
|
# checkout configuration for which this payment was made
|
|
315
325
|
metadata:,
|
|
326
|
+
# The time of the next schedule payment retry.
|
|
327
|
+
next_payment_attempt:,
|
|
316
328
|
# The datetime the payment was paid
|
|
317
329
|
paid_at:,
|
|
318
330
|
# The payment method used for the payment, if available.
|
|
319
331
|
payment_method:,
|
|
320
332
|
# The different types of payment methods that can be used.
|
|
321
333
|
payment_method_type:,
|
|
334
|
+
# The number of failed payment attempts for the payment.
|
|
335
|
+
payments_failed:,
|
|
322
336
|
# The plan attached to this payment.
|
|
323
337
|
plan:,
|
|
324
338
|
# The product this payment was made for
|
|
@@ -375,11 +389,13 @@ module WhopSDK
|
|
|
375
389
|
membership:
|
|
376
390
|
T.nilable(WhopSDK::Models::PaymentListResponse::Membership),
|
|
377
391
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
392
|
+
next_payment_attempt: T.nilable(Time),
|
|
378
393
|
paid_at: T.nilable(Time),
|
|
379
394
|
payment_method:
|
|
380
395
|
T.nilable(WhopSDK::Models::PaymentListResponse::PaymentMethod),
|
|
381
396
|
payment_method_type:
|
|
382
397
|
T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol),
|
|
398
|
+
payments_failed: T.nilable(Integer),
|
|
383
399
|
plan: T.nilable(WhopSDK::Models::PaymentListResponse::Plan),
|
|
384
400
|
product: T.nilable(WhopSDK::Models::PaymentListResponse::Product),
|
|
385
401
|
promo_code:
|
|
@@ -16,31 +16,57 @@ module WhopSDK
|
|
|
16
16
|
ALIPAY = T.let(:alipay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
17
17
|
ALMA = T.let(:alma, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
18
18
|
AMAZON_PAY = T.let(:amazon_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
19
|
+
APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
19
20
|
APPLE_PAY = T.let(:apple_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
20
21
|
AU_BECS_DEBIT =
|
|
21
22
|
T.let(:au_becs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
22
23
|
BACS_DEBIT = T.let(:bacs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
23
24
|
BANCONTACT = T.let(:bancontact, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
24
25
|
BILLIE = T.let(:billie, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
26
|
+
BIZUM = T.let(:bizum, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
25
27
|
BLIK = T.let(:blik, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
26
28
|
BOLETO = T.let(:boleto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
29
|
+
CAPCHASE_PAY =
|
|
30
|
+
T.let(:capchase_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
27
31
|
CARD = T.let(:card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
28
32
|
CASHAPP = T.let(:cashapp, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
33
|
+
COINBASE = T.let(:coinbase, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
29
34
|
CRYPTO = T.let(:crypto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
35
|
+
CUSTOM = T.let(:custom, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
36
|
+
CUSTOMER_BALANCE =
|
|
37
|
+
T.let(:customer_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
38
|
+
DEMO_PAY = T.let(:demo_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
30
39
|
EPS = T.let(:eps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
40
|
+
EU_BANK_TRANSFER =
|
|
41
|
+
T.let(:eu_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
31
42
|
FPX = T.let(:fpx, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
32
43
|
GIROPAY = T.let(:giropay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
33
44
|
GOOGLE_PAY = T.let(:google_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
45
|
+
GOPAY = T.let(:gopay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
34
46
|
GRABPAY = T.let(:grabpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
47
|
+
ID_BANK_TRANSFER =
|
|
48
|
+
T.let(:id_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
35
49
|
IDEAL = T.let(:ideal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
36
50
|
KAKAO_PAY = T.let(:kakao_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
37
51
|
KLARNA = T.let(:klarna, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
38
52
|
KONBINI = T.let(:konbini, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
39
53
|
KR_CARD = T.let(:kr_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
54
|
+
KR_MARKET = T.let(:kr_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
55
|
+
KRIYA = T.let(:kriya, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
40
56
|
LINK = T.let(:link, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
57
|
+
MB_WAY = T.let(:mb_way, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
41
58
|
MOBILEPAY = T.let(:mobilepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
59
|
+
MONDU = T.let(:mondu, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
42
60
|
MULTIBANCO = T.let(:multibanco, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
43
61
|
NAVER_PAY = T.let(:naver_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
62
|
+
NETBANKING = T.let(:netbanking, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
63
|
+
NG_BANK = T.let(:ng_bank, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
64
|
+
NG_BANK_TRANSFER =
|
|
65
|
+
T.let(:ng_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
66
|
+
NG_CARD = T.let(:ng_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
67
|
+
NG_MARKET = T.let(:ng_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
68
|
+
NG_USSD = T.let(:ng_ussd, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
69
|
+
NG_WALLET = T.let(:ng_wallet, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
44
70
|
NZ_BANK_ACCOUNT =
|
|
45
71
|
T.let(:nz_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
46
72
|
OXXO = T.let(:oxxo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
@@ -49,64 +75,40 @@ module WhopSDK
|
|
|
49
75
|
T.let(:pay_by_bank, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
50
76
|
PAYCO = T.let(:payco, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
51
77
|
PAYNOW = T.let(:paynow, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
78
|
+
PAYPAL = T.let(:paypal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
79
|
+
PAYPAY = T.let(:paypay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
80
|
+
PAYTO = T.let(:payto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
52
81
|
PIX = T.let(:pix, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
82
|
+
PLATFORM_BALANCE =
|
|
83
|
+
T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
53
84
|
PROMPTPAY = T.let(:promptpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
85
|
+
QRIS = T.let(:qris, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
86
|
+
RECHNUNG = T.let(:rechnung, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
54
87
|
REVOLUT_PAY =
|
|
55
88
|
T.let(:revolut_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
56
89
|
SAMSUNG_PAY =
|
|
57
90
|
T.let(:samsung_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
58
91
|
SATISPAY = T.let(:satispay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
92
|
+
SCALAPAY = T.let(:scalapay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
59
93
|
SEPA_DEBIT = T.let(:sepa_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
94
|
+
SEQURA = T.let(:sequra, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
95
|
+
SEZZLE = T.let(:sezzle, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
96
|
+
SHOP_PAY = T.let(:shop_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
97
|
+
SHOPEEPAY = T.let(:shopeepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
60
98
|
SOFORT = T.let(:sofort, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
99
|
+
SOUTH_KOREA_MARKET =
|
|
100
|
+
T.let(:south_korea_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
101
|
+
SPLITIT = T.let(:splitit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
102
|
+
SUNBIT = T.let(:sunbit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
61
103
|
SWISH = T.let(:swish, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
62
104
|
TWINT = T.let(:twint, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
105
|
+
UPI = T.let(:upi, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
63
106
|
US_BANK_ACCOUNT =
|
|
64
107
|
T.let(:us_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
108
|
+
VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
109
|
+
VIPPS = T.let(:vipps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
65
110
|
WECHAT_PAY = T.let(:wechat_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
66
111
|
ZIP = T.let(:zip, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
67
|
-
BIZUM = T.let(:bizum, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
68
|
-
CAPCHASE_PAY =
|
|
69
|
-
T.let(:capchase_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
70
|
-
KRIYA = T.let(:kriya, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
71
|
-
MONDU = T.let(:mondu, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
72
|
-
NG_WALLET = T.let(:ng_wallet, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
73
|
-
PAYPAY = T.let(:paypay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
74
|
-
SEQURA = T.let(:sequra, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
75
|
-
SCALAPAY = T.let(:scalapay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
76
|
-
VIPPS = T.let(:vipps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
77
|
-
CUSTOM = T.let(:custom, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
78
|
-
CUSTOMER_BALANCE =
|
|
79
|
-
T.let(:customer_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
80
|
-
GOPAY = T.let(:gopay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
81
|
-
MB_WAY = T.let(:mb_way, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
82
|
-
NG_BANK = T.let(:ng_bank, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
83
|
-
NG_BANK_TRANSFER =
|
|
84
|
-
T.let(:ng_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
85
|
-
NG_CARD = T.let(:ng_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
86
|
-
NG_MARKET = T.let(:ng_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
87
|
-
NG_USSD = T.let(:ng_ussd, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
88
|
-
PAYPAL = T.let(:paypal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
89
|
-
PAYTO = T.let(:payto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
90
|
-
QRIS = T.let(:qris, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
91
|
-
RECHNUNG = T.let(:rechnung, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
92
|
-
SOUTH_KOREA_MARKET =
|
|
93
|
-
T.let(:south_korea_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
94
|
-
KR_MARKET = T.let(:kr_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
95
|
-
SHOPEEPAY = T.let(:shopeepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
96
|
-
UPI = T.let(:upi, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
97
|
-
SUNBIT = T.let(:sunbit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
98
|
-
NETBANKING = T.let(:netbanking, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
99
|
-
ID_BANK_TRANSFER =
|
|
100
|
-
T.let(:id_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
101
|
-
DEMO_PAY = T.let(:demo_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
102
|
-
SHOP_PAY = T.let(:shop_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
103
|
-
SEZZLE = T.let(:sezzle, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
104
|
-
COINBASE = T.let(:coinbase, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
105
|
-
SPLITIT = T.let(:splitit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
106
|
-
PLATFORM_BALANCE =
|
|
107
|
-
T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
108
|
-
APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
109
|
-
VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
110
112
|
UNKNOWN = T.let(:unknown, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
111
113
|
|
|
112
114
|
sig do
|
|
@@ -31,11 +31,16 @@ module WhopSDK
|
|
|
31
31
|
sig { returns(Symbol) }
|
|
32
32
|
attr_accessor :type
|
|
33
33
|
|
|
34
|
+
# The company ID that this webhook event is associated with
|
|
35
|
+
sig { returns(T.nilable(String)) }
|
|
36
|
+
attr_accessor :company_id
|
|
37
|
+
|
|
34
38
|
sig do
|
|
35
39
|
params(
|
|
36
40
|
id: String,
|
|
37
41
|
data: WhopSDK::Payment::OrHash,
|
|
38
42
|
timestamp: Time,
|
|
43
|
+
company_id: T.nilable(String),
|
|
39
44
|
api_version: Symbol,
|
|
40
45
|
type: Symbol
|
|
41
46
|
).returns(T.attached_class)
|
|
@@ -47,6 +52,8 @@ module WhopSDK
|
|
|
47
52
|
data:,
|
|
48
53
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
49
54
|
timestamp:,
|
|
55
|
+
# The company ID that this webhook event is associated with
|
|
56
|
+
company_id: nil,
|
|
50
57
|
# The API version for this webhook
|
|
51
58
|
api_version: :v1,
|
|
52
59
|
# The webhook event type
|
|
@@ -61,7 +68,8 @@ module WhopSDK
|
|
|
61
68
|
api_version: Symbol,
|
|
62
69
|
data: WhopSDK::Payment,
|
|
63
70
|
timestamp: Time,
|
|
64
|
-
type: Symbol
|
|
71
|
+
type: Symbol,
|
|
72
|
+
company_id: T.nilable(String)
|
|
65
73
|
}
|
|
66
74
|
)
|
|
67
75
|
end
|