mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
728ae4310c
TODO: fix the test rails test test/integration/reservations/create_test.rb Reservations::CreateTest#test_user_reserves_a_machine_and_renew_a_subscription_with_payment_schedule_and_coupon_and_wallet [test/integration/reservations/create_test.rb:841] Minitest::Assertion: Expected: "stripe" Actual: nil
20 lines
509 B
Ruby
20 lines
509 B
Ruby
json.array!(@wallet_transactions) do |t|
|
|
json.extract! t, :id, :transaction_type, :created_at, :amount, :transactable_type
|
|
json.user do
|
|
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
|
|
end
|
|
if t.payment_schedule
|
|
json.payment_schedule do
|
|
json.id t.payment_schedule.id
|
|
json.reference t.payment_schedule.reference
|
|
end
|
|
end
|
|
end
|