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
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Files#create
|
|
6
|
+
class FileCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The ID of the file
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute content_type
|
|
14
|
+
# The MIME type of the file (e.g., image/jpeg, video/mp4)
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
required :content_type, String, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!attribute filename
|
|
20
|
+
# The name of the file
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
required :filename, String, nil?: true
|
|
24
|
+
|
|
25
|
+
# @!attribute size
|
|
26
|
+
# The size of the file in bytes
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
required :size, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute upload_headers
|
|
32
|
+
# Headers to include in the upload request (only on create)
|
|
33
|
+
#
|
|
34
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
35
|
+
required :upload_headers, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
36
|
+
|
|
37
|
+
# @!attribute upload_status
|
|
38
|
+
# The upload status of the file
|
|
39
|
+
#
|
|
40
|
+
# @return [Symbol, WhopSDK::Models::FileCreateResponse::UploadStatus]
|
|
41
|
+
required :upload_status, enum: -> { WhopSDK::Models::FileCreateResponse::UploadStatus }
|
|
42
|
+
|
|
43
|
+
# @!attribute upload_url
|
|
44
|
+
# The presigned URL to upload the file to (only on create)
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
required :upload_url, String, nil?: true
|
|
48
|
+
|
|
49
|
+
# @!attribute url
|
|
50
|
+
# The URL to access the file
|
|
51
|
+
#
|
|
52
|
+
# @return [String, nil]
|
|
53
|
+
required :url, String, nil?: true
|
|
54
|
+
|
|
55
|
+
# @!method initialize(id:, content_type:, filename:, size:, upload_headers:, upload_status:, upload_url:, url:)
|
|
56
|
+
# A file that has been uploaded or is pending upload
|
|
57
|
+
#
|
|
58
|
+
# @param id [String] The ID of the file
|
|
59
|
+
#
|
|
60
|
+
# @param content_type [String, nil] The MIME type of the file (e.g., image/jpeg, video/mp4)
|
|
61
|
+
#
|
|
62
|
+
# @param filename [String, nil] The name of the file
|
|
63
|
+
#
|
|
64
|
+
# @param size [String, nil] The size of the file in bytes
|
|
65
|
+
#
|
|
66
|
+
# @param upload_headers [Hash{Symbol=>Object}, nil] Headers to include in the upload request (only on create)
|
|
67
|
+
#
|
|
68
|
+
# @param upload_status [Symbol, WhopSDK::Models::FileCreateResponse::UploadStatus] The upload status of the file
|
|
69
|
+
#
|
|
70
|
+
# @param upload_url [String, nil] The presigned URL to upload the file to (only on create)
|
|
71
|
+
#
|
|
72
|
+
# @param url [String, nil] The URL to access the file
|
|
73
|
+
|
|
74
|
+
# The upload status of the file
|
|
75
|
+
#
|
|
76
|
+
# @see WhopSDK::Models::FileCreateResponse#upload_status
|
|
77
|
+
module UploadStatus
|
|
78
|
+
extend WhopSDK::Internal::Type::Enum
|
|
79
|
+
|
|
80
|
+
PENDING = :pending
|
|
81
|
+
PROCESSING = :processing
|
|
82
|
+
READY = :ready
|
|
83
|
+
FAILED = :failed
|
|
84
|
+
|
|
85
|
+
# @!method self.values
|
|
86
|
+
# @return [Array<Symbol>]
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Files#retrieve
|
|
6
|
+
class FileRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Files#retrieve
|
|
6
|
+
class FileRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The ID of the file
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute content_type
|
|
14
|
+
# The MIME type of the file (e.g., image/jpeg, video/mp4)
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
required :content_type, String, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!attribute filename
|
|
20
|
+
# The name of the file
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
required :filename, String, nil?: true
|
|
24
|
+
|
|
25
|
+
# @!attribute size
|
|
26
|
+
# The size of the file in bytes
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
required :size, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute upload_status
|
|
32
|
+
# The upload status of the file
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, WhopSDK::Models::FileRetrieveResponse::UploadStatus]
|
|
35
|
+
required :upload_status, enum: -> { WhopSDK::Models::FileRetrieveResponse::UploadStatus }
|
|
36
|
+
|
|
37
|
+
# @!attribute url
|
|
38
|
+
# The URL to access the file
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
required :url, String, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!method initialize(id:, content_type:, filename:, size:, upload_status:, url:)
|
|
44
|
+
# A file that has been uploaded or is pending upload
|
|
45
|
+
#
|
|
46
|
+
# @param id [String] The ID of the file
|
|
47
|
+
#
|
|
48
|
+
# @param content_type [String, nil] The MIME type of the file (e.g., image/jpeg, video/mp4)
|
|
49
|
+
#
|
|
50
|
+
# @param filename [String, nil] The name of the file
|
|
51
|
+
#
|
|
52
|
+
# @param size [String, nil] The size of the file in bytes
|
|
53
|
+
#
|
|
54
|
+
# @param upload_status [Symbol, WhopSDK::Models::FileRetrieveResponse::UploadStatus] The upload status of the file
|
|
55
|
+
#
|
|
56
|
+
# @param url [String, nil] The URL to access the file
|
|
57
|
+
|
|
58
|
+
# The upload status of the file
|
|
59
|
+
#
|
|
60
|
+
# @see WhopSDK::Models::FileRetrieveResponse#upload_status
|
|
61
|
+
module UploadStatus
|
|
62
|
+
extend WhopSDK::Internal::Type::Enum
|
|
63
|
+
|
|
64
|
+
PENDING = :pending
|
|
65
|
+
PROCESSING = :processing
|
|
66
|
+
READY = :ready
|
|
67
|
+
FAILED = :failed
|
|
68
|
+
|
|
69
|
+
# @!method self.values
|
|
70
|
+
# @return [Array<Symbol>]
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -16,9 +16,9 @@ module WhopSDK
|
|
|
16
16
|
# @!attribute attachments
|
|
17
17
|
# The attachments for this post
|
|
18
18
|
#
|
|
19
|
-
# @return [Array<WhopSDK::Models::ForumPostCreateParams::Attachment
|
|
19
|
+
# @return [Array<WhopSDK::Models::ForumPostCreateParams::Attachment>, nil]
|
|
20
20
|
optional :attachments,
|
|
21
|
-
-> { WhopSDK::Internal::Type::ArrayOf[
|
|
21
|
+
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::ForumPostCreateParams::Attachment] },
|
|
22
22
|
nil?: true
|
|
23
23
|
|
|
24
24
|
# @!attribute content
|
|
@@ -86,7 +86,7 @@ module WhopSDK
|
|
|
86
86
|
#
|
|
87
87
|
# @param experience_id [String] The experience to create this post in
|
|
88
88
|
#
|
|
89
|
-
# @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment
|
|
89
|
+
# @param attachments [Array<WhopSDK::Models::ForumPostCreateParams::Attachment>, nil] The attachments for this post
|
|
90
90
|
#
|
|
91
91
|
# @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
|
|
92
92
|
#
|
|
@@ -108,56 +108,17 @@ module WhopSDK
|
|
|
108
108
|
#
|
|
109
109
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
#
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
# Input for an attachment
|
|
119
|
-
variant -> { WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID }
|
|
120
|
-
|
|
121
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
122
|
-
# @!attribute direct_upload_id
|
|
123
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
124
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
125
|
-
# mediaDirectUpload mutation.
|
|
126
|
-
#
|
|
127
|
-
# @return [String]
|
|
128
|
-
required :direct_upload_id, String
|
|
129
|
-
|
|
130
|
-
# @!method initialize(direct_upload_id:)
|
|
131
|
-
# Some parameter documentations has been truncated, see
|
|
132
|
-
# {WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID}
|
|
133
|
-
# for more details.
|
|
134
|
-
#
|
|
135
|
-
# Input for an attachment
|
|
136
|
-
#
|
|
137
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
141
|
-
# @!attribute id
|
|
142
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
143
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
144
|
-
# doing.
|
|
145
|
-
#
|
|
146
|
-
# @return [String]
|
|
147
|
-
required :id, String
|
|
148
|
-
|
|
149
|
-
# @!method initialize(id:)
|
|
150
|
-
# Some parameter documentations has been truncated, see
|
|
151
|
-
# {WhopSDK::Models::ForumPostCreateParams::Attachment::AttachmentInputWithID} for
|
|
152
|
-
# more details.
|
|
153
|
-
#
|
|
154
|
-
# Input for an attachment
|
|
155
|
-
#
|
|
156
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
157
|
-
end
|
|
111
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
112
|
+
# @!attribute id
|
|
113
|
+
# The ID of an existing file object.
|
|
114
|
+
#
|
|
115
|
+
# @return [String]
|
|
116
|
+
required :id, String
|
|
158
117
|
|
|
159
|
-
# @!method
|
|
160
|
-
#
|
|
118
|
+
# @!method initialize(id:)
|
|
119
|
+
# Input for an attachment
|
|
120
|
+
#
|
|
121
|
+
# @param id [String] The ID of an existing file object.
|
|
161
122
|
end
|
|
162
123
|
|
|
163
124
|
class Poll < WhopSDK::Internal::Type::BaseModel
|
|
@@ -10,9 +10,9 @@ module WhopSDK
|
|
|
10
10
|
# @!attribute attachments
|
|
11
11
|
# The attachments for this post
|
|
12
12
|
#
|
|
13
|
-
# @return [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment
|
|
13
|
+
# @return [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment>, nil]
|
|
14
14
|
optional :attachments,
|
|
15
|
-
-> { WhopSDK::Internal::Type::ArrayOf[
|
|
15
|
+
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::ForumPostUpdateParams::Attachment] },
|
|
16
16
|
nil?: true
|
|
17
17
|
|
|
18
18
|
# @!attribute content
|
|
@@ -44,7 +44,7 @@ module WhopSDK
|
|
|
44
44
|
# Some parameter documentations has been truncated, see
|
|
45
45
|
# {WhopSDK::Models::ForumPostUpdateParams} for more details.
|
|
46
46
|
#
|
|
47
|
-
# @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment
|
|
47
|
+
# @param attachments [Array<WhopSDK::Models::ForumPostUpdateParams::Attachment>, nil] The attachments for this post
|
|
48
48
|
#
|
|
49
49
|
# @param content [String, nil] This is the main body of the post in Markdown format. Hidden if paywalled and us
|
|
50
50
|
#
|
|
@@ -56,56 +56,17 @@ module WhopSDK
|
|
|
56
56
|
#
|
|
57
57
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
60
|
+
# @!attribute id
|
|
61
|
+
# The ID of an existing file object.
|
|
62
|
+
#
|
|
63
|
+
# @return [String]
|
|
64
|
+
required :id, String
|
|
62
65
|
|
|
63
|
-
#
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
#
|
|
67
|
-
variant -> { WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID }
|
|
68
|
-
|
|
69
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
70
|
-
# @!attribute direct_upload_id
|
|
71
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
72
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
73
|
-
# mediaDirectUpload mutation.
|
|
74
|
-
#
|
|
75
|
-
# @return [String]
|
|
76
|
-
required :direct_upload_id, String
|
|
77
|
-
|
|
78
|
-
# @!method initialize(direct_upload_id:)
|
|
79
|
-
# Some parameter documentations has been truncated, see
|
|
80
|
-
# {WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID}
|
|
81
|
-
# for more details.
|
|
82
|
-
#
|
|
83
|
-
# Input for an attachment
|
|
84
|
-
#
|
|
85
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
89
|
-
# @!attribute id
|
|
90
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
91
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
92
|
-
# doing.
|
|
93
|
-
#
|
|
94
|
-
# @return [String]
|
|
95
|
-
required :id, String
|
|
96
|
-
|
|
97
|
-
# @!method initialize(id:)
|
|
98
|
-
# Some parameter documentations has been truncated, see
|
|
99
|
-
# {WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID} for
|
|
100
|
-
# more details.
|
|
101
|
-
#
|
|
102
|
-
# Input for an attachment
|
|
103
|
-
#
|
|
104
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
# @!method self.variants
|
|
108
|
-
# @return [Array(WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::ForumPostUpdateParams::Attachment::AttachmentInputWithID)]
|
|
66
|
+
# @!method initialize(id:)
|
|
67
|
+
# Input for an attachment
|
|
68
|
+
#
|
|
69
|
+
# @param id [String] The ID of an existing file object.
|
|
109
70
|
end
|
|
110
71
|
end
|
|
111
72
|
end
|
|
@@ -6,22 +6,34 @@ module WhopSDK
|
|
|
6
6
|
module FriendlyReceiptStatus
|
|
7
7
|
extend WhopSDK::Internal::Type::Enum
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
SUCCEEDED = :succeeded
|
|
10
|
+
PENDING = :pending
|
|
11
|
+
FAILED = :failed
|
|
12
|
+
PAST_DUE = :past_due
|
|
13
|
+
CANCELED = :canceled
|
|
14
|
+
PRICE_TOO_LOW = :price_too_low
|
|
15
|
+
UNCOLLECTIBLE = :uncollectible
|
|
10
16
|
REFUNDED = :refunded
|
|
17
|
+
AUTO_REFUNDED = :auto_refunded
|
|
11
18
|
PARTIALLY_REFUNDED = :partially_refunded
|
|
12
19
|
DISPUTE_WARNING = :dispute_warning
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
DISPUTE_NEEDS_RESPONSE = :dispute_needs_response
|
|
21
|
+
DISPUTE_WARNING_NEEDS_RESPONSE = :dispute_warning_needs_response
|
|
22
|
+
RESOLUTION_NEEDS_RESPONSE = :resolution_needs_response
|
|
23
|
+
DISPUTE_UNDER_REVIEW = :dispute_under_review
|
|
24
|
+
DISPUTE_WARNING_UNDER_REVIEW = :dispute_warning_under_review
|
|
25
|
+
RESOLUTION_UNDER_REVIEW = :resolution_under_review
|
|
26
|
+
DISPUTE_WON = :dispute_won
|
|
27
|
+
DISPUTE_WARNING_CLOSED = :dispute_warning_closed
|
|
28
|
+
RESOLUTION_WON = :resolution_won
|
|
29
|
+
DISPUTE_LOST = :dispute_lost
|
|
30
|
+
DISPUTE_CLOSED = :dispute_closed
|
|
31
|
+
RESOLUTION_LOST = :resolution_lost
|
|
18
32
|
DRAFTED = :drafted
|
|
19
|
-
UNCOLLECTIBLE = :uncollectible
|
|
20
|
-
UNRESOLVED = :unresolved
|
|
21
|
-
PAST_DUE = :past_due
|
|
22
|
-
PENDING = :pending
|
|
23
33
|
INCOMPLETE = :incomplete
|
|
24
|
-
|
|
34
|
+
UNRESOLVED = :unresolved
|
|
35
|
+
OPEN_DISPUTE = :open_dispute
|
|
36
|
+
OPEN_RESOLUTION = :open_resolution
|
|
25
37
|
|
|
26
38
|
# @!method self.values
|
|
27
39
|
# @return [Array<Symbol>]
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"invoice.created"]
|
|
34
34
|
required :type, const: :"invoice.created"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"invoice.created")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Invoice] A statement that defines an amount due by a customer.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"invoice.created"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"invoice.paid"]
|
|
34
34
|
required :type, const: :"invoice.paid"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"invoice.paid")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Invoice] A statement that defines an amount due by a customer.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"invoice.paid"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"invoice.past_due"]
|
|
34
34
|
required :type, const: :"invoice.past_due"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"invoice.past_due")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Invoice] A statement that defines an amount due by a customer.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"invoice.past_due"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"invoice.voided"]
|
|
34
34
|
required :type, const: :"invoice.voided"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"invoice.voided")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Invoice] A statement that defines an amount due by a customer.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"invoice.voided"] The webhook event type
|
|
@@ -17,14 +17,6 @@ module WhopSDK
|
|
|
17
17
|
required :balances,
|
|
18
18
|
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Models::LedgerAccountRetrieveResponse::Balance] }
|
|
19
19
|
|
|
20
|
-
# @!attribute ledger_account_audit_status
|
|
21
|
-
# The different statuses a LedgerAccountAudit can be
|
|
22
|
-
#
|
|
23
|
-
# @return [Symbol, WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus, nil]
|
|
24
|
-
required :ledger_account_audit_status,
|
|
25
|
-
enum: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus },
|
|
26
|
-
nil?: true
|
|
27
|
-
|
|
28
20
|
# @!attribute ledger_type
|
|
29
21
|
# The type of ledger account.
|
|
30
22
|
#
|
|
@@ -59,15 +51,13 @@ module WhopSDK
|
|
|
59
51
|
# @return [Float, nil]
|
|
60
52
|
required :transfer_fee, Float, nil?: true
|
|
61
53
|
|
|
62
|
-
# @!method initialize(id:, balances:,
|
|
54
|
+
# @!method initialize(id:, balances:, ledger_type:, owner:, payments_approval_status:, payout_account_details:, transfer_fee:)
|
|
63
55
|
# Represents a LedgerAccount.
|
|
64
56
|
#
|
|
65
57
|
# @param id [String] The ID of the LedgerAccount.
|
|
66
58
|
#
|
|
67
59
|
# @param balances [Array<WhopSDK::Models::LedgerAccountRetrieveResponse::Balance>] The balances associated with the account.
|
|
68
60
|
#
|
|
69
|
-
# @param ledger_account_audit_status [Symbol, WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus, nil] The different statuses a LedgerAccountAudit can be
|
|
70
|
-
#
|
|
71
61
|
# @param ledger_type [Symbol, WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerType] The type of ledger account.
|
|
72
62
|
#
|
|
73
63
|
# @param owner [WhopSDK::Models::LedgerAccountRetrieveResponse::Owner::User, WhopSDK::Models::LedgerAccountRetrieveResponse::Owner::Company, nil] The owner of the ledger account.
|
|
@@ -115,29 +105,6 @@ module WhopSDK
|
|
|
115
105
|
# @param reserve_balance [Float] The amount of the balance that is reserved.
|
|
116
106
|
end
|
|
117
107
|
|
|
118
|
-
# The different statuses a LedgerAccountAudit can be
|
|
119
|
-
#
|
|
120
|
-
# @see WhopSDK::Models::LedgerAccountRetrieveResponse#ledger_account_audit_status
|
|
121
|
-
module LedgerAccountAuditStatus
|
|
122
|
-
extend WhopSDK::Internal::Type::Enum
|
|
123
|
-
|
|
124
|
-
PENDING = :pending
|
|
125
|
-
PENDING_AI_REVIEW = :pending_ai_review
|
|
126
|
-
APPROVED = :approved
|
|
127
|
-
RESERVES_IMPOSED = :reserves_imposed
|
|
128
|
-
SUSPENDED = :suspended
|
|
129
|
-
IGNORED = :ignored
|
|
130
|
-
REJECTED = :rejected
|
|
131
|
-
REQUESTED_MORE_INFORMATION = :requested_more_information
|
|
132
|
-
INFORMATION_SUBMITTED = :information_submitted
|
|
133
|
-
REQUESTED_TOS_VIOLATION_CORRECTION = :requested_tos_violation_correction
|
|
134
|
-
CLAWBACK_ATTEMPTED = :clawback_attempted
|
|
135
|
-
AWAITING_SALES_REVIEW = :awaiting_sales_review
|
|
136
|
-
|
|
137
|
-
# @!method self.values
|
|
138
|
-
# @return [Array<Symbol>]
|
|
139
|
-
end
|
|
140
|
-
|
|
141
108
|
# The type of ledger account.
|
|
142
109
|
#
|
|
143
110
|
# @see WhopSDK::Models::LedgerAccountRetrieveResponse#ledger_type
|
|
@@ -19,6 +19,12 @@ module WhopSDK
|
|
|
19
19
|
# @return [Symbol, WhopSDK::Models::AccessLevel]
|
|
20
20
|
required :access_level, enum: -> { WhopSDK::AccessLevel }
|
|
21
21
|
|
|
22
|
+
# @!attribute company_token_balance
|
|
23
|
+
# The member's token balance for this company
|
|
24
|
+
#
|
|
25
|
+
# @return [Float]
|
|
26
|
+
required :company_token_balance, Float
|
|
27
|
+
|
|
22
28
|
# @!attribute created_at
|
|
23
29
|
# When the member was created
|
|
24
30
|
#
|
|
@@ -73,7 +79,7 @@ module WhopSDK
|
|
|
73
79
|
# @return [WhopSDK::Models::MemberListResponse::User, nil]
|
|
74
80
|
required :user, -> { WhopSDK::Models::MemberListResponse::User }, nil?: true
|
|
75
81
|
|
|
76
|
-
# @!method initialize(id:, access_level:, created_at:, joined_at:, most_recent_action:, most_recent_action_at:, phone:, status:, updated_at:, usd_total_spent:, user:)
|
|
82
|
+
# @!method initialize(id:, access_level:, company_token_balance:, created_at:, joined_at:, most_recent_action:, most_recent_action_at:, phone:, status:, updated_at:, usd_total_spent:, user:)
|
|
77
83
|
# Some parameter documentations has been truncated, see
|
|
78
84
|
# {WhopSDK::Models::MemberListResponse} for more details.
|
|
79
85
|
#
|
|
@@ -85,6 +91,8 @@ module WhopSDK
|
|
|
85
91
|
#
|
|
86
92
|
# @param access_level [Symbol, WhopSDK::Models::AccessLevel] The access level of the product member. If its admin, the member is an authorize
|
|
87
93
|
#
|
|
94
|
+
# @param company_token_balance [Float] The member's token balance for this company
|
|
95
|
+
#
|
|
88
96
|
# @param created_at [Time] When the member was created
|
|
89
97
|
#
|
|
90
98
|
# @param joined_at [Time] When the member joined the company
|
|
@@ -25,6 +25,12 @@ module WhopSDK
|
|
|
25
25
|
# @return [WhopSDK::Models::MemberRetrieveResponse::Company]
|
|
26
26
|
required :company, -> { WhopSDK::Models::MemberRetrieveResponse::Company }
|
|
27
27
|
|
|
28
|
+
# @!attribute company_token_balance
|
|
29
|
+
# The member's token balance for this company
|
|
30
|
+
#
|
|
31
|
+
# @return [Float]
|
|
32
|
+
required :company_token_balance, Float
|
|
33
|
+
|
|
28
34
|
# @!attribute created_at
|
|
29
35
|
# When the member was created
|
|
30
36
|
#
|
|
@@ -79,7 +85,7 @@ module WhopSDK
|
|
|
79
85
|
# @return [WhopSDK::Models::MemberRetrieveResponse::User, nil]
|
|
80
86
|
required :user, -> { WhopSDK::Models::MemberRetrieveResponse::User }, nil?: true
|
|
81
87
|
|
|
82
|
-
# @!method initialize(id:, access_level:, company:, created_at:, joined_at:, most_recent_action:, most_recent_action_at:, phone:, status:, updated_at:, usd_total_spent:, user:)
|
|
88
|
+
# @!method initialize(id:, access_level:, company:, company_token_balance:, created_at:, joined_at:, most_recent_action:, most_recent_action_at:, phone:, status:, updated_at:, usd_total_spent:, user:)
|
|
83
89
|
# Some parameter documentations has been truncated, see
|
|
84
90
|
# {WhopSDK::Models::MemberRetrieveResponse} for more details.
|
|
85
91
|
#
|
|
@@ -93,6 +99,8 @@ module WhopSDK
|
|
|
93
99
|
#
|
|
94
100
|
# @param company [WhopSDK::Models::MemberRetrieveResponse::Company] The company for the member.
|
|
95
101
|
#
|
|
102
|
+
# @param company_token_balance [Float] The member's token balance for this company
|
|
103
|
+
#
|
|
96
104
|
# @param created_at [Time] When the member was created
|
|
97
105
|
#
|
|
98
106
|
# @param joined_at [Time] When the member joined the company
|