Class: ModernTreasury::Models::LedgerAccountCategory
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModernTreasury::Models::LedgerAccountCategory
- Defined in:
- lib/modern_treasury/models/ledger_account_category.rb
Overview
Instance Attribute Summary collapse
-
#balances ⇒ ModernTreasury::Models::LedgerBalances
The pending, posted, and available balances for this ledger account category.
- #created_at ⇒ Time
-
#description ⇒ String?
The description of the ledger account category.
- #discarded_at ⇒ Time?
-
#external_id ⇒ String?
An optional user-defined 180 character unique identifier.
- #id ⇒ String
-
#ledger_id ⇒ String
The id of the ledger that this account category belongs to.
-
#live_mode ⇒ Boolean
This field will be true if this object exists in the live environment or false if it exists in the test environment.
-
#metadata ⇒ Hash{Symbol=>String}
Additional data represented as key-value pairs.
-
#name ⇒ String
The name of the ledger account category.
-
#normal_balance ⇒ Symbol, ModernTreasury::Models::TransactionDirection
The normal balance of the ledger account category.
- #object ⇒ String
- #updated_at ⇒ Time
Instance Method Summary collapse
-
#initialize(id: , balances: , created_at: , description: , discarded_at: , external_id: , ledger_id: , live_mode: , metadata: , name: , normal_balance: , object: , updated_at: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see LedgerAccountCategory for more details.
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: , balances: , created_at: , description: , discarded_at: , external_id: , ledger_id: , live_mode: , metadata: , name: , normal_balance: , object: , updated_at: ) ⇒ Object
Some parameter documentations has been truncated, see ModernTreasury::Models::LedgerAccountCategory for more details.
|
|
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 86
|
Instance Attribute Details
#balances ⇒ ModernTreasury::Models::LedgerBalances
The pending, posted, and available balances for this ledger account category. The posted balance is the sum of all posted entries on the account. The pending balance is the sum of all pending and posted entries on the account. The available balance is the posted incoming entries minus the sum of the pending and posted outgoing amounts.
20 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 20 required :balances, -> { ModernTreasury::LedgerBalances } |
#created_at ⇒ Time
25 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 25 required :created_at, Time |
#description ⇒ String?
The description of the ledger account category.
31 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 31 required :description, String, nil?: true |
#discarded_at ⇒ Time?
36 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 36 required :discarded_at, Time, nil?: true |
#external_id ⇒ String?
An optional user-defined 180 character unique identifier.
42 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 42 required :external_id, String, nil?: true |
#id ⇒ String
10 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 10 required :id, String |
#ledger_id ⇒ String
The id of the ledger that this account category belongs to.
48 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 48 required :ledger_id, String |
#live_mode ⇒ Boolean
This field will be true if this object exists in the live environment or false if it exists in the test environment.
55 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 55 required :live_mode, ModernTreasury::Internal::Type::Boolean |
#metadata ⇒ Hash{Symbol=>String}
Additional data represented as key-value pairs. Both the key and value must be strings.
62 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 62 required :metadata, ModernTreasury::Internal::Type::HashOf[String] |
#name ⇒ String
The name of the ledger account category.
68 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 68 required :name, String |
#normal_balance ⇒ Symbol, ModernTreasury::Models::TransactionDirection
The normal balance of the ledger account category.
74 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 74 required :normal_balance, enum: -> { ModernTreasury::TransactionDirection } |
#object ⇒ String
79 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 79 required :object, String |
#updated_at ⇒ Time
84 |
# File 'lib/modern_treasury/models/ledger_account_category.rb', line 84 required :updated_at, Time |