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
|
@@ -5,7 +5,8 @@ module WhopSDK
|
|
|
5
5
|
channel_id: String,
|
|
6
6
|
content: String,
|
|
7
7
|
attachments: ::Array[WhopSDK::MessageCreateParams::Attachment]?,
|
|
8
|
-
poll: WhopSDK::MessageCreateParams::Poll
|
|
8
|
+
poll: WhopSDK::MessageCreateParams::Poll?,
|
|
9
|
+
replying_to_message_id: String?
|
|
9
10
|
}
|
|
10
11
|
& WhopSDK::Internal::Type::request_parameters
|
|
11
12
|
|
|
@@ -21,11 +22,14 @@ module WhopSDK
|
|
|
21
22
|
|
|
22
23
|
attr_accessor poll: WhopSDK::MessageCreateParams::Poll?
|
|
23
24
|
|
|
25
|
+
attr_accessor replying_to_message_id: String?
|
|
26
|
+
|
|
24
27
|
def initialize: (
|
|
25
28
|
channel_id: String,
|
|
26
29
|
content: String,
|
|
27
30
|
?attachments: ::Array[WhopSDK::MessageCreateParams::Attachment]?,
|
|
28
31
|
?poll: WhopSDK::MessageCreateParams::Poll?,
|
|
32
|
+
?replying_to_message_id: String?,
|
|
29
33
|
?request_options: WhopSDK::request_opts
|
|
30
34
|
) -> void
|
|
31
35
|
|
|
@@ -34,6 +38,7 @@ module WhopSDK
|
|
|
34
38
|
content: String,
|
|
35
39
|
attachments: ::Array[WhopSDK::MessageCreateParams::Attachment]?,
|
|
36
40
|
poll: WhopSDK::MessageCreateParams::Poll?,
|
|
41
|
+
replying_to_message_id: String?,
|
|
37
42
|
request_options: WhopSDK::RequestOptions
|
|
38
43
|
}
|
|
39
44
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type message_delete_params =
|
|
4
|
+
{ } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class MessageDeleteParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: WhopSDK::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: WhopSDK::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -4,6 +4,7 @@ module WhopSDK
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
amount_after_fees: Float,
|
|
7
|
+
application_fee: WhopSDK::Payment::ApplicationFee?,
|
|
7
8
|
auto_refunded: bool,
|
|
8
9
|
billing_address: WhopSDK::Payment::BillingAddress?,
|
|
9
10
|
billing_reason: WhopSDK::Models::billing_reasons?,
|
|
@@ -44,6 +45,8 @@ module WhopSDK
|
|
|
44
45
|
|
|
45
46
|
attr_accessor amount_after_fees: Float
|
|
46
47
|
|
|
48
|
+
attr_accessor application_fee: WhopSDK::Payment::ApplicationFee?
|
|
49
|
+
|
|
47
50
|
attr_accessor auto_refunded: bool
|
|
48
51
|
|
|
49
52
|
attr_accessor billing_address: WhopSDK::Payment::BillingAddress?
|
|
@@ -113,6 +116,7 @@ module WhopSDK
|
|
|
113
116
|
def initialize: (
|
|
114
117
|
id: String,
|
|
115
118
|
amount_after_fees: Float,
|
|
119
|
+
application_fee: WhopSDK::Payment::ApplicationFee?,
|
|
116
120
|
auto_refunded: bool,
|
|
117
121
|
billing_address: WhopSDK::Payment::BillingAddress?,
|
|
118
122
|
billing_reason: WhopSDK::Models::billing_reasons?,
|
|
@@ -151,6 +155,7 @@ module WhopSDK
|
|
|
151
155
|
def to_hash: -> {
|
|
152
156
|
id: String,
|
|
153
157
|
amount_after_fees: Float,
|
|
158
|
+
application_fee: WhopSDK::Payment::ApplicationFee?,
|
|
154
159
|
auto_refunded: bool,
|
|
155
160
|
billing_address: WhopSDK::Payment::BillingAddress?,
|
|
156
161
|
billing_reason: WhopSDK::Models::billing_reasons?,
|
|
@@ -186,6 +191,48 @@ module WhopSDK
|
|
|
186
191
|
voidable: bool
|
|
187
192
|
}
|
|
188
193
|
|
|
194
|
+
type application_fee =
|
|
195
|
+
{
|
|
196
|
+
id: String,
|
|
197
|
+
amount: Float,
|
|
198
|
+
amount_captured: Float,
|
|
199
|
+
amount_refunded: Float,
|
|
200
|
+
created_at: Time,
|
|
201
|
+
currency: WhopSDK::Models::currency
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
class ApplicationFee < WhopSDK::Internal::Type::BaseModel
|
|
205
|
+
attr_accessor id: String
|
|
206
|
+
|
|
207
|
+
attr_accessor amount: Float
|
|
208
|
+
|
|
209
|
+
attr_accessor amount_captured: Float
|
|
210
|
+
|
|
211
|
+
attr_accessor amount_refunded: Float
|
|
212
|
+
|
|
213
|
+
attr_accessor created_at: Time
|
|
214
|
+
|
|
215
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
216
|
+
|
|
217
|
+
def initialize: (
|
|
218
|
+
id: String,
|
|
219
|
+
amount: Float,
|
|
220
|
+
amount_captured: Float,
|
|
221
|
+
amount_refunded: Float,
|
|
222
|
+
created_at: Time,
|
|
223
|
+
currency: WhopSDK::Models::currency
|
|
224
|
+
) -> void
|
|
225
|
+
|
|
226
|
+
def to_hash: -> {
|
|
227
|
+
id: String,
|
|
228
|
+
amount: Float,
|
|
229
|
+
amount_captured: Float,
|
|
230
|
+
amount_refunded: Float,
|
|
231
|
+
created_at: Time,
|
|
232
|
+
currency: WhopSDK::Models::currency
|
|
233
|
+
}
|
|
234
|
+
end
|
|
235
|
+
|
|
189
236
|
type billing_address =
|
|
190
237
|
{
|
|
191
238
|
city: String?,
|
|
@@ -4,6 +4,7 @@ module WhopSDK
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
amount_after_fees: Float,
|
|
7
|
+
application_fee: WhopSDK::Models::PaymentListResponse::ApplicationFee?,
|
|
7
8
|
auto_refunded: bool,
|
|
8
9
|
billing_address: WhopSDK::Models::PaymentListResponse::BillingAddress?,
|
|
9
10
|
billing_reason: WhopSDK::Models::billing_reasons?,
|
|
@@ -44,6 +45,8 @@ module WhopSDK
|
|
|
44
45
|
|
|
45
46
|
attr_accessor amount_after_fees: Float
|
|
46
47
|
|
|
48
|
+
attr_accessor application_fee: WhopSDK::Models::PaymentListResponse::ApplicationFee?
|
|
49
|
+
|
|
47
50
|
attr_accessor auto_refunded: bool
|
|
48
51
|
|
|
49
52
|
attr_accessor billing_address: WhopSDK::Models::PaymentListResponse::BillingAddress?
|
|
@@ -113,6 +116,7 @@ module WhopSDK
|
|
|
113
116
|
def initialize: (
|
|
114
117
|
id: String,
|
|
115
118
|
amount_after_fees: Float,
|
|
119
|
+
application_fee: WhopSDK::Models::PaymentListResponse::ApplicationFee?,
|
|
116
120
|
auto_refunded: bool,
|
|
117
121
|
billing_address: WhopSDK::Models::PaymentListResponse::BillingAddress?,
|
|
118
122
|
billing_reason: WhopSDK::Models::billing_reasons?,
|
|
@@ -151,6 +155,7 @@ module WhopSDK
|
|
|
151
155
|
def to_hash: -> {
|
|
152
156
|
id: String,
|
|
153
157
|
amount_after_fees: Float,
|
|
158
|
+
application_fee: WhopSDK::Models::PaymentListResponse::ApplicationFee?,
|
|
154
159
|
auto_refunded: bool,
|
|
155
160
|
billing_address: WhopSDK::Models::PaymentListResponse::BillingAddress?,
|
|
156
161
|
billing_reason: WhopSDK::Models::billing_reasons?,
|
|
@@ -186,6 +191,48 @@ module WhopSDK
|
|
|
186
191
|
voidable: bool
|
|
187
192
|
}
|
|
188
193
|
|
|
194
|
+
type application_fee =
|
|
195
|
+
{
|
|
196
|
+
id: String,
|
|
197
|
+
amount: Float,
|
|
198
|
+
amount_captured: Float,
|
|
199
|
+
amount_refunded: Float,
|
|
200
|
+
created_at: Time,
|
|
201
|
+
currency: WhopSDK::Models::currency
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
class ApplicationFee < WhopSDK::Internal::Type::BaseModel
|
|
205
|
+
attr_accessor id: String
|
|
206
|
+
|
|
207
|
+
attr_accessor amount: Float
|
|
208
|
+
|
|
209
|
+
attr_accessor amount_captured: Float
|
|
210
|
+
|
|
211
|
+
attr_accessor amount_refunded: Float
|
|
212
|
+
|
|
213
|
+
attr_accessor created_at: Time
|
|
214
|
+
|
|
215
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
216
|
+
|
|
217
|
+
def initialize: (
|
|
218
|
+
id: String,
|
|
219
|
+
amount: Float,
|
|
220
|
+
amount_captured: Float,
|
|
221
|
+
amount_refunded: Float,
|
|
222
|
+
created_at: Time,
|
|
223
|
+
currency: WhopSDK::Models::currency
|
|
224
|
+
) -> void
|
|
225
|
+
|
|
226
|
+
def to_hash: -> {
|
|
227
|
+
id: String,
|
|
228
|
+
amount: Float,
|
|
229
|
+
amount_captured: Float,
|
|
230
|
+
amount_refunded: Float,
|
|
231
|
+
created_at: Time,
|
|
232
|
+
currency: WhopSDK::Models::currency
|
|
233
|
+
}
|
|
234
|
+
end
|
|
235
|
+
|
|
189
236
|
type billing_address =
|
|
190
237
|
{
|
|
191
238
|
city: String?,
|
|
@@ -33,6 +33,7 @@ module WhopSDK
|
|
|
33
33
|
| :grabpay
|
|
34
34
|
| :id_bank_transfer
|
|
35
35
|
| :ideal
|
|
36
|
+
| :interac
|
|
36
37
|
| :kakao_pay
|
|
37
38
|
| :klarna
|
|
38
39
|
| :konbini
|
|
@@ -124,6 +125,7 @@ module WhopSDK
|
|
|
124
125
|
GRABPAY: :grabpay
|
|
125
126
|
ID_BANK_TRANSFER: :id_bank_transfer
|
|
126
127
|
IDEAL: :ideal
|
|
128
|
+
INTERAC: :interac
|
|
127
129
|
KAKAO_PAY: :kakao_pay
|
|
128
130
|
KLARNA: :klarna
|
|
129
131
|
KONBINI: :konbini
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type payout_destination_category =
|
|
4
|
+
:crypto | :rtp | :next_day_bank | :bank_wire | :digital_wallet | :unknown
|
|
5
|
+
|
|
6
|
+
module PayoutDestinationCategory
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
CRYPTO: :crypto
|
|
10
|
+
RTP: :rtp
|
|
11
|
+
NEXT_DAY_BANK: :next_day_bank
|
|
12
|
+
BANK_WIRE: :bank_wire
|
|
13
|
+
DIGITAL_WALLET: :digital_wallet
|
|
14
|
+
UNKNOWN: :unknown
|
|
15
|
+
|
|
16
|
+
def self?.values: -> ::Array[WhopSDK::Models::payout_destination_category]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -109,50 +109,29 @@ module WhopSDK
|
|
|
109
109
|
|
|
110
110
|
type destination =
|
|
111
111
|
{
|
|
112
|
-
category: WhopSDK::Models::
|
|
112
|
+
category: WhopSDK::Models::payout_destination_category,
|
|
113
113
|
country_code: String,
|
|
114
114
|
name: String
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
class Destination < WhopSDK::Internal::Type::BaseModel
|
|
118
|
-
attr_accessor category: WhopSDK::Models::
|
|
118
|
+
attr_accessor category: WhopSDK::Models::payout_destination_category
|
|
119
119
|
|
|
120
120
|
attr_accessor country_code: String
|
|
121
121
|
|
|
122
122
|
attr_accessor name: String
|
|
123
123
|
|
|
124
124
|
def initialize: (
|
|
125
|
-
category: WhopSDK::Models::
|
|
125
|
+
category: WhopSDK::Models::payout_destination_category,
|
|
126
126
|
country_code: String,
|
|
127
127
|
name: String
|
|
128
128
|
) -> void
|
|
129
129
|
|
|
130
130
|
def to_hash: -> {
|
|
131
|
-
category: WhopSDK::Models::
|
|
131
|
+
category: WhopSDK::Models::payout_destination_category,
|
|
132
132
|
country_code: String,
|
|
133
133
|
name: String
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
type category =
|
|
137
|
-
:crypto
|
|
138
|
-
| :rtp
|
|
139
|
-
| :next_day_bank
|
|
140
|
-
| :bank_wire
|
|
141
|
-
| :digital_wallet
|
|
142
|
-
| :unknown
|
|
143
|
-
|
|
144
|
-
module Category
|
|
145
|
-
extend WhopSDK::Internal::Type::Enum
|
|
146
|
-
|
|
147
|
-
CRYPTO: :crypto
|
|
148
|
-
RTP: :rtp
|
|
149
|
-
NEXT_DAY_BANK: :next_day_bank
|
|
150
|
-
BANK_WIRE: :bank_wire
|
|
151
|
-
DIGITAL_WALLET: :digital_wallet
|
|
152
|
-
UNKNOWN: :unknown
|
|
153
|
-
|
|
154
|
-
def self?.values: -> ::Array[WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination::category]
|
|
155
|
-
end
|
|
156
135
|
end
|
|
157
136
|
end
|
|
158
137
|
end
|
|
@@ -68,50 +68,29 @@ module WhopSDK
|
|
|
68
68
|
|
|
69
69
|
type destination =
|
|
70
70
|
{
|
|
71
|
-
category: WhopSDK::Models::
|
|
71
|
+
category: WhopSDK::Models::payout_destination_category,
|
|
72
72
|
country_code: String,
|
|
73
73
|
name: String
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
class Destination < WhopSDK::Internal::Type::BaseModel
|
|
77
|
-
attr_accessor category: WhopSDK::Models::
|
|
77
|
+
attr_accessor category: WhopSDK::Models::payout_destination_category
|
|
78
78
|
|
|
79
79
|
attr_accessor country_code: String
|
|
80
80
|
|
|
81
81
|
attr_accessor name: String
|
|
82
82
|
|
|
83
83
|
def initialize: (
|
|
84
|
-
category: WhopSDK::Models::
|
|
84
|
+
category: WhopSDK::Models::payout_destination_category,
|
|
85
85
|
country_code: String,
|
|
86
86
|
name: String
|
|
87
87
|
) -> void
|
|
88
88
|
|
|
89
89
|
def to_hash: -> {
|
|
90
|
-
category: WhopSDK::Models::
|
|
90
|
+
category: WhopSDK::Models::payout_destination_category,
|
|
91
91
|
country_code: String,
|
|
92
92
|
name: String
|
|
93
93
|
}
|
|
94
|
-
|
|
95
|
-
type category =
|
|
96
|
-
:crypto
|
|
97
|
-
| :rtp
|
|
98
|
-
| :next_day_bank
|
|
99
|
-
| :bank_wire
|
|
100
|
-
| :digital_wallet
|
|
101
|
-
| :unknown
|
|
102
|
-
|
|
103
|
-
module Category
|
|
104
|
-
extend WhopSDK::Internal::Type::Enum
|
|
105
|
-
|
|
106
|
-
CRYPTO: :crypto
|
|
107
|
-
RTP: :rtp
|
|
108
|
-
NEXT_DAY_BANK: :next_day_bank
|
|
109
|
-
BANK_WIRE: :bank_wire
|
|
110
|
-
DIGITAL_WALLET: :digital_wallet
|
|
111
|
-
UNKNOWN: :unknown
|
|
112
|
-
|
|
113
|
-
def self?.values: -> ::Array[WhopSDK::Models::PayoutMethodListResponse::Destination::category]
|
|
114
|
-
end
|
|
115
94
|
end
|
|
116
95
|
end
|
|
117
96
|
end
|
|
@@ -68,50 +68,29 @@ module WhopSDK
|
|
|
68
68
|
|
|
69
69
|
type destination =
|
|
70
70
|
{
|
|
71
|
-
category: WhopSDK::Models::
|
|
71
|
+
category: WhopSDK::Models::payout_destination_category,
|
|
72
72
|
country_code: String,
|
|
73
73
|
name: String
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
class Destination < WhopSDK::Internal::Type::BaseModel
|
|
77
|
-
attr_accessor category: WhopSDK::Models::
|
|
77
|
+
attr_accessor category: WhopSDK::Models::payout_destination_category
|
|
78
78
|
|
|
79
79
|
attr_accessor country_code: String
|
|
80
80
|
|
|
81
81
|
attr_accessor name: String
|
|
82
82
|
|
|
83
83
|
def initialize: (
|
|
84
|
-
category: WhopSDK::Models::
|
|
84
|
+
category: WhopSDK::Models::payout_destination_category,
|
|
85
85
|
country_code: String,
|
|
86
86
|
name: String
|
|
87
87
|
) -> void
|
|
88
88
|
|
|
89
89
|
def to_hash: -> {
|
|
90
|
-
category: WhopSDK::Models::
|
|
90
|
+
category: WhopSDK::Models::payout_destination_category,
|
|
91
91
|
country_code: String,
|
|
92
92
|
name: String
|
|
93
93
|
}
|
|
94
|
-
|
|
95
|
-
type category =
|
|
96
|
-
:crypto
|
|
97
|
-
| :rtp
|
|
98
|
-
| :next_day_bank
|
|
99
|
-
| :bank_wire
|
|
100
|
-
| :digital_wallet
|
|
101
|
-
| :unknown
|
|
102
|
-
|
|
103
|
-
module Category
|
|
104
|
-
extend WhopSDK::Internal::Type::Enum
|
|
105
|
-
|
|
106
|
-
CRYPTO: :crypto
|
|
107
|
-
RTP: :rtp
|
|
108
|
-
NEXT_DAY_BANK: :next_day_bank
|
|
109
|
-
BANK_WIRE: :bank_wire
|
|
110
|
-
DIGITAL_WALLET: :digital_wallet
|
|
111
|
-
UNKNOWN: :unknown
|
|
112
|
-
|
|
113
|
-
def self?.values: -> ::Array[WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::category]
|
|
114
|
-
end
|
|
115
94
|
end
|
|
116
95
|
end
|
|
117
96
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module WhopSDK
|
|
2
2
|
module Models
|
|
3
3
|
type reaction_create_params =
|
|
4
|
-
{ resource_id: String, emoji: String? }
|
|
4
|
+
{ resource_id: String, emoji: String?, poll_option_id: String? }
|
|
5
5
|
& WhopSDK::Internal::Type::request_parameters
|
|
6
6
|
|
|
7
7
|
class ReactionCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
@@ -12,15 +12,19 @@ module WhopSDK
|
|
|
12
12
|
|
|
13
13
|
attr_accessor emoji: String?
|
|
14
14
|
|
|
15
|
+
attr_accessor poll_option_id: String?
|
|
16
|
+
|
|
15
17
|
def initialize: (
|
|
16
18
|
resource_id: String,
|
|
17
19
|
?emoji: String?,
|
|
20
|
+
?poll_option_id: String?,
|
|
18
21
|
?request_options: WhopSDK::request_opts
|
|
19
22
|
) -> void
|
|
20
23
|
|
|
21
24
|
def to_hash: -> {
|
|
22
25
|
resource_id: String,
|
|
23
26
|
emoji: String?,
|
|
27
|
+
poll_option_id: String?,
|
|
24
28
|
request_options: WhopSDK::RequestOptions
|
|
25
29
|
}
|
|
26
30
|
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type reaction_delete_params =
|
|
4
|
+
{ emoji: String? } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class ReactionDeleteParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor emoji: String?
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
?emoji: String?,
|
|
14
|
+
?request_options: WhopSDK::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
emoji: String?,
|
|
19
|
+
request_options: WhopSDK::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type upload_status = :pending | :processing | :ready | :failed
|
|
4
|
+
|
|
5
|
+
module UploadStatus
|
|
6
|
+
extend WhopSDK::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
PENDING: :pending
|
|
9
|
+
PROCESSING: :processing
|
|
10
|
+
READY: :ready
|
|
11
|
+
FAILED: :failed
|
|
12
|
+
|
|
13
|
+
def self?.values: -> ::Array[WhopSDK::Models::upload_status]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type verification_error_code =
|
|
4
|
+
:abandoned
|
|
5
|
+
| :consent_declined
|
|
6
|
+
| :country_not_supported
|
|
7
|
+
| :device_not_supported
|
|
8
|
+
| :document_expired
|
|
9
|
+
| :document_type_not_supported
|
|
10
|
+
| :document_unverified_other
|
|
11
|
+
| :email_unverified_other
|
|
12
|
+
| :email_verification_declined
|
|
13
|
+
| :id_number_insufficient_document_data
|
|
14
|
+
| :id_number_mismatch
|
|
15
|
+
| :id_number_unverified_other
|
|
16
|
+
| :phone_unverified_other
|
|
17
|
+
| :phone_verification_declined
|
|
18
|
+
| :selfie_document_missing_photo
|
|
19
|
+
| :selfie_face_mismatch
|
|
20
|
+
| :selfie_manipulated
|
|
21
|
+
| :selfie_unverified_other
|
|
22
|
+
| :under_supported_age
|
|
23
|
+
|
|
24
|
+
module VerificationErrorCode
|
|
25
|
+
extend WhopSDK::Internal::Type::Enum
|
|
26
|
+
|
|
27
|
+
ABANDONED: :abandoned
|
|
28
|
+
CONSENT_DECLINED: :consent_declined
|
|
29
|
+
COUNTRY_NOT_SUPPORTED: :country_not_supported
|
|
30
|
+
DEVICE_NOT_SUPPORTED: :device_not_supported
|
|
31
|
+
DOCUMENT_EXPIRED: :document_expired
|
|
32
|
+
DOCUMENT_TYPE_NOT_SUPPORTED: :document_type_not_supported
|
|
33
|
+
DOCUMENT_UNVERIFIED_OTHER: :document_unverified_other
|
|
34
|
+
EMAIL_UNVERIFIED_OTHER: :email_unverified_other
|
|
35
|
+
EMAIL_VERIFICATION_DECLINED: :email_verification_declined
|
|
36
|
+
ID_NUMBER_INSUFFICIENT_DOCUMENT_DATA: :id_number_insufficient_document_data
|
|
37
|
+
ID_NUMBER_MISMATCH: :id_number_mismatch
|
|
38
|
+
ID_NUMBER_UNVERIFIED_OTHER: :id_number_unverified_other
|
|
39
|
+
PHONE_UNVERIFIED_OTHER: :phone_unverified_other
|
|
40
|
+
PHONE_VERIFICATION_DECLINED: :phone_verification_declined
|
|
41
|
+
SELFIE_DOCUMENT_MISSING_PHOTO: :selfie_document_missing_photo
|
|
42
|
+
SELFIE_FACE_MISMATCH: :selfie_face_mismatch
|
|
43
|
+
SELFIE_MANIPULATED: :selfie_manipulated
|
|
44
|
+
SELFIE_UNVERIFIED_OTHER: :selfie_unverified_other
|
|
45
|
+
UNDER_SUPPORTED_AGE: :under_supported_age
|
|
46
|
+
|
|
47
|
+
def self?.values: -> ::Array[WhopSDK::Models::verification_error_code]
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -3,115 +3,33 @@ module WhopSDK
|
|
|
3
3
|
type verification_retrieve_response =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
-
last_error_code: WhopSDK::Models::
|
|
6
|
+
last_error_code: WhopSDK::Models::verification_error_code?,
|
|
7
7
|
last_error_reason: String?,
|
|
8
|
-
status: WhopSDK::Models::
|
|
8
|
+
status: WhopSDK::Models::verification_status
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
class VerificationRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
12
12
|
attr_accessor id: String
|
|
13
13
|
|
|
14
|
-
attr_accessor last_error_code: WhopSDK::Models::
|
|
14
|
+
attr_accessor last_error_code: WhopSDK::Models::verification_error_code?
|
|
15
15
|
|
|
16
16
|
attr_accessor last_error_reason: String?
|
|
17
17
|
|
|
18
|
-
attr_accessor status: WhopSDK::Models::
|
|
18
|
+
attr_accessor status: WhopSDK::Models::verification_status
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
id: String,
|
|
22
|
-
last_error_code: WhopSDK::Models::
|
|
22
|
+
last_error_code: WhopSDK::Models::verification_error_code?,
|
|
23
23
|
last_error_reason: String?,
|
|
24
|
-
status: WhopSDK::Models::
|
|
24
|
+
status: WhopSDK::Models::verification_status
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
id: String,
|
|
29
|
-
last_error_code: WhopSDK::Models::
|
|
29
|
+
last_error_code: WhopSDK::Models::verification_error_code?,
|
|
30
30
|
last_error_reason: String?,
|
|
31
|
-
status: WhopSDK::Models::
|
|
31
|
+
status: WhopSDK::Models::verification_status
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
type last_error_code =
|
|
35
|
-
:abandoned
|
|
36
|
-
| :consent_declined
|
|
37
|
-
| :country_not_supported
|
|
38
|
-
| :device_not_supported
|
|
39
|
-
| :document_expired
|
|
40
|
-
| :document_type_not_supported
|
|
41
|
-
| :document_unverified_other
|
|
42
|
-
| :email_unverified_other
|
|
43
|
-
| :email_verification_declined
|
|
44
|
-
| :id_number_insufficient_document_data
|
|
45
|
-
| :id_number_mismatch
|
|
46
|
-
| :id_number_unverified_other
|
|
47
|
-
| :phone_unverified_other
|
|
48
|
-
| :phone_verification_declined
|
|
49
|
-
| :selfie_document_missing_photo
|
|
50
|
-
| :selfie_face_mismatch
|
|
51
|
-
| :selfie_manipulated
|
|
52
|
-
| :selfie_unverified_other
|
|
53
|
-
| :under_supported_age
|
|
54
|
-
|
|
55
|
-
module LastErrorCode
|
|
56
|
-
extend WhopSDK::Internal::Type::Enum
|
|
57
|
-
|
|
58
|
-
ABANDONED: :abandoned
|
|
59
|
-
CONSENT_DECLINED: :consent_declined
|
|
60
|
-
COUNTRY_NOT_SUPPORTED: :country_not_supported
|
|
61
|
-
DEVICE_NOT_SUPPORTED: :device_not_supported
|
|
62
|
-
DOCUMENT_EXPIRED: :document_expired
|
|
63
|
-
DOCUMENT_TYPE_NOT_SUPPORTED: :document_type_not_supported
|
|
64
|
-
DOCUMENT_UNVERIFIED_OTHER: :document_unverified_other
|
|
65
|
-
EMAIL_UNVERIFIED_OTHER: :email_unverified_other
|
|
66
|
-
EMAIL_VERIFICATION_DECLINED: :email_verification_declined
|
|
67
|
-
ID_NUMBER_INSUFFICIENT_DOCUMENT_DATA: :id_number_insufficient_document_data
|
|
68
|
-
ID_NUMBER_MISMATCH: :id_number_mismatch
|
|
69
|
-
ID_NUMBER_UNVERIFIED_OTHER: :id_number_unverified_other
|
|
70
|
-
PHONE_UNVERIFIED_OTHER: :phone_unverified_other
|
|
71
|
-
PHONE_VERIFICATION_DECLINED: :phone_verification_declined
|
|
72
|
-
SELFIE_DOCUMENT_MISSING_PHOTO: :selfie_document_missing_photo
|
|
73
|
-
SELFIE_FACE_MISMATCH: :selfie_face_mismatch
|
|
74
|
-
SELFIE_MANIPULATED: :selfie_manipulated
|
|
75
|
-
SELFIE_UNVERIFIED_OTHER: :selfie_unverified_other
|
|
76
|
-
UNDER_SUPPORTED_AGE: :under_supported_age
|
|
77
|
-
|
|
78
|
-
def self?.values: -> ::Array[WhopSDK::Models::VerificationRetrieveResponse::last_error_code]
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
type status =
|
|
82
|
-
:requires_input
|
|
83
|
-
| :processing
|
|
84
|
-
| :verified
|
|
85
|
-
| :canceled
|
|
86
|
-
| :created
|
|
87
|
-
| :started
|
|
88
|
-
| :submitted
|
|
89
|
-
| :approved
|
|
90
|
-
| :declined
|
|
91
|
-
| :resubmission_requested
|
|
92
|
-
| :expired
|
|
93
|
-
| :abandoned
|
|
94
|
-
| :review
|
|
95
|
-
|
|
96
|
-
module Status
|
|
97
|
-
extend WhopSDK::Internal::Type::Enum
|
|
98
|
-
|
|
99
|
-
REQUIRES_INPUT: :requires_input
|
|
100
|
-
PROCESSING: :processing
|
|
101
|
-
VERIFIED: :verified
|
|
102
|
-
CANCELED: :canceled
|
|
103
|
-
CREATED: :created
|
|
104
|
-
STARTED: :started
|
|
105
|
-
SUBMITTED: :submitted
|
|
106
|
-
APPROVED: :approved
|
|
107
|
-
DECLINED: :declined
|
|
108
|
-
RESUBMISSION_REQUESTED: :resubmission_requested
|
|
109
|
-
EXPIRED: :expired
|
|
110
|
-
ABANDONED: :abandoned
|
|
111
|
-
REVIEW: :review
|
|
112
|
-
|
|
113
|
-
def self?.values: -> ::Array[WhopSDK::Models::VerificationRetrieveResponse::status]
|
|
114
|
-
end
|
|
115
33
|
end
|
|
116
34
|
end
|
|
117
35
|
end
|