Class: WhopSDK::Models::UserBalance::Cash

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/user_balance.rb,
sig/whop_sdk/models/user_balance.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#initializeObject



109
# File 'sig/whop_sdk/models/user_balance.rbs', line 109

def initialize: (

Instance Attribute Details

#balanceFloat

Available balance in the native currency.

Parameters:

  • value (Float)

Returns:

  • (Float)


124
# File 'lib/whop_sdk/models/user_balance.rb', line 124

required :balance, Float

#balance_usdFloat

Available balance converted to USD.

Parameters:

  • value (Float)

Returns:

  • (Float)


130
# File 'lib/whop_sdk/models/user_balance.rb', line 130

required :balance_usd, Float

#currencyString

Lowercase ISO currency code, such as usd or eur.

Parameters:

  • value (String)

Returns:

  • (String)


136
# File 'lib/whop_sdk/models/user_balance.rb', line 136

required :currency, String

#pending_balance_usdFloat

Pending balance converted to USD.

Parameters:

  • value (Float)

Returns:

  • (Float)


142
# File 'lib/whop_sdk/models/user_balance.rb', line 142

required :pending_balance_usd, Float

#reserve_balance_usdFloat

Reserved balance converted to USD.

Parameters:

  • value (Float)

Returns:

  • (Float)


148
# File 'lib/whop_sdk/models/user_balance.rb', line 148

required :reserve_balance_usd, Float

#total_withdrawable_balanceFloat

Withdrawable amount in the native currency.

Parameters:

  • value (Float)

Returns:

  • (Float)


154
# File 'lib/whop_sdk/models/user_balance.rb', line 154

required :total_withdrawable_balance, Float

Instance Method Details

#to_hash{

Returns:

  • ({)


118
# File 'sig/whop_sdk/models/user_balance.rbs', line 118

def to_hash: -> {