Sha256: 6af6b95be74d9af2d35062d39c8620151cb90c4cebf4b1ec87bedeb2ac66fd9d
Contents?: true
Size: 1.53 KB
Versions: 14
Compression:
Stored size: 1.53 KB
Contents
class Epics::HAC < Epics::GenericRequest attr_accessor :from, :to # By default HAC only returns data for transactions which have not yet been fetched. Therefore, # most applications not not have to specify a date range, but can simply fetch the status and # be done def initialize(client, from = nil, to = nil) super(client) self.from = from self.to = to end def header Nokogiri::XML::Builder.new do |xml| xml.header(authenticate: true) { xml.static { xml.HostID host_id xml.Nonce nonce xml.Timestamp timestamp xml.PartnerID partner_id xml.UserID user_id xml.Product("EPICS - a ruby ebics kernel", 'Language' => 'de') xml.OrderDetails { xml.OrderType 'HAC' xml.OrderAttribute 'DZHNN' if !!from && !!to xml.StandardOrderParams { xml.DateRange { xml.Start from xml.End to } } else xml.StandardOrderParams end } xml.BankPubKeyDigests { xml.Authentication(client.bank_x.public_digest, Version: 'X002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256") xml.Encryption(client.bank_e.public_digest, Version: 'E002', Algorithm: "http://www.w3.org/2001/04/xmlenc#sha256" ) } xml.SecurityMedium '0000' } xml.mutable { xml.TransactionPhase 'Initialisation' } } end.doc.root end end
Version data entries
14 entries across 14 versions & 1 rubygems