Class: WhopSDK::Models::TransferListResponse

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

Overview

See Also:

  • WhopSDK::Resources::Transfers#list

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:, amount:, created_at:, currency:, destination_ledger_account_id:, origin_ledger_account_id:, fee_amount: nil, metadata: nil, notes: nil) ⇒ Object

A transfer of credit between two ledger accounts.

Parameters:

  • id (String)

    Transfer ID.

  • amount (Float)

    Transfer amount.

  • created_at (Time)

    When the transfer was created.

  • currency (String)

    Transfer currency.

  • destination_ledger_account_id (String)

    Destination ledger account ID.

  • origin_ledger_account_id (String)

    Source ledger account ID.

  • fee_amount (Float, nil) (defaults to: nil)

    Fee charged for the transfer.

  • metadata (Hash{Symbol=>Object}, nil) (defaults to: nil)

    Custom metadata attached to the transfer.

  • notes (String, nil) (defaults to: nil)

    Transfer note.



# File 'lib/whop_sdk/models/transfer_list_response.rb', line 61

Instance Attribute Details

#amountFloat

Transfer amount.

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :amount, Float

#created_atTime

When the transfer was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


23
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 23

required :created_at, Time

#currencyString

Transfer currency.

Parameters:

  • value (String)

Returns:

  • (String)


29
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 29

required :currency, String

#destination_ledger_account_idString

Destination ledger account ID.

Parameters:

  • value (String)

Returns:

  • (String)


35
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 35

required :destination_ledger_account_id, String

#fee_amountFloat?

Fee charged for the transfer.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


47
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 47

optional :fee_amount, Float, nil?: true

#idString

Transfer ID.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#metadataHash{Symbol=>Object}?

Custom metadata attached to the transfer.

Parameters:

  • value (::Hash[Symbol, top], nil)

Returns:

  • (Hash{Symbol=>Object}, nil)


53
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 53

optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true

#notesString?

Transfer note.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


59
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 59

optional :notes, String, nil?: true

#origin_ledger_account_idString

Source ledger account ID.

Parameters:

  • value (String)

Returns:

  • (String)


41
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 41

required :origin_ledger_account_id, String

Instance Method Details

#to_hash{

Returns:

  • ({)


47
# File 'sig/whop_sdk/models/transfer_list_response.rbs', line 47

def to_hash: -> {