Sha256: 04baf06fbc74570d2339329d01091329d8c88dea234611dbffbfde8f50fa66ca

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

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

  def order_type
    'CDD'
  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" => order_type,
          "OrderAttribute" => order_attribute,
          "StandardOrderParams/" => ""
        },
        "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",
        "NumSegments" => 1
     },
      "mutable" => {
        "TransactionPhase" => "Initialisation"
      }
    }
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
epics-1.5.1 lib/epics/cdd.rb