Class: WhopSDK::Models::TransferListResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::TransferListResponse
- Defined in:
- lib/whop_sdk/models/transfer_list_response.rb,
sig/whop_sdk/models/transfer_list_response.rbs
Overview
Instance Attribute Summary collapse
-
#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.
-
#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_ledger_account_id ⇒ String
Source ledger account ID.
Instance Method Summary collapse
-
#initialize(id:, amount:, created_at:, currency:, destination_ledger_account_id:, origin_ledger_account_id:, fee_amount: nil, metadata: nil, notes: nil) ⇒ Object
constructor
A transfer of credit between two ledger accounts.
- #to_hash ⇒ {
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.
|
|
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 61
|
Instance Attribute Details
#amount ⇒ Float
Transfer amount.
17 |
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 17 required :amount, Float |
#created_at ⇒ Time
When the transfer was created.
23 |
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 23 required :created_at, Time |
#currency ⇒ String
Transfer currency.
29 |
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 29 required :currency, String |
#destination_ledger_account_id ⇒ String
Destination ledger account ID.
35 |
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 35 required :destination_ledger_account_id, String |
#fee_amount ⇒ Float?
Fee charged for the transfer.
47 |
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 47 optional :fee_amount, Float, nil?: true |
#id ⇒ String
Transfer ID.
11 |
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 11 required :id, String |
#metadata ⇒ Hash{Symbol=>Object}?
Custom metadata attached to the transfer.
53 |
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 53 optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true |
#notes ⇒ String?
Transfer note.
59 |
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 59 optional :notes, String, nil?: true |
#origin_ledger_account_id ⇒ String
Source ledger account ID.
41 |
# File 'lib/whop_sdk/models/transfer_list_response.rb', line 41 required :origin_ledger_account_id, String |
Instance Method Details
#to_hash ⇒ {
47 |
# File 'sig/whop_sdk/models/transfer_list_response.rbs', line 47
def to_hash: -> {
|