Sha256: 17ce2d2643725768a2351916c0e58bb6ec5ee05ac305917ebb9f69cea9085e7f

Contents?: true

Size: 1.31 KB

Versions: 8

Compression:

Stored size: 1.31 KB

Contents

class Epics::HAC < Epics::GenericRequest
  attr_accessor :from, :to

  def initialize(client, from, to)
    super(client)
    self.from = from
    self.to = to
  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" => {
            "DateRange" => {
              "Start" => from,
              "End" => to
            }
          }
        },
        "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

8 entries across 8 versions & 1 rubygems

Version Path
epics-1.3.1 lib/epics/hac.rb
epics-1.3.0 lib/epics/hac.rb
epics-1.2.2 lib/epics/hac.rb
epics-1.2.1 lib/epics/hac.rb
epics-1.2.0 lib/epics/hac.rb
epics-1.1.2 lib/epics/hac.rb
epics-1.1.1 lib/epics/hac.rb
epics-1.1.0 lib/epics/hac.rb