class Upay::Report

Public Instance Methods

order_detail(order_id) click to toggle source
# 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) click to toggle source
# 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
ping() click to toggle source
# File lib/upay/report.rb, line 3
def ping
  Requestor.new.request(REPORTS_API_URL, "PING")
end
transaction_response_detail(transaction_id) click to toggle source
# 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