lib/plaid/models/transaction.rb in plaid-1.5.3 vs lib/plaid/models/transaction.rb in plaid-1.6.0
- old
+ new
@@ -8,10 +8,10 @@
@date = fields['date']
@amount = fields['amount']
@name = fields['name']
@location = fields['meta'].nil? ? {} : fields['meta']['location']
@pending = fields['pending']
- @pendingTransaction = fields['_pendingTransaction']
+ @pending_transaction = fields['_pendingTransaction']
@score = fields['score']
@cat = Category.new({ 'id' => fields['category_id'], 'hierarchy' => fields['category'], 'type' => fields['type'] })
# Here for backwards compatibility only.
@type = fields['type']