Class: LunchMoney::Objects::Transaction

Inherits:
TransactionBase show all
Defined in:
lib/lunchmoney/objects/transaction.rb

Overview

Instance Attribute Summary collapse

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

#serialize

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) ⇒ Transaction

Returns a new instance of Transaction.



108
109
110
111
112
113
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
# File 'lib/lunchmoney/objects/transaction.rb', line 108

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)
  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 = 
  @tags = 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_mask = 
  @institution_name = institution_name
  @plaid_account_display_name = 
  @plaid_metadata = 
  @display_notes = display_notes
  @children = children
  @external_id = external_id
end

Instance Attribute Details

#account_display_nameObject

Returns the value of attribute account_display_name.



19
20
21
# File 'lib/lunchmoney/objects/transaction.rb', line 19

def 
  @account_display_name
end

#asset_display_nameObject

Returns the value of attribute asset_display_name.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def asset_display_name
  @asset_display_name
end

#asset_institution_nameObject

Returns the value of attribute asset_institution_name.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def asset_institution_name
  @asset_institution_name
end

#asset_nameObject

Returns the value of attribute asset_name.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def asset_name
  @asset_name
end

#asset_statusObject

Returns the value of attribute asset_status.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def asset_status
  @asset_status
end

#category_group_idObject

Returns the value of attribute category_group_id.



11
12
13
# File 'lib/lunchmoney/objects/transaction.rb', line 11

def category_group_id
  @category_group_id
end

#category_group_nameObject

Returns the value of attribute category_group_name.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def category_group_name
  @category_group_name
end

#category_idObject

Returns the value of attribute category_id.



11
12
13
# File 'lib/lunchmoney/objects/transaction.rb', line 11

def category_id
  @category_id
end

#category_nameObject

Returns the value of attribute category_name.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def category_name
  @category_name
end

#childrenObject

Returns the value of attribute children.



54
55
56
# File 'lib/lunchmoney/objects/transaction.rb', line 54

def children
  @children
end

#created_atObject

Returns the value of attribute created_at.



19
20
21
# File 'lib/lunchmoney/objects/transaction.rb', line 19

def created_at
  @created_at
end

#display_nameObject

Returns the value of attribute display_name.



19
20
21
# File 'lib/lunchmoney/objects/transaction.rb', line 19

def display_name
  @display_name
end

#display_notesObject

Returns the value of attribute display_notes.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def display_notes
  @display_notes
end

#exclude_from_budgetObject

Returns the value of attribute exclude_from_budget.



48
49
50
# File 'lib/lunchmoney/objects/transaction.rb', line 48

def exclude_from_budget
  @exclude_from_budget
end

#exclude_from_totalsObject

Returns the value of attribute exclude_from_totals.



48
49
50
# File 'lib/lunchmoney/objects/transaction.rb', line 48

def exclude_from_totals
  @exclude_from_totals
end

#external_idObject

Returns the value of attribute external_id.



11
12
13
# File 'lib/lunchmoney/objects/transaction.rb', line 11

def external_id
  @external_id
end

#group_idObject

Returns the value of attribute group_id.



11
12
13
# File 'lib/lunchmoney/objects/transaction.rb', line 11

def group_id
  @group_id
end

#has_childrenObject

Returns the value of attribute has_children.



48
49
50
# File 'lib/lunchmoney/objects/transaction.rb', line 48

def has_children
  @has_children
end

#institution_nameObject

Returns the value of attribute institution_name.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def institution_name
  @institution_name
end

#is_groupObject

Returns the value of attribute is_group.



48
49
50
# File 'lib/lunchmoney/objects/transaction.rb', line 48

def is_group
  @is_group
end

#is_incomeObject

Returns the value of attribute is_income.



48
49
50
# File 'lib/lunchmoney/objects/transaction.rb', line 48

def is_income
  @is_income
end

#is_pendingObject

Returns the value of attribute is_pending.



48
49
50
# File 'lib/lunchmoney/objects/transaction.rb', line 48

def is_pending
  @is_pending
end

#original_nameObject

Returns the value of attribute original_name.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def original_name
  @original_name
end

#parent_idObject

Returns the value of attribute parent_id.



11
12
13
# File 'lib/lunchmoney/objects/transaction.rb', line 11

def parent_id
  @parent_id
end

#plaid_account_display_nameObject

Returns the value of attribute plaid_account_display_name.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def 
  @plaid_account_display_name
end

#plaid_account_maskObject

Returns the value of attribute plaid_account_mask.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def 
  @plaid_account_mask
end

#plaid_account_nameObject

Returns the value of attribute plaid_account_name.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def 
  @plaid_account_name
end

#plaid_metadataObject

Returns the value of attribute plaid_metadata.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def 
  @plaid_metadata
end

#recurring_amountObject

Returns the value of attribute recurring_amount.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def recurring_amount
  @recurring_amount
end

#recurring_cadenceObject

Returns the value of attribute recurring_cadence.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def recurring_cadence
  @recurring_cadence
end

#recurring_currencyObject

Returns the value of attribute recurring_currency.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def recurring_currency
  @recurring_currency
end

#recurring_descriptionObject

Returns the value of attribute recurring_description.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def recurring_description
  @recurring_description
end

#recurring_idObject

Returns the value of attribute recurring_id.



11
12
13
# File 'lib/lunchmoney/objects/transaction.rb', line 11

def recurring_id
  @recurring_id
end

#recurring_payeeObject

Returns the value of attribute recurring_payee.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def recurring_payee
  @recurring_payee
end

#recurring_typeObject

Returns the value of attribute recurring_type.



27
28
29
# File 'lib/lunchmoney/objects/transaction.rb', line 27

def recurring_type
  @recurring_type
end

#sourceObject

Returns the value of attribute source.



19
20
21
# File 'lib/lunchmoney/objects/transaction.rb', line 19

def source
  @source
end

#statusObject

Returns the value of attribute status.



19
20
21
# File 'lib/lunchmoney/objects/transaction.rb', line 19

def status
  @status
end

#tagsObject

Returns the value of attribute tags.



51
52
53
# File 'lib/lunchmoney/objects/transaction.rb', line 51

def tags
  @tags
end

#updated_atObject

Returns the value of attribute updated_at.



19
20
21
# File 'lib/lunchmoney/objects/transaction.rb', line 19

def updated_at
  @updated_at
end