mercury_banking 0.5.37 → 0.5.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d911a07f674d64b6c7f51721e61f6206bf8df0617a2ff49359fe60b0c21bfd67
4
- data.tar.gz: 38ea8c7134a967578e272a579f584551aee9291704d801334282f668a92c9650
3
+ metadata.gz: fd83aeec4085d1c49fe77f7ca68fbc0b7c215dc37deafba3b36a20da0e7f46c4
4
+ data.tar.gz: 102b6b607353df20f4494c758935fe3f3517a2a4c95fca8440f9598b364d4f71
5
5
  SHA512:
6
- metadata.gz: e3c9026d8ddf19000481a2ade598537f0d8d499941e789c47615bdace60b90f96ba38928f4ba8ada644966cefb9458a3ece9d15b1f1743a46e0b6b4790eee45f
7
- data.tar.gz: efd73dbe4b0020e26e235775dab67d1b728ca545404ddb6471020d1e75f21139e670ec045222538a51df49e45a5777afad1e31c9e1729ad1d20a804dadd896e9
6
+ metadata.gz: 06a9d7eea59264a65f07ef4073189c390b8b0d025bdbeced8af797d06f67066e14cd704db814ad61ebaedd03c0682171a5604b2be295463751808b2ddc2057b5
7
+ data.tar.gz: b4898456ae09b4cceb0bf6a23c01fe7f860073fd76d069f1b70c0e5a4fc8c266ce52999351dfc319178730cea7779c9649076c43398604aaeadf9824ce9d8d49
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mercury_banking (0.5.37)
4
+ mercury_banking (0.5.38)
5
5
  activesupport (~> 7.0.0)
6
6
  dotenv (~> 2.8)
7
7
  fiddle (~> 1.1)
@@ -112,6 +112,7 @@ module MercuryBanking
112
112
  account_transactions.each do |transaction|
113
113
  transaction["accountName"] = account["name"]
114
114
  transaction["accountId"] = account["id"]
115
+ transaction["accountNumber"] = account["accountNumber"]
115
116
  end
116
117
  all_transactions.concat(account_transactions)
117
118
  rescue StandardError => e
@@ -27,7 +27,7 @@ module MercuryBanking
27
27
  end_date = options[:end_date]
28
28
 
29
29
  # Get format
30
- format = options[:format]
30
+ format = options[:format] || 'all'
31
31
 
32
32
  # Get verbose option
33
33
  verbose = options[:verbose]
@@ -36,12 +36,20 @@ module MercuryBanking
36
36
  accounts.each do |account|
37
37
  account_id = account["id"]
38
38
  account_name = account["name"]
39
+ account_number = account["accountNumber"]
39
40
 
40
41
  puts "Fetching transactions for #{account_name} (#{account_id})..."
41
42
 
42
43
  # Get all transactions for this account
43
44
  transactions = client.get_transactions(account_id, start_date)
44
45
 
46
+ # Add account information to each transaction
47
+ transactions.each do |transaction|
48
+ transaction["accountName"] = account_name
49
+ transaction["accountId"] = account_id
50
+ transaction["accountNumber"] = account_number
51
+ end
52
+
45
53
  # Filter by end date if specified
46
54
  if end_date
47
55
  end_date_obj = Date.parse(end_date)
@@ -135,6 +143,13 @@ module MercuryBanking
135
143
  puts "Fetching transactions for #{account["name"]}..."
136
144
  transactions = client.get_transactions(account_id, start_date)
137
145
 
146
+ # Add account information to each transaction
147
+ transactions.each do |transaction|
148
+ transaction["accountName"] = account["name"]
149
+ transaction["accountId"] = account["id"]
150
+ transaction["accountNumber"] = account["accountNumber"]
151
+ end
152
+
138
153
  # Filter by end date if specified
139
154
  if end_date
140
155
  end_date_obj = Date.parse(end_date)
@@ -1,3 +1,3 @@
1
1
  module MercuryBanking
2
- VERSION = "0.5.37"
2
+ VERSION = "0.5.38"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercury_banking
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.37
4
+ version: 0.5.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Siegel