whop_sdk 0.0.23 → 0.0.25
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 +52 -0
- data/README.md +3 -3
- data/lib/whop_sdk/client.rb +12 -0
- data/lib/whop_sdk/models/ai_chat_create_params.rb +22 -0
- data/lib/whop_sdk/models/ai_chat_create_response.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_delete_params.rb +14 -0
- data/lib/whop_sdk/models/ai_chat_delete_response.rb +8 -0
- data/lib/whop_sdk/models/ai_chat_list_params.rb +46 -0
- data/lib/whop_sdk/models/ai_chat_list_response.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/ai_chat_retrieve_response.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_update_params.rb +22 -0
- data/lib/whop_sdk/models/ai_chat_update_response.rb +89 -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 +6 -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_token_transaction_create_params.rb +69 -0
- data/lib/whop_sdk/models/company_token_transaction_create_response.rb +180 -0
- data/lib/whop_sdk/models/company_token_transaction_list_params.rb +84 -0
- data/lib/whop_sdk/models/company_token_transaction_list_response.rb +180 -0
- data/lib/whop_sdk/models/company_token_transaction_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/company_token_transaction_retrieve_response.rb +180 -0
- 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_update_params.rb +53 -214
- data/lib/whop_sdk/models/course_update_params.rb +14 -61
- data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
- data/lib/whop_sdk/models/dm_member_create_params.rb +30 -0
- data/lib/whop_sdk/models/dm_member_create_response.rb +94 -0
- data/lib/whop_sdk/models/dm_member_delete_params.rb +14 -0
- data/lib/whop_sdk/models/dm_member_delete_response.rb +8 -0
- data/lib/whop_sdk/models/dm_member_list_params.rb +54 -0
- data/lib/whop_sdk/models/dm_member_list_response.rb +71 -0
- data/lib/whop_sdk/models/dm_member_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_member_retrieve_response.rb +94 -0
- data/lib/whop_sdk/models/dm_member_update_params.rb +58 -0
- data/lib/whop_sdk/models/dm_member_update_response.rb +94 -0
- 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/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/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_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 +22 -53
- data/lib/whop_sdk/models/message_delete_params.rb +14 -0
- data/lib/whop_sdk/models/message_delete_response.rb +8 -0
- 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_list_response.rb +17 -1
- data/lib/whop_sdk/models/payment_method_types.rb +59 -57
- data/lib/whop_sdk/models/payment_provider.rb +1 -0
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +26 -1
- 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 +14 -53
- data/lib/whop_sdk/models/plan_update_params.rb +14 -53
- data/lib/whop_sdk/models/reaction_create_params.rb +10 -1
- data/lib/whop_sdk/models/reaction_delete_params.rb +22 -0
- data/lib/whop_sdk/models/reaction_delete_response.rb +8 -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 +2 -9
- 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 +2 -9
- data/lib/whop_sdk/models.rb +32 -2
- data/lib/whop_sdk/resources/ai_chats.rb +141 -0
- 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/company_token_transactions.rb +121 -0
- 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/dm_members.rb +155 -0
- data/lib/whop_sdk/resources/experiences.rb +4 -2
- 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 +29 -3
- data/lib/whop_sdk/resources/notifications.rb +4 -0
- data/lib/whop_sdk/resources/plans.rb +2 -2
- data/lib/whop_sdk/resources/reactions.rb +34 -1
- data/lib/whop_sdk/resources/withdrawals.rb +8 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +34 -1
- data/rbi/whop_sdk/client.rbi +9 -0
- data/rbi/whop_sdk/models/ai_chat_create_params.rbi +40 -0
- data/rbi/whop_sdk/models/ai_chat_create_response.rbi +128 -0
- data/rbi/whop_sdk/models/ai_chat_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/ai_chat_delete_response.rbi +7 -0
- data/rbi/whop_sdk/models/ai_chat_list_params.rbi +67 -0
- data/rbi/whop_sdk/models/ai_chat_list_response.rbi +125 -0
- data/rbi/whop_sdk/models/ai_chat_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/ai_chat_retrieve_response.rbi +128 -0
- data/rbi/whop_sdk/models/ai_chat_update_params.rbi +40 -0
- data/rbi/whop_sdk/models/ai_chat_update_response.rbi +128 -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 +12 -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_token_transaction_create_params.rbi +92 -0
- data/rbi/whop_sdk/models/company_token_transaction_create_response.rbi +308 -0
- data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +146 -0
- data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +308 -0
- data/rbi/whop_sdk/models/company_token_transaction_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/company_token_transaction_retrieve_response.rbi +312 -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_update_params.rbi +97 -359
- data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
- data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
- data/rbi/whop_sdk/models/dm_member_create_params.rbi +51 -0
- data/rbi/whop_sdk/models/dm_member_create_response.rbi +179 -0
- data/rbi/whop_sdk/models/dm_member_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_member_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/dm_member_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/dm_member_list_response.rbi +124 -0
- data/rbi/whop_sdk/models/dm_member_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_member_retrieve_response.rbi +179 -0
- data/rbi/whop_sdk/models/dm_member_update_params.rbi +130 -0
- data/rbi/whop_sdk/models/dm_member_update_response.rbi +179 -0
- 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/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/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_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 +26 -94
- data/rbi/whop_sdk/models/message_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/message_delete_response.rbi +8 -0
- 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_list_response.rbi +16 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +67 -64
- data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +26 -0
- 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 +21 -93
- data/rbi/whop_sdk/models/plan_update_params.rbi +21 -93
- data/rbi/whop_sdk/models/reaction_create_params.rbi +10 -0
- data/rbi/whop_sdk/models/reaction_delete_params.rbi +40 -0
- data/rbi/whop_sdk/models/reaction_delete_response.rbi +8 -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 +8 -11
- 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 +8 -11
- data/rbi/whop_sdk/models.rbi +35 -2
- data/rbi/whop_sdk/resources/ai_chats.rbi +108 -0
- 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/company_token_transactions.rbi +114 -0
- 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/dm_members.rbi +128 -0
- data/rbi/whop_sdk/resources/experiences.rbi +4 -7
- 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 +23 -12
- data/rbi/whop_sdk/resources/notifications.rbi +4 -0
- data/rbi/whop_sdk/resources/plans.rbi +2 -14
- data/rbi/whop_sdk/resources/reactions.rbi +26 -0
- data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
- data/sig/whop_sdk/client.rbs +6 -0
- data/sig/whop_sdk/models/ai_chat_create_params.rbs +23 -0
- data/sig/whop_sdk/models/ai_chat_create_response.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/ai_chat_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/ai_chat_list_params.rbs +36 -0
- data/sig/whop_sdk/models/ai_chat_list_response.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/ai_chat_retrieve_response.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_update_params.rbs +23 -0
- data/sig/whop_sdk/models/ai_chat_update_response.rbs +65 -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 +13 -1
- 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_token_transaction_create_params.rbs +56 -0
- data/sig/whop_sdk/models/company_token_transaction_create_response.rbs +115 -0
- data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +68 -0
- data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +115 -0
- data/sig/whop_sdk/models/company_token_transaction_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/company_token_transaction_retrieve_response.rbs +115 -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_update_params.rbs +36 -120
- data/sig/whop_sdk/models/course_update_params.rbs +9 -35
- data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
- data/sig/whop_sdk/models/dm_member_create_params.rbs +28 -0
- data/sig/whop_sdk/models/dm_member_create_response.rbs +71 -0
- data/sig/whop_sdk/models/dm_member_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_member_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/dm_member_list_params.rbs +46 -0
- data/sig/whop_sdk/models/dm_member_list_response.rbs +54 -0
- data/sig/whop_sdk/models/dm_member_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_member_retrieve_response.rbs +71 -0
- data/sig/whop_sdk/models/dm_member_update_params.rbs +57 -0
- data/sig/whop_sdk/models/dm_member_update_response.rbs +71 -0
- 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/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/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_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 +15 -31
- data/sig/whop_sdk/models/message_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/message_delete_response.rbs +5 -0
- 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_list_response.rbs +10 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +119 -115
- data/sig/whop_sdk/models/payment_provider.rbs +2 -0
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +15 -0
- 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 +9 -30
- data/sig/whop_sdk/models/plan_update_params.rbs +9 -30
- data/sig/whop_sdk/models/reaction_create_params.rbs +5 -1
- data/sig/whop_sdk/models/reaction_delete_params.rbs +23 -0
- data/sig/whop_sdk/models/reaction_delete_response.rbs +5 -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 +5 -8
- 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 +5 -8
- data/sig/whop_sdk/models.rbs +32 -2
- data/sig/whop_sdk/resources/ai_chats.rbs +33 -0
- 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/company_token_transactions.rbs +34 -0
- 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/dm_members.rbs +36 -0
- data/sig/whop_sdk/resources/experiences.rbs +2 -1
- 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 +5 -2
- data/sig/whop_sdk/resources/plans.rbs +2 -2
- data/sig/whop_sdk/resources/reactions.rbs +7 -0
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
- metadata +118 -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,94 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#retrieve
|
|
6
|
+
class DmMemberRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The unique identifier for the entity
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute channel_id
|
|
14
|
+
# The ID of the DM channel
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :channel_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute last_viewed_at
|
|
20
|
+
# Timestamp when the member last viewed the channel (in milliseconds since Unix
|
|
21
|
+
# epoch)
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
required :last_viewed_at, String, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute notification_preference
|
|
27
|
+
# The notification preference for this member (all, mentions, none)
|
|
28
|
+
#
|
|
29
|
+
# @return [Symbol, WhopSDK::Models::DmMemberRetrieveResponse::NotificationPreference]
|
|
30
|
+
required :notification_preference,
|
|
31
|
+
enum: -> { WhopSDK::Models::DmMemberRetrieveResponse::NotificationPreference }
|
|
32
|
+
|
|
33
|
+
# @!attribute status
|
|
34
|
+
# The status of the membership (requested, accepted, rejected)
|
|
35
|
+
#
|
|
36
|
+
# @return [Symbol, WhopSDK::Models::DmMemberRetrieveResponse::Status]
|
|
37
|
+
required :status, enum: -> { WhopSDK::Models::DmMemberRetrieveResponse::Status }
|
|
38
|
+
|
|
39
|
+
# @!attribute user_id
|
|
40
|
+
# The ID of the user who is a member of the channel
|
|
41
|
+
#
|
|
42
|
+
# @return [String]
|
|
43
|
+
required :user_id, String
|
|
44
|
+
|
|
45
|
+
# @!method initialize(id:, channel_id:, last_viewed_at:, notification_preference:, status:, user_id:)
|
|
46
|
+
# Some parameter documentations has been truncated, see
|
|
47
|
+
# {WhopSDK::Models::DmMemberRetrieveResponse} for more details.
|
|
48
|
+
#
|
|
49
|
+
# Represents a member of a DM channel
|
|
50
|
+
#
|
|
51
|
+
# @param id [String] The unique identifier for the entity
|
|
52
|
+
#
|
|
53
|
+
# @param channel_id [String] The ID of the DM channel
|
|
54
|
+
#
|
|
55
|
+
# @param last_viewed_at [String, nil] Timestamp when the member last viewed the channel (in milliseconds since Unix ep
|
|
56
|
+
#
|
|
57
|
+
# @param notification_preference [Symbol, WhopSDK::Models::DmMemberRetrieveResponse::NotificationPreference] The notification preference for this member (all, mentions, none)
|
|
58
|
+
#
|
|
59
|
+
# @param status [Symbol, WhopSDK::Models::DmMemberRetrieveResponse::Status] The status of the membership (requested, accepted, rejected)
|
|
60
|
+
#
|
|
61
|
+
# @param user_id [String] The ID of the user who is a member of the channel
|
|
62
|
+
|
|
63
|
+
# The notification preference for this member (all, mentions, none)
|
|
64
|
+
#
|
|
65
|
+
# @see WhopSDK::Models::DmMemberRetrieveResponse#notification_preference
|
|
66
|
+
module NotificationPreference
|
|
67
|
+
extend WhopSDK::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
ALL = :all
|
|
70
|
+
MENTIONS = :mentions
|
|
71
|
+
NONE = :none
|
|
72
|
+
|
|
73
|
+
# @!method self.values
|
|
74
|
+
# @return [Array<Symbol>]
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# The status of the membership (requested, accepted, rejected)
|
|
78
|
+
#
|
|
79
|
+
# @see WhopSDK::Models::DmMemberRetrieveResponse#status
|
|
80
|
+
module Status
|
|
81
|
+
extend WhopSDK::Internal::Type::Enum
|
|
82
|
+
|
|
83
|
+
REQUESTED = :requested
|
|
84
|
+
ACCEPTED = :accepted
|
|
85
|
+
HIDDEN = :hidden
|
|
86
|
+
CLOSED = :closed
|
|
87
|
+
ARCHIVED = :archived
|
|
88
|
+
|
|
89
|
+
# @!method self.values
|
|
90
|
+
# @return [Array<Symbol>]
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#update
|
|
6
|
+
class DmMemberUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute notification_preference
|
|
11
|
+
# The notification preferences for a DMs feed member
|
|
12
|
+
#
|
|
13
|
+
# @return [Symbol, WhopSDK::Models::DmMemberUpdateParams::NotificationPreference, nil]
|
|
14
|
+
optional :notification_preference,
|
|
15
|
+
enum: -> { WhopSDK::DmMemberUpdateParams::NotificationPreference },
|
|
16
|
+
nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute status
|
|
19
|
+
# The statuses of a DMs feed member
|
|
20
|
+
#
|
|
21
|
+
# @return [Symbol, WhopSDK::Models::DmMemberUpdateParams::Status, nil]
|
|
22
|
+
optional :status, enum: -> { WhopSDK::DmMemberUpdateParams::Status }, nil?: true
|
|
23
|
+
|
|
24
|
+
# @!method initialize(notification_preference: nil, status: nil, request_options: {})
|
|
25
|
+
# @param notification_preference [Symbol, WhopSDK::Models::DmMemberUpdateParams::NotificationPreference, nil] The notification preferences for a DMs feed member
|
|
26
|
+
#
|
|
27
|
+
# @param status [Symbol, WhopSDK::Models::DmMemberUpdateParams::Status, nil] The statuses of a DMs feed member
|
|
28
|
+
#
|
|
29
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
30
|
+
|
|
31
|
+
# The notification preferences for a DMs feed member
|
|
32
|
+
module NotificationPreference
|
|
33
|
+
extend WhopSDK::Internal::Type::Enum
|
|
34
|
+
|
|
35
|
+
ALL = :all
|
|
36
|
+
MENTIONS = :mentions
|
|
37
|
+
NONE = :none
|
|
38
|
+
|
|
39
|
+
# @!method self.values
|
|
40
|
+
# @return [Array<Symbol>]
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# The statuses of a DMs feed member
|
|
44
|
+
module Status
|
|
45
|
+
extend WhopSDK::Internal::Type::Enum
|
|
46
|
+
|
|
47
|
+
REQUESTED = :requested
|
|
48
|
+
ACCEPTED = :accepted
|
|
49
|
+
HIDDEN = :hidden
|
|
50
|
+
CLOSED = :closed
|
|
51
|
+
ARCHIVED = :archived
|
|
52
|
+
|
|
53
|
+
# @!method self.values
|
|
54
|
+
# @return [Array<Symbol>]
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#update
|
|
6
|
+
class DmMemberUpdateResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The unique identifier for the entity
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute channel_id
|
|
14
|
+
# The ID of the DM channel
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :channel_id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute last_viewed_at
|
|
20
|
+
# Timestamp when the member last viewed the channel (in milliseconds since Unix
|
|
21
|
+
# epoch)
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
required :last_viewed_at, String, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!attribute notification_preference
|
|
27
|
+
# The notification preference for this member (all, mentions, none)
|
|
28
|
+
#
|
|
29
|
+
# @return [Symbol, WhopSDK::Models::DmMemberUpdateResponse::NotificationPreference]
|
|
30
|
+
required :notification_preference,
|
|
31
|
+
enum: -> { WhopSDK::Models::DmMemberUpdateResponse::NotificationPreference }
|
|
32
|
+
|
|
33
|
+
# @!attribute status
|
|
34
|
+
# The status of the membership (requested, accepted, rejected)
|
|
35
|
+
#
|
|
36
|
+
# @return [Symbol, WhopSDK::Models::DmMemberUpdateResponse::Status]
|
|
37
|
+
required :status, enum: -> { WhopSDK::Models::DmMemberUpdateResponse::Status }
|
|
38
|
+
|
|
39
|
+
# @!attribute user_id
|
|
40
|
+
# The ID of the user who is a member of the channel
|
|
41
|
+
#
|
|
42
|
+
# @return [String]
|
|
43
|
+
required :user_id, String
|
|
44
|
+
|
|
45
|
+
# @!method initialize(id:, channel_id:, last_viewed_at:, notification_preference:, status:, user_id:)
|
|
46
|
+
# Some parameter documentations has been truncated, see
|
|
47
|
+
# {WhopSDK::Models::DmMemberUpdateResponse} for more details.
|
|
48
|
+
#
|
|
49
|
+
# Represents a member of a DM channel
|
|
50
|
+
#
|
|
51
|
+
# @param id [String] The unique identifier for the entity
|
|
52
|
+
#
|
|
53
|
+
# @param channel_id [String] The ID of the DM channel
|
|
54
|
+
#
|
|
55
|
+
# @param last_viewed_at [String, nil] Timestamp when the member last viewed the channel (in milliseconds since Unix ep
|
|
56
|
+
#
|
|
57
|
+
# @param notification_preference [Symbol, WhopSDK::Models::DmMemberUpdateResponse::NotificationPreference] The notification preference for this member (all, mentions, none)
|
|
58
|
+
#
|
|
59
|
+
# @param status [Symbol, WhopSDK::Models::DmMemberUpdateResponse::Status] The status of the membership (requested, accepted, rejected)
|
|
60
|
+
#
|
|
61
|
+
# @param user_id [String] The ID of the user who is a member of the channel
|
|
62
|
+
|
|
63
|
+
# The notification preference for this member (all, mentions, none)
|
|
64
|
+
#
|
|
65
|
+
# @see WhopSDK::Models::DmMemberUpdateResponse#notification_preference
|
|
66
|
+
module NotificationPreference
|
|
67
|
+
extend WhopSDK::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
ALL = :all
|
|
70
|
+
MENTIONS = :mentions
|
|
71
|
+
NONE = :none
|
|
72
|
+
|
|
73
|
+
# @!method self.values
|
|
74
|
+
# @return [Array<Symbol>]
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# The status of the membership (requested, accepted, rejected)
|
|
78
|
+
#
|
|
79
|
+
# @see WhopSDK::Models::DmMemberUpdateResponse#status
|
|
80
|
+
module Status
|
|
81
|
+
extend WhopSDK::Internal::Type::Enum
|
|
82
|
+
|
|
83
|
+
REQUESTED = :requested
|
|
84
|
+
ACCEPTED = :accepted
|
|
85
|
+
HIDDEN = :hidden
|
|
86
|
+
CLOSED = :closed
|
|
87
|
+
ARCHIVED = :archived
|
|
88
|
+
|
|
89
|
+
# @!method self.values
|
|
90
|
+
# @return [Array<Symbol>]
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -25,6 +25,12 @@ module WhopSDK
|
|
|
25
25
|
# @return [Boolean, nil]
|
|
26
26
|
optional :is_public, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
27
27
|
|
|
28
|
+
# @!attribute logo
|
|
29
|
+
# The logo for the experience
|
|
30
|
+
#
|
|
31
|
+
# @return [WhopSDK::Models::ExperienceCreateParams::Logo, nil]
|
|
32
|
+
optional :logo, -> { WhopSDK::ExperienceCreateParams::Logo }, nil?: true
|
|
33
|
+
|
|
28
34
|
# @!attribute name
|
|
29
35
|
# The name of the experience
|
|
30
36
|
#
|
|
@@ -37,18 +43,33 @@ module WhopSDK
|
|
|
37
43
|
# @return [String, nil]
|
|
38
44
|
optional :section_id, String, nil?: true
|
|
39
45
|
|
|
40
|
-
# @!method initialize(app_id:, company_id:, is_public: nil, name: nil, section_id: nil, request_options: {})
|
|
46
|
+
# @!method initialize(app_id:, company_id:, is_public: nil, logo: nil, name: nil, section_id: nil, request_options: {})
|
|
41
47
|
# @param app_id [String] The ID of the app to create the experience for
|
|
42
48
|
#
|
|
43
49
|
# @param company_id [String] The ID of the company to create the experience for
|
|
44
50
|
#
|
|
45
51
|
# @param is_public [Boolean, nil] Whether the experience is publicly accessible
|
|
46
52
|
#
|
|
53
|
+
# @param logo [WhopSDK::Models::ExperienceCreateParams::Logo, nil] The logo for the experience
|
|
54
|
+
#
|
|
47
55
|
# @param name [String, nil] The name of the experience
|
|
48
56
|
#
|
|
49
57
|
# @param section_id [String, nil] The ID of the section to create the experience in
|
|
50
58
|
#
|
|
51
59
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
60
|
+
|
|
61
|
+
class Logo < WhopSDK::Internal::Type::BaseModel
|
|
62
|
+
# @!attribute id
|
|
63
|
+
# The ID of an existing file object.
|
|
64
|
+
#
|
|
65
|
+
# @return [String]
|
|
66
|
+
required :id, String
|
|
67
|
+
|
|
68
|
+
# @!method initialize(id:)
|
|
69
|
+
# The logo for the experience
|
|
70
|
+
#
|
|
71
|
+
# @param id [String] The ID of an existing file object.
|
|
72
|
+
end
|
|
52
73
|
end
|
|
53
74
|
end
|
|
54
75
|
end
|
|
@@ -22,8 +22,8 @@ module WhopSDK
|
|
|
22
22
|
# @!attribute logo
|
|
23
23
|
# The logo for the experience
|
|
24
24
|
#
|
|
25
|
-
# @return [WhopSDK::Models::ExperienceUpdateParams::Logo
|
|
26
|
-
optional :logo,
|
|
25
|
+
# @return [WhopSDK::Models::ExperienceUpdateParams::Logo, nil]
|
|
26
|
+
optional :logo, -> { WhopSDK::ExperienceUpdateParams::Logo }, nil?: true
|
|
27
27
|
|
|
28
28
|
# @!attribute name
|
|
29
29
|
# The name of the experience.
|
|
@@ -48,7 +48,7 @@ module WhopSDK
|
|
|
48
48
|
#
|
|
49
49
|
# @param is_public [Boolean, nil] Whether the experience is publicly accessible.
|
|
50
50
|
#
|
|
51
|
-
# @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo
|
|
51
|
+
# @param logo [WhopSDK::Models::ExperienceUpdateParams::Logo, nil] The logo for the experience
|
|
52
52
|
#
|
|
53
53
|
# @param name [String, nil] The name of the experience.
|
|
54
54
|
#
|
|
@@ -69,56 +69,17 @@ module WhopSDK
|
|
|
69
69
|
# @return [Array<Symbol>]
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
#
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
#
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
# @!attribute direct_upload_id
|
|
84
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
85
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
86
|
-
# mediaDirectUpload mutation.
|
|
87
|
-
#
|
|
88
|
-
# @return [String]
|
|
89
|
-
required :direct_upload_id, String
|
|
90
|
-
|
|
91
|
-
# @!method initialize(direct_upload_id:)
|
|
92
|
-
# Some parameter documentations has been truncated, see
|
|
93
|
-
# {WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID}
|
|
94
|
-
# for more details.
|
|
95
|
-
#
|
|
96
|
-
# Input for an attachment
|
|
97
|
-
#
|
|
98
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
102
|
-
# @!attribute id
|
|
103
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
104
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
105
|
-
# doing.
|
|
106
|
-
#
|
|
107
|
-
# @return [String]
|
|
108
|
-
required :id, String
|
|
109
|
-
|
|
110
|
-
# @!method initialize(id:)
|
|
111
|
-
# Some parameter documentations has been truncated, see
|
|
112
|
-
# {WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID} for more
|
|
113
|
-
# details.
|
|
114
|
-
#
|
|
115
|
-
# Input for an attachment
|
|
116
|
-
#
|
|
117
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
# @!method self.variants
|
|
121
|
-
# @return [Array(WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::ExperienceUpdateParams::Logo::AttachmentInputWithID)]
|
|
72
|
+
class Logo < WhopSDK::Internal::Type::BaseModel
|
|
73
|
+
# @!attribute id
|
|
74
|
+
# The ID of an existing file object.
|
|
75
|
+
#
|
|
76
|
+
# @return [String]
|
|
77
|
+
required :id, String
|
|
78
|
+
|
|
79
|
+
# @!method initialize(id:)
|
|
80
|
+
# The logo for the experience
|
|
81
|
+
#
|
|
82
|
+
# @param id [String] The ID of an existing file object.
|
|
122
83
|
end
|
|
123
84
|
end
|
|
124
85
|
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>]
|
|
@@ -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
|