Class: WhopSDK::Models::User
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::User
- Defined in:
- lib/whop_sdk/models/user.rb,
sig/whop_sdk/models/user.rbs
Overview
Defined Under Namespace
Classes: BalanceHistory, EarningsUsd
Instance Attribute Summary collapse
-
#balance ⇒ WhopSDK::Models::UserBalance?
The user's balance: personal cash + crypto + in-flight treasury deposits, plus account balances for accounts they own.
-
#balance_history ⇒ WhopSDK::Models::User::BalanceHistory?
The user's cumulative wallet balance over time (USD
{ t, v }points plus last/min/max), for the balance chart. -
#bio ⇒ String?
The user's biography.
-
#created_at ⇒ String
When the user was created, as an ISO 8601 timestamp.
-
#earnings_usd ⇒ WhopSDK::Models::User::EarningsUsd?
The user's gross USD income over time.
-
#id ⇒ String
User ID, prefixed
user_. -
#name ⇒ String?
The user's display name.
-
#profile_picture ⇒ Object?
The user's profile picture, an object with a url.
-
#username ⇒ String
The user's unique username.
-
#verification ⇒ Object
Identity verification status for the user's
individual(KYC) andbusiness(KYB) profiles. -
#whop_partner_enabled_at ⇒ String?
When the user became an enrolled Whop Partner, as an ISO 8601 timestamp.
Instance Method Summary collapse
-
#initialize(t:, v:) ⇒ Object
constructor
Cumulative balance points over the requested window, oldest first.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(t:, v:) ⇒ Object
Cumulative balance points over the requested window, oldest first.
|
|
# File 'lib/whop_sdk/models/user.rb', line 82
|
Instance Attribute Details
#balance ⇒ WhopSDK::Models::UserBalance?
The user's balance: personal cash + crypto + in-flight treasury deposits, plus
account balances for accounts they own. Computed only on GET /users/me
self-view for callers with balance-read scope; null otherwise.
19 |
# File 'lib/whop_sdk/models/user.rb', line 19 required :balance, -> { WhopSDK::UserBalance }, nil?: true |
#balance_history ⇒ WhopSDK::Models::User::BalanceHistory?
The user's cumulative wallet balance over time (USD { t, v } points plus
last/min/max), for the balance chart. Opt in with include_balance_history=true
on GET /users/me; populated only for callers with balance-read scope and
null otherwise. A user with no wallet activity returns an empty series.
28 |
# File 'lib/whop_sdk/models/user.rb', line 28 required :balance_history, -> { WhopSDK::User::BalanceHistory }, nil?: true |
#bio ⇒ String?
The user's biography
34 |
# File 'lib/whop_sdk/models/user.rb', line 34 required :bio, String, nil?: true |
#created_at ⇒ String
When the user was created, as an ISO 8601 timestamp
40 |
# File 'lib/whop_sdk/models/user.rb', line 40 required :created_at, String |
#earnings_usd ⇒ WhopSDK::Models::User::EarningsUsd?
The user's gross USD income over time. Populated only on single-user self reads
for callers with balance-read scope; null otherwise.
47 |
# File 'lib/whop_sdk/models/user.rb', line 47 required :earnings_usd, -> { WhopSDK::User::EarningsUsd }, nil?: true |
#id ⇒ String
User ID, prefixed user_.
11 |
# File 'lib/whop_sdk/models/user.rb', line 11 required :id, String |
#name ⇒ String?
The user's display name
53 |
# File 'lib/whop_sdk/models/user.rb', line 53 required :name, String, nil?: true |
#profile_picture ⇒ Object?
The user's profile picture, an object with a url
59 |
# File 'lib/whop_sdk/models/user.rb', line 59 required :profile_picture, WhopSDK::Internal::Type::Unknown, nil?: true |
#username ⇒ String
The user's unique username
65 |
# File 'lib/whop_sdk/models/user.rb', line 65 required :username, String |
#verification ⇒ Object
Identity verification status for the user's individual (KYC) and business
(KYB) profiles. Each is null until created, otherwise a status of
not_started, pending, approved, or rejected.
73 |
# File 'lib/whop_sdk/models/user.rb', line 73 required :verification, WhopSDK::Internal::Type::Unknown |
#whop_partner_enabled_at ⇒ String?
When the user became an enrolled Whop Partner, as an ISO 8601 timestamp. null
if never enrolled.
80 |
# File 'lib/whop_sdk/models/user.rb', line 80 required :whop_partner_enabled_at, String, nil?: true |
Instance Method Details
#to_hash ⇒ {
55 |
# File 'sig/whop_sdk/models/user.rbs', line 55
def to_hash: -> {
|