2016-07-05 13:20:25 +02:00
|
|
|
json.array!(@wallet_transactions) do |t|
|
2021-05-27 13:43:54 +02:00
|
|
|
json.extract! t, :id, :transaction_type, :created_at, :amount
|
2016-07-05 13:20:25 +02:00
|
|
|
json.user do
|
2019-06-03 16:00:09 +02:00
|
|
|
json.id t.invoicing_profile.user_id
|
|
|
|
json.full_name t.invoicing_profile.full_name
|
|
|
|
end
|
|
|
|
if t.invoice
|
|
|
|
json.invoice do
|
|
|
|
json.id t.invoice.id
|
|
|
|
json.reference t.invoice.reference
|
|
|
|
end
|
2016-07-05 13:20:25 +02:00
|
|
|
end
|
2020-12-30 18:39:46 +01:00
|
|
|
if t.payment_schedule
|
|
|
|
json.payment_schedule do
|
|
|
|
json.id t.payment_schedule.id
|
|
|
|
json.reference t.payment_schedule.reference
|
|
|
|
end
|
|
|
|
end
|
2016-07-05 13:20:25 +02:00
|
|
|
end
|