Class: SecureTrading::Requests::TransactionQuery

Inherits:
SecureTrading::Request show all
Defined in:
lib/secure_trading/requests/transaction_query.rb

Instance Attribute Summary collapse

Attributes inherited from SecureTrading::Request

#connection, #response

Instance Method Summary collapse

Methods inherited from SecureTrading::Request

#error_message, #initialize, #process, #sanitized_xml_request, #xml_request

Constructor Details

This class inherits a constructor from SecureTrading::Request

Instance Attribute Details

#referenceObject

Returns the value of attribute reference.



5
6
7
# File 'lib/secure_trading/requests/transaction_query.rb', line 5

def reference
  @reference
end

Instance Method Details

#request_typeObject



7
8
9
# File 'lib/secure_trading/requests/transaction_query.rb', line 7

def request_type
  'TRANSACTIONQUERY'
end

#to_hashObject



11
12
13
14
15
# File 'lib/secure_trading/requests/transaction_query.rb', line 11

def to_hash
  {
    'Operation' => {'SiteReference' => self.connection.site_reference, 'TransactionReference' => self.reference}
  }
end