lib/sepa/banks/danske/soap_danske.rb
# Adds the encrypted application request xml structure to generic request soap.
# The application request is base64 encoded before it is added to the soap.
#
# @param encrypted_request [Nokogiri::XML] the encrypted application request xml structure
# @return [Nokogiri::XML] the soap with the encrypted application request added to it
# @todo refactor possible unnecessary conversion away and rename
Adds the encrypted application request xml structure to generic request soap.
The application request is base64 encoded before it is added to the soap.
Adds the encrypted application request xml structure to generic request soap . The application request is base64 encoded before it is added to the soap .
def add_encrypted_generic_request_to_soap(encrypted_request)
        encrypted_request = Nokogiri::XML(encrypted_request.to_xml)
        encrypted_request = encrypted_request.root
        encrypted_request = encode encrypted_request.to_xml
        @template.at_css('bxd|ApplicationRequest').add_child(encrypted_request)
        @template
      end
def add_encrypted_generic_request_to_soap ( encrypted_request ) encrypted_request = Nokogiri :: XML ( encrypted_request . to_xml ) encrypted_request = encrypted_request . root encrypted_request = encode encrypted_request . to_xml @template . at_css ( 'bxd|ApplicationRequest' ) . add_child ( encrypted_request ) @template end
Adds the encrypted application request xml structure to generic request soap.
Adds the encrypted application request xml structure to generic request soap .
the soap with the encrypted application request added to it
the soap with the encrypted application request added to it
Nokogiri::XML
encrypted_request
the encrypted application request xml structure
the encrypted application request xml structure
todo
refactor possible unnecessary conversion away and rename
refactor possible unnecessary conversion away and rename