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
|
@@ -18,8 +18,8 @@ module WhopSDK
|
|
|
18
18
|
# @!attribute data
|
|
19
19
|
# A withdrawal request.
|
|
20
20
|
#
|
|
21
|
-
# @return [WhopSDK::Models::
|
|
22
|
-
required :data, -> { WhopSDK::
|
|
21
|
+
# @return [WhopSDK::Models::Withdrawal]
|
|
22
|
+
required :data, -> { WhopSDK::Withdrawal }
|
|
23
23
|
|
|
24
24
|
# @!attribute timestamp
|
|
25
25
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
@@ -42,7 +42,7 @@ module WhopSDK
|
|
|
42
42
|
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"withdrawal.updated")
|
|
43
43
|
# @param id [String] A unique ID for every single webhook request
|
|
44
44
|
#
|
|
45
|
-
# @param data [WhopSDK::Models::
|
|
45
|
+
# @param data [WhopSDK::Models::Withdrawal] A withdrawal request.
|
|
46
46
|
#
|
|
47
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
48
48
|
#
|
|
@@ -51,270 +51,6 @@ module WhopSDK
|
|
|
51
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
52
52
|
#
|
|
53
53
|
# @param type [Symbol, :"withdrawal.updated"] The webhook event type
|
|
54
|
-
|
|
55
|
-
# @see WhopSDK::Models::WithdrawalUpdatedWebhookEvent#data
|
|
56
|
-
class Data < WhopSDK::Internal::Type::BaseModel
|
|
57
|
-
# @!attribute id
|
|
58
|
-
# Internal ID of the withdrawal request.
|
|
59
|
-
#
|
|
60
|
-
# @return [String]
|
|
61
|
-
required :id, String
|
|
62
|
-
|
|
63
|
-
# @!attribute amount
|
|
64
|
-
# How much money was attempted to be withdrawn, in a float type.
|
|
65
|
-
#
|
|
66
|
-
# @return [Float]
|
|
67
|
-
required :amount, Float
|
|
68
|
-
|
|
69
|
-
# @!attribute created_at
|
|
70
|
-
# When the withdrawal request was created.
|
|
71
|
-
#
|
|
72
|
-
# @return [Time]
|
|
73
|
-
required :created_at, Time
|
|
74
|
-
|
|
75
|
-
# @!attribute currency
|
|
76
|
-
# The currency of the withdrawal request.
|
|
77
|
-
#
|
|
78
|
-
# @return [Symbol, WhopSDK::Models::Currency]
|
|
79
|
-
required :currency, enum: -> { WhopSDK::Currency }
|
|
80
|
-
|
|
81
|
-
# @!attribute error_code
|
|
82
|
-
# The different error codes a payout can be in.
|
|
83
|
-
#
|
|
84
|
-
# @return [Symbol, WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::ErrorCode, nil]
|
|
85
|
-
required :error_code, enum: -> { WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode }, nil?: true
|
|
86
|
-
|
|
87
|
-
# @!attribute error_message
|
|
88
|
-
# The error message for the withdrawal, if any.
|
|
89
|
-
#
|
|
90
|
-
# @return [String, nil]
|
|
91
|
-
required :error_message, String, nil?: true
|
|
92
|
-
|
|
93
|
-
# @!attribute estimated_availability
|
|
94
|
-
# The estimated availability date for the withdrawal, if any.
|
|
95
|
-
#
|
|
96
|
-
# @return [Time, nil]
|
|
97
|
-
required :estimated_availability, Time, nil?: true
|
|
98
|
-
|
|
99
|
-
# @!attribute fee_amount
|
|
100
|
-
# The fee amount that was charged for the withdrawal. This is in the same currency
|
|
101
|
-
# as the withdrawal amount.
|
|
102
|
-
#
|
|
103
|
-
# @return [Float]
|
|
104
|
-
required :fee_amount, Float
|
|
105
|
-
|
|
106
|
-
# @!attribute fee_type
|
|
107
|
-
# The different fee types for a withdrawal.
|
|
108
|
-
#
|
|
109
|
-
# @return [Symbol, WhopSDK::Models::WithdrawalFeeTypes, nil]
|
|
110
|
-
required :fee_type, enum: -> { WhopSDK::WithdrawalFeeTypes }, nil?: true
|
|
111
|
-
|
|
112
|
-
# @!attribute ledger_account
|
|
113
|
-
# The ledger account associated with the withdrawal.
|
|
114
|
-
#
|
|
115
|
-
# @return [WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount]
|
|
116
|
-
required :ledger_account, -> { WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount }
|
|
117
|
-
|
|
118
|
-
# @!attribute markup_fee
|
|
119
|
-
# The markup fee that was charged for the withdrawal. This is in the same currency
|
|
120
|
-
# as the withdrawal amount. This only applies to platform accounts using Whop
|
|
121
|
-
# Rails.
|
|
122
|
-
#
|
|
123
|
-
# @return [Float]
|
|
124
|
-
required :markup_fee, Float
|
|
125
|
-
|
|
126
|
-
# @!attribute payout_token
|
|
127
|
-
# The payout token used for the withdrawal, if applicable.
|
|
128
|
-
#
|
|
129
|
-
# @return [WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::PayoutToken, nil]
|
|
130
|
-
required :payout_token, -> { WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken }, nil?: true
|
|
131
|
-
|
|
132
|
-
# @!attribute speed
|
|
133
|
-
# The speed of the withdrawal.
|
|
134
|
-
#
|
|
135
|
-
# @return [Symbol, WhopSDK::Models::WithdrawalSpeeds]
|
|
136
|
-
required :speed, enum: -> { WhopSDK::WithdrawalSpeeds }
|
|
137
|
-
|
|
138
|
-
# @!attribute status
|
|
139
|
-
# Status of the withdrawal.
|
|
140
|
-
#
|
|
141
|
-
# @return [Symbol, WhopSDK::Models::WithdrawalStatus]
|
|
142
|
-
required :status, enum: -> { WhopSDK::WithdrawalStatus }
|
|
143
|
-
|
|
144
|
-
# @!attribute trace_code
|
|
145
|
-
# The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
146
|
-
# available.
|
|
147
|
-
#
|
|
148
|
-
# @return [String, nil]
|
|
149
|
-
required :trace_code, String, nil?: true
|
|
150
|
-
|
|
151
|
-
# @!method initialize(id:, amount:, created_at:, currency:, error_code:, error_message:, estimated_availability:, fee_amount:, fee_type:, ledger_account:, markup_fee:, payout_token:, speed:, status:, trace_code:)
|
|
152
|
-
# Some parameter documentations has been truncated, see
|
|
153
|
-
# {WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data} for more details.
|
|
154
|
-
#
|
|
155
|
-
# A withdrawal request.
|
|
156
|
-
#
|
|
157
|
-
# @param id [String] Internal ID of the withdrawal request.
|
|
158
|
-
#
|
|
159
|
-
# @param amount [Float] How much money was attempted to be withdrawn, in a float type.
|
|
160
|
-
#
|
|
161
|
-
# @param created_at [Time] When the withdrawal request was created.
|
|
162
|
-
#
|
|
163
|
-
# @param currency [Symbol, WhopSDK::Models::Currency] The currency of the withdrawal request.
|
|
164
|
-
#
|
|
165
|
-
# @param error_code [Symbol, WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::ErrorCode, nil] The different error codes a payout can be in.
|
|
166
|
-
#
|
|
167
|
-
# @param error_message [String, nil] The error message for the withdrawal, if any.
|
|
168
|
-
#
|
|
169
|
-
# @param estimated_availability [Time, nil] The estimated availability date for the withdrawal, if any.
|
|
170
|
-
#
|
|
171
|
-
# @param fee_amount [Float] The fee amount that was charged for the withdrawal. This is in the same currency
|
|
172
|
-
#
|
|
173
|
-
# @param fee_type [Symbol, WhopSDK::Models::WithdrawalFeeTypes, nil] The different fee types for a withdrawal.
|
|
174
|
-
#
|
|
175
|
-
# @param ledger_account [WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount] The ledger account associated with the withdrawal.
|
|
176
|
-
#
|
|
177
|
-
# @param markup_fee [Float] The markup fee that was charged for the withdrawal. This is in the same currency
|
|
178
|
-
#
|
|
179
|
-
# @param payout_token [WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::PayoutToken, nil] The payout token used for the withdrawal, if applicable.
|
|
180
|
-
#
|
|
181
|
-
# @param speed [Symbol, WhopSDK::Models::WithdrawalSpeeds] The speed of the withdrawal.
|
|
182
|
-
#
|
|
183
|
-
# @param status [Symbol, WhopSDK::Models::WithdrawalStatus] Status of the withdrawal.
|
|
184
|
-
#
|
|
185
|
-
# @param trace_code [String, nil] The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
186
|
-
|
|
187
|
-
# The different error codes a payout can be in.
|
|
188
|
-
#
|
|
189
|
-
# @see WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data#error_code
|
|
190
|
-
module ErrorCode
|
|
191
|
-
extend WhopSDK::Internal::Type::Enum
|
|
192
|
-
|
|
193
|
-
ACCOUNT_CLOSED = :account_closed
|
|
194
|
-
ACCOUNT_DOES_NOT_EXIST = :account_does_not_exist
|
|
195
|
-
ACCOUNT_INFORMATION_INVALID = :account_information_invalid
|
|
196
|
-
ACCOUNT_NUMBER_INVALID_REGION = :account_number_invalid_region
|
|
197
|
-
ACCOUNT_FROZEN = :account_frozen
|
|
198
|
-
ACCOUNT_LOOKUP_FAILED = :account_lookup_failed
|
|
199
|
-
ACCOUNT_NOT_FOUND = :account_not_found
|
|
200
|
-
AMOUNT_OUT_OF_BOUNDS = :amount_out_of_bounds
|
|
201
|
-
ATTRIBUTES_NOT_VALIDATED = :attributes_not_validated
|
|
202
|
-
B2B_PAYMENTS_PROHIBITED = :b2b_payments_prohibited
|
|
203
|
-
BANK_STATEMENT_REQUIRED = :bank_statement_required
|
|
204
|
-
COMPLIANCE_REVIEW = :compliance_review
|
|
205
|
-
CURRENCY_NOT_SUPPORTED = :currency_not_supported
|
|
206
|
-
DEPOSIT_CANCELED = :deposit_canceled
|
|
207
|
-
DEPOSIT_FAILED = :deposit_failed
|
|
208
|
-
DEPOSIT_REJECTED = :deposit_rejected
|
|
209
|
-
DESTINATION_UNAVAILABLE = :destination_unavailable
|
|
210
|
-
EXCEEDED_ACCOUNT_LIMIT = :exceeded_account_limit
|
|
211
|
-
EXPIRED_QUOTE = :expired_quote
|
|
212
|
-
GENERIC_PAYOUT_ERROR = :generic_payout_error
|
|
213
|
-
TECHNICAL_PROBLEM = :technical_problem
|
|
214
|
-
IDENTIFICATION_NUMBER_INVALID = :identification_number_invalid
|
|
215
|
-
INVALID_ACCOUNT_NUMBER = :invalid_account_number
|
|
216
|
-
INVALID_BANK_CODE = :invalid_bank_code
|
|
217
|
-
INVALID_BENEFICIARY = :invalid_beneficiary
|
|
218
|
-
INVALID_MAILING_ADDRESS = :invalid_mailing_address
|
|
219
|
-
INVALID_BRANCH_NUMBER = :invalid_branch_number
|
|
220
|
-
INVALID_BRANCH_CODE = :invalid_branch_code
|
|
221
|
-
INVALID_PHONE_NUMBER = :invalid_phone_number
|
|
222
|
-
INVALID_ROUTING_NUMBER = :invalid_routing_number
|
|
223
|
-
INVALID_SWIFT_CODE = :invalid_swift_code
|
|
224
|
-
INVALID_COMPANY_DETAILS = :invalid_company_details
|
|
225
|
-
MANUAL_CANCELATION = :manual_cancelation
|
|
226
|
-
MISC_ERROR = :misc_error
|
|
227
|
-
MISSING_CITY_AND_COUNTRY = :missing_city_and_country
|
|
228
|
-
MISSING_PHONE_NUMBER = :missing_phone_number
|
|
229
|
-
MISSING_REMITTANCE_INFO = :missing_remittance_info
|
|
230
|
-
PAYEE_NAME_INVALID = :payee_name_invalid
|
|
231
|
-
RECEIVING_ACCOUNT_LOCKED = :receiving_account_locked
|
|
232
|
-
REJECTED_BY_COMPLIANCE = :rejected_by_compliance
|
|
233
|
-
RTP_NOT_SUPPORTED = :rtp_not_supported
|
|
234
|
-
NON_TRANSACTION_ACCOUNT = :non_transaction_account
|
|
235
|
-
SOURCE_TOKEN_INSUFFICIENT_FUNDS = :source_token_insufficient_funds
|
|
236
|
-
SSN_INVALID = :ssn_invalid
|
|
237
|
-
WALLET_SCREENSHOT_REQUIRED = :wallet_screenshot_required
|
|
238
|
-
UNSUPPORTED_REGION = :unsupported_region
|
|
239
|
-
|
|
240
|
-
# @!method self.values
|
|
241
|
-
# @return [Array<Symbol>]
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
# @see WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data#ledger_account
|
|
245
|
-
class LedgerAccount < WhopSDK::Internal::Type::BaseModel
|
|
246
|
-
# @!attribute id
|
|
247
|
-
# The ID of the LedgerAccount.
|
|
248
|
-
#
|
|
249
|
-
# @return [String]
|
|
250
|
-
required :id, String
|
|
251
|
-
|
|
252
|
-
# @!attribute company_id
|
|
253
|
-
# The ID of the company associated with this ledger account.
|
|
254
|
-
#
|
|
255
|
-
# @return [String, nil]
|
|
256
|
-
required :company_id, String, nil?: true
|
|
257
|
-
|
|
258
|
-
# @!method initialize(id:, company_id:)
|
|
259
|
-
# The ledger account associated with the withdrawal.
|
|
260
|
-
#
|
|
261
|
-
# @param id [String] The ID of the LedgerAccount.
|
|
262
|
-
#
|
|
263
|
-
# @param company_id [String, nil] The ID of the company associated with this ledger account.
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
# @see WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data#payout_token
|
|
267
|
-
class PayoutToken < WhopSDK::Internal::Type::BaseModel
|
|
268
|
-
# @!attribute id
|
|
269
|
-
# The ID of the payout token
|
|
270
|
-
#
|
|
271
|
-
# @return [String]
|
|
272
|
-
required :id, String
|
|
273
|
-
|
|
274
|
-
# @!attribute created_at
|
|
275
|
-
# The date and time the payout token was created
|
|
276
|
-
#
|
|
277
|
-
# @return [Time]
|
|
278
|
-
required :created_at, Time
|
|
279
|
-
|
|
280
|
-
# @!attribute destination_currency_code
|
|
281
|
-
# The currency code of the payout destination. This is the currency that payouts
|
|
282
|
-
# will be made in for this token.
|
|
283
|
-
#
|
|
284
|
-
# @return [String]
|
|
285
|
-
required :destination_currency_code, String
|
|
286
|
-
|
|
287
|
-
# @!attribute nickname
|
|
288
|
-
# An optional nickname for the payout token to help the user identify it. This is
|
|
289
|
-
# not used by the provider and is only for the user's reference.
|
|
290
|
-
#
|
|
291
|
-
# @return [String, nil]
|
|
292
|
-
required :nickname, String, nil?: true
|
|
293
|
-
|
|
294
|
-
# @!attribute payer_name
|
|
295
|
-
# The name of the payer associated with the payout token.
|
|
296
|
-
#
|
|
297
|
-
# @return [String, nil]
|
|
298
|
-
required :payer_name, String, nil?: true
|
|
299
|
-
|
|
300
|
-
# @!method initialize(id:, created_at:, destination_currency_code:, nickname:, payer_name:)
|
|
301
|
-
# Some parameter documentations has been truncated, see
|
|
302
|
-
# {WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::PayoutToken} for more
|
|
303
|
-
# details.
|
|
304
|
-
#
|
|
305
|
-
# The payout token used for the withdrawal, if applicable.
|
|
306
|
-
#
|
|
307
|
-
# @param id [String] The ID of the payout token
|
|
308
|
-
#
|
|
309
|
-
# @param created_at [Time] The date and time the payout token was created
|
|
310
|
-
#
|
|
311
|
-
# @param destination_currency_code [String] The currency code of the payout destination. This is the currency that payouts w
|
|
312
|
-
#
|
|
313
|
-
# @param nickname [String, nil] An optional nickname for the payout token to help the user identify it. This is
|
|
314
|
-
#
|
|
315
|
-
# @param payer_name [String, nil] The name of the payer associated with the payout token.
|
|
316
|
-
end
|
|
317
|
-
end
|
|
318
54
|
end
|
|
319
55
|
end
|
|
320
56
|
end
|
data/lib/whop_sdk/models.rb
CHANGED
|
@@ -47,6 +47,20 @@ module WhopSDK
|
|
|
47
47
|
|
|
48
48
|
AccountLinkCreateParams = WhopSDK::Models::AccountLinkCreateParams
|
|
49
49
|
|
|
50
|
+
AIChat = WhopSDK::Models::AIChat
|
|
51
|
+
|
|
52
|
+
AIChatCreateParams = WhopSDK::Models::AIChatCreateParams
|
|
53
|
+
|
|
54
|
+
AIChatDeleteParams = WhopSDK::Models::AIChatDeleteParams
|
|
55
|
+
|
|
56
|
+
AIChatListParams = WhopSDK::Models::AIChatListParams
|
|
57
|
+
|
|
58
|
+
AIChatRetrieveParams = WhopSDK::Models::AIChatRetrieveParams
|
|
59
|
+
|
|
60
|
+
AIChatUpdateParams = WhopSDK::Models::AIChatUpdateParams
|
|
61
|
+
|
|
62
|
+
APIVersion = WhopSDK::Models::APIVersion
|
|
63
|
+
|
|
50
64
|
App = WhopSDK::Models::App
|
|
51
65
|
|
|
52
66
|
AppBuild = WhopSDK::Models::AppBuild
|
|
@@ -87,8 +101,12 @@ module WhopSDK
|
|
|
87
101
|
|
|
88
102
|
BillingReasons = WhopSDK::Models::BillingReasons
|
|
89
103
|
|
|
104
|
+
BotTokenTransactionTypes = WhopSDK::Models::BotTokenTransactionTypes
|
|
105
|
+
|
|
90
106
|
BusinessTypes = WhopSDK::Models::BusinessTypes
|
|
91
107
|
|
|
108
|
+
CancelOptions = WhopSDK::Models::CancelOptions
|
|
109
|
+
|
|
92
110
|
CardBrands = WhopSDK::Models::CardBrands
|
|
93
111
|
|
|
94
112
|
ChatChannel = WhopSDK::Models::ChatChannel
|
|
@@ -119,6 +137,14 @@ module WhopSDK
|
|
|
119
137
|
|
|
120
138
|
CompanyRetrieveParams = WhopSDK::Models::CompanyRetrieveParams
|
|
121
139
|
|
|
140
|
+
CompanyTokenTransaction = WhopSDK::Models::CompanyTokenTransaction
|
|
141
|
+
|
|
142
|
+
CompanyTokenTransactionCreateParams = WhopSDK::Models::CompanyTokenTransactionCreateParams
|
|
143
|
+
|
|
144
|
+
CompanyTokenTransactionListParams = WhopSDK::Models::CompanyTokenTransactionListParams
|
|
145
|
+
|
|
146
|
+
CompanyTokenTransactionRetrieveParams = WhopSDK::Models::CompanyTokenTransactionRetrieveParams
|
|
147
|
+
|
|
122
148
|
CompanyUpdateParams = WhopSDK::Models::CompanyUpdateParams
|
|
123
149
|
|
|
124
150
|
Course = WhopSDK::Models::Course
|
|
@@ -200,6 +226,34 @@ module WhopSDK
|
|
|
200
226
|
|
|
201
227
|
DisputeUpdateEvidenceParams = WhopSDK::Models::DisputeUpdateEvidenceParams
|
|
202
228
|
|
|
229
|
+
DmChannel = WhopSDK::Models::DmChannel
|
|
230
|
+
|
|
231
|
+
DmChannelCreateParams = WhopSDK::Models::DmChannelCreateParams
|
|
232
|
+
|
|
233
|
+
DmChannelDeleteParams = WhopSDK::Models::DmChannelDeleteParams
|
|
234
|
+
|
|
235
|
+
DmChannelListParams = WhopSDK::Models::DmChannelListParams
|
|
236
|
+
|
|
237
|
+
DmChannelRetrieveParams = WhopSDK::Models::DmChannelRetrieveParams
|
|
238
|
+
|
|
239
|
+
DmChannelUpdateParams = WhopSDK::Models::DmChannelUpdateParams
|
|
240
|
+
|
|
241
|
+
DmFeedMemberNotificationPreferences = WhopSDK::Models::DmFeedMemberNotificationPreferences
|
|
242
|
+
|
|
243
|
+
DmFeedMemberStatuses = WhopSDK::Models::DmFeedMemberStatuses
|
|
244
|
+
|
|
245
|
+
DmMember = WhopSDK::Models::DmMember
|
|
246
|
+
|
|
247
|
+
DmMemberCreateParams = WhopSDK::Models::DmMemberCreateParams
|
|
248
|
+
|
|
249
|
+
DmMemberDeleteParams = WhopSDK::Models::DmMemberDeleteParams
|
|
250
|
+
|
|
251
|
+
DmMemberListParams = WhopSDK::Models::DmMemberListParams
|
|
252
|
+
|
|
253
|
+
DmMemberRetrieveParams = WhopSDK::Models::DmMemberRetrieveParams
|
|
254
|
+
|
|
255
|
+
DmMemberUpdateParams = WhopSDK::Models::DmMemberUpdateParams
|
|
256
|
+
|
|
203
257
|
DmsPostTypes = WhopSDK::Models::DmsPostTypes
|
|
204
258
|
|
|
205
259
|
EmailNotificationPreferences = WhopSDK::Models::EmailNotificationPreferences
|
|
@@ -306,6 +360,8 @@ module WhopSDK
|
|
|
306
360
|
|
|
307
361
|
Languages = WhopSDK::Models::Languages
|
|
308
362
|
|
|
363
|
+
Lead = WhopSDK::Models::Lead
|
|
364
|
+
|
|
309
365
|
LeadCreateParams = WhopSDK::Models::LeadCreateParams
|
|
310
366
|
|
|
311
367
|
LeadListParams = WhopSDK::Models::LeadListParams
|
|
@@ -359,6 +415,8 @@ module WhopSDK
|
|
|
359
415
|
|
|
360
416
|
MessageCreateParams = WhopSDK::Models::MessageCreateParams
|
|
361
417
|
|
|
418
|
+
MessageDeleteParams = WhopSDK::Models::MessageDeleteParams
|
|
419
|
+
|
|
362
420
|
MessageListParams = WhopSDK::Models::MessageListParams
|
|
363
421
|
|
|
364
422
|
MessageRetrieveParams = WhopSDK::Models::MessageRetrieveParams
|
|
@@ -401,6 +459,8 @@ module WhopSDK
|
|
|
401
459
|
|
|
402
460
|
PaymentVoidParams = WhopSDK::Models::PaymentVoidParams
|
|
403
461
|
|
|
462
|
+
PayoutDestinationCategory = WhopSDK::Models::PayoutDestinationCategory
|
|
463
|
+
|
|
404
464
|
PayoutMethodCreatedWebhookEvent = WhopSDK::Models::PayoutMethodCreatedWebhookEvent
|
|
405
465
|
|
|
406
466
|
PayoutMethodListParams = WhopSDK::Models::PayoutMethodListParams
|
|
@@ -455,6 +515,8 @@ module WhopSDK
|
|
|
455
515
|
|
|
456
516
|
ReactionCreateParams = WhopSDK::Models::ReactionCreateParams
|
|
457
517
|
|
|
518
|
+
ReactionDeleteParams = WhopSDK::Models::ReactionDeleteParams
|
|
519
|
+
|
|
458
520
|
ReactionListParams = WhopSDK::Models::ReactionListParams
|
|
459
521
|
|
|
460
522
|
ReactionRetrieveParams = WhopSDK::Models::ReactionRetrieveParams
|
|
@@ -533,22 +595,32 @@ module WhopSDK
|
|
|
533
595
|
|
|
534
596
|
UnwrapWebhookEvent = WhopSDK::Models::UnwrapWebhookEvent
|
|
535
597
|
|
|
598
|
+
UploadStatus = WhopSDK::Models::UploadStatus
|
|
599
|
+
|
|
536
600
|
UserCheckAccessParams = WhopSDK::Models::UserCheckAccessParams
|
|
537
601
|
|
|
538
602
|
UserRetrieveParams = WhopSDK::Models::UserRetrieveParams
|
|
539
603
|
|
|
604
|
+
VerificationErrorCode = WhopSDK::Models::VerificationErrorCode
|
|
605
|
+
|
|
540
606
|
VerificationRetrieveParams = WhopSDK::Models::VerificationRetrieveParams
|
|
541
607
|
|
|
608
|
+
VerificationStatus = WhopSDK::Models::VerificationStatus
|
|
609
|
+
|
|
542
610
|
VerificationSucceededWebhookEvent = WhopSDK::Models::VerificationSucceededWebhookEvent
|
|
543
611
|
|
|
544
612
|
Visibility = WhopSDK::Models::Visibility
|
|
545
613
|
|
|
546
614
|
VisibilityFilter = WhopSDK::Models::VisibilityFilter
|
|
547
615
|
|
|
616
|
+
Webhook = WhopSDK::Models::Webhook
|
|
617
|
+
|
|
548
618
|
WebhookCreateParams = WhopSDK::Models::WebhookCreateParams
|
|
549
619
|
|
|
550
620
|
WebhookDeleteParams = WhopSDK::Models::WebhookDeleteParams
|
|
551
621
|
|
|
622
|
+
WebhookEvent = WhopSDK::Models::WebhookEvent
|
|
623
|
+
|
|
552
624
|
WebhookListParams = WhopSDK::Models::WebhookListParams
|
|
553
625
|
|
|
554
626
|
WebhookRetrieveParams = WhopSDK::Models::WebhookRetrieveParams
|
|
@@ -565,6 +637,8 @@ module WhopSDK
|
|
|
565
637
|
|
|
566
638
|
WhoCanReact = WhopSDK::Models::WhoCanReact
|
|
567
639
|
|
|
640
|
+
Withdrawal = WhopSDK::Models::Withdrawal
|
|
641
|
+
|
|
568
642
|
WithdrawalCreatedWebhookEvent = WhopSDK::Models::WithdrawalCreatedWebhookEvent
|
|
569
643
|
|
|
570
644
|
WithdrawalCreateParams = WhopSDK::Models::WithdrawalCreateParams
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Resources
|
|
5
|
+
class AIChats
|
|
6
|
+
# Creates a new AI chat
|
|
7
|
+
#
|
|
8
|
+
# Required permissions:
|
|
9
|
+
#
|
|
10
|
+
# - `ai_chat:create`
|
|
11
|
+
#
|
|
12
|
+
# @overload create(title: nil, request_options: {})
|
|
13
|
+
#
|
|
14
|
+
# @param title [String, nil] The title of the AI chat
|
|
15
|
+
#
|
|
16
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
17
|
+
#
|
|
18
|
+
# @return [WhopSDK::Models::AIChat]
|
|
19
|
+
#
|
|
20
|
+
# @see WhopSDK::Models::AIChatCreateParams
|
|
21
|
+
def create(params = {})
|
|
22
|
+
parsed, options = WhopSDK::AIChatCreateParams.dump_request(params)
|
|
23
|
+
@client.request(
|
|
24
|
+
method: :post,
|
|
25
|
+
path: "ai_chats",
|
|
26
|
+
body: parsed,
|
|
27
|
+
model: WhopSDK::AIChat,
|
|
28
|
+
options: options
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Fetches a single AI chat by ID
|
|
33
|
+
#
|
|
34
|
+
# @overload retrieve(id, request_options: {})
|
|
35
|
+
#
|
|
36
|
+
# @param id [String] The ID of the AI chat
|
|
37
|
+
#
|
|
38
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
39
|
+
#
|
|
40
|
+
# @return [WhopSDK::Models::AIChat]
|
|
41
|
+
#
|
|
42
|
+
# @see WhopSDK::Models::AIChatRetrieveParams
|
|
43
|
+
def retrieve(id, params = {})
|
|
44
|
+
@client.request(
|
|
45
|
+
method: :get,
|
|
46
|
+
path: ["ai_chats/%1$s", id],
|
|
47
|
+
model: WhopSDK::AIChat,
|
|
48
|
+
options: params[:request_options]
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Updates an AI chat
|
|
53
|
+
#
|
|
54
|
+
# Required permissions:
|
|
55
|
+
#
|
|
56
|
+
# - `ai_chat:update`
|
|
57
|
+
#
|
|
58
|
+
# @overload update(id, title: nil, request_options: {})
|
|
59
|
+
#
|
|
60
|
+
# @param id [String] The ID of the AI chat to update
|
|
61
|
+
#
|
|
62
|
+
# @param title [String, nil] The new title for the AI chat
|
|
63
|
+
#
|
|
64
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
65
|
+
#
|
|
66
|
+
# @return [WhopSDK::Models::AIChat]
|
|
67
|
+
#
|
|
68
|
+
# @see WhopSDK::Models::AIChatUpdateParams
|
|
69
|
+
def update(id, params = {})
|
|
70
|
+
parsed, options = WhopSDK::AIChatUpdateParams.dump_request(params)
|
|
71
|
+
@client.request(
|
|
72
|
+
method: :patch,
|
|
73
|
+
path: ["ai_chats/%1$s", id],
|
|
74
|
+
body: parsed,
|
|
75
|
+
model: WhopSDK::AIChat,
|
|
76
|
+
options: options
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Fetches all AI chats for the current user
|
|
81
|
+
#
|
|
82
|
+
# @overload list(after: nil, before: nil, first: nil, last: nil, request_options: {})
|
|
83
|
+
#
|
|
84
|
+
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
85
|
+
#
|
|
86
|
+
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
87
|
+
#
|
|
88
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
89
|
+
#
|
|
90
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
91
|
+
#
|
|
92
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
93
|
+
#
|
|
94
|
+
# @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::AIChatListResponse>]
|
|
95
|
+
#
|
|
96
|
+
# @see WhopSDK::Models::AIChatListParams
|
|
97
|
+
def list(params = {})
|
|
98
|
+
parsed, options = WhopSDK::AIChatListParams.dump_request(params)
|
|
99
|
+
@client.request(
|
|
100
|
+
method: :get,
|
|
101
|
+
path: "ai_chats",
|
|
102
|
+
query: parsed,
|
|
103
|
+
page: WhopSDK::Internal::CursorPage,
|
|
104
|
+
model: WhopSDK::Models::AIChatListResponse,
|
|
105
|
+
options: options
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Deletes an AI chat
|
|
110
|
+
#
|
|
111
|
+
# Required permissions:
|
|
112
|
+
#
|
|
113
|
+
# - `ai_chat:delete`
|
|
114
|
+
#
|
|
115
|
+
# @overload delete(id, request_options: {})
|
|
116
|
+
#
|
|
117
|
+
# @param id [String] The ID of the AI chat to delete
|
|
118
|
+
#
|
|
119
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
120
|
+
#
|
|
121
|
+
# @return [Boolean]
|
|
122
|
+
#
|
|
123
|
+
# @see WhopSDK::Models::AIChatDeleteParams
|
|
124
|
+
def delete(id, params = {})
|
|
125
|
+
@client.request(
|
|
126
|
+
method: :delete,
|
|
127
|
+
path: ["ai_chats/%1$s", id],
|
|
128
|
+
model: WhopSDK::Internal::Type::Boolean,
|
|
129
|
+
options: params[:request_options]
|
|
130
|
+
)
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# @api private
|
|
134
|
+
#
|
|
135
|
+
# @param client [WhopSDK::Client]
|
|
136
|
+
def initialize(client:)
|
|
137
|
+
@client = client
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
@@ -35,14 +35,14 @@ module WhopSDK
|
|
|
35
35
|
# - `company:authorized_user:read`
|
|
36
36
|
# - `member:email:read`
|
|
37
37
|
#
|
|
38
|
-
# @overload list(
|
|
39
|
-
#
|
|
40
|
-
# @param company_id [String] The ID of the company to list authorized users for
|
|
38
|
+
# @overload list(after: nil, before: nil, company_id: nil, created_after: nil, created_before: nil, first: nil, last: nil, role: nil, user_id: nil, request_options: {})
|
|
41
39
|
#
|
|
42
40
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
43
41
|
#
|
|
44
42
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
45
43
|
#
|
|
44
|
+
# @param company_id [String, nil] The ID of the company to list authorized users for
|
|
45
|
+
#
|
|
46
46
|
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
47
47
|
#
|
|
48
48
|
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
@@ -60,7 +60,7 @@ module WhopSDK
|
|
|
60
60
|
# @return [WhopSDK::Internal::CursorPage<WhopSDK::Models::AuthorizedUserListResponse>]
|
|
61
61
|
#
|
|
62
62
|
# @see WhopSDK::Models::AuthorizedUserListParams
|
|
63
|
-
def list(params)
|
|
63
|
+
def list(params = {})
|
|
64
64
|
parsed, options = WhopSDK::AuthorizedUserListParams.dump_request(params)
|
|
65
65
|
@client.request(
|
|
66
66
|
method: :get,
|