Class: WhopSDK::Models::UserBalance::Cash
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::UserBalance::Cash
- Defined in:
- lib/whop_sdk/models/user_balance.rb,
sig/whop_sdk/models/user_balance.rbs
Instance Attribute Summary collapse
-
#balance ⇒ Float
Available balance in the native currency.
-
#balance_usd ⇒ Float
Available balance converted to USD.
-
#currency ⇒ String
Lowercase ISO currency code, such as
usdoreur. -
#pending_balance_usd ⇒ Float
Pending balance converted to USD.
-
#reserve_balance_usd ⇒ Float
Reserved balance converted to USD.
-
#total_withdrawable_balance ⇒ Float
Withdrawable amount in the native currency.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #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 ⇒ Object
109 |
# File 'sig/whop_sdk/models/user_balance.rbs', line 109
def initialize: (
|
Instance Attribute Details
#balance ⇒ Float
Available balance in the native currency.
124 |
# File 'lib/whop_sdk/models/user_balance.rb', line 124 required :balance, Float |
#balance_usd ⇒ Float
Available balance converted to USD.
130 |
# File 'lib/whop_sdk/models/user_balance.rb', line 130 required :balance_usd, Float |
#currency ⇒ String
Lowercase ISO currency code, such as usd or eur.
136 |
# File 'lib/whop_sdk/models/user_balance.rb', line 136 required :currency, String |
#pending_balance_usd ⇒ Float
Pending balance converted to USD.
142 |
# File 'lib/whop_sdk/models/user_balance.rb', line 142 required :pending_balance_usd, Float |
#reserve_balance_usd ⇒ Float
Reserved balance converted to USD.
148 |
# File 'lib/whop_sdk/models/user_balance.rb', line 148 required :reserve_balance_usd, Float |
#total_withdrawable_balance ⇒ Float
Withdrawable amount in the native currency.
154 |
# File 'lib/whop_sdk/models/user_balance.rb', line 154 required :total_withdrawable_balance, Float |
Instance Method Details
#to_hash ⇒ {
118 |
# File 'sig/whop_sdk/models/user_balance.rbs', line 118
def to_hash: -> {
|