Class: Epics::CCT

Inherits:
GenericUploadRequest show all
Defined in:
lib/epics/cct.rb

Direct Known Subclasses

CCS

Instance Attribute Summary

Attributes inherited from GenericUploadRequest

#document, #key

Attributes inherited from GenericRequest

#client, #transaction_id

Instance Method Summary collapse

Methods inherited from GenericUploadRequest

#body, #cipher, #digester, #encrypt, #encrypted_order_data, #encrypted_order_signature, #initialize, #order_signature, #pad, #signature_value

Methods inherited from GenericRequest

#auth_signature, #body, #initialize, #nonce, #root, #timestamp, #to_receipt_xml, #to_transfer_xml, #to_xml

Constructor Details

This class inherits a constructor from Epics::GenericUploadRequest

Instance Method Details

#headerObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/epics/cct.rb', line 3

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" => "CCT",
        "OrderAttribute" => "OZHNN",
        "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