Class: WhopSDK::Models::LedgerAccountRetrieveResponse::TreasuryBalance

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

Overview

See Also:

  • WhopSDK::Models::LedgerAccountRetrieveResponse#treasury_balance

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

#initialize(balance:, balance_usd:, currency:, pending_balance:, reserve_balance:, total_withdrawable_balance:) ⇒ Object

The balance cache associated with the account by currency.

Parameters:

  • balance (Float)

    The amount of the balance.

  • balance_usd (Float)

    The balance converted to USD.

  • currency (Symbol, WhopSDK::Models::Currency)

    The currency of the balance.

  • pending_balance (Float)

    The amount of the balance that is pending.

  • reserve_balance (Float)

    The amount of the balance that is reserved.

  • total_withdrawable_balance (Float)

    The amount of the balance that is withdrawable.



# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 500

Instance Attribute Details

#balanceFloat

The amount of the balance.

Parameters:

  • value (Float)

Returns:

  • (Float)


468
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 468

required :balance, Float

#balance_usdFloat

The balance converted to USD.

Parameters:

  • value (Float)

Returns:

  • (Float)


474
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 474

required :balance_usd, Float

#currencySymbol, WhopSDK::Models::Currency

The currency of the balance.

Parameters:

  • value (WhopSDK::Models::currency)

Returns:



480
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 480

required :currency, enum: -> { WhopSDK::Currency }

#pending_balanceFloat

The amount of the balance that is pending.

Parameters:

  • value (Float)

Returns:

  • (Float)


486
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 486

required :pending_balance, Float

#reserve_balanceFloat

The amount of the balance that is reserved.

Parameters:

  • value (Float)

Returns:

  • (Float)


492
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 492

required :reserve_balance, Float

#total_withdrawable_balanceFloat

The amount of the balance that is withdrawable.

Parameters:

  • value (Float)

Returns:

  • (Float)


498
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 498

required :total_withdrawable_balance, Float

Instance Method Details

#to_hash{

Returns:

  • ({)


365
# File 'sig/whop_sdk/models/ledger_account_retrieve_response.rbs', line 365

def to_hash: -> {