Sha256: 0edcbe6ba99db4315d5ef0b40cb14c8a1244c3797570e5dd27e9e92dc3f06fe7
Contents?: true
Size: 714 Bytes
Versions: 5
Compression:
Stored size: 714 Bytes
Contents
class VoidRequest < PaymentechOrbitalRequest attr_reader :tx_ref_num, :tx_ref_idx, :money def initialize(tx_ref_num, tx_ref_idx, money=nil, options={}) @tx_ref_num = tx_ref_num @tx_ref_idx = tx_ref_idx @money = money super(options) end def request_type; "Reversal"; end private def request_body(xml) add_transaction_info(xml) xml.tag! "AdjustedAmt", money if money add_meta_info(xml) end def add_transaction_info(xml) xml.tag! "TxRefNum", tx_ref_num xml.tag! "TxRefIdx", tx_ref_idx end def add_meta_info(xml) xml.tag! "OrderID", order_id xml.tag! "BIN", bin xml.tag! "MerchantID", merchant_id xml.tag! "TerminalID", terminal_id end end
Version data entries
5 entries across 5 versions & 1 rubygems