Sha256: 0f1ec03466c38b966955367660ffa3aaa7607758a139f8e9e6c83665024a5d06

Contents?: true

Size: 622 Bytes

Versions: 2

Compression:

Stored size: 622 Bytes

Contents

require 'base64'

# EIS specific EPP extensions
module Epp
  module Eis
    module EisExtensions
      
      private
    
      def append_legal_document(xml, legal_document, legal_doc_type)
        xml.extension {
          xml.extdata('xmlns:eis' => 'urn:ee:eis:xml:epp:eis-1.0', 'xsi:schemaLocation' => 'urn:ee:eis:xml:epp:eis-1.0 eis-1.0.xsd') {
            xml.parent.namespace = xml.parent.namespace_definitions.first
            xml['eis'].legalDocument Base64.encode64(legal_document), 'type' => legal_doc_type
          }
        }
      end
    end
  end
end

Epp::Server.send(:include, Epp::Eis::EisExtensions)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
epp-eis-2.0.0 lib/epp-eis/extensions.rb
epp-eis-1.0.2 lib/epp-eis/extensions.rb