internetee-registry/app/views/epp/contacts/info.xml.builder
2014-07-31 12:45:38 +03:00

33 lines
1.3 KiB
Ruby

xml.epp_head do
xml.response do
xml.result('code' => '1000') do
xml.msg 'Command completed successfully'
end
xml.resData do
xml.tag!('contact:chkData', 'xmlns:contact' => 'http://www.nic.cz/xml/epp/contact-1.6',
'xsi:schemaLocation' => 'http://www.nic.cz/xml/epp/contact-1.6 contact-1.6.xsd') do
xml.tag!('contact:name', @contact.name)
xml.tag!('contact:org', @contact.org_name)
xml.tag!('contact:addr') do
xml.tag!('contact:street', @contact.addresses.first.street)
xml.tag!('contact:street', @contact.addresses.first.city)
end
xml.tag!('contact:voice', @contact.phone)
xml.tag!('contact:fax', @contact.fax)
xml.tag!('contact:email', @contact.email)
xml.tag!('contact:clID', @current_epp_user.username) if @current_epp_user
xml.tag!('contact:crID', '123') if false
xml.tag!('contact:crDate', @contact.created_at)
xml.tag!('contact:upID', '123') if false
xml.tag!('contact:upDate', @contact.updated_at) unless @contact.updated_at == @contact.created_at
xml.tag!('contact:trDate', '123') if false
xml.tag!('contact:authInfo', '123') if false
xml.tag!('contact:disclose', '123') if false
end
end
xml << render('/epp/shared/trID')
end
end