Class: WhopSDK::Models::LedgerAccountRetrieveResponse

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

Overview

Defined Under Namespace

Modules: LedgerAccountAuditStatus, LedgerType, Owner, PaymentsApprovalStatus Classes: Balance

Instance Attribute Summary collapse

Class Method 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(id: , route: , title: , typename: :Company) ⇒ Object

An object representing a (sanitized) company.

Parameters:

  • id (String) (defaults to: )

    The ID (tag) of the company.

  • route (String) (defaults to: )

    The slug/route of the company on the Whop site.

  • title (String) (defaults to: )

    The title of the company.

  • typename (Symbol, :Company) (defaults to: :Company)

    The typename of this object



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

Instance Attribute Details

#balancesArray<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] }

#idString

The ID of the LedgerAccount.

Returns:

  • (String)


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

required :id, String

#ledger_account_audit_statusSymbol, ...

The different statuses a LedgerAccountAudit can be



24
25
26
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 24

required :ledger_account_audit_status,
enum: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerAccountAuditStatus },
nil?: true

#ledger_typeSymbol, WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerType

The type of ledger account.



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

required :ledger_type, enum: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::LedgerType }

#ownerWhopSDK::Models::LedgerAccountRetrieveResponse::Owner::User, ...

The owner of the ledger account.



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

required :owner, union: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::Owner }

#payments_approval_statusSymbol, ...

The different approval statuses an account can have.



44
45
46
# File 'lib/whop_sdk/models/ledger_account_retrieve_response.rb', line 44

required :payments_approval_status,
enum: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::PaymentsApprovalStatus },
nil?: true

#transfer_feeFloat?

The fee for transfers, if applicable.

Returns:

  • (Float, nil)


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

required :transfer_fee, Float, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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