Sha256: 4468a8960ecc7747df852a6bcb97aafefe4a565f51ea35142e542b896781e7c1

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 Bytes

Contents

module Securetrading
  class TransactionQuery < Connection
    def initialize(filters)
      @filters = filters
    end

    def perform(options = {})
      perform_with(:post, to_xml, options)
    end

    private

    def ox_xml
      prepare_doc do
        doc.requestblock.request << XmlDoc.elements(filter: @filters).first
      end
    end

    def request_type
      'TRANSACTIONQUERY'.freeze
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
securetrading-0.3.2 lib/securetrading/transaction_query.rb
securetrading-0.3.1 lib/securetrading/transaction_query.rb
securetrading-0.3.0 lib/securetrading/transaction_query.rb