Sha256: 1b35068c23f65db5a14a0567f64380f8f76158f0e200a5003b60f1948c5a6dda
Contents?: true
Size: 1.56 KB
Versions: 4
Compression:
Stored size: 1.56 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 date_range if !!from && !!to { "DateRange" => { "Start" => from, "End" => to } } else { :content! => '' } end end def header { :@authenticate => true, static: { "HostID" => host_id, "Nonce" => nonce, "Timestamp" => timestamp, "PartnerID" => partner_id, "UserID" => user_id, "Product" => { :@Language => "de", :content! => "EPICS - a ruby ebics kernel" }, "OrderDetails" => { "OrderType" => "HAC", "OrderAttribute" => "DZHNN", "StandardOrderParams" => date_range }, "BankPubKeyDigests" => { "Authentication" => { :@Version => "X002", :@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256", :content! => client.bank_x.public_digest }, "Encryption" => { :@Version => "E002", :@Algorithm => "http://www.w3.org/2001/04/xmlenc#sha256", :content! => client.bank_e.public_digest } }, "SecurityMedium" => "0000" }, "mutable" => { "TransactionPhase" => "Initialisation" } } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
epics-1.5.1 | lib/epics/hac.rb |
epics-1.5.0 | lib/epics/hac.rb |
epics-1.4.1 | lib/epics/hac.rb |
epics-1.4.0 | lib/epics/hac.rb |