Class: WhopSDK::Models::LedgerAccountRetrieveResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::LedgerAccountRetrieveResponse
- Defined in:
- lib/whop_sdk/models/ledger_account_retrieve_response.rb
Overview
Defined Under Namespace
Modules: LedgerType, Owner, PaymentsApprovalStatus Classes: Balance, PayoutAccountDetails
Instance Attribute Summary collapse
-
#balances ⇒ Array<WhopSDK::Models::LedgerAccountRetrieveResponse::Balance>
The balances associated with the account.
-
#id ⇒ String
The unique identifier for the ledger account.
-
#ledger_type ⇒ Symbol, WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerType
The type of ledger account.
-
#owner ⇒ WhopSDK::Models::LedgerAccountRetrieveResponse::Owner::User, ...
The owner of the ledger account.
-
#payments_approval_status ⇒ Symbol, ...
The different approval statuses an account can have.
-
#payout_account_details ⇒ WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails?
The payout account associated with the LedgerAccount, if any.
-
#transfer_fee ⇒ Float?
The fee for transfers, if applicable.
Class Method Summary collapse
- .values ⇒ Array<Symbol>
- .variants ⇒ Array(WhopSDK::Models::LedgerAccountRetrieveResponse::Owner::User, WhopSDK::Models::LedgerAccountRetrieveResponse::Owner::Company)
Instance Method Summary collapse
-
#initialize(id:, route:, title:, typename: :Company) ⇒ Object
constructor
Some parameter documentations has been truncated, see Owner::Company for more details.
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:, route:, title:, typename: :Company) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::LedgerAccountRetrieveResponse::Owner::Company for more details.
A company is a seller on Whop. Companies own products, manage members, and receive payouts.
|
|
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 97
|
Instance Attribute Details
#balances ⇒ Array<WhopSDK::Models::LedgerAccountRetrieveResponse::Balance>
The balances associated with the account.
17 18 |
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 17 required :balances, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Models::LedgerAccountRetrieveResponse::Balance] } |
#id ⇒ String
The unique identifier for the ledger account.
11 |
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 11 required :id, String |
#ledger_type ⇒ Symbol, WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerType
The type of ledger account.
24 |
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 24 required :ledger_type, enum: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerType } |
#owner ⇒ WhopSDK::Models::LedgerAccountRetrieveResponse::Owner::User, ...
The owner of the ledger account.
30 |
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 30 required :owner, union: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::Owner } |
#payments_approval_status ⇒ Symbol, ...
The different approval statuses an account can have.
36 37 38 |
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 36 required :payments_approval_status, enum: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::PaymentsApprovalStatus }, nil?: true |
#payout_account_details ⇒ WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails?
The payout account associated with the LedgerAccount, if any.
44 45 46 |
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 44 required :payout_account_details, -> { WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails }, nil?: true |
#transfer_fee ⇒ Float?
The fee for transfers, if applicable.
52 |
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 52 required :transfer_fee, Float, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 118
|
.variants ⇒ Array(WhopSDK::Models::LedgerAccountRetrieveResponse::Owner::User, WhopSDK::Models::LedgerAccountRetrieveResponse::Owner::Company)
|
|
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 216
|