whop_sdk 0.0.25 → 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 +15 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +4 -0
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/whop_sdk/models/{ai_chat_create_response.rb → ai_chat.rb} +5 -5
- data/lib/whop_sdk/models/api_version.rb +17 -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_create_response.rb → company_token_transaction.rb} +16 -31
- data/lib/whop_sdk/models/company_token_transaction_list_params.rb +3 -17
- data/lib/whop_sdk/models/company_token_transaction_list_response.rb +3 -18
- 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_create_response.rb → dm_member.rb} +8 -39
- data/lib/whop_sdk/models/dm_member_list_response.rb +3 -19
- data/lib/whop_sdk/models/dm_member_update_params.rb +6 -34
- 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/payment.rb +63 -1
- data/lib/whop_sdk/models/payment_list_response.rb +63 -1
- 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/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 +44 -0
- data/lib/whop_sdk/resources/ai_chats.rb +6 -6
- data/lib/whop_sdk/resources/authorized_users.rb +4 -4
- data/lib/whop_sdk/resources/company_token_transactions.rb +5 -5
- data/lib/whop_sdk/resources/dm_channels.rb +151 -0
- data/lib/whop_sdk/resources/dm_members.rb +8 -8
- 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/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 +25 -15
- data/rbi/whop_sdk/client.rbi +3 -0
- data/rbi/whop_sdk/models/{ai_chat_update_response.rbi → ai_chat.rbi} +7 -17
- data/rbi/whop_sdk/models/api_version.rbi +21 -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_create_response.rbi → company_token_transaction.rbi} +20 -91
- data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +3 -53
- data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +3 -49
- 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_list_response.rbi +3 -52
- data/rbi/whop_sdk/models/dm_member_update_params.rbi +6 -79
- 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/payment.rbi +88 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +100 -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/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 +45 -0
- data/rbi/whop_sdk/resources/ai_chats.rbi +3 -3
- data/rbi/whop_sdk/resources/authorized_users.rbi +3 -3
- data/rbi/whop_sdk/resources/company_token_transactions.rbi +3 -5
- data/rbi/whop_sdk/resources/dm_channels.rbi +121 -0
- data/rbi/whop_sdk/resources/dm_members.rbi +5 -7
- 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/webhooks.rbi +6 -10
- data/rbi/whop_sdk/resources/withdrawals.rbi +2 -2
- data/sig/whop_sdk/client.rbs +2 -0
- data/sig/whop_sdk/models/{ai_chat_update_response.rbs → ai_chat.rbs} +6 -6
- data/sig/whop_sdk/models/api_version.rbs +15 -0
- 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_create_response.rbs → company_token_transaction.rbs} +18 -30
- data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +4 -16
- data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +4 -16
- 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_list_response.rbs +4 -18
- data/sig/whop_sdk/models/dm_member_update_params.rbs +8 -34
- 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_update_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/payment.rbs +47 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +47 -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/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 +44 -0
- data/sig/whop_sdk/resources/ai_chats.rbs +3 -3
- data/sig/whop_sdk/resources/authorized_users.rbs +1 -1
- data/sig/whop_sdk/resources/company_token_transactions.rbs +3 -3
- data/sig/whop_sdk/resources/dm_channels.rbs +36 -0
- data/sig/whop_sdk/resources/dm_members.rbs +5 -5
- 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/webhooks.rbs +6 -6
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -2
- metadata +77 -47
- data/lib/whop_sdk/models/ai_chat_retrieve_response.rb +0 -89
- data/lib/whop_sdk/models/ai_chat_update_response.rb +0 -89
- data/lib/whop_sdk/models/company_token_transaction_retrieve_response.rb +0 -180
- data/lib/whop_sdk/models/dm_member_retrieve_response.rb +0 -94
- data/lib/whop_sdk/models/dm_member_update_response.rb +0 -94
- 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/ai_chat_create_response.rbi +0 -128
- data/rbi/whop_sdk/models/ai_chat_retrieve_response.rbi +0 -128
- data/rbi/whop_sdk/models/company_token_transaction_retrieve_response.rbi +0 -312
- data/rbi/whop_sdk/models/dm_member_create_response.rbi +0 -179
- data/rbi/whop_sdk/models/dm_member_retrieve_response.rbi +0 -179
- data/rbi/whop_sdk/models/dm_member_update_response.rbi +0 -179
- 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/ai_chat_create_response.rbs +0 -65
- data/sig/whop_sdk/models/ai_chat_retrieve_response.rbs +0 -65
- data/sig/whop_sdk/models/company_token_transaction_retrieve_response.rbs +0 -115
- data/sig/whop_sdk/models/dm_member_create_response.rbs +0 -71
- data/sig/whop_sdk/models/dm_member_retrieve_response.rbs +0 -71
- data/sig/whop_sdk/models/dm_member_update_response.rbs +0 -71
- data/sig/whop_sdk/models/lead_create_response.rbs +0 -104
- data/sig/whop_sdk/models/lead_retrieve_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
|
@@ -1,568 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module WhopSDK
|
|
4
|
-
module Models
|
|
5
|
-
class WithdrawalRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
WhopSDK::Models::WithdrawalRetrieveResponse,
|
|
10
|
-
WhopSDK::Internal::AnyHash
|
|
11
|
-
)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# Internal ID of the withdrawal request.
|
|
15
|
-
sig { returns(String) }
|
|
16
|
-
attr_accessor :id
|
|
17
|
-
|
|
18
|
-
# How much money was attempted to be withdrawn, in a float type.
|
|
19
|
-
sig { returns(Float) }
|
|
20
|
-
attr_accessor :amount
|
|
21
|
-
|
|
22
|
-
# When the withdrawal request was created.
|
|
23
|
-
sig { returns(Time) }
|
|
24
|
-
attr_accessor :created_at
|
|
25
|
-
|
|
26
|
-
# The currency of the withdrawal request.
|
|
27
|
-
sig { returns(WhopSDK::Currency::TaggedSymbol) }
|
|
28
|
-
attr_accessor :currency
|
|
29
|
-
|
|
30
|
-
# The different error codes a payout can be in.
|
|
31
|
-
sig do
|
|
32
|
-
returns(
|
|
33
|
-
T.nilable(
|
|
34
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
35
|
-
)
|
|
36
|
-
)
|
|
37
|
-
end
|
|
38
|
-
attr_accessor :error_code
|
|
39
|
-
|
|
40
|
-
# The error message for the withdrawal, if any.
|
|
41
|
-
sig { returns(T.nilable(String)) }
|
|
42
|
-
attr_accessor :error_message
|
|
43
|
-
|
|
44
|
-
# The estimated availability date for the withdrawal, if any.
|
|
45
|
-
sig { returns(T.nilable(Time)) }
|
|
46
|
-
attr_accessor :estimated_availability
|
|
47
|
-
|
|
48
|
-
# The fee amount that was charged for the withdrawal. This is in the same currency
|
|
49
|
-
# as the withdrawal amount.
|
|
50
|
-
sig { returns(Float) }
|
|
51
|
-
attr_accessor :fee_amount
|
|
52
|
-
|
|
53
|
-
# The different fee types for a withdrawal.
|
|
54
|
-
sig { returns(T.nilable(WhopSDK::WithdrawalFeeTypes::TaggedSymbol)) }
|
|
55
|
-
attr_accessor :fee_type
|
|
56
|
-
|
|
57
|
-
# The ledger account associated with the withdrawal.
|
|
58
|
-
sig do
|
|
59
|
-
returns(WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount)
|
|
60
|
-
end
|
|
61
|
-
attr_reader :ledger_account
|
|
62
|
-
|
|
63
|
-
sig do
|
|
64
|
-
params(
|
|
65
|
-
ledger_account:
|
|
66
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount::OrHash
|
|
67
|
-
).void
|
|
68
|
-
end
|
|
69
|
-
attr_writer :ledger_account
|
|
70
|
-
|
|
71
|
-
# The markup fee that was charged for the withdrawal. This is in the same currency
|
|
72
|
-
# as the withdrawal amount. This only applies to platform accounts using Whop
|
|
73
|
-
# Rails.
|
|
74
|
-
sig { returns(Float) }
|
|
75
|
-
attr_accessor :markup_fee
|
|
76
|
-
|
|
77
|
-
# The payout token used for the withdrawal, if applicable.
|
|
78
|
-
sig do
|
|
79
|
-
returns(
|
|
80
|
-
T.nilable(WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken)
|
|
81
|
-
)
|
|
82
|
-
end
|
|
83
|
-
attr_reader :payout_token
|
|
84
|
-
|
|
85
|
-
sig do
|
|
86
|
-
params(
|
|
87
|
-
payout_token:
|
|
88
|
-
T.nilable(
|
|
89
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken::OrHash
|
|
90
|
-
)
|
|
91
|
-
).void
|
|
92
|
-
end
|
|
93
|
-
attr_writer :payout_token
|
|
94
|
-
|
|
95
|
-
# The speed of the withdrawal.
|
|
96
|
-
sig { returns(WhopSDK::WithdrawalSpeeds::TaggedSymbol) }
|
|
97
|
-
attr_accessor :speed
|
|
98
|
-
|
|
99
|
-
# Status of the withdrawal.
|
|
100
|
-
sig { returns(WhopSDK::WithdrawalStatus::TaggedSymbol) }
|
|
101
|
-
attr_accessor :status
|
|
102
|
-
|
|
103
|
-
# The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
104
|
-
# available.
|
|
105
|
-
sig { returns(T.nilable(String)) }
|
|
106
|
-
attr_accessor :trace_code
|
|
107
|
-
|
|
108
|
-
# A withdrawal request.
|
|
109
|
-
sig do
|
|
110
|
-
params(
|
|
111
|
-
id: String,
|
|
112
|
-
amount: Float,
|
|
113
|
-
created_at: Time,
|
|
114
|
-
currency: WhopSDK::Currency::OrSymbol,
|
|
115
|
-
error_code:
|
|
116
|
-
T.nilable(
|
|
117
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::OrSymbol
|
|
118
|
-
),
|
|
119
|
-
error_message: T.nilable(String),
|
|
120
|
-
estimated_availability: T.nilable(Time),
|
|
121
|
-
fee_amount: Float,
|
|
122
|
-
fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::OrSymbol),
|
|
123
|
-
ledger_account:
|
|
124
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount::OrHash,
|
|
125
|
-
markup_fee: Float,
|
|
126
|
-
payout_token:
|
|
127
|
-
T.nilable(
|
|
128
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken::OrHash
|
|
129
|
-
),
|
|
130
|
-
speed: WhopSDK::WithdrawalSpeeds::OrSymbol,
|
|
131
|
-
status: WhopSDK::WithdrawalStatus::OrSymbol,
|
|
132
|
-
trace_code: T.nilable(String)
|
|
133
|
-
).returns(T.attached_class)
|
|
134
|
-
end
|
|
135
|
-
def self.new(
|
|
136
|
-
# Internal ID of the withdrawal request.
|
|
137
|
-
id:,
|
|
138
|
-
# How much money was attempted to be withdrawn, in a float type.
|
|
139
|
-
amount:,
|
|
140
|
-
# When the withdrawal request was created.
|
|
141
|
-
created_at:,
|
|
142
|
-
# The currency of the withdrawal request.
|
|
143
|
-
currency:,
|
|
144
|
-
# The different error codes a payout can be in.
|
|
145
|
-
error_code:,
|
|
146
|
-
# The error message for the withdrawal, if any.
|
|
147
|
-
error_message:,
|
|
148
|
-
# The estimated availability date for the withdrawal, if any.
|
|
149
|
-
estimated_availability:,
|
|
150
|
-
# The fee amount that was charged for the withdrawal. This is in the same currency
|
|
151
|
-
# as the withdrawal amount.
|
|
152
|
-
fee_amount:,
|
|
153
|
-
# The different fee types for a withdrawal.
|
|
154
|
-
fee_type:,
|
|
155
|
-
# The ledger account associated with the withdrawal.
|
|
156
|
-
ledger_account:,
|
|
157
|
-
# The markup fee that was charged for the withdrawal. This is in the same currency
|
|
158
|
-
# as the withdrawal amount. This only applies to platform accounts using Whop
|
|
159
|
-
# Rails.
|
|
160
|
-
markup_fee:,
|
|
161
|
-
# The payout token used for the withdrawal, if applicable.
|
|
162
|
-
payout_token:,
|
|
163
|
-
# The speed of the withdrawal.
|
|
164
|
-
speed:,
|
|
165
|
-
# Status of the withdrawal.
|
|
166
|
-
status:,
|
|
167
|
-
# The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
168
|
-
# available.
|
|
169
|
-
trace_code:
|
|
170
|
-
)
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
sig do
|
|
174
|
-
override.returns(
|
|
175
|
-
{
|
|
176
|
-
id: String,
|
|
177
|
-
amount: Float,
|
|
178
|
-
created_at: Time,
|
|
179
|
-
currency: WhopSDK::Currency::TaggedSymbol,
|
|
180
|
-
error_code:
|
|
181
|
-
T.nilable(
|
|
182
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
183
|
-
),
|
|
184
|
-
error_message: T.nilable(String),
|
|
185
|
-
estimated_availability: T.nilable(Time),
|
|
186
|
-
fee_amount: Float,
|
|
187
|
-
fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::TaggedSymbol),
|
|
188
|
-
ledger_account:
|
|
189
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount,
|
|
190
|
-
markup_fee: Float,
|
|
191
|
-
payout_token:
|
|
192
|
-
T.nilable(
|
|
193
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken
|
|
194
|
-
),
|
|
195
|
-
speed: WhopSDK::WithdrawalSpeeds::TaggedSymbol,
|
|
196
|
-
status: WhopSDK::WithdrawalStatus::TaggedSymbol,
|
|
197
|
-
trace_code: T.nilable(String)
|
|
198
|
-
}
|
|
199
|
-
)
|
|
200
|
-
end
|
|
201
|
-
def to_hash
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
# The different error codes a payout can be in.
|
|
205
|
-
module ErrorCode
|
|
206
|
-
extend WhopSDK::Internal::Type::Enum
|
|
207
|
-
|
|
208
|
-
TaggedSymbol =
|
|
209
|
-
T.type_alias do
|
|
210
|
-
T.all(
|
|
211
|
-
Symbol,
|
|
212
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode
|
|
213
|
-
)
|
|
214
|
-
end
|
|
215
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
216
|
-
|
|
217
|
-
ACCOUNT_CLOSED =
|
|
218
|
-
T.let(
|
|
219
|
-
:account_closed,
|
|
220
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
221
|
-
)
|
|
222
|
-
ACCOUNT_DOES_NOT_EXIST =
|
|
223
|
-
T.let(
|
|
224
|
-
:account_does_not_exist,
|
|
225
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
226
|
-
)
|
|
227
|
-
ACCOUNT_INFORMATION_INVALID =
|
|
228
|
-
T.let(
|
|
229
|
-
:account_information_invalid,
|
|
230
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
231
|
-
)
|
|
232
|
-
ACCOUNT_NUMBER_INVALID_REGION =
|
|
233
|
-
T.let(
|
|
234
|
-
:account_number_invalid_region,
|
|
235
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
236
|
-
)
|
|
237
|
-
ACCOUNT_FROZEN =
|
|
238
|
-
T.let(
|
|
239
|
-
:account_frozen,
|
|
240
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
241
|
-
)
|
|
242
|
-
ACCOUNT_LOOKUP_FAILED =
|
|
243
|
-
T.let(
|
|
244
|
-
:account_lookup_failed,
|
|
245
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
246
|
-
)
|
|
247
|
-
ACCOUNT_NOT_FOUND =
|
|
248
|
-
T.let(
|
|
249
|
-
:account_not_found,
|
|
250
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
251
|
-
)
|
|
252
|
-
AMOUNT_OUT_OF_BOUNDS =
|
|
253
|
-
T.let(
|
|
254
|
-
:amount_out_of_bounds,
|
|
255
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
256
|
-
)
|
|
257
|
-
ATTRIBUTES_NOT_VALIDATED =
|
|
258
|
-
T.let(
|
|
259
|
-
:attributes_not_validated,
|
|
260
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
261
|
-
)
|
|
262
|
-
B2B_PAYMENTS_PROHIBITED =
|
|
263
|
-
T.let(
|
|
264
|
-
:b2b_payments_prohibited,
|
|
265
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
266
|
-
)
|
|
267
|
-
BANK_STATEMENT_REQUIRED =
|
|
268
|
-
T.let(
|
|
269
|
-
:bank_statement_required,
|
|
270
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
271
|
-
)
|
|
272
|
-
COMPLIANCE_REVIEW =
|
|
273
|
-
T.let(
|
|
274
|
-
:compliance_review,
|
|
275
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
276
|
-
)
|
|
277
|
-
CURRENCY_NOT_SUPPORTED =
|
|
278
|
-
T.let(
|
|
279
|
-
:currency_not_supported,
|
|
280
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
281
|
-
)
|
|
282
|
-
DEPOSIT_CANCELED =
|
|
283
|
-
T.let(
|
|
284
|
-
:deposit_canceled,
|
|
285
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
286
|
-
)
|
|
287
|
-
DEPOSIT_FAILED =
|
|
288
|
-
T.let(
|
|
289
|
-
:deposit_failed,
|
|
290
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
291
|
-
)
|
|
292
|
-
DEPOSIT_REJECTED =
|
|
293
|
-
T.let(
|
|
294
|
-
:deposit_rejected,
|
|
295
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
296
|
-
)
|
|
297
|
-
DESTINATION_UNAVAILABLE =
|
|
298
|
-
T.let(
|
|
299
|
-
:destination_unavailable,
|
|
300
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
301
|
-
)
|
|
302
|
-
EXCEEDED_ACCOUNT_LIMIT =
|
|
303
|
-
T.let(
|
|
304
|
-
:exceeded_account_limit,
|
|
305
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
306
|
-
)
|
|
307
|
-
EXPIRED_QUOTE =
|
|
308
|
-
T.let(
|
|
309
|
-
:expired_quote,
|
|
310
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
311
|
-
)
|
|
312
|
-
GENERIC_PAYOUT_ERROR =
|
|
313
|
-
T.let(
|
|
314
|
-
:generic_payout_error,
|
|
315
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
316
|
-
)
|
|
317
|
-
TECHNICAL_PROBLEM =
|
|
318
|
-
T.let(
|
|
319
|
-
:technical_problem,
|
|
320
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
321
|
-
)
|
|
322
|
-
IDENTIFICATION_NUMBER_INVALID =
|
|
323
|
-
T.let(
|
|
324
|
-
:identification_number_invalid,
|
|
325
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
326
|
-
)
|
|
327
|
-
INVALID_ACCOUNT_NUMBER =
|
|
328
|
-
T.let(
|
|
329
|
-
:invalid_account_number,
|
|
330
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
331
|
-
)
|
|
332
|
-
INVALID_BANK_CODE =
|
|
333
|
-
T.let(
|
|
334
|
-
:invalid_bank_code,
|
|
335
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
336
|
-
)
|
|
337
|
-
INVALID_BENEFICIARY =
|
|
338
|
-
T.let(
|
|
339
|
-
:invalid_beneficiary,
|
|
340
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
341
|
-
)
|
|
342
|
-
INVALID_MAILING_ADDRESS =
|
|
343
|
-
T.let(
|
|
344
|
-
:invalid_mailing_address,
|
|
345
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
346
|
-
)
|
|
347
|
-
INVALID_BRANCH_NUMBER =
|
|
348
|
-
T.let(
|
|
349
|
-
:invalid_branch_number,
|
|
350
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
351
|
-
)
|
|
352
|
-
INVALID_BRANCH_CODE =
|
|
353
|
-
T.let(
|
|
354
|
-
:invalid_branch_code,
|
|
355
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
356
|
-
)
|
|
357
|
-
INVALID_PHONE_NUMBER =
|
|
358
|
-
T.let(
|
|
359
|
-
:invalid_phone_number,
|
|
360
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
361
|
-
)
|
|
362
|
-
INVALID_ROUTING_NUMBER =
|
|
363
|
-
T.let(
|
|
364
|
-
:invalid_routing_number,
|
|
365
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
366
|
-
)
|
|
367
|
-
INVALID_SWIFT_CODE =
|
|
368
|
-
T.let(
|
|
369
|
-
:invalid_swift_code,
|
|
370
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
371
|
-
)
|
|
372
|
-
INVALID_COMPANY_DETAILS =
|
|
373
|
-
T.let(
|
|
374
|
-
:invalid_company_details,
|
|
375
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
376
|
-
)
|
|
377
|
-
MANUAL_CANCELATION =
|
|
378
|
-
T.let(
|
|
379
|
-
:manual_cancelation,
|
|
380
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
381
|
-
)
|
|
382
|
-
MISC_ERROR =
|
|
383
|
-
T.let(
|
|
384
|
-
:misc_error,
|
|
385
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
386
|
-
)
|
|
387
|
-
MISSING_CITY_AND_COUNTRY =
|
|
388
|
-
T.let(
|
|
389
|
-
:missing_city_and_country,
|
|
390
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
391
|
-
)
|
|
392
|
-
MISSING_PHONE_NUMBER =
|
|
393
|
-
T.let(
|
|
394
|
-
:missing_phone_number,
|
|
395
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
396
|
-
)
|
|
397
|
-
MISSING_REMITTANCE_INFO =
|
|
398
|
-
T.let(
|
|
399
|
-
:missing_remittance_info,
|
|
400
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
401
|
-
)
|
|
402
|
-
PAYEE_NAME_INVALID =
|
|
403
|
-
T.let(
|
|
404
|
-
:payee_name_invalid,
|
|
405
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
406
|
-
)
|
|
407
|
-
RECEIVING_ACCOUNT_LOCKED =
|
|
408
|
-
T.let(
|
|
409
|
-
:receiving_account_locked,
|
|
410
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
411
|
-
)
|
|
412
|
-
REJECTED_BY_COMPLIANCE =
|
|
413
|
-
T.let(
|
|
414
|
-
:rejected_by_compliance,
|
|
415
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
416
|
-
)
|
|
417
|
-
RTP_NOT_SUPPORTED =
|
|
418
|
-
T.let(
|
|
419
|
-
:rtp_not_supported,
|
|
420
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
421
|
-
)
|
|
422
|
-
NON_TRANSACTION_ACCOUNT =
|
|
423
|
-
T.let(
|
|
424
|
-
:non_transaction_account,
|
|
425
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
426
|
-
)
|
|
427
|
-
SOURCE_TOKEN_INSUFFICIENT_FUNDS =
|
|
428
|
-
T.let(
|
|
429
|
-
:source_token_insufficient_funds,
|
|
430
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
431
|
-
)
|
|
432
|
-
SSN_INVALID =
|
|
433
|
-
T.let(
|
|
434
|
-
:ssn_invalid,
|
|
435
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
436
|
-
)
|
|
437
|
-
WALLET_SCREENSHOT_REQUIRED =
|
|
438
|
-
T.let(
|
|
439
|
-
:wallet_screenshot_required,
|
|
440
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
441
|
-
)
|
|
442
|
-
UNSUPPORTED_REGION =
|
|
443
|
-
T.let(
|
|
444
|
-
:unsupported_region,
|
|
445
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
446
|
-
)
|
|
447
|
-
|
|
448
|
-
sig do
|
|
449
|
-
override.returns(
|
|
450
|
-
T::Array[
|
|
451
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::ErrorCode::TaggedSymbol
|
|
452
|
-
]
|
|
453
|
-
)
|
|
454
|
-
end
|
|
455
|
-
def self.values
|
|
456
|
-
end
|
|
457
|
-
end
|
|
458
|
-
|
|
459
|
-
class LedgerAccount < WhopSDK::Internal::Type::BaseModel
|
|
460
|
-
OrHash =
|
|
461
|
-
T.type_alias do
|
|
462
|
-
T.any(
|
|
463
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount,
|
|
464
|
-
WhopSDK::Internal::AnyHash
|
|
465
|
-
)
|
|
466
|
-
end
|
|
467
|
-
|
|
468
|
-
# The ID of the LedgerAccount.
|
|
469
|
-
sig { returns(String) }
|
|
470
|
-
attr_accessor :id
|
|
471
|
-
|
|
472
|
-
# The ID of the company associated with this ledger account.
|
|
473
|
-
sig { returns(T.nilable(String)) }
|
|
474
|
-
attr_accessor :company_id
|
|
475
|
-
|
|
476
|
-
# The ledger account associated with the withdrawal.
|
|
477
|
-
sig do
|
|
478
|
-
params(id: String, company_id: T.nilable(String)).returns(
|
|
479
|
-
T.attached_class
|
|
480
|
-
)
|
|
481
|
-
end
|
|
482
|
-
def self.new(
|
|
483
|
-
# The ID of the LedgerAccount.
|
|
484
|
-
id:,
|
|
485
|
-
# The ID of the company associated with this ledger account.
|
|
486
|
-
company_id:
|
|
487
|
-
)
|
|
488
|
-
end
|
|
489
|
-
|
|
490
|
-
sig { override.returns({ id: String, company_id: T.nilable(String) }) }
|
|
491
|
-
def to_hash
|
|
492
|
-
end
|
|
493
|
-
end
|
|
494
|
-
|
|
495
|
-
class PayoutToken < WhopSDK::Internal::Type::BaseModel
|
|
496
|
-
OrHash =
|
|
497
|
-
T.type_alias do
|
|
498
|
-
T.any(
|
|
499
|
-
WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken,
|
|
500
|
-
WhopSDK::Internal::AnyHash
|
|
501
|
-
)
|
|
502
|
-
end
|
|
503
|
-
|
|
504
|
-
# The ID of the payout token
|
|
505
|
-
sig { returns(String) }
|
|
506
|
-
attr_accessor :id
|
|
507
|
-
|
|
508
|
-
# The date and time the payout token was created
|
|
509
|
-
sig { returns(Time) }
|
|
510
|
-
attr_accessor :created_at
|
|
511
|
-
|
|
512
|
-
# The currency code of the payout destination. This is the currency that payouts
|
|
513
|
-
# will be made in for this token.
|
|
514
|
-
sig { returns(String) }
|
|
515
|
-
attr_accessor :destination_currency_code
|
|
516
|
-
|
|
517
|
-
# An optional nickname for the payout token to help the user identify it. This is
|
|
518
|
-
# not used by the provider and is only for the user's reference.
|
|
519
|
-
sig { returns(T.nilable(String)) }
|
|
520
|
-
attr_accessor :nickname
|
|
521
|
-
|
|
522
|
-
# The name of the payer associated with the payout token.
|
|
523
|
-
sig { returns(T.nilable(String)) }
|
|
524
|
-
attr_accessor :payer_name
|
|
525
|
-
|
|
526
|
-
# The payout token used for the withdrawal, if applicable.
|
|
527
|
-
sig do
|
|
528
|
-
params(
|
|
529
|
-
id: String,
|
|
530
|
-
created_at: Time,
|
|
531
|
-
destination_currency_code: String,
|
|
532
|
-
nickname: T.nilable(String),
|
|
533
|
-
payer_name: T.nilable(String)
|
|
534
|
-
).returns(T.attached_class)
|
|
535
|
-
end
|
|
536
|
-
def self.new(
|
|
537
|
-
# The ID of the payout token
|
|
538
|
-
id:,
|
|
539
|
-
# The date and time the payout token was created
|
|
540
|
-
created_at:,
|
|
541
|
-
# The currency code of the payout destination. This is the currency that payouts
|
|
542
|
-
# will be made in for this token.
|
|
543
|
-
destination_currency_code:,
|
|
544
|
-
# An optional nickname for the payout token to help the user identify it. This is
|
|
545
|
-
# not used by the provider and is only for the user's reference.
|
|
546
|
-
nickname:,
|
|
547
|
-
# The name of the payer associated with the payout token.
|
|
548
|
-
payer_name:
|
|
549
|
-
)
|
|
550
|
-
end
|
|
551
|
-
|
|
552
|
-
sig do
|
|
553
|
-
override.returns(
|
|
554
|
-
{
|
|
555
|
-
id: String,
|
|
556
|
-
created_at: Time,
|
|
557
|
-
destination_currency_code: String,
|
|
558
|
-
nickname: T.nilable(String),
|
|
559
|
-
payer_name: T.nilable(String)
|
|
560
|
-
}
|
|
561
|
-
)
|
|
562
|
-
end
|
|
563
|
-
def to_hash
|
|
564
|
-
end
|
|
565
|
-
end
|
|
566
|
-
end
|
|
567
|
-
end
|
|
568
|
-
end
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
module WhopSDK
|
|
2
|
-
module Models
|
|
3
|
-
type ai_chat_create_response =
|
|
4
|
-
{
|
|
5
|
-
id: String,
|
|
6
|
-
blended_token_usage: String,
|
|
7
|
-
created_at: Time,
|
|
8
|
-
last_message_at: Time?,
|
|
9
|
-
message_count: Integer,
|
|
10
|
-
title: String?,
|
|
11
|
-
updated_at: Time,
|
|
12
|
-
user: WhopSDK::Models::AIChatCreateResponse::User
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
class AIChatCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
16
|
-
attr_accessor id: String
|
|
17
|
-
|
|
18
|
-
attr_accessor blended_token_usage: String
|
|
19
|
-
|
|
20
|
-
attr_accessor created_at: Time
|
|
21
|
-
|
|
22
|
-
attr_accessor last_message_at: Time?
|
|
23
|
-
|
|
24
|
-
attr_accessor message_count: Integer
|
|
25
|
-
|
|
26
|
-
attr_accessor title: String?
|
|
27
|
-
|
|
28
|
-
attr_accessor updated_at: Time
|
|
29
|
-
|
|
30
|
-
attr_accessor user: WhopSDK::Models::AIChatCreateResponse::User
|
|
31
|
-
|
|
32
|
-
def initialize: (
|
|
33
|
-
id: String,
|
|
34
|
-
blended_token_usage: String,
|
|
35
|
-
created_at: Time,
|
|
36
|
-
last_message_at: Time?,
|
|
37
|
-
message_count: Integer,
|
|
38
|
-
title: String?,
|
|
39
|
-
updated_at: Time,
|
|
40
|
-
user: WhopSDK::Models::AIChatCreateResponse::User
|
|
41
|
-
) -> void
|
|
42
|
-
|
|
43
|
-
def to_hash: -> {
|
|
44
|
-
id: String,
|
|
45
|
-
blended_token_usage: String,
|
|
46
|
-
created_at: Time,
|
|
47
|
-
last_message_at: Time?,
|
|
48
|
-
message_count: Integer,
|
|
49
|
-
title: String?,
|
|
50
|
-
updated_at: Time,
|
|
51
|
-
user: WhopSDK::Models::AIChatCreateResponse::User
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
type user = { id: String }
|
|
55
|
-
|
|
56
|
-
class User < WhopSDK::Internal::Type::BaseModel
|
|
57
|
-
attr_accessor id: String
|
|
58
|
-
|
|
59
|
-
def initialize: (id: String) -> void
|
|
60
|
-
|
|
61
|
-
def to_hash: -> { id: String }
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
module WhopSDK
|
|
2
|
-
module Models
|
|
3
|
-
type ai_chat_retrieve_response =
|
|
4
|
-
{
|
|
5
|
-
id: String,
|
|
6
|
-
blended_token_usage: String,
|
|
7
|
-
created_at: Time,
|
|
8
|
-
last_message_at: Time?,
|
|
9
|
-
message_count: Integer,
|
|
10
|
-
title: String?,
|
|
11
|
-
updated_at: Time,
|
|
12
|
-
user: WhopSDK::Models::AIChatRetrieveResponse::User
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
class AIChatRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
16
|
-
attr_accessor id: String
|
|
17
|
-
|
|
18
|
-
attr_accessor blended_token_usage: String
|
|
19
|
-
|
|
20
|
-
attr_accessor created_at: Time
|
|
21
|
-
|
|
22
|
-
attr_accessor last_message_at: Time?
|
|
23
|
-
|
|
24
|
-
attr_accessor message_count: Integer
|
|
25
|
-
|
|
26
|
-
attr_accessor title: String?
|
|
27
|
-
|
|
28
|
-
attr_accessor updated_at: Time
|
|
29
|
-
|
|
30
|
-
attr_accessor user: WhopSDK::Models::AIChatRetrieveResponse::User
|
|
31
|
-
|
|
32
|
-
def initialize: (
|
|
33
|
-
id: String,
|
|
34
|
-
blended_token_usage: String,
|
|
35
|
-
created_at: Time,
|
|
36
|
-
last_message_at: Time?,
|
|
37
|
-
message_count: Integer,
|
|
38
|
-
title: String?,
|
|
39
|
-
updated_at: Time,
|
|
40
|
-
user: WhopSDK::Models::AIChatRetrieveResponse::User
|
|
41
|
-
) -> void
|
|
42
|
-
|
|
43
|
-
def to_hash: -> {
|
|
44
|
-
id: String,
|
|
45
|
-
blended_token_usage: String,
|
|
46
|
-
created_at: Time,
|
|
47
|
-
last_message_at: Time?,
|
|
48
|
-
message_count: Integer,
|
|
49
|
-
title: String?,
|
|
50
|
-
updated_at: Time,
|
|
51
|
-
user: WhopSDK::Models::AIChatRetrieveResponse::User
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
type user = { id: String }
|
|
55
|
-
|
|
56
|
-
class User < WhopSDK::Internal::Type::BaseModel
|
|
57
|
-
attr_accessor id: String
|
|
58
|
-
|
|
59
|
-
def initialize: (id: String) -> void
|
|
60
|
-
|
|
61
|
-
def to_hash: -> { id: String }
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|