mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
DRY registrant contact update action
This commit is contained in:
parent
eb2c023e2a
commit
942cfe82b5
2 changed files with 87 additions and 52 deletions
|
@ -32,27 +32,40 @@ module Zone::WhoisQueryable
|
|||
# Take note - since this concern only used to zone whois queries, dnssec keys are set to
|
||||
# empty array
|
||||
def domain_vars
|
||||
{ disclaimer: Setting.registry_whois_disclaimer, name: origin,
|
||||
{
|
||||
disclaimer: Setting.registry_whois_disclaimer, name: origin,
|
||||
registered: created_at.try(:to_s, :iso8601), status: ['ok (paid and in zone)'],
|
||||
changed: updated_at.try(:to_s, :iso8601), email: Setting.registry_email,
|
||||
admin_contacts: [contact_vars], tech_contacts: [contact_vars],
|
||||
nameservers: nameserver_vars, dnssec_keys: [], dnssec_changed: nil }
|
||||
nameservers: nameserver_vars, dnssec_keys: [],
|
||||
dnssec_changed: nil
|
||||
}
|
||||
end
|
||||
|
||||
def registrar_vars
|
||||
{ registrar: Setting.registry_juridical_name, registrar_website: Setting.registry_url,
|
||||
registrar_phone: Setting.registry_phone }
|
||||
{
|
||||
registrar: Setting.registry_juridical_name,
|
||||
registrar_website: Setting.registry_url,
|
||||
registrar_phone: Setting.registry_phone,
|
||||
}
|
||||
end
|
||||
|
||||
def registrant_vars
|
||||
{ registrant: Setting.registry_juridical_name, registrant_reg_no: Setting.registry_reg_no,
|
||||
registrant_ident_country_code: Setting.registry_country_code, registrant_kind: 'org',
|
||||
registrant_disclosed_attributes: %w[name email phone] }
|
||||
{
|
||||
registrant: Setting.registry_juridical_name,
|
||||
registrant_reg_no: Setting.registry_reg_no,
|
||||
registrant_ident_country_code: Setting.registry_country_code,
|
||||
registrant_kind: 'org',
|
||||
registrant_disclosed_attributes: %w[name email phone],
|
||||
}
|
||||
end
|
||||
|
||||
def contact_vars
|
||||
{ name: Setting.registry_invoice_contact, email: Setting.registry_email,
|
||||
disclosed_attributes: %w[name email] }
|
||||
{
|
||||
name: Setting.registry_invoice_contact,
|
||||
email: Setting.registry_email,
|
||||
disclosed_attributes: %w[name email],
|
||||
}
|
||||
end
|
||||
|
||||
def nameserver_vars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue