mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 10:49:39 +02:00
Merge branch '109367694-epp-id-conventions' into staging
This commit is contained in:
commit
fe414d3d6e
1 changed files with 3 additions and 3 deletions
|
@ -49,14 +49,14 @@ xml.epp_head do
|
|||
xml.tag!('contact:clID', @contact.registrar.try(:code))
|
||||
|
||||
# EPP requires a creator ID, which should be registrar code if we have one
|
||||
crID = contact.creator.try(:registrar)
|
||||
crID = @contact.creator.try(:registrar)
|
||||
crID = crID.code if crID.present? # Did creator return a kind of User that has a registrar?
|
||||
crID = contact.creator unless crID.present? # Fallback if we failed, maybe this is a string only
|
||||
crID = @contact.creator unless crID.present? # Fallback if we failed, maybe this is a string only
|
||||
xml.tag!('contact:crID', crID)
|
||||
xml.tag!('contact:crDate', @contact.created_at.try(:iso8601))
|
||||
|
||||
if @contact.updated_at != @contact.created_at
|
||||
upID = contact.updator.try(:registrar)
|
||||
upID = @contact.updator.try(:registrar)
|
||||
upID = upID.code if upID.present? # Did updator return a kind of User that has a registrar?
|
||||
xml.tag!('contact:upID', upID) if upID.present? # optional upID
|
||||
xml.tag!('contact:upDate', @contact.updated_at.try(:iso8601))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue