Class: WhopSDK::Models::DepositListResponse

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

Overview

See Also:

  • WhopSDK::Resources::Deposits#list

Defined Under Namespace

Modules: Object Classes: Bank

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(id:, created_at:, destination_amount:, destination_currency:, source_amount:, source_currency:, status:) ⇒ Object

Parameters:

  • id (String)

    Bank deposit transaction ID.

  • created_at (Time)

    When the bank deposit transaction was created.

  • destination_amount (String, nil)

    Amount credited to the account balance.

  • destination_currency (String, nil)

    Currency credited to the account balance.

  • source_amount (String)

    Amount sent by the depositor.

  • source_currency (String)

    Currency sent by the depositor.

  • status (String)

    Current bank deposit status.



# File 'lib/whop_sdk/models/deposit_list_response.rb', line 74

Instance Attribute Details

#account_idString

Account ID that owns these deposit transactions.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :account_id, String

#bankArray<WhopSDK::Models::DepositListResponse::Bank>

Bank deposit transactions for this account.



17
# File 'lib/whop_sdk/models/deposit_list_response.rb', line 17

required :bank, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Models::DepositListResponse::Bank] }

#objectSymbol, WhopSDK::Models::DepositListResponse::Object

Parameters:

  • value (WhopSDK::Models::DepositListResponse::object)

Returns:



22
# File 'lib/whop_sdk/models/deposit_list_response.rb', line 22

required :object, enum: -> { WhopSDK::Models::DepositListResponse::Object }

Instance Method Details

#to_hash{

Returns:

  • ({)


23
# File 'sig/whop_sdk/models/deposit_list_response.rbs', line 23

def to_hash: -> {