2019-07-30 21:29:24 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-06-12 20:03:43 +00:00
|
|
|
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
|
|
|
|
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
|
2018-03-25 17:30:42 +00:00
|
|
|
module MockHelpers
|
2019-07-30 21:29:24 +00:00
|
|
|
def self.payment_export_headers
|
|
|
|
['Date', 'Gross Amount', 'Fee Total', 'Net Amount', 'Type', 'Last Name', 'First Name', 'Full Name', 'Organization', 'Email', 'Phone', 'Address', 'City', 'State', 'Postal Code', 'Country', 'Anonymous?', 'Supporter Id', 'Designation', 'Dedication Type',
|
|
|
|
'Dedicated To: Name',
|
|
|
|
'Dedicated To: Supporter Id',
|
|
|
|
'Dedicated To: Email',
|
|
|
|
'Dedicated To: Phone',
|
|
|
|
'Dedicated To: Address',
|
|
|
|
'Dedicated To: Note', 'Anonymous', 'Comment', 'Campaign', 'Campaign Id', 'Campaign Creator Email', 'Campaign Gift Level', 'Event Name', 'Payment', 'Check Number', 'Donation Note']
|
2018-03-25 17:30:42 +00:00
|
|
|
end
|
|
|
|
|
2019-07-30 21:29:24 +00:00
|
|
|
def self.recurring_donation_export_headers
|
|
|
|
['Created At', 'Amount', 'Interval', 'Total Contributed', 'Campaign Name', 'Supporter Name', 'Supporter Email', 'Phone', 'Address', 'City', 'State', 'Zip Code', 'Card Name', 'Recurring Donation Id', 'Donation Id', 'Cancelled', 'Failed', 'Cancelled At', 'Donation Management Url']
|
2018-03-25 17:30:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.generate_expected_rd_management_url(root_url, rd)
|
|
|
|
"#{root_url}/recurring_donations/#{rd.id}/edit?t=#{rd.edit_token}"
|
|
|
|
end
|
2019-07-30 21:29:24 +00:00
|
|
|
end
|