21 lines
667 B
Text
21 lines
667 B
Text
|
# frozen_string_literal: true
|
||
|
|
||
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||
|
json.data recurring_donation do |rd|
|
||
|
json.extract! rd, :id, :total_given,
|
||
|
:supporter_id, :interval,
|
||
|
:time_unit, :designation,
|
||
|
:anonymous, :start_date, :end_date,
|
||
|
:created_at, :paydate, :edit_token
|
||
|
json.donation recurring_donation.donation do |d|
|
||
|
json.extract! d, :id, :amount, :designation
|
||
|
end
|
||
|
|
||
|
json.supporter recurring_donation.supporter do |s|
|
||
|
json.extract! s, :name, :email, :id, :anonymous
|
||
|
end
|
||
|
|
||
|
json.card recurring_donation.card do |c|
|
||
|
json.extract! c, :name
|
||
|
end
|
||
|
end
|