Sha256: 7343ea1cd7b6d0738b5ea4be63c9401a9cb722e4921b6ae191282e5b7827d547
Contents?: true
Size: 606 Bytes
Versions: 3
Compression:
Stored size: 606 Bytes
Contents
require_relative '../../lib/mangopay/model/entity/report' require_relative '../../lib/mangopay/api/service/reports' shared_context 'report_context' do REPORT_DATA ||= build_report REPORT_PERSISTED ||= persist_report REPORT_DATA end def persist_report(report) MangoApi::Reports.create_for_transactions report end def build_report report = MangoModel::Report.new report.callback_url = 'http://www.my-site.com/callbackURL/' report.download_format = MangoModel::DownloadFormat::CSV report.sort = 'CreationDate:DESC' report.preview = false report.columns = %w[Id CreationDate] report end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mangopay-v4-4.1.0 | spec/context/report_context.rb |
mangopay-v4-4.0.2 | spec/context/report_context.rb |
mangopay-v4-4.0.1 | spec/context/report_context.rb |