diff --git a/app/api/repp/domain_v1.rb b/app/api/repp/domain_v1.rb
index 859cb14da..9275e611f 100644
--- a/app/api/repp/domain_v1.rb
+++ b/app/api/repp/domain_v1.rb
@@ -35,7 +35,7 @@ module Repp
error! I18n.t('errors.messages.epp_authorization_error'), 401 unless domain.auth_info.eql? request.headers['Auth-Code']
contact_repp_json = proc{|contact|
- contact.attributes.slice("code", "ident_type", "ident_country_code", "phone", "email", "street", "city", "zip","country_code", "statuses")
+ contact.attributes.slice("code", "name", "ident", "ident_type", "ident_country_code", "phone", "email", "street", "city", "zip","country_code", "statuses")
}
@response = {
diff --git a/app/mailers/contact_mailer.rb b/app/mailers/contact_mailer.rb
index 71e635540..110ce6a71 100644
--- a/app/mailers/contact_mailer.rb
+++ b/app/mailers/contact_mailer.rb
@@ -4,7 +4,7 @@ class ContactMailer < ApplicationMailer
def email_updated(email, contact_id, should_deliver)
@contact = Contact.find_by(id: contact_id)
return unless email || @contact
- return if delivery_off?(contact, should_deliver)
+ return if delivery_off?(@contact, should_deliver)
return if whitelist_blocked?(email)
begin
diff --git a/doc/repp/v1/domain.md b/doc/repp/v1/domain.md
index 79e002b6c..fc417b47f 100644
--- a/doc/repp/v1/domain.md
+++ b/doc/repp/v1/domain.md
@@ -1,3 +1,5 @@
+# Domain listing
+
## GET /repp/v1/domains
Returns domains of the current registrar.
@@ -98,3 +100,83 @@ Content-Type: application/json
"total_number_of_records": 2
}
```
+
+# Transfer info
+
+## GET /repp/v1/domains/*domainname.ee*/transfer_info
+Returns details of contacts associated with a domain to be transfered. Necessary for pre-transfer checks and better user experience in automated registrar systems.
+
+Please note the domain name in the path
+
+#### Request
+```
+GET /repp/v1/domains/ee-test.ee/transfer_info HTTP/1.1
+Accept: application/json
+Authorization: Basic Z2l0bGFiOmdoeXQ5ZTRmdQ==
+Content-Length: 0
+Content-Type: application/json
+Auth-Code: authinfopw
+```
+
+Please note that domain transfer/authorisation code must be placed in header - *Auth-Code*
+
+#### Response
+```
+HTTP/1.1 200 OK
+Cache-Control: max-age=0, private, must-revalidate
+Content-Length: 784
+Content-Type: application/json
+
+{
+ "domain":"ee-test.ee",
+ "registrant":{
+ "code":"EE:R1",
+ "ident_type":"org",
+ "ident_country_code":"EE",
+ "phone":"+372.1234567",
+ "email":"registrant@cache.ee",
+ "street":"Businesstreet 1",
+ "city":"Tallinn",
+ "zip":"10101",
+ "country_code":"EE",
+ "statuses":[
+ "ok",
+ "linked"
+ ]
+ },
+ "admin_contacts":[
+ {
+ "code":"EE:A1",
+ "ident_type":"priv",
+ "ident_country_code":"EE",
+ "phone":"+372.7654321",
+ "email":"admin@cache.ee",
+ "street":"Adminstreet 2",
+ "city":"Tallinn",
+ "zip":"12345",
+ "country_code":"EE",
+ "statuses":[
+ "ok",
+ "linked"
+ ]
+ }
+ ],
+ "tech_contacts":[
+ {
+ "code":"EE:T1",
+ "ident_type":"org",
+ "ident_country_code":"EE",
+ "phone":"+372.7654321",
+ "email":"tech@cache.ee",
+ "street":"Techstreet 1",
+ "city":"Tallinn",
+ "zip":"12345",
+ "country_code":"EE",
+ "statuses":[
+ "ok",
+ "linked"
+ ]
+ }
+ ]
+}
+```
diff --git a/doc/schemas/all-ee-1.0.xsd b/doc/schemas/all-ee-1.0.xsd
index 124f53d24..bd4aeba0c 100644
--- a/doc/schemas/all-ee-1.0.xsd
+++ b/doc/schemas/all-ee-1.0.xsd
@@ -20,15 +20,19 @@
schemaLocation="eppcom-1.0.xsd"/>
+
+
+
+
+
-
-
-
+
diff --git a/doc/schemas/contact-eis-1.0.xsd b/doc/schemas/contact-eis-1.0.xsd
index e1fb084a5..cec571cec 100644
--- a/doc/schemas/contact-eis-1.0.xsd
+++ b/doc/schemas/contact-eis-1.0.xsd
@@ -10,9 +10,9 @@
-
-
-
+
+
+
diff --git a/doc/schemas/domain-eis-1.0.xsd b/doc/schemas/domain-eis-1.0.xsd
index 62da465fe..3fe1188ea 100644
--- a/doc/schemas/domain-eis-1.0.xsd
+++ b/doc/schemas/domain-eis-1.0.xsd
@@ -11,11 +11,11 @@
-
-
-
-
-
+
+
+
+
+
@@ -92,7 +92,6 @@
@@ -386,16 +385,24 @@
+
+
+
+
+
+
+
+