Registrant API: Add registrant org true/false attribute

This commit is contained in:
Karl Erik Õunapuu 2021-02-05 12:00:49 +02:00
parent 419396f5b4
commit 9854f82669
No known key found for this signature in database
GPG key ID: C9DD647298A34764

View file

@ -25,6 +25,7 @@ module Serializers
registrant: {
name: domain.registrant.name,
id: domain.registrant.uuid,
org: domain.registrant.org?,
},
tech_contacts: contacts(:tech),
admin_contacts: contacts(:admin),
@ -60,7 +61,7 @@ module Serializers
registrar: { name: domain.registrar.name, website: domain.registrar.website },
registrant: { name: domain.registrant.name, id: domain.registrant.uuid,
phone: domain.registrant.phone, email: domain.registrant.email,
ident: domain.registrant.ident }
ident: domain.registrant.ident, org: domain.registrant.org? }
}
end