whop_sdk 0.0.24 → 0.0.26
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 +32 -0
- data/README.md +3 -3
- data/lib/whop_sdk/client.rb +16 -0
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/whop_sdk/models/ai_chat.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_create_params.rb +22 -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_update_params.rb +22 -0
- data/lib/whop_sdk/models/api_version.rb +17 -0
- data/lib/whop_sdk/models/app_list_params.rb +1 -0
- data/lib/whop_sdk/models/authorized_user_list_params.rb +9 -9
- data/lib/whop_sdk/models/authorized_user_list_response.rb +31 -1
- data/lib/whop_sdk/models/authorized_user_retrieve_response.rb +31 -1
- data/lib/whop_sdk/models/bot_token_transaction_types.rb +17 -0
- data/lib/whop_sdk/models/cancel_options.rb +22 -0
- data/lib/whop_sdk/models/company_token_transaction.rb +165 -0
- data/lib/whop_sdk/models/company_token_transaction_create_params.rb +69 -0
- data/lib/whop_sdk/models/company_token_transaction_list_params.rb +70 -0
- data/lib/whop_sdk/models/company_token_transaction_list_response.rb +165 -0
- data/lib/whop_sdk/models/company_token_transaction_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_channel.rb +43 -0
- data/lib/whop_sdk/models/dm_channel_create_params.rb +38 -0
- data/lib/whop_sdk/models/dm_channel_delete_params.rb +14 -0
- data/lib/whop_sdk/models/dm_channel_delete_response.rb +8 -0
- data/lib/whop_sdk/models/dm_channel_list_params.rb +54 -0
- data/lib/whop_sdk/models/dm_channel_list_response.rb +43 -0
- data/lib/whop_sdk/models/dm_channel_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_channel_update_params.rb +22 -0
- data/lib/whop_sdk/models/dm_feed_member_notification_preferences.rb +17 -0
- data/lib/whop_sdk/models/dm_feed_member_statuses.rb +19 -0
- data/lib/whop_sdk/models/dm_member.rb +63 -0
- data/lib/whop_sdk/models/dm_member_create_params.rb +30 -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 +55 -0
- data/lib/whop_sdk/models/dm_member_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_member_update_params.rb +30 -0
- data/lib/whop_sdk/models/file_create_response.rb +3 -18
- data/lib/whop_sdk/models/file_retrieve_response.rb +3 -18
- data/lib/whop_sdk/models/{lead_create_response.rb → lead.rb} +13 -13
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +6 -63
- data/lib/whop_sdk/models/member_list_params.rb +9 -9
- data/lib/whop_sdk/models/membership.rb +3 -22
- data/lib/whop_sdk/models/membership_list_params.rb +3 -20
- data/lib/whop_sdk/models/membership_list_response.rb +3 -22
- data/lib/whop_sdk/models/message_create_params.rb +9 -1
- 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/payment.rb +63 -1
- data/lib/whop_sdk/models/payment_list_response.rb +63 -1
- data/lib/whop_sdk/models/payment_method_types.rb +1 -0
- data/lib/whop_sdk/models/payout_destination_category.rb +20 -0
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +3 -20
- data/lib/whop_sdk/models/payout_method_list_response.rb +3 -20
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +3 -20
- 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/upload_status.rb +18 -0
- data/lib/whop_sdk/models/verification_error_code.rb +33 -0
- data/lib/whop_sdk/models/verification_retrieve_response.rb +6 -62
- data/lib/whop_sdk/models/verification_status.rb +27 -0
- data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +6 -62
- data/lib/whop_sdk/models/webhook.rb +88 -0
- data/lib/whop_sdk/models/webhook_create_params.rb +6 -56
- data/lib/whop_sdk/models/webhook_create_response.rb +9 -97
- data/lib/whop_sdk/models/webhook_event.rb +41 -0
- data/lib/whop_sdk/models/webhook_list_response.rb +6 -57
- data/lib/whop_sdk/models/webhook_update_params.rb +6 -56
- data/lib/whop_sdk/models/{withdrawal_create_response.rb → withdrawal.rb} +15 -15
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +3 -267
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +3 -267
- data/lib/whop_sdk/models.rb +74 -0
- data/lib/whop_sdk/resources/ai_chats.rb +141 -0
- data/lib/whop_sdk/resources/authorized_users.rb +4 -4
- data/lib/whop_sdk/resources/company_token_transactions.rb +121 -0
- data/lib/whop_sdk/resources/dm_channels.rb +151 -0
- data/lib/whop_sdk/resources/dm_members.rb +155 -0
- data/lib/whop_sdk/resources/leads.rb +6 -12
- data/lib/whop_sdk/resources/members.rb +4 -4
- data/lib/whop_sdk/resources/memberships.rb +1 -1
- data/lib/whop_sdk/resources/messages.rb +27 -1
- data/lib/whop_sdk/resources/reactions.rb +34 -1
- data/lib/whop_sdk/resources/webhooks.rb +8 -8
- data/lib/whop_sdk/resources/withdrawals.rb +4 -4
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +50 -7
- data/rbi/whop_sdk/client.rbi +12 -0
- data/rbi/whop_sdk/models/ai_chat.rbi +118 -0
- data/rbi/whop_sdk/models/ai_chat_create_params.rbi +40 -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_update_params.rbi +40 -0
- data/rbi/whop_sdk/models/api_version.rbi +21 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +2 -0
- data/rbi/whop_sdk/models/authorized_user_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/authorized_user_list_response.rbi +47 -0
- data/rbi/whop_sdk/models/authorized_user_retrieve_response.rbi +49 -0
- data/rbi/whop_sdk/models/bot_token_transaction_types.rbi +28 -0
- data/rbi/whop_sdk/models/cancel_options.rbi +30 -0
- data/rbi/whop_sdk/models/company_token_transaction.rbi +237 -0
- data/rbi/whop_sdk/models/company_token_transaction_create_params.rbi +92 -0
- data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +96 -0
- data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +262 -0
- data/rbi/whop_sdk/models/company_token_transaction_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/dm_channel.rbi +60 -0
- data/rbi/whop_sdk/models/dm_channel_create_params.rbi +59 -0
- data/rbi/whop_sdk/models/dm_channel_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_channel_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/dm_channel_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/dm_channel_list_response.rbi +65 -0
- data/rbi/whop_sdk/models/dm_channel_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_channel_update_params.rbi +43 -0
- data/rbi/whop_sdk/models/dm_feed_member_notification_preferences.rbi +34 -0
- data/rbi/whop_sdk/models/dm_feed_member_statuses.rbi +26 -0
- data/rbi/whop_sdk/models/dm_member.rbi +82 -0
- data/rbi/whop_sdk/models/dm_member_create_params.rbi +51 -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 +75 -0
- data/rbi/whop_sdk/models/dm_member_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_member_update_params.rbi +57 -0
- data/rbi/whop_sdk/models/file_create_response.rbi +3 -49
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -51
- data/rbi/whop_sdk/models/{lead_update_response.rbi → lead.rbi} +17 -42
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +6 -230
- data/rbi/whop_sdk/models/member_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/membership.rbi +3 -47
- data/rbi/whop_sdk/models/membership_list_params.rbi +3 -70
- data/rbi/whop_sdk/models/membership_list_response.rbi +3 -73
- data/rbi/whop_sdk/models/message_create_params.rbi +8 -0
- 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/payment.rbi +88 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +100 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
- data/rbi/whop_sdk/models/payout_destination_category.rbi +33 -0
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +3 -64
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +3 -64
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +3 -64
- 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/upload_status.rbi +22 -0
- data/rbi/whop_sdk/models/verification_error_code.rbi +101 -0
- data/rbi/whop_sdk/models/verification_retrieve_response.rbi +6 -230
- data/rbi/whop_sdk/models/verification_status.rbi +38 -0
- data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +6 -232
- data/rbi/whop_sdk/models/webhook.rbi +104 -0
- data/rbi/whop_sdk/models/webhook_create_params.rbi +6 -194
- data/rbi/whop_sdk/models/webhook_create_response.rbi +9 -386
- data/rbi/whop_sdk/models/webhook_event.rbi +79 -0
- data/rbi/whop_sdk/models/webhook_list_response.rbi +6 -210
- data/rbi/whop_sdk/models/webhook_update_params.rbi +6 -194
- data/rbi/whop_sdk/models/{withdrawal_create_response.rbi → withdrawal.rbi} +63 -127
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +4 -571
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +4 -571
- data/rbi/whop_sdk/models.rbi +78 -0
- data/rbi/whop_sdk/resources/ai_chats.rbi +108 -0
- data/rbi/whop_sdk/resources/authorized_users.rbi +3 -3
- data/rbi/whop_sdk/resources/company_token_transactions.rbi +112 -0
- data/rbi/whop_sdk/resources/dm_channels.rbi +121 -0
- data/rbi/whop_sdk/resources/dm_members.rbi +126 -0
- data/rbi/whop_sdk/resources/leads.rbi +3 -3
- data/rbi/whop_sdk/resources/members.rbi +3 -3
- data/rbi/whop_sdk/resources/memberships.rbi +1 -4
- data/rbi/whop_sdk/resources/messages.rbi +21 -0
- data/rbi/whop_sdk/resources/reactions.rbi +26 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +6 -10
- data/rbi/whop_sdk/resources/withdrawals.rbi +2 -2
- data/sig/whop_sdk/client.rbs +8 -0
- data/sig/whop_sdk/models/ai_chat.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_create_params.rbs +23 -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_update_params.rbs +23 -0
- data/sig/whop_sdk/models/api_version.rbs +15 -0
- data/sig/whop_sdk/models/app_list_params.rbs +3 -1
- data/sig/whop_sdk/models/authorized_user_list_params.rbs +5 -5
- data/sig/whop_sdk/models/authorized_user_list_response.rbs +17 -0
- data/sig/whop_sdk/models/authorized_user_retrieve_response.rbs +17 -0
- data/sig/whop_sdk/models/bot_token_transaction_types.rbs +15 -0
- data/sig/whop_sdk/models/cancel_options.rbs +26 -0
- data/sig/whop_sdk/models/company_token_transaction.rbs +103 -0
- data/sig/whop_sdk/models/company_token_transaction_create_params.rbs +56 -0
- data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +56 -0
- data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +103 -0
- data/sig/whop_sdk/models/company_token_transaction_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_channel.rbs +30 -0
- data/sig/whop_sdk/models/dm_channel_create_params.rbs +36 -0
- data/sig/whop_sdk/models/dm_channel_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_channel_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/dm_channel_list_params.rbs +46 -0
- data/sig/whop_sdk/models/dm_channel_list_response.rbs +30 -0
- data/sig/whop_sdk/models/dm_channel_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_channel_update_params.rbs +23 -0
- data/sig/whop_sdk/models/dm_feed_member_notification_preferences.rbs +15 -0
- data/sig/whop_sdk/models/dm_feed_member_statuses.rbs +18 -0
- data/sig/whop_sdk/models/dm_member.rbs +45 -0
- data/sig/whop_sdk/models/dm_member_create_params.rbs +28 -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 +40 -0
- data/sig/whop_sdk/models/dm_member_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_member_update_params.rbs +31 -0
- data/sig/whop_sdk/models/file_create_response.rbs +4 -17
- data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -17
- data/sig/whop_sdk/models/{lead_create_response.rbs → lead.rbs} +14 -14
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +8 -90
- data/sig/whop_sdk/models/member_list_params.rbs +5 -5
- data/sig/whop_sdk/models/membership.rbs +4 -27
- data/sig/whop_sdk/models/membership_list_params.rbs +4 -27
- data/sig/whop_sdk/models/membership_list_response.rbs +4 -27
- data/sig/whop_sdk/models/message_create_params.rbs +6 -1
- 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/payment.rbs +47 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +47 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
- data/sig/whop_sdk/models/payout_destination_category.rbs +19 -0
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +4 -25
- data/sig/whop_sdk/models/payout_method_list_response.rbs +4 -25
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +4 -25
- 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/upload_status.rbs +16 -0
- data/sig/whop_sdk/models/verification_error_code.rbs +50 -0
- data/sig/whop_sdk/models/verification_retrieve_response.rbs +8 -90
- data/sig/whop_sdk/models/verification_status.rbs +38 -0
- data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +8 -90
- data/sig/whop_sdk/models/webhook.rbs +60 -0
- data/sig/whop_sdk/models/webhook_create_params.rbs +8 -83
- data/sig/whop_sdk/models/webhook_create_response.rbs +12 -150
- data/sig/whop_sdk/models/webhook_event.rbs +66 -0
- data/sig/whop_sdk/models/webhook_list_response.rbs +8 -83
- data/sig/whop_sdk/models/webhook_update_params.rbs +8 -83
- data/sig/whop_sdk/models/{withdrawal_create_response.rbs → withdrawal.rbs} +15 -15
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +4 -241
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +4 -241
- data/sig/whop_sdk/models.rbs +74 -0
- data/sig/whop_sdk/resources/ai_chats.rbs +33 -0
- data/sig/whop_sdk/resources/authorized_users.rbs +1 -1
- data/sig/whop_sdk/resources/company_token_transactions.rbs +34 -0
- data/sig/whop_sdk/resources/dm_channels.rbs +36 -0
- data/sig/whop_sdk/resources/dm_members.rbs +36 -0
- data/sig/whop_sdk/resources/leads.rbs +3 -3
- data/sig/whop_sdk/resources/members.rbs +1 -1
- data/sig/whop_sdk/resources/memberships.rbs +1 -1
- data/sig/whop_sdk/resources/messages.rbs +3 -0
- data/sig/whop_sdk/resources/reactions.rbs +7 -0
- data/sig/whop_sdk/resources/webhooks.rbs +6 -6
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -2
- metadata +152 -23
- data/lib/whop_sdk/models/lead_retrieve_response.rb +0 -149
- data/lib/whop_sdk/models/lead_update_response.rb +0 -149
- data/lib/whop_sdk/models/webhook_retrieve_response.rb +0 -176
- data/lib/whop_sdk/models/webhook_update_response.rb +0 -176
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +0 -268
- data/rbi/whop_sdk/models/lead_create_response.rbi +0 -234
- data/rbi/whop_sdk/models/lead_retrieve_response.rbi +0 -238
- data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +0 -491
- data/rbi/whop_sdk/models/webhook_update_response.rbi +0 -486
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +0 -568
- data/sig/whop_sdk/models/lead_retrieve_response.rbs +0 -104
- data/sig/whop_sdk/models/lead_update_response.rbs +0 -104
- data/sig/whop_sdk/models/webhook_retrieve_response.rbs +0 -198
- data/sig/whop_sdk/models/webhook_update_response.rbs +0 -198
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +0 -240
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmChannels#retrieve
|
|
6
|
+
class DmChannelRetrieveParams < 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,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmChannels#update
|
|
6
|
+
class DmChannelUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute custom_name
|
|
11
|
+
# The custom name for the DM channel
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :custom_name, String, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!method initialize(custom_name: nil, request_options: {})
|
|
17
|
+
# @param custom_name [String, nil] The custom name for the DM channel
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The notification preferences for a DMs feed member
|
|
6
|
+
module DmFeedMemberNotificationPreferences
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
ALL = :all
|
|
10
|
+
MENTIONS = :mentions
|
|
11
|
+
NONE = :none
|
|
12
|
+
|
|
13
|
+
# @!method self.values
|
|
14
|
+
# @return [Array<Symbol>]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The statuses of a DMs feed member
|
|
6
|
+
module DmFeedMemberStatuses
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
REQUESTED = :requested
|
|
10
|
+
ACCEPTED = :accepted
|
|
11
|
+
HIDDEN = :hidden
|
|
12
|
+
CLOSED = :closed
|
|
13
|
+
ARCHIVED = :archived
|
|
14
|
+
|
|
15
|
+
# @!method self.values
|
|
16
|
+
# @return [Array<Symbol>]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#create
|
|
6
|
+
class DmMember < 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::DmFeedMemberNotificationPreferences]
|
|
30
|
+
required :notification_preference, enum: -> { WhopSDK::DmFeedMemberNotificationPreferences }
|
|
31
|
+
|
|
32
|
+
# @!attribute status
|
|
33
|
+
# The status of the membership (requested, accepted, rejected)
|
|
34
|
+
#
|
|
35
|
+
# @return [Symbol, WhopSDK::Models::DmFeedMemberStatuses]
|
|
36
|
+
required :status, enum: -> { WhopSDK::DmFeedMemberStatuses }
|
|
37
|
+
|
|
38
|
+
# @!attribute user_id
|
|
39
|
+
# The ID of the user who is a member of the channel
|
|
40
|
+
#
|
|
41
|
+
# @return [String]
|
|
42
|
+
required :user_id, String
|
|
43
|
+
|
|
44
|
+
# @!method initialize(id:, channel_id:, last_viewed_at:, notification_preference:, status:, user_id:)
|
|
45
|
+
# Some parameter documentations has been truncated, see
|
|
46
|
+
# {WhopSDK::Models::DmMember} for more details.
|
|
47
|
+
#
|
|
48
|
+
# Represents a member of a DM channel
|
|
49
|
+
#
|
|
50
|
+
# @param id [String] The unique identifier for the entity
|
|
51
|
+
#
|
|
52
|
+
# @param channel_id [String] The ID of the DM channel
|
|
53
|
+
#
|
|
54
|
+
# @param last_viewed_at [String, nil] Timestamp when the member last viewed the channel (in milliseconds since Unix ep
|
|
55
|
+
#
|
|
56
|
+
# @param notification_preference [Symbol, WhopSDK::Models::DmFeedMemberNotificationPreferences] The notification preference for this member (all, mentions, none)
|
|
57
|
+
#
|
|
58
|
+
# @param status [Symbol, WhopSDK::Models::DmFeedMemberStatuses] The status of the membership (requested, accepted, rejected)
|
|
59
|
+
#
|
|
60
|
+
# @param user_id [String] The ID of the user who is a member of the channel
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#create
|
|
6
|
+
class DmMemberCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute channel_id
|
|
11
|
+
# The ID of the DM channel to add the member to
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :channel_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute user_id
|
|
17
|
+
# The ID of the user to add to the channel
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :user_id, String
|
|
21
|
+
|
|
22
|
+
# @!method initialize(channel_id:, user_id:, request_options: {})
|
|
23
|
+
# @param channel_id [String] The ID of the DM channel to add the member to
|
|
24
|
+
#
|
|
25
|
+
# @param user_id [String] The ID of the user to add to the channel
|
|
26
|
+
#
|
|
27
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#delete
|
|
6
|
+
class DmMemberDeleteParams < 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,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#list
|
|
6
|
+
class DmMemberListParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute channel_id
|
|
11
|
+
# The ID of the DM channel to list members for
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :channel_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute after
|
|
17
|
+
# Returns the elements in the list that come after the specified cursor.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :after, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute before
|
|
23
|
+
# Returns the elements in the list that come before the specified cursor.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :before, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute first
|
|
29
|
+
# Returns the first _n_ elements from the list.
|
|
30
|
+
#
|
|
31
|
+
# @return [Integer, nil]
|
|
32
|
+
optional :first, Integer, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute last
|
|
35
|
+
# Returns the last _n_ elements from the list.
|
|
36
|
+
#
|
|
37
|
+
# @return [Integer, nil]
|
|
38
|
+
optional :last, Integer, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!method initialize(channel_id:, after: nil, before: nil, first: nil, last: nil, request_options: {})
|
|
41
|
+
# @param channel_id [String] The ID of the DM channel to list members for
|
|
42
|
+
#
|
|
43
|
+
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
44
|
+
#
|
|
45
|
+
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
46
|
+
#
|
|
47
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
48
|
+
#
|
|
49
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
50
|
+
#
|
|
51
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#list
|
|
6
|
+
class DmMemberListResponse < 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 status
|
|
27
|
+
# The status of the membership (requested, accepted, rejected)
|
|
28
|
+
#
|
|
29
|
+
# @return [Symbol, WhopSDK::Models::DmFeedMemberStatuses]
|
|
30
|
+
required :status, enum: -> { WhopSDK::DmFeedMemberStatuses }
|
|
31
|
+
|
|
32
|
+
# @!attribute user_id
|
|
33
|
+
# The ID of the user who is a member of the channel
|
|
34
|
+
#
|
|
35
|
+
# @return [String]
|
|
36
|
+
required :user_id, String
|
|
37
|
+
|
|
38
|
+
# @!method initialize(id:, channel_id:, last_viewed_at:, status:, user_id:)
|
|
39
|
+
# Some parameter documentations has been truncated, see
|
|
40
|
+
# {WhopSDK::Models::DmMemberListResponse} for more details.
|
|
41
|
+
#
|
|
42
|
+
# Represents a member of a DM channel
|
|
43
|
+
#
|
|
44
|
+
# @param id [String] The unique identifier for the entity
|
|
45
|
+
#
|
|
46
|
+
# @param channel_id [String] The ID of the DM channel
|
|
47
|
+
#
|
|
48
|
+
# @param last_viewed_at [String, nil] Timestamp when the member last viewed the channel (in milliseconds since Unix ep
|
|
49
|
+
#
|
|
50
|
+
# @param status [Symbol, WhopSDK::Models::DmFeedMemberStatuses] The status of the membership (requested, accepted, rejected)
|
|
51
|
+
#
|
|
52
|
+
# @param user_id [String] The ID of the user who is a member of the channel
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::DmMembers#retrieve
|
|
6
|
+
class DmMemberRetrieveParams < 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,30 @@
|
|
|
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::DmFeedMemberNotificationPreferences, nil]
|
|
14
|
+
optional :notification_preference, enum: -> { WhopSDK::DmFeedMemberNotificationPreferences }, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!attribute status
|
|
17
|
+
# The statuses of a DMs feed member
|
|
18
|
+
#
|
|
19
|
+
# @return [Symbol, WhopSDK::Models::DmFeedMemberStatuses, nil]
|
|
20
|
+
optional :status, enum: -> { WhopSDK::DmFeedMemberStatuses }, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!method initialize(notification_preference: nil, status: nil, request_options: {})
|
|
23
|
+
# @param notification_preference [Symbol, WhopSDK::Models::DmFeedMemberNotificationPreferences, nil] The notification preferences for a DMs feed member
|
|
24
|
+
#
|
|
25
|
+
# @param status [Symbol, WhopSDK::Models::DmFeedMemberStatuses, nil] The statuses of a DMs feed member
|
|
26
|
+
#
|
|
27
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -37,8 +37,8 @@ module WhopSDK
|
|
|
37
37
|
# @!attribute upload_status
|
|
38
38
|
# The upload status of the file
|
|
39
39
|
#
|
|
40
|
-
# @return [Symbol, WhopSDK::Models::
|
|
41
|
-
required :upload_status, enum: -> { WhopSDK::
|
|
40
|
+
# @return [Symbol, WhopSDK::Models::UploadStatus]
|
|
41
|
+
required :upload_status, enum: -> { WhopSDK::UploadStatus }
|
|
42
42
|
|
|
43
43
|
# @!attribute upload_url
|
|
44
44
|
# The presigned URL to upload the file to (only on create)
|
|
@@ -65,26 +65,11 @@ module WhopSDK
|
|
|
65
65
|
#
|
|
66
66
|
# @param upload_headers [Hash{Symbol=>Object}, nil] Headers to include in the upload request (only on create)
|
|
67
67
|
#
|
|
68
|
-
# @param upload_status [Symbol, WhopSDK::Models::
|
|
68
|
+
# @param upload_status [Symbol, WhopSDK::Models::UploadStatus] The upload status of the file
|
|
69
69
|
#
|
|
70
70
|
# @param upload_url [String, nil] The presigned URL to upload the file to (only on create)
|
|
71
71
|
#
|
|
72
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
73
|
end
|
|
89
74
|
end
|
|
90
75
|
end
|
|
@@ -31,8 +31,8 @@ module WhopSDK
|
|
|
31
31
|
# @!attribute upload_status
|
|
32
32
|
# The upload status of the file
|
|
33
33
|
#
|
|
34
|
-
# @return [Symbol, WhopSDK::Models::
|
|
35
|
-
required :upload_status, enum: -> { WhopSDK::
|
|
34
|
+
# @return [Symbol, WhopSDK::Models::UploadStatus]
|
|
35
|
+
required :upload_status, enum: -> { WhopSDK::UploadStatus }
|
|
36
36
|
|
|
37
37
|
# @!attribute url
|
|
38
38
|
# The URL to access the file
|
|
@@ -51,24 +51,9 @@ module WhopSDK
|
|
|
51
51
|
#
|
|
52
52
|
# @param size [String, nil] The size of the file in bytes
|
|
53
53
|
#
|
|
54
|
-
# @param upload_status [Symbol, WhopSDK::Models::
|
|
54
|
+
# @param upload_status [Symbol, WhopSDK::Models::UploadStatus] The upload status of the file
|
|
55
55
|
#
|
|
56
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
57
|
end
|
|
73
58
|
end
|
|
74
59
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Models
|
|
5
5
|
# @see WhopSDK::Resources::Leads#create
|
|
6
|
-
class
|
|
6
|
+
class Lead < WhopSDK::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
8
|
# The ID of the lead.
|
|
9
9
|
#
|
|
@@ -19,8 +19,8 @@ module WhopSDK
|
|
|
19
19
|
# @!attribute member
|
|
20
20
|
# The converted member, if any.
|
|
21
21
|
#
|
|
22
|
-
# @return [WhopSDK::Models::
|
|
23
|
-
required :member, -> { WhopSDK::
|
|
22
|
+
# @return [WhopSDK::Models::Lead::Member, nil]
|
|
23
|
+
required :member, -> { WhopSDK::Lead::Member }, nil?: true
|
|
24
24
|
|
|
25
25
|
# @!attribute metadata
|
|
26
26
|
# Custom metadata for the lead.
|
|
@@ -31,8 +31,8 @@ module WhopSDK
|
|
|
31
31
|
# @!attribute product
|
|
32
32
|
# The access pass the lead is interested in, if available.
|
|
33
33
|
#
|
|
34
|
-
# @return [WhopSDK::Models::
|
|
35
|
-
required :product, -> { WhopSDK::
|
|
34
|
+
# @return [WhopSDK::Models::Lead::Product, nil]
|
|
35
|
+
required :product, -> { WhopSDK::Lead::Product }, nil?: true
|
|
36
36
|
|
|
37
37
|
# @!attribute referrer
|
|
38
38
|
# The referrer URL that brought this lead.
|
|
@@ -49,8 +49,8 @@ module WhopSDK
|
|
|
49
49
|
# @!attribute user
|
|
50
50
|
# The user who is the lead.
|
|
51
51
|
#
|
|
52
|
-
# @return [WhopSDK::Models::
|
|
53
|
-
required :user, -> { WhopSDK::
|
|
52
|
+
# @return [WhopSDK::Models::Lead::User]
|
|
53
|
+
required :user, -> { WhopSDK::Lead::User }
|
|
54
54
|
|
|
55
55
|
# @!method initialize(id:, created_at:, member:, metadata:, product:, referrer:, updated_at:, user:)
|
|
56
56
|
# An object representing a lead (someone who is interested in a whop).
|
|
@@ -59,19 +59,19 @@ module WhopSDK
|
|
|
59
59
|
#
|
|
60
60
|
# @param created_at [Time] The timestamp of when the lead was created.
|
|
61
61
|
#
|
|
62
|
-
# @param member [WhopSDK::Models::
|
|
62
|
+
# @param member [WhopSDK::Models::Lead::Member, nil] The converted member, if any.
|
|
63
63
|
#
|
|
64
64
|
# @param metadata [Hash{Symbol=>Object}, nil] Custom metadata for the lead.
|
|
65
65
|
#
|
|
66
|
-
# @param product [WhopSDK::Models::
|
|
66
|
+
# @param product [WhopSDK::Models::Lead::Product, nil] The access pass the lead is interested in, if available.
|
|
67
67
|
#
|
|
68
68
|
# @param referrer [String, nil] The referrer URL that brought this lead.
|
|
69
69
|
#
|
|
70
70
|
# @param updated_at [Time] The timestamp of when the lead was last updated.
|
|
71
71
|
#
|
|
72
|
-
# @param user [WhopSDK::Models::
|
|
72
|
+
# @param user [WhopSDK::Models::Lead::User] The user who is the lead.
|
|
73
73
|
|
|
74
|
-
# @see WhopSDK::Models::
|
|
74
|
+
# @see WhopSDK::Models::Lead#member
|
|
75
75
|
class Member < WhopSDK::Internal::Type::BaseModel
|
|
76
76
|
# @!attribute id
|
|
77
77
|
# The ID of the member
|
|
@@ -85,7 +85,7 @@ module WhopSDK
|
|
|
85
85
|
# @param id [String] The ID of the member
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
# @see WhopSDK::Models::
|
|
88
|
+
# @see WhopSDK::Models::Lead#product
|
|
89
89
|
class Product < WhopSDK::Internal::Type::BaseModel
|
|
90
90
|
# @!attribute id
|
|
91
91
|
# The internal ID of the public product.
|
|
@@ -107,7 +107,7 @@ module WhopSDK
|
|
|
107
107
|
# @param title [String] The title of the product. Use for Whop 4.0.
|
|
108
108
|
end
|
|
109
109
|
|
|
110
|
-
# @see WhopSDK::Models::
|
|
110
|
+
# @see WhopSDK::Models::Lead#user
|
|
111
111
|
class User < WhopSDK::Internal::Type::BaseModel
|
|
112
112
|
# @!attribute id
|
|
113
113
|
# The internal ID of the user.
|
|
@@ -400,10 +400,8 @@ module WhopSDK
|
|
|
400
400
|
# @!attribute last_error_code
|
|
401
401
|
# An error code for a verification attempt.
|
|
402
402
|
#
|
|
403
|
-
# @return [Symbol, WhopSDK::Models::
|
|
404
|
-
required :last_error_code,
|
|
405
|
-
enum: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::LastErrorCode },
|
|
406
|
-
nil?: true
|
|
403
|
+
# @return [Symbol, WhopSDK::Models::VerificationErrorCode, nil]
|
|
404
|
+
required :last_error_code, enum: -> { WhopSDK::VerificationErrorCode }, nil?: true
|
|
407
405
|
|
|
408
406
|
# @!attribute last_error_reason
|
|
409
407
|
# The last error reason that occurred during the verification.
|
|
@@ -414,74 +412,19 @@ module WhopSDK
|
|
|
414
412
|
# @!attribute status
|
|
415
413
|
# The status of the verification.
|
|
416
414
|
#
|
|
417
|
-
# @return [Symbol, WhopSDK::Models::
|
|
418
|
-
required :status,
|
|
419
|
-
enum: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification::Status }
|
|
415
|
+
# @return [Symbol, WhopSDK::Models::VerificationStatus]
|
|
416
|
+
required :status, enum: -> { WhopSDK::VerificationStatus }
|
|
420
417
|
|
|
421
418
|
# @!method initialize(id:, last_error_code:, last_error_reason:, status:)
|
|
422
419
|
# The latest verification for the connected account.
|
|
423
420
|
#
|
|
424
421
|
# @param id [String] A unique identifier for the verification.
|
|
425
422
|
#
|
|
426
|
-
# @param last_error_code [Symbol, WhopSDK::Models::
|
|
423
|
+
# @param last_error_code [Symbol, WhopSDK::Models::VerificationErrorCode, nil] An error code for a verification attempt.
|
|
427
424
|
#
|
|
428
425
|
# @param last_error_reason [String, nil] The last error reason that occurred during the verification.
|
|
429
426
|
#
|
|
430
|
-
# @param status [Symbol, WhopSDK::Models::
|
|
431
|
-
|
|
432
|
-
# An error code for a verification attempt.
|
|
433
|
-
#
|
|
434
|
-
# @see WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification#last_error_code
|
|
435
|
-
module LastErrorCode
|
|
436
|
-
extend WhopSDK::Internal::Type::Enum
|
|
437
|
-
|
|
438
|
-
ABANDONED = :abandoned
|
|
439
|
-
CONSENT_DECLINED = :consent_declined
|
|
440
|
-
COUNTRY_NOT_SUPPORTED = :country_not_supported
|
|
441
|
-
DEVICE_NOT_SUPPORTED = :device_not_supported
|
|
442
|
-
DOCUMENT_EXPIRED = :document_expired
|
|
443
|
-
DOCUMENT_TYPE_NOT_SUPPORTED = :document_type_not_supported
|
|
444
|
-
DOCUMENT_UNVERIFIED_OTHER = :document_unverified_other
|
|
445
|
-
EMAIL_UNVERIFIED_OTHER = :email_unverified_other
|
|
446
|
-
EMAIL_VERIFICATION_DECLINED = :email_verification_declined
|
|
447
|
-
ID_NUMBER_INSUFFICIENT_DOCUMENT_DATA = :id_number_insufficient_document_data
|
|
448
|
-
ID_NUMBER_MISMATCH = :id_number_mismatch
|
|
449
|
-
ID_NUMBER_UNVERIFIED_OTHER = :id_number_unverified_other
|
|
450
|
-
PHONE_UNVERIFIED_OTHER = :phone_unverified_other
|
|
451
|
-
PHONE_VERIFICATION_DECLINED = :phone_verification_declined
|
|
452
|
-
SELFIE_DOCUMENT_MISSING_PHOTO = :selfie_document_missing_photo
|
|
453
|
-
SELFIE_FACE_MISMATCH = :selfie_face_mismatch
|
|
454
|
-
SELFIE_MANIPULATED = :selfie_manipulated
|
|
455
|
-
SELFIE_UNVERIFIED_OTHER = :selfie_unverified_other
|
|
456
|
-
UNDER_SUPPORTED_AGE = :under_supported_age
|
|
457
|
-
|
|
458
|
-
# @!method self.values
|
|
459
|
-
# @return [Array<Symbol>]
|
|
460
|
-
end
|
|
461
|
-
|
|
462
|
-
# The status of the verification.
|
|
463
|
-
#
|
|
464
|
-
# @see WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::LatestVerification#status
|
|
465
|
-
module Status
|
|
466
|
-
extend WhopSDK::Internal::Type::Enum
|
|
467
|
-
|
|
468
|
-
REQUIRES_INPUT = :requires_input
|
|
469
|
-
PROCESSING = :processing
|
|
470
|
-
VERIFIED = :verified
|
|
471
|
-
CANCELED = :canceled
|
|
472
|
-
CREATED = :created
|
|
473
|
-
STARTED = :started
|
|
474
|
-
SUBMITTED = :submitted
|
|
475
|
-
APPROVED = :approved
|
|
476
|
-
DECLINED = :declined
|
|
477
|
-
RESUBMISSION_REQUESTED = :resubmission_requested
|
|
478
|
-
EXPIRED = :expired
|
|
479
|
-
ABANDONED = :abandoned
|
|
480
|
-
REVIEW = :review
|
|
481
|
-
|
|
482
|
-
# @!method self.values
|
|
483
|
-
# @return [Array<Symbol>]
|
|
484
|
-
end
|
|
427
|
+
# @param status [Symbol, WhopSDK::Models::VerificationStatus] The status of the verification.
|
|
485
428
|
end
|
|
486
429
|
end
|
|
487
430
|
end
|
|
@@ -7,12 +7,6 @@ module WhopSDK
|
|
|
7
7
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include WhopSDK::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!attribute company_id
|
|
11
|
-
# The ID of the company to list members for
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :company_id, String
|
|
15
|
-
|
|
16
10
|
# @!attribute access_level
|
|
17
11
|
# The access level a given user (or company) has to a product or company.
|
|
18
12
|
#
|
|
@@ -31,6 +25,12 @@ module WhopSDK
|
|
|
31
25
|
# @return [String, nil]
|
|
32
26
|
optional :before, String, nil?: true
|
|
33
27
|
|
|
28
|
+
# @!attribute company_id
|
|
29
|
+
# The ID of the company to list members for
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :company_id, String, nil?: true
|
|
33
|
+
|
|
34
34
|
# @!attribute created_after
|
|
35
35
|
# The minimum creation date to filter by
|
|
36
36
|
#
|
|
@@ -112,18 +112,18 @@ module WhopSDK
|
|
|
112
112
|
# @return [Array<String>, nil]
|
|
113
113
|
optional :user_ids, WhopSDK::Internal::Type::ArrayOf[String], nil?: true
|
|
114
114
|
|
|
115
|
-
# @!method initialize(
|
|
115
|
+
# @!method initialize(access_level: nil, after: nil, before: nil, company_id: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, most_recent_actions: nil, order: nil, plan_ids: nil, product_ids: nil, promo_code_ids: nil, query: nil, statuses: nil, user_ids: nil, request_options: {})
|
|
116
116
|
# Some parameter documentations has been truncated, see
|
|
117
117
|
# {WhopSDK::Models::MemberListParams} for more details.
|
|
118
118
|
#
|
|
119
|
-
# @param company_id [String] The ID of the company to list members for
|
|
120
|
-
#
|
|
121
119
|
# @param access_level [Symbol, WhopSDK::Models::AccessLevel, nil] The access level a given user (or company) has to a product or company.
|
|
122
120
|
#
|
|
123
121
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
124
122
|
#
|
|
125
123
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
126
124
|
#
|
|
125
|
+
# @param company_id [String, nil] The ID of the company to list members for
|
|
126
|
+
#
|
|
127
127
|
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
128
128
|
#
|
|
129
129
|
# @param created_before [Time, nil] The maximum creation date to filter by
|