lib/epics/htd.rb in epics-2.4.0 vs lib/epics/htd.rb in epics-2.5.0
- old
+ new
@@ -1,29 +1,12 @@
class Epics::HTD < Epics::GenericRequest
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 'HTD'
- xml.OrderAttribute 'DZHNN'
- 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.mutable {
- xml.TransactionPhase 'Initialisation'
- }
- }
- end.doc.root
+ client.header_request.build(
+ nonce: nonce,
+ timestamp: timestamp,
+ order_type: 'HTD',
+ order_attribute: 'DZHNN',
+ order_params: {},
+ mutable: { TransactionPhase: 'Initialisation' }
+ )
end
end