1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/views/api/wallet/transactions.json.jbuilder

12 lines
317 B
Plaintext
Raw Normal View History

2016-07-05 13:20:25 +02:00
json.array!(@wallet_transactions) do |t|
json.extract! t, :id, :transaction_type, :created_at, :amount, :transactable_type
2016-07-05 13:20:25 +02:00
json.user do
json.id t.user.id
json.full_name t.user.profile.full_name
end
json.invoice do
json.id t.invoice.id
json.reference t.invoice.reference
end if t.invoice
2016-07-05 13:20:25 +02:00
end