Sha256: f0d40cb8279ca9c4591790a3f1d5a8410e6a25d5c60086775e7cb60799b54c2b

Contents?: true

Size: 1.3 KB

Versions: 13

Compression:

Stored size: 1.3 KB

Contents

class Epics::PTK < 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" => "PTK",
          "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

13 entries across 13 versions & 1 rubygems

Version Path
epics-1.5.1 lib/epics/ptk.rb
epics-1.5.0 lib/epics/ptk.rb
epics-1.4.1 lib/epics/ptk.rb
epics-1.4.0 lib/epics/ptk.rb
epics-1.3.1 lib/epics/ptk.rb
epics-1.3.0 lib/epics/ptk.rb
epics-1.2.2 lib/epics/ptk.rb
epics-1.2.1 lib/epics/ptk.rb
epics-1.2.0 lib/epics/ptk.rb
epics-1.1.2 lib/epics/ptk.rb
epics-1.1.1 lib/epics/ptk.rb
epics-1.1.0 lib/epics/ptk.rb
epics-1.0.0 lib/epics/ptk.rb