Class: EwayRapid::Message::TransactionProcess::TransQueryMsgProcess

Inherits:
Object
  • Object
show all
Includes:
RestProcess
Defined in:
lib/eway_rapid/message/process/transaction_process.rb

Overview

Query transaction message process

Class Method Summary collapse

Methods included from RestProcess

#do_get, #do_post

Class Method Details

.make_result(response) ⇒ QueryTransactionResponse

Parameters:

  • response (String)

Returns:



131
132
133
134
135
# File 'lib/eway_rapid/message/process/transaction_process.rb', line 131

def self.make_result(response)
  transaction_search_resp = TransactionSearchResponse.from_json(response)
  converter = Convert::Response::SearchToQueryTrans.new
  converter.do_convert(transaction_search_resp)
end

.process_post_msg(url, api_key, password) ⇒ Object



125
126
127
# File 'lib/eway_rapid/message/process/transaction_process.rb', line 125

def self.process_post_msg(url, api_key, password)
  TransQueryMsgProcess.new.do_get(url, api_key, password)
end