Class: Upay::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/upay/report.rb

Instance Method Summary collapse

Instance Method Details

#order_detail(order_id) ⇒ Object



7
8
9
10
# File 'lib/upay/report.rb', line 7

def order_detail(order_id)
  payload = { "details" => { "orderId" => order_id } }
  Requestor.new.request(REPORTS_API_URL, "ORDER_DETAIL", payload)
end

#order_detail_by_reference_code(reference_code) ⇒ Object



12
13
14
15
# File 'lib/upay/report.rb', line 12

def order_detail_by_reference_code(reference_code)
  payload = { "details" => { "referenceCode" => reference_code } }
  Requestor.new.request(REPORTS_API_URL, "ORDER_DETAIL_BY_REFERENCE_CODE", payload)
end

#pingObject



3
4
5
# File 'lib/upay/report.rb', line 3

def ping
  Requestor.new.request(REPORTS_API_URL, "PING")
end

#transaction_response_detail(transaction_id) ⇒ Object



17
18
19
20
# File 'lib/upay/report.rb', line 17

def transaction_response_detail(transaction_id)
  payload = { "details" => { "transactionId" => transaction_id } }
  Requestor.new.request(REPORTS_API_URL, "TRANSACTION_RESPONSE_DETAIL", payload)
end