mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Registrant API: Add registrant org true/false attribute
This commit is contained in:
parent
419396f5b4
commit
9854f82669
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue