Class: MangoPay::ReportV2

Inherits:
Resource show all
Defined in:
lib/mangopay/report_v2.rb

Overview

Class Method Summary collapse

Methods inherited from Resource

class_name, url

Class Method Details

.create(params, idempotency_key = nil) ⇒ Object



7
8
9
# File 'lib/mangopay/report_v2.rb', line 7

def create(params, idempotency_key = nil)
  MangoPay.request(:post, "#{MangoPay.api_path}/reporting/reports", params, {}, idempotency_key)
end

.get(id) ⇒ Object



11
12
13
# File 'lib/mangopay/report_v2.rb', line 11

def get(id)
  MangoPay.request(:get, "#{MangoPay.api_path}/reporting/reports/#{id}")
end

.get_all(params = nil) ⇒ Object



15
16
17
# File 'lib/mangopay/report_v2.rb', line 15

def get_all(params = nil)
  MangoPay.request(:get, "#{MangoPay.api_path}/reporting/reports", params)
end