mirror of
https://github.com/internetee/registry.git
synced 2025-07-19 17:25:57 +02:00
Contact refactor to new epp errors
This commit is contained in:
parent
6b86af3048
commit
55decf3dd4
5 changed files with 29 additions and 19 deletions
|
@ -4,6 +4,14 @@ class Domain < ActiveRecord::Base
|
|||
|
||||
include EppErrors
|
||||
|
||||
EPP_CODE_MAP = {
|
||||
'2302' => ['Domain name already exists', 'Domain name is reserved or restricted'],
|
||||
'2306' => ['Registrant is missing', 'Nameservers count must be between 1-13', 'Admin contact is missing'],
|
||||
'2303' => ['Contact was not found']
|
||||
}
|
||||
|
||||
EPP_OBJ = 'domain'
|
||||
|
||||
belongs_to :registrar
|
||||
belongs_to :owner_contact, class_name: 'Contact'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue