mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Contact statuses and update_contact modified
This commit is contained in:
parent
c089544eae
commit
9c4f0a63a0
6 changed files with 107 additions and 3 deletions
|
@ -16,12 +16,17 @@ xml.epp_head do
|
|||
xml.tag!('contact:crDate', @contact.created_at)
|
||||
xml.tag!('contact:upID', @contact.up_id) if @contact.up_id
|
||||
xml.tag!('contact:upDate', @contact.updated_at) unless @contact.updated_at == @contact.created_at
|
||||
xml.tag!('contact:ident', @contact.ident, type: @contact.ident_type)
|
||||
xml.tag!('contact:trDate', '123') if false
|
||||
if @owner
|
||||
xml.tag!('contact:authInfo') do
|
||||
xml.tag!('contact:pw', @contact.auth_info) # Doc says we have to return this but is it necessary?
|
||||
end
|
||||
end
|
||||
# statuses
|
||||
@contact.statuses.each do |cs|
|
||||
xml.tag!('contact:status', s: cs.value)
|
||||
end
|
||||
xml << render('/epp/contacts/disclosure_policy')
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue