Class: WhopSDK::Models::TransferCreateResponse::Transfer
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::TransferCreateResponse::Transfer
- 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
-
#amount ⇒ Float
Transfer amount.
-
#created_at ⇒ Time
When the transfer was created.
-
#currency ⇒ String
Transfer currency.
-
#destination ⇒ WhopSDK::Models::TransferCreateResponse::Transfer::Destination::Company, WhopSDK::Models::TransferCreateResponse::Transfer::Destination::User
Account or user receiving funds.
-
#destination_ledger_account_id ⇒ String
Destination ledger account ID.
-
#fee_amount ⇒ Float?
Fee charged for the transfer.
-
#id ⇒ String
Transfer ID.
-
#metadata ⇒ Hash{Symbol=>Object}?
Custom metadata attached to the transfer.
-
#notes ⇒ String?
Transfer note.
-
#origin ⇒ WhopSDK::Models::TransferCreateResponse::Transfer::Origin::Company, WhopSDK::Models::TransferCreateResponse::Transfer::Origin::User
Account or user sending funds.
-
#origin_ledger_account_id ⇒ String
Source ledger account ID.
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
|
|
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 87
|
Instance Attribute Details
#amount ⇒ Float
Transfer amount.
31 |
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 31 required :amount, Float |
#created_at ⇒ Time
When the transfer was created.
37 |
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 37 required :created_at, Time |
#currency ⇒ String
Transfer currency.
43 |
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 43 required :currency, String |
#destination ⇒ WhopSDK::Models::TransferCreateResponse::Transfer::Destination::Company, WhopSDK::Models::TransferCreateResponse::Transfer::Destination::User
Account or user receiving funds.
49 |
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 49 required :destination, union: -> { WhopSDK::Models::TransferCreateResponse::Transfer::Destination } |
#destination_ledger_account_id ⇒ String
Destination ledger account ID.
55 |
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 55 required :destination_ledger_account_id, String |
#fee_amount ⇒ Float?
Fee charged for the transfer.
73 |
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 73 optional :fee_amount, Float, nil?: true |
#id ⇒ String
Transfer ID.
25 |
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 25 required :id, String |
#metadata ⇒ Hash{Symbol=>Object}?
Custom metadata attached to the transfer.
79 |
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 79 optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true |
#notes ⇒ String?
Transfer note.
85 |
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 85 optional :notes, String, nil?: true |
#origin ⇒ WhopSDK::Models::TransferCreateResponse::Transfer::Origin::Company, WhopSDK::Models::TransferCreateResponse::Transfer::Origin::User
Account or user sending funds.
61 |
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 61 required :origin, union: -> { WhopSDK::Models::TransferCreateResponse::Transfer::Origin } |
#origin_ledger_account_id ⇒ String
Source ledger account ID.
67 |
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 67 required :origin_ledger_account_id, String |
Class Method Details
.variants ⇒ Array(WhopSDK::Models::TransferCreateResponse::Transfer::Destination::Company, WhopSDK::Models::TransferCreateResponse::Transfer::Destination::User)
|
|
# File 'lib/whop_sdk/models/transfer_create_response.rb', line 192
|
Instance Method Details
#to_hash ⇒ {
63 |
# File 'sig/whop_sdk/models/transfer_create_response.rbs', line 63
def to_hash: -> {
|