Class: WhopSDK::Models::LedgerAccountFundsAvailableWebhookEvent::Data

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

Overview

See Also:

  • WhopSDK::Models::LedgerAccountFundsAvailableWebhookEvent#data

Defined Under Namespace

Modules: LedgerType, Owner, PaymentsApprovalStatus Classes: Balance, PayoutAccountDetails, TreasuryBalance

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:, last_error_code:, last_error_reason:, status:) ⇒ Object

Some parameter documentations has been truncated, see WhopSDK::Models::LedgerAccountFundsAvailableWebhookEvent::Data::PayoutAccountDetails::LatestVerification for more details.

The latest verification for the connected account.

Parameters:

  • id (String)

    The numeric id of the verification record.

  • last_error_code (Symbol, WhopSDK::Models::VerificationErrorCode, nil)

    An error code for a verification attempt.

  • last_error_reason (String, nil)

    A human-readable explanation of the most recent verification error. Null if no e

  • status (Symbol, WhopSDK::Models::VerificationStatus)

    The current status of this verification session.



# File 'lib/whop_sdk/models/ledger_account_funds_available_webhook_event.rb', line 161

Instance Attribute Details

#balancesArray<WhopSDK::Models::LedgerAccountFundsAvailableWebhookEvent::Data::Balance>

The balances associated with the account.

Parameters:

  • value (::Array[WhopSDK::LedgerAccountFundsAvailableWebhookEvent::Data::Balance])

Returns:



71
72
# File 'lib/whop_sdk/models/ledger_account_funds_available_webhook_event.rb', line 71

required :balances,
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::LedgerAccountFundsAvailableWebhookEvent::Data::Balance] }

#idString

The unique identifier for the ledger account.

Parameters:

  • value (String)

Returns:

  • (String)


65
# File 'lib/whop_sdk/models/ledger_account_funds_available_webhook_event.rb', line 65

required :id, String

#ledger_typeSymbol, WhopSDK::Models::LedgerAccountFundsAvailableWebhookEvent::Data::LedgerType

The type of ledger account.

Parameters:

  • value (WhopSDK::Models::LedgerAccountFundsAvailableWebhookEvent::Data::ledger_type)

Returns:



78
# File 'lib/whop_sdk/models/ledger_account_funds_available_webhook_event.rb', line 78

required :ledger_type, enum: -> { WhopSDK::LedgerAccountFundsAvailableWebhookEvent::Data::LedgerType }

#ownerWhopSDK::Models::LedgerAccountFundsAvailableWebhookEvent::Data::Owner::User, ...

The owner of the ledger account.

Parameters:

  • value (WhopSDK::Models::LedgerAccountFundsAvailableWebhookEvent::Data::owner, nil)

Returns:



84
# File 'lib/whop_sdk/models/ledger_account_funds_available_webhook_event.rb', line 84

required :owner, union: -> { WhopSDK::LedgerAccountFundsAvailableWebhookEvent::Data::Owner }

#payments_approval_statusSymbol, ...

The different approval statuses an account can have.

Parameters:

  • value (WhopSDK::Models::LedgerAccountFundsAvailableWebhookEvent::Data::payments_approval_status, nil)

Returns:



90
91
92
# File 'lib/whop_sdk/models/ledger_account_funds_available_webhook_event.rb', line 90

required :payments_approval_status,
enum: -> { WhopSDK::LedgerAccountFundsAvailableWebhookEvent::Data::PaymentsApprovalStatus },
nil?: true

#payout_account_detailsWhopSDK::Models::LedgerAccountFundsAvailableWebhookEvent::Data::PayoutAccountDetails?

The payout account associated with the LedgerAccount, if any.

Parameters:

  • value (WhopSDK::LedgerAccountFundsAvailableWebhookEvent::Data::PayoutAccountDetails, nil)

Returns:



98
99
100
# File 'lib/whop_sdk/models/ledger_account_funds_available_webhook_event.rb', line 98

required :payout_account_details,
-> { WhopSDK::LedgerAccountFundsAvailableWebhookEvent::Data::PayoutAccountDetails },
nil?: true

#transfer_feeFloat?

The fee for transfers, if applicable.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


106
# File 'lib/whop_sdk/models/ledger_account_funds_available_webhook_event.rb', line 106

required :transfer_fee, Float, nil?: true

#treasury_balanceWhopSDK::Models::LedgerAccountFundsAvailableWebhookEvent::Data::TreasuryBalance?

The balance cache associated with the account by currency.

Parameters:

  • value (WhopSDK::LedgerAccountFundsAvailableWebhookEvent::Data::TreasuryBalance, nil)

Returns:



112
113
114
# File 'lib/whop_sdk/models/ledger_account_funds_available_webhook_event.rb', line 112

required :treasury_balance,
-> { WhopSDK::LedgerAccountFundsAvailableWebhookEvent::Data::TreasuryBalance },
nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/ledger_account_funds_available_webhook_event.rb', line 182

Instance Method Details

#to_hash{

Returns:

  • ({)


84
# File 'sig/whop_sdk/models/ledger_account_funds_available_webhook_event.rbs', line 84

def to_hash: -> {