Class: LunchMoney::Objects::Transaction
- Inherits:
-
TransactionBase
- Object
- Object
- TransactionBase
- LunchMoney::Objects::Transaction
- Defined in:
- lib/lunchmoney/objects/transaction.rb
Overview
Instance Attribute Summary collapse
- #account_display_name ⇒ String
- #asset_display_name ⇒ String?
- #asset_institution_name ⇒ String?
- #asset_name ⇒ String?
- #asset_status ⇒ String?
- #category_group_id ⇒ Integer?
- #category_group_name ⇒ String?
- #category_id ⇒ Integer?
- #category_name ⇒ String?
- #children ⇒ Array<LunchMoney::Objects::ChildTransaction>?
- #created_at ⇒ String
- #display_name ⇒ String
- #display_notes ⇒ String?
- #exclude_from_budget ⇒ Boolean
- #exclude_from_totals ⇒ Boolean
- #external_id ⇒ Integer?
- #group_id ⇒ Integer?
- #has_children ⇒ Boolean
- #institution_name ⇒ String?
- #is_group ⇒ Boolean
- #is_income ⇒ Boolean
- #is_pending ⇒ Boolean
- #original_name ⇒ String?
- #parent_id ⇒ Integer?
- #plaid_account_display_name ⇒ String?
- #plaid_account_mask ⇒ String?
- #plaid_account_name ⇒ String?
- #plaid_metadata ⇒ String?
- #recurring_amount ⇒ String?
- #recurring_cadence ⇒ String?
- #recurring_currency ⇒ String?
- #recurring_description ⇒ String?
-
#recurring_granularity ⇒ T.untyped
TODO: Fix types when I have a response on what they should be github.com/mmenanno/lunchmoney/issues/329.
- #recurring_id ⇒ Integer?
- #recurring_payee ⇒ String?
-
#recurring_quantity ⇒ T.untyped
TODO: Fix types when I have a response on what they should be github.com/mmenanno/lunchmoney/issues/329.
- #recurring_type ⇒ String?
- #source ⇒ String
- #status ⇒ String
- #tags ⇒ Array<LunchMoney::Objects::TagBase>
- #updated_at ⇒ String
Attributes inherited from TransactionBase
#amount, #asset_id, #currency, #date, #id, #notes, #payee, #plaid_account_id, #to_base
Instance Method Summary collapse
Methods inherited from Object
Constructor Details
#initialize(id:, date:, amount:, currency:, to_base:, payee:, is_income:, exclude_from_budget:, exclude_from_totals:, created_at:, updated_at:, status:, is_pending:, has_children:, is_group:, source:, display_name:, account_display_name:, tags:, category_id: nil, category_name: nil, category_group_id: nil, category_group_name: nil, notes: nil, original_name: nil, recurring_id: nil, recurring_payee: nil, recurring_description: nil, recurring_cadence: nil, recurring_type: nil, recurring_amount: nil, recurring_currency: nil, parent_id: nil, group_id: nil, asset_id: nil, asset_institution_name: nil, asset_name: nil, asset_display_name: nil, asset_status: nil, plaid_account_id: nil, plaid_account_name: nil, plaid_account_mask: nil, institution_name: nil, plaid_account_display_name: nil, plaid_metadata: nil, display_notes: nil, external_id: nil, children: nil, recurring_granularity: nil, recurring_quantity: nil) ⇒ void
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/lunchmoney/objects/transaction.rb', line 114 def initialize(id:, date:, amount:, currency:, to_base:, payee:, is_income:, exclude_from_budget:, exclude_from_totals:, created_at:, updated_at:, status:, is_pending:, has_children:, is_group:, source:, display_name:, account_display_name:, tags:, category_id: nil, category_name: nil, category_group_id: nil, category_group_name: nil, notes: nil, original_name: nil, recurring_id: nil, recurring_payee: nil, recurring_description: nil, recurring_cadence: nil, recurring_type: nil, recurring_amount: nil, recurring_currency: nil, parent_id: nil, group_id: nil, asset_id: nil, asset_institution_name: nil, asset_name: nil, asset_display_name: nil, asset_status: nil, plaid_account_id: nil, plaid_account_name: nil, plaid_account_mask: nil, institution_name: nil, plaid_account_display_name: nil, plaid_metadata: nil, display_notes: nil, external_id: nil, children: nil, recurring_granularity: nil, recurring_quantity: nil) super(id:, date:, amount:, currency:, to_base:, payee:, notes:, asset_id:, plaid_account_id:) @is_income = is_income @exclude_from_budget = exclude_from_budget @exclude_from_totals = exclude_from_totals @created_at = created_at @updated_at = updated_at @status = status @is_pending = is_pending @has_children = has_children @is_group = is_group @source = source @display_name = display_name @account_display_name = account_display_name @tags = @category_id = category_id @category_name = category_name @category_group_id = category_group_id @category_group_name = category_group_name @original_name = original_name @recurring_id = recurring_id @recurring_payee = recurring_payee @recurring_description = recurring_description @recurring_cadence = recurring_cadence @recurring_type = recurring_type @recurring_amount = recurring_amount @recurring_currency = recurring_currency @parent_id = parent_id @group_id = group_id @asset_institution_name = asset_institution_name @asset_name = asset_name @asset_display_name = asset_display_name @asset_status = asset_status @plaid_account_name = plaid_account_name @plaid_account_mask = plaid_account_mask @institution_name = institution_name @plaid_account_display_name = plaid_account_display_name @plaid_metadata = @display_notes = display_notes @children = children @external_id = external_id @recurring_granularity = recurring_granularity @recurring_quantity = recurring_quantity end |
Instance Attribute Details
#account_display_name ⇒ String
19 20 21 |
# File 'lib/lunchmoney/objects/transaction.rb', line 19 def account_display_name @account_display_name end |
#asset_display_name ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def asset_display_name @asset_display_name end |
#asset_institution_name ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def asset_institution_name @asset_institution_name end |
#asset_name ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def asset_name @asset_name end |
#asset_status ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def asset_status @asset_status end |
#category_group_id ⇒ Integer?
11 12 13 |
# File 'lib/lunchmoney/objects/transaction.rb', line 11 def category_group_id @category_group_id end |
#category_group_name ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def category_group_name @category_group_name end |
#category_id ⇒ Integer?
11 12 13 |
# File 'lib/lunchmoney/objects/transaction.rb', line 11 def category_id @category_id end |
#category_name ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def category_name @category_name end |
#children ⇒ Array<LunchMoney::Objects::ChildTransaction>?
54 55 56 |
# File 'lib/lunchmoney/objects/transaction.rb', line 54 def children @children end |
#created_at ⇒ String
19 20 21 |
# File 'lib/lunchmoney/objects/transaction.rb', line 19 def created_at @created_at end |
#display_name ⇒ String
19 20 21 |
# File 'lib/lunchmoney/objects/transaction.rb', line 19 def display_name @display_name end |
#display_notes ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def display_notes @display_notes end |
#exclude_from_budget ⇒ Boolean
48 49 50 |
# File 'lib/lunchmoney/objects/transaction.rb', line 48 def exclude_from_budget @exclude_from_budget end |
#exclude_from_totals ⇒ Boolean
48 49 50 |
# File 'lib/lunchmoney/objects/transaction.rb', line 48 def exclude_from_totals @exclude_from_totals end |
#external_id ⇒ Integer?
11 12 13 |
# File 'lib/lunchmoney/objects/transaction.rb', line 11 def external_id @external_id end |
#group_id ⇒ Integer?
11 12 13 |
# File 'lib/lunchmoney/objects/transaction.rb', line 11 def group_id @group_id end |
#has_children ⇒ Boolean
48 49 50 |
# File 'lib/lunchmoney/objects/transaction.rb', line 48 def has_children @has_children end |
#institution_name ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def institution_name @institution_name end |
#is_group ⇒ Boolean
48 49 50 |
# File 'lib/lunchmoney/objects/transaction.rb', line 48 def is_group @is_group end |
#is_income ⇒ Boolean
48 49 50 |
# File 'lib/lunchmoney/objects/transaction.rb', line 48 def is_income @is_income end |
#is_pending ⇒ Boolean
48 49 50 |
# File 'lib/lunchmoney/objects/transaction.rb', line 48 def is_pending @is_pending end |
#original_name ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def original_name @original_name end |
#parent_id ⇒ Integer?
11 12 13 |
# File 'lib/lunchmoney/objects/transaction.rb', line 11 def parent_id @parent_id end |
#plaid_account_display_name ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def plaid_account_display_name @plaid_account_display_name end |
#plaid_account_mask ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def plaid_account_mask @plaid_account_mask end |
#plaid_account_name ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def plaid_account_name @plaid_account_name end |
#plaid_metadata ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def @plaid_metadata end |
#recurring_amount ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def recurring_amount @recurring_amount end |
#recurring_cadence ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def recurring_cadence @recurring_cadence end |
#recurring_currency ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def recurring_currency @recurring_currency end |
#recurring_description ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def recurring_description @recurring_description end |
#recurring_granularity ⇒ T.untyped
TODO: Fix types when I have a response on what they should be github.com/mmenanno/lunchmoney/issues/329
58 59 60 |
# File 'lib/lunchmoney/objects/transaction.rb', line 58 def recurring_granularity @recurring_granularity end |
#recurring_id ⇒ Integer?
11 12 13 |
# File 'lib/lunchmoney/objects/transaction.rb', line 11 def recurring_id @recurring_id end |
#recurring_payee ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def recurring_payee @recurring_payee end |
#recurring_quantity ⇒ T.untyped
TODO: Fix types when I have a response on what they should be github.com/mmenanno/lunchmoney/issues/329
58 59 60 |
# File 'lib/lunchmoney/objects/transaction.rb', line 58 def recurring_quantity @recurring_quantity end |
#recurring_type ⇒ String?
27 28 29 |
# File 'lib/lunchmoney/objects/transaction.rb', line 27 def recurring_type @recurring_type end |
#source ⇒ String
19 20 21 |
# File 'lib/lunchmoney/objects/transaction.rb', line 19 def source @source end |
#status ⇒ String
19 20 21 |
# File 'lib/lunchmoney/objects/transaction.rb', line 19 def status @status end |
#tags ⇒ Array<LunchMoney::Objects::TagBase>
51 52 53 |
# File 'lib/lunchmoney/objects/transaction.rb', line 51 def @tags end |
#updated_at ⇒ String
19 20 21 |
# File 'lib/lunchmoney/objects/transaction.rb', line 19 def updated_at @updated_at end |