app/interactions/actions/domain_create.rb
# Check if domain is eligible for new registration
Check if domain is eligible for new registration
Check if domain is eligible for new registration
def validate_domain_integrity
      return unless Domain.release_to_auction
      dn = DNS::DomainName.new(domain.name)
      if dn.at_auction?
        domain.add_epp_error('2306', nil, nil, 'Parameter value policy error: domain is at auction')
      elsif dn.awaiting_payment?
        domain.add_epp_error('2003', nil, nil, 'Required parameter missing; reserved>pw element' \
        ' required for reserved domains')
      elsif dn.pending_registration?
        validate_reserved_password(dn)
      end
    end
def validate_domain_integrity return unless Domain . release_to_auction dn = DNS :: DomainName . new ( domain . name ) if dn . at_auction? domain . add_epp_error ( '2306' , nil , nil , 'Parameter value policy error: domain is at auction' ) elsif dn . awaiting_payment? domain . add_epp_error ( '2003' , nil , nil , 'Required parameter missing; reserved>pw element' ' required for reserved domains' ) elsif dn . pending_registration? validate_reserved_password ( dn ) end end
Check if domain is eligible for new registration
Check if domain is eligible for new registration