Class: CurrencyCloud::Reports

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/currency_cloud/reports.rb

Instance Attribute Summary

Attributes included from Resource

#changed_attributes

Class Method Summary collapse

Methods included from Resource

included, #initialize, #inspect

Class Method Details

.create_conversions_report(params = {}) ⇒ Object



8
9
10
11
# File 'lib/currency_cloud/reports.rb', line 8

def self.create_conversions_report(params = {})
  response = client.post('conversions/create', params)
  ConversionReportResult.new(response)
end

.create_payments_report(params = {}) ⇒ Object



13
14
15
16
# File 'lib/currency_cloud/reports.rb', line 13

def self.create_payments_report(params = {})
  response = client.post('payments/create', params)
  PaymentReportResult.new(response)
end

.find_report_requests(params = {}) ⇒ Object



18
19
20
21
# File 'lib/currency_cloud/reports.rb', line 18

def self.find_report_requests(params = {})
  response = client.get('report_requests/find', params)
  FindReportRequestsResult.new(response)
end

.retrieve_report_request(report_id, params = {}) ⇒ Object



23
24
25
26
# File 'lib/currency_cloud/reports.rb', line 23

def self.retrieve_report_request(report_id, params = {})
  response = client.get("report_requests/#{report_id}", params)
  ReportRequestResult.new(response)
end