Class: Dodopayments::Models::BalanceLedgerEntry
Overview
Defined Under Namespace
Modules: EventType
Instance Attribute Summary collapse
Instance Method Summary
collapse
-
#initialize(id:, amount:, business_id:, created_at:, currency:, event_type:, is_credit:, usd_equivalent_amount:, after_balance: nil, before_balance: nil, description: nil, reference_object_id: nil) ⇒ Object
constructor
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, amount:, business_id:, created_at:, currency:, event_type:, is_credit:, usd_equivalent_amount:, after_balance: nil, before_balance: nil, description: nil, reference_object_id: nil) ⇒ Object
|
# File 'lib/dodopayments/models/balance_ledger_entry.rb', line 67
|
Instance Attribute Details
#after_balance ⇒ Integer?
50
|
# File 'lib/dodopayments/models/balance_ledger_entry.rb', line 50
optional :after_balance, Integer, nil?: true
|
#amount ⇒ Integer
15
|
# File 'lib/dodopayments/models/balance_ledger_entry.rb', line 15
required :amount, Integer
|
#before_balance ⇒ Integer?
55
|
# File 'lib/dodopayments/models/balance_ledger_entry.rb', line 55
optional :before_balance, Integer, nil?: true
|
#business_id ⇒ String
20
|
# File 'lib/dodopayments/models/balance_ledger_entry.rb', line 20
required :business_id, String
|
#created_at ⇒ Time
25
|
# File 'lib/dodopayments/models/balance_ledger_entry.rb', line 25
required :created_at, Time
|
30
|
# File 'lib/dodopayments/models/balance_ledger_entry.rb', line 30
required :currency, enum: -> { Dodopayments::Currency }
|
#description ⇒ String?
60
|
# File 'lib/dodopayments/models/balance_ledger_entry.rb', line 60
optional :description, String, nil?: true
|
#id ⇒ String
10
|
# File 'lib/dodopayments/models/balance_ledger_entry.rb', line 10
required :id, String
|
#reference_object_id ⇒ String?
65
|
# File 'lib/dodopayments/models/balance_ledger_entry.rb', line 65
optional :reference_object_id, String, nil?: true
|
#usd_equivalent_amount ⇒ Integer
45
|
# File 'lib/dodopayments/models/balance_ledger_entry.rb', line 45
required :usd_equivalent_amount, Integer
|