module EWS # :nodoc: module Transaction # :nodoc: # This class encapsulates all the data returned from the E-xact Web Service. class Response < EWS::Transaction::Request attr_accessor :logon_message, :error_number, :error_description, :transaction_error, :transaction_approved attr_accessor :exact_resp_code, :exact_message, :bank_resp_code, :bank_message, :bank_resp_code_2 attr_accessor :sequence_no, :avs, :cvv2, :retrieval_ref_no, :cavv_response attr_accessor :merchant_name, :merchant_address, :merchant_city, :merchant_province, :merchant_country, :merchant_postal, :merchant_url, :CTR # Indicates whether or not the transaction was approved def approved? self.transaction_approved == 1 end end end end