Class: Upay::Report
- Inherits:
-
Object
- Object
- Upay::Report
- Defined in:
- lib/upay/report.rb
Instance Method Summary collapse
- #order_detail(order_id) ⇒ Object
- #order_detail_by_reference_code(reference_code) ⇒ Object
- #ping ⇒ Object
- #transaction_response_detail(transaction_id) ⇒ Object
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 |
#ping ⇒ Object
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 |