Class: WhopSDK::Models::LedgerAccountRetrieveResponse::Balance
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::LedgerAccountRetrieveResponse::Balance
- Defined in:
- lib/whop_sdk/models/ledger_account_retrieve_response.rb
Instance Attribute Summary collapse
-
#balance ⇒ Float
The amount of the balance.
-
#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.
Instance Method Summary collapse
-
#initialize(id: , balances: , ledger_account_audit_status: , ledger_type: , owner: , payments_approval_status: , transfer_fee: ) ⇒ Object
constructor
Represents a LedgerAccount.
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(id: , balances: , ledger_account_audit_status: , ledger_type: , owner: , payments_approval_status: , transfer_fee: ) ⇒ Object
Represents a LedgerAccount.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 71 class Balance < WhopSDK::Internal::Type::BaseModel # @!attribute balance # The amount of the balance. # # @return [Float] required :balance, Float # @!attribute currency # The currency of the balance. # # @return [Symbol, WhopSDK::Models::Currency] required :currency, enum: -> { WhopSDK::Currency } # @!attribute pending_balance # The amount of the balance that is pending. # # @return [Float] required :pending_balance, Float # @!attribute reserve_balance # The amount of the balance that is reserved. # # @return [Float] required :reserve_balance, Float # @!method initialize(balance:, currency:, pending_balance:, reserve_balance:) # A cached balance for a LedgerAccount in respect to a currency. # # @param balance [Float] The amount of the balance. # # @param currency [Symbol, WhopSDK::Models::Currency] The currency of the balance. # # @param pending_balance [Float] The amount of the balance that is pending. # # @param reserve_balance [Float] The amount of the balance that is reserved. end |
Instance Attribute Details
#balance ⇒ Float
The amount of the balance.
76 |
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 76 required :balance, Float |
#currency ⇒ Symbol, WhopSDK::Models::Currency
The currency of the balance.
82 |
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 82 required :currency, enum: -> { WhopSDK::Currency } |
#pending_balance ⇒ Float
The amount of the balance that is pending.
88 |
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 88 required :pending_balance, Float |
#reserve_balance ⇒ Float
The amount of the balance that is reserved.
94 |
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 94 required :reserve_balance, Float |