From acbca42a9f38feb7ee2b0abb0b612b76aa1bb42f Mon Sep 17 00:00:00 2001 From: Maciej Szlosarczyk Date: Mon, 7 May 2018 10:00:08 +0300 Subject: [PATCH] Add support for .sce legal document --- app/models/legal_document.rb | 2 +- config/application-example.yml | 4 ++-- doc/epp/contact.md | 6 +++--- doc/epp/domain.md | 10 +++++----- lib/schemas/eis-1.0.xsd | 1 + 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/app/models/legal_document.rb b/app/models/legal_document.rb index 5126e75e7..df7bf881b 100644 --- a/app/models/legal_document.rb +++ b/app/models/legal_document.rb @@ -6,7 +6,7 @@ class LegalDocument < ActiveRecord::Base if ENV['legal_document_types'].present? TYPES = ENV['legal_document_types'].split(',').map(&:strip) else - TYPES = %w(pdf asice bdoc ddoc zip rar gz tar 7z odt doc docx).freeze + TYPES = %w(pdf asice sce bdoc ddoc zip rar gz tar 7z odt doc docx).freeze end attr_accessor :body diff --git a/config/application-example.yml b/config/application-example.yml index c89730699..e1c8976ad 100644 --- a/config/application-example.yml +++ b/config/application-example.yml @@ -67,8 +67,8 @@ contact_org_enabled: 'false' # iptables_server_ip: '127.0.0.1' # Custom legal document types. Changing this requires updating EPP extension schema for allowed legalDocEnumType values. -# System default for legal document types is: pdf,asice,bdoc,ddoc,zip,rar,gz,tar,7z,odt,doc,docx -# legal_document_types: "pdf,asice,bdoc,ddoc,zip,rar,gz,tar,7z,odt,doc,docx" +# System default for legal document types is: pdf,asice,sce,bdoc,ddoc,zip,rar,gz,tar,7z,odt,doc,docx +# legal_document_types: "pdf,asice,sce,bdoc,ddoc,zip,rar,gz,tar,7z,odt,doc,docx" # diff --git a/doc/epp/contact.md b/doc/epp/contact.md index 1dcd9b6d2..830a6245d 100644 --- a/doc/epp/contact.md +++ b/doc/epp/contact.md @@ -44,7 +44,7 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode Attribute: "cc" "EE" # Country code in ISO_3166-1 aplha 2 0-1 Base64 encoded document - Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z" + Attribute: type="pdf/asice/sce/bdoc/ddoc/zip/rar/gz/tar/7z" 0-1 Client transaction id [EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-contact-with-valid-user-create-command-successfully-creates-a-contact) @@ -81,7 +81,7 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode Attribute: "cc" "EE" # Country code in ISO_3166-1 aplha 2 0-1 Base64 encoded document. - Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z" + Attribute: type="pdf/asice/sce/bdoc/ddoc/zip/rar/gz/tar/7z" 0-1 Client transaction id @@ -99,7 +99,7 @@ More info: https://en.wikipedia.org/wiki/Latin_script_in_Unicode 0-1 0-1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd" 0-1 Base64 encoded document. - Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z" + Attribute: type="pdf/asice/sce/bdoc/ddoc/zip/rar/gz/tar/7z" 0-1 Client transaction id [EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-contact-with-valid-user-delete-command-deletes-contact) diff --git a/doc/epp/domain.md b/doc/epp/domain.md index fa74b004c..38a4745a0 100644 --- a/doc/epp/domain.md +++ b/doc/epp/domain.md @@ -39,7 +39,7 @@ Domain name mapping protocol short version: 1 Public key 1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd" 1 Base64 encoded document. - Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z" + Attribute: type="pdf/asice/sce/bdoc/ddoc/zip/rar/gz/tar/7z" 0-1 0-1 Required if registering a reserved domain 0-1 Client transaction id @@ -91,7 +91,7 @@ Domain name mapping protocol short version: 1 Public key 0-1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd" 0-1 Base64 encoded document. Required if registrant is changing. - Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z" + Attribute: type="pdf/asice/sce/bdoc/ddoc/zip/rar/gz/tar/7z" 0-1 Client transaction id [EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-domain-with-valid-domain-updates-domain-and-adds-objects) @@ -107,7 +107,7 @@ Domain name mapping protocol short version: 1 1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd" 1 Base64 encoded document. - Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z" + Attribute: type="pdf/asice/sce/bdoc/ddoc/zip/rar/gz/tar/7z" 0-1 Client transaction id [EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-domain-with-valid-domain-deletes-domain) @@ -141,7 +141,7 @@ Domain name mapping protocol short version: 0-1 0-1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd" 0-1 Base64 encoded document. - Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z" + Attribute: type="pdf/asice/sce/bdoc/ddoc/zip/rar/gz/tar/7z" 0-1 Client transaction id [EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-domain-with-valid-domain-renews-a-domain) @@ -158,7 +158,7 @@ Domain name mapping protocol short version: 0-1 0-1 Attribute: xmlns:eis="https://epp.tld.ee/schema/eis-1.0.xsd" 0-1 Base64 encoded document. - Attribute: type="pdf/asice/bdoc/ddoc/zip/rar/gz/tar/7z" + Attribute: type="pdf/asice/sce/bdoc/ddoc/zip/rar/gz/tar/7z" 0-1 Client transaction id [EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-domain-with-valid-domain-transfers-a-domain) diff --git a/lib/schemas/eis-1.0.xsd b/lib/schemas/eis-1.0.xsd index efc9b466f..55758ddbf 100644 --- a/lib/schemas/eis-1.0.xsd +++ b/lib/schemas/eis-1.0.xsd @@ -64,6 +64,7 @@ +