Sha256: bae7f16e7107f41e24f97cd5e8c64fd8ff7970a38c8a2fe6bfe59f96b6db039b

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

class Epics::CDB < Epics::GenericUploadRequest
  def order_attribute
    'OZHNN'
  end

  def order_type
    'CDB'
  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 order_type
            xml.OrderAttribute order_attribute
            xml.StandardOrderParams
          }
          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.NumSegments 1
        }
        xml.mutable {
          xml.TransactionPhase 'Initialisation'
        }
      }
    end.doc.root
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
epics-2.4.0 lib/epics/cdb.rb
epics-2.3.0 lib/epics/cdb.rb
epics-2.2.0 lib/epics/cdb.rb