Class: WhopSDK::Models::TransferCreateResponse::Transfer

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

Defined Under Namespace

Modules: Destination, Origin

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:, name: nil, username: nil, typename: :User) ⇒ Object

Parameters:

  • id (String)

    User ID.

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

    User display name.

  • username (String) (defaults to: nil)

    User's username.

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


# File 'lib/whop_sdk/models/transfer_create_response.rb', line 87

Instance Attribute Details

#amountFloat

Transfer amount.

Parameters:

  • value (Float)

Returns:

  • (Float)


31
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 31

required :amount, Float

#created_atTime

When the transfer was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


37
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 37

required :created_at, Time

#currencyString

Transfer currency.

Parameters:

  • value (String)

Returns:

  • (String)


43
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 43

required :currency, String

#destinationWhopSDK::Models::TransferCreateResponse::Transfer::Destination::Company, WhopSDK::Models::TransferCreateResponse::Transfer::Destination::User

Account or user receiving funds.

Parameters:

  • value (WhopSDK::Models::TransferCreateResponse::Transfer::destination)

Returns:



49
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 49

required :destination, union: -> { WhopSDK::Models::TransferCreateResponse::Transfer::Destination }

#destination_ledger_account_idString

Destination ledger account ID.

Parameters:

  • value (String)

Returns:

  • (String)


55
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 55

required :destination_ledger_account_id, String

#fee_amountFloat?

Fee charged for the transfer.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


73
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 73

optional :fee_amount, Float, nil?: true

#idString

Transfer ID.

Parameters:

  • value (String)

Returns:

  • (String)


25
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 25

required :id, String

#metadataHash{Symbol=>Object}?

Custom metadata attached to the transfer.

Parameters:

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

Returns:

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


79
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 79

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

#notesString?

Transfer note.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


85
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 85

optional :notes, String, nil?: true

#originWhopSDK::Models::TransferCreateResponse::Transfer::Origin::Company, WhopSDK::Models::TransferCreateResponse::Transfer::Origin::User

Account or user sending funds.

Parameters:

  • value (WhopSDK::Models::TransferCreateResponse::Transfer::origin)

Returns:



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

required :origin, union: -> { WhopSDK::Models::TransferCreateResponse::Transfer::Origin }

#origin_ledger_account_idString

Source ledger account ID.

Parameters:

  • value (String)

Returns:

  • (String)


67
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 67

required :origin_ledger_account_id, String

Instance Method Details

#to_hash{

Returns:

  • ({)


63
# File 'sig/whop_sdk/models/transfer_create_response.rbs', line 63

def to_hash: -> {