mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 10:19:45 +02:00
Story #109367694 - use cr_id in EPP info response
This commit is contained in:
parent
92a6285ef5
commit
b4f834e33a
2 changed files with 2 additions and 10 deletions
|
@ -48,11 +48,7 @@ xml.epp_head do
|
||||||
|
|
||||||
xml.tag!('contact:clID', @contact.registrar.try(:code))
|
xml.tag!('contact:clID', @contact.registrar.try(:code))
|
||||||
|
|
||||||
# EPP requires a creator ID, which should be registrar code if we have one
|
xml.tag!('contact:crID', @contact.cr_id)
|
||||||
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
|
|
||||||
xml.tag!('contact:crID', crID)
|
|
||||||
xml.tag!('contact:crDate', @contact.created_at.try(:iso8601))
|
xml.tag!('contact:crDate', @contact.created_at.try(:iso8601))
|
||||||
|
|
||||||
if @contact.updated_at != @contact.created_at
|
if @contact.updated_at != @contact.created_at
|
||||||
|
|
|
@ -38,11 +38,7 @@ xml.epp_head do
|
||||||
|
|
||||||
xml.tag!('domain:clID', @domain.registrar.code)
|
xml.tag!('domain:clID', @domain.registrar.code)
|
||||||
|
|
||||||
# EPP requires a creator ID, which should be registrar code if we have one
|
xml.tag!('domain:crID', @domain.cr_id)
|
||||||
crID = @domain.creator.try(:registrar)
|
|
||||||
crID = crID.code if crID.present? # Did creator return a kind of User that has a registrar?
|
|
||||||
crID = @domain.creator unless crID.present? # Fallback if we failed, maybe this is a string only
|
|
||||||
xml.tag!('domain:crID', crID)
|
|
||||||
xml.tag!('domain:crDate', @domain.created_at.try(:iso8601))
|
xml.tag!('domain:crDate', @domain.created_at.try(:iso8601))
|
||||||
|
|
||||||
if @domain.updated_at != @domain.created_at
|
if @domain.updated_at != @domain.created_at
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue